Skip to content

Commit

Permalink
chore: regenerate workstations client (#18024)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 7, 2023
1 parent f04c912 commit 6af59a5
Show file tree
Hide file tree
Showing 7 changed files with 370 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-workstations</artifactId>
<version>v1beta-rev20230802-2.0.0</version>
<version>v1beta-rev20230904-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-workstations:v1beta-rev20230802-2.0.0'
implementation 'com.google.apis:google-api-services-workstations:v1beta-rev20230904-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.workstations.v1beta.model;

/**
* An ephemeral directory which won't persist across workstation sessions. It is freshly created on
* every workstation start operation.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Workstations API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class EphemeralDirectory extends com.google.api.client.json.GenericJson {

/**
* An EphemeralDirectory backed by a Compute Engine persistent disk.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GcePersistentDisk gcePd;

/**
* Required. Location of this directory in the running workstation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String mountPath;

/**
* An EphemeralDirectory backed by a Compute Engine persistent disk.
* @return value or {@code null} for none
*/
public GcePersistentDisk getGcePd() {
return gcePd;
}

/**
* An EphemeralDirectory backed by a Compute Engine persistent disk.
* @param gcePd gcePd or {@code null} for none
*/
public EphemeralDirectory setGcePd(GcePersistentDisk gcePd) {
this.gcePd = gcePd;
return this;
}

/**
* Required. Location of this directory in the running workstation.
* @return value or {@code null} for none
*/
public java.lang.String getMountPath() {
return mountPath;
}

/**
* Required. Location of this directory in the running workstation.
* @param mountPath mountPath or {@code null} for none
*/
public EphemeralDirectory setMountPath(java.lang.String mountPath) {
this.mountPath = mountPath;
return this;
}

@Override
public EphemeralDirectory set(String fieldName, Object value) {
return (EphemeralDirectory) super.set(fieldName, value);
}

@Override
public EphemeralDirectory clone() {
return (EphemeralDirectory) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ public final class GceInstance extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String serviceAccount;

/**
* Optional. Scopes to grant to the service_account. Various scopes are automatically added based
* on feature usage. When specified, users of workstations under this configuration must have
* `iam.serviceAccounts.actAs` on the service account.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> serviceAccountScopes;

/**
* Optional. A set of Compute Engine Shielded instance options.
* The value may be {@code null}.
Expand Down Expand Up @@ -377,6 +386,27 @@ public GceInstance setServiceAccount(java.lang.String serviceAccount) {
return this;
}

/**
* Optional. Scopes to grant to the service_account. Various scopes are automatically added based
* on feature usage. When specified, users of workstations under this configuration must have
* `iam.serviceAccounts.actAs` on the service account.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getServiceAccountScopes() {
return serviceAccountScopes;
}

/**
* Optional. Scopes to grant to the service_account. Various scopes are automatically added based
* on feature usage. When specified, users of workstations under this configuration must have
* `iam.serviceAccounts.actAs` on the service account.
* @param serviceAccountScopes serviceAccountScopes or {@code null} for none
*/
public GceInstance setServiceAccountScopes(java.util.List<java.lang.String> serviceAccountScopes) {
this.serviceAccountScopes = serviceAccountScopes;
return this;
}

/**
* Optional. A set of Compute Engine Shielded instance options.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.workstations.v1beta.model;

/**
* An EphemeralDirectory is backed by a Compute Engine persistent disk.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Workstations API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GcePersistentDisk extends com.google.api.client.json.GenericJson {

/**
* Optional. Type of the disk to use. Defaults to `"pd-standard"`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String diskType;

/**
* Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and
* source_snapshot must be set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean readOnly;

/**
* Optional. Name of the disk image to use as the source for the disk. Must be empty if
* source_snapshot is set. Updating source_image will update content in the ephemeral directory
* after the workstation is restarted. This field is mutable.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceImage;

/**
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image
* is set. Updating source_snapshot will update content in the ephemeral directory after the
* workstation is restarted. This field is mutable.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sourceSnapshot;

/**
* Optional. Type of the disk to use. Defaults to `"pd-standard"`.
* @return value or {@code null} for none
*/
public java.lang.String getDiskType() {
return diskType;
}

/**
* Optional. Type of the disk to use. Defaults to `"pd-standard"`.
* @param diskType diskType or {@code null} for none
*/
public GcePersistentDisk setDiskType(java.lang.String diskType) {
this.diskType = diskType;
return this;
}

/**
* Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and
* source_snapshot must be set.
* @return value or {@code null} for none
*/
public java.lang.Boolean getReadOnly() {
return readOnly;
}

/**
* Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and
* source_snapshot must be set.
* @param readOnly readOnly or {@code null} for none
*/
public GcePersistentDisk setReadOnly(java.lang.Boolean readOnly) {
this.readOnly = readOnly;
return this;
}

/**
* Optional. Name of the disk image to use as the source for the disk. Must be empty if
* source_snapshot is set. Updating source_image will update content in the ephemeral directory
* after the workstation is restarted. This field is mutable.
* @return value or {@code null} for none
*/
public java.lang.String getSourceImage() {
return sourceImage;
}

/**
* Optional. Name of the disk image to use as the source for the disk. Must be empty if
* source_snapshot is set. Updating source_image will update content in the ephemeral directory
* after the workstation is restarted. This field is mutable.
* @param sourceImage sourceImage or {@code null} for none
*/
public GcePersistentDisk setSourceImage(java.lang.String sourceImage) {
this.sourceImage = sourceImage;
return this;
}

/**
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image
* is set. Updating source_snapshot will update content in the ephemeral directory after the
* workstation is restarted. This field is mutable.
* @return value or {@code null} for none
*/
public java.lang.String getSourceSnapshot() {
return sourceSnapshot;
}

/**
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image
* is set. Updating source_snapshot will update content in the ephemeral directory after the
* workstation is restarted. This field is mutable.
* @param sourceSnapshot sourceSnapshot or {@code null} for none
*/
public GcePersistentDisk setSourceSnapshot(java.lang.String sourceSnapshot) {
this.sourceSnapshot = sourceSnapshot;
return this;
}

@Override
public GcePersistentDisk set(String fieldName, Object value) {
return (GcePersistentDisk) super.set(fieldName, value);
}

@Override
public GcePersistentDisk clone() {
return (GcePersistentDisk) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ public final class Workstation extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.Boolean reconciling;

/**
* Output only. Time when this workstation was most recently successfully started, regardless of
* the workstation's initial state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String startTime;

/**
* Output only. Current state of the workstation.
* The value may be {@code null}.
Expand Down Expand Up @@ -309,6 +317,25 @@ public Workstation setReconciling(java.lang.Boolean reconciling) {
return this;
}

/**
* Output only. Time when this workstation was most recently successfully started, regardless of
* the workstation's initial state.
* @return value or {@code null} for none
*/
public String getStartTime() {
return startTime;
}

/**
* Output only. Time when this workstation was most recently successfully started, regardless of
* the workstation's initial state.
* @param startTime startTime or {@code null} for none
*/
public Workstation setStartTime(String startTime) {
this.startTime = startTime;
return this;
}

/**
* Output only. Current state of the workstation.
* @return value or {@code null} for none
Expand Down
Loading

0 comments on commit 6af59a5

Please sign in to comment.