Skip to content

Commit 1f9a40c

Browse files
chore: [Many APIs] update styles (#8838)
1 parent bec0531 commit 1f9a40c

File tree

37 files changed

+1256
-616
lines changed

37 files changed

+1256
-616
lines changed

PrivilegedAccessManager/src/V1/Client/PrivilegedAccessManagerClient.php

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ final class PrivilegedAccessManagerClient
132132
private const CODEGEN_NAME = 'gapic';
133133

134134
/** The default scopes required by the service. */
135-
public static $serviceScopes = [
136-
'https://www.googleapis.com/auth/cloud-platform',
137-
];
135+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
138136

139137
private $operationsClient;
140138

@@ -151,7 +149,8 @@ private static function getClientDefaults()
151149
],
152150
'transportConfig' => [
153151
'rest' => [
154-
'restClientConfigPath' => __DIR__ . '/../resources/privileged_access_manager_rest_client_config.php',
152+
'restClientConfigPath' =>
153+
__DIR__ . '/../resources/privileged_access_manager_rest_client_config.php',
155154
],
156155
],
157156
];
@@ -271,8 +270,12 @@ public static function folderLocationEntitlementName(string $folder, string $loc
271270
*
272271
* @return string The formatted folder_location_entitlement_grant resource.
273272
*/
274-
public static function folderLocationEntitlementGrantName(string $folder, string $location, string $entitlement, string $grant): string
275-
{
273+
public static function folderLocationEntitlementGrantName(
274+
string $folder,
275+
string $location,
276+
string $entitlement,
277+
string $grant
278+
): string {
276279
return self::getPathTemplate('folderLocationEntitlementGrant')->render([
277280
'folder' => $folder,
278281
'location' => $location,
@@ -346,8 +349,11 @@ public static function organizationLocationName(string $organization, string $lo
346349
*
347350
* @return string The formatted organization_location_entitlement resource.
348351
*/
349-
public static function organizationLocationEntitlementName(string $organization, string $location, string $entitlement): string
350-
{
352+
public static function organizationLocationEntitlementName(
353+
string $organization,
354+
string $location,
355+
string $entitlement
356+
): string {
351357
return self::getPathTemplate('organizationLocationEntitlement')->render([
352358
'organization' => $organization,
353359
'location' => $location,
@@ -366,8 +372,12 @@ public static function organizationLocationEntitlementName(string $organization,
366372
*
367373
* @return string The formatted organization_location_entitlement_grant resource.
368374
*/
369-
public static function organizationLocationEntitlementGrantName(string $organization, string $location, string $entitlement, string $grant): string
370-
{
375+
public static function organizationLocationEntitlementGrantName(
376+
string $organization,
377+
string $location,
378+
string $entitlement,
379+
string $grant
380+
): string {
371381
return self::getPathTemplate('organizationLocationEntitlementGrant')->render([
372382
'organization' => $organization,
373383
'location' => $location,
@@ -386,8 +396,11 @@ public static function organizationLocationEntitlementGrantName(string $organiza
386396
*
387397
* @return string The formatted project_location_entitlement resource.
388398
*/
389-
public static function projectLocationEntitlementName(string $project, string $location, string $entitlement): string
390-
{
399+
public static function projectLocationEntitlementName(
400+
string $project,
401+
string $location,
402+
string $entitlement
403+
): string {
391404
return self::getPathTemplate('projectLocationEntitlement')->render([
392405
'project' => $project,
393406
'location' => $location,
@@ -406,8 +419,12 @@ public static function projectLocationEntitlementName(string $project, string $l
406419
*
407420
* @return string The formatted project_location_entitlement_grant resource.
408421
*/
409-
public static function projectLocationEntitlementGrantName(string $project, string $location, string $entitlement, string $grant): string
410-
{
422+
public static function projectLocationEntitlementGrantName(
423+
string $project,
424+
string $location,
425+
string $entitlement,
426+
string $grant
427+
): string {
411428
return self::getPathTemplate('projectLocationEntitlementGrant')->render([
412429
'project' => $project,
413430
'location' => $location,
@@ -588,8 +605,10 @@ public function approveGrant(ApproveGrantRequest $request, array $callOptions =
588605
*
589606
* @throws ApiException Thrown if the API call fails.
590607
*/
591-
public function checkOnboardingStatus(CheckOnboardingStatusRequest $request, array $callOptions = []): CheckOnboardingStatusResponse
592-
{
608+
public function checkOnboardingStatus(
609+
CheckOnboardingStatusRequest $request,
610+
array $callOptions = []
611+
): CheckOnboardingStatusResponse {
593612
return $this->startApiCall('CheckOnboardingStatus', $request, $callOptions)->wait();
594613
}
595614

Quotas/src/V1/Client/CloudQuotasClient.php

Lines changed: 51 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ final class CloudQuotasClient
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
{
@@ -144,8 +142,11 @@ public static function folderLocationName(string $folder, string $location): str
144142
*
145143
* @return string The formatted folder_location_quota_preference resource.
146144
*/
147-
public static function folderLocationQuotaPreferenceName(string $folder, string $location, string $quotaPreference): string
148-
{
145+
public static function folderLocationQuotaPreferenceName(
146+
string $folder,
147+
string $location,
148+
string $quotaPreference
149+
): string {
149150
return self::getPathTemplate('folderLocationQuotaPreference')->render([
150151
'folder' => $folder,
151152
'location' => $location,
@@ -183,8 +184,12 @@ public static function folderLocationServiceName(string $folder, string $locatio
183184
*
184185
* @return string The formatted folder_location_service_quota_info resource.
185186
*/
186-
public static function folderLocationServiceQuotaInfoName(string $folder, string $location, string $service, string $quotaInfo): string
187-
{
187+
public static function folderLocationServiceQuotaInfoName(
188+
string $folder,
189+
string $location,
190+
string $service,
191+
string $quotaInfo
192+
): string {
188193
return self::getPathTemplate('folderLocationServiceQuotaInfo')->render([
189194
'folder' => $folder,
190195
'location' => $location,
@@ -237,8 +242,11 @@ public static function organizationLocationName(string $organization, string $lo
237242
*
238243
* @return string The formatted organization_location_quota_preference resource.
239244
*/
240-
public static function organizationLocationQuotaPreferenceName(string $organization, string $location, string $quotaPreference): string
241-
{
245+
public static function organizationLocationQuotaPreferenceName(
246+
string $organization,
247+
string $location,
248+
string $quotaPreference
249+
): string {
242250
return self::getPathTemplate('organizationLocationQuotaPreference')->render([
243251
'organization' => $organization,
244252
'location' => $location,
@@ -256,8 +264,11 @@ public static function organizationLocationQuotaPreferenceName(string $organizat
256264
*
257265
* @return string The formatted organization_location_service resource.
258266
*/
259-
public static function organizationLocationServiceName(string $organization, string $location, string $service): string
260-
{
267+
public static function organizationLocationServiceName(
268+
string $organization,
269+
string $location,
270+
string $service
271+
): string {
261272
return self::getPathTemplate('organizationLocationService')->render([
262273
'organization' => $organization,
263274
'location' => $location,
@@ -276,8 +287,12 @@ public static function organizationLocationServiceName(string $organization, str
276287
*
277288
* @return string The formatted organization_location_service_quota_info resource.
278289
*/
279-
public static function organizationLocationServiceQuotaInfoName(string $organization, string $location, string $service, string $quotaInfo): string
280-
{
290+
public static function organizationLocationServiceQuotaInfoName(
291+
string $organization,
292+
string $location,
293+
string $service,
294+
string $quotaInfo
295+
): string {
281296
return self::getPathTemplate('organizationLocationServiceQuotaInfo')->render([
282297
'organization' => $organization,
283298
'location' => $location,
@@ -313,8 +328,11 @@ public static function projectLocationName(string $project, string $location): s
313328
*
314329
* @return string The formatted project_location_quota_preference resource.
315330
*/
316-
public static function projectLocationQuotaPreferenceName(string $project, string $location, string $quotaPreference): string
317-
{
331+
public static function projectLocationQuotaPreferenceName(
332+
string $project,
333+
string $location,
334+
string $quotaPreference
335+
): string {
318336
return self::getPathTemplate('projectLocationQuotaPreference')->render([
319337
'project' => $project,
320338
'location' => $location,
@@ -352,8 +370,12 @@ public static function projectLocationServiceName(string $project, string $locat
352370
*
353371
* @return string The formatted project_location_service_quota_info resource.
354372
*/
355-
public static function projectLocationServiceQuotaInfoName(string $project, string $location, string $service, string $quotaInfo): string
356-
{
373+
public static function projectLocationServiceQuotaInfoName(
374+
string $project,
375+
string $location,
376+
string $service,
377+
string $quotaInfo
378+
): string {
357379
return self::getPathTemplate('projectLocationServiceQuotaInfo')->render([
358380
'project' => $project,
359381
'location' => $location,
@@ -566,8 +588,10 @@ public function __call($method, $args)
566588
*
567589
* @throws ApiException Thrown if the API call fails.
568590
*/
569-
public function createQuotaPreference(CreateQuotaPreferenceRequest $request, array $callOptions = []): QuotaPreference
570-
{
591+
public function createQuotaPreference(
592+
CreateQuotaPreferenceRequest $request,
593+
array $callOptions = []
594+
): QuotaPreference {
571595
return $this->startApiCall('CreateQuotaPreference', $request, $callOptions)->wait();
572596
}
573597

@@ -670,8 +694,10 @@ public function listQuotaInfos(ListQuotaInfosRequest $request, array $callOption
670694
*
671695
* @throws ApiException Thrown if the API call fails.
672696
*/
673-
public function listQuotaPreferences(ListQuotaPreferencesRequest $request, array $callOptions = []): PagedListResponse
674-
{
697+
public function listQuotaPreferences(
698+
ListQuotaPreferencesRequest $request,
699+
array $callOptions = []
700+
): PagedListResponse {
675701
return $this->startApiCall('ListQuotaPreferences', $request, $callOptions);
676702
}
677703

@@ -697,8 +723,10 @@ public function listQuotaPreferences(ListQuotaPreferencesRequest $request, array
697723
*
698724
* @throws ApiException Thrown if the API call fails.
699725
*/
700-
public function updateQuotaPreference(UpdateQuotaPreferenceRequest $request, array $callOptions = []): QuotaPreference
701-
{
726+
public function updateQuotaPreference(
727+
UpdateQuotaPreferenceRequest $request,
728+
array $callOptions = []
729+
): QuotaPreference {
702730
return $this->startApiCall('UpdateQuotaPreference', $request, $callOptions)->wait();
703731
}
704732
}

0 commit comments

Comments
 (0)