Skip to content

Commit 487e38d

Browse files
feat: [workstations] add output field for the control plane IP address (#9422)
- [ ] Regenerate this pull request now. feat: add output field for the number of pooled instances docs: adjust documentation wording PiperOrigin-RevId: 530727488 Source-Link: https://togithub.com/googleapis/googleapis/commit/866228ea605fcf8bb76b934ae93d12c5fff85587 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/53444d0dd83d81e11cc1ae1d657135e183eae8dc Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjUzNDQ0ZDBkZDgzZDgxZTExY2MxYWUxZDY1NzEzNWUxODNlYWU4ZGMifQ==
1 parent e9944c5 commit 487e38d

31 files changed

Lines changed: 1217 additions & 771 deletions

java-workstations/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.12.0</version>
26+
<version>26.14.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-workstations/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.2.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.4.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ public final WorkstationConfig getWorkstationConfig(GetWorkstationConfigRequest
10961096

10971097
// AUTO-GENERATED DOCUMENTATION AND METHOD.
10981098
/**
1099-
* Returns all WorkstationConfigs in the specified cluster.
1099+
* Returns all workstation configurations in the specified cluster.
11001100
*
11011101
* <p>Sample code:
11021102
*
@@ -1130,7 +1130,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs(
11301130

11311131
// AUTO-GENERATED DOCUMENTATION AND METHOD.
11321132
/**
1133-
* Returns all WorkstationConfigs in the specified cluster.
1133+
* Returns all workstation configurations in the specified cluster.
11341134
*
11351135
* <p>Sample code:
11361136
*
@@ -1161,7 +1161,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs(String p
11611161

11621162
// AUTO-GENERATED DOCUMENTATION AND METHOD.
11631163
/**
1164-
* Returns all WorkstationConfigs in the specified cluster.
1164+
* Returns all workstation configurations in the specified cluster.
11651165
*
11661166
* <p>Sample code:
11671167
*
@@ -1197,7 +1197,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs(
11971197

11981198
// AUTO-GENERATED DOCUMENTATION AND METHOD.
11991199
/**
1200-
* Returns all WorkstationConfigs in the specified cluster.
1200+
* Returns all workstation configurations in the specified cluster.
12011201
*
12021202
* <p>Sample code:
12031203
*
@@ -1232,7 +1232,7 @@ public final ListWorkstationConfigsPagedResponse listWorkstationConfigs(
12321232

12331233
// AUTO-GENERATED DOCUMENTATION AND METHOD.
12341234
/**
1235-
* Returns all WorkstationConfigs in the specified cluster.
1235+
* Returns all workstation configurations in the specified cluster.
12361236
*
12371237
* <p>Sample code:
12381238
*
@@ -1484,7 +1484,7 @@ public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConf
14841484
*
14851485
* @param parent Required. Parent resource name.
14861486
* @param workstationConfig Required. Config to create.
1487-
* @param workstationConfigId Required. ID to use for the config.
1487+
* @param workstationConfigId Required. ID to use for the workstation configuration.
14881488
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
14891489
*/
14901490
public final OperationFuture<WorkstationConfig, OperationMetadata> createWorkstationConfigAsync(
@@ -1526,7 +1526,7 @@ public final OperationFuture<WorkstationConfig, OperationMetadata> createWorksta
15261526
*
15271527
* @param parent Required. Parent resource name.
15281528
* @param workstationConfig Required. Config to create.
1529-
* @param workstationConfigId Required. ID to use for the config.
1529+
* @param workstationConfigId Required. ID to use for the workstation configuration.
15301530
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
15311531
*/
15321532
public final OperationFuture<WorkstationConfig, OperationMetadata> createWorkstationConfigAsync(
@@ -1664,7 +1664,8 @@ public final OperationFuture<WorkstationConfig, OperationMetadata> createWorksta
16641664
* }</pre>
16651665
*
16661666
* @param workstationConfig Required. Config to update.
1667-
* @param updateMask Required. Mask specifying which fields in the config should be updated.
1667+
* @param updateMask Required. Mask specifying which fields in the workstation configuration
1668+
* should be updated.
16681669
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
16691670
*/
16701671
public final OperationFuture<WorkstationConfig, OperationMetadata> updateWorkstationConfigAsync(
@@ -1794,7 +1795,7 @@ public final OperationFuture<WorkstationConfig, OperationMetadata> updateWorksta
17941795
* }
17951796
* }</pre>
17961797
*
1797-
* @param name Required. Name of the config to delete.
1798+
* @param name Required. Name of the workstation configuration to delete.
17981799
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
17991800
*/
18001801
public final OperationFuture<WorkstationConfig, OperationMetadata> deleteWorkstationConfigAsync(
@@ -1827,7 +1828,7 @@ public final OperationFuture<WorkstationConfig, OperationMetadata> deleteWorksta
18271828
* }
18281829
* }</pre>
18291830
*
1830-
* @param name Required. Name of the config to delete.
1831+
* @param name Required. Name of the workstation configuration to delete.
18311832
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
18321833
*/
18331834
public final OperationFuture<WorkstationConfig, OperationMetadata> deleteWorkstationConfigAsync(
@@ -2090,7 +2091,7 @@ public final UnaryCallable<GetWorkstationRequest, Workstation> getWorkstationCal
20902091

20912092
// AUTO-GENERATED DOCUMENTATION AND METHOD.
20922093
/**
2093-
* Returns all Workstations using the specified config.
2094+
* Returns all Workstations using the specified workstation configuration.
20942095
*
20952096
* <p>Sample code:
20962097
*
@@ -2123,7 +2124,7 @@ public final ListWorkstationsPagedResponse listWorkstations(WorkstationConfigNam
21232124

21242125
// AUTO-GENERATED DOCUMENTATION AND METHOD.
21252126
/**
2126-
* Returns all Workstations using the specified config.
2127+
* Returns all Workstations using the specified workstation configuration.
21272128
*
21282129
* <p>Sample code:
21292130
*
@@ -2155,7 +2156,7 @@ public final ListWorkstationsPagedResponse listWorkstations(String parent) {
21552156

21562157
// AUTO-GENERATED DOCUMENTATION AND METHOD.
21572158
/**
2158-
* Returns all Workstations using the specified config.
2159+
* Returns all Workstations using the specified workstation configuration.
21592160
*
21602161
* <p>Sample code:
21612162
*
@@ -2193,7 +2194,7 @@ public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequ
21932194

21942195
// AUTO-GENERATED DOCUMENTATION AND METHOD.
21952196
/**
2196-
* Returns all Workstations using the specified config.
2197+
* Returns all Workstations using the specified workstation configuration.
21972198
*
21982199
* <p>Sample code:
21992200
*
@@ -2232,7 +2233,7 @@ public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequ
22322233

22332234
// AUTO-GENERATED DOCUMENTATION AND METHOD.
22342235
/**
2235-
* Returns all Workstations using the specified config.
2236+
* Returns all Workstations using the specified workstation configuration.
22362237
*
22372238
* <p>Sample code:
22382239
*
@@ -2278,8 +2279,8 @@ public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequ
22782279

22792280
// AUTO-GENERATED DOCUMENTATION AND METHOD.
22802281
/**
2281-
* Returns all Workstations using the specified config on which the caller has the
2282-
* "workstations.workstations.use" permission.
2282+
* Returns all workstations using the specified workstation configuration on which the caller has
2283+
* the "workstations.workstations.use" permission.
22832284
*
22842285
* <p>Sample code:
22852286
*
@@ -2313,8 +2314,8 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations(
23132314

23142315
// AUTO-GENERATED DOCUMENTATION AND METHOD.
23152316
/**
2316-
* Returns all Workstations using the specified config on which the caller has the
2317-
* "workstations.workstations.use" permission.
2317+
* Returns all workstations using the specified workstation configuration on which the caller has
2318+
* the "workstations.workstations.use" permission.
23182319
*
23192320
* <p>Sample code:
23202321
*
@@ -2346,8 +2347,8 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations(String p
23462347

23472348
// AUTO-GENERATED DOCUMENTATION AND METHOD.
23482349
/**
2349-
* Returns all Workstations using the specified config on which the caller has the
2350-
* "workstations.workstations.use" permission.
2350+
* Returns all workstations using the specified workstation configuration on which the caller has
2351+
* the "workstations.workstations.use" permission.
23512352
*
23522353
* <p>Sample code:
23532354
*
@@ -2386,8 +2387,8 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations(
23862387

23872388
// AUTO-GENERATED DOCUMENTATION AND METHOD.
23882389
/**
2389-
* Returns all Workstations using the specified config on which the caller has the
2390-
* "workstations.workstations.use" permission.
2390+
* Returns all workstations using the specified workstation configuration on which the caller has
2391+
* the "workstations.workstations.use" permission.
23912392
*
23922393
* <p>Sample code:
23932394
*
@@ -2426,8 +2427,8 @@ public final ListUsableWorkstationsPagedResponse listUsableWorkstations(
24262427

24272428
// AUTO-GENERATED DOCUMENTATION AND METHOD.
24282429
/**
2429-
* Returns all Workstations using the specified config on which the caller has the
2430-
* "workstations.workstations.use" permission.
2430+
* Returns all workstations using the specified workstation configuration on which the caller has
2431+
* the "workstations.workstations.use" permission.
24312432
*
24322433
* <p>Sample code:
24332434
*
@@ -2684,7 +2685,8 @@ public final UnaryCallable<CreateWorkstationRequest, Operation> createWorkstatio
26842685
* }</pre>
26852686
*
26862687
* @param workstation Required. Workstation to update.
2687-
* @param updateMask Required. Mask specifying which fields in the config should be updated.
2688+
* @param updateMask Required. Mask specifying which fields in the workstation configuration
2689+
* should be updated.
26882690
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
26892691
*/
26902692
public final OperationFuture<Workstation, OperationMetadata> updateWorkstationAsync(

java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public void getWorkstationClusterTest() throws Exception {
115115
.setEtag("etag3123477")
116116
.setNetwork("network1843485230")
117117
.setSubnetwork("subnetwork-1302785042")
118+
.setControlPlaneIp("controlPlaneIp-1263362938")
118119
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
119120
.setDegraded(true)
120121
.addAllConditions(new ArrayList<Status>())
@@ -177,6 +178,7 @@ public void getWorkstationClusterTest2() throws Exception {
177178
.setEtag("etag3123477")
178179
.setNetwork("network1843485230")
179180
.setSubnetwork("subnetwork-1302785042")
181+
.setControlPlaneIp("controlPlaneIp-1263362938")
180182
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
181183
.setDegraded(true)
182184
.addAllConditions(new ArrayList<Status>())
@@ -339,6 +341,7 @@ public void createWorkstationClusterTest() throws Exception {
339341
.setEtag("etag3123477")
340342
.setNetwork("network1843485230")
341343
.setSubnetwork("subnetwork-1302785042")
344+
.setControlPlaneIp("controlPlaneIp-1263362938")
342345
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
343346
.setDegraded(true)
344347
.addAllConditions(new ArrayList<Status>())
@@ -411,6 +414,7 @@ public void createWorkstationClusterTest2() throws Exception {
411414
.setEtag("etag3123477")
412415
.setNetwork("network1843485230")
413416
.setSubnetwork("subnetwork-1302785042")
417+
.setControlPlaneIp("controlPlaneIp-1263362938")
414418
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
415419
.setDegraded(true)
416420
.addAllConditions(new ArrayList<Status>())
@@ -483,6 +487,7 @@ public void updateWorkstationClusterTest() throws Exception {
483487
.setEtag("etag3123477")
484488
.setNetwork("network1843485230")
485489
.setSubnetwork("subnetwork-1302785042")
490+
.setControlPlaneIp("controlPlaneIp-1263362938")
486491
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
487492
.setDegraded(true)
488493
.addAllConditions(new ArrayList<Status>())
@@ -511,6 +516,7 @@ public void updateWorkstationClusterTest() throws Exception {
511516
.setEtag("etag3123477")
512517
.setNetwork("network1843485230")
513518
.setSubnetwork("subnetwork-1302785042")
519+
.setControlPlaneIp("controlPlaneIp-1263362938")
514520
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
515521
.setDegraded(true)
516522
.addAllConditions(new ArrayList<Status>())
@@ -560,6 +566,7 @@ public void updateWorkstationClusterExceptionTest() throws Exception {
560566
.setEtag("etag3123477")
561567
.setNetwork("network1843485230")
562568
.setSubnetwork("subnetwork-1302785042")
569+
.setControlPlaneIp("controlPlaneIp-1263362938")
563570
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
564571
.setDegraded(true)
565572
.addAllConditions(new ArrayList<Status>())
@@ -589,6 +596,7 @@ public void deleteWorkstationClusterTest() throws Exception {
589596
.setEtag("etag3123477")
590597
.setNetwork("network1843485230")
591598
.setSubnetwork("subnetwork-1302785042")
599+
.setControlPlaneIp("controlPlaneIp-1263362938")
592600
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
593601
.setDegraded(true)
594602
.addAllConditions(new ArrayList<Status>())
@@ -656,6 +664,7 @@ public void deleteWorkstationClusterTest2() throws Exception {
656664
.setEtag("etag3123477")
657665
.setNetwork("network1843485230")
658666
.setSubnetwork("subnetwork-1302785042")
667+
.setControlPlaneIp("controlPlaneIp-1263362938")
659668
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
660669
.setDegraded(true)
661670
.addAllConditions(new ArrayList<Status>())

java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public void getWorkstationClusterTest() throws Exception {
124124
.setEtag("etag3123477")
125125
.setNetwork("network1843485230")
126126
.setSubnetwork("subnetwork-1302785042")
127+
.setControlPlaneIp("controlPlaneIp-1263362938")
127128
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
128129
.setDegraded(true)
129130
.addAllConditions(new ArrayList<Status>())
@@ -181,6 +182,7 @@ public void getWorkstationClusterTest2() throws Exception {
181182
.setEtag("etag3123477")
182183
.setNetwork("network1843485230")
183184
.setSubnetwork("subnetwork-1302785042")
185+
.setControlPlaneIp("controlPlaneIp-1263362938")
184186
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
185187
.setDegraded(true)
186188
.addAllConditions(new ArrayList<Status>())
@@ -326,6 +328,7 @@ public void createWorkstationClusterTest() throws Exception {
326328
.setEtag("etag3123477")
327329
.setNetwork("network1843485230")
328330
.setSubnetwork("subnetwork-1302785042")
331+
.setControlPlaneIp("controlPlaneIp-1263362938")
329332
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
330333
.setDegraded(true)
331334
.addAllConditions(new ArrayList<Status>())
@@ -398,6 +401,7 @@ public void createWorkstationClusterTest2() throws Exception {
398401
.setEtag("etag3123477")
399402
.setNetwork("network1843485230")
400403
.setSubnetwork("subnetwork-1302785042")
404+
.setControlPlaneIp("controlPlaneIp-1263362938")
401405
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
402406
.setDegraded(true)
403407
.addAllConditions(new ArrayList<Status>())
@@ -470,6 +474,7 @@ public void updateWorkstationClusterTest() throws Exception {
470474
.setEtag("etag3123477")
471475
.setNetwork("network1843485230")
472476
.setSubnetwork("subnetwork-1302785042")
477+
.setControlPlaneIp("controlPlaneIp-1263362938")
473478
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
474479
.setDegraded(true)
475480
.addAllConditions(new ArrayList<Status>())
@@ -537,6 +542,7 @@ public void deleteWorkstationClusterTest() throws Exception {
537542
.setEtag("etag3123477")
538543
.setNetwork("network1843485230")
539544
.setSubnetwork("subnetwork-1302785042")
545+
.setControlPlaneIp("controlPlaneIp-1263362938")
540546
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
541547
.setDegraded(true)
542548
.addAllConditions(new ArrayList<Status>())
@@ -602,6 +608,7 @@ public void deleteWorkstationClusterTest2() throws Exception {
602608
.setEtag("etag3123477")
603609
.setNetwork("network1843485230")
604610
.setSubnetwork("subnetwork-1302785042")
611+
.setControlPlaneIp("controlPlaneIp-1263362938")
605612
.setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build())
606613
.setDegraded(true)
607614
.addAllConditions(new ArrayList<Status>())

0 commit comments

Comments
 (0)