From dbde6be5084d76c60aad0514135c1709f41653ab Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:18:57 -0800 Subject: [PATCH] chore: update clients with new generator changes (#7993) PiperOrigin-RevId: 713057149 Source-Link: https://github.com/googleapis/googleapis/commit/6fb68312dc1372cbc497f0e5294c94945879736c Source-Link: https://github.com/googleapis/googleapis-gen/commit/85cb72d7e7f5d0c14d39165e159aeeeb0814597d Copy-Tag: eyJwIjoiQW5hbHl0aWNzQWRtaW4vLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== Copy-Tag: eyJwIjoiQW5hbHl0aWNzRGF0YS8uT3dsQm90LnlhbWwiLCJoIjoiODVjYjcyZDdlN2Y1ZDBjMTRkMzkxNjVlMTU5YWVlZWIwODE0NTk3ZCJ9 Copy-Tag: eyJwIjoiQmlnUXVlcnlEYXRhRXhjaGFuZ2UvLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== Copy-Tag: eyJwIjoiRGF0YUxhYmVsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiI4NWNiNzJkN2U3ZjVkMGMxNGQzOTE2NWUxNTlhZWVlYjA4MTQ1OTdkIn0= Copy-Tag: eyJwIjoiRGF0YWZsb3cvLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== Copy-Tag: eyJwIjoiRGF0YWZvcm0vLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== Copy-Tag: eyJwIjoiTGlmZVNjaWVuY2VzLy5Pd2xCb3QueWFtbCIsImgiOiI4NWNiNzJkN2U3ZjVkMGMxNGQzOTE2NWUxNTlhZWVlYjA4MTQ1OTdkIn0= Copy-Tag: eyJwIjoiTWVkaWFUcmFuc2xhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiODVjYjcyZDdlN2Y1ZDBjMTRkMzkxNjVlMTU5YWVlZWIwODE0NTk3ZCJ9 Copy-Tag: eyJwIjoiUHJpdmF0ZUNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== Copy-Tag: eyJwIjoiUmVjb21tZW5kYXRpb25FbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6Ijg1Y2I3MmQ3ZTdmNWQwYzE0ZDM5MTY1ZTE1OWFlZWViMDgxNDU5N2QifQ== --- .../src/V1alpha/Client/AnalyticsAdminServiceClient.php | 10 +++++++--- .../src/V1beta/Client/AnalyticsAdminServiceClient.php | 10 +++++++--- .../src/V1alpha/Client/AlphaAnalyticsDataClient.php | 10 +++++++--- .../src/V1beta/Client/BetaAnalyticsDataClient.php | 10 +++++++--- .../src/V1beta1/Client/AnalyticsHubServiceClient.php | 10 +++++++--- .../src/V1beta1/Client/DataLabelingServiceClient.php | 10 +++++++--- .../src/V1beta3/Client/FlexTemplatesServiceClient.php | 4 ++++ Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php | 4 ++++ Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php | 4 ++++ Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php | 4 ++++ Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php | 4 ++++ Dataflow/src/V1beta3/Client/TemplatesServiceClient.php | 4 ++++ Dataform/src/V1beta1/Client/DataformClient.php | 10 +++++++--- .../src/V2beta/Client/WorkflowsServiceV2BetaClient.php | 4 ++++ .../V1beta1/Client/SpeechTranslationServiceClient.php | 4 ++++ .../src/V1beta1/Client/PrivateCatalogClient.php | 4 ++++ .../src/V1beta1/Client/CatalogServiceClient.php | 10 +++++++--- .../V1beta1/Client/PredictionApiKeyRegistryClient.php | 10 +++++++--- .../src/V1beta1/Client/PredictionServiceClient.php | 10 +++++++--- .../src/V1beta1/Client/UserEventServiceClient.php | 10 +++++++--- 20 files changed, 113 insertions(+), 33 deletions(-) diff --git a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php index ea56e429958..f6c9ce64b81 100644 --- a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php +++ b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php @@ -232,6 +232,7 @@ use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service Interface for the Analytics Admin API (GA4). @@ -1163,8 +1164,8 @@ public static function subpropertyEventFilterName(string $property, string $subP * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -1172,7 +1173,7 @@ public static function subpropertyEventFilterName(string $property, string $subP * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -1227,6 +1228,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php index 60544f177da..e3143eeaa51 100644 --- a/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php +++ b/AnalyticsAdmin/src/V1beta/Client/AnalyticsAdminServiceClient.php @@ -105,6 +105,7 @@ use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service Interface for the Analytics Admin API (GA4). @@ -489,8 +490,8 @@ public static function propertyName(string $property): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -498,7 +499,7 @@ public static function propertyName(string $property): string * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -553,6 +554,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php b/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php index 789b0ed4d1a..e8c5d7828e0 100644 --- a/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php +++ b/AnalyticsData/src/V1alpha/Client/AlphaAnalyticsDataClient.php @@ -62,6 +62,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Google Analytics reporting data service. @@ -306,8 +307,8 @@ public static function reportTaskName(string $property, string $reportTask): str * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -315,7 +316,7 @@ public static function reportTaskName(string $property, string $reportTask): str * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -370,6 +371,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php b/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php index a4300ba006c..1ea9f611b72 100644 --- a/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php +++ b/AnalyticsData/src/V1beta/Client/BetaAnalyticsDataClient.php @@ -61,6 +61,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Google Analytics reporting data service. @@ -259,8 +260,8 @@ public static function propertyName(string $property): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -268,7 +269,7 @@ public static function propertyName(string $property): string * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -323,6 +324,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/BigQueryDataExchange/src/V1beta1/Client/AnalyticsHubServiceClient.php b/BigQueryDataExchange/src/V1beta1/Client/AnalyticsHubServiceClient.php index 9fee5feed5e..44dbf1f0deb 100644 --- a/BigQueryDataExchange/src/V1beta1/Client/AnalyticsHubServiceClient.php +++ b/BigQueryDataExchange/src/V1beta1/Client/AnalyticsHubServiceClient.php @@ -59,6 +59,7 @@ use Google\Cloud\Location\ListLocationsRequest; use Google\Cloud\Location\Location; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: The `AnalyticsHubService` API facilitates data sharing within and across @@ -242,8 +243,8 @@ public static function locationName(string $project, string $location): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -251,7 +252,7 @@ public static function locationName(string $project, string $location): string * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -306,6 +307,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/DataLabeling/src/V1beta1/Client/DataLabelingServiceClient.php b/DataLabeling/src/V1beta1/Client/DataLabelingServiceClient.php index 93cf701e803..4130f41251c 100644 --- a/DataLabeling/src/V1beta1/Client/DataLabelingServiceClient.php +++ b/DataLabeling/src/V1beta1/Client/DataLabelingServiceClient.php @@ -81,6 +81,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service for the AI Platform Data Labeling API. @@ -435,8 +436,8 @@ public static function projectName(string $project): string * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -444,7 +445,7 @@ public static function projectName(string $project): string * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -499,6 +500,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php index a1aa43df5df..8b93f9e052d 100644 --- a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php +++ b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php @@ -36,6 +36,7 @@ use Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateRequest; use Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateResponse; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Provides a service for Flex templates. This feature is not ready yet. @@ -147,6 +148,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php index fc8292c50b6..7799f8bd4ab 100644 --- a/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php @@ -44,6 +44,7 @@ use Google\Cloud\Dataflow\V1beta3\SnapshotJobRequest; use Google\Cloud\Dataflow\V1beta3\UpdateJobRequest; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Provides a method to create and modify Google Cloud Dataflow jobs. @@ -162,6 +163,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php b/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php index f06b766024c..2c8d063db31 100644 --- a/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php @@ -36,6 +36,7 @@ use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Dataflow\V1beta3\ListJobMessagesRequest; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: The Dataflow Messages API is used for monitoring the progress of @@ -148,6 +149,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php index 8a47a4275e4..54ed7ae7488 100644 --- a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php @@ -39,6 +39,7 @@ use Google\Cloud\Dataflow\V1beta3\GetStageExecutionDetailsRequest; use Google\Cloud\Dataflow\V1beta3\JobMetrics; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: The Dataflow Metrics API lets you monitor the progress of Dataflow @@ -153,6 +154,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php index 8f44153408d..61909d8e65c 100644 --- a/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php @@ -40,6 +40,7 @@ use Google\Cloud\Dataflow\V1beta3\ListSnapshotsResponse; use Google\Cloud\Dataflow\V1beta3\Snapshot; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Provides methods to manage snapshots of Google Cloud Dataflow jobs. @@ -153,6 +154,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php b/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php index b2d699f397f..c29a0f47a3b 100644 --- a/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php +++ b/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php @@ -40,6 +40,7 @@ use Google\Cloud\Dataflow\V1beta3\LaunchTemplateRequest; use Google\Cloud\Dataflow\V1beta3\LaunchTemplateResponse; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Provides a method to create Cloud Dataflow jobs from templates. @@ -153,6 +154,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/Dataform/src/V1beta1/Client/DataformClient.php b/Dataform/src/V1beta1/Client/DataformClient.php index eccb11bdee8..7790b7bbdbe 100644 --- a/Dataform/src/V1beta1/Client/DataformClient.php +++ b/Dataform/src/V1beta1/Client/DataformClient.php @@ -113,6 +113,7 @@ use Google\Cloud\Location\ListLocationsRequest; use Google\Cloud\Location\Location; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Dataform is a service to develop, create, document, test, and update curated @@ -446,8 +447,8 @@ public static function workspaceName( * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -455,7 +456,7 @@ public static function workspaceName( * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -510,6 +511,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php b/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php index ce401711e29..5c310cd9f39 100644 --- a/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php +++ b/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php @@ -44,6 +44,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: A service for running workflows, such as pipelines consisting of Docker @@ -210,6 +211,9 @@ private function createOperationsClient(array $options) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/MediaTranslation/src/V1beta1/Client/SpeechTranslationServiceClient.php b/MediaTranslation/src/V1beta1/Client/SpeechTranslationServiceClient.php index 42651c5798c..9a72fce2be0 100644 --- a/MediaTranslation/src/V1beta1/Client/SpeechTranslationServiceClient.php +++ b/MediaTranslation/src/V1beta1/Client/SpeechTranslationServiceClient.php @@ -33,6 +33,7 @@ use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Provides translation from/to media types. @@ -138,6 +139,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/PrivateCatalog/src/V1beta1/Client/PrivateCatalogClient.php b/PrivateCatalog/src/V1beta1/Client/PrivateCatalogClient.php index 4410bfa334f..6c17a68b320 100644 --- a/PrivateCatalog/src/V1beta1/Client/PrivateCatalogClient.php +++ b/PrivateCatalog/src/V1beta1/Client/PrivateCatalogClient.php @@ -38,6 +38,7 @@ use Google\Cloud\PrivateCatalog\V1beta1\SearchProductsRequest; use Google\Cloud\PrivateCatalog\V1beta1\SearchVersionsRequest; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: `PrivateCatalog` allows catalog consumers to retrieve `Catalog`, `Product` @@ -166,6 +167,9 @@ private static function getClientDefaults() * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/RecommendationEngine/src/V1beta1/Client/CatalogServiceClient.php b/RecommendationEngine/src/V1beta1/Client/CatalogServiceClient.php index 7b4ec2f8dd9..e096a47d8bc 100644 --- a/RecommendationEngine/src/V1beta1/Client/CatalogServiceClient.php +++ b/RecommendationEngine/src/V1beta1/Client/CatalogServiceClient.php @@ -46,6 +46,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service for ingesting catalog information of the customer's website. @@ -230,8 +231,8 @@ public static function catalogItemPathName( * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -239,7 +240,7 @@ public static function catalogItemPathName( * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -294,6 +295,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/RecommendationEngine/src/V1beta1/Client/PredictionApiKeyRegistryClient.php b/RecommendationEngine/src/V1beta1/Client/PredictionApiKeyRegistryClient.php index 98dba713a16..be93005d2df 100644 --- a/RecommendationEngine/src/V1beta1/Client/PredictionApiKeyRegistryClient.php +++ b/RecommendationEngine/src/V1beta1/Client/PredictionApiKeyRegistryClient.php @@ -40,6 +40,7 @@ use Google\Cloud\RecommendationEngine\V1beta1\ListPredictionApiKeyRegistrationsRequest; use Google\Cloud\RecommendationEngine\V1beta1\PredictionApiKeyRegistration; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service for registering API keys for use with the `predict` method. If you @@ -179,8 +180,8 @@ public static function predictionApiKeyRegistrationName( * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -188,7 +189,7 @@ public static function predictionApiKeyRegistrationName( * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -243,6 +244,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/RecommendationEngine/src/V1beta1/Client/PredictionServiceClient.php b/RecommendationEngine/src/V1beta1/Client/PredictionServiceClient.php index 6e56057cdbd..c8b37eb6d0a 100644 --- a/RecommendationEngine/src/V1beta1/Client/PredictionServiceClient.php +++ b/RecommendationEngine/src/V1beta1/Client/PredictionServiceClient.php @@ -37,6 +37,7 @@ use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\RecommendationEngine\V1beta1\PredictRequest; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service for making recommendation prediction. @@ -141,8 +142,8 @@ public static function placementName( * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -150,7 +151,7 @@ public static function placementName( * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -205,6 +206,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException diff --git a/RecommendationEngine/src/V1beta1/Client/UserEventServiceClient.php b/RecommendationEngine/src/V1beta1/Client/UserEventServiceClient.php index ec8443584da..ed1c82f4584 100644 --- a/RecommendationEngine/src/V1beta1/Client/UserEventServiceClient.php +++ b/RecommendationEngine/src/V1beta1/Client/UserEventServiceClient.php @@ -47,6 +47,7 @@ use Google\LongRunning\Client\OperationsClient; use Google\LongRunning\Operation; use GuzzleHttp\Promise\PromiseInterface; +use Psr\Log\LoggerInterface; /** * Service Description: Service for ingesting end user actions on the customer website. @@ -208,8 +209,8 @@ public static function eventStoreName( * listed, then parseName will check each of the supported templates, and return * the first match. * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match * * @return array An associative array from name component IDs to component values. * @@ -217,7 +218,7 @@ public static function eventStoreName( * * @experimental */ - public static function parseName(string $formattedName, string $template = null): array + public static function parseName(string $formattedName, ?string $template = null): array { return self::parseFormattedName($formattedName, $template); } @@ -272,6 +273,9 @@ public static function parseName(string $formattedName, string $template = null) * @type callable $clientCertSource * A callable which returns the client cert as a string. This can be used to * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag * } * * @throws ValidationException