class Google::Apis::RunV2::GoogleCloudRunV2RevisionTemplate

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

Attributes

annotations[RW]

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

confidential[RW]

Enables Confidential Cloud Run in Revisions created using this template. Corresponds to the JSON property ‘confidential` @return [Boolean]

confidential?[RW]

Enables Confidential Cloud Run in Revisions created using this template. 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>]

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]

execution_environment[RW]

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

labels[RW]

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

revision[RW]

The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name. Corresponds to the JSON property ‘revision` @return [String]

scaling[RW]

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

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

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 715
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 720
def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @confidential = args[:confidential] if args.key?(:confidential)
  @container_concurrency = args[:container_concurrency] if args.key?(:container_concurrency)
  @containers = args[:containers] if args.key?(:containers)
  @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
  @execution_environment = args[:execution_environment] if args.key?(:execution_environment)
  @labels = args[:labels] if args.key?(:labels)
  @revision = args[:revision] if args.key?(:revision)
  @scaling = args[:scaling] if args.key?(:scaling)
  @service_account = args[:service_account] if args.key?(:service_account)
  @timeout = args[:timeout] if args.key?(:timeout)
  @volumes = args[:volumes] if args.key?(:volumes)
  @vpc_access = args[:vpc_access] if args.key?(:vpc_access)
end