Skip to content

Commit c4f8231

Browse files
docs: [container] minor grammar improvements (#9140)
* chore: Reformatting PiperOrigin-RevId: 511116336 Source-Link: googleapis/googleapis@af2f5da Source-Link: https://github.com/googleapis/googleapis-gen/commit/9c6068e8821f07198ed6f06e294f9d27b160e645 Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjljNjA2OGU4ODIxZjA3MTk4ZWQ2ZjA2ZTI5NGY5ZDI3YjE2MGU2NDUifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: minor grammar improvements PiperOrigin-RevId: 511850615 Source-Link: googleapis/googleapis@6f90843 Source-Link: https://github.com/googleapis/googleapis-gen/commit/26bf8b2af6276ca34ca6c53eb4410f1e24a8f6fa Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjI2YmY4YjJhZjYyNzZjYTM0Y2E2YzUzZWI0NDEwZjFlMjRhOGY2ZmEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: minor grammar improvements PiperOrigin-RevId: 512664562 Source-Link: googleapis/googleapis@2328fdb Source-Link: https://github.com/googleapis/googleapis-gen/commit/93635315eb7fb0d99a5b604d18106b8f472754b2 Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6IjkzNjM1MzE1ZWI3ZmIwZDk5YTViNjA0ZDE4MTA2YjhmNDcyNzU0YjIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d6c639e commit c4f8231

File tree

14 files changed

+307
-307
lines changed

14 files changed

+307
-307
lines changed

java-container/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ If you are using Maven, add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>google-cloud-container</artifactId>
23-
<version>2.12.0</version>
23+
<version>2.14.0</version>
2424
</dependency>
2525
```
2626

2727
If you are using Gradle without BOM, add this to your dependencies:
2828

2929
```Groovy
30-
implementation 'com.google.cloud:google-cloud-container:2.12.0'
30+
implementation 'com.google.cloud:google-cloud-container:2.14.0'
3131
```
3232

3333
If you are using SBT, add this to your dependencies:
3434

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.12.0"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.14.0"
3737
```
3838
<!--- {x-version-update-end} -->
3939

java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java

+55-55
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,61 @@ public final UnaryCallable<GetServerConfigRequest, ServerConfig> getServerConfig
19811981
return stub.getServerConfigCallable();
19821982
}
19831983

1984+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1985+
/**
1986+
* Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
1987+
* yet intended for general use, and is not available for all clusters.
1988+
*
1989+
* <p>Sample code:
1990+
*
1991+
* <pre>{@code
1992+
* // This snippet has been automatically generated and should be regarded as a code template only.
1993+
* // It will require modifications to work:
1994+
* // - It may require correct/in-range values for request initialization.
1995+
* // - It may require specifying regional endpoints when creating the service client as shown in
1996+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1997+
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
1998+
* GetJSONWebKeysRequest request =
1999+
* GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
2000+
* GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(request);
2001+
* }
2002+
* }</pre>
2003+
*
2004+
* @param request The request object containing all of the parameters for the API call.
2005+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2006+
*/
2007+
public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest request) {
2008+
return getJSONWebKeysCallable().call(request);
2009+
}
2010+
2011+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2012+
/**
2013+
* Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
2014+
* yet intended for general use, and is not available for all clusters.
2015+
*
2016+
* <p>Sample code:
2017+
*
2018+
* <pre>{@code
2019+
* // This snippet has been automatically generated and should be regarded as a code template only.
2020+
* // It will require modifications to work:
2021+
* // - It may require correct/in-range values for request initialization.
2022+
* // - It may require specifying regional endpoints when creating the service client as shown in
2023+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2024+
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
2025+
* GetJSONWebKeysRequest request =
2026+
* GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
2027+
* ApiFuture<GetJSONWebKeysResponse> future =
2028+
* clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
2029+
* // Do something.
2030+
* GetJSONWebKeysResponse response = future.get();
2031+
* }
2032+
* }</pre>
2033+
*/
2034+
public final UnaryCallable<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
2035+
getJSONWebKeysCallable() {
2036+
return stub.getJSONWebKeysCallable();
2037+
}
2038+
19842039
// AUTO-GENERATED DOCUMENTATION AND METHOD.
19852040
/**
19862041
* Lists the node pools for a cluster.
@@ -2085,61 +2140,6 @@ public final UnaryCallable<ListNodePoolsRequest, ListNodePoolsResponse> listNode
20852140
return stub.listNodePoolsCallable();
20862141
}
20872142

2088-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2089-
/**
2090-
* Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
2091-
* yet intended for general use, and is not available for all clusters.
2092-
*
2093-
* <p>Sample code:
2094-
*
2095-
* <pre>{@code
2096-
* // This snippet has been automatically generated and should be regarded as a code template only.
2097-
* // It will require modifications to work:
2098-
* // - It may require correct/in-range values for request initialization.
2099-
* // - It may require specifying regional endpoints when creating the service client as shown in
2100-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2101-
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
2102-
* GetJSONWebKeysRequest request =
2103-
* GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
2104-
* GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(request);
2105-
* }
2106-
* }</pre>
2107-
*
2108-
* @param request The request object containing all of the parameters for the API call.
2109-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2110-
*/
2111-
public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest request) {
2112-
return getJSONWebKeysCallable().call(request);
2113-
}
2114-
2115-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2116-
/**
2117-
* Gets the public component of the cluster signing keys in JSON Web Key format. This API is not
2118-
* yet intended for general use, and is not available for all clusters.
2119-
*
2120-
* <p>Sample code:
2121-
*
2122-
* <pre>{@code
2123-
* // This snippet has been automatically generated and should be regarded as a code template only.
2124-
* // It will require modifications to work:
2125-
* // - It may require correct/in-range values for request initialization.
2126-
* // - It may require specifying regional endpoints when creating the service client as shown in
2127-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2128-
* try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
2129-
* GetJSONWebKeysRequest request =
2130-
* GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
2131-
* ApiFuture<GetJSONWebKeysResponse> future =
2132-
* clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
2133-
* // Do something.
2134-
* GetJSONWebKeysResponse response = future.get();
2135-
* }
2136-
* }</pre>
2137-
*/
2138-
public final UnaryCallable<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
2139-
getJSONWebKeysCallable() {
2140-
return stub.getJSONWebKeysCallable();
2141-
}
2142-
21432143
// AUTO-GENERATED DOCUMENTATION AND METHOD.
21442144
/**
21452145
* Retrieves the requested node pool.

java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,16 @@ public UnaryCallSettings<GetServerConfigRequest, ServerConfig> getServerConfigSe
211211
return ((ClusterManagerStubSettings) getStubSettings()).getServerConfigSettings();
212212
}
213213

214-
/** Returns the object with the settings used for calls to listNodePools. */
215-
public UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsSettings() {
216-
return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings();
217-
}
218-
219214
/** Returns the object with the settings used for calls to getJSONWebKeys. */
220215
public UnaryCallSettings<GetJSONWebKeysRequest, GetJSONWebKeysResponse> getJSONWebKeysSettings() {
221216
return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings();
222217
}
223218

219+
/** Returns the object with the settings used for calls to listNodePools. */
220+
public UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsSettings() {
221+
return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings();
222+
}
223+
224224
/** Returns the object with the settings used for calls to getNodePool. */
225225
public UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings() {
226226
return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings();
@@ -496,18 +496,18 @@ public UnaryCallSettings.Builder<CancelOperationRequest, Empty> cancelOperationS
496496
return getStubSettingsBuilder().getServerConfigSettings();
497497
}
498498

499-
/** Returns the builder for the settings used for calls to listNodePools. */
500-
public UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
501-
listNodePoolsSettings() {
502-
return getStubSettingsBuilder().listNodePoolsSettings();
503-
}
504-
505499
/** Returns the builder for the settings used for calls to getJSONWebKeys. */
506500
public UnaryCallSettings.Builder<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
507501
getJSONWebKeysSettings() {
508502
return getStubSettingsBuilder().getJSONWebKeysSettings();
509503
}
510504

505+
/** Returns the builder for the settings used for calls to listNodePools. */
506+
public UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
507+
listNodePoolsSettings() {
508+
return getStubSettingsBuilder().listNodePoolsSettings();
509+
}
510+
511511
/** Returns the builder for the settings used for calls to getNodePool. */
512512
public UnaryCallSettings.Builder<GetNodePoolRequest, NodePool> getNodePoolSettings() {
513513
return getStubSettingsBuilder().getNodePoolSettings();

java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ public UnaryCallable<GetServerConfigRequest, ServerConfig> getServerConfigCallab
147147
throw new UnsupportedOperationException("Not implemented: getServerConfigCallable()");
148148
}
149149

150-
public UnaryCallable<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsCallable() {
151-
throw new UnsupportedOperationException("Not implemented: listNodePoolsCallable()");
152-
}
153-
154150
public UnaryCallable<GetJSONWebKeysRequest, GetJSONWebKeysResponse> getJSONWebKeysCallable() {
155151
throw new UnsupportedOperationException("Not implemented: getJSONWebKeysCallable()");
156152
}
157153

154+
public UnaryCallable<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsCallable() {
155+
throw new UnsupportedOperationException("Not implemented: listNodePoolsCallable()");
156+
}
157+
158158
public UnaryCallable<GetNodePoolRequest, NodePool> getNodePoolCallable() {
159159
throw new UnsupportedOperationException("Not implemented: getNodePoolCallable()");
160160
}

java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java

+25-25
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ public class ClusterManagerStubSettings extends StubSettings<ClusterManagerStubS
159159
private final UnaryCallSettings<GetOperationRequest, Operation> getOperationSettings;
160160
private final UnaryCallSettings<CancelOperationRequest, Empty> cancelOperationSettings;
161161
private final UnaryCallSettings<GetServerConfigRequest, ServerConfig> getServerConfigSettings;
162-
private final UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse>
163-
listNodePoolsSettings;
164162
private final UnaryCallSettings<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
165163
getJSONWebKeysSettings;
164+
private final UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse>
165+
listNodePoolsSettings;
166166
private final UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings;
167167
private final UnaryCallSettings<CreateNodePoolRequest, Operation> createNodePoolSettings;
168168
private final UnaryCallSettings<DeleteNodePoolRequest, Operation> deleteNodePoolSettings;
@@ -344,16 +344,16 @@ public UnaryCallSettings<GetServerConfigRequest, ServerConfig> getServerConfigSe
344344
return getServerConfigSettings;
345345
}
346346

347-
/** Returns the object with the settings used for calls to listNodePools. */
348-
public UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsSettings() {
349-
return listNodePoolsSettings;
350-
}
351-
352347
/** Returns the object with the settings used for calls to getJSONWebKeys. */
353348
public UnaryCallSettings<GetJSONWebKeysRequest, GetJSONWebKeysResponse> getJSONWebKeysSettings() {
354349
return getJSONWebKeysSettings;
355350
}
356351

352+
/** Returns the object with the settings used for calls to listNodePools. */
353+
public UnaryCallSettings<ListNodePoolsRequest, ListNodePoolsResponse> listNodePoolsSettings() {
354+
return listNodePoolsSettings;
355+
}
356+
357357
/** Returns the object with the settings used for calls to getNodePool. */
358358
public UnaryCallSettings<GetNodePoolRequest, NodePool> getNodePoolSettings() {
359359
return getNodePoolSettings;
@@ -528,8 +528,8 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException
528528
getOperationSettings = settingsBuilder.getOperationSettings().build();
529529
cancelOperationSettings = settingsBuilder.cancelOperationSettings().build();
530530
getServerConfigSettings = settingsBuilder.getServerConfigSettings().build();
531-
listNodePoolsSettings = settingsBuilder.listNodePoolsSettings().build();
532531
getJSONWebKeysSettings = settingsBuilder.getJSONWebKeysSettings().build();
532+
listNodePoolsSettings = settingsBuilder.listNodePoolsSettings().build();
533533
getNodePoolSettings = settingsBuilder.getNodePoolSettings().build();
534534
createNodePoolSettings = settingsBuilder.createNodePoolSettings().build();
535535
deleteNodePoolSettings = settingsBuilder.deleteNodePoolSettings().build();
@@ -575,10 +575,10 @@ public static class Builder extends StubSettings.Builder<ClusterManagerStubSetti
575575
private final UnaryCallSettings.Builder<CancelOperationRequest, Empty> cancelOperationSettings;
576576
private final UnaryCallSettings.Builder<GetServerConfigRequest, ServerConfig>
577577
getServerConfigSettings;
578-
private final UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
579-
listNodePoolsSettings;
580578
private final UnaryCallSettings.Builder<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
581579
getJSONWebKeysSettings;
580+
private final UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
581+
listNodePoolsSettings;
582582
private final UnaryCallSettings.Builder<GetNodePoolRequest, NodePool> getNodePoolSettings;
583583
private final UnaryCallSettings.Builder<CreateNodePoolRequest, Operation>
584584
createNodePoolSettings;
@@ -679,8 +679,8 @@ protected Builder(ClientContext clientContext) {
679679
getOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
680680
cancelOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
681681
getServerConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
682-
listNodePoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
683682
getJSONWebKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
683+
listNodePoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
684684
getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
685685
createNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
686686
deleteNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -717,8 +717,8 @@ protected Builder(ClientContext clientContext) {
717717
getOperationSettings,
718718
cancelOperationSettings,
719719
getServerConfigSettings,
720-
listNodePoolsSettings,
721720
getJSONWebKeysSettings,
721+
listNodePoolsSettings,
722722
getNodePoolSettings,
723723
createNodePoolSettings,
724724
deleteNodePoolSettings,
@@ -757,8 +757,8 @@ protected Builder(ClusterManagerStubSettings settings) {
757757
getOperationSettings = settings.getOperationSettings.toBuilder();
758758
cancelOperationSettings = settings.cancelOperationSettings.toBuilder();
759759
getServerConfigSettings = settings.getServerConfigSettings.toBuilder();
760-
listNodePoolsSettings = settings.listNodePoolsSettings.toBuilder();
761760
getJSONWebKeysSettings = settings.getJSONWebKeysSettings.toBuilder();
761+
listNodePoolsSettings = settings.listNodePoolsSettings.toBuilder();
762762
getNodePoolSettings = settings.getNodePoolSettings.toBuilder();
763763
createNodePoolSettings = settings.createNodePoolSettings.toBuilder();
764764
deleteNodePoolSettings = settings.deleteNodePoolSettings.toBuilder();
@@ -794,8 +794,8 @@ protected Builder(ClusterManagerStubSettings settings) {
794794
getOperationSettings,
795795
cancelOperationSettings,
796796
getServerConfigSettings,
797-
listNodePoolsSettings,
798797
getJSONWebKeysSettings,
798+
listNodePoolsSettings,
799799
getNodePoolSettings,
800800
createNodePoolSettings,
801801
deleteNodePoolSettings,
@@ -912,16 +912,16 @@ private static Builder initDefaults(Builder builder) {
912912
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
913913
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
914914

915-
builder
916-
.listNodePoolsSettings()
917-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
918-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
919-
920915
builder
921916
.getJSONWebKeysSettings()
922917
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
923918
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
924919

920+
builder
921+
.listNodePoolsSettings()
922+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
923+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
924+
925925
builder
926926
.getNodePoolSettings()
927927
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -1111,18 +1111,18 @@ public UnaryCallSettings.Builder<CancelOperationRequest, Empty> cancelOperationS
11111111
return getServerConfigSettings;
11121112
}
11131113

1114-
/** Returns the builder for the settings used for calls to listNodePools. */
1115-
public UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
1116-
listNodePoolsSettings() {
1117-
return listNodePoolsSettings;
1118-
}
1119-
11201114
/** Returns the builder for the settings used for calls to getJSONWebKeys. */
11211115
public UnaryCallSettings.Builder<GetJSONWebKeysRequest, GetJSONWebKeysResponse>
11221116
getJSONWebKeysSettings() {
11231117
return getJSONWebKeysSettings;
11241118
}
11251119

1120+
/** Returns the builder for the settings used for calls to listNodePools. */
1121+
public UnaryCallSettings.Builder<ListNodePoolsRequest, ListNodePoolsResponse>
1122+
listNodePoolsSettings() {
1123+
return listNodePoolsSettings;
1124+
}
1125+
11261126
/** Returns the builder for the settings used for calls to getNodePool. */
11271127
public UnaryCallSettings.Builder<GetNodePoolRequest, NodePool> getNodePoolSettings() {
11281128
return getNodePoolSettings;

0 commit comments

Comments
 (0)