Skip to content

Commit 7a827dc

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

4 files changed

Lines changed: 44 additions & 23 deletions

File tree

KmsInventory/src/V1/Client/KeyDashboardServiceClient.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ final class KeyDashboardServiceClient
7676
private const CODEGEN_NAME = 'gapic';
7777

7878
/** The default scopes required by the service. */
79-
public static $serviceScopes = [
80-
'https://www.googleapis.com/auth/cloud-platform',
81-
];
79+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8280

8381
private static function getClientDefaults()
8482
{

KmsInventory/src/V1/Client/KeyTrackingServiceClient.php

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ final class KeyTrackingServiceClient
8080
private const CODEGEN_NAME = 'gapic';
8181

8282
/** The default scopes required by the service. */
83-
public static $serviceScopes = [
84-
'https://www.googleapis.com/auth/cloud-platform',
85-
];
83+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
8684

8785
private static function getClientDefaults()
8886
{
@@ -131,9 +129,16 @@ public static function organizationName(string $organization): string
131129
*
132130
* @return string The formatted project_location_key_ring_crypto_key_crypto_key_version_protectedResourcesSummary resource.
133131
*/
134-
public static function projectLocationKeyRingCryptoKeyCryptoKeyVersionProtectedResourcesSummaryName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string
135-
{
136-
return self::getPathTemplate('projectLocationKeyRingCryptoKeyCryptoKeyVersionProtectedResourcesSummary')->render([
132+
public static function projectLocationKeyRingCryptoKeyCryptoKeyVersionProtectedResourcesSummaryName(
133+
string $project,
134+
string $location,
135+
string $keyRing,
136+
string $cryptoKey,
137+
string $cryptoKeyVersion
138+
): string {
139+
return self::getPathTemplate(
140+
'projectLocationKeyRingCryptoKeyCryptoKeyVersionProtectedResourcesSummary'
141+
)->render([
137142
'project' => $project,
138143
'location' => $location,
139144
'key_ring' => $keyRing,
@@ -153,8 +158,12 @@ public static function projectLocationKeyRingCryptoKeyCryptoKeyVersionProtectedR
153158
*
154159
* @return string The formatted project_location_key_ring_crypto_key_protectedResourcesSummary resource.
155160
*/
156-
public static function projectLocationKeyRingCryptoKeyProtectedResourcesSummaryName(string $project, string $location, string $keyRing, string $cryptoKey): string
157-
{
161+
public static function projectLocationKeyRingCryptoKeyProtectedResourcesSummaryName(
162+
string $project,
163+
string $location,
164+
string $keyRing,
165+
string $cryptoKey
166+
): string {
158167
return self::getPathTemplate('projectLocationKeyRingCryptoKeyProtectedResourcesSummary')->render([
159168
'project' => $project,
160169
'location' => $location,
@@ -174,8 +183,12 @@ public static function projectLocationKeyRingCryptoKeyProtectedResourcesSummaryN
174183
*
175184
* @return string The formatted protected_resources_summary resource.
176185
*/
177-
public static function protectedResourcesSummaryName(string $project, string $location, string $keyRing, string $cryptoKey): string
178-
{
186+
public static function protectedResourcesSummaryName(
187+
string $project,
188+
string $location,
189+
string $keyRing,
190+
string $cryptoKey
191+
): string {
179192
return self::getPathTemplate('protectedResourcesSummary')->render([
180193
'project' => $project,
181194
'location' => $location,
@@ -322,8 +335,10 @@ public function __call($method, $args)
322335
*
323336
* @throws ApiException Thrown if the API call fails.
324337
*/
325-
public function getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest $request, array $callOptions = []): ProtectedResourcesSummary
326-
{
338+
public function getProtectedResourcesSummary(
339+
GetProtectedResourcesSummaryRequest $request,
340+
array $callOptions = []
341+
): ProtectedResourcesSummary {
327342
return $this->startApiCall('GetProtectedResourcesSummary', $request, $callOptions)->wait();
328343
}
329344

@@ -350,8 +365,10 @@ public function getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest
350365
*
351366
* @throws ApiException Thrown if the API call fails.
352367
*/
353-
public function searchProtectedResources(SearchProtectedResourcesRequest $request, array $callOptions = []): PagedListResponse
354-
{
368+
public function searchProtectedResources(
369+
SearchProtectedResourcesRequest $request,
370+
array $callOptions = []
371+
): PagedListResponse {
355372
return $this->startApiCall('SearchProtectedResources', $request, $callOptions);
356373
}
357374
}

Language/src/V1/Client/LanguageServiceClient.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ public function analyzeEntities(AnalyzeEntitiesRequest $request, array $callOpti
250250
*
251251
* @throws ApiException Thrown if the API call fails.
252252
*/
253-
public function analyzeEntitySentiment(AnalyzeEntitySentimentRequest $request, array $callOptions = []): AnalyzeEntitySentimentResponse
254-
{
253+
public function analyzeEntitySentiment(
254+
AnalyzeEntitySentimentRequest $request,
255+
array $callOptions = []
256+
): AnalyzeEntitySentimentResponse {
255257
return $this->startApiCall('AnalyzeEntitySentiment', $request, $callOptions)->wait();
256258
}
257259

@@ -276,8 +278,10 @@ public function analyzeEntitySentiment(AnalyzeEntitySentimentRequest $request, a
276278
*
277279
* @throws ApiException Thrown if the API call fails.
278280
*/
279-
public function analyzeSentiment(AnalyzeSentimentRequest $request, array $callOptions = []): AnalyzeSentimentResponse
280-
{
281+
public function analyzeSentiment(
282+
AnalyzeSentimentRequest $request,
283+
array $callOptions = []
284+
): AnalyzeSentimentResponse {
281285
return $this->startApiCall('AnalyzeSentiment', $request, $callOptions)->wait();
282286
}
283287

Language/src/V2/Client/LanguageServiceClient.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ public function analyzeEntities(AnalyzeEntitiesRequest $request, array $callOpti
240240
*
241241
* @throws ApiException Thrown if the API call fails.
242242
*/
243-
public function analyzeSentiment(AnalyzeSentimentRequest $request, array $callOptions = []): AnalyzeSentimentResponse
244-
{
243+
public function analyzeSentiment(
244+
AnalyzeSentimentRequest $request,
245+
array $callOptions = []
246+
): AnalyzeSentimentResponse {
245247
return $this->startApiCall('AnalyzeSentiment', $request, $callOptions)->wait();
246248
}
247249

0 commit comments

Comments
 (0)