Skip to content
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 clients/google-api-services-run/v1/2.0.0/README.md
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-run</artifactId>
<version>v1-rev20261016-2.9.2</version>
<version>v1-rev20261023-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-run:v1-rev20261016-2.9.2'
implementation 'com.google.apis:google-api-services-run:v1-rev20261023-2.9.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ public final class InstanceSpec extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String restartPolicy;

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SandboxConfiguration sandboxes;

/**
* Optional. Email address of the IAM service account associated with the Instance. The service
* account represents the identity of the running container, and determines what permissions the
Expand Down Expand Up @@ -129,6 +136,23 @@ public InstanceSpec setRestartPolicy(java.lang.String restartPolicy) {
return this;
}

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* @return value or {@code null} for none
*/
public SandboxConfiguration getSandboxes() {
return sandboxes;
}

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* @param sandboxes sandboxes or {@code null} for none
*/
public InstanceSpec setSandboxes(SandboxConfiguration sandboxes) {
this.sandboxes = sandboxes;
return this;
}

/**
* Optional. Email address of the IAM service account associated with the Instance. The service
* account represents the identity of the running container, and determines what permissions the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ public final class RevisionSpec extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String runtimeClassName;

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SandboxConfiguration sandboxes;

/**
* Email address of the IAM service account associated with the revision of the service. The
* service account represents the identity of the running revision, and determines what
Expand Down Expand Up @@ -216,6 +223,23 @@ public RevisionSpec setRuntimeClassName(java.lang.String runtimeClassName) {
return this;
}

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* @return value or {@code null} for none
*/
public SandboxConfiguration getSandboxes() {
return sandboxes;
}

/**
* Optional. Sandbox configuration that can be launched through the `sandbox` CLI.
* @param sandboxes sandboxes or {@code null} for none
*/
public RevisionSpec setSandboxes(SandboxConfiguration sandboxes) {
this.sandboxes = sandboxes;
return this;
}

/**
* Email address of the IAM service account associated with the revision of the service. The
* service account represents the identity of the running revision, and determines what
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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.run.v1.model;

/**
* Configuration for sandboxes.
*
* <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 Run Admin 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 SandboxConfiguration extends com.google.api.client.json.GenericJson {

/**
* Required. Sandbox templates that can be launched through the `sandbox` CLI.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<SandboxTemplate> templates;

/**
* Required. Sandbox templates that can be launched through the `sandbox` CLI.
* @return value or {@code null} for none
*/
public java.util.List<SandboxTemplate> getTemplates() {
return templates;
}

/**
* Required. Sandbox templates that can be launched through the `sandbox` CLI.
* @param templates templates or {@code null} for none
*/
public SandboxConfiguration setTemplates(java.util.List<SandboxTemplate> templates) {
this.templates = templates;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
/*
* 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.run.v1.model;

/**
* Template for a single sandbox.
*
* <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 Run Admin 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 SandboxTemplate extends com.google.api.client.json.GenericJson {

/**
* Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> args;

/**
* Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used
* if this is not provided.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> command;

/**
* Optional. List of environment variables to set in the sandbox.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<EnvVar> env;

static {
// hack to force ProGuard to consider EnvVar used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(EnvVar.class);
}

/**
* Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not
* provided, Dockerhub is assumed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String image;

/**
* Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Optional. Volume to mount into the container's filesystem.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<VolumeMount> volumeMounts;

/**
* Optional. Container's working directory. If not specified, the container runtime's default will
* be used, which might be configured in the container image.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String workingDir;

/**
* Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getArgs() {
return args;
}

/**
* Optional. Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
* @param args args or {@code null} for none
*/
public SandboxTemplate setArgs(java.util.List<java.lang.String> args) {
this.args = args;
return this;
}

/**
* Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used
* if this is not provided.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getCommand() {
return command;
}

/**
* Optional. Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used
* if this is not provided.
* @param command command or {@code null} for none
*/
public SandboxTemplate setCommand(java.util.List<java.lang.String> command) {
this.command = command;
return this;
}

/**
* Optional. List of environment variables to set in the sandbox.
* @return value or {@code null} for none
*/
public java.util.List<EnvVar> getEnv() {
return env;
}

/**
* Optional. List of environment variables to set in the sandbox.
* @param env env or {@code null} for none
*/
public SandboxTemplate setEnv(java.util.List<EnvVar> env) {
this.env = env;
return this;
}

/**
* Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not
* provided, Dockerhub is assumed.
* @return value or {@code null} for none
*/
public java.lang.String getImage() {
return image;
}

/**
* Required. Name of the container image in Dockerhub or Artifact Registry. If the host is not
* provided, Dockerhub is assumed.
* @param image image or {@code null} for none
*/
public SandboxTemplate setImage(java.lang.String image) {
this.image = image;
return this;
}

/**
* Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* Required. Name of the sandbox specified as a DNS_LABEL (RFC 1123).
* @param name name or {@code null} for none
*/
public SandboxTemplate setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Optional. Volume to mount into the container's filesystem.
* @return value or {@code null} for none
*/
public java.util.List<VolumeMount> getVolumeMounts() {
return volumeMounts;
}

/**
* Optional. Volume to mount into the container's filesystem.
* @param volumeMounts volumeMounts or {@code null} for none
*/
public SandboxTemplate setVolumeMounts(java.util.List<VolumeMount> volumeMounts) {
this.volumeMounts = volumeMounts;
return this;
}

/**
* Optional. Container's working directory. If not specified, the container runtime's default will
* be used, which might be configured in the container image.
* @return value or {@code null} for none
*/
public java.lang.String getWorkingDir() {
return workingDir;
}

/**
* Optional. Container's working directory. If not specified, the container runtime's default will
* be used, which might be configured in the container image.
* @param workingDir workingDir or {@code null} for none
*/
public SandboxTemplate setWorkingDir(java.lang.String workingDir) {
this.workingDir = workingDir;
return this;
}

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

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

}
Loading
Loading