Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [workstations] add config service_account_scopes #9790

Merged
merged 4 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java-workstations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.22.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-workstations/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.9.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.11.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1.WorkstationConfig$ReadinessCheck",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1.WorkstationConfig$ReadinessCheck$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.iam.v1.AuditConfig",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,42 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$GcePersistentDisk",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$EphemeralDirectory$GcePersistentDisk$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.workstations.v1beta.WorkstationConfig$Host",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ public void getWorkstationConfigTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -805,6 +807,8 @@ public void getWorkstationConfigTest2() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1081,6 +1085,8 @@ public void createWorkstationConfigTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1157,6 +1163,8 @@ public void createWorkstationConfigTest2() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1233,6 +1241,8 @@ public void updateWorkstationConfigTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1265,6 +1275,8 @@ public void updateWorkstationConfigTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1321,6 +1333,8 @@ public void updateWorkstationConfigExceptionTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1354,6 +1368,8 @@ public void deleteWorkstationConfigTest() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1427,6 +1443,8 @@ public void deleteWorkstationConfigTest2() throws Exception {
.addAllPersistentDirectories(new ArrayList<WorkstationConfig.PersistentDirectory>())
.setContainer(WorkstationConfig.Container.newBuilder().build())
.setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build())
.addAllReadinessChecks(new ArrayList<WorkstationConfig.ReadinessCheck>())
.addAllReplicaZones(new ArrayList<String>())
.setDegraded(true)
.addAllConditions(new ArrayList<Status>())
.build();
Expand Down Expand Up @@ -1494,6 +1512,7 @@ public void getWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -1567,6 +1586,7 @@ public void getWorkstationTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -1842,6 +1862,7 @@ public void createWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -1917,6 +1938,7 @@ public void createWorkstationTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -1990,6 +2012,7 @@ public void updateWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2019,6 +2042,7 @@ public void updateWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2068,6 +2092,7 @@ public void updateWorkstationExceptionTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2098,6 +2123,7 @@ public void deleteWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2176,6 +2202,7 @@ public void deleteWorkstationTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2244,6 +2271,7 @@ public void startWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2322,6 +2350,7 @@ public void startWorkstationTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2390,6 +2419,7 @@ public void stopWorkstationTest() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down Expand Up @@ -2468,6 +2498,7 @@ public void stopWorkstationTest2() throws Exception {
.putAllLabels(new HashMap<String, String>())
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setStartTime(Timestamp.newBuilder().build())
.setDeleteTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.setHost("host3208616")
Expand Down
Loading