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

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public class CloudRunScopes {
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";

/** See, edit, configure, and delete your Google Cloud Run data and see the email address for your Google Account. */
public static final String RUN = "https://www.googleapis.com/auth/run";

/** See your Google Cloud Run data and the email address of your Google Account. */
public static final String RUN_READONLY = "https://www.googleapis.com/auth/run.readonly";

/**
* Returns an unmodifiable set that contains all scopes declared by this class.
*
Expand All @@ -34,6 +40,8 @@ public class CloudRunScopes {
public static java.util.Set<String> all() {
java.util.Set<String> set = new java.util.HashSet<String>();
set.add(CLOUD_PLATFORM);
set.add(RUN);
set.add(RUN_READONLY);
return java.util.Collections.unmodifiableSet(set);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
/*
* 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;

/**
* Instance represents the configuration of a single Instance, which references a container image
* which is run to completion.
*
* <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 Instance extends com.google.api.client.json.GenericJson {

/**
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers
* should convert recognized schemas to the latest internal value, and may reject unrecognized
* values.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String apiVersion;

/**
* Optional. Kind is a string value representing the REST resource this object represents. Servers
* may infer this from the endpoint the client submits requests to. Cannot be updated. In
* CamelCase.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;

/**
* Optional. Standard object's metadata.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ObjectMeta metadata;

/**
* Optional. Specification of the desired behavior of a Instance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private InstanceSpec spec;

/**
* Output only. Current status of a Instance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private InstanceStatus status;

/**
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers
* should convert recognized schemas to the latest internal value, and may reject unrecognized
* values.
* @return value or {@code null} for none
*/
public java.lang.String getApiVersion() {
return apiVersion;
}

/**
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers
* should convert recognized schemas to the latest internal value, and may reject unrecognized
* values.
* @param apiVersion apiVersion or {@code null} for none
*/
public Instance setApiVersion(java.lang.String apiVersion) {
this.apiVersion = apiVersion;
return this;
}

/**
* Optional. Kind is a string value representing the REST resource this object represents. Servers
* may infer this from the endpoint the client submits requests to. Cannot be updated. In
* CamelCase.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}

/**
* Optional. Kind is a string value representing the REST resource this object represents. Servers
* may infer this from the endpoint the client submits requests to. Cannot be updated. In
* CamelCase.
* @param kind kind or {@code null} for none
*/
public Instance setKind(java.lang.String kind) {
this.kind = kind;
return this;
}

/**
* Optional. Standard object's metadata.
* @return value or {@code null} for none
*/
public ObjectMeta getMetadata() {
return metadata;
}

/**
* Optional. Standard object's metadata.
* @param metadata metadata or {@code null} for none
*/
public Instance setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
return this;
}

/**
* Optional. Specification of the desired behavior of a Instance.
* @return value or {@code null} for none
*/
public InstanceSpec getSpec() {
return spec;
}

/**
* Optional. Specification of the desired behavior of a Instance.
* @param spec spec or {@code null} for none
*/
public Instance setSpec(InstanceSpec spec) {
this.spec = spec;
return this;
}

/**
* Output only. Current status of a Instance.
* @return value or {@code null} for none
*/
public InstanceStatus getStatus() {
return status;
}

/**
* Output only. Current status of a Instance.
* @param status status or {@code null} for none
*/
public Instance setStatus(InstanceStatus status) {
this.status = status;
return this;
}

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
/*
* 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;

/**
* InstanceSpec describes how the Instance will look.
*
* <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 InstanceSpec extends com.google.api.client.json.GenericJson {

/**
* Optional. List of containers belonging to the Instance. We disallow a number of fields on this
* Container.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Container> containers;

static {
// hack to force ProGuard to consider Container 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(Container.class);
}

/**
* Optional. The Node Selector configuration. Map of selector key to a value which matches a node.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.String> nodeSelector;

/**
* 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
* Instance has. If not provided, the Instance will use the project's default service account.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String serviceAccountName;

/**
* Optional. Duration the instance may be active before the system will shut it down.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String timeout;

/**
* Optional. List of volumes that can be mounted by containers belonging to the Instance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Volume> volumes;

/**
* Optional. List of containers belonging to the Instance. We disallow a number of fields on this
* Container.
* @return value or {@code null} for none
*/
public java.util.List<Container> getContainers() {
return containers;
}

/**
* Optional. List of containers belonging to the Instance. We disallow a number of fields on this
* Container.
* @param containers containers or {@code null} for none
*/
public InstanceSpec setContainers(java.util.List<Container> containers) {
this.containers = containers;
return this;
}

/**
* Optional. The Node Selector configuration. Map of selector key to a value which matches a node.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getNodeSelector() {
return nodeSelector;
}

/**
* Optional. The Node Selector configuration. Map of selector key to a value which matches a node.
* @param nodeSelector nodeSelector or {@code null} for none
*/
public InstanceSpec setNodeSelector(java.util.Map<String, java.lang.String> nodeSelector) {
this.nodeSelector = nodeSelector;
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
* Instance has. If not provided, the Instance will use the project's default service account.
* @return value or {@code null} for none
*/
public java.lang.String getServiceAccountName() {
return serviceAccountName;
}

/**
* 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
* Instance has. If not provided, the Instance will use the project's default service account.
* @param serviceAccountName serviceAccountName or {@code null} for none
*/
public InstanceSpec setServiceAccountName(java.lang.String serviceAccountName) {
this.serviceAccountName = serviceAccountName;
return this;
}

/**
* Optional. Duration the instance may be active before the system will shut it down.
* @return value or {@code null} for none
*/
public String getTimeout() {
return timeout;
}

/**
* Optional. Duration the instance may be active before the system will shut it down.
* @param timeout timeout or {@code null} for none
*/
public InstanceSpec setTimeout(String timeout) {
this.timeout = timeout;
return this;
}

/**
* Optional. List of volumes that can be mounted by containers belonging to the Instance.
* @return value or {@code null} for none
*/
public java.util.List<Volume> getVolumes() {
return volumes;
}

/**
* Optional. List of volumes that can be mounted by containers belonging to the Instance.
* @param volumes volumes or {@code null} for none
*/
public InstanceSpec setVolumes(java.util.List<Volume> volumes) {
this.volumes = volumes;
return this;
}

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

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

}
Loading
Loading