Skip to content

Commit 667df6b

Browse files
chore: [Many APIs] update styles
1 parent 54e5845 commit 667df6b

16 files changed

Lines changed: 249 additions & 149 deletions

File tree

Asset/src/V1/Client/AssetServiceClient.php

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ final class AssetServiceClient
133133
private const CODEGEN_NAME = 'gapic';
134134

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

140138
private $operationsClient;
141139

@@ -529,8 +527,10 @@ public function __call($method, $args)
529527
*
530528
* @throws ApiException Thrown if the API call fails.
531529
*/
532-
public function analyzeIamPolicy(AnalyzeIamPolicyRequest $request, array $callOptions = []): AnalyzeIamPolicyResponse
533-
{
530+
public function analyzeIamPolicy(
531+
AnalyzeIamPolicyRequest $request,
532+
array $callOptions = []
533+
): AnalyzeIamPolicyResponse {
534534
return $this->startApiCall('AnalyzeIamPolicy', $request, $callOptions)->wait();
535535
}
536536

@@ -565,8 +565,10 @@ public function analyzeIamPolicy(AnalyzeIamPolicyRequest $request, array $callOp
565565
*
566566
* @throws ApiException Thrown if the API call fails.
567567
*/
568-
public function analyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest $request, array $callOptions = []): OperationResponse
569-
{
568+
public function analyzeIamPolicyLongrunning(
569+
AnalyzeIamPolicyLongrunningRequest $request,
570+
array $callOptions = []
571+
): OperationResponse {
570572
return $this->startApiCall('AnalyzeIamPolicyLongrunning', $request, $callOptions)->wait();
571573
}
572574

@@ -696,8 +698,10 @@ public function analyzeOrgPolicies(AnalyzeOrgPoliciesRequest $request, array $ca
696698
*
697699
* @throws ApiException Thrown if the API call fails.
698700
*/
699-
public function analyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsRequest $request, array $callOptions = []): PagedListResponse
700-
{
701+
public function analyzeOrgPolicyGovernedAssets(
702+
AnalyzeOrgPolicyGovernedAssetsRequest $request,
703+
array $callOptions = []
704+
): PagedListResponse {
701705
return $this->startApiCall('AnalyzeOrgPolicyGovernedAssets', $request, $callOptions);
702706
}
703707

@@ -724,8 +728,10 @@ public function analyzeOrgPolicyGovernedAssets(AnalyzeOrgPolicyGovernedAssetsReq
724728
*
725729
* @throws ApiException Thrown if the API call fails.
726730
*/
727-
public function analyzeOrgPolicyGovernedContainers(AnalyzeOrgPolicyGovernedContainersRequest $request, array $callOptions = []): PagedListResponse
728-
{
731+
public function analyzeOrgPolicyGovernedContainers(
732+
AnalyzeOrgPolicyGovernedContainersRequest $request,
733+
array $callOptions = []
734+
): PagedListResponse {
729735
return $this->startApiCall('AnalyzeOrgPolicyGovernedContainers', $request, $callOptions);
730736
}
731737

@@ -756,8 +762,10 @@ public function analyzeOrgPolicyGovernedContainers(AnalyzeOrgPolicyGovernedConta
756762
*
757763
* @throws ApiException Thrown if the API call fails.
758764
*/
759-
public function batchGetAssetsHistory(BatchGetAssetsHistoryRequest $request, array $callOptions = []): BatchGetAssetsHistoryResponse
760-
{
765+
public function batchGetAssetsHistory(
766+
BatchGetAssetsHistoryRequest $request,
767+
array $callOptions = []
768+
): BatchGetAssetsHistoryResponse {
761769
return $this->startApiCall('BatchGetAssetsHistory', $request, $callOptions)->wait();
762770
}
763771

@@ -783,8 +791,10 @@ public function batchGetAssetsHistory(BatchGetAssetsHistoryRequest $request, arr
783791
*
784792
* @throws ApiException Thrown if the API call fails.
785793
*/
786-
public function batchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest $request, array $callOptions = []): BatchGetEffectiveIamPoliciesResponse
787-
{
794+
public function batchGetEffectiveIamPolicies(
795+
BatchGetEffectiveIamPoliciesRequest $request,
796+
array $callOptions = []
797+
): BatchGetEffectiveIamPoliciesResponse {
788798
return $this->startApiCall('BatchGetEffectiveIamPolicies', $request, $callOptions)->wait();
789799
}
790800

@@ -1117,8 +1127,10 @@ public function queryAssets(QueryAssetsRequest $request, array $callOptions = []
11171127
*
11181128
* @throws ApiException Thrown if the API call fails.
11191129
*/
1120-
public function searchAllIamPolicies(SearchAllIamPoliciesRequest $request, array $callOptions = []): PagedListResponse
1121-
{
1130+
public function searchAllIamPolicies(
1131+
SearchAllIamPoliciesRequest $request,
1132+
array $callOptions = []
1133+
): PagedListResponse {
11221134
return $this->startApiCall('SearchAllIamPolicies', $request, $callOptions);
11231135
}
11241136

AssuredWorkloads/src/V1/Client/AssuredWorkloadsServiceClient.php

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ final class AssuredWorkloadsServiceClient
9999
private const CODEGEN_NAME = 'gapic';
100100

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

106104
private $operationsClient;
107105

@@ -118,7 +116,8 @@ private static function getClientDefaults()
118116
],
119117
'transportConfig' => [
120118
'rest' => [
121-
'restClientConfigPath' => __DIR__ . '/../resources/assured_workloads_service_rest_client_config.php',
119+
'restClientConfigPath' =>
120+
__DIR__ . '/../resources/assured_workloads_service_rest_client_config.php',
122121
],
123122
],
124123
];
@@ -200,8 +199,12 @@ public static function locationName(string $organization, string $location): str
200199
*
201200
* @return string The formatted violation resource.
202201
*/
203-
public static function violationName(string $organization, string $location, string $workload, string $violation): string
204-
{
202+
public static function violationName(
203+
string $organization,
204+
string $location,
205+
string $workload,
206+
string $violation
207+
): string {
205208
return self::getPathTemplate('violation')->render([
206209
'organization' => $organization,
207210
'location' => $location,
@@ -366,8 +369,10 @@ public function __call($method, $args)
366369
*
367370
* @throws ApiException Thrown if the API call fails.
368371
*/
369-
public function acknowledgeViolation(AcknowledgeViolationRequest $request, array $callOptions = []): AcknowledgeViolationResponse
370-
{
372+
public function acknowledgeViolation(
373+
AcknowledgeViolationRequest $request,
374+
array $callOptions = []
375+
): AcknowledgeViolationResponse {
371376
return $this->startApiCall('AcknowledgeViolation', $request, $callOptions)->wait();
372377
}
373378

@@ -562,8 +567,10 @@ public function listWorkloads(ListWorkloadsRequest $request, array $callOptions
562567
*
563568
* @throws ApiException Thrown if the API call fails.
564569
*/
565-
public function restrictAllowedResources(RestrictAllowedResourcesRequest $request, array $callOptions = []): RestrictAllowedResourcesResponse
566-
{
570+
public function restrictAllowedResources(
571+
RestrictAllowedResourcesRequest $request,
572+
array $callOptions = []
573+
): RestrictAllowedResourcesResponse {
567574
return $this->startApiCall('RestrictAllowedResources', $request, $callOptions)->wait();
568575
}
569576

AssuredWorkloads/src/V1beta1/Client/AssuredWorkloadsServiceClient.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ final class AssuredWorkloadsServiceClient
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

@@ -117,7 +115,8 @@ private static function getClientDefaults()
117115
],
118116
'transportConfig' => [
119117
'rest' => [
120-
'restClientConfigPath' => __DIR__ . '/../resources/assured_workloads_service_rest_client_config.php',
118+
'restClientConfigPath' =>
119+
__DIR__ . '/../resources/assured_workloads_service_rest_client_config.php',
121120
],
122121
],
123122
];
@@ -355,8 +354,10 @@ public function __call($method, $args)
355354
*
356355
* @experimental
357356
*/
358-
public function analyzeWorkloadMove(AnalyzeWorkloadMoveRequest $request, array $callOptions = []): AnalyzeWorkloadMoveResponse
359-
{
357+
public function analyzeWorkloadMove(
358+
AnalyzeWorkloadMoveRequest $request,
359+
array $callOptions = []
360+
): AnalyzeWorkloadMoveResponse {
360361
return $this->startApiCall('AnalyzeWorkloadMove', $request, $callOptions)->wait();
361362
}
362363

@@ -507,8 +508,10 @@ public function listWorkloads(ListWorkloadsRequest $request, array $callOptions
507508
*
508509
* @experimental
509510
*/
510-
public function restrictAllowedResources(RestrictAllowedResourcesRequest $request, array $callOptions = []): RestrictAllowedResourcesResponse
511-
{
511+
public function restrictAllowedResources(
512+
RestrictAllowedResourcesRequest $request,
513+
array $callOptions = []
514+
): RestrictAllowedResourcesResponse {
512515
return $this->startApiCall('RestrictAllowedResources', $request, $callOptions)->wait();
513516
}
514517

AutoMl/src/V1/Client/AutoMlClient.php

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ final class AutoMlClient
130130
private const CODEGEN_NAME = 'gapic';
131131

132132
/** The default scopes required by the service. */
133-
public static $serviceScopes = [
134-
'https://www.googleapis.com/auth/cloud-platform',
135-
];
133+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
136134

137135
private $operationsClient;
138136

@@ -214,8 +212,12 @@ private function createOperationsClient(array $options)
214212
*
215213
* @return string The formatted annotation_spec resource.
216214
*/
217-
public static function annotationSpecName(string $project, string $location, string $dataset, string $annotationSpec): string
218-
{
215+
public static function annotationSpecName(
216+
string $project,
217+
string $location,
218+
string $dataset,
219+
string $annotationSpec
220+
): string {
219221
return self::getPathTemplate('annotationSpec')->render([
220222
'project' => $project,
221223
'location' => $location,
@@ -290,8 +292,12 @@ public static function modelName(string $project, string $location, string $mode
290292
*
291293
* @return string The formatted model_evaluation resource.
292294
*/
293-
public static function modelEvaluationName(string $project, string $location, string $model, string $modelEvaluation): string
294-
{
295+
public static function modelEvaluationName(
296+
string $project,
297+
string $location,
298+
string $model,
299+
string $modelEvaluation
300+
): string {
295301
return self::getPathTemplate('modelEvaluation')->render([
296302
'project' => $project,
297303
'location' => $location,
@@ -811,8 +817,10 @@ public function listDatasets(ListDatasetsRequest $request, array $callOptions =
811817
*
812818
* @throws ApiException Thrown if the API call fails.
813819
*/
814-
public function listModelEvaluations(ListModelEvaluationsRequest $request, array $callOptions = []): PagedListResponse
815-
{
820+
public function listModelEvaluations(
821+
ListModelEvaluationsRequest $request,
822+
array $callOptions = []
823+
): PagedListResponse {
816824
return $this->startApiCall('ListModelEvaluations', $request, $callOptions);
817825
}
818826

AutoMl/src/V1/Client/PredictionServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ final class PredictionServiceClient
8585
private const CODEGEN_NAME = 'gapic';
8686

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

9290
private $operationsClient;
9391

0 commit comments

Comments
 (0)