Class: Google::Apis::RunV2::GoogleCloudRunOpV2RevisionTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunOpV2RevisionTemplate

Returns a new instance of GoogleCloudRunOpV2RevisionTemplate.



740
741
742
# File 'lib/google/apis/run_v2/classes.rb', line 740

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotationsHash<String,String>

KRM-style annotations for the resource. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


667
668
669
# File 'lib/google/apis/run_v2/classes.rb', line 667

def annotations
  @annotations
end

#confidentialBoolean Also known as: confidential?

Enables Confidential Cloud Run in Revisions created using this template. Corresponds to the JSON property confidential

Returns:

  • (Boolean)


672
673
674
# File 'lib/google/apis/run_v2/classes.rb', line 672

def confidential
  @confidential
end

#container_concurrencyFixnum

Sets the maximum number of requests that each serving instance can receive. Corresponds to the JSON property containerConcurrency

Returns:

  • (Fixnum)


678
679
680
# File 'lib/google/apis/run_v2/classes.rb', line 678

def container_concurrency
  @container_concurrency
end

#containersArray<Google::Apis::RunV2::GoogleCloudRunOpV2Container>

Holds the single container that defines the unit of execution for this Revision. Corresponds to the JSON property containers



684
685
686
# File 'lib/google/apis/run_v2/classes.rb', line 684

def containers
  @containers
end

#encryption_keyString

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 Corresponds to the JSON property encryptionKey

Returns:

  • (String)


691
692
693
# File 'lib/google/apis/run_v2/classes.rb', line 691

def encryption_key
  @encryption_key
end

#execution_environmentString

The sandbox environment to host this Revision. Corresponds to the JSON property executionEnvironment

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/run_v2/classes.rb', line 696

def execution_environment
  @execution_environment
end

#labelsHash<String,String>

KRM-style labels for the resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


701
702
703
# File 'lib/google/apis/run_v2/classes.rb', line 701

def labels
  @labels
end

#revisionString

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

Returns:

  • (String)


707
708
709
# File 'lib/google/apis/run_v2/classes.rb', line 707

def revision
  @revision
end

#scalingGoogle::Apis::RunV2::GoogleCloudRunOpV2RevisionScaling

Settings for revision-level scaling settings. Corresponds to the JSON property scaling



712
713
714
# File 'lib/google/apis/run_v2/classes.rb', line 712

def scaling
  @scaling
end

#service_accountString

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

Returns:

  • (String)


720
721
722
# File 'lib/google/apis/run_v2/classes.rb', line 720

def 
  @service_account
end

#timeoutString

Max allowed time for an instance to respond to a request. Corresponds to the JSON property timeout

Returns:

  • (String)


725
726
727
# File 'lib/google/apis/run_v2/classes.rb', line 725

def timeout
  @timeout
end

#volumesArray<Google::Apis::RunV2::GoogleCloudRunOpV2Volume>

A list of Volumes to make available to containers. Corresponds to the JSON property volumes



730
731
732
# File 'lib/google/apis/run_v2/classes.rb', line 730

def volumes
  @volumes
end

#vpc_accessGoogle::Apis::RunV2::GoogleCloudRunOpV2VpcAccess

VPC Access settings. For more information on creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, visit https://cloud.google.com/run/docs/configuring/connecting-vpc Corresponds to the JSON property vpcAccess



738
739
740
# File 'lib/google/apis/run_v2/classes.rb', line 738

def vpc_access
  @vpc_access
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
# File 'lib/google/apis/run_v2/classes.rb', line 745

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