Class Revision (0.6.0)

  Revision 
 ( 
 mapping 
 = 
 None 
 , 
 * 
 , 
 ignore_unknown_fields 
 = 
 False 
 , 
 ** 
 kwargs 
 ) 
 

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.

Attributes

Name
Description
name
str
Output only. The unique name of this Revision.
uid
str
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.
generation
int
Output only. A number that monotonically increases every time the user modifies the desired state.
labels
MutableMapping[str, str]
KRM-style labels for the resource. 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 will populate some labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those labels are read-only, and user changes will not be preserved.
annotations
MutableMapping[str, str]
KRM-style annotations for the resource.
create_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time.
update_time
google.protobuf.timestamp_pb2.Timestamp
Output only. The last-modified time.
delete_time
google.protobuf.timestamp_pb2.Timestamp
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
expire_time
google.protobuf.timestamp_pb2.Timestamp
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.
launch_stage
google.api.launch_stage_pb2.LaunchStage
Set the launch stage to a preview stage on write to allow use of preview features in that stage. On read, describes whether the resource uses preview features. Launch Stages are defined at `Google Cloud Platform Launch Stages
service
str
Output only. The name of the parent service.
scaling
google.cloud.run_v2.types.RevisionScaling
Scaling settings for this revision.
vpc_access
google.cloud.run_v2.types.VpcAccess
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
max_instance_request_concurrency
int
Sets the maximum number of requests that each serving instance can receive.
timeout
google.protobuf.duration_pb2.Duration
Max allowed time for an instance to respond to a request.
service_account
str
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.
containers
MutableSequence[ google.cloud.run_v2.types.Container ]
Holds the single container that defines the unit of execution for this Revision.
volumes
MutableSequence[ google.cloud.run_v2.types.Volume ]
A list of Volumes to make available to containers.
execution_environment
google.cloud.run_v2.types.ExecutionEnvironment
The execution environment being used to host this Revision.
encryption_key
str
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
reconciling
bool
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.
conditions
MutableSequence[ google.cloud.run_v2.types.Condition ]
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
observed_generation
int
Output only. The generation of this Revision currently serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run.
log_uri
str
Output only. The Google Console URI to obtain logs for the Revision.
etag
str
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

Classes

AnnotationsEntry

  AnnotationsEntry 
 ( 
 mapping 
 = 
 None 
 , 
 * 
 , 
 ignore_unknown_fields 
 = 
 False 
 , 
 ** 
 kwargs 
 ) 
 

The abstract base class for a message.

Parameters
Name
Description
kwargs
dict

Keys and values corresponding to the fields of the message.

mapping
Union[dict, .Message ]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields
Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

LabelsEntry

  LabelsEntry 
 ( 
 mapping 
 = 
 None 
 , 
 * 
 , 
 ignore_unknown_fields 
 = 
 False 
 , 
 ** 
 kwargs 
 ) 
 

The abstract base class for a message.

Parameters
Name
Description
kwargs
dict

Keys and values corresponding to the fields of the message.

mapping
Union[dict, .Message ]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields
Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Design a Mobile Site
View Site in Mobile | Classic
Share by: