Class: Google::Apis::RunV2::GoogleCloudRunV2RevisionTemplate
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2RevisionTemplate
- 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
-
#annotations ⇒ Hash<String,String>
KRM-style annotations for the resource.
-
#confidential ⇒ Boolean
(also: #confidential?)
Enables Confidential Cloud Run in Revisions created using this template.
-
#container_concurrency ⇒ Fixnum
Sets the maximum number of requests that each serving instance can receive.
-
#containers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Container>
Holds the single container that defines the unit of execution for this Revision.
-
#encryption_key ⇒ String
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.
-
#execution_environment ⇒ String
The sandbox environment to host this Revision.
-
#labels ⇒ Hash<String,String>
KRM-style labels for the resource.
-
#revision ⇒ String
The unique name for the revision.
-
#scaling ⇒ Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling
Settings for revision-level scaling settings.
-
#service_account ⇒ String
Email address of the IAM service account associated with the revision of the service.
-
#timeout ⇒ String
Max allowed time for an instance to respond to a request.
-
#volumes ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>
A list of Volumes to make available to containers.
-
#vpc_access ⇒ Google::Apis::RunV2::GoogleCloudRunV2VpcAccess
VPC Access settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2RevisionTemplate
constructor
A new instance of GoogleCloudRunV2RevisionTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2RevisionTemplate
Returns a new instance of GoogleCloudRunV2RevisionTemplate.
1283 1284 1285 |
# File 'lib/google/apis/run_v2/classes.rb', line 1283 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
KRM-style annotations for the resource.
Corresponds to the JSON property annotations
1210 1211 1212 |
# File 'lib/google/apis/run_v2/classes.rb', line 1210 def annotations @annotations end |
#confidential ⇒ Boolean Also known as: confidential?
Enables Confidential Cloud Run in Revisions created using this template.
Corresponds to the JSON property confidential
1215 1216 1217 |
# File 'lib/google/apis/run_v2/classes.rb', line 1215 def confidential @confidential end |
#container_concurrency ⇒ Fixnum
Sets the maximum number of requests that each serving instance can receive.
Corresponds to the JSON property containerConcurrency
1221 1222 1223 |
# File 'lib/google/apis/run_v2/classes.rb', line 1221 def container_concurrency @container_concurrency end |
#containers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Container>
Holds the single container that defines the unit of execution for this
Revision.
Corresponds to the JSON property containers
1227 1228 1229 |
# File 'lib/google/apis/run_v2/classes.rb', line 1227 def containers @containers end |
#encryption_key ⇒ String
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
1234 1235 1236 |
# File 'lib/google/apis/run_v2/classes.rb', line 1234 def encryption_key @encryption_key end |
#execution_environment ⇒ String
The sandbox environment to host this Revision.
Corresponds to the JSON property executionEnvironment
1239 1240 1241 |
# File 'lib/google/apis/run_v2/classes.rb', line 1239 def execution_environment @execution_environment end |
#labels ⇒ Hash<String,String>
KRM-style labels for the resource.
Corresponds to the JSON property labels
1244 1245 1246 |
# File 'lib/google/apis/run_v2/classes.rb', line 1244 def labels @labels end |
#revision ⇒ String
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
1250 1251 1252 |
# File 'lib/google/apis/run_v2/classes.rb', line 1250 def revision @revision end |
#scaling ⇒ Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling
Settings for revision-level scaling settings.
Corresponds to the JSON property scaling
1255 1256 1257 |
# File 'lib/google/apis/run_v2/classes.rb', line 1255 def scaling @scaling end |
#service_account ⇒ String
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
1263 1264 1265 |
# File 'lib/google/apis/run_v2/classes.rb', line 1263 def service_account @service_account end |
#timeout ⇒ String
Max allowed time for an instance to respond to a request.
Corresponds to the JSON property timeout
1268 1269 1270 |
# File 'lib/google/apis/run_v2/classes.rb', line 1268 def timeout @timeout end |
#volumes ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>
A list of Volumes to make available to containers.
Corresponds to the JSON property volumes
1273 1274 1275 |
# File 'lib/google/apis/run_v2/classes.rb', line 1273 def volumes @volumes end |
#vpc_access ⇒ Google::Apis::RunV2::GoogleCloudRunV2VpcAccess
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
1281 1282 1283 |
# File 'lib/google/apis/run_v2/classes.rb', line 1281 def vpc_access @vpc_access end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 |
# File 'lib/google/apis/run_v2/classes.rb', line 1288 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 |