Skip to content

Commit bec0531

Browse files
chore: [Many APIs] update styles
1 parent 7a827dc commit bec0531

19 files changed

Lines changed: 407 additions & 240 deletions

File tree

NetworkSecurity/src/V1/Client/AddressGroupServiceClient.php

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ final class AddressGroupServiceClient
111111
private const CODEGEN_NAME = 'gapic';
112112

113113
/** The default scopes required by the service. */
114-
public static $serviceScopes = [
115-
'https://www.googleapis.com/auth/cloud-platform',
116-
];
114+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
117115

118116
private $operationsClient;
119117

@@ -247,8 +245,11 @@ public static function organizationLocationName(string $organization, string $lo
247245
*
248246
* @return string The formatted organization_location_address_group resource.
249247
*/
250-
public static function organizationLocationAddressGroupName(string $organization, string $location, string $addressGroup): string
251-
{
248+
public static function organizationLocationAddressGroupName(
249+
string $organization,
250+
string $location,
251+
string $addressGroup
252+
): string {
252253
return self::getPathTemplate('organizationLocationAddressGroup')->render([
253254
'organization' => $organization,
254255
'location' => $location,
@@ -266,8 +267,11 @@ public static function organizationLocationAddressGroupName(string $organization
266267
*
267268
* @return string The formatted project_location_address_group resource.
268269
*/
269-
public static function projectLocationAddressGroupName(string $project, string $location, string $addressGroup): string
270-
{
270+
public static function projectLocationAddressGroupName(
271+
string $project,
272+
string $location,
273+
string $addressGroup
274+
): string {
271275
return self::getPathTemplate('projectLocationAddressGroup')->render([
272276
'project' => $project,
273277
'location' => $location,
@@ -411,8 +415,10 @@ public function __call($method, $args)
411415
*
412416
* @throws ApiException Thrown if the API call fails.
413417
*/
414-
public function addAddressGroupItems(AddAddressGroupItemsRequest $request, array $callOptions = []): OperationResponse
415-
{
418+
public function addAddressGroupItems(
419+
AddAddressGroupItemsRequest $request,
420+
array $callOptions = []
421+
): OperationResponse {
416422
return $this->startApiCall('AddAddressGroupItems', $request, $callOptions)->wait();
417423
}
418424

@@ -438,8 +444,10 @@ public function addAddressGroupItems(AddAddressGroupItemsRequest $request, array
438444
*
439445
* @throws ApiException Thrown if the API call fails.
440446
*/
441-
public function cloneAddressGroupItems(CloneAddressGroupItemsRequest $request, array $callOptions = []): OperationResponse
442-
{
447+
public function cloneAddressGroupItems(
448+
CloneAddressGroupItemsRequest $request,
449+
array $callOptions = []
450+
): OperationResponse {
443451
return $this->startApiCall('CloneAddressGroupItems', $request, $callOptions)->wait();
444452
}
445453

@@ -545,8 +553,10 @@ public function getAddressGroup(GetAddressGroupRequest $request, array $callOpti
545553
*
546554
* @throws ApiException Thrown if the API call fails.
547555
*/
548-
public function listAddressGroupReferences(ListAddressGroupReferencesRequest $request, array $callOptions = []): PagedListResponse
549-
{
556+
public function listAddressGroupReferences(
557+
ListAddressGroupReferencesRequest $request,
558+
array $callOptions = []
559+
): PagedListResponse {
550560
return $this->startApiCall('ListAddressGroupReferences', $request, $callOptions);
551561
}
552562

@@ -599,8 +609,10 @@ public function listAddressGroups(ListAddressGroupsRequest $request, array $call
599609
*
600610
* @throws ApiException Thrown if the API call fails.
601611
*/
602-
public function removeAddressGroupItems(RemoveAddressGroupItemsRequest $request, array $callOptions = []): OperationResponse
603-
{
612+
public function removeAddressGroupItems(
613+
RemoveAddressGroupItemsRequest $request,
614+
array $callOptions = []
615+
): OperationResponse {
604616
return $this->startApiCall('RemoveAddressGroupItems', $request, $callOptions)->wait();
605617
}
606618

@@ -768,8 +780,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
768780
*
769781
* @throws ApiException Thrown if the API call fails.
770782
*/
771-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
772-
{
783+
public function testIamPermissions(
784+
TestIamPermissionsRequest $request,
785+
array $callOptions = []
786+
): TestIamPermissionsResponse {
773787
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
774788
}
775789
}

NetworkSecurity/src/V1/Client/NetworkSecurityClient.php

Lines changed: 62 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ final class NetworkSecurityClient
125125
private const CODEGEN_NAME = 'gapic';
126126

127127
/** The default scopes required by the service. */
128-
public static $serviceScopes = [
129-
'https://www.googleapis.com/auth/cloud-platform',
130-
];
128+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
131129

132130
private $operationsClient;
133131

@@ -208,8 +206,11 @@ private function createOperationsClient(array $options)
208206
*
209207
* @return string The formatted authorization_policy resource.
210208
*/
211-
public static function authorizationPolicyName(string $project, string $location, string $authorizationPolicy): string
212-
{
209+
public static function authorizationPolicyName(
210+
string $project,
211+
string $location,
212+
string $authorizationPolicy
213+
): string {
213214
return self::getPathTemplate('authorizationPolicy')->render([
214215
'project' => $project,
215216
'location' => $location,
@@ -407,8 +408,10 @@ public function __call($method, $args)
407408
*
408409
* @throws ApiException Thrown if the API call fails.
409410
*/
410-
public function createAuthorizationPolicy(CreateAuthorizationPolicyRequest $request, array $callOptions = []): OperationResponse
411-
{
411+
public function createAuthorizationPolicy(
412+
CreateAuthorizationPolicyRequest $request,
413+
array $callOptions = []
414+
): OperationResponse {
412415
return $this->startApiCall('CreateAuthorizationPolicy', $request, $callOptions)->wait();
413416
}
414417

@@ -434,8 +437,10 @@ public function createAuthorizationPolicy(CreateAuthorizationPolicyRequest $requ
434437
*
435438
* @throws ApiException Thrown if the API call fails.
436439
*/
437-
public function createClientTlsPolicy(CreateClientTlsPolicyRequest $request, array $callOptions = []): OperationResponse
438-
{
440+
public function createClientTlsPolicy(
441+
CreateClientTlsPolicyRequest $request,
442+
array $callOptions = []
443+
): OperationResponse {
439444
return $this->startApiCall('CreateClientTlsPolicy', $request, $callOptions)->wait();
440445
}
441446

@@ -461,8 +466,10 @@ public function createClientTlsPolicy(CreateClientTlsPolicyRequest $request, arr
461466
*
462467
* @throws ApiException Thrown if the API call fails.
463468
*/
464-
public function createServerTlsPolicy(CreateServerTlsPolicyRequest $request, array $callOptions = []): OperationResponse
465-
{
469+
public function createServerTlsPolicy(
470+
CreateServerTlsPolicyRequest $request,
471+
array $callOptions = []
472+
): OperationResponse {
466473
return $this->startApiCall('CreateServerTlsPolicy', $request, $callOptions)->wait();
467474
}
468475

@@ -488,8 +495,10 @@ public function createServerTlsPolicy(CreateServerTlsPolicyRequest $request, arr
488495
*
489496
* @throws ApiException Thrown if the API call fails.
490497
*/
491-
public function deleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest $request, array $callOptions = []): OperationResponse
492-
{
498+
public function deleteAuthorizationPolicy(
499+
DeleteAuthorizationPolicyRequest $request,
500+
array $callOptions = []
501+
): OperationResponse {
493502
return $this->startApiCall('DeleteAuthorizationPolicy', $request, $callOptions)->wait();
494503
}
495504

@@ -515,8 +524,10 @@ public function deleteAuthorizationPolicy(DeleteAuthorizationPolicyRequest $requ
515524
*
516525
* @throws ApiException Thrown if the API call fails.
517526
*/
518-
public function deleteClientTlsPolicy(DeleteClientTlsPolicyRequest $request, array $callOptions = []): OperationResponse
519-
{
527+
public function deleteClientTlsPolicy(
528+
DeleteClientTlsPolicyRequest $request,
529+
array $callOptions = []
530+
): OperationResponse {
520531
return $this->startApiCall('DeleteClientTlsPolicy', $request, $callOptions)->wait();
521532
}
522533

@@ -542,8 +553,10 @@ public function deleteClientTlsPolicy(DeleteClientTlsPolicyRequest $request, arr
542553
*
543554
* @throws ApiException Thrown if the API call fails.
544555
*/
545-
public function deleteServerTlsPolicy(DeleteServerTlsPolicyRequest $request, array $callOptions = []): OperationResponse
546-
{
556+
public function deleteServerTlsPolicy(
557+
DeleteServerTlsPolicyRequest $request,
558+
array $callOptions = []
559+
): OperationResponse {
547560
return $this->startApiCall('DeleteServerTlsPolicy', $request, $callOptions)->wait();
548561
}
549562

@@ -569,8 +582,10 @@ public function deleteServerTlsPolicy(DeleteServerTlsPolicyRequest $request, arr
569582
*
570583
* @throws ApiException Thrown if the API call fails.
571584
*/
572-
public function getAuthorizationPolicy(GetAuthorizationPolicyRequest $request, array $callOptions = []): AuthorizationPolicy
573-
{
585+
public function getAuthorizationPolicy(
586+
GetAuthorizationPolicyRequest $request,
587+
array $callOptions = []
588+
): AuthorizationPolicy {
574589
return $this->startApiCall('GetAuthorizationPolicy', $request, $callOptions)->wait();
575590
}
576591

@@ -648,8 +663,10 @@ public function getServerTlsPolicy(GetServerTlsPolicyRequest $request, array $ca
648663
*
649664
* @throws ApiException Thrown if the API call fails.
650665
*/
651-
public function listAuthorizationPolicies(ListAuthorizationPoliciesRequest $request, array $callOptions = []): PagedListResponse
652-
{
666+
public function listAuthorizationPolicies(
667+
ListAuthorizationPoliciesRequest $request,
668+
array $callOptions = []
669+
): PagedListResponse {
653670
return $this->startApiCall('ListAuthorizationPolicies', $request, $callOptions);
654671
}
655672

@@ -675,8 +692,10 @@ public function listAuthorizationPolicies(ListAuthorizationPoliciesRequest $requ
675692
*
676693
* @throws ApiException Thrown if the API call fails.
677694
*/
678-
public function listClientTlsPolicies(ListClientTlsPoliciesRequest $request, array $callOptions = []): PagedListResponse
679-
{
695+
public function listClientTlsPolicies(
696+
ListClientTlsPoliciesRequest $request,
697+
array $callOptions = []
698+
): PagedListResponse {
680699
return $this->startApiCall('ListClientTlsPolicies', $request, $callOptions);
681700
}
682701

@@ -702,8 +721,10 @@ public function listClientTlsPolicies(ListClientTlsPoliciesRequest $request, arr
702721
*
703722
* @throws ApiException Thrown if the API call fails.
704723
*/
705-
public function listServerTlsPolicies(ListServerTlsPoliciesRequest $request, array $callOptions = []): PagedListResponse
706-
{
724+
public function listServerTlsPolicies(
725+
ListServerTlsPoliciesRequest $request,
726+
array $callOptions = []
727+
): PagedListResponse {
707728
return $this->startApiCall('ListServerTlsPolicies', $request, $callOptions);
708729
}
709730

@@ -729,8 +750,10 @@ public function listServerTlsPolicies(ListServerTlsPoliciesRequest $request, arr
729750
*
730751
* @throws ApiException Thrown if the API call fails.
731752
*/
732-
public function updateAuthorizationPolicy(UpdateAuthorizationPolicyRequest $request, array $callOptions = []): OperationResponse
733-
{
753+
public function updateAuthorizationPolicy(
754+
UpdateAuthorizationPolicyRequest $request,
755+
array $callOptions = []
756+
): OperationResponse {
734757
return $this->startApiCall('UpdateAuthorizationPolicy', $request, $callOptions)->wait();
735758
}
736759

@@ -756,8 +779,10 @@ public function updateAuthorizationPolicy(UpdateAuthorizationPolicyRequest $requ
756779
*
757780
* @throws ApiException Thrown if the API call fails.
758781
*/
759-
public function updateClientTlsPolicy(UpdateClientTlsPolicyRequest $request, array $callOptions = []): OperationResponse
760-
{
782+
public function updateClientTlsPolicy(
783+
UpdateClientTlsPolicyRequest $request,
784+
array $callOptions = []
785+
): OperationResponse {
761786
return $this->startApiCall('UpdateClientTlsPolicy', $request, $callOptions)->wait();
762787
}
763788

@@ -783,8 +808,10 @@ public function updateClientTlsPolicy(UpdateClientTlsPolicyRequest $request, arr
783808
*
784809
* @throws ApiException Thrown if the API call fails.
785810
*/
786-
public function updateServerTlsPolicy(UpdateServerTlsPolicyRequest $request, array $callOptions = []): OperationResponse
787-
{
811+
public function updateServerTlsPolicy(
812+
UpdateServerTlsPolicyRequest $request,
813+
array $callOptions = []
814+
): OperationResponse {
788815
return $this->startApiCall('UpdateServerTlsPolicy', $request, $callOptions)->wait();
789816
}
790817

@@ -924,8 +951,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
924951
*
925952
* @throws ApiException Thrown if the API call fails.
926953
*/
927-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
928-
{
954+
public function testIamPermissions(
955+
TestIamPermissionsRequest $request,
956+
array $callOptions = []
957+
): TestIamPermissionsResponse {
929958
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
930959
}
931960
}

0 commit comments

Comments
 (0)