Show / Hide Table of Contents

Class GoogleCloudRunV2WorkerPoolRevisionTemplate

WorkerPoolRevisionTemplate describes the data a worker pool revision should have when created from a template.

Inheritance
object
GoogleCloudRunV2WorkerPoolRevisionTemplate
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 GoogleCloudRunV2WorkerPoolRevisionTemplate : 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 WorkerPoolRevisionTemplate. 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 list of the containers 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

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 WorkerPoolRevisionTemplate.

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

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 WorkerPool name.

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

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?

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