Skip to content

Commit c087490

Browse files
feat: [workstations] add config service_account_scopes (#9790)
* feat: add config service_account_scopes feat: add enable_nested_virtualization feat: add replica_zones feat: add output field start_time docs: adjust documentation wording & annotations PiperOrigin-RevId: 561356238 Source-Link: googleapis/googleapis@8600f86 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6b83437073f0d8ec616c1d88ba00ddfe811135e9 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjZiODM0MzcwNzNmMGQ4ZWM2MTZjMWQ4OGJhMDBkZGZlODExMTM1ZTkifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add config service_account_scopes feat: add enable_nested_virtualization feat: add ephemeral_directories feat: add replica_zones feat: add output field start_time docs: adjust documentation wording & annotations PiperOrigin-RevId: 561356806 Source-Link: googleapis/googleapis@89d1d43 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c567e26be6a7d93b0163633075570c27c6f16714 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImM1NjdlMjZiZTZhN2Q5M2IwMTYzNjMzMDc1NTcwYzI3YzZmMTY3MTQifQ== * 🦉 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 3d82fb4 commit c087490

File tree

93 files changed

+21661
-10696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+21661
-10696
lines changed

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.19.0</version>
26+
<version>26.22.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.9.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.11.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/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,24 @@
11691169
"allDeclaredClasses": true,
11701170
"allPublicClasses": true
11711171
},
1172+
{
1173+
"name": "com.google.cloud.workstations.v1.WorkstationConfig$ReadinessCheck",
1174+
"queryAllDeclaredConstructors": true,
1175+
"queryAllPublicConstructors": true,
1176+
"queryAllDeclaredMethods": true,
1177+
"allPublicMethods": true,
1178+
"allDeclaredClasses": true,
1179+
"allPublicClasses": true
1180+
},
1181+
{
1182+
"name": "com.google.cloud.workstations.v1.WorkstationConfig$ReadinessCheck$Builder",
1183+
"queryAllDeclaredConstructors": true,
1184+
"queryAllPublicConstructors": true,
1185+
"queryAllDeclaredMethods": true,
1186+
"allPublicMethods": true,
1187+
"allDeclaredClasses": true,
1188+
"allPublicClasses": true
1189+
},
11721190
{
11731191
"name": "com.google.iam.v1.AuditConfig",
11741192
"queryAllDeclaredConstructors": true,

java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,42 @@
10521052
"allDeclaredClasses": true,
10531053
"allPublicClasses": true
10541054
},
1055+
{
1056+
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory",
1057+
"queryAllDeclaredConstructors": true,
1058+
"queryAllPublicConstructors": true,
1059+
"queryAllDeclaredMethods": true,
1060+
"allPublicMethods": true,
1061+
"allDeclaredClasses": true,
1062+
"allPublicClasses": true
1063+
},
1064+
{
1065+
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$Builder",
1066+
"queryAllDeclaredConstructors": true,
1067+
"queryAllPublicConstructors": true,
1068+
"queryAllDeclaredMethods": true,
1069+
"allPublicMethods": true,
1070+
"allDeclaredClasses": true,
1071+
"allPublicClasses": true
1072+
},
1073+
{
1074+
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$GcePersistentDisk",
1075+
"queryAllDeclaredConstructors": true,
1076+
"queryAllPublicConstructors": true,
1077+
"queryAllDeclaredMethods": true,
1078+
"allPublicMethods": true,
1079+
"allDeclaredClasses": true,
1080+
"allPublicClasses": true
1081+
},
1082+
{
1083+
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$GcePersistentDisk$Builder",
1084+
"queryAllDeclaredConstructors": true,
1085+
"queryAllPublicConstructors": true,
1086+
"queryAllDeclaredMethods": true,
1087+
"allPublicMethods": true,
1088+
"allDeclaredClasses": true,
1089+
"allPublicClasses": true
1090+
},
10551091
{
10561092
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$Host",
10571093
"queryAllDeclaredConstructors": true,

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ public void getWorkstationConfigTest() throws Exception {
737737
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
738738
.setContainer(WorkstationConfig.Container.newBuilder().build())
739739
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
740+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
741+
.addAllReplicaZones(new ArrayList<String>())
740742
.setDegraded(true)
741743
.addAllConditions(new ArrayList<Status>())
742744
.build();
@@ -805,6 +807,8 @@ public void getWorkstationConfigTest2() throws Exception {
805807
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
806808
.setContainer(WorkstationConfig.Container.newBuilder().build())
807809
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
810+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
811+
.addAllReplicaZones(new ArrayList<String>())
808812
.setDegraded(true)
809813
.addAllConditions(new ArrayList<Status>())
810814
.build();
@@ -1081,6 +1085,8 @@ public void createWorkstationConfigTest() throws Exception {
10811085
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
10821086
.setContainer(WorkstationConfig.Container.newBuilder().build())
10831087
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1088+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1089+
.addAllReplicaZones(new ArrayList<String>())
10841090
.setDegraded(true)
10851091
.addAllConditions(new ArrayList<Status>())
10861092
.build();
@@ -1157,6 +1163,8 @@ public void createWorkstationConfigTest2() throws Exception {
11571163
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
11581164
.setContainer(WorkstationConfig.Container.newBuilder().build())
11591165
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1166+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1167+
.addAllReplicaZones(new ArrayList<String>())
11601168
.setDegraded(true)
11611169
.addAllConditions(new ArrayList<Status>())
11621170
.build();
@@ -1233,6 +1241,8 @@ public void updateWorkstationConfigTest() throws Exception {
12331241
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
12341242
.setContainer(WorkstationConfig.Container.newBuilder().build())
12351243
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1244+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1245+
.addAllReplicaZones(new ArrayList<String>())
12361246
.setDegraded(true)
12371247
.addAllConditions(new ArrayList<Status>())
12381248
.build();
@@ -1265,6 +1275,8 @@ public void updateWorkstationConfigTest() throws Exception {
12651275
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
12661276
.setContainer(WorkstationConfig.Container.newBuilder().build())
12671277
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1278+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1279+
.addAllReplicaZones(new ArrayList<String>())
12681280
.setDegraded(true)
12691281
.addAllConditions(new ArrayList<Status>())
12701282
.build();
@@ -1321,6 +1333,8 @@ public void updateWorkstationConfigExceptionTest() throws Exception {
13211333
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
13221334
.setContainer(WorkstationConfig.Container.newBuilder().build())
13231335
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1336+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1337+
.addAllReplicaZones(new ArrayList<String>())
13241338
.setDegraded(true)
13251339
.addAllConditions(new ArrayList<Status>())
13261340
.build();
@@ -1354,6 +1368,8 @@ public void deleteWorkstationConfigTest() throws Exception {
13541368
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
13551369
.setContainer(WorkstationConfig.Container.newBuilder().build())
13561370
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1371+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1372+
.addAllReplicaZones(new ArrayList<String>())
13571373
.setDegraded(true)
13581374
.addAllConditions(new ArrayList<Status>())
13591375
.build();
@@ -1427,6 +1443,8 @@ public void deleteWorkstationConfigTest2() throws Exception {
14271443
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
14281444
.setContainer(WorkstationConfig.Container.newBuilder().build())
14291445
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
1446+
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
1447+
.addAllReplicaZones(new ArrayList<String>())
14301448
.setDegraded(true)
14311449
.addAllConditions(new ArrayList<Status>())
14321450
.build();
@@ -1494,6 +1512,7 @@ public void getWorkstationTest() throws Exception {
14941512
.putAllLabels(new HashMap<String, String>())
14951513
.setCreateTime(Timestamp.newBuilder().build())
14961514
.setUpdateTime(Timestamp.newBuilder().build())
1515+
.setStartTime(Timestamp.newBuilder().build())
14971516
.setDeleteTime(Timestamp.newBuilder().build())
14981517
.setEtag("etag3123477")
14991518
.setHost("host3208616")
@@ -1567,6 +1586,7 @@ public void getWorkstationTest2() throws Exception {
15671586
.putAllLabels(new HashMap<String, String>())
15681587
.setCreateTime(Timestamp.newBuilder().build())
15691588
.setUpdateTime(Timestamp.newBuilder().build())
1589+
.setStartTime(Timestamp.newBuilder().build())
15701590
.setDeleteTime(Timestamp.newBuilder().build())
15711591
.setEtag("etag3123477")
15721592
.setHost("host3208616")
@@ -1842,6 +1862,7 @@ public void createWorkstationTest() throws Exception {
18421862
.putAllLabels(new HashMap<String, String>())
18431863
.setCreateTime(Timestamp.newBuilder().build())
18441864
.setUpdateTime(Timestamp.newBuilder().build())
1865+
.setStartTime(Timestamp.newBuilder().build())
18451866
.setDeleteTime(Timestamp.newBuilder().build())
18461867
.setEtag("etag3123477")
18471868
.setHost("host3208616")
@@ -1917,6 +1938,7 @@ public void createWorkstationTest2() throws Exception {
19171938
.putAllLabels(new HashMap<String, String>())
19181939
.setCreateTime(Timestamp.newBuilder().build())
19191940
.setUpdateTime(Timestamp.newBuilder().build())
1941+
.setStartTime(Timestamp.newBuilder().build())
19201942
.setDeleteTime(Timestamp.newBuilder().build())
19211943
.setEtag("etag3123477")
19221944
.setHost("host3208616")
@@ -1990,6 +2012,7 @@ public void updateWorkstationTest() throws Exception {
19902012
.putAllLabels(new HashMap<String, String>())
19912013
.setCreateTime(Timestamp.newBuilder().build())
19922014
.setUpdateTime(Timestamp.newBuilder().build())
2015+
.setStartTime(Timestamp.newBuilder().build())
19932016
.setDeleteTime(Timestamp.newBuilder().build())
19942017
.setEtag("etag3123477")
19952018
.setHost("host3208616")
@@ -2019,6 +2042,7 @@ public void updateWorkstationTest() throws Exception {
20192042
.putAllLabels(new HashMap<String, String>())
20202043
.setCreateTime(Timestamp.newBuilder().build())
20212044
.setUpdateTime(Timestamp.newBuilder().build())
2045+
.setStartTime(Timestamp.newBuilder().build())
20222046
.setDeleteTime(Timestamp.newBuilder().build())
20232047
.setEtag("etag3123477")
20242048
.setHost("host3208616")
@@ -2068,6 +2092,7 @@ public void updateWorkstationExceptionTest() throws Exception {
20682092
.putAllLabels(new HashMap<String, String>())
20692093
.setCreateTime(Timestamp.newBuilder().build())
20702094
.setUpdateTime(Timestamp.newBuilder().build())
2095+
.setStartTime(Timestamp.newBuilder().build())
20712096
.setDeleteTime(Timestamp.newBuilder().build())
20722097
.setEtag("etag3123477")
20732098
.setHost("host3208616")
@@ -2098,6 +2123,7 @@ public void deleteWorkstationTest() throws Exception {
20982123
.putAllLabels(new HashMap<String, String>())
20992124
.setCreateTime(Timestamp.newBuilder().build())
21002125
.setUpdateTime(Timestamp.newBuilder().build())
2126+
.setStartTime(Timestamp.newBuilder().build())
21012127
.setDeleteTime(Timestamp.newBuilder().build())
21022128
.setEtag("etag3123477")
21032129
.setHost("host3208616")
@@ -2176,6 +2202,7 @@ public void deleteWorkstationTest2() throws Exception {
21762202
.putAllLabels(new HashMap<String, String>())
21772203
.setCreateTime(Timestamp.newBuilder().build())
21782204
.setUpdateTime(Timestamp.newBuilder().build())
2205+
.setStartTime(Timestamp.newBuilder().build())
21792206
.setDeleteTime(Timestamp.newBuilder().build())
21802207
.setEtag("etag3123477")
21812208
.setHost("host3208616")
@@ -2244,6 +2271,7 @@ public void startWorkstationTest() throws Exception {
22442271
.putAllLabels(new HashMap<String, String>())
22452272
.setCreateTime(Timestamp.newBuilder().build())
22462273
.setUpdateTime(Timestamp.newBuilder().build())
2274+
.setStartTime(Timestamp.newBuilder().build())
22472275
.setDeleteTime(Timestamp.newBuilder().build())
22482276
.setEtag("etag3123477")
22492277
.setHost("host3208616")
@@ -2322,6 +2350,7 @@ public void startWorkstationTest2() throws Exception {
23222350
.putAllLabels(new HashMap<String, String>())
23232351
.setCreateTime(Timestamp.newBuilder().build())
23242352
.setUpdateTime(Timestamp.newBuilder().build())
2353+
.setStartTime(Timestamp.newBuilder().build())
23252354
.setDeleteTime(Timestamp.newBuilder().build())
23262355
.setEtag("etag3123477")
23272356
.setHost("host3208616")
@@ -2390,6 +2419,7 @@ public void stopWorkstationTest() throws Exception {
23902419
.putAllLabels(new HashMap<String, String>())
23912420
.setCreateTime(Timestamp.newBuilder().build())
23922421
.setUpdateTime(Timestamp.newBuilder().build())
2422+
.setStartTime(Timestamp.newBuilder().build())
23932423
.setDeleteTime(Timestamp.newBuilder().build())
23942424
.setEtag("etag3123477")
23952425
.setHost("host3208616")
@@ -2468,6 +2498,7 @@ public void stopWorkstationTest2() throws Exception {
24682498
.putAllLabels(new HashMap<String, String>())
24692499
.setCreateTime(Timestamp.newBuilder().build())
24702500
.setUpdateTime(Timestamp.newBuilder().build())
2501+
.setStartTime(Timestamp.newBuilder().build())
24712502
.setDeleteTime(Timestamp.newBuilder().build())
24722503
.setEtag("etag3123477")
24732504
.setHost("host3208616")

0 commit comments

Comments
 (0)