From 48195325ce8d4ba776690f0e319f7c73c3e13e26 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 29 Sep 2026 20:38:33 +0000 Subject: [PATCH 1/8] feat: update generator for GAX V2 --- composer.json | 2 +- src/Ast/PhpClass.php | 29 ++++- src/Generation/GapicClientGenerator.php | 111 ++++++++++-------- src/Generation/ServiceDetails.php | 21 +++- src/Generation/UnitTestsGenerator.php | 10 +- .../src/V1/Client/AssetServiceClient.php | 42 ++----- .../Unit/V1/Client/AssetServiceClientTest.php | 6 +- .../src/V1/Client/AddressesClient.php | 29 ++--- .../src/V1/Client/RegionOperationsClient.php | 21 ++-- .../src/V1/Client/SubnetworksClient.php | 21 ++-- .../Unit/V1/Client/AddressesClientTest.php | 6 +- .../V1/Client/RegionOperationsClientTest.php | 6 +- .../Unit/V1/Client/SubnetworksClientTest.php | 6 +- .../src/V1/Client/ClusterManagerClient.php | 18 +-- .../V1/Client/ClusterManagerClientTest.php | 6 +- .../Client/AutoscalingPolicyServiceClient.php | 19 +-- .../src/V1/Client/BatchControllerClient.php | 43 ++----- .../src/V1/Client/ClusterControllerClient.php | 43 ++----- .../src/V1/Client/JobControllerClient.php | 43 ++----- .../V1/Client/NodeGroupControllerClient.php | 43 ++----- .../src/V1/Client/SessionControllerClient.php | 43 ++----- .../SessionTemplateControllerClient.php | 19 +-- .../Client/WorkflowTemplateServiceClient.php | 43 ++----- .../AutoscalingPolicyServiceClientTest.php | 6 +- .../V1/Client/BatchControllerClientTest.php | 6 +- .../V1/Client/ClusterControllerClientTest.php | 6 +- .../V1/Client/JobControllerClientTest.php | 6 +- .../Client/NodeGroupControllerClientTest.php | 6 +- .../V1/Client/SessionControllerClientTest.php | 6 +- .../SessionTemplateControllerClientTest.php | 6 +- .../WorkflowTemplateServiceClientTest.php | 6 +- .../V1/Client/CloudFunctionsServiceClient.php | 43 ++----- .../CloudFunctionsServiceClientTest.php | 6 +- .../iam/src/V1/Client/IAMPolicyClient.php | 19 +-- .../Unit/V1/Client/IAMPolicyClientTest.php | 6 +- .../V1/Client/KeyManagementServiceClient.php | 19 +-- .../Client/KeyManagementServiceClientTest.php | 6 +- .../src/V2/Client/ConfigServiceV2Client.php | 42 ++----- .../src/V2/Client/LoggingServiceV2Client.php | 18 +-- .../src/V2/Client/MetricsServiceV2Client.php | 18 +-- .../V2/Client/ConfigServiceV2ClientTest.php | 6 +- .../V2/Client/LoggingServiceV2ClientTest.php | 6 +- .../V2/Client/MetricsServiceV2ClientTest.php | 6 +- .../redis/src/V1/Client/CloudRedisClient.php | 44 ++----- .../Unit/V1/Client/CloudRedisClientTest.php | 6 +- .../V2alpha/Client/AnalyticsServiceClient.php | 42 ++----- .../V2alpha/Client/BranchServiceClient.php | 18 +-- .../V2alpha/Client/CatalogServiceClient.php | 18 +-- .../Client/CompletionServiceClient.php | 42 ++----- .../V2alpha/Client/ControlServiceClient.php | 18 +-- .../ConversationalSearchServiceClient.php | 16 +-- .../GenerativeQuestionServiceClient.php | 18 +-- ...MerchantCenterAccountLinkServiceClient.php | 42 ++----- .../src/V2alpha/Client/ModelServiceClient.php | 42 ++----- .../Client/PredictionServiceClient.php | 18 +-- .../V2alpha/Client/ProductServiceClient.php | 42 ++----- .../V2alpha/Client/ProjectServiceClient.php | 42 ++----- .../V2alpha/Client/SearchServiceClient.php | 18 +-- .../Client/ServingConfigServiceClient.php | 18 +-- .../V2alpha/Client/UserEventServiceClient.php | 42 ++----- .../Client/AnalyticsServiceClientTest.php | 6 +- .../Client/BranchServiceClientTest.php | 6 +- .../Client/CatalogServiceClientTest.php | 6 +- .../Client/CompletionServiceClientTest.php | 6 +- .../Client/ControlServiceClientTest.php | 6 +- .../ConversationalSearchServiceClientTest.php | 6 +- .../GenerativeQuestionServiceClientTest.php | 6 +- ...hantCenterAccountLinkServiceClientTest.php | 6 +- .../V2alpha/Client/ModelServiceClientTest.php | 6 +- .../Client/PredictionServiceClientTest.php | 6 +- .../Client/ProductServiceClientTest.php | 6 +- .../Client/ProjectServiceClientTest.php | 6 +- .../Client/SearchServiceClientTest.php | 6 +- .../Client/ServingConfigServiceClientTest.php | 6 +- .../Client/UserEventServiceClientTest.php | 6 +- .../src/V1/Client/SecurityCenterClient.php | 43 ++----- .../V1/Client/SecurityCenterClientTest.php | 6 +- .../src/V1/Client/DatabaseAdminClient.php | 43 ++----- .../V1/Client/DatabaseAdminClientTest.php | 6 +- .../speech/src/V1/Client/AdaptationClient.php | 18 +-- .../speech/src/V1/Client/SpeechClient.php | 42 ++----- .../Unit/V1/Client/AdaptationClientTest.php | 6 +- .../tests/Unit/V1/Client/SpeechClientTest.php | 6 +- .../V4beta1/Client/CompanyServiceClient.php | 18 +-- .../src/V4beta1/Client/CompletionClient.php | 18 +-- .../src/V4beta1/Client/EventServiceClient.php | 18 +-- .../src/V4beta1/Client/JobServiceClient.php | 42 ++----- .../V4beta1/Client/TenantServiceClient.php | 18 +-- .../Client/CompanyServiceClientTest.php | 6 +- .../V4beta1/Client/CompletionClientTest.php | 6 +- .../V4beta1/Client/EventServiceClientTest.php | 6 +- .../V4beta1/Client/JobServiceClientTest.php | 6 +- .../Client/TenantServiceClientTest.php | 6 +- .../Client/VideoIntelligenceServiceClient.php | 42 ++----- .../VideoIntelligenceServiceClientTest.php | 6 +- .../Basic/out/src/Client/BasicClient.php | 18 +-- .../out/tests/Unit/Client/BasicClientTest.php | 6 +- .../src/Client/BasicAutoPopulationClient.php | 18 +-- .../Client/BasicAutoPopulationClientTest.php | 6 +- .../src/Client/BasicBidiStreamingClient.php | 16 +-- .../Client/BasicBidiStreamingClientTest.php | 6 +- .../src/Client/BasicClientStreamingClient.php | 16 +-- .../Client/BasicClientStreamingClientTest.php | 6 +- .../out/src/Client/LibraryClient.php | 45 +++---- .../tests/Unit/Client/LibraryClientTest.php | 6 +- .../Client/BasicExplicitPaginatedClient.php | 18 +-- .../BasicExplicitPaginatedClientTest.php | 6 +- .../out/src/Client/BasicGrpcOnlyClient.php | 18 +-- .../Unit/Client/BasicGrpcOnlyClientTest.php | 6 +- .../out/src/Client/BasicLroClient.php | 42 ++----- .../tests/Unit/Client/BasicLroClientTest.php | 6 +- .../out/src/Client/BasicOneofClient.php | 18 +-- .../Unit/Client/BasicOneofClientTest.php | 6 +- .../out/src/Client/BasicPaginatedClient.php | 18 +-- .../Unit/Client/BasicPaginatedClientTest.php | 6 +- .../src/Client/BasicServerStreamingClient.php | 16 +-- .../Client/BasicServerStreamingClientTest.php | 6 +- .../out/src/Client/CustomLroClient.php | 29 ++--- .../src/Client/CustomLroOperationsClient.php | 21 ++-- .../tests/Unit/Client/CustomLroClientTest.php | 6 +- .../Client/CustomLroOperationsClientTest.php | 6 +- .../src/Client/DeprecatedServiceClient.php | 18 +-- .../Client/DeprecatedServiceClientTest.php | 6 +- .../HeuristicPaginationClientClient.php | 21 ++-- .../HeuristicPaginationClientClientTest.php | 6 +- .../out/src/Client/DisableSnippetsClient.php | 18 +-- .../Unit/Client/DisableSnippetsClientTest.php | 6 +- .../GrpcServiceConfigWithRetry1Client.php | 42 ++----- .../GrpcServiceConfigWithRetry1ClientTest.php | 6 +- .../out/src/Client/ResourceNamesClient.php | 18 +-- .../Unit/Client/ResourceNamesClientTest.php | 6 +- .../out/src/Client/ResumableUploadClient.php | 18 +-- .../Unit/Client/ResumableUploadClientTest.php | 6 +- .../out/src/Client/RoutingHeadersClient.php | 18 +-- .../Unit/Client/RoutingHeadersClientTest.php | 6 +- 135 files changed, 998 insertions(+), 1379 deletions(-) diff --git a/composer.json b/composer.json index 86dbdc72f..fe7e587a3 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.5", - "google/gax": "^1.48.0", + "google/gax": "^2.0", "opis/closure": "^4.5" }, "scripts": { diff --git a/src/Ast/PhpClass.php b/src/Ast/PhpClass.php index 1b6b8b8a0..edee0e1da 100644 --- a/src/Ast/PhpClass.php +++ b/src/Ast/PhpClass.php @@ -43,12 +43,16 @@ public function __construct( public bool $abstract ) { $this->traits = Set::new(); + $this->interfaces = Set::new(); $this->members = Vector::new(); } /** @var Set *Readonly* Set of ResolvedType; the traits used by this class. */ public Set $traits; + /** @var Set *Readonly* Set of ResolvedType; the interfaces implemented by this class. */ + public Set $interfaces; + /** @var Vector *Readonly* Vector of PhpClassMember; all members of this class. */ public Vector $members; @@ -71,6 +75,25 @@ public function withTrait(?ResolvedType $trait): PhpClass return $this->clone(fn ($clone) => $clone->traits = $clone->traits->add($trait)); } + /** + * Create a class with an additional interface. + * + * @param ?ResolvedType $interface Interface to add. Must be a type which is an interface. + * + * @return PhpClass + */ + public function withInterface(?ResolvedType $interface): PhpClass + { + // No-op, just return the same class. + if (is_null($interface)) { + return $this; + } + if (!$interface->type->isClass()) { + throw new Exception('Only classes (interfaces) may be used as an interface.'); + } + return $this->clone(fn ($clone) => $clone->interfaces = $clone->interfaces->add($interface)); + } + /** * Create a class with an additional member. * @@ -120,8 +143,10 @@ public function toCode(): string return $this->phpDocToCode() . - "{$class} {$this->type->name}{$extends}\n" . - "{\n" . + "{$class} {$this->type->name}{$extends}" . + (count($this->interfaces) >= 1 ? ' implements ' : '') . + $this->interfaces->toVector()->map(fn ($x) => "{$x->toCode()}")->join(', ') . + "\n{\n" . $this->traits->toVector()->map(fn ($x) => "use {$x->toCode()};\n")->join() . (count($this->traits) >= 1 ? "\n" : '') . $this->members->map(fn ($x) => $x->toCode() . "\n")->join() . diff --git a/src/Generation/GapicClientGenerator.php b/src/Generation/GapicClientGenerator.php index 8862e584c..565338a0d 100644 --- a/src/Generation/GapicClientGenerator.php +++ b/src/Generation/GapicClientGenerator.php @@ -21,12 +21,16 @@ use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PathTemplate; use Google\ApiCore\RequestParamsHeaderDescriptor; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\GrpcTransport; use Google\ApiCore\Transport\RestTransport; use Google\ApiCore\Transport\TransportInterface; @@ -106,9 +110,7 @@ private function generateImpl(): PhpFile private function generateClass(): PhpClass { - return AST::class( - $this->serviceDetails->gapicClientType, - final: true) + return AST::class($this->serviceDetails->gapicClientType, final: true) ->withPhpDoc(PhpDoc::block( PhpDoc::preFormattedText( $this->serviceDetails->docLines->skip(1) @@ -139,6 +141,17 @@ private function generateClass(): PhpClass !$this->serviceDetails->isDeprecated ? null : PhpDoc::deprecated(ServiceDetails::DEPRECATED_MSG), $this->serviceDetails->streamingOnly ? null : $this->magicAsyncDocs(), )) + ->withInterface($this->ctx->type(Type::fromName(ServiceInterface::class))) + ->withInterface( + $this->serviceDetails->hasLro + ? $this->ctx->type(Type::fromName(LongRunningOperationProviderInterface::class)) + : null + ) + ->withInterface( + $this->serviceDetails->hasIamMethods() + ? $this->ctx->type(Type::fromName(IamProviderInterface::class)) + : null + ) ->withTrait($this->ctx->type(Type::fromName(GapicClientTrait::class))) ->withTrait( $this->serviceDetails->hasResources ? $this->ctx->type(Type::fromName(ResourceHelperTrait::class)): null @@ -264,9 +277,9 @@ private function magicMethod(): ?PhpClassMember // params $methodVar = AST::var('method'); - $methodParam = AST::param(null, $methodVar); + $methodParam = AST::param(ResolvedType::string(), $methodVar); $argsVar = AST::var('args'); - $argsParam = AST::param(null, $argsVar); + $argsParam = AST::param(ResolvedType::array(), $argsVar); $triggerError = AST::call(AST::TRIGGER_ERROR)(AST::concat('Call to undefined method ', AST::__CLASS__, AST::interpolatedString('::$method()')), AST::E_USER_ERROR); return AST::method('__call') @@ -309,6 +322,7 @@ private function operationMethods(): Vector // getOperationsClient returns the operation client instance. $getOperationsClient = AST::method('getOperationsClient') ->withAccess(Access::PUBLIC) + ->withReturnType($this->ctx->type($ctype)) ->withBody(AST::block( AST::return(AST::access(AST::THIS, $this->operationsClient())) )) @@ -330,6 +344,7 @@ private function operationMethods(): Vector : AST::array([]); $getDefaultOperationDescriptor = AST::method('getDefaultOperationDescriptor') ->withAccess(Access::PRIVATE) + ->withReturnType(ResolvedType::array()) ->withBody(AST::block( AST::return($defaultOperationDescriptor) )) @@ -347,7 +362,11 @@ private function operationMethods(): Vector $operation = AST::var('operation'); $resumeOperation = AST::method('resumeOperation') ->withAccess(Access::PUBLIC) - ->withParams(AST::param(null, $operationName), AST::param(null, $methodName, AST::NULL)) + ->withParams( + AST::param(ResolvedType::string(), $operationName), + AST::param(ResolvedType::string(true), $methodName, AST::NULL) + ) + ->withReturnType($this->ctx->type(Type::fromName(OperationResponse::class))) ->withBody(AST::block( AST::assign($options, AST::ternary( AST::binaryOp( @@ -387,39 +406,38 @@ private function operationMethods(): Vector )); $methods = $methods->append($resumeOperation); - // write createOperationsClient method for new surface clients - // @TODO: Remove this once GAX V2 is released - $operationsClientType = $this->serviceDetails->hasCustomOp - ? $this->ctx->type($this->serviceDetails->customOperationServiceClientType) - : $this->ctx->type(Type::fromName(OperationsClient::class)); - $createOperationsClient = AST::method('createOperationsClient') - ->withAccess(Access::PRIVATE) - ->withParams(AST::param(ResolvedType::array(), $options)) - ->withBody(AST::block( - '// Unset client-specific configuration options', - AST::call(AST::method('unset'))( - AST::index($options, 'serviceName'), - AST::index($options, 'clientConfig'), - AST::index($options, 'descriptorsConfigPath'), - ), - PHP_EOL, - AST::if( - AST::call(AST::method('isset'))(AST::index($options, 'operationsClient')) - )->then(AST::return(AST::index($options, 'operationsClient'))), - PHP_EOL, - AST::return(AST::new($operationsClientType)($options)) - )) - ->withPhpDoc(PhpDoc::block( - PhpDoc::text( - 'Create the default operation client for the service.', - ), - PhpDoc::param( - AST::param(ResolvedType::array(), $options), - PhpDoc::text('ClientOptions for the client.') - ), - PhpDoc::return($operationsClientType) - )); - $methods = $methods->append($createOperationsClient); + if ($this->serviceDetails->hasCustomOp) { + $operationsClientType = $this->ctx->type($this->serviceDetails->customOperationServiceClientType); + $createOperationsClient = AST::method('createOperationsClient') + ->withAccess(Access::PRIVATE) + ->withParams(AST::param(ResolvedType::array(), $options)) + ->withReturnType($operationsClientType) + ->withBody(AST::block( + '// Unset client-specific configuration options', + AST::call(AST::method('unset'))( + AST::index($options, 'serviceName'), + AST::index($options, 'clientConfig'), + AST::index($options, 'descriptorsConfigPath'), + ), + PHP_EOL, + AST::if( + AST::call(AST::method('isset'))(AST::index($options, 'operationsClient')) + )->then(AST::return(AST::index($options, 'operationsClient'))), + PHP_EOL, + AST::return(AST::new($operationsClientType)($options)) + )) + ->withPhpDoc(PhpDoc::block( + PhpDoc::text( + 'Create the default operation client for the service.', + ), + PhpDoc::param( + AST::param(ResolvedType::array(), $options), + PhpDoc::text('ClientOptions for the client.') + ), + PhpDoc::return($operationsClientType) + )); + $methods = $methods->append($createOperationsClient); + } return $methods; } @@ -498,13 +516,6 @@ private function getClientDefaults(): PhpClassMember 'descriptorsConfigPath' => AST::concat(AST::__DIR__, "/../resources/$descriptorConfigFilename"), ]; - // TODO: Consolidate setting all the known array values together. - // We do this here to maintain the existing sensible ordering. - if ($this->serviceDetails->transportType !== Transport::REST) { - $clientDefaultValues['gcpApiConfigPath'] = - AST::concat(AST::__DIR__, "/../resources/{$this->serviceDetails->grpcConfigFilename}"); - } - $credentialsConfig = [ 'defaultScopes' => AST::access(AST::SELF, $this->serviceScopes()), ]; @@ -524,6 +535,7 @@ private function getClientDefaults(): PhpClassMember return AST::method('getClientDefaults') ->withAccess(Access::PRIVATE, Access::STATIC) + ->withReturnType(ResolvedType::array()) ->withBody(AST::block( AST::return(AST::array($clientDefaultValues)) )); @@ -537,6 +549,7 @@ private function defaultTransport() return AST::method('defaultTransport') ->withPhpDocText('Implements GapicClientTrait::defaultTransport.') ->withAccess(Access::PRIVATE, Access::STATIC) + ->withReturnType(ResolvedType::string()) ->withBody(AST::block( AST::return(AST::literal("'rest'")) )); @@ -548,6 +561,7 @@ private function supportedTransports() return AST::method('supportedTransports') ->withPhpDocText('Implements ClientOptionsTrait::supportedTransports.') ->withAccess(Access::PRIVATE, Access::STATIC) + ->withReturnType(ResolvedType::array()) ->withBody(AST::block( AST::return(AST::array(['rest'])) )); @@ -557,6 +571,7 @@ private function supportedTransports() return AST::method('supportedTransports') ->withPhpDocText('Implements ClientOptionsTrait::supportedTransports.') ->withAccess(Access::PRIVATE, Access::STATIC) + ->withReturnType(ResolvedType::array()) ->withBody(AST::block( AST::return(AST::array(['grpc', 'grpc-fallback'])) )); @@ -678,14 +693,14 @@ private function construct(): PhpClassMember PhpDoc::type( Vector::new([ $ctx->type(Type::fromName(FetchAuthTokenInterface::class)), - $ctx->type(Type::fromName(CredentialsWrapper::class)) + $ctx->type(Type::fromName(HeaderCredentialsInterface::class)) ]), 'credentials', PhpDoc::text( 'This option should only be used with a pre-constructed', $ctx->type(Type::fromName(FetchAuthTokenInterface::class)), 'or', - $ctx->type(Type::fromName(CredentialsWrapper::class)), + $ctx->type(Type::fromName(HeaderCredentialsInterface::class)), 'object. Note that when one of these objects are provided, any settings in $credentialsConfig', 'will be ignored.', PhpDoc::newLine(), diff --git a/src/Generation/ServiceDetails.php b/src/Generation/ServiceDetails.php index 2f4cc1002..9ceff2b0a 100644 --- a/src/Generation/ServiceDetails.php +++ b/src/Generation/ServiceDetails.php @@ -81,9 +81,6 @@ class ServiceDetails /** @var string *Readonly* The descriptor-config filename. */ public string $descriptorConfigFilename; - /** @var string *Readonly* The grpc-config filename. */ - public string $grpcConfigFilename; - /** @var string *Readonly* The rest-config filename. */ public string $restConfigFilename; @@ -179,7 +176,6 @@ public function __construct( ->map(fn ($x) => trim($x)); $this->clientConfigFilename = Helpers::toSnakeCase($desc->getName()) . '_client_config.json'; $this->descriptorConfigFilename = Helpers::toSnakeCase($desc->getName()) . '_descriptor_config.php'; - $this->grpcConfigFilename = Helpers::toSnakeCase($desc->getName()) . '_grpc_config.json'; $this->restConfigFilename = Helpers::toSnakeCase($desc->getName()) . '_rest_client_config.php'; $this->methods = Vector::new($desc->getMethod())->map(fn ($x) => MethodDetails::create($this, $x)) ->orderBy(fn ($x) => $x->name); @@ -336,4 +332,21 @@ public function hasResumableUploadMethods(): bool { return $this->methods->any(fn ($x) => $x->methodType === MethodDetails::RESUMABLE_UPLOAD); } + + public function hasIamMethods(): bool + { + return $this->methods->any( + fn ($x) => $x->methodName === 'getIamPolicy' + && $x->requestType->getFullname() === '\Google\Cloud\Iam\V1\GetIamPolicyRequest' + && $x->methodReturnType?->getFullname() === '\Google\Cloud\Iam\V1\Policy' + ) && $this->methods->any( + fn ($x) => $x->methodName === 'setIamPolicy' + && $x->requestType->getFullname() === '\Google\Cloud\Iam\V1\SetIamPolicyRequest' + && $x->methodReturnType?->getFullname() === '\Google\Cloud\Iam\V1\Policy' + ) && $this->methods->any( + fn ($x) => $x->methodName === 'testIamPermissions' + && $x->requestType->getFullname() === '\Google\Cloud\Iam\V1\TestIamPermissionsRequest' + && $x->methodReturnType?->getFullname() === '\Google\Cloud\Iam\V1\TestIamPermissionsResponse' + ); + } } diff --git a/src/Generation/UnitTestsGenerator.php b/src/Generation/UnitTestsGenerator.php index 818eb21a7..62d598739 100644 --- a/src/Generation/UnitTestsGenerator.php +++ b/src/Generation/UnitTestsGenerator.php @@ -21,7 +21,7 @@ use Exception; use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\ServerStream; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -168,15 +168,11 @@ private function createCredentials(): PhpClassMember ->withAccess(Access::PRIVATE) ->withBody(AST::block( AST::return( - AST::call(AST::THIS, AST::method('getMockBuilder'))( - AST::access($this->ctx->type(Type::fromName(CredentialsWrapper::class)), AST::CLS) - ) - ->instanceCall(AST::method('disableOriginalConstructor'))() - ->instanceCall(AST::method('getMock'))() + AST::new($this->ctx->type(Type::fromName(InsecureCredentialsWrapper::class)))() ) )) ->withPhpDoc(PhpDoc::block( - PhpDoc::return($this->ctx->type(Type::fromName(CredentialsWrapper::class))) + PhpDoc::return($this->ctx->type(Type::fromName(InsecureCredentialsWrapper::class))) )); } diff --git a/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php b/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php index 71802b333..188cdd5bd 100644 --- a/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php +++ b/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php @@ -25,13 +25,15 @@ namespace Google\Cloud\Asset\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -108,7 +110,7 @@ * @method PromiseInterface updateFeedAsync(UpdateFeedRequest $request, array $optionalArgs = []) * @method PromiseInterface updateSavedQueryAsync(UpdateSavedQueryRequest $request, array $optionalArgs = []) */ -final class AssetServiceClient +final class AssetServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -143,14 +145,13 @@ final class AssetServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/asset_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/asset_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/asset_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -167,7 +168,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -183,7 +184,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -191,25 +192,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a feed * resource. @@ -434,11 +416,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'cloudasset.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -501,7 +483,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php b/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php index 124652424..37b5af819 100644 --- a/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php +++ b/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Asset\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Asset\V1\AnalyzeIamPolicyLongrunningRequest; @@ -101,10 +101,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return AssetServiceClient */ diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php index 6544ab806..892ac6804 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php @@ -25,12 +25,13 @@ namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -55,7 +56,7 @@ * @method PromiseInterface insertAsync(InsertAddressRequest $request, array $optionalArgs = []) * @method PromiseInterface listAsync(ListAddressesRequest $request, array $optionalArgs = []) */ -final class AddressesClient +final class AddressesClient implements ServiceInterface { use GapicClientTrait; @@ -90,7 +91,7 @@ final class AddressesClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -110,13 +111,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -128,13 +129,13 @@ private static function supportedTransports() * * @return RegionOperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): RegionOperationsClient { return $this->operationsClient; } /** Return the default longrunning operation descriptor config. */ - private function getDefaultOperationDescriptor() + private function getDefaultOperationDescriptor(): array { return [ 'additionalArgumentMethods' => [ @@ -166,7 +167,7 @@ private function getDefaultOperationDescriptor() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : $this->getDefaultOperationDescriptor(); $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -181,7 +182,7 @@ public function resumeOperation($operationName, $methodName = null) * * @return RegionOperationsClient */ - private function createOperationsClient(array $options) + private function createOperationsClient(array $options): RegionOperationsClient { // Unset client-specific configuration options unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); @@ -202,11 +203,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'compute.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -266,7 +267,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php index 54101aad5..4bcd02a55 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php @@ -25,10 +25,11 @@ namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface getAsync(GetRegionOperationRequest $request, array $optionalArgs = []) */ -final class RegionOperationsClient +final class RegionOperationsClient implements ServiceInterface { use GapicClientTrait; @@ -79,7 +80,7 @@ final class RegionOperationsClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -99,13 +100,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -121,11 +122,11 @@ private static function supportedTransports() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'compute.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -184,7 +185,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php index eb7dad52a..ad3c15a1a 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php @@ -25,11 +25,12 @@ namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface listUsableAsync(ListUsableSubnetworksRequest $request, array $optionalArgs = []) */ -final class SubnetworksClient +final class SubnetworksClient implements ServiceInterface { use GapicClientTrait; @@ -78,7 +79,7 @@ final class SubnetworksClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -98,13 +99,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -120,11 +121,11 @@ private static function supportedTransports() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'compute.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -183,7 +184,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php index 8e264706d..40abf525a 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Compute\V1\Address; @@ -55,10 +55,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return AddressesClient */ diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php index 75cded762..e6fa384e6 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Compute\V1\Client\RegionOperationsClient; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return RegionOperationsClient */ diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php index 501f63615..fe550b84a 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Compute\V1\Client\SubnetworksClient; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SubnetworksClient */ diff --git a/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php b/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php index b385dce3d..c87ae00b5 100644 --- a/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php +++ b/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php @@ -25,12 +25,13 @@ namespace Google\Cloud\Container\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -132,7 +133,7 @@ * @method PromiseInterface updateMasterAsync(UpdateMasterRequest $request, array $optionalArgs = []) * @method PromiseInterface updateNodePoolAsync(UpdateNodePoolRequest $request, array $optionalArgs = []) */ -final class ClusterManagerClient +final class ClusterManagerClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -165,14 +166,13 @@ final class ClusterManagerClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/cluster_manager_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -278,11 +278,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'container.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -344,7 +344,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php b/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php index 47228a78b..8d4c6a1dc 100644 --- a/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php +++ b/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Container\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Container\V1\AddonsConfig; @@ -100,10 +100,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ClusterManagerClient */ diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php index afb7090ef..292e2f8a9 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php @@ -25,12 +25,14 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -69,7 +71,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class AutoscalingPolicyServiceClient +final class AutoscalingPolicyServiceClient implements ServiceInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -102,14 +104,13 @@ final class AutoscalingPolicyServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/autoscaling_policy_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/autoscaling_policy_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/autoscaling_policy_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -249,11 +250,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -315,7 +316,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php index 42b0e9646..5922bbeb6 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -69,7 +72,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class BatchControllerClient +final class BatchControllerClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -104,14 +107,13 @@ final class BatchControllerClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/batch_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/batch_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/batch_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -128,7 +130,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -144,7 +146,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -152,25 +154,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a batch * resource. @@ -261,11 +244,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -328,7 +311,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php index fcd304b11..91620f2a2 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -80,7 +83,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class ClusterControllerClient +final class ClusterControllerClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -115,14 +118,13 @@ final class ClusterControllerClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/cluster_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -139,7 +141,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -155,7 +157,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -163,25 +165,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a cluster * resource. @@ -318,11 +301,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -385,7 +368,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php index cbb96dc48..f7f06b0ec 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php @@ -25,12 +25,15 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -68,7 +71,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class JobControllerClient +final class JobControllerClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; @@ -102,14 +105,13 @@ final class JobControllerClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/job_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/job_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/job_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -126,7 +128,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -142,7 +144,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -150,25 +152,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Constructor. * @@ -178,11 +161,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -245,7 +228,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php index c91ac02e7..df57f35bc 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php @@ -25,12 +25,15 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -68,7 +71,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class NodeGroupControllerClient +final class NodeGroupControllerClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -103,14 +106,13 @@ final class NodeGroupControllerClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/node_group_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/node_group_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/node_group_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -127,7 +129,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -143,7 +145,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -151,25 +153,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a * cluster_region resource. @@ -244,11 +227,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -311,7 +294,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php index fd0fa420c..63ffeda06 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -71,7 +74,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class SessionControllerClient +final class SessionControllerClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -106,14 +109,13 @@ final class SessionControllerClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/session_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/session_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/session_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -130,7 +132,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -146,7 +148,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -154,25 +156,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -283,11 +266,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -350,7 +333,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php index 3c838d7b0..46f92457c 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php @@ -25,12 +25,14 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -68,7 +70,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class SessionTemplateControllerClient +final class SessionTemplateControllerClient implements ServiceInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -101,14 +103,13 @@ final class SessionTemplateControllerClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/session_template_controller_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/session_template_controller_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/session_template_controller_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -210,11 +211,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -276,7 +277,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php index 1444f773a..a7a4393cf 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -77,7 +80,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class WorkflowTemplateServiceClient +final class WorkflowTemplateServiceClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -112,14 +115,13 @@ final class WorkflowTemplateServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/workflow_template_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/workflow_template_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/workflow_template_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -136,7 +138,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -152,7 +154,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -160,25 +162,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a * cluster_region resource. @@ -391,11 +374,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'dataproc.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -458,7 +441,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php index ea94bc345..b8d000791 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\AutoscalingPolicy; @@ -60,10 +60,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return AutoscalingPolicyServiceClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php index 7a8f1c147..1aae8ae07 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Batch; @@ -59,10 +59,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BatchControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php index a584c5a7f..f462cb968 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Client\ClusterControllerClient; @@ -65,10 +65,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ClusterControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php index 395339baa..2226f7be9 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\CancelJobRequest; @@ -63,10 +63,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return JobControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php index d2489c9fc..cdda3cc9d 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Client\NodeGroupControllerClient; @@ -56,10 +56,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return NodeGroupControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php index 3c48e8114..c7d182a03 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Client\SessionControllerClient; @@ -59,10 +59,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SessionControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php index 52c6e83c9..469f0100f 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Client\SessionTemplateControllerClient; @@ -56,10 +56,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SessionTemplateControllerClient */ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php index c9cb71b99..32b6d4c48 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Dataproc\V1\Client\WorkflowTemplateServiceClient; @@ -63,10 +63,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return WorkflowTemplateServiceClient */ diff --git a/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php b/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php index 8f7ca7207..d1c0ba032 100644 --- a/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php +++ b/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\Functions\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -80,7 +83,7 @@ * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateFunctionAsync(UpdateFunctionRequest $request, array $optionalArgs = []) */ -final class CloudFunctionsServiceClient +final class CloudFunctionsServiceClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -115,14 +118,13 @@ final class CloudFunctionsServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/cloud_functions_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_functions_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_functions_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -139,7 +141,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -155,7 +157,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -163,25 +165,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a * cloud_function resource. @@ -294,11 +277,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'cloudfunctions.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -361,7 +344,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php b/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php index 8585edf9a..4e707887c 100644 --- a/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php +++ b/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Functions\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Functions\V1\CallFunctionRequest; @@ -66,10 +66,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CloudFunctionsServiceClient */ diff --git a/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php b/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php index 3ea21e76b..bfdaf9088 100644 --- a/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php +++ b/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php @@ -25,10 +25,12 @@ namespace Google\Cloud\Iam\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -74,7 +76,7 @@ * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ -final class IAMPolicyClient +final class IAMPolicyClient implements ServiceInterface, IamProviderInterface { use GapicClientTrait; @@ -104,14 +106,13 @@ final class IAMPolicyClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/iam_policy_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/iam_policy_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/iam_policy_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -132,11 +133,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'iam-meta-api.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -198,7 +199,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php b/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php index d47cb4e1c..6ef796b4f 100644 --- a/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php +++ b/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Iam\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Iam\V1\Client\IAMPolicyClient; @@ -48,10 +48,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return IAMPolicyClient */ diff --git a/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php b/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php index ce7940b22..f513cbcef 100644 --- a/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php +++ b/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php @@ -25,12 +25,14 @@ namespace Google\Cloud\Kms\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -128,7 +130,7 @@ * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ -final class KeyManagementServiceClient +final class KeyManagementServiceClient implements ServiceInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -162,14 +164,13 @@ final class KeyManagementServiceClient 'https://www.googleapis.com/auth/cloudkms', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/key_management_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/key_management_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/key_management_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -319,11 +320,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'cloudkms.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -385,7 +386,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php b/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php index 34d6eee05..8e6db5a0e 100644 --- a/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php +++ b/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Kms\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Iam\V1\GetIamPolicyRequest; @@ -93,10 +93,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return KeyManagementServiceClient */ diff --git a/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php index 0ad58080b..3dde51fd1 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php @@ -25,13 +25,15 @@ namespace Google\Cloud\Logging\V2\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -122,7 +124,7 @@ * @method PromiseInterface updateSinkAsync(UpdateSinkRequest $request, array $optionalArgs = []) * @method PromiseInterface updateViewAsync(UpdateViewRequest $request, array $optionalArgs = []) */ -final class ConfigServiceV2Client +final class ConfigServiceV2Client implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -160,14 +162,13 @@ final class ConfigServiceV2Client private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/config_service_v2_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/config_service_v2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/config_service_v2_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -184,7 +185,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -200,7 +201,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -208,25 +209,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a * billing_account resource. @@ -1055,11 +1037,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'logging.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -1122,7 +1104,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php index 45f3efd71..253d89e27 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php @@ -26,12 +26,13 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -61,7 +62,7 @@ * @method PromiseInterface listMonitoredResourceDescriptorsAsync(ListMonitoredResourceDescriptorsRequest $request, array $optionalArgs = []) * @method PromiseInterface writeLogEntriesAsync(WriteLogEntriesRequest $request, array $optionalArgs = []) */ -final class LoggingServiceV2Client +final class LoggingServiceV2Client implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -98,14 +99,13 @@ final class LoggingServiceV2Client 'https://www.googleapis.com/auth/logging.write', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/logging_service_v2_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/logging_service_v2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/logging_service_v2_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -303,11 +303,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'logging.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -369,7 +369,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php index c700a32dc..bc00b0098 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php @@ -25,12 +25,13 @@ namespace Google\Cloud\Logging\V2\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -60,7 +61,7 @@ * @method PromiseInterface listLogMetricsAsync(ListLogMetricsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateLogMetricAsync(UpdateLogMetricRequest $request, array $optionalArgs = []) */ -final class MetricsServiceV2Client +final class MetricsServiceV2Client implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -97,14 +98,13 @@ final class MetricsServiceV2Client 'https://www.googleapis.com/auth/logging.write', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/metrics_service_v2_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/metrics_service_v2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/metrics_service_v2_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -182,11 +182,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'logging.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -248,7 +248,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php index a4e0a05cc..fdd9c8f31 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Logging\Tests\Unit\V2\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Logging\V2\Client\ConfigServiceV2Client; @@ -92,10 +92,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ConfigServiceV2Client */ diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php index a1e709afd..6e410559d 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php @@ -24,7 +24,7 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Api\MonitoredResourceDescriptor; @@ -58,10 +58,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return LoggingServiceV2Client */ diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php index 35ce817fb..bda4a13ba 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Logging\Tests\Unit\V2\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Logging\V2\Client\MetricsServiceV2Client; @@ -51,10 +51,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return MetricsServiceV2Client */ diff --git a/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php b/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php index 6a51510d0..e98a5e705 100644 --- a/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php +++ b/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php @@ -25,13 +25,15 @@ namespace Google\Cloud\Redis\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -95,7 +97,7 @@ * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ -final class CloudRedisClient +final class CloudRedisClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -130,14 +132,13 @@ final class CloudRedisClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/cloud_redis_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_redis_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_redis_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -145,7 +146,7 @@ private static function getClientDefaults() } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'grpc', @@ -158,7 +159,7 @@ private static function supportedTransports() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -174,7 +175,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -182,25 +183,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a instance * resource. @@ -271,11 +253,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'redis.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -335,7 +317,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php b/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php index a23e92528..e48df40a6 100644 --- a/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php +++ b/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Redis\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Location\GetLocationRequest; @@ -71,10 +71,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CloudRedisClient */ diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php index 2513cc917..532d19b01 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php @@ -27,11 +27,13 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -54,7 +56,7 @@ * * @method PromiseInterface exportAnalyticsMetricsAsync(ExportAnalyticsMetricsRequest $request, array $optionalArgs = []) */ -final class AnalyticsServiceClient +final class AnalyticsServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; @@ -88,14 +90,13 @@ final class AnalyticsServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/analytics_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/analytics_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/analytics_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -114,7 +115,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -132,7 +133,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -140,25 +141,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Constructor. * @@ -168,11 +150,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -237,7 +219,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php index 841f5f973..0a0613235 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -64,7 +65,7 @@ * @method PromiseInterface getBranchAsync(GetBranchRequest $request, array $optionalArgs = []) * @method PromiseInterface listBranchesAsync(ListBranchesRequest $request, array $optionalArgs = []) */ -final class BranchServiceClient +final class BranchServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -97,14 +98,13 @@ final class BranchServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/branch_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/branch_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/branch_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -196,11 +196,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -264,7 +264,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php index 8467b9f3e..15a789873 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -82,7 +83,7 @@ * @method PromiseInterface updateCatalogAsync(UpdateCatalogRequest $request, array $optionalArgs = []) * @method PromiseInterface updateCompletionConfigAsync(UpdateCompletionConfigRequest $request, array $optionalArgs = []) */ -final class CatalogServiceClient +final class CatalogServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -115,14 +116,13 @@ final class CatalogServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/catalog_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/catalog_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/catalog_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -278,11 +278,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -346,7 +346,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php index 89ab74c4a..80d86a2dc 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php @@ -27,12 +27,14 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -64,7 +66,7 @@ * @method PromiseInterface completeQueryAsync(CompleteQueryRequest $request, array $optionalArgs = []) * @method PromiseInterface importCompletionDataAsync(ImportCompletionDataRequest $request, array $optionalArgs = []) */ -final class CompletionServiceClient +final class CompletionServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -99,14 +101,13 @@ final class CompletionServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/completion_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/completion_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/completion_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -125,7 +126,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -143,7 +144,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -151,25 +152,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a catalog * resource. @@ -226,11 +208,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -295,7 +277,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php index da1d6c71f..cb4940ca1 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -64,7 +65,7 @@ * @method PromiseInterface listControlsAsync(ListControlsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateControlAsync(UpdateControlRequest $request, array $optionalArgs = []) */ -final class ControlServiceClient +final class ControlServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -97,14 +98,13 @@ final class ControlServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/control_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/control_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/control_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -196,11 +196,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -264,7 +264,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php index 254645805..361e6fc24 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\ServerStream; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -56,7 +57,7 @@ * * @experimental */ -final class ConversationalSearchServiceClient +final class ConversationalSearchServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -89,14 +90,13 @@ final class ConversationalSearchServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/conversational_search_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/conversational_search_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/conversational_search_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -166,11 +166,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php index b0d0d4dfb..f797e1bfb 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -66,7 +67,7 @@ * @method PromiseInterface updateGenerativeQuestionConfigAsync(UpdateGenerativeQuestionConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface updateGenerativeQuestionsFeatureConfigAsync(UpdateGenerativeQuestionsFeatureConfigRequest $request, array $optionalArgs = []) */ -final class GenerativeQuestionServiceClient +final class GenerativeQuestionServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -99,14 +100,13 @@ final class GenerativeQuestionServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/generative_question_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/generative_question_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/generative_question_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -174,11 +174,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -242,7 +242,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php index 3b119c514..e7f05271c 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php @@ -27,12 +27,14 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -63,7 +65,7 @@ * @method PromiseInterface deleteMerchantCenterAccountLinkAsync(DeleteMerchantCenterAccountLinkRequest $request, array $optionalArgs = []) * @method PromiseInterface listMerchantCenterAccountLinksAsync(ListMerchantCenterAccountLinksRequest $request, array $optionalArgs = []) */ -final class MerchantCenterAccountLinkServiceClient +final class MerchantCenterAccountLinkServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -98,14 +100,13 @@ final class MerchantCenterAccountLinkServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/merchant_center_account_link_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/merchant_center_account_link_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/merchant_center_account_link_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -124,7 +125,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -142,7 +143,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -150,25 +151,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a catalog * resource. @@ -249,11 +231,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -319,7 +301,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php index f305753d0..f9ffe08b2 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php @@ -27,13 +27,15 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -85,7 +87,7 @@ * @method PromiseInterface tuneModelAsync(TuneModelRequest $request, array $optionalArgs = []) * @method PromiseInterface updateModelAsync(UpdateModelRequest $request, array $optionalArgs = []) */ -final class ModelServiceClient +final class ModelServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -120,14 +122,13 @@ final class ModelServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/model_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/model_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/model_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -146,7 +147,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -164,7 +165,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -172,25 +173,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a catalog * resource. @@ -271,11 +253,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -340,7 +322,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php index 2b201f13d..dd3f50004 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -55,7 +56,7 @@ * * @method PromiseInterface predictAsync(PredictRequest $request, array $optionalArgs = []) */ -final class PredictionServiceClient +final class PredictionServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -88,14 +89,13 @@ final class PredictionServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/prediction_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/prediction_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/prediction_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -167,11 +167,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -235,7 +235,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php index 3064ac771..a35cc6083 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php @@ -27,13 +27,15 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -92,7 +94,7 @@ * @method PromiseInterface setInventoryAsync(SetInventoryRequest $request, array $optionalArgs = []) * @method PromiseInterface updateProductAsync(UpdateProductRequest $request, array $optionalArgs = []) */ -final class ProductServiceClient +final class ProductServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -127,14 +129,13 @@ final class ProductServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/product_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/product_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/product_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -153,7 +154,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -171,7 +172,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -179,25 +180,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a branch * resource. @@ -282,11 +264,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -351,7 +333,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php index ebeb55029..12daa6faa 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php @@ -27,12 +27,14 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -76,7 +78,7 @@ * @method PromiseInterface updateAlertConfigAsync(UpdateAlertConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface updateLoggingConfigAsync(UpdateLoggingConfigRequest $request, array $optionalArgs = []) */ -final class ProjectServiceClient +final class ProjectServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -111,14 +113,13 @@ final class ProjectServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/project_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/project_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/project_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -137,7 +138,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -155,7 +156,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -163,25 +164,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a alert_config * resource. @@ -288,11 +270,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -357,7 +339,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php index c23102394..4c85c8019 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -58,7 +59,7 @@ * * @method PromiseInterface searchAsync(SearchRequest $request, array $optionalArgs = []) */ -final class SearchServiceClient +final class SearchServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -91,14 +92,13 @@ final class SearchServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/search_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/search_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/search_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -168,11 +168,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -236,7 +236,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php index 0300b27f6..885149cc0 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -68,7 +69,7 @@ * @method PromiseInterface removeControlAsync(RemoveControlRequest $request, array $optionalArgs = []) * @method PromiseInterface updateServingConfigAsync(UpdateServingConfigRequest $request, array $optionalArgs = []) */ -final class ServingConfigServiceClient +final class ServingConfigServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -101,14 +102,13 @@ final class ServingConfigServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/serving_config_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/serving_config_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/serving_config_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -200,11 +200,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -268,7 +268,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php index 36da149af..14867af41 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php @@ -27,12 +27,14 @@ namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Api\HttpBody; @@ -75,7 +77,7 @@ * @method PromiseInterface rejoinUserEventsAsync(RejoinUserEventsRequest $request, array $optionalArgs = []) * @method PromiseInterface writeUserEventAsync(WriteUserEventRequest $request, array $optionalArgs = []) */ -final class UserEventServiceClient +final class UserEventServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -110,14 +112,13 @@ final class UserEventServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/user_event_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/user_event_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/user_event_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -136,7 +137,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -154,7 +155,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -162,25 +163,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a catalog * resource. @@ -263,11 +245,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'retail.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -332,7 +314,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php index 6bf39dea1..5186ac4a8 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\AnalyticsServiceClient; @@ -50,10 +50,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return AnalyticsServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php index 5ab27821e..75446d4f3 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Branch; @@ -47,10 +47,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BranchServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php index 72874a990..bf4998634 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\AddCatalogAttributeRequest; @@ -64,10 +64,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CatalogServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php index 53050c17f..563c80567 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\BigQuerySource; @@ -53,10 +53,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CompletionServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php index c8b31eba0..b0c6277f4 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\ControlServiceClient; @@ -51,10 +51,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ControlServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php index 78649213d..bd988018f 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\ServerStream; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ConversationalSearchServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php index 11390aa51..2475573b7 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\BatchUpdateGenerativeQuestionConfigsRequest; @@ -52,10 +52,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return GenerativeQuestionServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php index b6ed3094d..dd7bfc157 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\MerchantCenterAccountLinkServiceClient; @@ -53,10 +53,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return MerchantCenterAccountLinkServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php index e625787b3..871305e49 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\ModelServiceClient; @@ -59,10 +59,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ModelServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php index 7e24a2fac..5011d8a30 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\PredictionServiceClient; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return PredictionServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php index e5ffb138e..facce9906 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\AddFulfillmentPlacesRequest; @@ -73,10 +73,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ProductServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php index 921860454..381633b0d 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\AcceptTermsRequest; @@ -61,10 +61,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ProjectServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php index 43c25364e..46d464e2f 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\Client\SearchServiceClient; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SearchServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php index 4cc15ed74..d9e4d9811 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Retail\V2alpha\AddControlRequest; @@ -53,10 +53,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ServingConfigServiceClient */ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php index 53b36b6b2..7bfc17ffc 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Api\HttpBody; @@ -62,10 +62,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return UserEventServiceClient */ diff --git a/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php b/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php index a432f8407..ea40fb66f 100644 --- a/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php +++ b/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php @@ -25,13 +25,16 @@ namespace Google\Cloud\SecurityCenter\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -200,7 +203,7 @@ * @method PromiseInterface updateSourceAsync(UpdateSourceRequest $request, array $optionalArgs = []) * @method PromiseInterface validateEventThreatDetectionCustomModuleAsync(ValidateEventThreatDetectionCustomModuleRequest $request, array $optionalArgs = []) */ -final class SecurityCenterClient +final class SecurityCenterClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -235,14 +238,13 @@ final class SecurityCenterClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/security_center_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/security_center_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/security_center_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -259,7 +261,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -275,7 +277,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -283,25 +285,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a * big_query_export resource. @@ -1720,11 +1703,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'securitycenter.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -1787,7 +1770,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php b/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php index cb37f047d..ba681206b 100644 --- a/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php +++ b/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\SecurityCenter\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Iam\V1\GetIamPolicyRequest; @@ -160,10 +160,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SecurityCenterClient */ diff --git a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php index 0463b9455..2c08268bb 100644 --- a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php +++ b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php @@ -25,14 +25,17 @@ namespace Google\Cloud\Spanner\Admin\Database\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\IamProviderInterface; use Google\ApiCore\InsecureCredentialsWrapper; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -128,7 +131,7 @@ * @method PromiseInterface updateDatabaseAsync(UpdateDatabaseRequest $request, array $optionalArgs = []) * @method PromiseInterface updateDatabaseDdlAsync(UpdateDatabaseDdlRequest $request, array $optionalArgs = []) */ -final class DatabaseAdminClient +final class DatabaseAdminClient implements ServiceInterface, LongRunningOperationProviderInterface, IamProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -164,14 +167,13 @@ final class DatabaseAdminClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/database_admin_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/database_admin_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/database_admin_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -188,7 +190,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -204,7 +206,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -212,25 +214,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a backup * resource. @@ -413,11 +396,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'spanner.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -481,7 +464,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php b/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php index d079495b0..3f6d069d3 100644 --- a/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php +++ b/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Spanner\Admin\Database\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Iam\V1\GetIamPolicyRequest; @@ -92,10 +92,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return DatabaseAdminClient */ diff --git a/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php b/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php index ffc16f7e3..a987d38f8 100644 --- a/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php +++ b/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php @@ -25,12 +25,13 @@ namespace Google\Cloud\Speech\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -71,7 +72,7 @@ * @method PromiseInterface updateCustomClassAsync(UpdateCustomClassRequest $request, array $optionalArgs = []) * @method PromiseInterface updatePhraseSetAsync(UpdatePhraseSetRequest $request, array $optionalArgs = []) */ -final class AdaptationClient +final class AdaptationClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -104,14 +105,13 @@ final class AdaptationClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/adaptation_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/adaptation_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/adaptation_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -213,11 +213,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'speech.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -279,7 +279,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php b/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php index bdb4de3df..dd6ec2227 100644 --- a/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php +++ b/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php @@ -26,12 +26,14 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -58,7 +60,7 @@ * @method PromiseInterface longRunningRecognizeAsync(LongRunningRecognizeRequest $request, array $optionalArgs = []) * @method PromiseInterface recognizeAsync(RecognizeRequest $request, array $optionalArgs = []) */ -final class SpeechClient +final class SpeechClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -93,14 +95,13 @@ final class SpeechClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/speech_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/speech_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/speech_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -117,7 +118,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -133,7 +134,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -141,25 +142,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a custom_class * resource. @@ -250,11 +232,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'speech.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -317,7 +299,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php b/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php index efda05a36..6ff21fb89 100644 --- a/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php +++ b/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Speech\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Speech\V1\Client\AdaptationClient; @@ -58,10 +58,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return AdaptationClient */ diff --git a/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php b/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php index 5efef07fb..a38db8f8a 100644 --- a/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php +++ b/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php @@ -24,7 +24,7 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Speech\V1\Client\SpeechClient; @@ -56,10 +56,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return SpeechClient */ diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php index 126e286a7..97de02725 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -64,7 +65,7 @@ * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) * @method PromiseInterface updateCompanyAsync(UpdateCompanyRequest $request, array $optionalArgs = []) */ -final class CompanyServiceClient +final class CompanyServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -98,14 +99,13 @@ final class CompanyServiceClient 'https://www.googleapis.com/auth/jobs', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/company_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/company_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/company_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -253,11 +253,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'jobs.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -321,7 +321,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php index ebc374007..ff4d220d4 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -55,7 +56,7 @@ * * @method PromiseInterface completeQueryAsync(CompleteQueryRequest $request, array $optionalArgs = []) */ -final class CompletionClient +final class CompletionClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -89,14 +90,13 @@ final class CompletionClient 'https://www.googleapis.com/auth/jobs', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/completion_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/completion_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/completion_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -244,11 +244,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'jobs.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -312,7 +312,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php index e8c0cb8f3..1b84f2221 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php @@ -27,11 +27,12 @@ namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -55,7 +56,7 @@ * * @method PromiseInterface createClientEventAsync(CreateClientEventRequest $request, array $optionalArgs = []) */ -final class EventServiceClient +final class EventServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -89,14 +90,13 @@ final class EventServiceClient 'https://www.googleapis.com/auth/jobs', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/event_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/event_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/event_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -180,11 +180,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'jobs.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -248,7 +248,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php index 0db8d6a3b..ae5f8360f 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php @@ -27,13 +27,15 @@ namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -77,7 +79,7 @@ * @method PromiseInterface searchJobsForAlertAsync(SearchJobsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateJobAsync(UpdateJobRequest $request, array $optionalArgs = []) */ -final class JobServiceClient +final class JobServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -113,14 +115,13 @@ final class JobServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/job_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/job_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/job_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -139,7 +140,7 @@ private static function getClientDefaults() * * @experimental */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -157,7 +158,7 @@ public function getOperationsClient() * * @experimental */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -165,25 +166,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a company * resource. @@ -384,11 +366,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'jobs.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -453,7 +435,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php index 32edeaed1..9f6552a92 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php @@ -27,12 +27,13 @@ namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -64,7 +65,7 @@ * @method PromiseInterface listTenantsAsync(ListTenantsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateTenantAsync(UpdateTenantRequest $request, array $optionalArgs = []) */ -final class TenantServiceClient +final class TenantServiceClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -98,14 +99,13 @@ final class TenantServiceClient 'https://www.googleapis.com/auth/jobs', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/tenant_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/tenant_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/tenant_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -189,11 +189,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'jobs.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -257,7 +257,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php index 1ac7f8ba3..b9de01880 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Talent\V4beta1\Client\CompanyServiceClient; @@ -51,10 +51,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CompanyServiceClient */ diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php index 209c96950..954e35088 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Talent\V4beta1\Client\CompletionClient; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CompletionClient */ diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php index 51bd6bda6..9c213bddc 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Talent\V4beta1\ClientEvent; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return EventServiceClient */ diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php index 8157f3c6e..6c02961d7 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Talent\V4beta1\BatchCreateJobsRequest; @@ -63,10 +63,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return JobServiceClient */ diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php index c6333e7fe..6995d6822 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\Talent\V4beta1\Client\TenantServiceClient; @@ -51,10 +51,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return TenantServiceClient */ diff --git a/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php b/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php index 10a1bcd28..98c485342 100644 --- a/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php +++ b/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php @@ -25,11 +25,13 @@ namespace Google\Cloud\VideoIntelligence\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -49,7 +51,7 @@ * * @method PromiseInterface annotateVideoAsync(AnnotateVideoRequest $request, array $optionalArgs = []) */ -final class VideoIntelligenceServiceClient +final class VideoIntelligenceServiceClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; @@ -83,14 +85,13 @@ final class VideoIntelligenceServiceClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/video_intelligence_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/video_intelligence_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/video_intelligence_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -107,7 +108,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -123,7 +124,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -131,25 +132,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Constructor. * @@ -159,11 +141,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'videointelligence.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -226,7 +208,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php b/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php index 94cf240f4..35af624ff 100644 --- a/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php +++ b/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php @@ -23,7 +23,7 @@ namespace Google\Cloud\VideoIntelligence\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Cloud\VideoIntelligence\V1\AnnotateVideoRequest; @@ -49,10 +49,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return VideoIntelligenceServiceClient */ diff --git a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php index e47de0c29..e6d98020b 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php +++ b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php @@ -25,11 +25,12 @@ namespace Testing\Basic\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -51,7 +52,7 @@ * @method PromiseInterface aMethodAsync(Request $request, array $optionalArgs = []) * @method PromiseInterface methodWithArgsAsync(RequestWithArgs $request, array $optionalArgs = []) */ -final class BasicClient +final class BasicClient implements ServiceInterface { use GapicClientTrait; @@ -80,14 +81,13 @@ final class BasicClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -112,11 +112,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'basic.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -179,7 +179,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php b/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php index 59c4cf5a4..8122fd3db 100644 --- a/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php +++ b/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php @@ -23,7 +23,7 @@ namespace Testing\Basic\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicClient */ diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php index 7cc65972d..121137e73 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php @@ -25,10 +25,11 @@ namespace Testing\BasicAutoPopulation\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -46,7 +47,7 @@ * @method PromiseInterface createFooAsync(Request $request, array $optionalArgs = []) * @method PromiseInterface getFooAsync(Request $request, array $optionalArgs = []) */ -final class BasicAutoPopulationClient +final class BasicAutoPopulationClient implements ServiceInterface { use GapicClientTrait; @@ -72,14 +73,13 @@ final class BasicAutoPopulationClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_auto_population_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_auto_population_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_auto_population_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -100,11 +100,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'autopopulation.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -166,7 +166,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php index 423e043b3..5dbfae911 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicAutoPopulation\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicAutoPopulationClient */ diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php index e80d7d32f..c4c0935c4 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php @@ -26,9 +26,10 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -40,7 +41,7 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. */ -final class BasicBidiStreamingClient +final class BasicBidiStreamingClient implements ServiceInterface { use GapicClientTrait; @@ -63,14 +64,13 @@ final class BasicBidiStreamingClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_bidi_streaming_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_bidi_streaming_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_bidi_streaming_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -91,11 +91,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'bidi.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php index 3eba38f6c..e3ce5db14 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php @@ -24,7 +24,7 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -47,10 +47,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicBidiStreamingClient */ diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php index df3cef252..362488479 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php @@ -26,9 +26,10 @@ use Google\ApiCore\ApiException; use Google\ApiCore\ClientStream; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -40,7 +41,7 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. */ -final class BasicClientStreamingClient +final class BasicClientStreamingClient implements ServiceInterface { use GapicClientTrait; @@ -63,14 +64,13 @@ final class BasicClientStreamingClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_client_streaming_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_client_streaming_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_client_streaming_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -91,11 +91,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'clientstreaming.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php index 7fde3b793..c4127c247 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php @@ -22,7 +22,7 @@ namespace Testing\BasicClientStreaming\Tests\Unit\Client; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -39,10 +39,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicClientStreamingClient */ diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php b/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php index e4e6ea15f..f84f0d5c7 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php @@ -25,13 +25,15 @@ namespace Testing\BasicDiregapic\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -132,7 +134,7 @@ * @method PromiseInterface updateBookAsync(UpdateBookRequest $request, array $optionalArgs = []) * @method PromiseInterface updateBookIndexAsync(UpdateBookIndexRequest $request, array $optionalArgs = []) */ -final class LibraryClient +final class LibraryClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -168,7 +170,7 @@ final class LibraryClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -188,13 +190,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -206,7 +208,7 @@ private static function supportedTransports() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -222,7 +224,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -230,25 +232,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Formats a string containing the fully-qualified path to represent a archive * resource. @@ -593,11 +576,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'library-example.googleapis.com:1234:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -657,7 +640,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php b/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php index a351065c2..e0b709ca1 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicDiregapic\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\LongRunning\Client\OperationsClient; @@ -87,10 +87,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return LibraryClient */ diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php index 79ebf05d0..c5c1f45a9 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php @@ -25,11 +25,12 @@ namespace Testing\BasicExplicitPaginated\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface methodExplicitPaginatedAsync(ExplicitRequest $request, array $optionalArgs = []) */ -final class BasicExplicitPaginatedClient +final class BasicExplicitPaginatedClient implements ServiceInterface { use GapicClientTrait; @@ -71,14 +72,13 @@ final class BasicExplicitPaginatedClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_explicit_paginated_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_explicit_paginated_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_explicit_paginated_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -99,11 +99,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'explicitpaginated.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -165,7 +165,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php index e5d29b259..ad09ce564 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicExplicitPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicExplicitPaginatedClient */ diff --git a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php index ed1c18b4f..31290e642 100644 --- a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php +++ b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php @@ -24,9 +24,10 @@ namespace Testing\Basicgrpconly\Client; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -38,7 +39,7 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. */ -final class BasicGrpcOnlyClient +final class BasicGrpcOnlyClient implements ServiceInterface { use GapicClientTrait; @@ -61,14 +62,13 @@ final class BasicGrpcOnlyClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_grpc_only_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_grpc_only_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_grpc_only_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -76,7 +76,7 @@ private static function getClientDefaults() } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'grpc', @@ -93,11 +93,11 @@ private static function supportedTransports() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'basicgrpconly.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security diff --git a/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php b/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php index 24d672164..9196e2325 100644 --- a/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php +++ b/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php @@ -22,7 +22,7 @@ namespace Testing\Basicgrpconly\Tests\Unit\Client; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -39,10 +39,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicGrpcOnlyClient */ diff --git a/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php b/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php index 7cf706697..0ac94801d 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php +++ b/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php @@ -25,11 +25,13 @@ namespace Testing\BasicLro\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -50,7 +52,7 @@ * @method PromiseInterface methodNonLro1Async(Request $request, array $optionalArgs = []) * @method PromiseInterface methodNonLro2Async(Request $request, array $optionalArgs = []) */ -final class BasicLroClient +final class BasicLroClient implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; @@ -78,14 +80,13 @@ final class BasicLroClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_lro_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_lro_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_lro_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -102,7 +103,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -118,7 +119,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -126,25 +127,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Constructor. * @@ -154,11 +136,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'lro.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -221,7 +203,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php b/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php index 5456e5ec6..9ddcc959c 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php +++ b/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicLro\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\LongRunning\Client\OperationsClient; @@ -49,10 +49,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicLroClient */ diff --git a/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php b/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php index cfac3ab58..31a318dbd 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php @@ -25,10 +25,11 @@ namespace Testing\BasicOneof\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface aMethodAsync(Request $request, array $optionalArgs = []) */ -final class BasicOneofClient +final class BasicOneofClient implements ServiceInterface { use GapicClientTrait; @@ -71,14 +72,13 @@ final class BasicOneofClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_oneof_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_oneof_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_oneof_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -99,11 +99,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'basic.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -165,7 +165,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php b/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php index b76d2c307..c54bac743 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicOneof\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -46,10 +46,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicOneofClient */ diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php b/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php index 18944b4e7..d61b56b17 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php @@ -25,11 +25,12 @@ namespace Testing\BasicPaginated\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface methodPaginatedAsync(Request $request, array $optionalArgs = []) */ -final class BasicPaginatedClient +final class BasicPaginatedClient implements ServiceInterface { use GapicClientTrait; @@ -71,14 +72,13 @@ final class BasicPaginatedClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_paginated_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_paginated_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_paginated_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -99,11 +99,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'paginated.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -165,7 +165,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php b/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php index 924c2027b..ef470d599 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicPaginatedClient */ diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php index 61fdc681c..64cec5d7a 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php @@ -25,10 +25,11 @@ namespace Testing\BasicServerStreaming\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ServerStream; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -43,7 +44,7 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. */ -final class BasicServerStreamingClient +final class BasicServerStreamingClient implements ServiceInterface { use GapicClientTrait; @@ -66,14 +67,13 @@ final class BasicServerStreamingClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/basic_server_streaming_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/basic_server_streaming_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/basic_server_streaming_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -94,11 +94,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'serverstreaming.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php index b9ca6dcc3..11cb60dde 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php @@ -23,7 +23,7 @@ namespace Testing\BasicServerStreaming\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\ServerStream; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -47,10 +47,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return BasicServerStreamingClient */ diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php index 8fe90b123..3658235cb 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php @@ -25,11 +25,12 @@ namespace Testing\CustomLro\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface createFooAsync(CreateFooRequest $request, array $optionalArgs = []) */ -final class CustomLroClient +final class CustomLroClient implements ServiceInterface { use GapicClientTrait; @@ -73,7 +74,7 @@ final class CustomLroClient private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -93,13 +94,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -111,13 +112,13 @@ private static function supportedTransports() * * @return CustomLroOperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): CustomLroOperationsClient { return $this->operationsClient; } /** Return the default longrunning operation descriptor config. */ - private function getDefaultOperationDescriptor() + private function getDefaultOperationDescriptor(): array { return [ 'additionalArgumentMethods' => [ @@ -150,7 +151,7 @@ private function getDefaultOperationDescriptor() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : $this->getDefaultOperationDescriptor(); $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -165,7 +166,7 @@ public function resumeOperation($operationName, $methodName = null) * * @return CustomLroOperationsClient */ - private function createOperationsClient(array $options) + private function createOperationsClient(array $options): CustomLroOperationsClient { // Unset client-specific configuration options unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); @@ -186,11 +187,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'customlro.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -250,7 +251,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php index 2dfe76ae4..d2dd8b060 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php @@ -25,10 +25,11 @@ namespace Testing\CustomLro\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -49,7 +50,7 @@ * @method PromiseInterface deleteAsync(DeleteOperationRequest $request, array $optionalArgs = []) * @method PromiseInterface getAsync(GetOperationRequest $request, array $optionalArgs = []) */ -final class CustomLroOperationsClient +final class CustomLroOperationsClient implements ServiceInterface { use GapicClientTrait; @@ -75,7 +76,7 @@ final class CustomLroOperationsClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -95,13 +96,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -117,11 +118,11 @@ private static function supportedTransports() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'customlro.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -180,7 +181,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php index 84e362178..7f05ec37e 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php +++ b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php @@ -23,7 +23,7 @@ namespace Testing\CustomLro\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -47,10 +47,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CustomLroClient */ diff --git a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php index 3d44ff61b..d4fbfd1a6 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php +++ b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php @@ -23,7 +23,7 @@ namespace Testing\CustomLro\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Protobuf\GPBEmpty; @@ -47,10 +47,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return CustomLroOperationsClient */ diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php b/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php index a061e7699..475e5989c 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php @@ -25,10 +25,11 @@ namespace Testing\Deprecated\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -48,7 +49,7 @@ * @method PromiseInterface fastFibonacciAsync(FibonacciRequest $request, array $optionalArgs = []) * @method PromiseInterface slowFibonacciAsync(FibonacciRequest $request, array $optionalArgs = []) */ -final class DeprecatedServiceClient +final class DeprecatedServiceClient implements ServiceInterface { use GapicClientTrait; @@ -73,14 +74,13 @@ final class DeprecatedServiceClient 'https://www.googleapis.com/auth/cloud-platform', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/deprecated_service_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/deprecated_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/deprecated_service_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -101,11 +101,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'localhost:7469:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -167,7 +167,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php b/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php index 1fa1256c3..18f0408b8 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php @@ -23,7 +23,7 @@ namespace Testing\Deprecated\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Protobuf\GPBEmpty; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return DeprecatedServiceClient */ diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php index 33cfd8c70..f40e34d90 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php @@ -25,11 +25,12 @@ namespace Testing\DiregapicPaginated\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PagedListResponse; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -54,7 +55,7 @@ * @method PromiseInterface multipleListMethodAsync(Request $request, array $optionalArgs = []) * @method PromiseInterface nonPaginatedMethodAsync(Request $request, array $optionalArgs = []) */ -final class HeuristicPaginationClientClient +final class HeuristicPaginationClientClient implements ServiceInterface { use GapicClientTrait; @@ -80,7 +81,7 @@ final class HeuristicPaginationClientClient 'scope2', ]; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, @@ -100,13 +101,13 @@ private static function getClientDefaults() } /** Implements GapicClientTrait::defaultTransport. */ - private static function defaultTransport() + private static function defaultTransport(): string { return 'rest'; } /** Implements ClientOptionsTrait::supportedTransports. */ - private static function supportedTransports() + private static function supportedTransports(): array { return [ 'rest', @@ -122,11 +123,11 @@ private static function supportedTransports() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'diregapic.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -185,7 +186,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php index 468ae9e8b..1a64133d1 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php @@ -23,7 +23,7 @@ namespace Testing\DiregapicPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -49,10 +49,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return HeuristicPaginationClientClient */ diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php b/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php index fb9f0fad0..f1d1b2ea5 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php @@ -25,10 +25,11 @@ namespace Testing\DisableSnippets\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -45,7 +46,7 @@ * * @method PromiseInterface method1Async(Request $request, array $optionalArgs = []) */ -final class DisableSnippetsClient +final class DisableSnippetsClient implements ServiceInterface { use GapicClientTrait; @@ -68,14 +69,13 @@ final class DisableSnippetsClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/disable_snippets_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/disable_snippets_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/disable_snippets_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -96,11 +96,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'disablesnippets.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -162,7 +162,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php b/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php index 2f386ce9c..4b83b4f6c 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php @@ -23,7 +23,7 @@ namespace Testing\DisableSnippets\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -45,10 +45,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return DisableSnippetsClient */ diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php index eb9e6533f..6f7049a8b 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php @@ -26,12 +26,14 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; +use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; use Google\ApiCore\ServerStream; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -54,7 +56,7 @@ * @method PromiseInterface method1CServiceLevelRetryAsync(Request1 $request, array $optionalArgs = []) * @method PromiseInterface method1DTimeoutOnlyRetryAsync(Request1 $request, array $optionalArgs = []) */ -final class GrpcServiceConfigWithRetry1Client +final class GrpcServiceConfigWithRetry1Client implements ServiceInterface, LongRunningOperationProviderInterface { use GapicClientTrait; @@ -79,14 +81,13 @@ final class GrpcServiceConfigWithRetry1Client private $operationsClient; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/grpc_service_config_with_retry1_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/grpc_service_config_with_retry1_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/grpc_service_config_with_retry1_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -103,7 +104,7 @@ private static function getClientDefaults() * * @return OperationsClient */ - public function getOperationsClient() + public function getOperationsClient(): OperationsClient { return $this->operationsClient; } @@ -119,7 +120,7 @@ public function getOperationsClient() * * @return OperationResponse */ - public function resumeOperation($operationName, $methodName = null) + public function resumeOperation(string $operationName, ?string $methodName = null): OperationResponse { $options = $methodName && isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); @@ -127,25 +128,6 @@ public function resumeOperation($operationName, $methodName = null) return $operation; } - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - /** * Constructor. * @@ -155,11 +137,11 @@ private function createOperationsClient(array $options) * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'grpcserviceconfig.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -222,7 +204,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php index c5e84844f..36c40973b 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php @@ -24,7 +24,7 @@ use Google\ApiCore\ApiException; use Google\ApiCore\BidiStream; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\ServerStream; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -52,10 +52,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return GrpcServiceConfigWithRetry1Client */ diff --git a/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php b/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php index c011d2f7c..38ff93591 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php @@ -25,11 +25,12 @@ namespace Testing\ResourceNames\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResourceHelperTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -67,7 +68,7 @@ * @method PromiseInterface wildcardMultiMethodAsync(WildcardMultiPatternRequest $request, array $optionalArgs = []) * @method PromiseInterface wildcardReferenceMethodAsync(WildcardReferenceRequest $request, array $optionalArgs = []) */ -final class ResourceNamesClient +final class ResourceNamesClient implements ServiceInterface { use GapicClientTrait; use ResourceHelperTrait; @@ -91,14 +92,13 @@ final class ResourceNamesClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/resource_names_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/resource_names_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/resource_names_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -448,11 +448,11 @@ public static function parseName(string $formattedName, ?string $template = null * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'resourcenames.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -514,7 +514,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php b/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php index 4dd6981dd..e56847790 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php @@ -23,7 +23,7 @@ namespace Testing\ResourceNames\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -53,10 +53,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ResourceNamesClient */ diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php b/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php index 9230971c2..8cf25d67f 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php @@ -25,12 +25,13 @@ namespace Testing\Resumableupload\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\ResumableUpload\ResumableUpload; use Google\ApiCore\ResumableUpload\ResumableUploadTrait; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -44,7 +45,7 @@ * calls that map to API methods. * */ -final class ResumableUploadClient +final class ResumableUploadClient implements ServiceInterface { use GapicClientTrait; use ResumableUploadTrait; @@ -68,14 +69,13 @@ final class ResumableUploadClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/resumable_upload_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/resumable_upload_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/resumable_upload_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -96,11 +96,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'resumableupload.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -163,7 +163,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php b/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php index f84ab84f1..8ccaedb0b 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php @@ -22,7 +22,7 @@ namespace Testing\Resumableupload\Tests\Unit\Client; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\ResumableUpload\ResumableUpload; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; @@ -43,10 +43,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return ResumableUploadClient */ diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php b/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php index bab4b196f..fb074df83 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php @@ -25,10 +25,11 @@ namespace Testing\RoutingHeaders\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; +use Google\ApiCore\HeaderCredentialsInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\RetrySettings; +use Google\ApiCore\ServiceInterface; use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; @@ -58,7 +59,7 @@ * @method PromiseInterface routingRuleWithOutParametersAsync(NestedRequest $request, array $optionalArgs = []) * @method PromiseInterface routingRuleWithParametersAsync(NestedRequest $request, array $optionalArgs = []) */ -final class RoutingHeadersClient +final class RoutingHeadersClient implements ServiceInterface { use GapicClientTrait; @@ -81,14 +82,13 @@ final class RoutingHeadersClient */ public static $serviceScopes = []; - private static function getClientDefaults() + private static function getClientDefaults(): array { return [ 'serviceName' => self::SERVICE_NAME, 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, 'clientConfig' => __DIR__ . '/../resources/routing_headers_client_config.json', 'descriptorsConfigPath' => __DIR__ . '/../resources/routing_headers_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/routing_headers_grpc_config.json', 'credentialsConfig' => [ 'defaultScopes' => self::$serviceScopes, ], @@ -109,11 +109,11 @@ private static function getClientDefaults() * @type string $apiEndpoint * The address of the API remote host. May optionally include the port, formatted * as ":". Default 'routingheaders.example.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * @type FetchAuthTokenInterface|HeaderCredentialsInterface $credentials * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. + * {@see FetchAuthTokenInterface} or {@see HeaderCredentialsInterface} object. Note + * that when one of these objects are provided, any settings in $credentialsConfig + * will be ignored. * **Important**: If you are providing a path to a credentials file, or a decoded * credentials file as a PHP array, this usage is now DEPRECATED. Providing an * unvalidated credential configuration to Google APIs can compromise the security @@ -175,7 +175,7 @@ public function __construct(array|ClientOptions $options = []) } /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) + public function __call(string $method, array $args) { if (substr($method, -5) !== 'Async') { trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php b/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php index 71cdb739b..8d62a1790 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php @@ -23,7 +23,7 @@ namespace Testing\RoutingHeaders\Tests\Unit\Client; use Google\ApiCore\ApiException; -use Google\ApiCore\CredentialsWrapper; +use Google\ApiCore\InsecureCredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; use Google\Rpc\Code; @@ -49,10 +49,10 @@ private function createTransport($deserialize = null) return new MockTransport($deserialize); } - /** @return CredentialsWrapper */ + /** @return InsecureCredentialsWrapper */ private function createCredentials() { - return $this->getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + return new InsecureCredentialsWrapper(); } /** @return RoutingHeadersClient */ From 0efa164363b7f960bb8954f3e2736426a916c8a7 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 29 Sep 2026 21:07:55 +0000 Subject: [PATCH 2/8] feat: add declare(strict_types=1) to generated PHP files --- src/Ast/PhpFile.php | 3 +-- .../asset/samples/V1/AssetServiceClient/analyze_iam_policy.php | 1 + .../V1/AssetServiceClient/analyze_iam_policy_longrunning.php | 1 + .../asset/samples/V1/AssetServiceClient/analyze_move.php | 1 + .../samples/V1/AssetServiceClient/analyze_org_policies.php | 1 + .../AssetServiceClient/analyze_org_policy_governed_assets.php | 1 + .../analyze_org_policy_governed_containers.php | 1 + .../samples/V1/AssetServiceClient/batch_get_assets_history.php | 1 + .../V1/AssetServiceClient/batch_get_effective_iam_policies.php | 1 + .../asset/samples/V1/AssetServiceClient/create_feed.php | 1 + .../asset/samples/V1/AssetServiceClient/create_saved_query.php | 1 + .../asset/samples/V1/AssetServiceClient/delete_feed.php | 1 + .../asset/samples/V1/AssetServiceClient/delete_saved_query.php | 1 + .../asset/samples/V1/AssetServiceClient/export_assets.php | 1 + .../goldens/asset/samples/V1/AssetServiceClient/get_feed.php | 1 + .../asset/samples/V1/AssetServiceClient/get_saved_query.php | 1 + .../asset/samples/V1/AssetServiceClient/list_assets.php | 1 + .../goldens/asset/samples/V1/AssetServiceClient/list_feeds.php | 1 + .../asset/samples/V1/AssetServiceClient/list_saved_queries.php | 1 + .../asset/samples/V1/AssetServiceClient/query_assets.php | 1 + .../samples/V1/AssetServiceClient/search_all_iam_policies.php | 1 + .../samples/V1/AssetServiceClient/search_all_resources.php | 1 + .../asset/samples/V1/AssetServiceClient/update_feed.php | 1 + .../asset/samples/V1/AssetServiceClient/update_saved_query.php | 1 + .../goldens/asset/src/V1/Client/AssetServiceClient.php | 2 ++ .../asset/src/V1/resources/asset_service_descriptor_config.php | 1 + .../src/V1/resources/asset_service_rest_client_config.php | 1 + .../asset/tests/Unit/V1/Client/AssetServiceClientTest.php | 2 ++ .../samples/V1/AddressesClient/aggregated_list.php | 1 + .../compute_small/samples/V1/AddressesClient/delete.php | 1 + .../compute_small/samples/V1/AddressesClient/insert.php | 1 + .../goldens/compute_small/samples/V1/AddressesClient/list.php | 1 + .../compute_small/samples/V1/RegionOperationsClient/get.php | 1 + .../compute_small/samples/V1/SubnetworksClient/list_usable.php | 1 + .../goldens/compute_small/src/V1/Client/AddressesClient.php | 2 ++ .../compute_small/src/V1/Client/RegionOperationsClient.php | 2 ++ .../goldens/compute_small/src/V1/Client/SubnetworksClient.php | 2 ++ .../src/V1/resources/addresses_descriptor_config.php | 1 + .../src/V1/resources/addresses_rest_client_config.php | 1 + .../src/V1/resources/region_operations_descriptor_config.php | 1 + .../src/V1/resources/region_operations_rest_client_config.php | 1 + .../src/V1/resources/subnetworks_descriptor_config.php | 1 + .../src/V1/resources/subnetworks_rest_client_config.php | 1 + .../compute_small/tests/Unit/V1/Client/AddressesClientTest.php | 2 ++ .../tests/Unit/V1/Client/RegionOperationsClientTest.php | 2 ++ .../tests/Unit/V1/Client/SubnetworksClientTest.php | 2 ++ .../samples/V1/ClusterManagerClient/cancel_operation.php | 1 + .../V1/ClusterManagerClient/check_autopilot_compatibility.php | 1 + .../samples/V1/ClusterManagerClient/complete_ip_rotation.php | 1 + .../V1/ClusterManagerClient/complete_node_pool_upgrade.php | 1 + .../samples/V1/ClusterManagerClient/create_cluster.php | 1 + .../samples/V1/ClusterManagerClient/create_node_pool.php | 1 + .../samples/V1/ClusterManagerClient/delete_cluster.php | 1 + .../samples/V1/ClusterManagerClient/delete_node_pool.php | 1 + .../V1/ClusterManagerClient/fetch_cluster_upgrade_info.php | 1 + .../V1/ClusterManagerClient/fetch_node_pool_upgrade_info.php | 1 + .../container/samples/V1/ClusterManagerClient/get_cluster.php | 1 + .../samples/V1/ClusterManagerClient/get_json_web_keys.php | 1 + .../samples/V1/ClusterManagerClient/get_node_pool.php | 1 + .../samples/V1/ClusterManagerClient/get_operation.php | 1 + .../samples/V1/ClusterManagerClient/get_server_config.php | 1 + .../samples/V1/ClusterManagerClient/list_clusters.php | 1 + .../samples/V1/ClusterManagerClient/list_node_pools.php | 1 + .../samples/V1/ClusterManagerClient/list_operations.php | 1 + .../V1/ClusterManagerClient/list_usable_subnetworks.php | 1 + .../V1/ClusterManagerClient/rollback_node_pool_upgrade.php | 1 + .../samples/V1/ClusterManagerClient/set_addons_config.php | 1 + .../container/samples/V1/ClusterManagerClient/set_labels.php | 1 + .../samples/V1/ClusterManagerClient/set_legacy_abac.php | 1 + .../samples/V1/ClusterManagerClient/set_locations.php | 1 + .../samples/V1/ClusterManagerClient/set_logging_service.php | 1 + .../samples/V1/ClusterManagerClient/set_maintenance_policy.php | 1 + .../samples/V1/ClusterManagerClient/set_master_auth.php | 1 + .../samples/V1/ClusterManagerClient/set_monitoring_service.php | 1 + .../samples/V1/ClusterManagerClient/set_network_policy.php | 1 + .../V1/ClusterManagerClient/set_node_pool_autoscaling.php | 1 + .../V1/ClusterManagerClient/set_node_pool_management.php | 1 + .../samples/V1/ClusterManagerClient/set_node_pool_size.php | 1 + .../samples/V1/ClusterManagerClient/start_ip_rotation.php | 1 + .../samples/V1/ClusterManagerClient/update_cluster.php | 1 + .../samples/V1/ClusterManagerClient/update_master.php | 1 + .../samples/V1/ClusterManagerClient/update_node_pool.php | 1 + .../goldens/container/src/V1/Client/ClusterManagerClient.php | 2 ++ .../src/V1/resources/cluster_manager_descriptor_config.php | 1 + .../src/V1/resources/cluster_manager_rest_client_config.php | 1 + .../tests/Unit/V1/Client/ClusterManagerClientTest.php | 2 ++ .../create_autoscaling_policy.php | 1 + .../delete_autoscaling_policy.php | 1 + .../AutoscalingPolicyServiceClient/get_autoscaling_policy.php | 1 + .../V1/AutoscalingPolicyServiceClient/get_iam_policy.php | 1 + .../list_autoscaling_policies.php | 1 + .../V1/AutoscalingPolicyServiceClient/set_iam_policy.php | 1 + .../V1/AutoscalingPolicyServiceClient/test_iam_permissions.php | 1 + .../update_autoscaling_policy.php | 1 + .../dataproc/samples/V1/BatchControllerClient/create_batch.php | 1 + .../dataproc/samples/V1/BatchControllerClient/delete_batch.php | 1 + .../dataproc/samples/V1/BatchControllerClient/get_batch.php | 1 + .../samples/V1/BatchControllerClient/get_iam_policy.php | 1 + .../dataproc/samples/V1/BatchControllerClient/list_batches.php | 1 + .../samples/V1/BatchControllerClient/set_iam_policy.php | 1 + .../samples/V1/BatchControllerClient/test_iam_permissions.php | 1 + .../samples/V1/ClusterControllerClient/create_cluster.php | 1 + .../samples/V1/ClusterControllerClient/delete_cluster.php | 1 + .../samples/V1/ClusterControllerClient/diagnose_cluster.php | 1 + .../samples/V1/ClusterControllerClient/get_cluster.php | 1 + .../samples/V1/ClusterControllerClient/get_iam_policy.php | 1 + .../samples/V1/ClusterControllerClient/list_clusters.php | 1 + .../samples/V1/ClusterControllerClient/set_iam_policy.php | 1 + .../samples/V1/ClusterControllerClient/start_cluster.php | 1 + .../samples/V1/ClusterControllerClient/stop_cluster.php | 1 + .../V1/ClusterControllerClient/test_iam_permissions.php | 1 + .../samples/V1/ClusterControllerClient/update_cluster.php | 1 + .../dataproc/samples/V1/JobControllerClient/cancel_job.php | 1 + .../dataproc/samples/V1/JobControllerClient/delete_job.php | 1 + .../dataproc/samples/V1/JobControllerClient/get_iam_policy.php | 1 + .../dataproc/samples/V1/JobControllerClient/get_job.php | 1 + .../dataproc/samples/V1/JobControllerClient/list_jobs.php | 1 + .../dataproc/samples/V1/JobControllerClient/set_iam_policy.php | 1 + .../dataproc/samples/V1/JobControllerClient/submit_job.php | 1 + .../samples/V1/JobControllerClient/submit_job_as_operation.php | 1 + .../samples/V1/JobControllerClient/test_iam_permissions.php | 1 + .../dataproc/samples/V1/JobControllerClient/update_job.php | 1 + .../samples/V1/NodeGroupControllerClient/create_node_group.php | 1 + .../samples/V1/NodeGroupControllerClient/get_iam_policy.php | 1 + .../samples/V1/NodeGroupControllerClient/get_node_group.php | 1 + .../samples/V1/NodeGroupControllerClient/resize_node_group.php | 1 + .../samples/V1/NodeGroupControllerClient/set_iam_policy.php | 1 + .../V1/NodeGroupControllerClient/test_iam_permissions.php | 1 + .../samples/V1/SessionControllerClient/create_session.php | 1 + .../samples/V1/SessionControllerClient/delete_session.php | 1 + .../samples/V1/SessionControllerClient/get_iam_policy.php | 1 + .../samples/V1/SessionControllerClient/get_session.php | 1 + .../samples/V1/SessionControllerClient/list_sessions.php | 1 + .../samples/V1/SessionControllerClient/set_iam_policy.php | 1 + .../samples/V1/SessionControllerClient/terminate_session.php | 1 + .../V1/SessionControllerClient/test_iam_permissions.php | 1 + .../create_session_template.php | 1 + .../delete_session_template.php | 1 + .../V1/SessionTemplateControllerClient/get_iam_policy.php | 1 + .../SessionTemplateControllerClient/get_session_template.php | 1 + .../SessionTemplateControllerClient/list_session_templates.php | 1 + .../V1/SessionTemplateControllerClient/set_iam_policy.php | 1 + .../SessionTemplateControllerClient/test_iam_permissions.php | 1 + .../update_session_template.php | 1 + .../WorkflowTemplateServiceClient/create_workflow_template.php | 1 + .../WorkflowTemplateServiceClient/delete_workflow_template.php | 1 + .../V1/WorkflowTemplateServiceClient/get_iam_policy.php | 1 + .../V1/WorkflowTemplateServiceClient/get_workflow_template.php | 1 + .../instantiate_inline_workflow_template.php | 1 + .../instantiate_workflow_template.php | 1 + .../WorkflowTemplateServiceClient/list_workflow_templates.php | 1 + .../V1/WorkflowTemplateServiceClient/set_iam_policy.php | 1 + .../V1/WorkflowTemplateServiceClient/test_iam_permissions.php | 1 + .../WorkflowTemplateServiceClient/update_workflow_template.php | 1 + .../dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php | 2 ++ .../goldens/dataproc/src/V1/Client/BatchControllerClient.php | 2 ++ .../goldens/dataproc/src/V1/Client/ClusterControllerClient.php | 2 ++ .../goldens/dataproc/src/V1/Client/JobControllerClient.php | 2 ++ .../dataproc/src/V1/Client/NodeGroupControllerClient.php | 2 ++ .../goldens/dataproc/src/V1/Client/SessionControllerClient.php | 2 ++ .../dataproc/src/V1/Client/SessionTemplateControllerClient.php | 2 ++ .../dataproc/src/V1/Client/WorkflowTemplateServiceClient.php | 2 ++ .../resources/autoscaling_policy_service_descriptor_config.php | 1 + .../autoscaling_policy_service_rest_client_config.php | 1 + .../src/V1/resources/batch_controller_descriptor_config.php | 1 + .../src/V1/resources/batch_controller_rest_client_config.php | 1 + .../src/V1/resources/cluster_controller_descriptor_config.php | 1 + .../src/V1/resources/cluster_controller_rest_client_config.php | 1 + .../src/V1/resources/job_controller_descriptor_config.php | 1 + .../src/V1/resources/job_controller_rest_client_config.php | 1 + .../V1/resources/node_group_controller_descriptor_config.php | 1 + .../V1/resources/node_group_controller_rest_client_config.php | 1 + .../src/V1/resources/session_controller_descriptor_config.php | 1 + .../src/V1/resources/session_controller_rest_client_config.php | 1 + .../session_template_controller_descriptor_config.php | 1 + .../session_template_controller_rest_client_config.php | 1 + .../resources/workflow_template_service_descriptor_config.php | 1 + .../resources/workflow_template_service_rest_client_config.php | 1 + .../Unit/V1/Client/AutoscalingPolicyServiceClientTest.php | 2 ++ .../tests/Unit/V1/Client/BatchControllerClientTest.php | 2 ++ .../tests/Unit/V1/Client/ClusterControllerClientTest.php | 2 ++ .../dataproc/tests/Unit/V1/Client/JobControllerClientTest.php | 2 ++ .../tests/Unit/V1/Client/NodeGroupControllerClientTest.php | 2 ++ .../tests/Unit/V1/Client/SessionControllerClientTest.php | 2 ++ .../Unit/V1/Client/SessionTemplateControllerClientTest.php | 2 ++ .../tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php | 2 ++ .../samples/V1/CloudFunctionsServiceClient/call_function.php | 1 + .../samples/V1/CloudFunctionsServiceClient/create_function.php | 1 + .../samples/V1/CloudFunctionsServiceClient/delete_function.php | 1 + .../V1/CloudFunctionsServiceClient/generate_download_url.php | 1 + .../V1/CloudFunctionsServiceClient/generate_upload_url.php | 1 + .../samples/V1/CloudFunctionsServiceClient/get_function.php | 1 + .../samples/V1/CloudFunctionsServiceClient/get_iam_policy.php | 1 + .../samples/V1/CloudFunctionsServiceClient/list_functions.php | 1 + .../samples/V1/CloudFunctionsServiceClient/set_iam_policy.php | 1 + .../V1/CloudFunctionsServiceClient/test_iam_permissions.php | 1 + .../samples/V1/CloudFunctionsServiceClient/update_function.php | 1 + .../functions/src/V1/Client/CloudFunctionsServiceClient.php | 2 ++ .../V1/resources/cloud_functions_service_descriptor_config.php | 1 + .../resources/cloud_functions_service_rest_client_config.php | 1 + .../tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php | 2 ++ .../goldens/iam/samples/V1/IAMPolicyClient/get_iam_policy.php | 1 + .../goldens/iam/samples/V1/IAMPolicyClient/set_iam_policy.php | 1 + .../iam/samples/V1/IAMPolicyClient/test_iam_permissions.php | 1 + .../Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php | 2 ++ .../iam/src/V1/resources/iam_policy_descriptor_config.php | 1 + .../iam/src/V1/resources/iam_policy_rest_client_config.php | 1 + .../goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php | 2 ++ .../V1/KeyManagementServiceClient/asymmetric_decrypt.php | 1 + .../samples/V1/KeyManagementServiceClient/asymmetric_sign.php | 1 + .../V1/KeyManagementServiceClient/create_crypto_key.php | 1 + .../KeyManagementServiceClient/create_crypto_key_version.php | 1 + .../V1/KeyManagementServiceClient/create_import_job.php | 1 + .../samples/V1/KeyManagementServiceClient/create_key_ring.php | 1 + .../kms/samples/V1/KeyManagementServiceClient/decrypt.php | 1 + .../KeyManagementServiceClient/destroy_crypto_key_version.php | 1 + .../kms/samples/V1/KeyManagementServiceClient/encrypt.php | 1 + .../samples/V1/KeyManagementServiceClient/get_crypto_key.php | 1 + .../V1/KeyManagementServiceClient/get_crypto_key_version.php | 1 + .../samples/V1/KeyManagementServiceClient/get_iam_policy.php | 1 + .../samples/V1/KeyManagementServiceClient/get_import_job.php | 1 + .../kms/samples/V1/KeyManagementServiceClient/get_key_ring.php | 1 + .../kms/samples/V1/KeyManagementServiceClient/get_location.php | 1 + .../samples/V1/KeyManagementServiceClient/get_public_key.php | 1 + .../KeyManagementServiceClient/import_crypto_key_version.php | 1 + .../V1/KeyManagementServiceClient/list_crypto_key_versions.php | 1 + .../samples/V1/KeyManagementServiceClient/list_crypto_keys.php | 1 + .../samples/V1/KeyManagementServiceClient/list_import_jobs.php | 1 + .../samples/V1/KeyManagementServiceClient/list_key_rings.php | 1 + .../samples/V1/KeyManagementServiceClient/list_locations.php | 1 + .../KeyManagementServiceClient/restore_crypto_key_version.php | 1 + .../samples/V1/KeyManagementServiceClient/set_iam_policy.php | 1 + .../V1/KeyManagementServiceClient/test_iam_permissions.php | 1 + .../V1/KeyManagementServiceClient/update_crypto_key.php | 1 + .../update_crypto_key_primary_version.php | 1 + .../KeyManagementServiceClient/update_crypto_key_version.php | 1 + .../goldens/kms/src/V1/Client/KeyManagementServiceClient.php | 2 ++ .../V1/resources/key_management_service_descriptor_config.php | 1 + .../V1/resources/key_management_service_rest_client_config.php | 1 + .../tests/Unit/V1/Client/KeyManagementServiceClientTest.php | 2 ++ .../samples/V2/ConfigServiceV2Client/copy_log_entries.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/create_bucket.php | 1 + .../samples/V2/ConfigServiceV2Client/create_bucket_async.php | 1 + .../samples/V2/ConfigServiceV2Client/create_exclusion.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/create_link.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/create_sink.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/create_view.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/delete_bucket.php | 1 + .../samples/V2/ConfigServiceV2Client/delete_exclusion.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/delete_link.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/delete_sink.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/delete_view.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_bucket.php | 1 + .../samples/V2/ConfigServiceV2Client/get_cmek_settings.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_exclusion.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_link.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_settings.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_sink.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/get_view.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/list_buckets.php | 1 + .../samples/V2/ConfigServiceV2Client/list_exclusions.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/list_links.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/list_sinks.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/list_views.php | 1 + .../samples/V2/ConfigServiceV2Client/undelete_bucket.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/update_bucket.php | 1 + .../samples/V2/ConfigServiceV2Client/update_bucket_async.php | 1 + .../samples/V2/ConfigServiceV2Client/update_cmek_settings.php | 1 + .../samples/V2/ConfigServiceV2Client/update_exclusion.php | 1 + .../samples/V2/ConfigServiceV2Client/update_settings.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/update_sink.php | 1 + .../logging/samples/V2/ConfigServiceV2Client/update_view.php | 1 + .../logging/samples/V2/LoggingServiceV2Client/delete_log.php | 1 + .../samples/V2/LoggingServiceV2Client/list_log_entries.php | 1 + .../logging/samples/V2/LoggingServiceV2Client/list_logs.php | 1 + .../list_monitored_resource_descriptors.php | 1 + .../samples/V2/LoggingServiceV2Client/tail_log_entries.php | 1 + .../samples/V2/LoggingServiceV2Client/write_log_entries.php | 1 + .../samples/V2/MetricsServiceV2Client/create_log_metric.php | 1 + .../samples/V2/MetricsServiceV2Client/delete_log_metric.php | 1 + .../samples/V2/MetricsServiceV2Client/get_log_metric.php | 1 + .../samples/V2/MetricsServiceV2Client/list_log_metrics.php | 1 + .../samples/V2/MetricsServiceV2Client/update_log_metric.php | 1 + .../goldens/logging/src/V2/Client/ConfigServiceV2Client.php | 2 ++ .../goldens/logging/src/V2/Client/LoggingServiceV2Client.php | 2 ++ .../goldens/logging/src/V2/Client/MetricsServiceV2Client.php | 2 ++ .../src/V2/resources/config_service_v2_descriptor_config.php | 1 + .../src/V2/resources/config_service_v2_rest_client_config.php | 1 + .../src/V2/resources/logging_service_v2_descriptor_config.php | 1 + .../src/V2/resources/logging_service_v2_rest_client_config.php | 1 + .../src/V2/resources/metrics_service_v2_descriptor_config.php | 1 + .../src/V2/resources/metrics_service_v2_rest_client_config.php | 1 + .../logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php | 2 ++ .../tests/Unit/V2/Client/LoggingServiceV2ClientTest.php | 2 ++ .../tests/Unit/V2/Client/MetricsServiceV2ClientTest.php | 2 ++ .../redis/samples/V1/CloudRedisClient/create_instance.php | 1 + .../redis/samples/V1/CloudRedisClient/delete_instance.php | 1 + .../redis/samples/V1/CloudRedisClient/export_instance.php | 1 + .../redis/samples/V1/CloudRedisClient/failover_instance.php | 1 + .../goldens/redis/samples/V1/CloudRedisClient/get_instance.php | 1 + .../samples/V1/CloudRedisClient/get_instance_auth_string.php | 1 + .../goldens/redis/samples/V1/CloudRedisClient/get_location.php | 1 + .../redis/samples/V1/CloudRedisClient/import_instance.php | 1 + .../redis/samples/V1/CloudRedisClient/list_instances.php | 1 + .../redis/samples/V1/CloudRedisClient/list_locations.php | 1 + .../samples/V1/CloudRedisClient/reschedule_maintenance.php | 1 + .../redis/samples/V1/CloudRedisClient/update_instance.php | 1 + .../redis/samples/V1/CloudRedisClient/upgrade_instance.php | 1 + .../goldens/redis/src/V1/Client/CloudRedisClient.php | 2 ++ .../redis/src/V1/resources/cloud_redis_descriptor_config.php | 1 + .../redis/tests/Unit/V1/Client/CloudRedisClientTest.php | 2 ++ .../AnalyticsServiceClient/export_analytics_metrics.php | 1 + .../retail/samples/V2alpha/BranchServiceClient/get_branch.php | 1 + .../samples/V2alpha/BranchServiceClient/list_branches.php | 1 + .../V2alpha/CatalogServiceClient/add_catalog_attribute.php | 1 + .../CatalogServiceClient/batch_remove_catalog_attributes.php | 1 + .../V2alpha/CatalogServiceClient/get_attributes_config.php | 1 + .../V2alpha/CatalogServiceClient/get_completion_config.php | 1 + .../V2alpha/CatalogServiceClient/get_default_branch.php | 1 + .../samples/V2alpha/CatalogServiceClient/list_catalogs.php | 1 + .../V2alpha/CatalogServiceClient/remove_catalog_attribute.php | 1 + .../V2alpha/CatalogServiceClient/replace_catalog_attribute.php | 1 + .../V2alpha/CatalogServiceClient/set_default_branch.php | 1 + .../V2alpha/CatalogServiceClient/update_attributes_config.php | 1 + .../samples/V2alpha/CatalogServiceClient/update_catalog.php | 1 + .../V2alpha/CatalogServiceClient/update_completion_config.php | 1 + .../samples/V2alpha/CompletionServiceClient/complete_query.php | 1 + .../V2alpha/CompletionServiceClient/import_completion_data.php | 1 + .../samples/V2alpha/ControlServiceClient/create_control.php | 1 + .../samples/V2alpha/ControlServiceClient/delete_control.php | 1 + .../samples/V2alpha/ControlServiceClient/get_control.php | 1 + .../samples/V2alpha/ControlServiceClient/list_controls.php | 1 + .../samples/V2alpha/ControlServiceClient/update_control.php | 1 + .../conversational_search.php | 1 + .../batch_update_generative_question_configs.php | 1 + .../get_generative_questions_feature_config.php | 1 + .../list_generative_question_configs.php | 1 + .../update_generative_question_config.php | 1 + .../update_generative_questions_feature_config.php | 1 + .../create_merchant_center_account_link.php | 1 + .../delete_merchant_center_account_link.php | 1 + .../list_merchant_center_account_links.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/create_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/delete_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/get_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/list_models.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/pause_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/resume_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/tune_model.php | 1 + .../retail/samples/V2alpha/ModelServiceClient/update_model.php | 1 + .../retail/samples/V2alpha/PredictionServiceClient/predict.php | 1 + .../V2alpha/ProductServiceClient/add_fulfillment_places.php | 1 + .../V2alpha/ProductServiceClient/add_local_inventories.php | 1 + .../samples/V2alpha/ProductServiceClient/create_product.php | 1 + .../samples/V2alpha/ProductServiceClient/delete_product.php | 1 + .../samples/V2alpha/ProductServiceClient/export_products.php | 1 + .../samples/V2alpha/ProductServiceClient/get_product.php | 1 + .../samples/V2alpha/ProductServiceClient/import_products.php | 1 + .../samples/V2alpha/ProductServiceClient/list_products.php | 1 + .../samples/V2alpha/ProductServiceClient/purge_products.php | 1 + .../V2alpha/ProductServiceClient/remove_fulfillment_places.php | 1 + .../V2alpha/ProductServiceClient/remove_local_inventories.php | 1 + .../samples/V2alpha/ProductServiceClient/set_inventory.php | 1 + .../samples/V2alpha/ProductServiceClient/update_product.php | 1 + .../samples/V2alpha/ProjectServiceClient/accept_terms.php | 1 + .../samples/V2alpha/ProjectServiceClient/enroll_solution.php | 1 + .../samples/V2alpha/ProjectServiceClient/get_alert_config.php | 1 + .../V2alpha/ProjectServiceClient/get_logging_config.php | 1 + .../samples/V2alpha/ProjectServiceClient/get_project.php | 1 + .../V2alpha/ProjectServiceClient/list_enrolled_solutions.php | 1 + .../V2alpha/ProjectServiceClient/update_alert_config.php | 1 + .../V2alpha/ProjectServiceClient/update_logging_config.php | 1 + .../retail/samples/V2alpha/SearchServiceClient/search.php | 1 + .../samples/V2alpha/ServingConfigServiceClient/add_control.php | 1 + .../ServingConfigServiceClient/create_serving_config.php | 1 + .../ServingConfigServiceClient/delete_serving_config.php | 1 + .../V2alpha/ServingConfigServiceClient/get_serving_config.php | 1 + .../ServingConfigServiceClient/list_serving_configs.php | 1 + .../V2alpha/ServingConfigServiceClient/remove_control.php | 1 + .../ServingConfigServiceClient/update_serving_config.php | 1 + .../V2alpha/UserEventServiceClient/collect_user_event.php | 1 + .../V2alpha/UserEventServiceClient/export_user_events.php | 1 + .../V2alpha/UserEventServiceClient/import_user_events.php | 1 + .../V2alpha/UserEventServiceClient/purge_user_events.php | 1 + .../V2alpha/UserEventServiceClient/rejoin_user_events.php | 1 + .../V2alpha/UserEventServiceClient/write_user_event.php | 1 + .../retail/src/V2alpha/Client/AnalyticsServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/BranchServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/CatalogServiceClient.php | 2 ++ .../retail/src/V2alpha/Client/CompletionServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/ControlServiceClient.php | 2 ++ .../src/V2alpha/Client/ConversationalSearchServiceClient.php | 2 ++ .../src/V2alpha/Client/GenerativeQuestionServiceClient.php | 2 ++ .../V2alpha/Client/MerchantCenterAccountLinkServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/ModelServiceClient.php | 2 ++ .../retail/src/V2alpha/Client/PredictionServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/ProductServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/ProjectServiceClient.php | 2 ++ .../goldens/retail/src/V2alpha/Client/SearchServiceClient.php | 2 ++ .../retail/src/V2alpha/Client/ServingConfigServiceClient.php | 2 ++ .../retail/src/V2alpha/Client/UserEventServiceClient.php | 2 ++ .../V2alpha/resources/analytics_service_descriptor_config.php | 1 + .../V2alpha/resources/analytics_service_rest_client_config.php | 1 + .../src/V2alpha/resources/branch_service_descriptor_config.php | 1 + .../V2alpha/resources/branch_service_rest_client_config.php | 1 + .../V2alpha/resources/catalog_service_descriptor_config.php | 1 + .../V2alpha/resources/catalog_service_rest_client_config.php | 1 + .../V2alpha/resources/completion_service_descriptor_config.php | 1 + .../resources/completion_service_rest_client_config.php | 1 + .../V2alpha/resources/control_service_descriptor_config.php | 1 + .../V2alpha/resources/control_service_rest_client_config.php | 1 + .../conversational_search_service_descriptor_config.php | 1 + .../conversational_search_service_rest_client_config.php | 1 + .../generative_question_service_descriptor_config.php | 1 + .../generative_question_service_rest_client_config.php | 1 + .../merchant_center_account_link_service_descriptor_config.php | 1 + ...merchant_center_account_link_service_rest_client_config.php | 1 + .../src/V2alpha/resources/model_service_descriptor_config.php | 1 + .../src/V2alpha/resources/model_service_rest_client_config.php | 1 + .../V2alpha/resources/prediction_service_descriptor_config.php | 1 + .../resources/prediction_service_rest_client_config.php | 1 + .../V2alpha/resources/product_service_descriptor_config.php | 1 + .../V2alpha/resources/product_service_rest_client_config.php | 1 + .../V2alpha/resources/project_service_descriptor_config.php | 1 + .../V2alpha/resources/project_service_rest_client_config.php | 1 + .../src/V2alpha/resources/search_service_descriptor_config.php | 1 + .../V2alpha/resources/search_service_rest_client_config.php | 1 + .../resources/serving_config_service_descriptor_config.php | 1 + .../resources/serving_config_service_rest_client_config.php | 1 + .../V2alpha/resources/user_event_service_descriptor_config.php | 1 + .../resources/user_event_service_rest_client_config.php | 1 + .../tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/BranchServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/CatalogServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/CompletionServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/ControlServiceClientTest.php | 2 ++ .../V2alpha/Client/ConversationalSearchServiceClientTest.php | 2 ++ .../V2alpha/Client/GenerativeQuestionServiceClientTest.php | 2 ++ .../Client/MerchantCenterAccountLinkServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/ModelServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/PredictionServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/ProductServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/ProjectServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/SearchServiceClientTest.php | 2 ++ .../Unit/V2alpha/Client/ServingConfigServiceClientTest.php | 2 ++ .../tests/Unit/V2alpha/Client/UserEventServiceClientTest.php | 2 ++ .../batch_create_resource_value_configs.php | 1 + .../samples/V1/SecurityCenterClient/bulk_mute_findings.php | 1 + .../V1/SecurityCenterClient/create_big_query_export.php | 1 + .../create_event_threat_detection_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/create_finding.php | 1 + .../samples/V1/SecurityCenterClient/create_mute_config.php | 1 + .../V1/SecurityCenterClient/create_notification_config.php | 1 + .../create_security_health_analytics_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/create_source.php | 1 + .../V1/SecurityCenterClient/delete_big_query_export.php | 1 + .../delete_event_threat_detection_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/delete_mute_config.php | 1 + .../V1/SecurityCenterClient/delete_notification_config.php | 1 + .../V1/SecurityCenterClient/delete_resource_value_config.php | 1 + .../delete_security_health_analytics_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/get_big_query_export.php | 1 + .../get_effective_event_threat_detection_custom_module.php | 1 + .../get_effective_security_health_analytics_custom_module.php | 1 + .../get_event_threat_detection_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/get_iam_policy.php | 1 + .../samples/V1/SecurityCenterClient/get_mute_config.php | 1 + .../V1/SecurityCenterClient/get_notification_config.php | 1 + .../V1/SecurityCenterClient/get_organization_settings.php | 1 + .../V1/SecurityCenterClient/get_resource_value_config.php | 1 + .../get_security_health_analytics_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/get_simulation.php | 1 + .../samples/V1/SecurityCenterClient/get_source.php | 1 + .../samples/V1/SecurityCenterClient/get_valued_resource.php | 1 + .../samples/V1/SecurityCenterClient/group_assets.php | 1 + .../samples/V1/SecurityCenterClient/group_findings.php | 1 + .../samples/V1/SecurityCenterClient/list_assets.php | 1 + .../samples/V1/SecurityCenterClient/list_attack_paths.php | 1 + .../samples/V1/SecurityCenterClient/list_big_query_exports.php | 1 + .../list_descendant_event_threat_detection_custom_modules.php | 1 + ...ist_descendant_security_health_analytics_custom_modules.php | 1 + .../list_effective_event_threat_detection_custom_modules.php | 1 + ...list_effective_security_health_analytics_custom_modules.php | 1 + .../list_event_threat_detection_custom_modules.php | 1 + .../samples/V1/SecurityCenterClient/list_findings.php | 1 + .../samples/V1/SecurityCenterClient/list_mute_configs.php | 1 + .../V1/SecurityCenterClient/list_notification_configs.php | 1 + .../V1/SecurityCenterClient/list_resource_value_configs.php | 1 + .../list_security_health_analytics_custom_modules.php | 1 + .../samples/V1/SecurityCenterClient/list_sources.php | 1 + .../samples/V1/SecurityCenterClient/list_valued_resources.php | 1 + .../samples/V1/SecurityCenterClient/run_asset_discovery.php | 1 + .../samples/V1/SecurityCenterClient/set_finding_state.php | 1 + .../samples/V1/SecurityCenterClient/set_iam_policy.php | 1 + .../samples/V1/SecurityCenterClient/set_mute.php | 1 + .../simulate_security_health_analytics_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/test_iam_permissions.php | 1 + .../V1/SecurityCenterClient/update_big_query_export.php | 1 + .../update_event_threat_detection_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/update_external_system.php | 1 + .../samples/V1/SecurityCenterClient/update_finding.php | 1 + .../samples/V1/SecurityCenterClient/update_mute_config.php | 1 + .../V1/SecurityCenterClient/update_notification_config.php | 1 + .../V1/SecurityCenterClient/update_organization_settings.php | 1 + .../V1/SecurityCenterClient/update_resource_value_config.php | 1 + .../update_security_health_analytics_custom_module.php | 1 + .../samples/V1/SecurityCenterClient/update_security_marks.php | 1 + .../samples/V1/SecurityCenterClient/update_source.php | 1 + .../validate_event_threat_detection_custom_module.php | 1 + .../securitycenter/src/V1/Client/SecurityCenterClient.php | 2 ++ .../src/V1/resources/security_center_descriptor_config.php | 1 + .../src/V1/resources/security_center_rest_client_config.php | 1 + .../tests/Unit/V1/Client/SecurityCenterClientTest.php | 2 ++ .../samples/V1/DatabaseAdminClient/add_split_points.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/copy_backup.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/create_backup.php | 1 + .../samples/V1/DatabaseAdminClient/create_backup_schedule.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/create_database.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/delete_backup.php | 1 + .../samples/V1/DatabaseAdminClient/delete_backup_schedule.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/drop_database.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/get_backup.php | 1 + .../samples/V1/DatabaseAdminClient/get_backup_schedule.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/get_database.php | 1 + .../samples/V1/DatabaseAdminClient/get_database_ddl.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/get_iam_policy.php | 1 + .../V1/DatabaseAdminClient/internal_update_graph_operation.php | 1 + .../samples/V1/DatabaseAdminClient/list_backup_operations.php | 1 + .../samples/V1/DatabaseAdminClient/list_backup_schedules.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/list_backups.php | 1 + .../V1/DatabaseAdminClient/list_database_operations.php | 1 + .../samples/V1/DatabaseAdminClient/list_database_roles.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/list_databases.php | 1 + .../samples/V1/DatabaseAdminClient/restore_database.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/set_iam_policy.php | 1 + .../samples/V1/DatabaseAdminClient/test_iam_permissions.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/update_backup.php | 1 + .../samples/V1/DatabaseAdminClient/update_backup_schedule.php | 1 + .../spanner/samples/V1/DatabaseAdminClient/update_database.php | 1 + .../samples/V1/DatabaseAdminClient/update_database_ddl.php | 1 + .../goldens/spanner/src/V1/Client/DatabaseAdminClient.php | 2 ++ .../src/V1/resources/database_admin_descriptor_config.php | 1 + .../src/V1/resources/database_admin_rest_client_config.php | 1 + .../spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php | 2 ++ .../speech/samples/V1/AdaptationClient/create_custom_class.php | 1 + .../speech/samples/V1/AdaptationClient/create_phrase_set.php | 1 + .../speech/samples/V1/AdaptationClient/delete_custom_class.php | 1 + .../speech/samples/V1/AdaptationClient/delete_phrase_set.php | 1 + .../speech/samples/V1/AdaptationClient/get_custom_class.php | 1 + .../speech/samples/V1/AdaptationClient/get_phrase_set.php | 1 + .../speech/samples/V1/AdaptationClient/list_custom_classes.php | 1 + .../speech/samples/V1/AdaptationClient/list_phrase_set.php | 1 + .../speech/samples/V1/AdaptationClient/update_custom_class.php | 1 + .../speech/samples/V1/AdaptationClient/update_phrase_set.php | 1 + .../speech/samples/V1/SpeechClient/long_running_recognize.php | 1 + .../goldens/speech/samples/V1/SpeechClient/recognize.php | 1 + .../speech/samples/V1/SpeechClient/streaming_recognize.php | 1 + .../goldens/speech/src/V1/Client/AdaptationClient.php | 2 ++ .../Integration/goldens/speech/src/V1/Client/SpeechClient.php | 2 ++ .../speech/src/V1/resources/adaptation_descriptor_config.php | 1 + .../speech/src/V1/resources/adaptation_rest_client_config.php | 1 + .../speech/src/V1/resources/speech_descriptor_config.php | 1 + .../speech/src/V1/resources/speech_rest_client_config.php | 1 + .../speech/tests/Unit/V1/Client/AdaptationClientTest.php | 2 ++ .../goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php | 2 ++ .../samples/V4beta1/CompanyServiceClient/create_company.php | 1 + .../samples/V4beta1/CompanyServiceClient/delete_company.php | 1 + .../samples/V4beta1/CompanyServiceClient/get_company.php | 1 + .../samples/V4beta1/CompanyServiceClient/list_companies.php | 1 + .../samples/V4beta1/CompanyServiceClient/update_company.php | 1 + .../talent/samples/V4beta1/CompletionClient/complete_query.php | 1 + .../samples/V4beta1/EventServiceClient/create_client_event.php | 1 + .../samples/V4beta1/JobServiceClient/batch_create_jobs.php | 1 + .../samples/V4beta1/JobServiceClient/batch_delete_jobs.php | 1 + .../samples/V4beta1/JobServiceClient/batch_update_jobs.php | 1 + .../talent/samples/V4beta1/JobServiceClient/create_job.php | 1 + .../talent/samples/V4beta1/JobServiceClient/delete_job.php | 1 + .../talent/samples/V4beta1/JobServiceClient/get_job.php | 1 + .../talent/samples/V4beta1/JobServiceClient/list_jobs.php | 1 + .../talent/samples/V4beta1/JobServiceClient/search_jobs.php | 1 + .../samples/V4beta1/JobServiceClient/search_jobs_for_alert.php | 1 + .../talent/samples/V4beta1/JobServiceClient/update_job.php | 1 + .../samples/V4beta1/TenantServiceClient/create_tenant.php | 1 + .../samples/V4beta1/TenantServiceClient/delete_tenant.php | 1 + .../talent/samples/V4beta1/TenantServiceClient/get_tenant.php | 1 + .../samples/V4beta1/TenantServiceClient/list_tenants.php | 1 + .../samples/V4beta1/TenantServiceClient/update_tenant.php | 1 + .../goldens/talent/src/V4beta1/Client/CompanyServiceClient.php | 2 ++ .../goldens/talent/src/V4beta1/Client/CompletionClient.php | 2 ++ .../goldens/talent/src/V4beta1/Client/EventServiceClient.php | 2 ++ .../goldens/talent/src/V4beta1/Client/JobServiceClient.php | 2 ++ .../goldens/talent/src/V4beta1/Client/TenantServiceClient.php | 2 ++ .../V4beta1/resources/company_service_descriptor_config.php | 1 + .../V4beta1/resources/company_service_rest_client_config.php | 1 + .../src/V4beta1/resources/completion_descriptor_config.php | 1 + .../src/V4beta1/resources/completion_rest_client_config.php | 1 + .../src/V4beta1/resources/event_service_descriptor_config.php | 1 + .../src/V4beta1/resources/event_service_rest_client_config.php | 1 + .../src/V4beta1/resources/job_service_descriptor_config.php | 1 + .../src/V4beta1/resources/job_service_rest_client_config.php | 1 + .../src/V4beta1/resources/tenant_service_descriptor_config.php | 1 + .../V4beta1/resources/tenant_service_rest_client_config.php | 1 + .../tests/Unit/V4beta1/Client/CompanyServiceClientTest.php | 2 ++ .../talent/tests/Unit/V4beta1/Client/CompletionClientTest.php | 2 ++ .../tests/Unit/V4beta1/Client/EventServiceClientTest.php | 2 ++ .../talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php | 2 ++ .../tests/Unit/V4beta1/Client/TenantServiceClientTest.php | 2 ++ .../V1/VideoIntelligenceServiceClient/annotate_video.php | 1 + .../src/V1/Client/VideoIntelligenceServiceClient.php | 2 ++ .../resources/video_intelligence_service_descriptor_config.php | 1 + .../video_intelligence_service_rest_client_config.php | 1 + .../Unit/V1/Client/VideoIntelligenceServiceClientTest.php | 2 ++ .../Unit/ProtoTests/Basic/out/samples/BasicClient/a_method.php | 1 + .../Basic/out/samples/BasicClient/method_with_args.php | 1 + tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php | 2 ++ .../Basic/out/src/resources/basic_descriptor_config.php | 1 + .../Basic/out/src/resources/basic_rest_client_config.php | 1 + .../ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php | 2 ++ .../out/samples/BasicAutoPopulationClient/create_foo.php | 1 + .../out/samples/BasicAutoPopulationClient/get_foo.php | 1 + .../out/src/Client/BasicAutoPopulationClient.php | 2 ++ .../src/resources/basic_auto_population_descriptor_config.php | 1 + .../src/resources/basic_auto_population_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicAutoPopulationClientTest.php | 2 ++ .../out/samples/BasicBidiStreamingClient/method_bidi.php | 1 + .../out/samples/BasicBidiStreamingClient/method_empty.php | 1 + .../out/src/Client/BasicBidiStreamingClient.php | 2 ++ .../src/resources/basic_bidi_streaming_descriptor_config.php | 1 + .../src/resources/basic_bidi_streaming_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicBidiStreamingClientTest.php | 2 ++ .../out/samples/BasicClientStreamingClient/method_client.php | 1 + .../out/samples/BasicClientStreamingClient/method_empty.php | 1 + .../out/src/Client/BasicClientStreamingClient.php | 2 ++ .../src/resources/basic_client_streaming_descriptor_config.php | 1 + .../resources/basic_client_streaming_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicClientStreamingClientTest.php | 2 ++ .../BasicDiregapic/out/samples/LibraryClient/add_comments.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/add_tag.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/archive_books.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/create_book.php | 1 + .../out/samples/LibraryClient/create_inventory.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/create_shelf.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/delete_book.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/delete_shelf.php | 1 + .../out/samples/LibraryClient/find_related_books.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/get_big_book.php | 1 + .../out/samples/LibraryClient/get_big_nothing.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/get_book.php | 1 + .../LibraryClient/get_book_from_absolutely_anywhere.php | 1 + .../out/samples/LibraryClient/get_book_from_anywhere.php | 1 + .../out/samples/LibraryClient/get_book_from_archive.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/get_shelf.php | 1 + .../out/samples/LibraryClient/list_aggregated_shelves.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/list_books.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/list_shelves.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/list_strings.php | 1 + .../out/samples/LibraryClient/long_running_archive_books.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/merge_shelves.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/move_book.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/move_books.php | 1 + .../out/samples/LibraryClient/private_list_shelves.php | 1 + .../out/samples/LibraryClient/publish_series.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/save_book.php | 1 + .../BasicDiregapic/out/samples/LibraryClient/update_book.php | 1 + .../out/samples/LibraryClient/update_book_index.php | 1 + .../ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php | 2 ++ .../out/src/resources/library_descriptor_config.php | 1 + .../out/src/resources/library_rest_client_config.php | 1 + .../BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php | 2 ++ .../BasicExplicitPaginatedClient/method_explicit_paginated.php | 1 + .../out/src/Client/BasicExplicitPaginatedClient.php | 2 ++ .../resources/basic_explicit_paginated_descriptor_config.php | 1 + .../resources/basic_explicit_paginated_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php | 2 ++ .../BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php | 2 ++ .../out/src/resources/basic_grpc_only_descriptor_config.php | 1 + .../out/tests/Unit/Client/BasicGrpcOnlyClientTest.php | 2 ++ .../ProtoTests/BasicLro/out/samples/BasicLroClient/method1.php | 1 + .../BasicLro/out/samples/BasicLroClient/method_non_lro1.php | 1 + .../BasicLro/out/samples/BasicLroClient/method_non_lro2.php | 1 + .../Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php | 2 ++ .../BasicLro/out/src/resources/basic_lro_descriptor_config.php | 1 + .../out/src/resources/basic_lro_rest_client_config.php | 1 + .../BasicLro/out/tests/Unit/Client/BasicLroClientTest.php | 2 ++ .../BasicOneof/out/samples/BasicOneofClient/a_method.php | 1 + .../ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php | 2 ++ .../out/src/resources/basic_oneof_descriptor_config.php | 1 + .../out/src/resources/basic_oneof_rest_client_config.php | 1 + .../BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php | 2 ++ .../out/samples/BasicPaginatedClient/method_paginated.php | 1 + .../BasicPaginated/out/src/Client/BasicPaginatedClient.php | 2 ++ .../out/src/resources/basic_paginated_descriptor_config.php | 1 + .../out/src/resources/basic_paginated_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicPaginatedClientTest.php | 2 ++ .../out/samples/BasicServerStreamingClient/method_empty.php | 1 + .../out/samples/BasicServerStreamingClient/method_server.php | 1 + .../out/src/Client/BasicServerStreamingClient.php | 2 ++ .../src/resources/basic_server_streaming_descriptor_config.php | 1 + .../resources/basic_server_streaming_rest_client_config.php | 1 + .../out/tests/Unit/Client/BasicServerStreamingClientTest.php | 2 ++ .../CustomLro/out/samples/CustomLroClient/create_foo.php | 1 + .../CustomLro/out/samples/CustomLroOperationsClient/cancel.php | 1 + .../CustomLro/out/samples/CustomLroOperationsClient/delete.php | 1 + .../CustomLro/out/samples/CustomLroOperationsClient/get.php | 1 + .../ProtoTests/CustomLro/out/src/Client/CustomLroClient.php | 2 ++ .../CustomLro/out/src/Client/CustomLroOperationsClient.php | 2 ++ .../out/src/resources/custom_lro_descriptor_config.php | 1 + .../src/resources/custom_lro_operations_descriptor_config.php | 1 + .../src/resources/custom_lro_operations_rest_client_config.php | 1 + .../out/src/resources/custom_lro_rest_client_config.php | 1 + .../CustomLro/out/tests/Unit/Client/CustomLroClientTest.php | 2 ++ .../out/tests/Unit/Client/CustomLroOperationsClientTest.php | 2 ++ .../out/samples/DeprecatedServiceClient/fast_fibonacci.php | 1 + .../out/samples/DeprecatedServiceClient/slow_fibonacci.php | 1 + .../out/src/Client/DeprecatedServiceClient.php | 2 ++ .../out/src/resources/deprecated_service_descriptor_config.php | 1 + .../src/resources/deprecated_service_rest_client_config.php | 1 + .../out/tests/Unit/Client/DeprecatedServiceClientTest.php | 2 ++ .../samples/HeuristicPaginationClientClient/list_method.php | 1 + .../out/samples/HeuristicPaginationClientClient/map_method.php | 1 + .../HeuristicPaginationClientClient/multiple_list_method.php | 1 + .../HeuristicPaginationClientClient/non_paginated_method.php | 1 + .../out/src/Client/HeuristicPaginationClientClient.php | 2 ++ .../heuristic_pagination_client_descriptor_config.php | 1 + .../heuristic_pagination_client_rest_client_config.php | 1 + .../tests/Unit/Client/HeuristicPaginationClientClientTest.php | 2 ++ .../DisableSnippets/out/src/Client/DisableSnippetsClient.php | 2 ++ .../out/src/resources/disable_snippets_descriptor_config.php | 1 + .../out/src/resources/disable_snippets_rest_client_config.php | 1 + .../out/tests/Unit/Client/DisableSnippetsClientTest.php | 2 ++ .../samples/GrpcServiceConfigWithRetry1Client/method1_a.php | 1 + .../GrpcServiceConfigWithRetry1Client/method1_b_lro.php | 1 + .../method1_bidi_streaming.php | 1 + .../method1_c_service_level_retry.php | 1 + .../method1_d_timeout_only_retry.php | 1 + .../method1_server_streaming.php | 1 + .../out/src/Client/GrpcServiceConfigWithRetry1Client.php | 2 ++ .../grpc_service_config_with_retry1_descriptor_config.php | 1 + .../grpc_service_config_with_retry1_rest_client_config.php | 1 + .../Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php | 2 ++ .../ResourceNamesClient/file_level_child_type_ref_method.php | 1 + .../samples/ResourceNamesClient/file_level_type_ref_method.php | 1 + .../out/samples/ResourceNamesClient/multi_pattern_method.php | 1 + .../samples/ResourceNamesClient/nested_reference_method.php | 1 + .../out/samples/ResourceNamesClient/single_pattern_method.php | 1 + .../ResourceNamesClient/wildcard_child_reference_method.php | 1 + .../out/samples/ResourceNamesClient/wildcard_method.php | 1 + .../out/samples/ResourceNamesClient/wildcard_multi_method.php | 1 + .../samples/ResourceNamesClient/wildcard_reference_method.php | 1 + .../ResourceNames/out/src/Client/ResourceNamesClient.php | 2 ++ .../out/src/resources/resource_names_descriptor_config.php | 1 + .../out/src/resources/resource_names_rest_client_config.php | 1 + .../out/tests/Unit/Client/ResourceNamesClientTest.php | 2 ++ .../ResumableUploadClient/create_you_tube_video_upload.php | 1 + .../ResumableUpload/out/src/Client/ResumableUploadClient.php | 2 ++ .../out/src/resources/resumable_upload_descriptor_config.php | 1 + .../out/src/resources/resumable_upload_rest_client_config.php | 1 + .../out/tests/Unit/Client/ResumableUploadClientTest.php | 2 ++ .../out/samples/RoutingHeadersClient/delete_method.php | 1 + .../out/samples/RoutingHeadersClient/get_method.php | 1 + .../RoutingHeadersClient/get_no_placeholders_method.php | 1 + .../samples/RoutingHeadersClient/get_no_template_method.php | 1 + .../out/samples/RoutingHeadersClient/nested_method.php | 1 + .../out/samples/RoutingHeadersClient/nested_multi_method.php | 1 + .../out/samples/RoutingHeadersClient/ordering_method.php | 1 + .../out/samples/RoutingHeadersClient/patch_method.php | 1 + .../out/samples/RoutingHeadersClient/post_method.php | 1 + .../out/samples/RoutingHeadersClient/put_method.php | 1 + .../RoutingHeadersClient/routing_rule_with_out_parameters.php | 1 + .../RoutingHeadersClient/routing_rule_with_parameters.php | 1 + .../RoutingHeaders/out/src/Client/RoutingHeadersClient.php | 2 ++ .../out/src/resources/routing_headers_descriptor_config.php | 1 + .../out/src/resources/routing_headers_rest_client_config.php | 1 + .../out/tests/Unit/Client/RoutingHeadersClientTest.php | 2 ++ 774 files changed, 904 insertions(+), 2 deletions(-) diff --git a/src/Ast/PhpFile.php b/src/Ast/PhpFile.php index 29c00d3be..8a16aee5b 100644 --- a/src/Ast/PhpFile.php +++ b/src/Ast/PhpFile.php @@ -107,8 +107,7 @@ public function toCode(): string $lines = [ 'headerLines->map(fn ($x) => "{$x}\n")->join(), - // TODO(miraleung): Uncomment this when the client libraries support only PHP 7+. - // "declare(strict_types=1);\n", + "declare(strict_types=1);\n", ]; if ($this->class) { diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy.php index 52c864565..83e9f9680 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeIamPolicy_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php index 37a811070..28d152e1a 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeIamPolicyLongrunning_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_move.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_move.php index 8a15e6b97..975a1cffe 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_move.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_move.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeMove_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policies.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policies.php index 3e1198261..51824aa4f 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policies.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policies.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeOrgPolicies_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php index ad8d13017..6328110da 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedAssets_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php index 96564bd8c..c2b006f09 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/analyze_org_policy_governed_containers.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedContainers_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_assets_history.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_assets_history.php index 9c29e16ff..9c943614f 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_assets_history.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_assets_history.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_BatchGetAssetsHistory_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php index 271780e47..5b01999d5 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_BatchGetEffectiveIamPolicies_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_feed.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_feed.php index d518a8795..2f8ea3e36 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_feed.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_feed.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_CreateFeed_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_saved_query.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_saved_query.php index 56fc9bbe3..8947ba7e8 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_saved_query.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/create_saved_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_CreateSavedQuery_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_feed.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_feed.php index 97b4dde22..6a201dec2 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_feed.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_feed.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_DeleteFeed_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_saved_query.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_saved_query.php index 5f2970a4a..6177c868e 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_saved_query.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/delete_saved_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_DeleteSavedQuery_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/export_assets.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/export_assets.php index d41b308c9..8fdd59eef 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/export_assets.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/export_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_ExportAssets_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_feed.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_feed.php index 253ef6004..4d5890fdf 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_feed.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_feed.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_GetFeed_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_saved_query.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_saved_query.php index f8ca6789f..5c5647d4b 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_saved_query.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/get_saved_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_GetSavedQuery_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_assets.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_assets.php index fa8bbe45c..a59f5a095 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_assets.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_ListAssets_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_feeds.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_feeds.php index b267f1a8d..a8a118df8 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_feeds.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_feeds.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_ListFeeds_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_saved_queries.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_saved_queries.php index bd1f962ea..3a0ef3bca 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_saved_queries.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/list_saved_queries.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_ListSavedQueries_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/query_assets.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/query_assets.php index 6c98d60af..1f2c5ce87 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/query_assets.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/query_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_QueryAssets_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_iam_policies.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_iam_policies.php index 7f864b0b3..e70bd3693 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_iam_policies.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_iam_policies.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_SearchAllIamPolicies_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_resources.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_resources.php index 13be02f8e..f3bbb05e3 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_resources.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/search_all_resources.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_SearchAllResources_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_feed.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_feed.php index 6e6633072..a13db6379 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_feed.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_feed.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_UpdateFeed_sync] diff --git a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_saved_query.php b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_saved_query.php index 6f7182c09..ee6f0dd2b 100644 --- a/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_saved_query.php +++ b/tests/Integration/goldens/asset/samples/V1/AssetServiceClient/update_saved_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudasset_v1_generated_AssetService_UpdateSavedQuery_sync] diff --git a/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php b/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php index 188cdd5bd..d0038dadf 100644 --- a/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php +++ b/tests/Integration/goldens/asset/src/V1/Client/AssetServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Asset\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/asset/src/V1/resources/asset_service_descriptor_config.php b/tests/Integration/goldens/asset/src/V1/resources/asset_service_descriptor_config.php index bb19d1ac4..ea74b95b0 100644 --- a/tests/Integration/goldens/asset/src/V1/resources/asset_service_descriptor_config.php +++ b/tests/Integration/goldens/asset/src/V1/resources/asset_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.asset.v1.AssetService' => [ diff --git a/tests/Integration/goldens/asset/src/V1/resources/asset_service_rest_client_config.php b/tests/Integration/goldens/asset/src/V1/resources/asset_service_rest_client_config.php index 26e2c0df4..e19474523 100644 --- a/tests/Integration/goldens/asset/src/V1/resources/asset_service_rest_client_config.php +++ b/tests/Integration/goldens/asset/src/V1/resources/asset_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.asset.v1.AssetService' => [ diff --git a/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php b/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php index 37b5af819..02ff2fad9 100644 --- a/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php +++ b/tests/Integration/goldens/asset/tests/Unit/V1/Client/AssetServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Asset\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/aggregated_list.php b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/aggregated_list.php index dae301271..aa9a55671 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/aggregated_list.php +++ b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/aggregated_list.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_Addresses_AggregatedList_sync] diff --git a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/delete.php b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/delete.php index dcda6a125..962229e59 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/delete.php +++ b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/delete.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_Addresses_Delete_sync] diff --git a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/insert.php b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/insert.php index 7c8518691..ee15630ec 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/insert.php +++ b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/insert.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_Addresses_Insert_sync] diff --git a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/list.php b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/list.php index 981c1443a..9a089ff2d 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/list.php +++ b/tests/Integration/goldens/compute_small/samples/V1/AddressesClient/list.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_Addresses_List_sync] diff --git a/tests/Integration/goldens/compute_small/samples/V1/RegionOperationsClient/get.php b/tests/Integration/goldens/compute_small/samples/V1/RegionOperationsClient/get.php index 300b3b5be..e6d1e1dd2 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/RegionOperationsClient/get.php +++ b/tests/Integration/goldens/compute_small/samples/V1/RegionOperationsClient/get.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_RegionOperations_Get_sync] diff --git a/tests/Integration/goldens/compute_small/samples/V1/SubnetworksClient/list_usable.php b/tests/Integration/goldens/compute_small/samples/V1/SubnetworksClient/list_usable.php index 6b4e108a4..ffa7be1c7 100644 --- a/tests/Integration/goldens/compute_small/samples/V1/SubnetworksClient/list_usable.php +++ b/tests/Integration/goldens/compute_small/samples/V1/SubnetworksClient/list_usable.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START compute_v1_generated_Subnetworks_ListUsable_sync] diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php index 892ac6804..a15b0c185 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/AddressesClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php index 4bcd02a55..da4361df4 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/RegionOperationsClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php b/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php index ad3c15a1a..7911182f2 100644 --- a/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php +++ b/tests/Integration/goldens/compute_small/src/V1/Client/SubnetworksClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Compute\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/addresses_descriptor_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/addresses_descriptor_config.php index bdc41fa77..c06f0db98 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/addresses_descriptor_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/addresses_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.Addresses' => [ diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/addresses_rest_client_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/addresses_rest_client_config.php index 1e6f8ffcd..1c8054b41 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/addresses_rest_client_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/addresses_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.Addresses' => [ diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_descriptor_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_descriptor_config.php index 6f7dbe947..862e90625 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_descriptor_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.RegionOperations' => [ diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_rest_client_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_rest_client_config.php index e76a16770..8e7a62cbe 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_rest_client_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/region_operations_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.RegionOperations' => [ diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_descriptor_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_descriptor_config.php index 97cb8c4a1..781514cc7 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_descriptor_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.Subnetworks' => [ diff --git a/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_rest_client_config.php b/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_rest_client_config.php index 5a5a9068b..3ab461ace 100644 --- a/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_rest_client_config.php +++ b/tests/Integration/goldens/compute_small/src/V1/resources/subnetworks_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.compute.v1.Subnetworks' => [ diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php index 40abf525a..e2a7529d1 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/AddressesClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php index e6fa384e6..60e9cab95 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/RegionOperationsClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php index fe550b84a..157612e82 100644 --- a/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php +++ b/tests/Integration/goldens/compute_small/tests/Unit/V1/Client/SubnetworksClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Compute\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/cancel_operation.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/cancel_operation.php index 5ceafca88..4f18e14b9 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/cancel_operation.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/cancel_operation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php index 45f971ba2..ff0dac415 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CheckAutopilotCompatibility_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_ip_rotation.php index 888d3aca8..65ac732ef 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_ip_rotation.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_ip_rotation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php index 5eab24207..cfa3cd6f2 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_cluster.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_cluster.php index c33d7d17a..57be84e9d 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_cluster.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_node_pool.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_node_pool.php index 92aa5e019..59f7fb26b 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_node_pool.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/create_node_pool.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_cluster.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_cluster.php index a30c63e66..bdba9cd02 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_cluster.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_node_pool.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_node_pool.php index 7a7650479..24bec69e5 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_node_pool.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/delete_node_pool.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_cluster_upgrade_info.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_cluster_upgrade_info.php index bcf3fb48d..2c1d7a9da 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_cluster_upgrade_info.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_cluster_upgrade_info.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_FetchClusterUpgradeInfo_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_node_pool_upgrade_info.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_node_pool_upgrade_info.php index 7b3029d89..cf01e4608 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_node_pool_upgrade_info.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/fetch_node_pool_upgrade_info.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_FetchNodePoolUpgradeInfo_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_cluster.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_cluster.php index 848afc667..44f180dd2 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_cluster.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_json_web_keys.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_json_web_keys.php index b5ca358e3..6125d2fb5 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_json_web_keys.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_json_web_keys.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_node_pool.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_node_pool.php index e97ae5239..09d17184a 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_node_pool.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_node_pool.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_operation.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_operation.php index e302c4e65..344ed9e01 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_operation.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_operation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_server_config.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_server_config.php index 28075fb70..b72f30dfc 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_server_config.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/get_server_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_clusters.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_clusters.php index 2ddccee68..a118f68d5 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_clusters.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_clusters.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_node_pools.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_node_pools.php index a98222260..bd55eb1d1 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_node_pools.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_node_pools.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_operations.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_operations.php index 1e622389a..b71cd04cd 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_operations.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_operations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_usable_subnetworks.php index 9f98c7908..a595bfe01 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_usable_subnetworks.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/list_usable_subnetworks.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php index 8c12ea09f..9b416cdd1 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_addons_config.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_addons_config.php index 5bc57bc8f..a48148405 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_addons_config.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_addons_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_labels.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_labels.php index ebedf9f92..fb1e8d3fc 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_labels.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_labels.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_legacy_abac.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_legacy_abac.php index 8ee6ab71c..a3d2a6680 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_legacy_abac.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_legacy_abac.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_locations.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_locations.php index 320bea36b..3c411164f 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_locations.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_locations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_logging_service.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_logging_service.php index ac1f251b8..87b8f60bc 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_logging_service.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_logging_service.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_maintenance_policy.php index f2a3ba733..c833cf296 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_maintenance_policy.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_maintenance_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_master_auth.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_master_auth.php index 39711eeb1..b31df5a4e 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_master_auth.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_master_auth.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_monitoring_service.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_monitoring_service.php index 4dca4a2ea..22603dbde 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_monitoring_service.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_monitoring_service.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_network_policy.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_network_policy.php index d78e4d7d6..d17d36621 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_network_policy.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_network_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php index f1fc0011e..90fc8600a 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_management.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_management.php index 1721da2fb..a81d2a823 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_management.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_management.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_size.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_size.php index b2ad00c50..4dc2084b7 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_size.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/set_node_pool_size.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/start_ip_rotation.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/start_ip_rotation.php index a6f98fdf5..fd01d93f6 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/start_ip_rotation.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/start_ip_rotation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_cluster.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_cluster.php index 0a8603471..e9f3aa2ed 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_cluster.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_master.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_master.php index 1bc47fa94..a52680dc5 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_master.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_master.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_node_pool.php b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_node_pool.php index fe1ca3b7b..105e62e38 100644 --- a/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_node_pool.php +++ b/tests/Integration/goldens/container/samples/V1/ClusterManagerClient/update_node_pool.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php b/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php index c87ae00b5..e693b4fac 100644 --- a/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php +++ b/tests/Integration/goldens/container/src/V1/Client/ClusterManagerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Container\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/container/src/V1/resources/cluster_manager_descriptor_config.php b/tests/Integration/goldens/container/src/V1/resources/cluster_manager_descriptor_config.php index e90da0484..db0cf2b76 100644 --- a/tests/Integration/goldens/container/src/V1/resources/cluster_manager_descriptor_config.php +++ b/tests/Integration/goldens/container/src/V1/resources/cluster_manager_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.container.v1.ClusterManager' => [ diff --git a/tests/Integration/goldens/container/src/V1/resources/cluster_manager_rest_client_config.php b/tests/Integration/goldens/container/src/V1/resources/cluster_manager_rest_client_config.php index 2b1bd2025..edb4c692a 100644 --- a/tests/Integration/goldens/container/src/V1/resources/cluster_manager_rest_client_config.php +++ b/tests/Integration/goldens/container/src/V1/resources/cluster_manager_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.container.v1.ClusterManager' => [ diff --git a/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php b/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php index 8d4c6a1dc..2ad44528c 100644 --- a/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php +++ b/tests/Integration/goldens/container/tests/Unit/V1/Client/ClusterManagerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Container\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/create_autoscaling_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/create_autoscaling_policy.php index 8252d633a..d6993d6a8 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/create_autoscaling_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/create_autoscaling_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/delete_autoscaling_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/delete_autoscaling_policy.php index cf1d4ab4c..e259fb247 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/delete_autoscaling_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/delete_autoscaling_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_autoscaling_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_autoscaling_policy.php index 88fde6da7..14135889b 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_autoscaling_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_autoscaling_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_GetAutoscalingPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_iam_policy.php index e1440e971..a406a79cb 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/list_autoscaling_policies.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/list_autoscaling_policies.php index e811d3688..5e456cfc2 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/list_autoscaling_policies.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/list_autoscaling_policies.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_ListAutoscalingPolicies_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/set_iam_policy.php index b7954f14a..7dc6e6da0 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/test_iam_permissions.php index e75b8e3fc..fba6c935e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/update_autoscaling_policy.php b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/update_autoscaling_policy.php index 8d115e1ff..04cd3d938 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/update_autoscaling_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/AutoscalingPolicyServiceClient/update_autoscaling_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/create_batch.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/create_batch.php index 612778b89..47ad36467 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/create_batch.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/create_batch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_CreateBatch_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/delete_batch.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/delete_batch.php index 84e7ca65f..ff7570873 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/delete_batch.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/delete_batch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_DeleteBatch_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_batch.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_batch.php index 4f25d6464..7b16e59a6 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_batch.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_batch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_GetBatch_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_iam_policy.php index b6d580e91..7c1554c20 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/list_batches.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/list_batches.php index da956bf6d..210cf1673 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/list_batches.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/list_batches.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_ListBatches_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/set_iam_policy.php index 3f47c2a30..99bd41c5a 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/test_iam_permissions.php index c657899cf..0b343b534 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/BatchControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_BatchController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/create_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/create_cluster.php index 6cb354a4d..4cb9f9cb9 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/create_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/create_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_CreateCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/delete_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/delete_cluster.php index 8871e658f..7fbefa6e6 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/delete_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/delete_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_DeleteCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/diagnose_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/diagnose_cluster.php index feb7a4104..84cd25c41 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/diagnose_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/diagnose_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_DiagnoseCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_cluster.php index 23dd687f4..fce21261c 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_GetCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_iam_policy.php index 3cd95e8ac..1b81dbe80 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/list_clusters.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/list_clusters.php index 96a9370a8..7d00e5f3f 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/list_clusters.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/list_clusters.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_ListClusters_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/set_iam_policy.php index e164398ff..85692341e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/start_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/start_cluster.php index f8257b48c..05f6454ab 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/start_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/start_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_StartCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/stop_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/stop_cluster.php index 83861a9a0..8304dcfa5 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/stop_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/stop_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_StopCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/test_iam_permissions.php index 08d54fc4b..e8ea35871 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/update_cluster.php b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/update_cluster.php index edd8f231c..7ed540426 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/update_cluster.php +++ b/tests/Integration/goldens/dataproc/samples/V1/ClusterControllerClient/update_cluster.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_ClusterController_UpdateCluster_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/cancel_job.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/cancel_job.php index 5db036498..b7561bb7d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/cancel_job.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/cancel_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_CancelJob_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/delete_job.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/delete_job.php index 1c60a84c7..f1a1b620d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/delete_job.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/delete_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_DeleteJob_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_iam_policy.php index ebfd0e536..408af517b 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_job.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_job.php index 1e3deb317..049e208fc 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_job.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/get_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_GetJob_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/list_jobs.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/list_jobs.php index bb0c30644..8b2fd0623 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/list_jobs.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/list_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_ListJobs_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/set_iam_policy.php index 24f8b2a7d..6714b0c8e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job.php index 9cc6458b1..707d2c44c 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_SubmitJob_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job_as_operation.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job_as_operation.php index 6f9272738..24bb53457 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job_as_operation.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/submit_job_as_operation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_SubmitJobAsOperation_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/test_iam_permissions.php index e61247ad8..abc99bdda 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/update_job.php b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/update_job.php index 894d4f61b..f6051ca0d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/update_job.php +++ b/tests/Integration/goldens/dataproc/samples/V1/JobControllerClient/update_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_JobController_UpdateJob_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/create_node_group.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/create_node_group.php index 062952853..c4cb3de57 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/create_node_group.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/create_node_group.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_CreateNodeGroup_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_iam_policy.php index 327c614da..aae3938cf 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_node_group.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_node_group.php index 9bb0df609..c7951522d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_node_group.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/get_node_group.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_GetNodeGroup_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/resize_node_group.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/resize_node_group.php index a0600286b..168626717 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/resize_node_group.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/resize_node_group.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/set_iam_policy.php index 4431d73d2..f43720b2d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/test_iam_permissions.php index d12b46e51..96150f490 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/NodeGroupControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_NodeGroupController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/create_session.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/create_session.php index 9b552669e..0014f929f 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/create_session.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/create_session.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_CreateSession_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/delete_session.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/delete_session.php index 6d030a49d..257938f32 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/delete_session.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/delete_session.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_DeleteSession_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_iam_policy.php index bbd2093bb..e243390c3 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_session.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_session.php index 33586f270..cfe5db22a 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_session.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/get_session.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_GetSession_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/list_sessions.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/list_sessions.php index 0f6c177af..c9a8dd292 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/list_sessions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/list_sessions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_ListSessions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/set_iam_policy.php index 7a0480e86..f2b675943 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/terminate_session.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/terminate_session.php index 1285fdd94..fbee2785e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/terminate_session.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/terminate_session.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_TerminateSession_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/test_iam_permissions.php index 62be58470..52f6c103d 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php index 24bf3e2b4..f9a33576b 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/create_session_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_CreateSessionTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/delete_session_template.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/delete_session_template.php index c9a027833..173b2ebde 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/delete_session_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/delete_session_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_DeleteSessionTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_iam_policy.php index 5e5bb6a43..cb43b0ae6 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_session_template.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_session_template.php index 4e2ef0052..86a5d6f27 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_session_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/get_session_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_GetSessionTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/list_session_templates.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/list_session_templates.php index 25c0d943b..1ead55ec8 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/list_session_templates.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/list_session_templates.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_ListSessionTemplates_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/set_iam_policy.php index 9aa742192..b321c6f4e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/test_iam_permissions.php index c4509a282..cdb84daa4 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php index 26f241882..5dea5f310 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/SessionTemplateControllerClient/update_session_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_SessionTemplateController_UpdateSessionTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/create_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/create_workflow_template.php index c809b88e4..7a421bc4c 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/create_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/create_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_CreateWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/delete_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/delete_workflow_template.php index d94a885fc..ceda0efda 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/delete_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/delete_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_DeleteWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_iam_policy.php index 7cbf250f9..7d8f94d4e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_workflow_template.php index adeef2756..f3ae09404 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/get_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_GetWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_inline_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_inline_workflow_template.php index 46bd67d11..d9e644d0e 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_inline_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_inline_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_workflow_template.php index 5bb7914d1..9eca7de23 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/instantiate_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/list_workflow_templates.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/list_workflow_templates.php index 1bddd6540..123f072da 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/list_workflow_templates.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/list_workflow_templates.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_ListWorkflowTemplates_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/set_iam_policy.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/set_iam_policy.php index fa4c3b1d4..7f3686eb9 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/set_iam_policy.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/test_iam_permissions.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/test_iam_permissions.php index dd07b0fd3..0fab6011f 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/test_iam_permissions.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/update_workflow_template.php b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/update_workflow_template.php index 6c888261e..db2940df9 100644 --- a/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/update_workflow_template.php +++ b/tests/Integration/goldens/dataproc/samples/V1/WorkflowTemplateServiceClient/update_workflow_template.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START dataproc_v1_generated_WorkflowTemplateService_UpdateWorkflowTemplate_sync] diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php index 292e2f8a9..3ed48670c 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/AutoscalingPolicyServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php index 5922bbeb6..d96f61f4e 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/BatchControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php index 91620f2a2..35fb0f7ee 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/ClusterControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php index f7f06b0ec..a417d415a 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/JobControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php index df57f35bc..4ac57aff6 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/NodeGroupControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php index 63ffeda06..3b8d36546 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/SessionControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php index 46f92457c..569791148 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/SessionTemplateControllerClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php b/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php index a7a4393cf..b589ffadf 100644 --- a/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php +++ b/tests/Integration/goldens/dataproc/src/V1/Client/WorkflowTemplateServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_descriptor_config.php index dc11ffdd9..010f1a751 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.AutoscalingPolicyService' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_rest_client_config.php index 3a033ed8f..c88ddeca0 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/autoscaling_policy_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.AutoscalingPolicyService' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_descriptor_config.php index ec61a4702..9372bfaa6 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.BatchController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_rest_client_config.php index ea8f45f0c..685a1b644 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/batch_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.BatchController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_descriptor_config.php index 062c00a6c..b521385ab 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.ClusterController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_rest_client_config.php index 25b1185de..b1f57c4b7 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/cluster_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.ClusterController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_descriptor_config.php index 8fcc51c05..4c7f0eccf 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.JobController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_rest_client_config.php index 496340ac9..bd70eb9fe 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/job_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.JobController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_descriptor_config.php index 705af9c3e..67f890d28 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.NodeGroupController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_rest_client_config.php index fe4ce5d36..0d1691780 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/node_group_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.NodeGroupController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_descriptor_config.php index fe4a9b3f7..3d9fad881 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.SessionController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_rest_client_config.php index 087ad5f47..51809bc3b 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/session_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.SessionController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_descriptor_config.php index d38a52f7d..22cce5af0 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.SessionTemplateController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_rest_client_config.php index 0f39f4b7a..102948f11 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/session_template_controller_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.SessionTemplateController' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_descriptor_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_descriptor_config.php index 43a187999..d2064ef25 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_descriptor_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.WorkflowTemplateService' => [ diff --git a/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_rest_client_config.php b/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_rest_client_config.php index 71e85b19f..ad358fa35 100644 --- a/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_rest_client_config.php +++ b/tests/Integration/goldens/dataproc/src/V1/resources/workflow_template_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.dataproc.v1.WorkflowTemplateService' => [ diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php index b8d000791..f961567d5 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/AutoscalingPolicyServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php index 1aae8ae07..0db18bc4b 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/BatchControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php index f462cb968..c9c6ff362 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/ClusterControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php index 2226f7be9..2aa7da63e 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/JobControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php index cdda3cc9d..289e6967d 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/NodeGroupControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php index c7d182a03..f3efedd84 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php index 469f0100f..218bb862f 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/SessionTemplateControllerClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php index 32b6d4c48..47c5d7f82 100644 --- a/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php +++ b/tests/Integration/goldens/dataproc/tests/Unit/V1/Client/WorkflowTemplateServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Dataproc\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/call_function.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/call_function.php index 64a7e1574..c5b7334ec 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/call_function.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/call_function.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_CallFunction_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/create_function.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/create_function.php index 283cc959b..73503f059 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/create_function.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/create_function.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_CreateFunction_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/delete_function.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/delete_function.php index b3ba0a33f..8fba73b53 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/delete_function.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/delete_function.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_DeleteFunction_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_download_url.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_download_url.php index ad2e87a38..729582055 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_download_url.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_download_url.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_GenerateDownloadUrl_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_upload_url.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_upload_url.php index 8add82fb5..2c042f0f8 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_upload_url.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/generate_upload_url.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_GenerateUploadUrl_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_function.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_function.php index 84dbd79ff..10d745b51 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_function.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_function.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_GetFunction_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_iam_policy.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_iam_policy.php index daaa28f3f..c8c0ce022 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_iam_policy.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/list_functions.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/list_functions.php index 132bc4f20..9b423d8a1 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/list_functions.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/list_functions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_ListFunctions_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/set_iam_policy.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/set_iam_policy.php index 464f091ff..b177d169b 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/set_iam_policy.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/test_iam_permissions.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/test_iam_permissions.php index 98ab93676..bc96edaba 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/test_iam_permissions.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/update_function.php b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/update_function.php index 16439f379..f8ff409be 100644 --- a/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/update_function.php +++ b/tests/Integration/goldens/functions/samples/V1/CloudFunctionsServiceClient/update_function.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudfunctions_v1_generated_CloudFunctionsService_UpdateFunction_sync] diff --git a/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php b/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php index d1c0ba032..9f79deb5e 100644 --- a/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php +++ b/tests/Integration/goldens/functions/src/V1/Client/CloudFunctionsServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Functions\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_descriptor_config.php b/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_descriptor_config.php index 9472fe733..c4a0d2ca4 100644 --- a/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_descriptor_config.php +++ b/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.functions.v1.CloudFunctionsService' => [ diff --git a/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_rest_client_config.php b/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_rest_client_config.php index 5e52004db..ceff121c0 100644 --- a/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_rest_client_config.php +++ b/tests/Integration/goldens/functions/src/V1/resources/cloud_functions_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.functions.v1.CloudFunctionsService' => [ diff --git a/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php b/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php index 4e707887c..cdd390924 100644 --- a/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php +++ b/tests/Integration/goldens/functions/tests/Unit/V1/Client/CloudFunctionsServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Functions\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/get_iam_policy.php b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/get_iam_policy.php index 00b35adc6..806d0dab6 100644 --- a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/get_iam_policy.php +++ b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START iam_v1_generated_IAMPolicy_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/set_iam_policy.php b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/set_iam_policy.php index 8566f955d..53cfc7351 100644 --- a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/set_iam_policy.php +++ b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START iam_v1_generated_IAMPolicy_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/test_iam_permissions.php b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/test_iam_permissions.php index 39673cf8b..a0b1da82d 100644 --- a/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/test_iam_permissions.php +++ b/tests/Integration/goldens/iam/samples/V1/IAMPolicyClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START iam_v1_generated_IAMPolicy_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php b/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php index bfdaf9088..301707941 100644 --- a/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php +++ b/tests/Integration/goldens/iam/src/V1/Client/IAMPolicyClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Iam\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/iam/src/V1/resources/iam_policy_descriptor_config.php b/tests/Integration/goldens/iam/src/V1/resources/iam_policy_descriptor_config.php index 0db86159e..022404f4a 100644 --- a/tests/Integration/goldens/iam/src/V1/resources/iam_policy_descriptor_config.php +++ b/tests/Integration/goldens/iam/src/V1/resources/iam_policy_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.iam.v1.IAMPolicy' => [ diff --git a/tests/Integration/goldens/iam/src/V1/resources/iam_policy_rest_client_config.php b/tests/Integration/goldens/iam/src/V1/resources/iam_policy_rest_client_config.php index 96215e493..464238d1e 100644 --- a/tests/Integration/goldens/iam/src/V1/resources/iam_policy_rest_client_config.php +++ b/tests/Integration/goldens/iam/src/V1/resources/iam_policy_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.iam.v1.IAMPolicy' => [ diff --git a/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php b/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php index 6ef796b4f..73f8b7e06 100644 --- a/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php +++ b/tests/Integration/goldens/iam/tests/Unit/V1/Client/IAMPolicyClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Iam\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_decrypt.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_decrypt.php index 182d0f9bf..5f1d58a3c 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_decrypt.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_decrypt.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_sign.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_sign.php index 790165101..c19dd099c 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_sign.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/asymmetric_sign.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_AsymmetricSign_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key.php index e72dac741..007cfe0de 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key_version.php index e207e2730..76b8e801b 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_import_job.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_import_job.php index fb0f7ea6c..6ac800996 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_import_job.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_import_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_CreateImportJob_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_key_ring.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_key_ring.php index 2af54e78e..770513eb8 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_key_ring.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/create_key_ring.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_CreateKeyRing_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/decrypt.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/decrypt.php index 236e3354b..57590936c 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/decrypt.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/decrypt.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_Decrypt_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/destroy_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/destroy_crypto_key_version.php index a0ee71d93..d42fc5c95 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/destroy_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/destroy_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/encrypt.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/encrypt.php index 72fcb131c..e7d0ef7b2 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/encrypt.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/encrypt.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_Encrypt_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key.php index 17133dfe6..09b8fd525 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetCryptoKey_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key_version.php index bc6deb40e..114951734 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_iam_policy.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_iam_policy.php index c2408424c..fea2c5a3c 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_iam_policy.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_import_job.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_import_job.php index 2c7c843c8..ff8247551 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_import_job.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_import_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetImportJob_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_key_ring.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_key_ring.php index db3efbae1..f8e2e1b99 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_key_ring.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_key_ring.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetKeyRing_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_location.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_location.php index f83e59c97..fa0219094 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_location.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_location.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetLocation_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_public_key.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_public_key.php index 4a31fb703..bfcc3d9d8 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_public_key.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/get_public_key.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_GetPublicKey_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/import_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/import_crypto_key_version.php index ecb6620c2..d789b4975 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/import_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/import_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_key_versions.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_key_versions.php index da69102bb..e3d36548c 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_key_versions.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_key_versions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_keys.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_keys.php index b69ff939a..9c623e120 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_keys.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_crypto_keys.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_import_jobs.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_import_jobs.php index fb969eb61..d14615ed3 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_import_jobs.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_import_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ListImportJobs_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_key_rings.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_key_rings.php index 4ddae61ad..611626ca5 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_key_rings.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_key_rings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ListKeyRings_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_locations.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_locations.php index c280661da..d46adc632 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_locations.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/list_locations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_ListLocations_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/restore_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/restore_crypto_key_version.php index 4076a23dd..5ce9099b4 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/restore_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/restore_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_RestoreCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/set_iam_policy.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/set_iam_policy.php index 0fbaa5300..f23eb8fb4 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/set_iam_policy.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/test_iam_permissions.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/test_iam_permissions.php index ffe571e9a..712d5fe90 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/test_iam_permissions.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key.php index 9dfd58b44..fd3f8c448 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKey_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_primary_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_primary_version.php index 6ee2fc2a8..72957d1a1 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_primary_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_primary_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyPrimaryVersion_sync] diff --git a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_version.php b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_version.php index 706386ccd..c76eff957 100644 --- a/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_version.php +++ b/tests/Integration/goldens/kms/samples/V1/KeyManagementServiceClient/update_crypto_key_version.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyVersion_sync] diff --git a/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php b/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php index f513cbcef..cb69ff826 100644 --- a/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php +++ b/tests/Integration/goldens/kms/src/V1/Client/KeyManagementServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Kms\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/kms/src/V1/resources/key_management_service_descriptor_config.php b/tests/Integration/goldens/kms/src/V1/resources/key_management_service_descriptor_config.php index 877d1c0a5..41e44fc2f 100644 --- a/tests/Integration/goldens/kms/src/V1/resources/key_management_service_descriptor_config.php +++ b/tests/Integration/goldens/kms/src/V1/resources/key_management_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.kms.v1.KeyManagementService' => [ diff --git a/tests/Integration/goldens/kms/src/V1/resources/key_management_service_rest_client_config.php b/tests/Integration/goldens/kms/src/V1/resources/key_management_service_rest_client_config.php index 6492e254a..2cdc6a8a4 100644 --- a/tests/Integration/goldens/kms/src/V1/resources/key_management_service_rest_client_config.php +++ b/tests/Integration/goldens/kms/src/V1/resources/key_management_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.kms.v1.KeyManagementService' => [ diff --git a/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php b/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php index 8e6db5a0e..78bad2b9d 100644 --- a/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php +++ b/tests/Integration/goldens/kms/tests/Unit/V1/Client/KeyManagementServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Kms\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/copy_log_entries.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/copy_log_entries.php index 9c3f034e8..39c8a1158 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/copy_log_entries.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/copy_log_entries.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CopyLogEntries_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket.php index 458dcff8b..e7d7aebec 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateBucket_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket_async.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket_async.php index d30360bc4..27fbe0015 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket_async.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_bucket_async.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateBucketAsync_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_exclusion.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_exclusion.php index 4e93aeba4..956dd7bb5 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_exclusion.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_exclusion.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateExclusion_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_link.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_link.php index 0239a2cf8..b14e9f3b1 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_link.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_link.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateLink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_sink.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_sink.php index 56561a9d9..13313b3df 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_sink.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_sink.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateSink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_view.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_view.php index 2bef426b7..ffbc9863e 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_view.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/create_view.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_CreateView_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_bucket.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_bucket.php index e9509f968..80bb8e519 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_bucket.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_bucket.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_DeleteBucket_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_exclusion.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_exclusion.php index b078c5539..49c8e3e47 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_exclusion.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_exclusion.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_DeleteExclusion_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_link.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_link.php index 45da61155..56dece299 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_link.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_link.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_DeleteLink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_sink.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_sink.php index 2ffdc424c..f5870ac3d 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_sink.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_sink.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_DeleteSink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_view.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_view.php index e433b1f16..48fd20b6e 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_view.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/delete_view.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_DeleteView_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_bucket.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_bucket.php index 0fd146716..c166d98e6 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_bucket.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_bucket.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetBucket_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_cmek_settings.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_cmek_settings.php index 20c1b6738..a6bb64c75 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_cmek_settings.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_cmek_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetCmekSettings_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_exclusion.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_exclusion.php index 841601051..11ea7c3fb 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_exclusion.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_exclusion.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetExclusion_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_link.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_link.php index 031c45696..217aef97e 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_link.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_link.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetLink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_settings.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_settings.php index a9b8aa1e5..b34ea1c43 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_settings.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetSettings_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_sink.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_sink.php index f78809abf..0cbc15837 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_sink.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_sink.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetSink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_view.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_view.php index fe9401922..5054d6316 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_view.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/get_view.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_GetView_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_buckets.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_buckets.php index 8eb8418d1..954842934 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_buckets.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_buckets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_ListBuckets_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_exclusions.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_exclusions.php index 653f3659d..97f9a53ab 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_exclusions.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_exclusions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_ListExclusions_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_links.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_links.php index 32ebd9310..61402310f 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_links.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_links.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_ListLinks_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_sinks.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_sinks.php index f049f6ec0..19489ed77 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_sinks.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_sinks.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_ListSinks_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_views.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_views.php index edf4e7755..506308f93 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_views.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/list_views.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_ListViews_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/undelete_bucket.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/undelete_bucket.php index 3f0fb01d7..d2ea7d765 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/undelete_bucket.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/undelete_bucket.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UndeleteBucket_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket.php index 394d07a6b..a15fce6d2 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateBucket_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket_async.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket_async.php index d18d0836f..f7b95c638 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket_async.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_bucket_async.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateBucketAsync_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_cmek_settings.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_cmek_settings.php index 3fd6125cc..f5ba56578 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_cmek_settings.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_cmek_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_exclusion.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_exclusion.php index 81ac5e077..0f1d17723 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_exclusion.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_exclusion.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateExclusion_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_settings.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_settings.php index eb2f8f126..04cf6d6a4 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_settings.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateSettings_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_sink.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_sink.php index 031a022e8..4b6744fa3 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_sink.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_sink.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateSink_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_view.php b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_view.php index 60ba67ab4..43d2af835 100644 --- a/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_view.php +++ b/tests/Integration/goldens/logging/samples/V2/ConfigServiceV2Client/update_view.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_ConfigServiceV2_UpdateView_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/delete_log.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/delete_log.php index adb822ffb..5f93dca71 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/delete_log.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/delete_log.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_DeleteLog_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_log_entries.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_log_entries.php index cbcc825da..821b81d3e 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_log_entries.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_log_entries.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_ListLogEntries_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_logs.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_logs.php index 624a78e3c..c9fb6c62f 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_logs.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_logs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_ListLogs_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_monitored_resource_descriptors.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_monitored_resource_descriptors.php index 0ab5a81f9..9e28ea027 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_monitored_resource_descriptors.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/list_monitored_resource_descriptors.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/tail_log_entries.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/tail_log_entries.php index 9731b69f8..b31abedcb 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/tail_log_entries.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/tail_log_entries.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_TailLogEntries_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/write_log_entries.php b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/write_log_entries.php index 67ce8d49a..e630e36fe 100644 --- a/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/write_log_entries.php +++ b/tests/Integration/goldens/logging/samples/V2/LoggingServiceV2Client/write_log_entries.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_LoggingServiceV2_WriteLogEntries_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/create_log_metric.php b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/create_log_metric.php index 9c9f45a3c..8253f955e 100644 --- a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/create_log_metric.php +++ b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/create_log_metric.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_MetricsServiceV2_CreateLogMetric_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/delete_log_metric.php b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/delete_log_metric.php index 482ff52e7..27a856e0f 100644 --- a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/delete_log_metric.php +++ b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/delete_log_metric.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_MetricsServiceV2_DeleteLogMetric_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/get_log_metric.php b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/get_log_metric.php index f765dab60..724f2d288 100644 --- a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/get_log_metric.php +++ b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/get_log_metric.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_MetricsServiceV2_GetLogMetric_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/list_log_metrics.php b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/list_log_metrics.php index cdff7285a..043ea41fa 100644 --- a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/list_log_metrics.php +++ b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/list_log_metrics.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_MetricsServiceV2_ListLogMetrics_sync] diff --git a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/update_log_metric.php b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/update_log_metric.php index a5456d044..3e0d02bcf 100644 --- a/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/update_log_metric.php +++ b/tests/Integration/goldens/logging/samples/V2/MetricsServiceV2Client/update_log_metric.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START logging_v2_generated_MetricsServiceV2_UpdateLogMetric_sync] diff --git a/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php index 3dde51fd1..6a7da5f2e 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/ConfigServiceV2Client.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Logging\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php index 253d89e27..0fdab334d 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/LoggingServiceV2Client.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Logging\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php b/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php index bc00b0098..af04972a4 100644 --- a/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php +++ b/tests/Integration/goldens/logging/src/V2/Client/MetricsServiceV2Client.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Logging\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_descriptor_config.php b/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_descriptor_config.php index b7ee554eb..95db21711 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_descriptor_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.ConfigServiceV2' => [ diff --git a/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_rest_client_config.php b/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_rest_client_config.php index dfc27fb8e..801a8f3df 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_rest_client_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/config_service_v2_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.ConfigServiceV2' => [ diff --git a/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_descriptor_config.php b/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_descriptor_config.php index 3485fda7c..c14addcd8 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_descriptor_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.LoggingServiceV2' => [ diff --git a/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_rest_client_config.php b/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_rest_client_config.php index bf1936b8b..132e39700 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_rest_client_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/logging_service_v2_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.LoggingServiceV2' => [ diff --git a/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_descriptor_config.php b/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_descriptor_config.php index 2c1bf2125..b9b304cd9 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_descriptor_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.MetricsServiceV2' => [ diff --git a/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_rest_client_config.php b/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_rest_client_config.php index 7d4a30576..0a01173d7 100644 --- a/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_rest_client_config.php +++ b/tests/Integration/goldens/logging/src/V2/resources/metrics_service_v2_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.logging.v2.MetricsServiceV2' => [ diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php index fdd9c8f31..1c2454f26 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/ConfigServiceV2ClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Logging\Tests\Unit\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php index 6e410559d..2c9c4d1fc 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/LoggingServiceV2ClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Logging\Tests\Unit\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php b/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php index bda4a13ba..de094a1fd 100644 --- a/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php +++ b/tests/Integration/goldens/logging/tests/Unit/V2/Client/MetricsServiceV2ClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Logging\Tests\Unit\V2\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/create_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/create_instance.php index 295090c2d..950576d70 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/create_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/create_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_CreateInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/delete_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/delete_instance.php index 5c28811fe..ebb469aff 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/delete_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/delete_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_DeleteInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/export_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/export_instance.php index 3d33d8212..246d88152 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/export_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/export_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_ExportInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/failover_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/failover_instance.php index 26acada2c..f0af4b71d 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/failover_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/failover_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_FailoverInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance.php index 3755d68a8..4f9969038 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_GetInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance_auth_string.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance_auth_string.php index af46d0651..0ac7e340f 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance_auth_string.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_instance_auth_string.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_GetInstanceAuthString_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_location.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_location.php index 5b881ab18..cb518b841 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_location.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/get_location.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_GetLocation_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/import_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/import_instance.php index cd2e501e7..d0490821a 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/import_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/import_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_ImportInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_instances.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_instances.php index 8da2911a5..6838ad6a5 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_instances.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_instances.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_ListInstances_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_locations.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_locations.php index 48740a30a..049cced4f 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_locations.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/list_locations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_ListLocations_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/reschedule_maintenance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/reschedule_maintenance.php index ed83be02b..161d1eab7 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/reschedule_maintenance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/reschedule_maintenance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_RescheduleMaintenance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/update_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/update_instance.php index cbfbf9f96..e1051c3e1 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/update_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/update_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_UpdateInstance_sync] diff --git a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/upgrade_instance.php b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/upgrade_instance.php index 0acc1743b..7f0a92a95 100644 --- a/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/upgrade_instance.php +++ b/tests/Integration/goldens/redis/samples/V1/CloudRedisClient/upgrade_instance.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START redis_v1_generated_CloudRedis_UpgradeInstance_sync] diff --git a/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php b/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php index e98a5e705..0b855ea4c 100644 --- a/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php +++ b/tests/Integration/goldens/redis/src/V1/Client/CloudRedisClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Redis\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/redis/src/V1/resources/cloud_redis_descriptor_config.php b/tests/Integration/goldens/redis/src/V1/resources/cloud_redis_descriptor_config.php index 8c1b9fbaf..a941dc8e3 100644 --- a/tests/Integration/goldens/redis/src/V1/resources/cloud_redis_descriptor_config.php +++ b/tests/Integration/goldens/redis/src/V1/resources/cloud_redis_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.redis.v1.CloudRedis' => [ diff --git a/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php b/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php index e48df40a6..b2a4c5002 100644 --- a/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php +++ b/tests/Integration/goldens/redis/tests/Unit/V1/Client/CloudRedisClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Redis\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/samples/V2alpha/AnalyticsServiceClient/export_analytics_metrics.php b/tests/Integration/goldens/retail/samples/V2alpha/AnalyticsServiceClient/export_analytics_metrics.php index e79bdef98..e87db5e4e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/AnalyticsServiceClient/export_analytics_metrics.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/AnalyticsServiceClient/export_analytics_metrics.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_AnalyticsService_ExportAnalyticsMetrics_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/get_branch.php b/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/get_branch.php index 91ea304ee..edf8c1351 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/get_branch.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/get_branch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_BranchService_GetBranch_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/list_branches.php b/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/list_branches.php index 8ae52ac99..554297dc5 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/list_branches.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/BranchServiceClient/list_branches.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_BranchService_ListBranches_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/add_catalog_attribute.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/add_catalog_attribute.php index 194e7dfa2..1db767e7e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/add_catalog_attribute.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/add_catalog_attribute.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_AddCatalogAttribute_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/batch_remove_catalog_attributes.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/batch_remove_catalog_attributes.php index a2281ff33..294b652eb 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/batch_remove_catalog_attributes.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/batch_remove_catalog_attributes.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_BatchRemoveCatalogAttributes_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_attributes_config.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_attributes_config.php index df4e51283..f8c38490f 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_attributes_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_attributes_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_GetAttributesConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_completion_config.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_completion_config.php index be9c6ac27..f4fa25e41 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_completion_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_completion_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_GetCompletionConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_default_branch.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_default_branch.php index 46479d0c6..506824309 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_default_branch.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/get_default_branch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_GetDefaultBranch_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/list_catalogs.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/list_catalogs.php index 5173f974a..8a2977fe8 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/list_catalogs.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/list_catalogs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_ListCatalogs_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/remove_catalog_attribute.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/remove_catalog_attribute.php index c94a130fd..d2cf0c6d8 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/remove_catalog_attribute.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/remove_catalog_attribute.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_RemoveCatalogAttribute_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/replace_catalog_attribute.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/replace_catalog_attribute.php index 3ed79e135..1ce43504e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/replace_catalog_attribute.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/replace_catalog_attribute.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_ReplaceCatalogAttribute_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/set_default_branch.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/set_default_branch.php index bf9915505..b3a1fdaa3 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/set_default_branch.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/set_default_branch.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_SetDefaultBranch_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_attributes_config.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_attributes_config.php index 2cc77ed6e..030614ef8 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_attributes_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_attributes_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_UpdateAttributesConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_catalog.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_catalog.php index d8f3aef4f..4d4386b19 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_catalog.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_catalog.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_UpdateCatalog_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_completion_config.php b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_completion_config.php index 6dc920ef1..2d415e3c6 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_completion_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CatalogServiceClient/update_completion_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CatalogService_UpdateCompletionConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/complete_query.php b/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/complete_query.php index d18b4f550..656ca0eaa 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/complete_query.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/complete_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CompletionService_CompleteQuery_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/import_completion_data.php b/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/import_completion_data.php index dc36754f2..efd42ca9b 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/import_completion_data.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/CompletionServiceClient/import_completion_data.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_CompletionService_ImportCompletionData_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/create_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/create_control.php index 483ff9914..3f5b704ca 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/create_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/create_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ControlService_CreateControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/delete_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/delete_control.php index 13d81c181..15b53c3ae 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/delete_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/delete_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ControlService_DeleteControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/get_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/get_control.php index 5c520d8eb..a28228376 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/get_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/get_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ControlService_GetControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/list_controls.php b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/list_controls.php index d010624ca..43419428f 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/list_controls.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/list_controls.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ControlService_ListControls_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/update_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/update_control.php index 7e6f3bdc8..f9ab9e039 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/update_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ControlServiceClient/update_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ControlService_UpdateControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ConversationalSearchServiceClient/conversational_search.php b/tests/Integration/goldens/retail/samples/V2alpha/ConversationalSearchServiceClient/conversational_search.php index 74bf7d3a4..286d6af6b 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ConversationalSearchServiceClient/conversational_search.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ConversationalSearchServiceClient/conversational_search.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ConversationalSearchService_ConversationalSearch_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/batch_update_generative_question_configs.php b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/batch_update_generative_question_configs.php index d5045616d..6368aa0f1 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/batch_update_generative_question_configs.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/batch_update_generative_question_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_GenerativeQuestionService_BatchUpdateGenerativeQuestionConfigs_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/get_generative_questions_feature_config.php b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/get_generative_questions_feature_config.php index 63a82c804..5eb106851 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/get_generative_questions_feature_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/get_generative_questions_feature_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_GenerativeQuestionService_GetGenerativeQuestionsFeatureConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/list_generative_question_configs.php b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/list_generative_question_configs.php index f4b568a74..360ba0dbe 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/list_generative_question_configs.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/list_generative_question_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_GenerativeQuestionService_ListGenerativeQuestionConfigs_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_question_config.php b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_question_config.php index 7d881861a..1e6277d73 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_question_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_question_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_GenerativeQuestionService_UpdateGenerativeQuestionConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_questions_feature_config.php b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_questions_feature_config.php index 8db03701a..ec7bae0c1 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_questions_feature_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/GenerativeQuestionServiceClient/update_generative_questions_feature_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_GenerativeQuestionService_UpdateGenerativeQuestionsFeatureConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/create_merchant_center_account_link.php b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/create_merchant_center_account_link.php index 0b44bc7ca..97bd59365 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/create_merchant_center_account_link.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/create_merchant_center_account_link.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_MerchantCenterAccountLinkService_CreateMerchantCenterAccountLink_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/delete_merchant_center_account_link.php b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/delete_merchant_center_account_link.php index fa591370c..12300ad18 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/delete_merchant_center_account_link.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/delete_merchant_center_account_link.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_MerchantCenterAccountLinkService_DeleteMerchantCenterAccountLink_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/list_merchant_center_account_links.php b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/list_merchant_center_account_links.php index f84407b7f..26186a054 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/list_merchant_center_account_links.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/MerchantCenterAccountLinkServiceClient/list_merchant_center_account_links.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_MerchantCenterAccountLinkService_ListMerchantCenterAccountLinks_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/create_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/create_model.php index 8de1eed08..30be2d575 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/create_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/create_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_CreateModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/delete_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/delete_model.php index 78dd543ea..804416c48 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/delete_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/delete_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_DeleteModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/get_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/get_model.php index 0f04cb18b..5310b1529 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/get_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/get_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_GetModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/list_models.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/list_models.php index 2af7fa1c7..ba9437fae 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/list_models.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/list_models.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_ListModels_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/pause_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/pause_model.php index ef61ee049..f826fb80f 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/pause_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/pause_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_PauseModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/resume_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/resume_model.php index 2c4b16bc5..b0a289774 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/resume_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/resume_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_ResumeModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/tune_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/tune_model.php index 3439afac2..898002c20 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/tune_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/tune_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_TuneModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/update_model.php b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/update_model.php index 9fea28907..74a4903f3 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/update_model.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ModelServiceClient/update_model.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ModelService_UpdateModel_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/PredictionServiceClient/predict.php b/tests/Integration/goldens/retail/samples/V2alpha/PredictionServiceClient/predict.php index b58021040..69db0fa29 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/PredictionServiceClient/predict.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/PredictionServiceClient/predict.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_PredictionService_Predict_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_fulfillment_places.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_fulfillment_places.php index 54fc94ee6..5fd935906 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_fulfillment_places.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_fulfillment_places.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_AddFulfillmentPlaces_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_local_inventories.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_local_inventories.php index cfba3b390..fd4a4fd53 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_local_inventories.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/add_local_inventories.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_AddLocalInventories_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/create_product.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/create_product.php index 6108bf464..eccd6aaaf 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/create_product.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/create_product.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_CreateProduct_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/delete_product.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/delete_product.php index 994e3cccb..a1fc887a4 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/delete_product.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/delete_product.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_DeleteProduct_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/export_products.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/export_products.php index 70bcdcbc9..827a4b3ab 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/export_products.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/export_products.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_ExportProducts_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/get_product.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/get_product.php index 52043966b..12d7ffc5e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/get_product.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/get_product.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_GetProduct_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/import_products.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/import_products.php index 20d72c4a7..ab3fbef86 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/import_products.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/import_products.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_ImportProducts_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/list_products.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/list_products.php index 448f20abb..4a07fc901 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/list_products.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/list_products.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_ListProducts_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/purge_products.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/purge_products.php index 0a18d11f6..d73f90c37 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/purge_products.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/purge_products.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_PurgeProducts_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_fulfillment_places.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_fulfillment_places.php index c283d8bcf..f587c396e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_fulfillment_places.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_fulfillment_places.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_RemoveFulfillmentPlaces_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_local_inventories.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_local_inventories.php index 6de66f1bd..0f2b3f10a 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_local_inventories.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/remove_local_inventories.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_RemoveLocalInventories_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/set_inventory.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/set_inventory.php index af8260e3b..e435878cb 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/set_inventory.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/set_inventory.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_SetInventory_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/update_product.php b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/update_product.php index 2197f8b9c..3314dd9b1 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/update_product.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProductServiceClient/update_product.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProductService_UpdateProduct_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/accept_terms.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/accept_terms.php index 3e54ed636..a2bda596e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/accept_terms.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/accept_terms.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_AcceptTerms_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/enroll_solution.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/enroll_solution.php index c5f998253..73bf4c99e 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/enroll_solution.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/enroll_solution.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_EnrollSolution_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_alert_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_alert_config.php index 55df633ff..dc8069835 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_alert_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_alert_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_GetAlertConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_logging_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_logging_config.php index 06257ad18..d9d3ad51a 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_logging_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_logging_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_GetLoggingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_project.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_project.php index 073f7c5c9..ee3c5d9af 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_project.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/get_project.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_GetProject_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/list_enrolled_solutions.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/list_enrolled_solutions.php index 46aede9b6..0a46c6a00 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/list_enrolled_solutions.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/list_enrolled_solutions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_alert_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_alert_config.php index 353031a7a..a82ed7b85 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_alert_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_alert_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_UpdateAlertConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_logging_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_logging_config.php index c57becf1f..427b8cd41 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_logging_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ProjectServiceClient/update_logging_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/SearchServiceClient/search.php b/tests/Integration/goldens/retail/samples/V2alpha/SearchServiceClient/search.php index 957c78a98..2d6d3c4ba 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/SearchServiceClient/search.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/SearchServiceClient/search.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_SearchService_Search_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/add_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/add_control.php index 7b2b5ec3e..5301b231f 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/add_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/add_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_AddControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/create_serving_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/create_serving_config.php index e9656d2f7..2eb88bc0f 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/create_serving_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/create_serving_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/delete_serving_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/delete_serving_config.php index 298bc657a..46158d837 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/delete_serving_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/delete_serving_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/get_serving_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/get_serving_config.php index 049901bbf..a9ec4d656 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/get_serving_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/get_serving_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_GetServingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/list_serving_configs.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/list_serving_configs.php index 73c492af1..4138fcdf5 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/list_serving_configs.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/list_serving_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/remove_control.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/remove_control.php index ee492635c..9bf172ebb 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/remove_control.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/remove_control.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_RemoveControl_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/update_serving_config.php b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/update_serving_config.php index d2aefd3a9..82f860c45 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/update_serving_config.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/ServingConfigServiceClient/update_serving_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_ServingConfigService_UpdateServingConfig_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/collect_user_event.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/collect_user_event.php index f58fccb51..0feb077c8 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/collect_user_event.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/collect_user_event.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_CollectUserEvent_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/export_user_events.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/export_user_events.php index 158fbf7b7..77b3a401b 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/export_user_events.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/export_user_events.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_ExportUserEvents_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/import_user_events.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/import_user_events.php index 5ac31c806..eb673a531 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/import_user_events.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/import_user_events.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_ImportUserEvents_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/purge_user_events.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/purge_user_events.php index 21d93fa75..82cc923f4 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/purge_user_events.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/purge_user_events.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_PurgeUserEvents_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/rejoin_user_events.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/rejoin_user_events.php index cb677a4f6..1212fdab7 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/rejoin_user_events.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/rejoin_user_events.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_RejoinUserEvents_sync] diff --git a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/write_user_event.php b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/write_user_event.php index 4ebc1e687..af19db7d0 100644 --- a/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/write_user_event.php +++ b/tests/Integration/goldens/retail/samples/V2alpha/UserEventServiceClient/write_user_event.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START retail_v2alpha_generated_UserEventService_WriteUserEvent_sync] diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php index 532d19b01..ce1347779 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/AnalyticsServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php index 0a0613235..b677a7f8c 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/BranchServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php index 15a789873..61fdce537 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/CatalogServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php index 80d86a2dc..313518c77 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/CompletionServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php index cb4940ca1..e14006600 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ControlServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php index 361e6fc24..a70915c6d 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ConversationalSearchServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php index f797e1bfb..8fcde8022 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/GenerativeQuestionServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php index e7f05271c..2568c8370 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/MerchantCenterAccountLinkServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php index f9ffe08b2..84d43096c 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ModelServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php index dd3f50004..114479c10 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/PredictionServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php index a35cc6083..5dad852fd 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ProductServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php index 12daa6faa..ee3ff57ef 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ProjectServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php index 4c85c8019..b27aaa885 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/SearchServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php index 885149cc0..b24c0946b 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/ServingConfigServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php b/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php index 14867af41..0e4abe2ab 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php +++ b/tests/Integration/goldens/retail/src/V2alpha/Client/UserEventServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Retail\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_descriptor_config.php index 6a6758cfa..c66ebba2e 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.AnalyticsService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_rest_client_config.php index 87ef0b072..176827a6a 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/analytics_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.AnalyticsService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_descriptor_config.php index e6e36d495..e9736d697 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.BranchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_rest_client_config.php index 8f88f4271..f6a1fe45c 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/branch_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.BranchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_descriptor_config.php index eeea496b0..6e6d27d78 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.CatalogService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_rest_client_config.php index 969186f5a..dde811d6a 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/catalog_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.CatalogService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_descriptor_config.php index c6fb9efcc..8b406e77a 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.CompletionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_rest_client_config.php index 64baa7da9..effdd0f5c 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/completion_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.CompletionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_descriptor_config.php index 123bd34d3..c4eabfd57 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ControlService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_rest_client_config.php index 462c73f5e..518935898 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/control_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ControlService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_descriptor_config.php index 7f7de9481..731519e90 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ConversationalSearchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_rest_client_config.php index e96f6f18e..a6e27b4c6 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/conversational_search_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ConversationalSearchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_descriptor_config.php index ece4036b0..965fdafbe 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.GenerativeQuestionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_rest_client_config.php index 1c4930165..58e034b96 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/generative_question_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.GenerativeQuestionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_descriptor_config.php index ed251843d..62a64205e 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.MerchantCenterAccountLinkService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_rest_client_config.php index b4a212a2b..46247c7f1 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/merchant_center_account_link_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.MerchantCenterAccountLinkService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_descriptor_config.php index 03bd787ce..5e536c642 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ModelService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_rest_client_config.php index 356211669..21bce65bf 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/model_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ModelService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_descriptor_config.php index 92fd7f26a..acf670e0e 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.PredictionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_rest_client_config.php index 7ae65598a..c8d17d603 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/prediction_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.PredictionService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_descriptor_config.php index 21e955f5b..507423dc3 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ProductService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_rest_client_config.php index d7cc178d1..845c54031 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/product_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ProductService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_descriptor_config.php index 7038d0951..36e09be4d 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ProjectService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_rest_client_config.php index dfde2950f..c366be2c6 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/project_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ProjectService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_descriptor_config.php index cee08b66f..c21876984 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.SearchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_rest_client_config.php index 6f5b323d5..dacc9a7b3 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/search_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.SearchService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_descriptor_config.php index 331059297..e43f90232 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ServingConfigService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_rest_client_config.php index ce7648961..59e338713 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/serving_config_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.ServingConfigService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_descriptor_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_descriptor_config.php index 1c538e46a..f596605ec 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_descriptor_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.UserEventService' => [ diff --git a/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_rest_client_config.php b/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_rest_client_config.php index 9d2191bde..27438b23f 100644 --- a/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_rest_client_config.php +++ b/tests/Integration/goldens/retail/src/V2alpha/resources/user_event_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.retail.v2alpha.UserEventService' => [ diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php index 5186ac4a8..d7aa357b5 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/AnalyticsServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php index 75446d4f3..16ca28064 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/BranchServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php index bf4998634..736cc64e3 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CatalogServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php index 563c80567..a78430984 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/CompletionServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php index b0c6277f4..33d09b76b 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ControlServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php index bd988018f..d8283a1b5 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ConversationalSearchServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php index 2475573b7..563612372 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/GenerativeQuestionServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php index dd7bfc157..e6043f025 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/MerchantCenterAccountLinkServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php index 871305e49..111a172bb 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ModelServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php index 5011d8a30..42dc1e09f 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/PredictionServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php index facce9906..4dc6e49fe 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProductServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php index 381633b0d..08475718a 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ProjectServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php index 46d464e2f..d2754bc1a 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/SearchServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php index d9e4d9811..195a4d7a3 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/ServingConfigServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php index 7bfc17ffc..ffaf5bc2a 100644 --- a/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php +++ b/tests/Integration/goldens/retail/tests/Unit/V2alpha/Client/UserEventServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Retail\Tests\Unit\V2alpha\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/batch_create_resource_value_configs.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/batch_create_resource_value_configs.php index 6033a374d..a174b6efe 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/batch_create_resource_value_configs.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/batch_create_resource_value_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/bulk_mute_findings.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/bulk_mute_findings.php index ef5c4a27d..6de8294da 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/bulk_mute_findings.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/bulk_mute_findings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_big_query_export.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_big_query_export.php index 14c73123b..3b28e00c4 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_big_query_export.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_big_query_export.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_event_threat_detection_custom_module.php index 4b6f718ff..03e47e728 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_finding.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_finding.php index 8b0edcb7c..33053e66e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_finding.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_finding.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateFinding_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_mute_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_mute_config.php index 997149e63..73eaad4c0 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_mute_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_mute_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_notification_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_notification_config.php index 330babb1a..282732633 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_notification_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_notification_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_security_health_analytics_custom_module.php index 705e1ff51..5d59b0b6a 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_source.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_source.php index 10fcf645b..349e8c19c 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_source.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/create_source.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_CreateSource_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_big_query_export.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_big_query_export.php index 72ac96653..33d7ec7a2 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_big_query_export.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_big_query_export.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_event_threat_detection_custom_module.php index 43ce4f5da..0ed244324 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_mute_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_mute_config.php index ea48cc6a2..36cc3114e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_mute_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_mute_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_notification_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_notification_config.php index 95a46e05a..bb77fad3f 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_notification_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_notification_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_resource_value_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_resource_value_config.php index 2e2cbc1e2..2a4d7c39e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_resource_value_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_resource_value_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_security_health_analytics_custom_module.php index f6a872993..6ca3da9f2 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/delete_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_big_query_export.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_big_query_export.php index 8b98c1699..0f19ffe83 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_big_query_export.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_big_query_export.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_event_threat_detection_custom_module.php index 3c4cd0b2c..97da7addf 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_security_health_analytics_custom_module.php index c126fbf17..5ea8e9415 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_effective_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_event_threat_detection_custom_module.php index 2cf7f4e01..b1c9fa404 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_iam_policy.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_iam_policy.php index 3e1ed51e7..ff619d3e2 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_iam_policy.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_mute_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_mute_config.php index cff458492..81501aa0f 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_mute_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_mute_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_notification_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_notification_config.php index a5617cba1..8e28b0fbb 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_notification_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_notification_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_organization_settings.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_organization_settings.php index acdc4c11e..48d947060 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_organization_settings.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_organization_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_resource_value_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_resource_value_config.php index f8ff8983e..233b73931 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_resource_value_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_resource_value_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_security_health_analytics_custom_module.php index 9fd033a6f..552326764 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_simulation.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_simulation.php index 551dd4e74..0b2488459 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_simulation.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_simulation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetSimulation_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_source.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_source.php index daa05aa4c..023775912 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_source.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_source.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetSource_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_valued_resource.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_valued_resource.php index 27fa33f3f..94a5255cd 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_valued_resource.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/get_valued_resource.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GetValuedResource_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_assets.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_assets.php index c1c10c416..69d581632 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_assets.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GroupAssets_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_findings.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_findings.php index fd4beb57e..864a96ce6 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_findings.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/group_findings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_GroupFindings_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_assets.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_assets.php index bab543b7a..003d0a75c 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_assets.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_assets.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListAssets_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_attack_paths.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_attack_paths.php index c3e1fc7db..af0775515 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_attack_paths.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_attack_paths.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListAttackPaths_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_big_query_exports.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_big_query_exports.php index f57cd910e..991e5137c 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_big_query_exports.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_big_query_exports.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_event_threat_detection_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_event_threat_detection_custom_modules.php index 88ad79e99..0ccfc816a 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_event_threat_detection_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_event_threat_detection_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_security_health_analytics_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_security_health_analytics_custom_modules.php index 32df1870d..d20f43fa6 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_security_health_analytics_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_descendant_security_health_analytics_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_event_threat_detection_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_event_threat_detection_custom_modules.php index 564414e03..42f42f3d9 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_event_threat_detection_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_event_threat_detection_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_security_health_analytics_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_security_health_analytics_custom_modules.php index 560ae8ed4..e20f8788e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_security_health_analytics_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_effective_security_health_analytics_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_event_threat_detection_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_event_threat_detection_custom_modules.php index b46e452c7..105735007 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_event_threat_detection_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_event_threat_detection_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_findings.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_findings.php index f8e06207b..2228828f5 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_findings.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_findings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListFindings_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_mute_configs.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_mute_configs.php index 4ed742f06..6d5d8dbe4 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_mute_configs.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_mute_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_notification_configs.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_notification_configs.php index e81461259..f590fbc01 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_notification_configs.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_notification_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_resource_value_configs.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_resource_value_configs.php index f937ef843..c8cf04bb4 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_resource_value_configs.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_resource_value_configs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_security_health_analytics_custom_modules.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_security_health_analytics_custom_modules.php index 90478eb15..d6981332e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_security_health_analytics_custom_modules.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_security_health_analytics_custom_modules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_sources.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_sources.php index 914fdfa6f..d9982bf6a 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_sources.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_sources.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListSources_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_valued_resources.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_valued_resources.php index 0cc6093a2..7090f856b 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_valued_resources.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/list_valued_resources.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ListValuedResources_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/run_asset_discovery.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/run_asset_discovery.php index a0790fde3..cf3084b4a 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/run_asset_discovery.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/run_asset_discovery.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_finding_state.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_finding_state.php index f4f92762a..baa373303 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_finding_state.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_finding_state.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_SetFindingState_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_iam_policy.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_iam_policy.php index b5ccbd123..fa78c6acf 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_iam_policy.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_mute.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_mute.php index a7b9279d2..8882312d7 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_mute.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/set_mute.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_SetMute_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/simulate_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/simulate_security_health_analytics_custom_module.php index 8996c539c..97186ed61 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/simulate_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/simulate_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/test_iam_permissions.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/test_iam_permissions.php index ce058d9a4..185d4e491 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/test_iam_permissions.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_big_query_export.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_big_query_export.php index 6e8dfaee5..5b69fdbd9 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_big_query_export.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_big_query_export.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_event_threat_detection_custom_module.php index 9958d588a..09e5dff5a 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_external_system.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_external_system.php index 07a1bb820..e2e2d469e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_external_system.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_external_system.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_finding.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_finding.php index 269677b41..8dbb7e590 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_finding.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_finding.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_mute_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_mute_config.php index 2d4a66910..58cfaf00e 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_mute_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_mute_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_notification_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_notification_config.php index df0891978..00849bf73 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_notification_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_notification_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_organization_settings.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_organization_settings.php index 825564cc3..f401b186c 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_organization_settings.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_organization_settings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_resource_value_config.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_resource_value_config.php index c04d8bef8..8bda4b741 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_resource_value_config.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_resource_value_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_health_analytics_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_health_analytics_custom_module.php index cdf90fc23..43649a9a0 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_health_analytics_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_health_analytics_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_marks.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_marks.php index ad74b71e3..4bca15681 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_marks.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_security_marks.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_source.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_source.php index 917a12dde..5299886f3 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_source.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/update_source.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_UpdateSource_sync] diff --git a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/validate_event_threat_detection_custom_module.php b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/validate_event_threat_detection_custom_module.php index 578ece308..c834353c0 100644 --- a/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/validate_event_threat_detection_custom_module.php +++ b/tests/Integration/goldens/securitycenter/samples/V1/SecurityCenterClient/validate_event_threat_detection_custom_module.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_sync] diff --git a/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php b/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php index ea40fb66f..5c1da79c8 100644 --- a/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php +++ b/tests/Integration/goldens/securitycenter/src/V1/Client/SecurityCenterClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\SecurityCenter\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_descriptor_config.php b/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_descriptor_config.php index 7d2c3801e..6e9c0830e 100644 --- a/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_descriptor_config.php +++ b/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.securitycenter.v1.SecurityCenter' => [ diff --git a/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_rest_client_config.php b/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_rest_client_config.php index 64c0c2f55..00757b3c8 100644 --- a/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_rest_client_config.php +++ b/tests/Integration/goldens/securitycenter/src/V1/resources/security_center_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.securitycenter.v1.SecurityCenter' => [ diff --git a/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php b/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php index ba681206b..09c6fb474 100644 --- a/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php +++ b/tests/Integration/goldens/securitycenter/tests/Unit/V1/Client/SecurityCenterClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\SecurityCenter\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/add_split_points.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/add_split_points.php index c3f0c1c62..0d53a8e98 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/add_split_points.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/add_split_points.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_AddSplitPoints_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/copy_backup.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/copy_backup.php index bcfedd012..377cc83cd 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/copy_backup.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/copy_backup.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_CopyBackup_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup.php index 1bf25fcb8..98bdca2cd 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_CreateBackup_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup_schedule.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup_schedule.php index be0f7b24c..c0ee2aa2a 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup_schedule.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_backup_schedule.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_CreateBackupSchedule_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_database.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_database.php index 63ac25567..1b5a5182b 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_database.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/create_database.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_CreateDatabase_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup.php index 311f508f4..6f2064250 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_DeleteBackup_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup_schedule.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup_schedule.php index d0096c8a5..df7a5055a 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup_schedule.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/delete_backup_schedule.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_DeleteBackupSchedule_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/drop_database.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/drop_database.php index 5534bbe4d..f6d50b0b9 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/drop_database.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/drop_database.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_DropDatabase_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup.php index 94a0a0cd3..098254695 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_GetBackup_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup_schedule.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup_schedule.php index 28594090a..00e37f426 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup_schedule.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_backup_schedule.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_GetBackupSchedule_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database.php index 5f1ca59e2..e336bec6b 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_GetDatabase_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database_ddl.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database_ddl.php index ba0b8465c..b9f6c9a22 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database_ddl.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_database_ddl.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_iam_policy.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_iam_policy.php index 532e529f1..c2d2421b5 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_iam_policy.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/get_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_GetIamPolicy_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/internal_update_graph_operation.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/internal_update_graph_operation.php index 48bfdff85..f7ad9832b 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/internal_update_graph_operation.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/internal_update_graph_operation.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_InternalUpdateGraphOperation_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_operations.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_operations.php index 5eab18122..47c277971 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_operations.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_operations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListBackupOperations_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_schedules.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_schedules.php index 87171ffaa..545460c26 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_schedules.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backup_schedules.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListBackupSchedules_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backups.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backups.php index 74ae3abf8..f83cc21ec 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backups.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_backups.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListBackups_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_operations.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_operations.php index b930ab067..1e2f07bc3 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_operations.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_operations.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListDatabaseOperations_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_roles.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_roles.php index 5a71bc9df..4b2541eb1 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_roles.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_database_roles.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_databases.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_databases.php index 139ded9a3..146b79160 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_databases.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/list_databases.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_ListDatabases_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/restore_database.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/restore_database.php index 52efd6de1..aafc8d4fc 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/restore_database.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/restore_database.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_RestoreDatabase_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/set_iam_policy.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/set_iam_policy.php index 03661eda8..1f9f9be12 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/set_iam_policy.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/set_iam_policy.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_SetIamPolicy_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/test_iam_permissions.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/test_iam_permissions.php index 2a0570cb1..7828244c8 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/test_iam_permissions.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/test_iam_permissions.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_TestIamPermissions_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup.php index f0eceb83e..110cec0b0 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_UpdateBackup_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup_schedule.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup_schedule.php index b978eccc3..08081f756 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup_schedule.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_backup_schedule.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_UpdateBackupSchedule_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database.php index a669ff96c..c19d82841 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_UpdateDatabase_sync] diff --git a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database_ddl.php b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database_ddl.php index 73030f759..e0982730f 100644 --- a/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database_ddl.php +++ b/tests/Integration/goldens/spanner/samples/V1/DatabaseAdminClient/update_database_ddl.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_sync] diff --git a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php index 2c08268bb..3ef17c8da 100644 --- a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php +++ b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Spanner\Admin\Database\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/spanner/src/V1/resources/database_admin_descriptor_config.php b/tests/Integration/goldens/spanner/src/V1/resources/database_admin_descriptor_config.php index a60dc5da1..3c4263273 100644 --- a/tests/Integration/goldens/spanner/src/V1/resources/database_admin_descriptor_config.php +++ b/tests/Integration/goldens/spanner/src/V1/resources/database_admin_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.spanner.admin.database.v1.DatabaseAdmin' => [ diff --git a/tests/Integration/goldens/spanner/src/V1/resources/database_admin_rest_client_config.php b/tests/Integration/goldens/spanner/src/V1/resources/database_admin_rest_client_config.php index baaee1f64..098a33b80 100644 --- a/tests/Integration/goldens/spanner/src/V1/resources/database_admin_rest_client_config.php +++ b/tests/Integration/goldens/spanner/src/V1/resources/database_admin_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.longrunning.Operations' => [ diff --git a/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php b/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php index 3f6d069d3..0dccc08ce 100644 --- a/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php +++ b/tests/Integration/goldens/spanner/tests/Unit/V1/Client/DatabaseAdminClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Spanner\Admin\Database\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_custom_class.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_custom_class.php index 1eb94e1df..c1c3166a1 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_custom_class.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_custom_class.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_CreateCustomClass_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_phrase_set.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_phrase_set.php index 994c722d5..54af55171 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_phrase_set.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/create_phrase_set.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_CreatePhraseSet_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_custom_class.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_custom_class.php index 15e2a9899..77277c3f8 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_custom_class.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_custom_class.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_DeleteCustomClass_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_phrase_set.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_phrase_set.php index 1bb020424..276c50430 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_phrase_set.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/delete_phrase_set.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_DeletePhraseSet_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_custom_class.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_custom_class.php index 122ac0440..06c717c1c 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_custom_class.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_custom_class.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_GetCustomClass_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_phrase_set.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_phrase_set.php index c691d93bd..6ba0daca9 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_phrase_set.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/get_phrase_set.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_GetPhraseSet_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_custom_classes.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_custom_classes.php index 7a20058f3..427b463e9 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_custom_classes.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_custom_classes.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_ListCustomClasses_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_phrase_set.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_phrase_set.php index 07f4e3b61..09b74a2dc 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_phrase_set.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/list_phrase_set.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_ListPhraseSet_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_custom_class.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_custom_class.php index b53a20ec6..6aecaa07d 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_custom_class.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_custom_class.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_UpdateCustomClass_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_phrase_set.php b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_phrase_set.php index 1b01ba807..241acc0eb 100644 --- a/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_phrase_set.php +++ b/tests/Integration/goldens/speech/samples/V1/AdaptationClient/update_phrase_set.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Adaptation_UpdatePhraseSet_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/SpeechClient/long_running_recognize.php b/tests/Integration/goldens/speech/samples/V1/SpeechClient/long_running_recognize.php index 81db26df6..f2b238c04 100644 --- a/tests/Integration/goldens/speech/samples/V1/SpeechClient/long_running_recognize.php +++ b/tests/Integration/goldens/speech/samples/V1/SpeechClient/long_running_recognize.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Speech_LongRunningRecognize_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/SpeechClient/recognize.php b/tests/Integration/goldens/speech/samples/V1/SpeechClient/recognize.php index 4bc7b2e3f..67fb9d233 100644 --- a/tests/Integration/goldens/speech/samples/V1/SpeechClient/recognize.php +++ b/tests/Integration/goldens/speech/samples/V1/SpeechClient/recognize.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Speech_Recognize_sync] diff --git a/tests/Integration/goldens/speech/samples/V1/SpeechClient/streaming_recognize.php b/tests/Integration/goldens/speech/samples/V1/SpeechClient/streaming_recognize.php index ac89ea7f7..1f0dbaf9a 100644 --- a/tests/Integration/goldens/speech/samples/V1/SpeechClient/streaming_recognize.php +++ b/tests/Integration/goldens/speech/samples/V1/SpeechClient/streaming_recognize.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START speech_v1_generated_Speech_StreamingRecognize_sync] diff --git a/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php b/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php index a987d38f8..24e2283d0 100644 --- a/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php +++ b/tests/Integration/goldens/speech/src/V1/Client/AdaptationClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Speech\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php b/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php index dd6ec2227..ba635cbee 100644 --- a/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php +++ b/tests/Integration/goldens/speech/src/V1/Client/SpeechClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\Speech\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/speech/src/V1/resources/adaptation_descriptor_config.php b/tests/Integration/goldens/speech/src/V1/resources/adaptation_descriptor_config.php index 615331b37..5e385b914 100644 --- a/tests/Integration/goldens/speech/src/V1/resources/adaptation_descriptor_config.php +++ b/tests/Integration/goldens/speech/src/V1/resources/adaptation_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.speech.v1.Adaptation' => [ diff --git a/tests/Integration/goldens/speech/src/V1/resources/adaptation_rest_client_config.php b/tests/Integration/goldens/speech/src/V1/resources/adaptation_rest_client_config.php index f322159d4..ed620f329 100644 --- a/tests/Integration/goldens/speech/src/V1/resources/adaptation_rest_client_config.php +++ b/tests/Integration/goldens/speech/src/V1/resources/adaptation_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.speech.v1.Adaptation' => [ diff --git a/tests/Integration/goldens/speech/src/V1/resources/speech_descriptor_config.php b/tests/Integration/goldens/speech/src/V1/resources/speech_descriptor_config.php index 59f9a7368..9fe532519 100644 --- a/tests/Integration/goldens/speech/src/V1/resources/speech_descriptor_config.php +++ b/tests/Integration/goldens/speech/src/V1/resources/speech_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.speech.v1.Speech' => [ diff --git a/tests/Integration/goldens/speech/src/V1/resources/speech_rest_client_config.php b/tests/Integration/goldens/speech/src/V1/resources/speech_rest_client_config.php index 4bfd8e1d2..9c46f446e 100644 --- a/tests/Integration/goldens/speech/src/V1/resources/speech_rest_client_config.php +++ b/tests/Integration/goldens/speech/src/V1/resources/speech_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.speech.v1.Speech' => [ diff --git a/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php b/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php index 6ff21fb89..23557a7cf 100644 --- a/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php +++ b/tests/Integration/goldens/speech/tests/Unit/V1/Client/AdaptationClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Speech\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php b/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php index a38db8f8a..b43502d78 100644 --- a/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php +++ b/tests/Integration/goldens/speech/tests/Unit/V1/Client/SpeechClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Speech\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/create_company.php b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/create_company.php index a8d072835..6c0dbb741 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/create_company.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/create_company.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_CompanyService_CreateCompany_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/delete_company.php b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/delete_company.php index 923546684..3329c4eb3 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/delete_company.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/delete_company.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_CompanyService_DeleteCompany_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/get_company.php b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/get_company.php index 35e9bc05a..9cd704d2b 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/get_company.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/get_company.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_CompanyService_GetCompany_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/list_companies.php b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/list_companies.php index d9e6d1caf..74d089bf5 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/list_companies.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/list_companies.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_CompanyService_ListCompanies_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/update_company.php b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/update_company.php index 89f7f7016..c022a509c 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/update_company.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompanyServiceClient/update_company.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_CompanyService_UpdateCompany_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/CompletionClient/complete_query.php b/tests/Integration/goldens/talent/samples/V4beta1/CompletionClient/complete_query.php index 5aa62bbb2..fc9ca0fe7 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/CompletionClient/complete_query.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/CompletionClient/complete_query.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_Completion_CompleteQuery_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/EventServiceClient/create_client_event.php b/tests/Integration/goldens/talent/samples/V4beta1/EventServiceClient/create_client_event.php index 7fb405d7b..c4c80ef83 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/EventServiceClient/create_client_event.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/EventServiceClient/create_client_event.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_EventService_CreateClientEvent_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_create_jobs.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_create_jobs.php index 00648347a..c40cce7f0 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_create_jobs.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_create_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_BatchCreateJobs_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_delete_jobs.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_delete_jobs.php index 9d7f0421d..777a7b7ff 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_delete_jobs.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_delete_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_BatchDeleteJobs_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_update_jobs.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_update_jobs.php index 0588e477d..77cdbac79 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_update_jobs.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/batch_update_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_BatchUpdateJobs_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/create_job.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/create_job.php index 5ea54488f..8c0b6c4d9 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/create_job.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/create_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_CreateJob_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/delete_job.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/delete_job.php index 12c8c967f..137763be0 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/delete_job.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/delete_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_DeleteJob_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/get_job.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/get_job.php index 96f6bccae..0a57e1a07 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/get_job.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/get_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_GetJob_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/list_jobs.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/list_jobs.php index 9a00a8dbf..5fecad5db 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/list_jobs.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/list_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_ListJobs_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs.php index 45cabe54f..8def15596 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_SearchJobs_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs_for_alert.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs_for_alert.php index 7e2ad0a4f..a10c0dda0 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs_for_alert.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/search_jobs_for_alert.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_SearchJobsForAlert_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/update_job.php b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/update_job.php index d6b62c21b..5aaf2fd9b 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/update_job.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/JobServiceClient/update_job.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_JobService_UpdateJob_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/create_tenant.php b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/create_tenant.php index 5e30b3cee..db7b74814 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/create_tenant.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/create_tenant.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_TenantService_CreateTenant_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/delete_tenant.php b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/delete_tenant.php index f30a1fabc..eb03a4aaf 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/delete_tenant.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/delete_tenant.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_TenantService_DeleteTenant_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/get_tenant.php b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/get_tenant.php index 458e45347..be33f8da5 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/get_tenant.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/get_tenant.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_TenantService_GetTenant_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/list_tenants.php b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/list_tenants.php index 71973b94a..6025b7974 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/list_tenants.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/list_tenants.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_TenantService_ListTenants_sync] diff --git a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/update_tenant.php b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/update_tenant.php index de943d018..812be5316 100644 --- a/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/update_tenant.php +++ b/tests/Integration/goldens/talent/samples/V4beta1/TenantServiceClient/update_tenant.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START jobs_v4beta1_generated_TenantService_UpdateTenant_sync] diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php index 97de02725..ae5156a9c 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/CompanyServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php index ff4d220d4..d7c204a41 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/CompletionClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php index 1b84f2221..28199aad5 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/EventServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php index ae5f8360f..ca7c13c5d 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/JobServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php b/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php index 9f6552a92..6279d8e70 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php +++ b/tests/Integration/goldens/talent/src/V4beta1/Client/TenantServiceClient.php @@ -24,6 +24,8 @@ * @experimental */ +declare(strict_types=1); + namespace Google\Cloud\Talent\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_descriptor_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_descriptor_config.php index b0d68baf5..f1103a701 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_descriptor_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.CompanyService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_rest_client_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_rest_client_config.php index b179346f5..b39472569 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_rest_client_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/company_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.CompanyService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/completion_descriptor_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/completion_descriptor_config.php index 35b7665d8..049d611f9 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/completion_descriptor_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/completion_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.Completion' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/completion_rest_client_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/completion_rest_client_config.php index 6922d9a4c..ba715a244 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/completion_rest_client_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/completion_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.Completion' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_descriptor_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_descriptor_config.php index 655ff904f..1936a523d 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_descriptor_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.EventService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_rest_client_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_rest_client_config.php index 121fb967c..dadc8a50b 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_rest_client_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/event_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.EventService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_descriptor_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_descriptor_config.php index 69b21b3d5..b52b9fa0e 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_descriptor_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.JobService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_rest_client_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_rest_client_config.php index 7b6316808..9de54bedf 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_rest_client_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/job_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.JobService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_descriptor_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_descriptor_config.php index edc72f8e8..8156eb773 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_descriptor_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.TenantService' => [ diff --git a/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_rest_client_config.php b/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_rest_client_config.php index 99ecb99ee..5ea074e67 100644 --- a/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_rest_client_config.php +++ b/tests/Integration/goldens/talent/src/V4beta1/resources/tenant_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.talent.v4beta1.TenantService' => [ diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php index b9de01880..7566f6a9e 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompanyServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php index 954e35088..a413fcc24 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/CompletionClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php index 9c213bddc..48b8b5982 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/EventServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php index 6c02961d7..e91c21e15 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/JobServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php index 6995d6822..5f65d9f20 100644 --- a/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php +++ b/tests/Integration/goldens/talent/tests/Unit/V4beta1/Client/TenantServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\Talent\Tests\Unit\V4beta1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/videointelligence/samples/V1/VideoIntelligenceServiceClient/annotate_video.php b/tests/Integration/goldens/videointelligence/samples/V1/VideoIntelligenceServiceClient/annotate_video.php index 2445de7b0..06a41cf0d 100644 --- a/tests/Integration/goldens/videointelligence/samples/V1/VideoIntelligenceServiceClient/annotate_video.php +++ b/tests/Integration/goldens/videointelligence/samples/V1/VideoIntelligenceServiceClient/annotate_video.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START videointelligence_v1_generated_VideoIntelligenceService_AnnotateVideo_sync] diff --git a/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php b/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php index 98c485342..ac4e06d28 100644 --- a/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php +++ b/tests/Integration/goldens/videointelligence/src/V1/Client/VideoIntelligenceServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Google\Cloud\VideoIntelligence\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_descriptor_config.php b/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_descriptor_config.php index 94b4ea7c5..2cc4899ce 100644 --- a/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_descriptor_config.php +++ b/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.videointelligence.v1.VideoIntelligenceService' => [ diff --git a/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_rest_client_config.php b/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_rest_client_config.php index 6c1a9d14d..c338b8936 100644 --- a/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_rest_client_config.php +++ b/tests/Integration/goldens/videointelligence/src/V1/resources/video_intelligence_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.cloud.videointelligence.v1.VideoIntelligenceService' => [ diff --git a/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php b/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php index 35af624ff..171128714 100644 --- a/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php +++ b/tests/Integration/goldens/videointelligence/tests/Unit/V1/Client/VideoIntelligenceServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Google\Cloud\VideoIntelligence\Tests\Unit\V1\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/a_method.php b/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/a_method.php index 6c78c3e55..653aee080 100644 --- a/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/a_method.php +++ b/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/a_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START basic_generated_Basic_AMethod_sync] diff --git a/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/method_with_args.php b/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/method_with_args.php index 994f02c6b..3647c8b52 100644 --- a/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/method_with_args.php +++ b/tests/Unit/ProtoTests/Basic/out/samples/BasicClient/method_with_args.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START basic_generated_Basic_MethodWithArgs_sync] diff --git a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php index e6d98020b..d78bf399c 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php +++ b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\Basic\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/Basic/out/src/resources/basic_descriptor_config.php b/tests/Unit/ProtoTests/Basic/out/src/resources/basic_descriptor_config.php index 356ebf9e4..f54a2e319 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/resources/basic_descriptor_config.php +++ b/tests/Unit/ProtoTests/Basic/out/src/resources/basic_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basic.Basic' => [ diff --git a/tests/Unit/ProtoTests/Basic/out/src/resources/basic_rest_client_config.php b/tests/Unit/ProtoTests/Basic/out/src/resources/basic_rest_client_config.php index 4c4718575..73c1662d2 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/resources/basic_rest_client_config.php +++ b/tests/Unit/ProtoTests/Basic/out/src/resources/basic_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basic.Basic' => [ diff --git a/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php b/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php index 8122fd3db..7216c8107 100644 --- a/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php +++ b/tests/Unit/ProtoTests/Basic/out/tests/Unit/Client/BasicClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\Basic\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/create_foo.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/create_foo.php index 35b901851..2bb106b79 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/create_foo.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/create_foo.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START autopopulation_generated_BasicAutoPopulation_CreateFoo_sync] diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/get_foo.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/get_foo.php index 49b9c38c7..af18c34aa 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/get_foo.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/samples/BasicAutoPopulationClient/get_foo.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START autopopulation_generated_BasicAutoPopulation_GetFoo_sync] diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php index 121137e73..5a8ee7af1 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/Client/BasicAutoPopulationClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicAutoPopulation\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_descriptor_config.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_descriptor_config.php index 6aa6e49ad..0b5f5a886 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicautopopulation.BasicAutoPopulation' => [ diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_rest_client_config.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_rest_client_config.php index 0ef56a717..49f9e9dd7 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/src/resources/basic_auto_population_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicautopopulation.BasicAutoPopulation' => [ diff --git a/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php b/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php index 5dbfae911..c546ed11a 100644 --- a/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php +++ b/tests/Unit/ProtoTests/BasicAutoPopulation/out/tests/Unit/Client/BasicAutoPopulationClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicAutoPopulation\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_bidi.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_bidi.php index f261522cc..d389d4431 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_bidi.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_bidi.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START bidi_generated_BasicBidiStreaming_MethodBidi_sync] diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_empty.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_empty.php index de51e9d2a..c9d09ea7f 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_empty.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/samples/BasicBidiStreamingClient/method_empty.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START bidi_generated_BasicBidiStreaming_MethodEmpty_sync] diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php index c4c0935c4..bbaec3f06 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/Client/BasicBidiStreamingClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicBidiStreaming\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_descriptor_config.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_descriptor_config.php index fce3f90d3..c6c396896 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicbidistreaming.BasicBidiStreaming' => [ diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_rest_client_config.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_rest_client_config.php index c63ad5e4f..70908df48 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/src/resources/basic_bidi_streaming_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [], 'numericEnums' => true, diff --git a/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php b/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php index e3ce5db14..cf02d01a0 100644 --- a/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicBidiStreaming/out/tests/Unit/Client/BasicBidiStreamingClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicBidiStreaming\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_client.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_client.php index c26a9debd..39b7f81c6 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_client.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_client.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START clientstreaming_generated_BasicClientStreaming_MethodClient_sync] diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_empty.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_empty.php index 062c89634..5a1fb3226 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_empty.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/samples/BasicClientStreamingClient/method_empty.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START clientstreaming_generated_BasicClientStreaming_MethodEmpty_sync] diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php index 362488479..9a0f41c66 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/Client/BasicClientStreamingClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicClientStreaming\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_descriptor_config.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_descriptor_config.php index 8746c4beb..e1673360b 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicclientstreaming.BasicClientStreaming' => [ diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_rest_client_config.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_rest_client_config.php index c63ad5e4f..70908df48 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/src/resources/basic_client_streaming_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [], 'numericEnums' => true, diff --git a/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php b/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php index c4127c247..e924e2279 100644 --- a/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicClientStreaming/out/tests/Unit/Client/BasicClientStreamingClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicClientStreaming\Tests\Unit\Client; use Google\ApiCore\InsecureCredentialsWrapper; diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_comments.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_comments.php index ddaafcf07..171f7c41e 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_comments.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_comments.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_AddComments_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_tag.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_tag.php index a72b58c59..a2c3a4e60 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_tag.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/add_tag.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_AddTag_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/archive_books.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/archive_books.php index 0855276ff..21565422c 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/archive_books.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/archive_books.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_ArchiveBooks_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_book.php index 00e6fee4c..19684802f 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_CreateBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_inventory.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_inventory.php index de586e23a..6ea87fce0 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_inventory.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_inventory.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_CreateInventory_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_shelf.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_shelf.php index b9766dcc3..7afd87d75 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_shelf.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/create_shelf.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_CreateShelf_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_book.php index ff38c964e..91ac1afc1 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_DeleteBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_shelf.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_shelf.php index 335ecb22e..d51a20f12 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_shelf.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/delete_shelf.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_DeleteShelf_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/find_related_books.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/find_related_books.php index 1d85481c2..3d47292b7 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/find_related_books.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/find_related_books.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_FindRelatedBooks_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_book.php index 6c629f3a1..a0e0ed668 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBigBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_nothing.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_nothing.php index df2a58a3b..6cb96a77e 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_nothing.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_big_nothing.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBigNothing_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book.php index b283f4885..7e09b72a7 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_absolutely_anywhere.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_absolutely_anywhere.php index 38079b47c..c2cb82c07 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_absolutely_anywhere.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_absolutely_anywhere.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBookFromAbsolutelyAnywhere_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_anywhere.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_anywhere.php index 1b374c731..13bf18976 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_anywhere.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_anywhere.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBookFromAnywhere_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_archive.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_archive.php index 7074c9983..416632ecc 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_archive.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_book_from_archive.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetBookFromArchive_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_shelf.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_shelf.php index 534a2d1dd..993bf87c4 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_shelf.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/get_shelf.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_GetShelf_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_aggregated_shelves.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_aggregated_shelves.php index b7e6fcefe..0975d8a2b 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_aggregated_shelves.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_aggregated_shelves.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_ListAggregatedShelves_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_books.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_books.php index 42170c326..8ea8ee53b 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_books.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_books.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_ListBooks_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_shelves.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_shelves.php index 084e2ab7a..6a9913da0 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_shelves.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_shelves.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_ListShelves_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_strings.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_strings.php index 3bc3d67c8..91bd4c3dd 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_strings.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/list_strings.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_ListStrings_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/long_running_archive_books.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/long_running_archive_books.php index c0e8f54d4..b16feab0c 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/long_running_archive_books.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/long_running_archive_books.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_LongRunningArchiveBooks_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/merge_shelves.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/merge_shelves.php index c158f187e..8dd5a49dd 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/merge_shelves.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/merge_shelves.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_MergeShelves_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_book.php index 3e6b8df19..711b11d25 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_MoveBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_books.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_books.php index 7a12e0f94..d1c8a948d 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_books.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/move_books.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_MoveBooks_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/private_list_shelves.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/private_list_shelves.php index e3c3ee258..7fd44b59b 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/private_list_shelves.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/private_list_shelves.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_PrivateListShelves_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/publish_series.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/publish_series.php index 1e2a54e5f..8f8db895e 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/publish_series.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/publish_series.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_PublishSeries_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/save_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/save_book.php index bf47c728e..cc3946c42 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/save_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/save_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_SaveBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book.php index 48df5fda0..cae0cce92 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_UpdateBook_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book_index.php b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book_index.php index 57dcd9126..39b3179e1 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book_index.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/samples/LibraryClient/update_book_index.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START example_generated_Library_UpdateBookIndex_sync] diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php b/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php index f84f0d5c7..4df3d0499 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/src/Client/LibraryClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicDiregapic\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_descriptor_config.php b/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_descriptor_config.php index c5efe8204..e34c0e863 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.example.library.v1.Library' => [ diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_rest_client_config.php b/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_rest_client_config.php index 0f5aede56..e34ffa047 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/src/resources/library_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'google.example.library.v1.Library' => [ diff --git a/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php b/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php index e0b709ca1..2174d04ec 100644 --- a/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php +++ b/tests/Unit/ProtoTests/BasicDiregapic/out/tests/Unit/Client/LibraryClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicDiregapic\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/samples/BasicExplicitPaginatedClient/method_explicit_paginated.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/samples/BasicExplicitPaginatedClient/method_explicit_paginated.php index 9f790b598..21e4ec8e0 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/samples/BasicExplicitPaginatedClient/method_explicit_paginated.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/samples/BasicExplicitPaginatedClient/method_explicit_paginated.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START explicitpaginated_generated_BasicExplicitPaginated_MethodExplicitPaginated_sync] diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php index c5c1f45a9..1481ed8b8 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/Client/BasicExplicitPaginatedClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicExplicitPaginated\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_descriptor_config.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_descriptor_config.php index 4c64be1a2..38671df40 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicexplicitpaginated.BasicExplicitPaginated' => [ diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_rest_client_config.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_rest_client_config.php index 5dd954726..acc32ec98 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/src/resources/basic_explicit_paginated_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicexplicitpaginated.BasicExplicitPaginated' => [ diff --git a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php index ad09ce564..63ad50f2e 100644 --- a/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php +++ b/tests/Unit/ProtoTests/BasicExplicitPaginated/out/tests/Unit/Client/BasicExplicitPaginatedClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicExplicitPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php index 31290e642..d7d5c6c61 100644 --- a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php +++ b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/Client/BasicGrpcOnlyClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\Basicgrpconly\Client; use Google\ApiCore\GapicClientTrait; diff --git a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/resources/basic_grpc_only_descriptor_config.php b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/resources/basic_grpc_only_descriptor_config.php index 0570f7dbd..c7cc9338b 100644 --- a/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/resources/basic_grpc_only_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicGrpcOnly/out/src/resources/basic_grpc_only_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicgrpconly.BasicGrpcOnly' => [], diff --git a/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php b/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php index 9196e2325..c877ff927 100644 --- a/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php +++ b/tests/Unit/ProtoTests/BasicGrpcOnly/out/tests/Unit/Client/BasicGrpcOnlyClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\Basicgrpconly\Tests\Unit\Client; use Google\ApiCore\InsecureCredentialsWrapper; diff --git a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method1.php b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method1.php index eb2cda393..cee67b2d4 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method1.php +++ b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method1.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START lro_generated_BasicLro_Method1_sync] diff --git a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro1.php b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro1.php index 77eab352c..220098053 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro1.php +++ b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro1.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START lro_generated_BasicLro_MethodNonLro1_sync] diff --git a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro2.php b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro2.php index 571ffa8ae..bcb67dace 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro2.php +++ b/tests/Unit/ProtoTests/BasicLro/out/samples/BasicLroClient/method_non_lro2.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START lro_generated_BasicLro_MethodNonLro2_sync] diff --git a/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php b/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php index 0ac94801d..374bafe6f 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php +++ b/tests/Unit/ProtoTests/BasicLro/out/src/Client/BasicLroClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicLro\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_descriptor_config.php b/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_descriptor_config.php index 0a8bdbb1d..5c7f31ff4 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basiclro.BasicLro' => [ diff --git a/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_rest_client_config.php b/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_rest_client_config.php index 6f2c28ac7..b9bf42fc5 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicLro/out/src/resources/basic_lro_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basiclro.BasicLro' => [ diff --git a/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php b/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php index 9ddcc959c..40847d295 100644 --- a/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php +++ b/tests/Unit/ProtoTests/BasicLro/out/tests/Unit/Client/BasicLroClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicLro\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicOneof/out/samples/BasicOneofClient/a_method.php b/tests/Unit/ProtoTests/BasicOneof/out/samples/BasicOneofClient/a_method.php index 310fd0c73..02b43c281 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/samples/BasicOneofClient/a_method.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/samples/BasicOneofClient/a_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START basic_generated_BasicOneof_AMethod_sync] diff --git a/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php b/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php index 31a318dbd..48eaadbbd 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/src/Client/BasicOneofClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicOneof\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_descriptor_config.php b/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_descriptor_config.php index fab834bad..ea608aa04 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basiconeof.BasicOneof' => [ diff --git a/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_rest_client_config.php b/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_rest_client_config.php index c445b3664..92aafc026 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/src/resources/basic_oneof_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basiconeof.BasicOneof' => [ diff --git a/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php b/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php index c54bac743..549fc544d 100644 --- a/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php +++ b/tests/Unit/ProtoTests/BasicOneof/out/tests/Unit/Client/BasicOneofClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicOneof\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/samples/BasicPaginatedClient/method_paginated.php b/tests/Unit/ProtoTests/BasicPaginated/out/samples/BasicPaginatedClient/method_paginated.php index d97dfa5b2..c9b115669 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/samples/BasicPaginatedClient/method_paginated.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/samples/BasicPaginatedClient/method_paginated.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START paginated_generated_BasicPaginated_MethodPaginated_sync] diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php b/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php index d61b56b17..fa935057b 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/src/Client/BasicPaginatedClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicPaginated\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_descriptor_config.php b/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_descriptor_config.php index f37527ee4..ec6b7a4ef 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicpaginated.BasicPaginated' => [ diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_rest_client_config.php b/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_rest_client_config.php index fa33b1333..158b2d386 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/src/resources/basic_paginated_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicpaginated.BasicPaginated' => [ diff --git a/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php b/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php index ef470d599..f2ade3436 100644 --- a/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php +++ b/tests/Unit/ProtoTests/BasicPaginated/out/tests/Unit/Client/BasicPaginatedClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_empty.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_empty.php index 8b82097af..8d3821bb6 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_empty.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_empty.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START serverstreaming_generated_BasicServerStreaming_MethodEmpty_sync] diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_server.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_server.php index 9641130cb..8f988c736 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_server.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/samples/BasicServerStreamingClient/method_server.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START serverstreaming_generated_BasicServerStreaming_MethodServer_sync] diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php index 64cec5d7a..6b08401d9 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/Client/BasicServerStreamingClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\BasicServerStreaming\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_descriptor_config.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_descriptor_config.php index 9a9487e50..db19acd70 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_descriptor_config.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicserverstreaming.BasicServerStreaming' => [ diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_rest_client_config.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_rest_client_config.php index 53b4e5746..628971028 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_rest_client_config.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/src/resources/basic_server_streaming_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.basicserverstreaming.BasicServerStreaming' => [ diff --git a/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php b/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php index 11cb60dde..80bd0b0d6 100644 --- a/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php +++ b/tests/Unit/ProtoTests/BasicServerStreaming/out/tests/Unit/Client/BasicServerStreamingClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\BasicServerStreaming\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroClient/create_foo.php b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroClient/create_foo.php index d93e3cf0b..8e2a08877 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroClient/create_foo.php +++ b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroClient/create_foo.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START customlro_generated_CustomLro_CreateFoo_sync] diff --git a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/cancel.php b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/cancel.php index cc27aef94..098d22888 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/cancel.php +++ b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/cancel.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START customlro_generated_CustomLroOperations_Cancel_sync] diff --git a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/delete.php b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/delete.php index 19218e43e..a01689a15 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/delete.php +++ b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/delete.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START customlro_generated_CustomLroOperations_Delete_sync] diff --git a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/get.php b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/get.php index b8db594b7..f9037e633 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/get.php +++ b/tests/Unit/ProtoTests/CustomLro/out/samples/CustomLroOperationsClient/get.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START customlro_generated_CustomLroOperations_Get_sync] diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php index 3658235cb..99483df8f 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\CustomLro\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php index d2dd8b060..407c422f2 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/Client/CustomLroOperationsClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\CustomLro\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_descriptor_config.php b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_descriptor_config.php index 47a2fcb1d..5979bde11 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_descriptor_config.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.customlro.CustomLro' => [ diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_descriptor_config.php b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_descriptor_config.php index 3535a3278..93c0a8649 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_descriptor_config.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.customlro.CustomLroOperations' => [ diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_rest_client_config.php b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_rest_client_config.php index 39eabb0a4..f94e08668 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_rest_client_config.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_operations_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.customlro.CustomLroOperations' => [ diff --git a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_rest_client_config.php b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_rest_client_config.php index 3e13c2932..3d7f0340a 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_rest_client_config.php +++ b/tests/Unit/ProtoTests/CustomLro/out/src/resources/custom_lro_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.customlro.CustomLro' => [ diff --git a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php index 7f05ec37e..26b3f4551 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php +++ b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\CustomLro\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php index d4fbfd1a6..423e19544 100644 --- a/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php +++ b/tests/Unit/ProtoTests/CustomLro/out/tests/Unit/Client/CustomLroOperationsClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\CustomLro\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/fast_fibonacci.php b/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/fast_fibonacci.php index 4f8aab8b2..4e773585c 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/fast_fibonacci.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/fast_fibonacci.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START localhost:7469_generated_DeprecatedService_FastFibonacci_sync] diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/slow_fibonacci.php b/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/slow_fibonacci.php index 732f21101..0abbf69e8 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/slow_fibonacci.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/samples/DeprecatedServiceClient/slow_fibonacci.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START localhost:7469_generated_DeprecatedService_SlowFibonacci_sync] diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php b/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php index 475e5989c..72ad2ab27 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/src/Client/DeprecatedServiceClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\Deprecated\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_descriptor_config.php b/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_descriptor_config.php index 4647e114e..d8aca2836 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_descriptor_config.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.deprecated_service.DeprecatedService' => [ diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_rest_client_config.php b/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_rest_client_config.php index c63ad5e4f..70908df48 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_rest_client_config.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/src/resources/deprecated_service_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [], 'numericEnums' => true, diff --git a/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php b/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php index 18f0408b8..5937278c4 100644 --- a/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php +++ b/tests/Unit/ProtoTests/DeprecatedService/out/tests/Unit/Client/DeprecatedServiceClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\Deprecated\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/list_method.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/list_method.php index 13838a29c..99cdb665a 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/list_method.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/list_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START diregapic_generated_HeuristicPaginationClient_ListMethod_sync] diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/map_method.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/map_method.php index c72d4aeca..2b3d65e37 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/map_method.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/map_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START diregapic_generated_HeuristicPaginationClient_MapMethod_sync] diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/multiple_list_method.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/multiple_list_method.php index 654fcd23d..6c3756189 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/multiple_list_method.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/multiple_list_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START diregapic_generated_HeuristicPaginationClient_MultipleListMethod_sync] diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/non_paginated_method.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/non_paginated_method.php index 319989044..cb2c3615e 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/non_paginated_method.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/samples/HeuristicPaginationClientClient/non_paginated_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START diregapic_generated_HeuristicPaginationClient_NonPaginatedMethod_sync] diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php index f40e34d90..353259a98 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/Client/HeuristicPaginationClientClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\DiregapicPaginated\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_descriptor_config.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_descriptor_config.php index c81e2753f..59000e2d0 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_descriptor_config.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.diregapicpaginated.HeuristicPaginationClient' => [ diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_rest_client_config.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_rest_client_config.php index db264e06e..585d662bf 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_rest_client_config.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/src/resources/heuristic_pagination_client_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.diregapicpaginated.HeuristicPaginationClient' => [ diff --git a/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php b/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php index 1a64133d1..8b7cb4519 100644 --- a/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php +++ b/tests/Unit/ProtoTests/DiregapicPaginated/out/tests/Unit/Client/HeuristicPaginationClientClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\DiregapicPaginated\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php b/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php index f1d1b2ea5..bb828da6a 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/src/Client/DisableSnippetsClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\DisableSnippets\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_descriptor_config.php b/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_descriptor_config.php index a643b2d4a..131fdbab9 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_descriptor_config.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.disablesnippets.DisableSnippets' => [ diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_rest_client_config.php b/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_rest_client_config.php index b6daf3ddf..1feb45902 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_rest_client_config.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/src/resources/disable_snippets_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.disablesnippets.DisableSnippets' => [ diff --git a/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php b/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php index 4b83b4f6c..34df7ae61 100644 --- a/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php +++ b/tests/Unit/ProtoTests/DisableSnippets/out/tests/Unit/Client/DisableSnippetsClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\DisableSnippets\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_a.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_a.php index cf549fb1f..88adc793c 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_a.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_a.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1A_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_b_lro.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_b_lro.php index 074ba7b5d..dbec580f2 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_b_lro.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_b_lro.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1BLro_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_bidi_streaming.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_bidi_streaming.php index 2358af9cb..a18df7824 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_bidi_streaming.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_bidi_streaming.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1BidiStreaming_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_c_service_level_retry.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_c_service_level_retry.php index 8ba4a4951..3672a7475 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_c_service_level_retry.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_c_service_level_retry.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1CServiceLevelRetry_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_d_timeout_only_retry.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_d_timeout_only_retry.php index 739bbded7..f6111f374 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_d_timeout_only_retry.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_d_timeout_only_retry.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1DTimeoutOnlyRetry_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_server_streaming.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_server_streaming.php index 01c191bfa..4ba28b668 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_server_streaming.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/samples/GrpcServiceConfigWithRetry1Client/method1_server_streaming.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START grpcserviceconfig_generated_GrpcServiceConfigWithRetry1_Method1ServerStreaming_sync] diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php index 6f7049a8b..a5cbd1d58 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/Client/GrpcServiceConfigWithRetry1Client.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\GrpcServiceConfig\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_descriptor_config.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_descriptor_config.php index 806e8d9fc..fc5cbbd2a 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_descriptor_config.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.grpcserviceconfig.GrpcServiceConfigWithRetry1' => [ diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_rest_client_config.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_rest_client_config.php index 3c338c059..33667b500 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_rest_client_config.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/src/resources/grpc_service_config_with_retry1_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.grpcserviceconfig.GrpcServiceConfigWithRetry1' => [ diff --git a/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php b/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php index 36c40973b..54c3b5b36 100644 --- a/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php +++ b/tests/Unit/ProtoTests/GrpcServiceConfig/out/tests/Unit/Client/GrpcServiceConfigWithRetry1ClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\GrpcServiceConfig\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_child_type_ref_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_child_type_ref_method.php index c693742f2..4e504b0e8 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_child_type_ref_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_child_type_ref_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_FileLevelChildTypeRefMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_type_ref_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_type_ref_method.php index 89cb03681..61c3389c5 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_type_ref_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/file_level_type_ref_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_FileLevelTypeRefMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/multi_pattern_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/multi_pattern_method.php index 42590d36d..a02ba7f8a 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/multi_pattern_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/multi_pattern_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_MultiPatternMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/nested_reference_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/nested_reference_method.php index 23effb2cf..81f0732b3 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/nested_reference_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/nested_reference_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_NestedReferenceMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/single_pattern_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/single_pattern_method.php index 53ca9bf3a..629fea42a 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/single_pattern_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/single_pattern_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_SinglePatternMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_child_reference_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_child_reference_method.php index 0648ad99e..8c8211864 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_child_reference_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_child_reference_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_WildcardChildReferenceMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_method.php index d20a47b7b..7760958bf 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_WildcardMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_multi_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_multi_method.php index 555fe349f..472b14ed6 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_multi_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_multi_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_WildcardMultiMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_reference_method.php b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_reference_method.php index a1df2f6f5..a167b6b69 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_reference_method.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/samples/ResourceNamesClient/wildcard_reference_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resourcenames_generated_ResourceNames_WildcardReferenceMethod_sync] diff --git a/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php b/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php index 38ff93591..46cede38d 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/src/Client/ResourceNamesClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\ResourceNames\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_descriptor_config.php b/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_descriptor_config.php index 66adca8aa..a9983be84 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_descriptor_config.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.resourcenames.ResourceNames' => [ diff --git a/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_rest_client_config.php b/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_rest_client_config.php index af9a9f7b4..453ccbddf 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_rest_client_config.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/src/resources/resource_names_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.resourcenames.ResourceNames' => [ diff --git a/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php b/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php index e56847790..3c1960e5b 100644 --- a/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php +++ b/tests/Unit/ProtoTests/ResourceNames/out/tests/Unit/Client/ResourceNamesClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\ResourceNames\Tests\Unit\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/samples/ResumableUploadClient/create_you_tube_video_upload.php b/tests/Unit/ProtoTests/ResumableUpload/out/samples/ResumableUploadClient/create_you_tube_video_upload.php index 0cef48b08..44bbdaadf 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/samples/ResumableUploadClient/create_you_tube_video_upload.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/samples/ResumableUploadClient/create_you_tube_video_upload.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START resumableupload_generated_ResumableUpload_CreateYouTubeVideoUpload_sync] diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php b/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php index 8cf25d67f..350d6f27f 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/src/Client/ResumableUploadClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\Resumableupload\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_descriptor_config.php b/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_descriptor_config.php index 9f427e7e7..ec84bbfa2 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_descriptor_config.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.resumableupload.ResumableUpload' => [ diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_rest_client_config.php b/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_rest_client_config.php index dbabf8cdf..28d4e99ba 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_rest_client_config.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/src/resources/resumable_upload_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.resumableupload.ResumableUpload' => [ diff --git a/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php b/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php index 8ccaedb0b..48d4c4cc9 100644 --- a/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php +++ b/tests/Unit/ProtoTests/ResumableUpload/out/tests/Unit/Client/ResumableUploadClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\Resumableupload\Tests\Unit\Client; use Google\ApiCore\InsecureCredentialsWrapper; diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/delete_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/delete_method.php index 20a3defa4..f950001dc 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/delete_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/delete_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_DeleteMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_method.php index bf1410801..fb8366ae2 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_GetMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_placeholders_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_placeholders_method.php index 8f768bed8..9824275d7 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_placeholders_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_placeholders_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_GetNoPlaceholdersMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_template_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_template_method.php index 4ab8f7900..b0597176f 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_template_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/get_no_template_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_GetNoTemplateMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_method.php index 9be68ffa6..b662d90e3 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_NestedMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_multi_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_multi_method.php index b2276aed8..6f5199f4f 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_multi_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/nested_multi_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_NestedMultiMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/ordering_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/ordering_method.php index 3d781878f..d3549306a 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/ordering_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/ordering_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_OrderingMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/patch_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/patch_method.php index a10cadac6..7822a8071 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/patch_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/patch_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_PatchMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/post_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/post_method.php index b248fa084..04ff7690f 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/post_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/post_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_PostMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/put_method.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/put_method.php index c8ff41802..2c8c0ff08 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/put_method.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/put_method.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_PutMethod_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_out_parameters.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_out_parameters.php index d3568a26f..285c7669a 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_out_parameters.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_out_parameters.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_RoutingRuleWithOutParameters_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_parameters.php b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_parameters.php index f90ff565b..e7c1e5d7f 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_parameters.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/samples/RoutingHeadersClient/routing_rule_with_parameters.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); require_once __DIR__ . '/../../../vendor/autoload.php'; // [START routingheaders_generated_RoutingHeaders_RoutingRuleWithParameters_sync] diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php b/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php index fb074df83..b7f35177e 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/src/Client/RoutingHeadersClient.php @@ -22,6 +22,8 @@ * Updates to the above are reflected here through a refresh process. */ +declare(strict_types=1); + namespace Testing\RoutingHeaders\Client; use Google\ApiCore\ApiException; diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_descriptor_config.php b/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_descriptor_config.php index bc1a11fe7..94bcbba62 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_descriptor_config.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_descriptor_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.routingheaders.RoutingHeaders' => [ diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_rest_client_config.php b/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_rest_client_config.php index 6d585e2c6..593ef79df 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_rest_client_config.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/src/resources/routing_headers_rest_client_config.php @@ -20,6 +20,7 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); return [ 'interfaces' => [ 'testing.routingheaders.RoutingHeaders' => [ diff --git a/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php b/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php index 8d62a1790..891cbd670 100644 --- a/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php +++ b/tests/Unit/ProtoTests/RoutingHeaders/out/tests/Unit/Client/RoutingHeadersClientTest.php @@ -20,6 +20,8 @@ * This file was automatically generated - do not edit! */ +declare(strict_types=1); + namespace Testing\RoutingHeaders\Tests\Unit\Client; use Google\ApiCore\ApiException; From 9312161ecaec951c7a7b8eff0c1d07199fdc6cb8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 29 Sep 2026 21:33:05 +0000 Subject: [PATCH 3/8] test: update FakeMessage method signatures for google/protobuf compatibility --- tests/Unit/autoload.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/Unit/autoload.php b/tests/Unit/autoload.php index 5252100a5..c2dd367d6 100644 --- a/tests/Unit/autoload.php +++ b/tests/Unit/autoload.php @@ -64,8 +64,9 @@ public function __call(string $name, array $arguments) } } - public function serializeToString() - { + public function serializeToString( + $recursion_limit = \Google\Protobuf\Internal\CodedInputStream::DEFAULT_RECURSION_LIMIT + ) { // This serialization does not need to be compatible with real proto serialization. $result = ''; foreach ($this as $name => $value) { @@ -75,8 +76,10 @@ public function serializeToString() return $result; } - public function mergeFromString($s) - { + public function mergeFromString( + $s, + $recursion_limit = \Google\Protobuf\Internal\CodedInputStream::DEFAULT_RECURSION_LIMIT + ) { $pos = 0; while ($pos < strlen($s)) { $colon1 = strpos($s, ':', $pos); From c9f55e6219f01990f43ac679bf86876c9f759c3c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 30 Sep 2026 17:52:13 +0000 Subject: [PATCH 4/8] feat: support array|ClientOptions in setDefaultEmulatorConfig --- src/Generation/EmulatorSupportGenerator.php | 9 +++++++-- .../spanner/src/V1/Client/DatabaseAdminClient.php | 2 +- .../Unit/ProtoTests/Basic/out/src/Client/BasicClient.php | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Generation/EmulatorSupportGenerator.php b/src/Generation/EmulatorSupportGenerator.php index 2b9f634ef..59a4e3228 100644 --- a/src/Generation/EmulatorSupportGenerator.php +++ b/src/Generation/EmulatorSupportGenerator.php @@ -18,6 +18,7 @@ namespace Google\Generator\Generation; +use Google\ApiCore\Options\ClientOptions; use Google\Generator\Ast\Access; use Google\Generator\Ast\AST; use Google\Generator\Ast\PhpDoc; @@ -54,6 +55,10 @@ public static function generateEmulatorSupport(ServiceDetails $serviceDetails, S $schemeVar = AST::var('scheme'); $searchVar = AST::var('search'); $optionsVar = AST::var('options'); + $optionsType = ResolvedType::union( + Type::array(), + Type::fromName(ClientOptions::class) + ); $transportConfigIndexVar = AST::index(AST::index(AST::index(AST::index( $optionsVar, 'transportConfig' @@ -65,7 +70,7 @@ public static function generateEmulatorSupport(ServiceDetails $serviceDetails, S return AST::method(self::DEFAULT_EMULATOR_CONFIG_FN) ->withAccess(Access::PRIVATE) - ->withParams(AST::param(ResolvedType::array(), $optionsVar)) + ->withParams(AST::param($optionsType, $optionsVar)) ->withBody(AST::block( AST::assign($emulatorHostVar, AST::call(AST::GET_ENV)(self::$emulatorSupportClients[$fullClassName])), AST::if(AST::call(AST::EMPTY)($emulatorHostVar))->then(AST::return($optionsVar)), @@ -93,7 +98,7 @@ public static function generateEmulatorSupport(ServiceDetails $serviceDetails, S ->withPhpDoc(PhpDoc::block( PhpDoc::text('Configure the gapic configuration to use a service emulator.') )) - ->withReturnType($ctx->type(Type::array())); + ->withReturnType($optionsType); } public static function generateEmulatorOptions(ServiceDetails $serviceDetails, AST $options) diff --git a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php index 3ef17c8da..ade428398 100644 --- a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php +++ b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php @@ -1312,7 +1312,7 @@ public function updateDatabaseDdl(UpdateDatabaseDdlRequest $request, array $call } /** Configure the gapic configuration to use a service emulator. */ - private function setDefaultEmulatorConfig(array $options): array + private function setDefaultEmulatorConfig(array|ClientOptions $options): array|ClientOptions { $emulatorHost = getenv('SPANNER_EMULATOR_HOST'); if (empty($emulatorHost)) { diff --git a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php index d78bf399c..dfc6b08af 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php +++ b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php @@ -244,7 +244,7 @@ public function methodWithArgs(RequestWithArgs $request, array $callOptions = [] } /** Configure the gapic configuration to use a service emulator. */ - private function setDefaultEmulatorConfig(array $options): array + private function setDefaultEmulatorConfig(array|ClientOptions $options): array|ClientOptions { $emulatorHost = getenv('BASIC_EMULATOR_HOST'); if (empty($emulatorHost)) { From b2beb0c5c5611296cb89ea421c585019ee0da0e3 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 6 Nov 2026 18:56:26 +0000 Subject: [PATCH 5/8] feat: add OperationsClientInterface to OperationsClient --- src/Generation/GapicClientGenerator.php | 6 ++ src/Generation/ServiceDetails.php | 17 ++++ tests/Unit/Generation/ServiceDetailsTest.php | 82 ++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 tests/Unit/Generation/ServiceDetailsTest.php diff --git a/src/Generation/GapicClientGenerator.php b/src/Generation/GapicClientGenerator.php index 565338a0d..5fb81854f 100644 --- a/src/Generation/GapicClientGenerator.php +++ b/src/Generation/GapicClientGenerator.php @@ -25,6 +25,7 @@ use Google\ApiCore\IamProviderInterface; use Google\ApiCore\LongRunningOperationProviderInterface; use Google\ApiCore\OperationResponse; +use Google\ApiCore\OperationsClientInterface; use Google\ApiCore\Options\ClientOptions; use Google\ApiCore\PathTemplate; use Google\ApiCore\RequestParamsHeaderDescriptor; @@ -152,6 +153,11 @@ private function generateClass(): PhpClass ? $this->ctx->type(Type::fromName(IamProviderInterface::class)) : null ) + ->withInterface( + $this->serviceDetails->hasOperationsMethods() + ? $this->ctx->type(Type::fromName(OperationsClientInterface::class)) + : null + ) ->withTrait($this->ctx->type(Type::fromName(GapicClientTrait::class))) ->withTrait( $this->serviceDetails->hasResources ? $this->ctx->type(Type::fromName(ResourceHelperTrait::class)): null diff --git a/src/Generation/ServiceDetails.php b/src/Generation/ServiceDetails.php index 05ab210ca..32c11f786 100644 --- a/src/Generation/ServiceDetails.php +++ b/src/Generation/ServiceDetails.php @@ -351,4 +351,21 @@ public function hasIamMethods(): bool && $x->methodReturnType?->getFullname() === '\Google\Cloud\Iam\V1\TestIamPermissionsResponse' ); } + + public function hasOperationsMethods(): bool + { + return $this->methods->any( + fn ($x) => $x->methodName === 'getOperation' + && $x->requestType->getFullname() === '\Google\LongRunning\GetOperationRequest' + && $x->methodReturnType?->getFullname() === '\Google\LongRunning\Operation' + ) && $this->methods->any( + fn ($x) => $x->methodName === 'cancelOperation' + && $x->requestType->getFullname() === '\Google\LongRunning\CancelOperationRequest' + && $x->hasEmptyResponse + ) && $this->methods->any( + fn ($x) => $x->methodName === 'deleteOperation' + && $x->requestType->getFullname() === '\Google\LongRunning\DeleteOperationRequest' + && $x->hasEmptyResponse + ); + } } diff --git a/tests/Unit/Generation/ServiceDetailsTest.php b/tests/Unit/Generation/ServiceDetailsTest.php new file mode 100644 index 000000000..fb3698a00 --- /dev/null +++ b/tests/Unit/Generation/ServiceDetailsTest.php @@ -0,0 +1,82 @@ +mergeFromString($descBytes); + $files = Vector::new($descSet->getFile()); + ProtoAugmenter::augment($files); + $catalog = new ProtoCatalog($files); + + $operationsFile = $files->filter(fn ($x) => $x->getName() === 'google/longrunning/operations.proto')[0]; + $operationsService = $operationsFile->getService()[0]; + $operationsDetails = new ServiceDetails( + $catalog, + ProtoHelpers::getNamespace($operationsFile), + $operationsFile->getPackage(), + $operationsService, + $operationsFile, + new ServiceYamlConfig(null), + Transport::GRPC_REST, + ); + + $this->assertTrue($operationsDetails->hasOperationsMethods()); + + $ctx = new SourceFileContext($operationsDetails->gapicClientType->getNamespace(), 2026); + $file = GapicClientGenerator::generate($ctx, $operationsDetails); + $code = $file->toCode(); + $this->assertStringContainsString('use Google\ApiCore\OperationsClientInterface;', $code); + $this->assertStringContainsString( + 'final class OperationsClient implements ServiceInterface, OperationsClientInterface', + $code + ); + + $basicLroFile = $files->filter(fn ($x) => $x->getName() === 'tests/Unit/ProtoTests/BasicLro/basic-lro.proto')[0]; + $basicLroService = $basicLroFile->getService()[0]; + $basicLroDetails = new ServiceDetails( + $catalog, + ProtoHelpers::getNamespace($basicLroFile), + $basicLroFile->getPackage(), + $basicLroService, + $basicLroFile, + new ServiceYamlConfig(null), + Transport::GRPC_REST, + ); + + $this->assertFalse($basicLroDetails->hasOperationsMethods()); + } +} From ad5399c974a7042f4cfdcd54d8f109dd27c31ac8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 6 Nov 2026 19:51:33 +0000 Subject: [PATCH 6/8] test: use google/cloud dev-longrunning-v1 and add FakeMessage custom LRO getters --- composer.json | 2 +- tests/Unit/autoload.php | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c7215f13c..64e9e0a86 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.5", - "google/gax": "^2.0", + "google/cloud": "dev-longrunning-v1", "opis/closure": "^4.5" }, "scripts": { diff --git a/tests/Unit/autoload.php b/tests/Unit/autoload.php index c2cc451ca..713a02f61 100644 --- a/tests/Unit/autoload.php +++ b/tests/Unit/autoload.php @@ -42,6 +42,26 @@ public function __construct() { } + public function getName() + { + return $this->__call('getName', []); + } + + public function getStatus() + { + return $this->__call('getStatus', []); + } + + public function getHttpErrorStatusCode() + { + return $this->__call('getHttpErrorStatusCode', []); + } + + public function getHttpErrorMessage() + { + return $this->__call('getHttpErrorMessage', []); + } + public function __call(string $name, array $arguments) { // Implement all getters and setters; to emulate a proto message class. From be6b0dacff5e96a6dc714c57d95168de5b23c3cd Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 12 Nov 2026 18:52:40 +0000 Subject: [PATCH 7/8] fix: clone and use setters on ClientOptions in EmulatorSupportGenerator --- src/Generation/EmulatorSupportGenerator.php | 39 +++++++++++++++---- .../src/V1/Client/DatabaseAdminClient.php | 19 +++++++++ .../Basic/out/src/Client/BasicClient.php | 19 +++++++++ 3 files changed, 70 insertions(+), 7 deletions(-) diff --git a/src/Generation/EmulatorSupportGenerator.php b/src/Generation/EmulatorSupportGenerator.php index 59a4e3228..3a13db2fb 100644 --- a/src/Generation/EmulatorSupportGenerator.php +++ b/src/Generation/EmulatorSupportGenerator.php @@ -55,14 +55,19 @@ public static function generateEmulatorSupport(ServiceDetails $serviceDetails, S $schemeVar = AST::var('scheme'); $searchVar = AST::var('search'); $optionsVar = AST::var('options'); + $stubOptsVar = AST::var('stubOpts'); + $clientOptionsType = $ctx->type(Type::fromName(ClientOptions::class)); + $channelCredentialsType = $ctx->type(Type::fromName("Grpc\ChannelCredentials")); + $insecureCredentialsType = $ctx->type(Type::fromName("Google\ApiCore\InsecureCredentialsWrapper")); $optionsType = ResolvedType::union( Type::array(), Type::fromName(ClientOptions::class) ); - $transportConfigIndexVar = AST::index(AST::index(AST::index(AST::index( - $optionsVar, - 'transportConfig' - ), 'grpc'), 'stubOpts'), 'credentials'); + $grpcTransportOptionsExpr = AST::index(AST::index($optionsVar, 'transportConfig'), 'grpc'); + $transportConfigIndexVar = AST::index(AST::index( + $grpcTransportOptionsExpr, + 'stubOpts' + ), 'credentials'); if (!array_key_exists($fullClassName, self::$emulatorSupportClients)) { return null; @@ -79,19 +84,39 @@ public static function generateEmulatorSupport(ServiceDetails $serviceDetails, S AST::assign($searchVar, AST::binaryOp($schemeVar, '.', '://')), AST::assign($emulatorHostVar, AST::call(AST::STRING_REPLACE)($searchVar, '', $emulatorHostVar)), )), + AST::if(AST::binaryOp($optionsVar, 'instanceof', $clientOptionsType)) + ->then(AST::block( + AST::assign($optionsVar, AST::literal('clone ' . $optionsVar->toCode())), + AST::if(AST::not(AST::call(AST::ISSET)(AST::index($optionsVar, 'apiEndpoint')))) + ->then(AST::call($optionsVar, AST::method('setApiEndpoint'))($emulatorHostVar)), + AST::if(AST::call(AST::CLASS_EXISTS)(AST::access($channelCredentialsType, AST::CLS))) + ->then(AST::block( + AST::assign($stubOptsVar, AST::index($grpcTransportOptionsExpr, 'stubOpts')), + AST::nullCoalescingAssign( + AST::index($stubOptsVar, 'credentials'), + AST::staticCall($channelCredentialsType, AST::method('createInsecure'))() + ), + AST::call($grpcTransportOptionsExpr, AST::method('setStubOpts'))($stubOptsVar), + )), + AST::if(AST::not(AST::call(AST::ISSET)(AST::index($optionsVar, 'credentials')))) + ->then(AST::call($optionsVar, AST::method('setCredentials'))( + AST::new($insecureCredentialsType)() + )), + AST::return($optionsVar), + )), AST::nullCoalescingAssign(AST::index($optionsVar, 'apiEndpoint'), $emulatorHostVar), AST::if(AST::call(AST::CLASS_EXISTS)( - AST::access($ctx->type(Type::fromName("Grpc\ChannelCredentials")), AST::CLS) + AST::access($channelCredentialsType, AST::CLS) )) ->then(AST::block( AST::nullCoalescingAssign($transportConfigIndexVar, AST::staticCall( - $ctx->type((Type::fromName("Grpc\ChannelCredentials"))), + $channelCredentialsType, AST::method('createInsecure') )()), )), AST::nullCoalescingAssign( AST::index($optionsVar, 'credentials'), - AST::new($ctx->type((Type::fromName("Google\ApiCore\InsecureCredentialsWrapper"))))() + AST::new($insecureCredentialsType)() ), AST::return($optionsVar) ), AST::return(AST::array([]))) diff --git a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php index ade428398..b85e63cf1 100644 --- a/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php +++ b/tests/Integration/goldens/spanner/src/V1/Client/DatabaseAdminClient.php @@ -1324,6 +1324,25 @@ private function setDefaultEmulatorConfig(array|ClientOptions $options): array|C $emulatorHost = str_replace($search, '', $emulatorHost); } + if ($options instanceof ClientOptions) { + $options = clone $options; + if (!isset($options['apiEndpoint'])) { + $options->setApiEndpoint($emulatorHost); + } + + if (class_exists(ChannelCredentials::class)) { + $stubOpts = $options['transportConfig']['grpc']['stubOpts']; + $stubOpts['credentials'] ??= ChannelCredentials::createInsecure(); + $options['transportConfig']['grpc']->setStubOpts($stubOpts); + } + + if (!isset($options['credentials'])) { + $options->setCredentials(new InsecureCredentialsWrapper()); + } + + return $options; + } + $options['apiEndpoint'] ??= $emulatorHost; if (class_exists(ChannelCredentials::class)) { $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); diff --git a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php index dfc6b08af..b48cc620f 100644 --- a/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php +++ b/tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php @@ -256,6 +256,25 @@ private function setDefaultEmulatorConfig(array|ClientOptions $options): array|C $emulatorHost = str_replace($search, '', $emulatorHost); } + if ($options instanceof ClientOptions) { + $options = clone $options; + if (!isset($options['apiEndpoint'])) { + $options->setApiEndpoint($emulatorHost); + } + + if (class_exists(ChannelCredentials::class)) { + $stubOpts = $options['transportConfig']['grpc']['stubOpts']; + $stubOpts['credentials'] ??= ChannelCredentials::createInsecure(); + $options['transportConfig']['grpc']->setStubOpts($stubOpts); + } + + if (!isset($options['credentials'])) { + $options->setCredentials(new InsecureCredentialsWrapper()); + } + + return $options; + } + $options['apiEndpoint'] ??= $emulatorHost; if (class_exists(ChannelCredentials::class)) { $options['transportConfig']['grpc']['stubOpts']['credentials'] ??= ChannelCredentials::createInsecure(); From 86d552cc8d0cc2e6014d5dab88ff31fff2633e3d Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 13 Nov 2026 20:05:46 +0000 Subject: [PATCH 8/8] chore: revert unused FakeMessage methods --- tests/Unit/autoload.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/Unit/autoload.php b/tests/Unit/autoload.php index 713a02f61..c2cc451ca 100644 --- a/tests/Unit/autoload.php +++ b/tests/Unit/autoload.php @@ -42,26 +42,6 @@ public function __construct() { } - public function getName() - { - return $this->__call('getName', []); - } - - public function getStatus() - { - return $this->__call('getStatus', []); - } - - public function getHttpErrorStatusCode() - { - return $this->__call('getHttpErrorStatusCode', []); - } - - public function getHttpErrorMessage() - { - return $this->__call('getHttpErrorMessage', []); - } - public function __call(string $name, array $arguments) { // Implement all getters and setters; to emulate a proto message class.