Class: Google::Apis::RunV2::GoogleCloudRunOpV2Revision
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunOpV2Revision
- 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
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.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
KRM-style annotations for the resource.
-
#conditions ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Condition>
Output only.
-
#confidential ⇒ Boolean
(also: #confidential?)
Indicates whether Confidential Cloud Run is enabled in this Revision.
-
#container_concurrency ⇒ Fixnum
Sets the maximum number of requests that each serving instance can receive.
-
#container_statuses ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2ContainerStatus>
Output only.
-
#containers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Container>
Holds the single container that defines the unit of execution for this Revision.
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#encryption_key ⇒ String
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.
-
#etag ⇒ String
Output only.
-
#execution_environment ⇒ String
The execution environment being used to host this Revision.
-
#expire_time ⇒ String
Output only.
-
#generation ⇒ Fixnum
Output only.
-
#labels ⇒ Hash<String,String>
KRM-style labels for the resource.
-
#launch_stage ⇒ String
Set the launch stage to a preview stage on write to allow use of preview features in that stage.
-
#log_uri ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#observed_generation ⇒ Fixnum
Output only.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#scaling ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2RevisionScaling
Settings for revision-level scaling settings.
-
#service ⇒ String
Output only.
-
#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.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#volumes ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Volume>
A list of Volumes to make available to containers.
-
#vpc_access ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2VpcAccess
VPC Access settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunOpV2Revision
constructor
A new instance of GoogleCloudRunOpV2Revision.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunOpV2Revision
Returns a new instance of GoogleCloudRunOpV2Revision.
598 599 600 |
# File 'lib/google/apis/run_v2/classes.rb', line 598 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
436 437 438 |
# File 'lib/google/apis/run_v2/classes.rb', line 436 def annotations @annotations end |
#conditions ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Condition>
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
442 443 444 |
# File 'lib/google/apis/run_v2/classes.rb', line 442 def conditions @conditions end |
#confidential ⇒ Boolean Also known as: confidential?
Indicates whether Confidential Cloud Run is enabled in this Revision.
Corresponds to the JSON property confidential
447 448 449 |
# File 'lib/google/apis/run_v2/classes.rb', line 447 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
453 454 455 |
# File 'lib/google/apis/run_v2/classes.rb', line 453 def container_concurrency @container_concurrency end |
#container_statuses ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2ContainerStatus>
Output only. Status information for each of the containers specified.
Corresponds to the JSON property containerStatuses
458 459 460 |
# File 'lib/google/apis/run_v2/classes.rb', line 458 def container_statuses @container_statuses end |
#containers ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Container>
Holds the single container that defines the unit of execution for this
Revision.
Corresponds to the JSON property containers
464 465 466 |
# File 'lib/google/apis/run_v2/classes.rb', line 464 def containers @containers end |
#create_time ⇒ String
Output only. The creation time.
Corresponds to the JSON property createTime
469 470 471 |
# File 'lib/google/apis/run_v2/classes.rb', line 469 def create_time @create_time end |
#delete_time ⇒ String
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
475 476 477 |
# File 'lib/google/apis/run_v2/classes.rb', line 475 def delete_time @delete_time 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
482 483 484 |
# File 'lib/google/apis/run_v2/classes.rb', line 482 def encryption_key @encryption_key end |
#etag ⇒ String
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
488 489 490 |
# File 'lib/google/apis/run_v2/classes.rb', line 488 def etag @etag end |
#execution_environment ⇒ String
The execution environment being used to host this Revision.
Corresponds to the JSON property executionEnvironment
493 494 495 |
# File 'lib/google/apis/run_v2/classes.rb', line 493 def execution_environment @execution_environment end |
#expire_time ⇒ String
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
499 500 501 |
# File 'lib/google/apis/run_v2/classes.rb', line 499 def expire_time @expire_time end |
#generation ⇒ Fixnum
Output only. A number that monotonically increases every time the user
modifies the desired state.
Corresponds to the JSON property generation
505 506 507 |
# File 'lib/google/apis/run_v2/classes.rb', line 505 def generation @generation end |
#labels ⇒ Hash<String,String>
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
516 517 518 |
# File 'lib/google/apis/run_v2/classes.rb', line 516 def labels @labels end |
#launch_stage ⇒ String
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.
Corresponds to the JSON property launchStage
524 525 526 |
# File 'lib/google/apis/run_v2/classes.rb', line 524 def launch_stage @launch_stage end |
#log_uri ⇒ String
Output only. The Google Console URI to obtain logs for the Revision.
Corresponds to the JSON property logUri
529 530 531 |
# File 'lib/google/apis/run_v2/classes.rb', line 529 def log_uri @log_uri end |
#name ⇒ String
Output only. The unique name of this Revision.
Corresponds to the JSON property name
534 535 536 |
# File 'lib/google/apis/run_v2/classes.rb', line 534 def name @name end |
#observed_generation ⇒ Fixnum
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
541 542 543 |
# File 'lib/google/apis/run_v2/classes.rb', line 541 def observed_generation @observed_generation end |
#reconciling ⇒ Boolean Also known as: reconciling?
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
548 549 550 |
# File 'lib/google/apis/run_v2/classes.rb', line 548 def reconciling @reconciling end |
#scaling ⇒ Google::Apis::RunV2::GoogleCloudRunOpV2RevisionScaling
Settings for revision-level scaling settings.
Corresponds to the JSON property scaling
554 555 556 |
# File 'lib/google/apis/run_v2/classes.rb', line 554 def scaling @scaling end |
#service ⇒ String
Output only. The name of the parent service.
Corresponds to the JSON property service
559 560 561 |
# File 'lib/google/apis/run_v2/classes.rb', line 559 def service @service 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.
Corresponds to the JSON property serviceAccount
566 567 568 |
# File 'lib/google/apis/run_v2/classes.rb', line 566 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
571 572 573 |
# File 'lib/google/apis/run_v2/classes.rb', line 571 def timeout @timeout end |
#uid ⇒ String
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
578 579 580 |
# File 'lib/google/apis/run_v2/classes.rb', line 578 def uid @uid end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
583 584 585 |
# File 'lib/google/apis/run_v2/classes.rb', line 583 def update_time @update_time end |
#volumes ⇒ Array<Google::Apis::RunV2::GoogleCloudRunOpV2Volume>
A list of Volumes to make available to containers.
Corresponds to the JSON property volumes
588 589 590 |
# File 'lib/google/apis/run_v2/classes.rb', line 588 def volumes @volumes end |
#vpc_access ⇒ Google::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
596 597 598 |
# File 'lib/google/apis/run_v2/classes.rb', line 596 def vpc_access @vpc_access end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/google/apis/run_v2/classes.rb', line 603 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) @container_statuses = args[:container_statuses] if args.key?(:container_statuses) @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 |