All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.run.v2.model.GoogleCloudRunV2Revision Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-2.0.0
Show newest version
/*
 * 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.v2.model;

/**
 * A Revision is an immutable snapshot of code and configuration. A Revision references a container
 * image. Revisions are only created by updates to its parent Service.
 *
 * 

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: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudRunV2Revision extends com.google.api.client.json.GenericJson { /** * Output only. Unstructured key value map that may be set by external tools to store and * arbitrary metadata. They are not queryable and should be preserved when modifying objects. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map annotations; /** * Output only. The Condition of this Revision, containing its readiness status, and detailed * error information in case it did not reach a serving state. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List conditions; static { // hack to force ProGuard to consider GoogleCloudRunV2Condition 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(GoogleCloudRunV2Condition.class); } /** * Holds the single container that defines the unit of execution for this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List containers; static { // hack to force ProGuard to consider GoogleCloudRunV2Container 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(GoogleCloudRunV2Container.class); } /** * Output only. The creation time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * Output only. For a deleted resource, the deletion time. It is only populated as a response to a * Delete request. * The value may be {@code null}. */ @com.google.api.client.util.Key private String deleteTime; /** * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String encryptionKey; /** * The action to take if the encryption key is revoked. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String encryptionKeyRevocationAction; /** * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all * instances. The minimum increment is 1 hour. * The value may be {@code null}. */ @com.google.api.client.util.Key private String encryptionKeyShutdownDuration; /** * Output only. A system-generated fingerprint for this version of the resource. May be used to * detect modification conflict during updates. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String etag; /** * The execution environment being used to host this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String executionEnvironment; /** * Output only. For a deleted resource, the time after which it will be permamently deleted. It is * only populated as a response to a Delete request. * The value may be {@code null}. */ @com.google.api.client.util.Key private String expireTime; /** * Output only. A number that monotonically increases every time the user modifies the desired * state. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long generation; /** * Output only. Unstructured key value map that can be used to organize and categorize objects. * User-provided labels are shared with Google's billing system, so they can be used to filter, or * break down billing charges by team, component, environment, state, etc. For more information, * visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or * https://cloud.google.com/run/docs/configuring/labels. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * The least stable launch stage needed to create this resource, as defined by [Google Cloud * Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For * example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level * features are were, this field will be BETA. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String launchStage; /** * Output only. The Google Console URI to obtain logs for the Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String logUri; /** * Sets the maximum number of requests that each serving instance can receive. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxInstanceRequestConcurrency; /** * Output only. The unique name of this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * The node selector for the revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2NodeSelector nodeSelector; /** * Output only. The generation of this Revision currently serving traffic. See comments in * `reconciling` for additional information on reconciliation process in Cloud Run. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long observedGeneration; /** * Output only. Indicates whether the resource's reconciliation is still in progress. See comments * in `Service.reconciling` for additional information on reconciliation process in Cloud Run. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean reconciling; /** * Output only. Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean satisfiesPzs; /** * Scaling settings for this revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2RevisionScaling scaling; /** * Output only. The current effective scaling settings for the revision. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2RevisionScalingStatus scalingStatus; /** * Output only. The name of the parent service. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String service; /** * 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 * permissions the revision has. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String serviceAccount; /** * Enables service mesh connectivity. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2ServiceMesh serviceMesh; /** * Enable session affinity. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean sessionAffinity; /** * Max allowed time for an instance to respond to a request. * The value may be {@code null}. */ @com.google.api.client.util.Key private String timeout; /** * Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string * and guaranteed to remain unchanged until the resource is deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uid; /** * Output only. The last-modified time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * A list of Volumes to make available to containers. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List volumes; /** * VPC Access configuration for this Revision. For more information, visit * https://cloud.google.com/run/docs/configuring/connecting-vpc. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudRunV2VpcAccess vpcAccess; /** * Output only. Unstructured key value map that may be set by external tools to store and * arbitrary metadata. They are not queryable and should be preserved when modifying objects. * @return value or {@code null} for none */ public java.util.Map getAnnotations() { return annotations; } /** * Output only. Unstructured key value map that may be set by external tools to store and * arbitrary metadata. They are not queryable and should be preserved when modifying objects. * @param annotations annotations or {@code null} for none */ public GoogleCloudRunV2Revision setAnnotations(java.util.Map annotations) { this.annotations = annotations; return this; } /** * Output only. The Condition of this Revision, containing its readiness status, and detailed * error information in case it did not reach a serving state. * @return value or {@code null} for none */ public java.util.List getConditions() { return conditions; } /** * Output only. The Condition of this Revision, containing its readiness status, and detailed * error information in case it did not reach a serving state. * @param conditions conditions or {@code null} for none */ public GoogleCloudRunV2Revision setConditions(java.util.List conditions) { this.conditions = conditions; return this; } /** * Holds the single container that defines the unit of execution for this Revision. * @return value or {@code null} for none */ public java.util.List getContainers() { return containers; } /** * Holds the single container that defines the unit of execution for this Revision. * @param containers containers or {@code null} for none */ public GoogleCloudRunV2Revision setContainers(java.util.List containers) { this.containers = containers; return this; } /** * Output only. The creation time. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The creation time. * @param createTime createTime or {@code null} for none */ public GoogleCloudRunV2Revision setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * Output only. For a deleted resource, the deletion time. It is only populated as a response to a * Delete request. * @return value or {@code null} for none */ public String getDeleteTime() { return deleteTime; } /** * Output only. For a deleted resource, the deletion time. It is only populated as a response to a * Delete request. * @param deleteTime deleteTime or {@code null} for none */ public GoogleCloudRunV2Revision setDeleteTime(String deleteTime) { this.deleteTime = deleteTime; return this; } /** * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * @return value or {@code null} for none */ public java.lang.String getEncryptionKey() { return encryptionKey; } /** * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek * @param encryptionKey encryptionKey or {@code null} for none */ public GoogleCloudRunV2Revision setEncryptionKey(java.lang.String encryptionKey) { this.encryptionKey = encryptionKey; return this; } /** * The action to take if the encryption key is revoked. * @return value or {@code null} for none */ public java.lang.String getEncryptionKeyRevocationAction() { return encryptionKeyRevocationAction; } /** * The action to take if the encryption key is revoked. * @param encryptionKeyRevocationAction encryptionKeyRevocationAction or {@code null} for none */ public GoogleCloudRunV2Revision setEncryptionKeyRevocationAction(java.lang.String encryptionKeyRevocationAction) { this.encryptionKeyRevocationAction = encryptionKeyRevocationAction; return this; } /** * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all * instances. The minimum increment is 1 hour. * @return value or {@code null} for none */ public String getEncryptionKeyShutdownDuration() { return encryptionKeyShutdownDuration; } /** * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all * instances. The minimum increment is 1 hour. * @param encryptionKeyShutdownDuration encryptionKeyShutdownDuration or {@code null} for none */ public GoogleCloudRunV2Revision setEncryptionKeyShutdownDuration(String encryptionKeyShutdownDuration) { this.encryptionKeyShutdownDuration = encryptionKeyShutdownDuration; return this; } /** * Output only. A system-generated fingerprint for this version of the resource. May be used to * detect modification conflict during updates. * @return value or {@code null} for none */ public java.lang.String getEtag() { return etag; } /** * Output only. A system-generated fingerprint for this version of the resource. May be used to * detect modification conflict during updates. * @param etag etag or {@code null} for none */ public GoogleCloudRunV2Revision setEtag(java.lang.String etag) { this.etag = etag; return this; } /** * The execution environment being used to host this Revision. * @return value or {@code null} for none */ public java.lang.String getExecutionEnvironment() { return executionEnvironment; } /** * The execution environment being used to host this Revision. * @param executionEnvironment executionEnvironment or {@code null} for none */ public GoogleCloudRunV2Revision setExecutionEnvironment(java.lang.String executionEnvironment) { this.executionEnvironment = executionEnvironment; return this; } /** * Output only. For a deleted resource, the time after which it will be permamently deleted. It is * only populated as a response to a Delete request. * @return value or {@code null} for none */ public String getExpireTime() { return expireTime; } /** * Output only. For a deleted resource, the time after which it will be permamently deleted. It is * only populated as a response to a Delete request. * @param expireTime expireTime or {@code null} for none */ public GoogleCloudRunV2Revision setExpireTime(String expireTime) { this.expireTime = expireTime; return this; } /** * Output only. A number that monotonically increases every time the user modifies the desired * state. * @return value or {@code null} for none */ public java.lang.Long getGeneration() { return generation; } /** * Output only. A number that monotonically increases every time the user modifies the desired * state. * @param generation generation or {@code null} for none */ public GoogleCloudRunV2Revision setGeneration(java.lang.Long generation) { this.generation = generation; return this; } /** * Output only. Unstructured key value map that can be used to organize and categorize objects. * User-provided labels are shared with Google's billing system, so they can be used to filter, or * break down billing charges by team, component, environment, state, etc. For more information, * visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or * https://cloud.google.com/run/docs/configuring/labels. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * Output only. Unstructured key value map that can be used to organize and categorize objects. * User-provided labels are shared with Google's billing system, so they can be used to filter, or * break down billing charges by team, component, environment, state, etc. For more information, * visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or * https://cloud.google.com/run/docs/configuring/labels. * @param labels labels or {@code null} for none */ public GoogleCloudRunV2Revision setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * The least stable launch stage needed to create this resource, as defined by [Google Cloud * Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For * example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level * features are were, this field will be BETA. * @return value or {@code null} for none */ public java.lang.String getLaunchStage() { return launchStage; } /** * The least stable launch stage needed to create this resource, as defined by [Google Cloud * Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For * example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level * features are were, this field will be BETA. * @param launchStage launchStage or {@code null} for none */ public GoogleCloudRunV2Revision setLaunchStage(java.lang.String launchStage) { this.launchStage = launchStage; return this; } /** * Output only. The Google Console URI to obtain logs for the Revision. * @return value or {@code null} for none */ public java.lang.String getLogUri() { return logUri; } /** * Output only. The Google Console URI to obtain logs for the Revision. * @param logUri logUri or {@code null} for none */ public GoogleCloudRunV2Revision setLogUri(java.lang.String logUri) { this.logUri = logUri; return this; } /** * Sets the maximum number of requests that each serving instance can receive. * @return value or {@code null} for none */ public java.lang.Integer getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency; } /** * Sets the maximum number of requests that each serving instance can receive. * @param maxInstanceRequestConcurrency maxInstanceRequestConcurrency or {@code null} for none */ public GoogleCloudRunV2Revision setMaxInstanceRequestConcurrency(java.lang.Integer maxInstanceRequestConcurrency) { this.maxInstanceRequestConcurrency = maxInstanceRequestConcurrency; return this; } /** * Output only. The unique name of this Revision. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Output only. The unique name of this Revision. * @param name name or {@code null} for none */ public GoogleCloudRunV2Revision setName(java.lang.String name) { this.name = name; return this; } /** * The node selector for the revision. * @return value or {@code null} for none */ public GoogleCloudRunV2NodeSelector getNodeSelector() { return nodeSelector; } /** * The node selector for the revision. * @param nodeSelector nodeSelector or {@code null} for none */ public GoogleCloudRunV2Revision setNodeSelector(GoogleCloudRunV2NodeSelector nodeSelector) { this.nodeSelector = nodeSelector; return this; } /** * Output only. The generation of this Revision currently serving traffic. See comments in * `reconciling` for additional information on reconciliation process in Cloud Run. * @return value or {@code null} for none */ public java.lang.Long getObservedGeneration() { return observedGeneration; } /** * Output only. The generation of this Revision currently serving traffic. See comments in * `reconciling` for additional information on reconciliation process in Cloud Run. * @param observedGeneration observedGeneration or {@code null} for none */ public GoogleCloudRunV2Revision setObservedGeneration(java.lang.Long observedGeneration) { this.observedGeneration = observedGeneration; return this; } /** * Output only. Indicates whether the resource's reconciliation is still in progress. See comments * in `Service.reconciling` for additional information on reconciliation process in Cloud Run. * @return value or {@code null} for none */ public java.lang.Boolean getReconciling() { return reconciling; } /** * Output only. Indicates whether the resource's reconciliation is still in progress. See comments * in `Service.reconciling` for additional information on reconciliation process in Cloud Run. * @param reconciling reconciling or {@code null} for none */ public GoogleCloudRunV2Revision setReconciling(java.lang.Boolean reconciling) { this.reconciling = reconciling; return this; } /** * Output only. Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { return satisfiesPzs; } /** * Output only. Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public GoogleCloudRunV2Revision setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { this.satisfiesPzs = satisfiesPzs; return this; } /** * Scaling settings for this revision. * @return value or {@code null} for none */ public GoogleCloudRunV2RevisionScaling getScaling() { return scaling; } /** * Scaling settings for this revision. * @param scaling scaling or {@code null} for none */ public GoogleCloudRunV2Revision setScaling(GoogleCloudRunV2RevisionScaling scaling) { this.scaling = scaling; return this; } /** * Output only. The current effective scaling settings for the revision. * @return value or {@code null} for none */ public GoogleCloudRunV2RevisionScalingStatus getScalingStatus() { return scalingStatus; } /** * Output only. The current effective scaling settings for the revision. * @param scalingStatus scalingStatus or {@code null} for none */ public GoogleCloudRunV2Revision setScalingStatus(GoogleCloudRunV2RevisionScalingStatus scalingStatus) { this.scalingStatus = scalingStatus; return this; } /** * Output only. The name of the parent service. * @return value or {@code null} for none */ public java.lang.String getService() { return service; } /** * Output only. The name of the parent service. * @param service service or {@code null} for none */ public GoogleCloudRunV2Revision setService(java.lang.String service) { this.service = service; 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 * permissions the revision has. * @return value or {@code null} for none */ public java.lang.String getServiceAccount() { return serviceAccount; } /** * 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 * permissions the revision has. * @param serviceAccount serviceAccount or {@code null} for none */ public GoogleCloudRunV2Revision setServiceAccount(java.lang.String serviceAccount) { this.serviceAccount = serviceAccount; return this; } /** * Enables service mesh connectivity. * @return value or {@code null} for none */ public GoogleCloudRunV2ServiceMesh getServiceMesh() { return serviceMesh; } /** * Enables service mesh connectivity. * @param serviceMesh serviceMesh or {@code null} for none */ public GoogleCloudRunV2Revision setServiceMesh(GoogleCloudRunV2ServiceMesh serviceMesh) { this.serviceMesh = serviceMesh; return this; } /** * Enable session affinity. * @return value or {@code null} for none */ public java.lang.Boolean getSessionAffinity() { return sessionAffinity; } /** * Enable session affinity. * @param sessionAffinity sessionAffinity or {@code null} for none */ public GoogleCloudRunV2Revision setSessionAffinity(java.lang.Boolean sessionAffinity) { this.sessionAffinity = sessionAffinity; return this; } /** * Max allowed time for an instance to respond to a request. * @return value or {@code null} for none */ public String getTimeout() { return timeout; } /** * Max allowed time for an instance to respond to a request. * @param timeout timeout or {@code null} for none */ public GoogleCloudRunV2Revision setTimeout(String timeout) { this.timeout = timeout; return this; } /** * Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string * and guaranteed to remain unchanged until the resource is deleted. * @return value or {@code null} for none */ public java.lang.String getUid() { return uid; } /** * Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string * and guaranteed to remain unchanged until the resource is deleted. * @param uid uid or {@code null} for none */ public GoogleCloudRunV2Revision setUid(java.lang.String uid) { this.uid = uid; return this; } /** * Output only. The last-modified time. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. The last-modified time. * @param updateTime updateTime or {@code null} for none */ public GoogleCloudRunV2Revision setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * A list of Volumes to make available to containers. * @return value or {@code null} for none */ public java.util.List getVolumes() { return volumes; } /** * A list of Volumes to make available to containers. * @param volumes volumes or {@code null} for none */ public GoogleCloudRunV2Revision setVolumes(java.util.List volumes) { this.volumes = volumes; return this; } /** * VPC Access configuration for this Revision. For more information, visit * https://cloud.google.com/run/docs/configuring/connecting-vpc. * @return value or {@code null} for none */ public GoogleCloudRunV2VpcAccess getVpcAccess() { return vpcAccess; } /** * VPC Access configuration for this Revision. For more information, visit * https://cloud.google.com/run/docs/configuring/connecting-vpc. * @param vpcAccess vpcAccess or {@code null} for none */ public GoogleCloudRunV2Revision setVpcAccess(GoogleCloudRunV2VpcAccess vpcAccess) { this.vpcAccess = vpcAccess; return this; } @Override public GoogleCloudRunV2Revision set(String fieldName, Object value) { return (GoogleCloudRunV2Revision) super.set(fieldName, value); } @Override public GoogleCloudRunV2Revision clone() { return (GoogleCloudRunV2Revision) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy