class Google::Apis::RunV2::GoogleCloudRunV2Revision

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

annotations[RW]

KRM-style annotations for the resource. Corresponds to the JSON property ‘annotations` @return [Hash<String,String>]

conditions[RW]

Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state. Corresponds to the JSON property ‘conditions` @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Condition>]

confidential[RW]

Indicates whether Confidential Cloud Run is enabled in this Revision. Corresponds to the JSON property ‘confidential` @return [Boolean]

confidential?[RW]

Indicates whether Confidential Cloud Run is enabled in this Revision. Corresponds to the JSON property ‘confidential` @return [Boolean]

container_concurrency[RW]

Sets the maximum number of requests that each serving instance can receive. Corresponds to the JSON property ‘containerConcurrency` @return [Fixnum]

containers[RW]

Holds the single container that defines the unit of execution for this Revision. Corresponds to the JSON property ‘containers` @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]

create_time[RW]

Output only. The creation time. Corresponds to the JSON property ‘createTime` @return [String]

delete_time[RW]

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. Corresponds to the JSON property ‘deleteTime` @return [String]

encryption_key[RW]

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to cloud.google.com/run/docs/ securing/using-cmek Corresponds to the JSON property ‘encryptionKey` @return [String]

etag[RW]

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. Corresponds to the JSON property ‘etag` @return [String]

execution_environment[RW]

The execution environment being used to host this Revision. Corresponds to the JSON property ‘executionEnvironment` @return [String]

expire_time[RW]

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. Corresponds to the JSON property ‘expireTime` @return [String]

generation[RW]

Output only. A number that monotonically increases every time the user modifies the desired state. Corresponds to the JSON property ‘generation` @return [Fixnum]

labels[RW]

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. Corresponds to the JSON property ‘labels` @return [Hash<String,String>]

launch_stage[RW]

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]( cloud.google.com/terms/launch-stages). Corresponds to the JSON property ‘launchStage` @return [String]

log_uri[RW]

Output only. The Google Console URI to obtain logs for the Revision. Corresponds to the JSON property ‘logUri` @return [String]

name[RW]

Output only. The unique name of this Revision. Corresponds to the JSON property ‘name` @return [String]

observed_generation[RW]

Output only. The generation of this Revision currently serving traffic. See comments in ‘reconciling` for additional information on reconciliation process in Cloud Run. Corresponds to the JSON property `observedGeneration` @return [Fixnum]

reconciling[RW]

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. Corresponds to the JSON property `reconciling` @return [Boolean]

reconciling?[RW]

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. Corresponds to the JSON property `reconciling` @return [Boolean]

scaling[RW]

Settings for revision-level scaling settings. Corresponds to the JSON property ‘scaling` @return [Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling]

service[RW]

Output only. The name of the parent service. Corresponds to the JSON property ‘service` @return [String]

service_account[RW]

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. Corresponds to the JSON property ‘serviceAccount` @return [String]

timeout[RW]

Max allowed time for an instance to respond to a request. Corresponds to the JSON property ‘timeout` @return [String]

uid[RW]

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. Corresponds to the JSON property ‘uid` @return [String]

update_time[RW]

Output only. The last-modified time. Corresponds to the JSON property ‘updateTime` @return [String]

volumes[RW]

A list of Volumes to make available to containers. Corresponds to the JSON property ‘volumes` @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]

vpc_access[RW]

VPC Access settings. For more information on creating a VPC Connector, visit cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, visit cloud.google.com/run/docs/configuring/connecting-vpc Corresponds to the JSON property ‘vpcAccess` @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 574
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v2/classes.rb, line 579
def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @conditions = args[:conditions] if args.key?(:conditions)
  @confidential = args[:confidential] if args.key?(:confidential)
  @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
  @containers = args[:containers] if args.key?(:containers)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
  @etag = args[:etag] if args.key?(:etag)
  @execution_environment = args[:execution_environment] if args.key?(:execution_environment)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @generation = args[:generation] if args.key?(:generation)
  @labels = args[:labels] if args.key?(:labels)
  @launch_stage = args[:launch_stage] if args.key?(:launch_stage)
  @log_uri = args[:log_uri] if args.key?(:log_uri)
  @name = args[:name] if args.key?(:name)
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
  @reconciling = args[:reconciling] if args.key?(:reconciling)
  @scaling = args[:scaling] if args.key?(:scaling)
  @service = args[:service] if args.key?(:service)
  @service_account = args[:service_account] if args.key?(:service_account)
  @timeout = args[:timeout] if args.key?(:timeout)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
  @volumes = args[:volumes] if args.key?(:volumes)
  @vpc_access = args[:vpc_access] if args.key?(:vpc_access)
end