Skip to content

Commit 54e5845

Browse files
chore: [Many APIs] update styles
1 parent 36b874d commit 54e5845

31 files changed

Lines changed: 966 additions & 526 deletions

AccessApproval/src/V1/Client/AccessApprovalClient.php

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ final class AccessApprovalClient
127127
private const CODEGEN_NAME = 'gapic';
128128

129129
/** The default scopes required by the service. */
130-
public static $serviceScopes = [
131-
'https://www.googleapis.com/auth/cloud-platform',
132-
];
130+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
133131

134132
private static function getClientDefaults()
135133
{
@@ -467,8 +465,10 @@ public function __call($method, $args)
467465
*
468466
* @throws ApiException Thrown if the API call fails.
469467
*/
470-
public function approveApprovalRequest(ApproveApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest
471-
{
468+
public function approveApprovalRequest(
469+
ApproveApprovalRequestMessage $request,
470+
array $callOptions = []
471+
): ApprovalRequest {
472472
return $this->startApiCall('ApproveApprovalRequest', $request, $callOptions)->wait();
473473
}
474474

@@ -497,8 +497,10 @@ public function approveApprovalRequest(ApproveApprovalRequestMessage $request, a
497497
*
498498
* @throws ApiException Thrown if the API call fails.
499499
*/
500-
public function deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage $request, array $callOptions = []): void
501-
{
500+
public function deleteAccessApprovalSettings(
501+
DeleteAccessApprovalSettingsMessage $request,
502+
array $callOptions = []
503+
): void {
502504
$this->startApiCall('DeleteAccessApprovalSettings', $request, $callOptions)->wait();
503505
}
504506

@@ -533,8 +535,10 @@ public function deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage
533535
*
534536
* @throws ApiException Thrown if the API call fails.
535537
*/
536-
public function dismissApprovalRequest(DismissApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest
537-
{
538+
public function dismissApprovalRequest(
539+
DismissApprovalRequestMessage $request,
540+
array $callOptions = []
541+
): ApprovalRequest {
538542
return $this->startApiCall('DismissApprovalRequest', $request, $callOptions)->wait();
539543
}
540544

@@ -561,8 +565,10 @@ public function dismissApprovalRequest(DismissApprovalRequestMessage $request, a
561565
*
562566
* @throws ApiException Thrown if the API call fails.
563567
*/
564-
public function getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage $request, array $callOptions = []): AccessApprovalServiceAccount
565-
{
568+
public function getAccessApprovalServiceAccount(
569+
GetAccessApprovalServiceAccountMessage $request,
570+
array $callOptions = []
571+
): AccessApprovalServiceAccount {
566572
return $this->startApiCall('GetAccessApprovalServiceAccount', $request, $callOptions)->wait();
567573
}
568574

@@ -588,8 +594,10 @@ public function getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountM
588594
*
589595
* @throws ApiException Thrown if the API call fails.
590596
*/
591-
public function getAccessApprovalSettings(GetAccessApprovalSettingsMessage $request, array $callOptions = []): AccessApprovalSettings
592-
{
597+
public function getAccessApprovalSettings(
598+
GetAccessApprovalSettingsMessage $request,
599+
array $callOptions = []
600+
): AccessApprovalSettings {
593601
return $this->startApiCall('GetAccessApprovalSettings', $request, $callOptions)->wait();
594602
}
595603

@@ -648,8 +656,10 @@ public function getApprovalRequest(GetApprovalRequestMessage $request, array $ca
648656
*
649657
* @throws ApiException Thrown if the API call fails.
650658
*/
651-
public function invalidateApprovalRequest(InvalidateApprovalRequestMessage $request, array $callOptions = []): ApprovalRequest
652-
{
659+
public function invalidateApprovalRequest(
660+
InvalidateApprovalRequestMessage $request,
661+
array $callOptions = []
662+
): ApprovalRequest {
653663
return $this->startApiCall('InvalidateApprovalRequest', $request, $callOptions)->wait();
654664
}
655665

@@ -676,8 +686,10 @@ public function invalidateApprovalRequest(InvalidateApprovalRequestMessage $requ
676686
*
677687
* @throws ApiException Thrown if the API call fails.
678688
*/
679-
public function listApprovalRequests(ListApprovalRequestsMessage $request, array $callOptions = []): PagedListResponse
680-
{
689+
public function listApprovalRequests(
690+
ListApprovalRequestsMessage $request,
691+
array $callOptions = []
692+
): PagedListResponse {
681693
return $this->startApiCall('ListApprovalRequests', $request, $callOptions);
682694
}
683695

@@ -704,8 +716,10 @@ public function listApprovalRequests(ListApprovalRequestsMessage $request, array
704716
*
705717
* @throws ApiException Thrown if the API call fails.
706718
*/
707-
public function updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage $request, array $callOptions = []): AccessApprovalSettings
708-
{
719+
public function updateAccessApprovalSettings(
720+
UpdateAccessApprovalSettingsMessage $request,
721+
array $callOptions = []
722+
): AccessApprovalSettings {
709723
return $this->startApiCall('UpdateAccessApprovalSettings', $request, $callOptions)->wait();
710724
}
711725
}

AccessContextManager/src/V1/Client/AccessContextManagerClient.php

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ final class AccessContextManagerClient
147147
private const CODEGEN_NAME = 'gapic';
148148

149149
/** The default scopes required by the service. */
150-
public static $serviceScopes = [
151-
'https://www.googleapis.com/auth/cloud-platform',
152-
];
150+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
153151

154152
private $operationsClient;
155153

@@ -451,8 +449,10 @@ public function __call($method, $args)
451449
*
452450
* @throws ApiException Thrown if the API call fails.
453451
*/
454-
public function commitServicePerimeters(CommitServicePerimetersRequest $request, array $callOptions = []): OperationResponse
455-
{
452+
public function commitServicePerimeters(
453+
CommitServicePerimetersRequest $request,
454+
array $callOptions = []
455+
): OperationResponse {
456456
return $this->startApiCall('CommitServicePerimeters', $request, $callOptions)->wait();
457457
}
458458

@@ -551,8 +551,10 @@ public function createAccessPolicy(AccessPolicy $request, array $callOptions = [
551551
*
552552
* @throws ApiException Thrown if the API call fails.
553553
*/
554-
public function createGcpUserAccessBinding(CreateGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse
555-
{
554+
public function createGcpUserAccessBinding(
555+
CreateGcpUserAccessBindingRequest $request,
556+
array $callOptions = []
557+
): OperationResponse {
556558
return $this->startApiCall('CreateGcpUserAccessBinding', $request, $callOptions)->wait();
557559
}
558560

@@ -585,8 +587,10 @@ public function createGcpUserAccessBinding(CreateGcpUserAccessBindingRequest $re
585587
*
586588
* @throws ApiException Thrown if the API call fails.
587589
*/
588-
public function createServicePerimeter(CreateServicePerimeterRequest $request, array $callOptions = []): OperationResponse
589-
{
590+
public function createServicePerimeter(
591+
CreateServicePerimeterRequest $request,
592+
array $callOptions = []
593+
): OperationResponse {
590594
return $this->startApiCall('CreateServicePerimeter', $request, $callOptions)->wait();
591595
}
592596

@@ -679,8 +683,10 @@ public function deleteAccessPolicy(DeleteAccessPolicyRequest $request, array $ca
679683
*
680684
* @throws ApiException Thrown if the API call fails.
681685
*/
682-
public function deleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse
683-
{
686+
public function deleteGcpUserAccessBinding(
687+
DeleteGcpUserAccessBindingRequest $request,
688+
array $callOptions = []
689+
): OperationResponse {
684690
return $this->startApiCall('DeleteGcpUserAccessBinding', $request, $callOptions)->wait();
685691
}
686692

@@ -711,8 +717,10 @@ public function deleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest $re
711717
*
712718
* @throws ApiException Thrown if the API call fails.
713719
*/
714-
public function deleteServicePerimeter(DeleteServicePerimeterRequest $request, array $callOptions = []): OperationResponse
715-
{
720+
public function deleteServicePerimeter(
721+
DeleteServicePerimeterRequest $request,
722+
array $callOptions = []
723+
): OperationResponse {
716724
return $this->startApiCall('DeleteServicePerimeter', $request, $callOptions)->wait();
717725
}
718726

@@ -795,8 +803,10 @@ public function getAccessPolicy(GetAccessPolicyRequest $request, array $callOpti
795803
*
796804
* @throws ApiException Thrown if the API call fails.
797805
*/
798-
public function getGcpUserAccessBinding(GetGcpUserAccessBindingRequest $request, array $callOptions = []): GcpUserAccessBinding
799-
{
806+
public function getGcpUserAccessBinding(
807+
GetGcpUserAccessBindingRequest $request,
808+
array $callOptions = []
809+
): GcpUserAccessBinding {
800810
return $this->startApiCall('GetGcpUserAccessBinding', $request, $callOptions)->wait();
801811
}
802812

@@ -938,8 +948,10 @@ public function listAccessPolicies(ListAccessPoliciesRequest $request, array $ca
938948
*
939949
* @throws ApiException Thrown if the API call fails.
940950
*/
941-
public function listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest $request, array $callOptions = []): PagedListResponse
942-
{
951+
public function listGcpUserAccessBindings(
952+
ListGcpUserAccessBindingsRequest $request,
953+
array $callOptions = []
954+
): PagedListResponse {
943955
return $this->startApiCall('ListGcpUserAccessBindings', $request, $callOptions);
944956
}
945957

@@ -967,8 +979,10 @@ public function listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest $requ
967979
*
968980
* @throws ApiException Thrown if the API call fails.
969981
*/
970-
public function listServicePerimeters(ListServicePerimetersRequest $request, array $callOptions = []): PagedListResponse
971-
{
982+
public function listServicePerimeters(
983+
ListServicePerimetersRequest $request,
984+
array $callOptions = []
985+
): PagedListResponse {
972986
return $this->startApiCall('ListServicePerimeters', $request, $callOptions);
973987
}
974988

@@ -1049,8 +1063,10 @@ public function replaceAccessLevels(ReplaceAccessLevelsRequest $request, array $
10491063
*
10501064
* @throws ApiException Thrown if the API call fails.
10511065
*/
1052-
public function replaceServicePerimeters(ReplaceServicePerimetersRequest $request, array $callOptions = []): OperationResponse
1053-
{
1066+
public function replaceServicePerimeters(
1067+
ReplaceServicePerimetersRequest $request,
1068+
array $callOptions = []
1069+
): OperationResponse {
10541070
return $this->startApiCall('ReplaceServicePerimeters', $request, $callOptions)->wait();
10551071
}
10561072

@@ -1112,8 +1128,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
11121128
*
11131129
* @throws ApiException Thrown if the API call fails.
11141130
*/
1115-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
1116-
{
1131+
public function testIamPermissions(
1132+
TestIamPermissionsRequest $request,
1133+
array $callOptions = []
1134+
): TestIamPermissionsResponse {
11171135
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
11181136
}
11191137

@@ -1209,8 +1227,10 @@ public function updateAccessPolicy(UpdateAccessPolicyRequest $request, array $ca
12091227
*
12101228
* @throws ApiException Thrown if the API call fails.
12111229
*/
1212-
public function updateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse
1213-
{
1230+
public function updateGcpUserAccessBinding(
1231+
UpdateGcpUserAccessBindingRequest $request,
1232+
array $callOptions = []
1233+
): OperationResponse {
12141234
return $this->startApiCall('UpdateGcpUserAccessBinding', $request, $callOptions)->wait();
12151235
}
12161236

@@ -1243,8 +1263,10 @@ public function updateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest $re
12431263
*
12441264
* @throws ApiException Thrown if the API call fails.
12451265
*/
1246-
public function updateServicePerimeter(UpdateServicePerimeterRequest $request, array $callOptions = []): OperationResponse
1247-
{
1266+
public function updateServicePerimeter(
1267+
UpdateServicePerimeterRequest $request,
1268+
array $callOptions = []
1269+
): OperationResponse {
12481270
return $this->startApiCall('UpdateServicePerimeter', $request, $callOptions)->wait();
12491271
}
12501272
}

AdvisoryNotifications/src/V1/Client/AdvisoryNotificationsServiceClient.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ final class AdvisoryNotificationsServiceClient
8484
private const CODEGEN_NAME = 'gapic';
8585

8686
/** The default scopes required by the service. */
87-
public static $serviceScopes = [
88-
'https://www.googleapis.com/auth/cloud-platform',
89-
];
87+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
9088

9189
private static function getClientDefaults()
9290
{
@@ -101,7 +99,8 @@ private static function getClientDefaults()
10199
],
102100
'transportConfig' => [
103101
'rest' => [
104-
'restClientConfigPath' => __DIR__ . '/../resources/advisory_notifications_service_rest_client_config.php',
102+
'restClientConfigPath' =>
103+
__DIR__ . '/../resources/advisory_notifications_service_rest_client_config.php',
105104
],
106105
],
107106
];
@@ -170,8 +169,11 @@ public static function organizationLocationName(string $organization, string $lo
170169
*
171170
* @return string The formatted organization_location_notification resource.
172171
*/
173-
public static function organizationLocationNotificationName(string $organization, string $location, string $notification): string
174-
{
172+
public static function organizationLocationNotificationName(
173+
string $organization,
174+
string $location,
175+
string $notification
176+
): string {
175177
return self::getPathTemplate('organizationLocationNotification')->render([
176178
'organization' => $organization,
177179
'location' => $location,
@@ -223,8 +225,11 @@ public static function projectLocationName(string $project, string $location): s
223225
*
224226
* @return string The formatted project_location_notification resource.
225227
*/
226-
public static function projectLocationNotificationName(string $project, string $location, string $notification): string
227-
{
228+
public static function projectLocationNotificationName(
229+
string $project,
230+
string $location,
231+
string $notification
232+
): string {
228233
return self::getPathTemplate('projectLocationNotification')->render([
229234
'project' => $project,
230235
'location' => $location,

0 commit comments

Comments
 (0)