public sealed class Revision : IMessage<Revision>, IEquatable<Revision>, IDeepCloneable<Revision>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class Revision.
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.
Namespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
Revision()
public Revision()
Revision(Revision)
public Revision(Revision other)
Parameter | |
---|---|
Name | Description |
other | Revision |
Properties
Annotations
public MapField<string, string> Annotations { get; }
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.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Conditions
public RepeatedField<Condition> Conditions { get; }
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
Property Value | |
---|---|
Type | Description |
RepeatedFieldCondition |
Containers
public RepeatedField<Container> Containers { get; }
Holds the single container that defines the unit of execution for this Revision.
Property Value | |
---|---|
Type | Description |
RepeatedFieldContainer |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. The creation time.
Property Value | |
---|---|
Type | Description |
Timestamp |
DeleteTime
public Timestamp DeleteTime { get; set; }
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
Property Value | |
---|---|
Type | Description |
Timestamp |
EncryptionKey
public string EncryptionKey { get; set; }
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
Property Value | |
---|---|
Type | Description |
string |
EncryptionKeyAsCryptoKeyName
public CryptoKeyName EncryptionKeyAsCryptoKeyName { get; set; }
CryptoKeyName-typed view over the EncryptionKey resource name property.
Property Value | |
---|---|
Type | Description |
CryptoKeyName |
EncryptionKeyRevocationAction
public EncryptionKeyRevocationAction EncryptionKeyRevocationAction { get; set; }
The action to take if the encryption key is revoked.
Property Value | |
---|---|
Type | Description |
EncryptionKeyRevocationAction |
EncryptionKeyShutdownDuration
public Duration EncryptionKeyShutdownDuration { get; set; }
If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
Property Value | |
---|---|
Type | Description |
Duration |
Etag
public string Etag { get; set; }
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Property Value | |
---|---|
Type | Description |
string |
ExecutionEnvironment
public ExecutionEnvironment ExecutionEnvironment { get; set; }
The execution environment being used to host this Revision.
Property Value | |
---|---|
Type | Description |
ExecutionEnvironment |
ExpireTime
public Timestamp ExpireTime { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Timestamp |
Generation
public long Generation { get; set; }
Output only. A number that monotonically increases every time the user modifies the desired state.
Property Value | |
---|---|
Type | Description |
long |
Labels
public MapField<string, string> Labels { get; }
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.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
LaunchStage
public LaunchStage LaunchStage { get; set; }
The least stable launch stage needed to create this resource, as defined by
Google Cloud Platform Launch
Stages. Cloud Run supports
ALPHA
, BETA
, and GA
.
<p>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.
Property Value | |
---|---|
Type | Description |
LaunchStage |
LogUri
public string LogUri { get; set; }
Output only. The Google Console URI to obtain logs for the Revision.
Property Value | |
---|---|
Type | Description |
string |
MaxInstanceRequestConcurrency
public int MaxInstanceRequestConcurrency { get; set; }
Sets the maximum number of requests that each serving instance can receive.
Property Value | |
---|---|
Type | Description |
int |
Name
public string Name { get; set; }
Output only. The unique name of this Revision.
Property Value | |
---|---|
Type | Description |
string |
ObservedGeneration
public long ObservedGeneration { get; set; }
Output only. The generation of this Revision currently serving traffic. See
comments in reconciling
for additional information on reconciliation
process in Cloud Run.
Property Value | |
---|---|
Type | Description |
long |
Reconciling
public bool Reconciling { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
RevisionName
public RevisionName RevisionName { get; set; }
RevisionName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
RevisionName |
SatisfiesPzs
public bool SatisfiesPzs { get; set; }
Output only. Reserved for future use.
Property Value | |
---|---|
Type | Description |
bool |
Scaling
public RevisionScaling Scaling { get; set; }
Scaling settings for this revision.
Property Value | |
---|---|
Type | Description |
RevisionScaling |
ScalingStatus
public RevisionScalingStatus ScalingStatus { get; set; }
Output only. The current effective scaling settings for the revision.
Property Value | |
---|---|
Type | Description |
RevisionScalingStatus |
Service
public string Service { get; set; }
Output only. The name of the parent service.
Property Value | |
---|---|
Type | Description |
string |
ServiceAccount
public string ServiceAccount { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
ServiceAsServiceName
public ServiceName ServiceAsServiceName { get; set; }
ServiceName-typed view over the Service resource name property.
Property Value | |
---|---|
Type | Description |
ServiceName |
SessionAffinity
public bool SessionAffinity { get; set; }
Enable session affinity.
Property Value | |
---|---|
Type | Description |
bool |
Timeout
public Duration Timeout { get; set; }
Max allowed time for an instance to respond to a request.
Property Value | |
---|---|
Type | Description |
Duration |
Uid
public string Uid { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The last-modified time.
Property Value | |
---|---|
Type | Description |
Timestamp |
Volumes
public RepeatedField<Volume> Volumes { get; }
A list of Volumes to make available to containers.
Property Value | |
---|---|
Type | Description |
RepeatedFieldVolume |
VpcAccess
public VpcAccess VpcAccess { get; set; }
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Property Value | |
---|---|
Type | Description |
VpcAccess |