Skip to content

Commit 642723b

Browse files
1 parent bdacc36 commit 642723b

1,958 files changed

Lines changed: 401 additions & 326799 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Asset/src/V1/Client/AssetServiceClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -430,19 +430,22 @@ public static function parseName(string $formattedName, ?string $template = null
430430
* @type string $apiEndpoint
431431
* The address of the API remote host. May optionally include the port, formatted
432432
* as "<uri>:<port>". Default 'cloudasset.googleapis.com:443'.
433-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
434-
* The credentials to be used by the client to authorize API calls. This option
435-
* accepts either a path to a credentials file, or a decoded credentials file as a
436-
* PHP array.
437-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
438-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
439-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
440-
* objects are provided, any settings in $credentialsConfig will be ignored.
441-
* *Important*: If you accept a credential configuration (credential
442-
* JSON/File/Stream) from an external source for authentication to Google Cloud
443-
* Platform, you must validate it before providing it to any Google API or library.
444-
* Providing an unvalidated credential configuration to Google APIs can compromise
445-
* the security of your systems and data. For more information {@see
433+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
434+
* This option should only be used with a pre-constructed
435+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
436+
* when one of these objects are provided, any settings in $credentialsConfig will
437+
* be ignored.
438+
* **Important**: If you are providing a path to a credentials file, or a decoded
439+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
440+
* unvalidated credential configuration to Google APIs can compromise the security
441+
* of your systems and data. It is recommended to create the credentials explicitly
442+
* ```
443+
* use Google\Auth\Credentials\ServiceAccountCredentials;
444+
* use Google\Cloud\Asset\V1\AssetServiceClient;
445+
* $creds = new ServiceAccountCredentials($scopes, $json);
446+
* $options = new AssetServiceClient(['credentials' => $creds]);
447+
* ```
448+
* {@see
446449
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
447450
* @type array $credentialsConfig
448451
* Options used to configure credentials, including auth token caching, for the

‎AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,22 @@ public static function parseName(string $formattedName, ?string $template = null
264264
* @type string $apiEndpoint
265265
* The address of the API remote host. May optionally include the port, formatted
266266
* as "<uri>:<port>". Default 'assuredworkloads.googleapis.com:443'.
267-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
268-
* The credentials to be used by the client to authorize API calls. This option
269-
* accepts either a path to a credentials file, or a decoded credentials file as a
270-
* PHP array.
271-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
272-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
273-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
274-
* objects are provided, any settings in $credentialsConfig will be ignored.
275-
* *Important*: If you accept a credential configuration (credential
276-
* JSON/File/Stream) from an external source for authentication to Google Cloud
277-
* Platform, you must validate it before providing it to any Google API or library.
278-
* Providing an unvalidated credential configuration to Google APIs can compromise
279-
* the security of your systems and data. For more information {@see
267+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
268+
* This option should only be used with a pre-constructed
269+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
270+
* when one of these objects are provided, any settings in $credentialsConfig will
271+
* be ignored.
272+
* **Important**: If you are providing a path to a credentials file, or a decoded
273+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
274+
* unvalidated credential configuration to Google APIs can compromise the security
275+
* of your systems and data. It is recommended to create the credentials explicitly
276+
* ```
277+
* use Google\Auth\Credentials\ServiceAccountCredentials;
278+
* use Google\Cloud\AssuredWorkloads\V1\AssuredWorkloadsServiceClient;
279+
* $creds = new ServiceAccountCredentials($scopes, $json);
280+
* $options = new AssuredWorkloadsServiceClient(['credentials' => $creds]);
281+
* ```
282+
* {@see
280283
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
281284
* @type array $credentialsConfig
282285
* Options used to configure credentials, including auth token caching, for the

‎AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,22 @@ public static function parseName(string $formattedName, ?string $template = null
251251
* @type string $apiEndpoint
252252
* The address of the API remote host. May optionally include the port, formatted
253253
* as "<uri>:<port>". Default 'assuredworkloads.googleapis.com:443'.
254-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
255-
* The credentials to be used by the client to authorize API calls. This option
256-
* accepts either a path to a credentials file, or a decoded credentials file as a
257-
* PHP array.
258-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
259-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
260-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
261-
* objects are provided, any settings in $credentialsConfig will be ignored.
262-
* *Important*: If you accept a credential configuration (credential
263-
* JSON/File/Stream) from an external source for authentication to Google Cloud
264-
* Platform, you must validate it before providing it to any Google API or library.
265-
* Providing an unvalidated credential configuration to Google APIs can compromise
266-
* the security of your systems and data. For more information {@see
254+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
255+
* This option should only be used with a pre-constructed
256+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
257+
* when one of these objects are provided, any settings in $credentialsConfig will
258+
* be ignored.
259+
* **Important**: If you are providing a path to a credentials file, or a decoded
260+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
261+
* unvalidated credential configuration to Google APIs can compromise the security
262+
* of your systems and data. It is recommended to create the credentials explicitly
263+
* ```
264+
* use Google\Auth\Credentials\ServiceAccountCredentials;
265+
* use Google\Cloud\AssuredWorkloads\V1beta1\AssuredWorkloadsServiceClient;
266+
* $creds = new ServiceAccountCredentials($scopes, $json);
267+
* $options = new AssuredWorkloadsServiceClient(['credentials' => $creds]);
268+
* ```
269+
* {@see
267270
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
268271
* @type array $credentialsConfig
269272
* Options used to configure credentials, including auth token caching, for the

‎AutoMl/src/V1/Client/AutoMlClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,22 @@ public static function parseName(string $formattedName, ?string $template = null
337337
* @type string $apiEndpoint
338338
* The address of the API remote host. May optionally include the port, formatted
339339
* as "<uri>:<port>". Default 'automl.googleapis.com:443'.
340-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
341-
* The credentials to be used by the client to authorize API calls. This option
342-
* accepts either a path to a credentials file, or a decoded credentials file as a
343-
* PHP array.
344-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
345-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
346-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
347-
* objects are provided, any settings in $credentialsConfig will be ignored.
348-
* *Important*: If you accept a credential configuration (credential
349-
* JSON/File/Stream) from an external source for authentication to Google Cloud
350-
* Platform, you must validate it before providing it to any Google API or library.
351-
* Providing an unvalidated credential configuration to Google APIs can compromise
352-
* the security of your systems and data. For more information {@see
340+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
341+
* This option should only be used with a pre-constructed
342+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
343+
* when one of these objects are provided, any settings in $credentialsConfig will
344+
* be ignored.
345+
* **Important**: If you are providing a path to a credentials file, or a decoded
346+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
347+
* unvalidated credential configuration to Google APIs can compromise the security
348+
* of your systems and data. It is recommended to create the credentials explicitly
349+
* ```
350+
* use Google\Auth\Credentials\ServiceAccountCredentials;
351+
* use Google\Cloud\AutoMl\V1\AutoMlClient;
352+
* $creds = new ServiceAccountCredentials($scopes, $json);
353+
* $options = new AutoMlClient(['credentials' => $creds]);
354+
* ```
355+
* {@see
353356
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
354357
* @type array $credentialsConfig
355358
* Options used to configure credentials, including auth token caching, for the

‎AutoMl/src/V1/Client/PredictionServiceClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -210,19 +210,22 @@ public static function parseName(string $formattedName, ?string $template = null
210210
* @type string $apiEndpoint
211211
* The address of the API remote host. May optionally include the port, formatted
212212
* as "<uri>:<port>". Default 'automl.googleapis.com:443'.
213-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
214-
* The credentials to be used by the client to authorize API calls. This option
215-
* accepts either a path to a credentials file, or a decoded credentials file as a
216-
* PHP array.
217-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
218-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
219-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
220-
* objects are provided, any settings in $credentialsConfig will be ignored.
221-
* *Important*: If you accept a credential configuration (credential
222-
* JSON/File/Stream) from an external source for authentication to Google Cloud
223-
* Platform, you must validate it before providing it to any Google API or library.
224-
* Providing an unvalidated credential configuration to Google APIs can compromise
225-
* the security of your systems and data. For more information {@see
213+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
214+
* This option should only be used with a pre-constructed
215+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
216+
* when one of these objects are provided, any settings in $credentialsConfig will
217+
* be ignored.
218+
* **Important**: If you are providing a path to a credentials file, or a decoded
219+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
220+
* unvalidated credential configuration to Google APIs can compromise the security
221+
* of your systems and data. It is recommended to create the credentials explicitly
222+
* ```
223+
* use Google\Auth\Credentials\ServiceAccountCredentials;
224+
* use Google\Cloud\AutoMl\V1\PredictionServiceClient;
225+
* $creds = new ServiceAccountCredentials($scopes, $json);
226+
* $options = new PredictionServiceClient(['credentials' => $creds]);
227+
* ```
228+
* {@see
226229
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
227230
* @type array $credentialsConfig
228231
* Options used to configure credentials, including auth token caching, for the

‎BackupDr/src/V1/Client/BackupDRClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -499,19 +499,22 @@ public static function parseName(string $formattedName, ?string $template = null
499499
* @type string $apiEndpoint
500500
* The address of the API remote host. May optionally include the port, formatted
501501
* as "<uri>:<port>". Default 'backupdr.googleapis.com:443'.
502-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
503-
* The credentials to be used by the client to authorize API calls. This option
504-
* accepts either a path to a credentials file, or a decoded credentials file as a
505-
* PHP array.
506-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
507-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
508-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
509-
* objects are provided, any settings in $credentialsConfig will be ignored.
510-
* *Important*: If you accept a credential configuration (credential
511-
* JSON/File/Stream) from an external source for authentication to Google Cloud
512-
* Platform, you must validate it before providing it to any Google API or library.
513-
* Providing an unvalidated credential configuration to Google APIs can compromise
514-
* the security of your systems and data. For more information {@see
502+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
503+
* This option should only be used with a pre-constructed
504+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
505+
* when one of these objects are provided, any settings in $credentialsConfig will
506+
* be ignored.
507+
* **Important**: If you are providing a path to a credentials file, or a decoded
508+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
509+
* unvalidated credential configuration to Google APIs can compromise the security
510+
* of your systems and data. It is recommended to create the credentials explicitly
511+
* ```
512+
* use Google\Auth\Credentials\ServiceAccountCredentials;
513+
* use Google\Cloud\BackupDR\V1\BackupDRClient;
514+
* $creds = new ServiceAccountCredentials($scopes, $json);
515+
* $options = new BackupDRClient(['credentials' => $creds]);
516+
* ```
517+
* {@see
515518
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
516519
* @type array $credentialsConfig
517520
* Options used to configure credentials, including auth token caching, for the

‎BareMetalSolution/src/V2/Client/BareMetalSolutionClient.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -579,19 +579,22 @@ public static function parseName(string $formattedName, ?string $template = null
579579
* @type string $apiEndpoint
580580
* The address of the API remote host. May optionally include the port, formatted
581581
* as "<uri>:<port>". Default 'baremetalsolution.googleapis.com:443'.
582-
* @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
583-
* The credentials to be used by the client to authorize API calls. This option
584-
* accepts either a path to a credentials file, or a decoded credentials file as a
585-
* PHP array.
586-
* *Advanced usage*: In addition, this option can also accept a pre-constructed
587-
* {@see \Google\Auth\FetchAuthTokenInterface} object or
588-
* {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
589-
* objects are provided, any settings in $credentialsConfig will be ignored.
590-
* *Important*: If you accept a credential configuration (credential
591-
* JSON/File/Stream) from an external source for authentication to Google Cloud
592-
* Platform, you must validate it before providing it to any Google API or library.
593-
* Providing an unvalidated credential configuration to Google APIs can compromise
594-
* the security of your systems and data. For more information {@see
582+
* @type FetchAuthTokenInterface|CredentialsWrapper $credentials
583+
* This option should only be used with a pre-constructed
584+
* {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that
585+
* when one of these objects are provided, any settings in $credentialsConfig will
586+
* be ignored.
587+
* **Important**: If you are providing a path to a credentials file, or a decoded
588+
* credentials file as a PHP array, this usage is now DEPRECATED. Providing an
589+
* unvalidated credential configuration to Google APIs can compromise the security
590+
* of your systems and data. It is recommended to create the credentials explicitly
591+
* ```
592+
* use Google\Auth\Credentials\ServiceAccountCredentials;
593+
* use Google\Cloud\BareMetalSolution\V2\BareMetalSolutionClient;
594+
* $creds = new ServiceAccountCredentials($scopes, $json);
595+
* $options = new BareMetalSolutionClient(['credentials' => $creds]);
596+
* ```
597+
* {@see
595598
* https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
596599
* @type array $credentialsConfig
597600
* Options used to configure credentials, including auth token caching, for the

0 commit comments

Comments
 (0)