Skip to content

Commit 8ad1b52

Browse files
chore: [Many APIs] update styles (#8839)
1 parent 1f9a40c commit 8ad1b52

30 files changed

Lines changed: 214 additions & 173 deletions

File tree

SecurityPublicCA/src/V1/Client/PublicCertificateAuthorityServiceClient.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,24 @@ final class PublicCertificateAuthorityServiceClient
7878
private const CODEGEN_NAME = 'gapic';
7979

8080
/** The default scopes required by the service. */
81-
public static $serviceScopes = [
82-
'https://www.googleapis.com/auth/cloud-platform',
83-
];
81+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8482

8583
private static function getClientDefaults()
8684
{
8785
return [
8886
'serviceName' => self::SERVICE_NAME,
8987
'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
9088
'clientConfig' => __DIR__ . '/../resources/public_certificate_authority_service_client_config.json',
91-
'descriptorsConfigPath' => __DIR__ . '/../resources/public_certificate_authority_service_descriptor_config.php',
89+
'descriptorsConfigPath' =>
90+
__DIR__ . '/../resources/public_certificate_authority_service_descriptor_config.php',
9291
'gcpApiConfigPath' => __DIR__ . '/../resources/public_certificate_authority_service_grpc_config.json',
9392
'credentialsConfig' => [
9493
'defaultScopes' => self::$serviceScopes,
9594
],
9695
'transportConfig' => [
9796
'rest' => [
98-
'restClientConfigPath' => __DIR__ . '/../resources/public_certificate_authority_service_rest_client_config.php',
97+
'restClientConfigPath' =>
98+
__DIR__ . '/../resources/public_certificate_authority_service_rest_client_config.php',
9999
],
100100
],
101101
];
@@ -273,8 +273,10 @@ public function __call($method, $args)
273273
*
274274
* @throws ApiException Thrown if the API call fails.
275275
*/
276-
public function createExternalAccountKey(CreateExternalAccountKeyRequest $request, array $callOptions = []): ExternalAccountKey
277-
{
276+
public function createExternalAccountKey(
277+
CreateExternalAccountKeyRequest $request,
278+
array $callOptions = []
279+
): ExternalAccountKey {
278280
return $this->startApiCall('CreateExternalAccountKey', $request, $callOptions)->wait();
279281
}
280282
}

ServiceDirectory/src/V1/Client/LookupServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ final class LookupServiceClient
8282
private const CODEGEN_NAME = 'gapic';
8383

8484
/** The default scopes required by the service. */
85-
public static $serviceScopes = [
86-
'https://www.googleapis.com/auth/cloud-platform',
87-
];
85+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8886

8987
private static function getClientDefaults()
9088
{

ServiceDirectory/src/V1/Client/RegistrationServiceClient.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ final class RegistrationServiceClient
134134
private const CODEGEN_NAME = 'gapic';
135135

136136
/** The default scopes required by the service. */
137-
public static $serviceScopes = [
138-
'https://www.googleapis.com/auth/cloud-platform',
139-
];
137+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
140138

141139
private static function getClientDefaults()
142140
{
@@ -169,8 +167,13 @@ private static function getClientDefaults()
169167
*
170168
* @return string The formatted endpoint resource.
171169
*/
172-
public static function endpointName(string $project, string $location, string $namespace, string $service, string $endpoint): string
173-
{
170+
public static function endpointName(
171+
string $project,
172+
string $location,
173+
string $namespace,
174+
string $service,
175+
string $endpoint
176+
): string {
174177
return self::getPathTemplate('endpoint')->render([
175178
'project' => $project,
176179
'location' => $location,
@@ -749,8 +752,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
749752
*
750753
* @throws ApiException Thrown if the API call fails.
751754
*/
752-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
753-
{
755+
public function testIamPermissions(
756+
TestIamPermissionsRequest $request,
757+
array $callOptions = []
758+
): TestIamPermissionsResponse {
754759
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
755760
}
756761

ServiceHealth/src/V1/Client/ServiceHealthClient.php

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ final class ServiceHealthClient
9494
private const CODEGEN_NAME = 'gapic';
9595

9696
/** The default scopes required by the service. */
97-
public static $serviceScopes = [
98-
'https://www.googleapis.com/auth/cloud-platform',
99-
];
97+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
10098

10199
private static function getClientDefaults()
102100
{
@@ -182,8 +180,11 @@ public static function organizationEventName(string $organization, string $locat
182180
*
183181
* @return string The formatted organization_impact resource.
184182
*/
185-
public static function organizationImpactName(string $organization, string $location, string $organizationImpact): string
186-
{
183+
public static function organizationImpactName(
184+
string $organization,
185+
string $location,
186+
string $organizationImpact
187+
): string {
187188
return self::getPathTemplate('organizationImpact')->render([
188189
'organization' => $organization,
189190
'location' => $location,
@@ -369,8 +370,10 @@ public function getEvent(GetEventRequest $request, array $callOptions = []): Eve
369370
*
370371
* @throws ApiException Thrown if the API call fails.
371372
*/
372-
public function getOrganizationEvent(GetOrganizationEventRequest $request, array $callOptions = []): OrganizationEvent
373-
{
373+
public function getOrganizationEvent(
374+
GetOrganizationEventRequest $request,
375+
array $callOptions = []
376+
): OrganizationEvent {
374377
return $this->startApiCall('GetOrganizationEvent', $request, $callOptions)->wait();
375378
}
376379

@@ -396,8 +399,10 @@ public function getOrganizationEvent(GetOrganizationEventRequest $request, array
396399
*
397400
* @throws ApiException Thrown if the API call fails.
398401
*/
399-
public function getOrganizationImpact(GetOrganizationImpactRequest $request, array $callOptions = []): OrganizationImpact
400-
{
402+
public function getOrganizationImpact(
403+
GetOrganizationImpactRequest $request,
404+
array $callOptions = []
405+
): OrganizationImpact {
401406
return $this->startApiCall('GetOrganizationImpact', $request, $callOptions)->wait();
402407
}
403408

@@ -448,8 +453,10 @@ public function listEvents(ListEventsRequest $request, array $callOptions = []):
448453
*
449454
* @throws ApiException Thrown if the API call fails.
450455
*/
451-
public function listOrganizationEvents(ListOrganizationEventsRequest $request, array $callOptions = []): PagedListResponse
452-
{
456+
public function listOrganizationEvents(
457+
ListOrganizationEventsRequest $request,
458+
array $callOptions = []
459+
): PagedListResponse {
453460
return $this->startApiCall('ListOrganizationEvents', $request, $callOptions);
454461
}
455462

@@ -476,8 +483,10 @@ public function listOrganizationEvents(ListOrganizationEventsRequest $request, a
476483
*
477484
* @throws ApiException Thrown if the API call fails.
478485
*/
479-
public function listOrganizationImpacts(ListOrganizationImpactsRequest $request, array $callOptions = []): PagedListResponse
480-
{
486+
public function listOrganizationImpacts(
487+
ListOrganizationImpactsRequest $request,
488+
array $callOptions = []
489+
): PagedListResponse {
481490
return $this->startApiCall('ListOrganizationImpacts', $request, $callOptions);
482491
}
483492

ServiceManagement/src/V1/Client/ServiceManagerClient.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,10 @@ public function createServiceConfig(CreateServiceConfigRequest $request, array $
376376
*
377377
* @throws ApiException Thrown if the API call fails.
378378
*/
379-
public function createServiceRollout(CreateServiceRolloutRequest $request, array $callOptions = []): OperationResponse
380-
{
379+
public function createServiceRollout(
380+
CreateServiceRolloutRequest $request,
381+
array $callOptions = []
382+
): OperationResponse {
381383
return $this->startApiCall('CreateServiceRollout', $request, $callOptions)->wait();
382384
}
383385

@@ -445,8 +447,10 @@ public function deleteService(DeleteServiceRequest $request, array $callOptions
445447
*
446448
* @throws ApiException Thrown if the API call fails.
447449
*/
448-
public function generateConfigReport(GenerateConfigReportRequest $request, array $callOptions = []): GenerateConfigReportResponse
449-
{
450+
public function generateConfigReport(
451+
GenerateConfigReportRequest $request,
452+
array $callOptions = []
453+
): GenerateConfigReportResponse {
450454
return $this->startApiCall('GenerateConfigReport', $request, $callOptions)->wait();
451455
}
452456

@@ -768,8 +772,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
768772
*
769773
* @throws ApiException Thrown if the API call fails.
770774
*/
771-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
772-
{
775+
public function testIamPermissions(
776+
TestIamPermissionsRequest $request,
777+
array $callOptions = []
778+
): TestIamPermissionsResponse {
773779
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
774780
}
775781
}

ServiceUsage/src/V1/Client/ServiceUsageClient.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,10 @@ public function batchEnableServices(BatchEnableServicesRequest $request, array $
302302
*
303303
* @throws ApiException Thrown if the API call fails.
304304
*/
305-
public function batchGetServices(BatchGetServicesRequest $request, array $callOptions = []): BatchGetServicesResponse
306-
{
305+
public function batchGetServices(
306+
BatchGetServicesRequest $request,
307+
array $callOptions = []
308+
): BatchGetServicesResponse {
307309
return $this->startApiCall('BatchGetServices', $request, $callOptions)->wait();
308310
}
309311

Shell/src/V1/Client/CloudShellServiceClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ final class CloudShellServiceClient
9898
private const CODEGEN_NAME = 'gapic';
9999

100100
/** The default scopes required by the service. */
101-
public static $serviceScopes = [
102-
'https://www.googleapis.com/auth/cloud-platform',
103-
];
101+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
104102

105103
private $operationsClient;
106104

@@ -351,8 +349,10 @@ public function addPublicKey(AddPublicKeyRequest $request, array $callOptions =
351349
*
352350
* @throws ApiException Thrown if the API call fails.
353351
*/
354-
public function authorizeEnvironment(AuthorizeEnvironmentRequest $request, array $callOptions = []): OperationResponse
355-
{
352+
public function authorizeEnvironment(
353+
AuthorizeEnvironmentRequest $request,
354+
array $callOptions = []
355+
): OperationResponse {
356356
return $this->startApiCall('AuthorizeEnvironment', $request, $callOptions)->wait();
357357
}
358358

ShoppingCss/src/V1/Client/AccountLabelsServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ final class AccountLabelsServiceClient
8383
private const CODEGEN_NAME = 'gapic';
8484

8585
/** The default scopes required by the service. */
86-
public static $serviceScopes = [
87-
'https://www.googleapis.com/auth/content',
88-
];
86+
public static $serviceScopes = ['https://www.googleapis.com/auth/content'];
8987

9088
private static function getClientDefaults()
9189
{

ShoppingCss/src/V1/Client/AccountsServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ final class AccountsServiceClient
8181
private const CODEGEN_NAME = 'gapic';
8282

8383
/** The default scopes required by the service. */
84-
public static $serviceScopes = [
85-
'https://www.googleapis.com/auth/content',
86-
];
84+
public static $serviceScopes = ['https://www.googleapis.com/auth/content'];
8785

8886
private static function getClientDefaults()
8987
{

ShoppingCss/src/V1/Client/CssProductInputsServiceClient.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ final class CssProductInputsServiceClient
8181
private const CODEGEN_NAME = 'gapic';
8282

8383
/** The default scopes required by the service. */
84-
public static $serviceScopes = [
85-
'https://www.googleapis.com/auth/content',
86-
];
84+
public static $serviceScopes = ['https://www.googleapis.com/auth/content'];
8785

8886
private static function getClientDefaults()
8987
{
@@ -98,7 +96,8 @@ private static function getClientDefaults()
9896
],
9997
'transportConfig' => [
10098
'rest' => [
101-
'restClientConfigPath' => __DIR__ . '/../resources/css_product_inputs_service_rest_client_config.php',
99+
'restClientConfigPath' =>
100+
__DIR__ . '/../resources/css_product_inputs_service_rest_client_config.php',
102101
],
103102
],
104103
];
@@ -301,8 +300,10 @@ public function deleteCssProductInput(DeleteCssProductInputRequest $request, arr
301300
*
302301
* @throws ApiException Thrown if the API call fails.
303302
*/
304-
public function insertCssProductInput(InsertCssProductInputRequest $request, array $callOptions = []): CssProductInput
305-
{
303+
public function insertCssProductInput(
304+
InsertCssProductInputRequest $request,
305+
array $callOptions = []
306+
): CssProductInput {
306307
return $this->startApiCall('InsertCssProductInput', $request, $callOptions)->wait();
307308
}
308309

@@ -331,8 +332,10 @@ public function insertCssProductInput(InsertCssProductInputRequest $request, arr
331332
*
332333
* @throws ApiException Thrown if the API call fails.
333334
*/
334-
public function updateCssProductInput(UpdateCssProductInputRequest $request, array $callOptions = []): CssProductInput
335-
{
335+
public function updateCssProductInput(
336+
UpdateCssProductInputRequest $request,
337+
array $callOptions = []
338+
): CssProductInput {
336339
return $this->startApiCall('UpdateCssProductInput', $request, $callOptions)->wait();
337340
}
338341
}

0 commit comments

Comments
 (0)