Skip to content

Commit 9873f6b

Browse files
chore: [Many APIs] update styles
1 parent 8ad1b52 commit 9873f6b

19 files changed

Lines changed: 292 additions & 179 deletions

File tree

EssentialContacts/src/V1/Client/EssentialContactsServiceClient.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ final class EssentialContactsServiceClient
8989
private const CODEGEN_NAME = 'gapic';
9090

9191
/** The default scopes required by the service. */
92-
public static $serviceScopes = [
93-
'https://www.googleapis.com/auth/cloud-platform',
94-
];
92+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
9593

9694
private static function getClientDefaults()
9795
{
@@ -106,7 +104,8 @@ private static function getClientDefaults()
106104
],
107105
'transportConfig' => [
108106
'rest' => [
109-
'restClientConfigPath' => __DIR__ . '/../resources/essential_contacts_service_rest_client_config.php',
107+
'restClientConfigPath' =>
108+
__DIR__ . '/../resources/essential_contacts_service_rest_client_config.php',
110109
],
111110
],
112111
];

Filestore/src/V1/Client/CloudFilestoreManagerClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ final class CloudFilestoreManagerClient
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 $operationsClient;
142140

FinancialServices/src/V1/Client/AMLClient.php

Lines changed: 73 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ final class AMLClient
172172
private const CODEGEN_NAME = 'gapic';
173173

174174
/** The default scopes required by the service. */
175-
public static $serviceScopes = [
176-
'https://www.googleapis.com/auth/cloud-platform',
177-
];
175+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
178176

179177
private $operationsClient;
180178

@@ -256,8 +254,12 @@ private function createOperationsClient(array $options)
256254
*
257255
* @return string The formatted backtest_result resource.
258256
*/
259-
public static function backtestResultName(string $projectNum, string $location, string $instance, string $backtestResult): string
260-
{
257+
public static function backtestResultName(
258+
string $projectNum,
259+
string $location,
260+
string $instance,
261+
string $backtestResult
262+
): string {
261263
return self::getPathTemplate('backtestResult')->render([
262264
'project_num' => $projectNum,
263265
'location' => $location,
@@ -298,8 +300,12 @@ public static function datasetName(string $projectNum, string $location, string
298300
*
299301
* @return string The formatted engine_config resource.
300302
*/
301-
public static function engineConfigName(string $projectNum, string $location, string $instance, string $engineConfig): string
302-
{
303+
public static function engineConfigName(
304+
string $projectNum,
305+
string $location,
306+
string $instance,
307+
string $engineConfig
308+
): string {
303309
return self::getPathTemplate('engineConfig')->render([
304310
'project_num' => $projectNum,
305311
'location' => $location,
@@ -319,8 +325,12 @@ public static function engineConfigName(string $projectNum, string $location, st
319325
*
320326
* @return string The formatted engine_version resource.
321327
*/
322-
public static function engineVersionName(string $projectNum, string $location, string $instance, string $engineVersion): string
323-
{
328+
public static function engineVersionName(
329+
string $projectNum,
330+
string $location,
331+
string $instance,
332+
string $engineVersion
333+
): string {
324334
return self::getPathTemplate('engineVersion')->render([
325335
'project_num' => $projectNum,
326336
'location' => $location,
@@ -397,8 +407,12 @@ public static function modelName(string $projectNum, string $location, string $i
397407
*
398408
* @return string The formatted prediction_result resource.
399409
*/
400-
public static function predictionResultName(string $projectNum, string $location, string $instance, string $predictionResult): string
401-
{
410+
public static function predictionResultName(
411+
string $projectNum,
412+
string $location,
413+
string $instance,
414+
string $predictionResult
415+
): string {
402416
return self::getPathTemplate('predictionResult')->render([
403417
'project_num' => $projectNum,
404418
'location' => $location,
@@ -545,8 +559,10 @@ public function __call($method, $args)
545559
*
546560
* @throws ApiException Thrown if the API call fails.
547561
*/
548-
public function createBacktestResult(CreateBacktestResultRequest $request, array $callOptions = []): OperationResponse
549-
{
562+
public function createBacktestResult(
563+
CreateBacktestResultRequest $request,
564+
array $callOptions = []
565+
): OperationResponse {
550566
return $this->startApiCall('CreateBacktestResult', $request, $callOptions)->wait();
551567
}
552568

@@ -675,8 +691,10 @@ public function createModel(CreateModelRequest $request, array $callOptions = []
675691
*
676692
* @throws ApiException Thrown if the API call fails.
677693
*/
678-
public function createPredictionResult(CreatePredictionResultRequest $request, array $callOptions = []): OperationResponse
679-
{
694+
public function createPredictionResult(
695+
CreatePredictionResultRequest $request,
696+
array $callOptions = []
697+
): OperationResponse {
680698
return $this->startApiCall('CreatePredictionResult', $request, $callOptions)->wait();
681699
}
682700

@@ -701,8 +719,10 @@ public function createPredictionResult(CreatePredictionResultRequest $request, a
701719
*
702720
* @throws ApiException Thrown if the API call fails.
703721
*/
704-
public function deleteBacktestResult(DeleteBacktestResultRequest $request, array $callOptions = []): OperationResponse
705-
{
722+
public function deleteBacktestResult(
723+
DeleteBacktestResultRequest $request,
724+
array $callOptions = []
725+
): OperationResponse {
706726
return $this->startApiCall('DeleteBacktestResult', $request, $callOptions)->wait();
707727
}
708728

@@ -831,8 +851,10 @@ public function deleteModel(DeleteModelRequest $request, array $callOptions = []
831851
*
832852
* @throws ApiException Thrown if the API call fails.
833853
*/
834-
public function deletePredictionResult(DeletePredictionResultRequest $request, array $callOptions = []): OperationResponse
835-
{
854+
public function deletePredictionResult(
855+
DeletePredictionResultRequest $request,
856+
array $callOptions = []
857+
): OperationResponse {
836858
return $this->startApiCall('DeletePredictionResult', $request, $callOptions)->wait();
837859
}
838860

@@ -860,8 +882,10 @@ public function deletePredictionResult(DeletePredictionResultRequest $request, a
860882
*
861883
* @throws ApiException Thrown if the API call fails.
862884
*/
863-
public function exportBacktestResultMetadata(ExportBacktestResultMetadataRequest $request, array $callOptions = []): OperationResponse
864-
{
885+
public function exportBacktestResultMetadata(
886+
ExportBacktestResultMetadataRequest $request,
887+
array $callOptions = []
888+
): OperationResponse {
865889
return $this->startApiCall('ExportBacktestResultMetadata', $request, $callOptions)->wait();
866890
}
867891

@@ -889,8 +913,10 @@ public function exportBacktestResultMetadata(ExportBacktestResultMetadataRequest
889913
*
890914
* @throws ApiException Thrown if the API call fails.
891915
*/
892-
public function exportEngineConfigMetadata(ExportEngineConfigMetadataRequest $request, array $callOptions = []): OperationResponse
893-
{
916+
public function exportEngineConfigMetadata(
917+
ExportEngineConfigMetadataRequest $request,
918+
array $callOptions = []
919+
): OperationResponse {
894920
return $this->startApiCall('ExportEngineConfigMetadata', $request, $callOptions)->wait();
895921
}
896922

@@ -947,8 +973,10 @@ public function exportModelMetadata(ExportModelMetadataRequest $request, array $
947973
*
948974
* @throws ApiException Thrown if the API call fails.
949975
*/
950-
public function exportPredictionResultMetadata(ExportPredictionResultMetadataRequest $request, array $callOptions = []): OperationResponse
951-
{
976+
public function exportPredictionResultMetadata(
977+
ExportPredictionResultMetadataRequest $request,
978+
array $callOptions = []
979+
): OperationResponse {
952980
return $this->startApiCall('ExportPredictionResultMetadata', $request, $callOptions)->wait();
953981
}
954982

@@ -976,8 +1004,10 @@ public function exportPredictionResultMetadata(ExportPredictionResultMetadataReq
9761004
*
9771005
* @throws ApiException Thrown if the API call fails.
9781006
*/
979-
public function exportRegisteredParties(ExportRegisteredPartiesRequest $request, array $callOptions = []): OperationResponse
980-
{
1007+
public function exportRegisteredParties(
1008+
ExportRegisteredPartiesRequest $request,
1009+
array $callOptions = []
1010+
): OperationResponse {
9811011
return $this->startApiCall('ExportRegisteredParties', $request, $callOptions)->wait();
9821012
}
9831013

@@ -1187,8 +1217,10 @@ public function getPredictionResult(GetPredictionResultRequest $request, array $
11871217
*
11881218
* @throws ApiException Thrown if the API call fails.
11891219
*/
1190-
public function importRegisteredParties(ImportRegisteredPartiesRequest $request, array $callOptions = []): OperationResponse
1191-
{
1220+
public function importRegisteredParties(
1221+
ImportRegisteredPartiesRequest $request,
1222+
array $callOptions = []
1223+
): OperationResponse {
11921224
return $this->startApiCall('ImportRegisteredParties', $request, $callOptions)->wait();
11931225
}
11941226

@@ -1369,8 +1401,10 @@ public function listModels(ListModelsRequest $request, array $callOptions = []):
13691401
*
13701402
* @throws ApiException Thrown if the API call fails.
13711403
*/
1372-
public function listPredictionResults(ListPredictionResultsRequest $request, array $callOptions = []): PagedListResponse
1373-
{
1404+
public function listPredictionResults(
1405+
ListPredictionResultsRequest $request,
1406+
array $callOptions = []
1407+
): PagedListResponse {
13741408
return $this->startApiCall('ListPredictionResults', $request, $callOptions);
13751409
}
13761410

@@ -1395,8 +1429,10 @@ public function listPredictionResults(ListPredictionResultsRequest $request, arr
13951429
*
13961430
* @throws ApiException Thrown if the API call fails.
13971431
*/
1398-
public function updateBacktestResult(UpdateBacktestResultRequest $request, array $callOptions = []): OperationResponse
1399-
{
1432+
public function updateBacktestResult(
1433+
UpdateBacktestResultRequest $request,
1434+
array $callOptions = []
1435+
): OperationResponse {
14001436
return $this->startApiCall('UpdateBacktestResult', $request, $callOptions)->wait();
14011437
}
14021438

@@ -1525,8 +1561,10 @@ public function updateModel(UpdateModelRequest $request, array $callOptions = []
15251561
*
15261562
* @throws ApiException Thrown if the API call fails.
15271563
*/
1528-
public function updatePredictionResult(UpdatePredictionResultRequest $request, array $callOptions = []): OperationResponse
1529-
{
1564+
public function updatePredictionResult(
1565+
UpdatePredictionResultRequest $request,
1566+
array $callOptions = []
1567+
): OperationResponse {
15301568
return $this->startApiCall('UpdatePredictionResult', $request, $callOptions)->wait();
15311569
}
15321570

Firestore/src/V1/RunQueryRequest.php

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Firestore/src/V1/TransactionOptions.php

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Functions/src/V2/Client/FunctionServiceClient.php

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ final class FunctionServiceClient
112112
private const CODEGEN_NAME = 'gapic';
113113

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

119117
private $operationsClient;
120118

@@ -593,8 +591,10 @@ public function deleteFunction(DeleteFunctionRequest $request, array $callOption
593591
*
594592
* @throws ApiException Thrown if the API call fails.
595593
*/
596-
public function generateDownloadUrl(GenerateDownloadUrlRequest $request, array $callOptions = []): GenerateDownloadUrlResponse
597-
{
594+
public function generateDownloadUrl(
595+
GenerateDownloadUrlRequest $request,
596+
array $callOptions = []
597+
): GenerateDownloadUrlResponse {
598598
return $this->startApiCall('GenerateDownloadUrl', $request, $callOptions)->wait();
599599
}
600600

@@ -641,8 +641,10 @@ public function generateDownloadUrl(GenerateDownloadUrlRequest $request, array $
641641
*
642642
* @throws ApiException Thrown if the API call fails.
643643
*/
644-
public function generateUploadUrl(GenerateUploadUrlRequest $request, array $callOptions = []): GenerateUploadUrlResponse
645-
{
644+
public function generateUploadUrl(
645+
GenerateUploadUrlRequest $request,
646+
array $callOptions = []
647+
): GenerateUploadUrlResponse {
646648
return $this->startApiCall('GenerateUploadUrl', $request, $callOptions)->wait();
647649
}
648650

@@ -860,8 +862,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
860862
*
861863
* @throws ApiException Thrown if the API call fails.
862864
*/
863-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
864-
{
865+
public function testIamPermissions(
866+
TestIamPermissionsRequest $request,
867+
array $callOptions = []
868+
): TestIamPermissionsResponse {
865869
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
866870
}
867871
}

GSuiteAddOns/src/V1/Client/GSuiteAddOnsClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ final class GSuiteAddOnsClient
122122
private const CODEGEN_NAME = 'gapic';
123123

124124
/** The default scopes required by the service. */
125-
public static $serviceScopes = [
126-
'https://www.googleapis.com/auth/cloud-platform',
127-
];
125+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
128126

129127
private static function getClientDefaults()
130128
{

0 commit comments

Comments
 (0)