Show / Hide Table of Contents

Class GoogleCloudRunV2RevisionTemplate

RevisionTemplate describes the data a revision should have when created from a template.

Inheritance
object
GoogleCloudRunV2RevisionTemplate
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRun.v2.Data
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class GoogleCloudRunV2RevisionTemplate : IDirectResponseSchema

Properties

Annotations

Optional. 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. Cloud Run API v2 does not support annotations with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.

Declaration
[JsonProperty("annotations")]
public virtual IDictionary<string, string> Annotations { get; set; }
Property Value
Type Description
IDictionary<string, string>

Containers

Holds the single container that defines the unit of execution for this Revision.

Declaration
[JsonProperty("containers")]
public virtual IList<GoogleCloudRunV2Container> Containers { get; set; }
Property Value
Type Description
IList<GoogleCloudRunV2Container>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

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

Declaration
[JsonProperty("encryptionKey")]
public virtual string EncryptionKey { get; set; }
Property Value
Type Description
string

EncryptionKeyRevocationAction

Optional. The action to take if the encryption key is revoked.

Declaration
[JsonProperty("encryptionKeyRevocationAction")]
public virtual string EncryptionKeyRevocationAction { get; set; }
Property Value
Type Description
string

EncryptionKeyShutdownDuration

Optional. If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.

Declaration
[JsonProperty("encryptionKeyShutdownDuration")]
public virtual object EncryptionKeyShutdownDuration { get; set; }
Property Value
Type Description
object

ExecutionEnvironment

Optional. The sandbox environment to host this Revision.

Declaration
[JsonProperty("executionEnvironment")]
public virtual string ExecutionEnvironment { get; set; }
Property Value
Type Description
string

GpuZonalRedundancyDisabled

Optional. True if GPU zonal redundancy is disabled on this revision.

Declaration
[JsonProperty("gpuZonalRedundancyDisabled")]
public virtual bool? GpuZonalRedundancyDisabled { get; set; }
Property Value
Type Description
bool?

HealthCheckDisabled

Optional. Disables health checking containers during deployment.

Declaration
[JsonProperty("healthCheckDisabled")]
public virtual bool? HealthCheckDisabled { get; set; }
Property Value
Type Description
bool?

Labels

Optional. 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. Cloud Run API v2 does not support labels with run.googleapis.com, cloud.googleapis.com, serving.knative.dev, or autoscaling.knative.dev namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.

Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type Description
IDictionary<string, string>

MaxInstanceRequestConcurrency

Optional. Sets the maximum number of requests that each serving instance can receive. If not specified or 0, concurrency defaults to 80 when requested CPU &gt;= 1 and defaults to 1 when requested CPU &lt; 1.

Declaration
[JsonProperty("maxInstanceRequestConcurrency")]
public virtual int? MaxInstanceRequestConcurrency { get; set; }
Property Value
Type Description
int?

NodeSelector

Optional. The node selector for the revision template.

Declaration
[JsonProperty("nodeSelector")]
public virtual GoogleCloudRunV2NodeSelector NodeSelector { get; set; }
Property Value
Type Description
GoogleCloudRunV2NodeSelector

Revision

Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.

Declaration
[JsonProperty("revision")]
public virtual string Revision { get; set; }
Property Value
Type Description
string

Scaling

Optional. Scaling settings for this Revision.

Declaration
[JsonProperty("scaling")]
public virtual GoogleCloudRunV2RevisionScaling Scaling { get; set; }
Property Value
Type Description
GoogleCloudRunV2RevisionScaling

ServiceAccount

Optional. 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. If not provided, the revision will use the project's default service account.

Declaration
[JsonProperty("serviceAccount")]
public virtual string ServiceAccount { get; set; }
Property Value
Type Description
string

ServiceMesh

Optional. Enables service mesh connectivity.

Declaration
[JsonProperty("serviceMesh")]
public virtual GoogleCloudRunV2ServiceMesh ServiceMesh { get; set; }
Property Value
Type Description
GoogleCloudRunV2ServiceMesh

SessionAffinity

Optional. Enable session affinity.

Declaration
[JsonProperty("sessionAffinity")]
public virtual bool? SessionAffinity { get; set; }
Property Value
Type Description
bool?

Timeout

Optional. Max allowed time for an instance to respond to a request.

Declaration
[JsonProperty("timeout")]
public virtual object Timeout { get; set; }
Property Value
Type Description
object

Volumes

Optional. A list of Volumes to make available to containers.

Declaration
[JsonProperty("volumes")]
public virtual IList<GoogleCloudRunV2Volume> Volumes { get; set; }
Property Value
Type Description
IList<GoogleCloudRunV2Volume>

VpcAccess

Optional. VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Declaration
[JsonProperty("vpcAccess")]
public virtual GoogleCloudRunV2VpcAccess VpcAccess { get; set; }
Property Value
Type Description
GoogleCloudRunV2VpcAccess

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX