Class: Google::Apis::RunV1::RevisionStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::RevisionStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
RevisionStatus communicates the observed state of the Revision (from the controller).
Instance Attribute Summary collapse
-
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world.
-
#desired_replicas ⇒ Fixnum
Output only.
-
#image_digest ⇒ String
ImageDigest holds the resolved digest for the image specified within .Spec.
-
#log_url ⇒ String
Optional.
-
#observed_generation ⇒ Fixnum
ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller.
-
#service_name ⇒ String
Not currently used by Cloud Run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RevisionStatus
constructor
A new instance of RevisionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RevisionStatus
Returns a new instance of RevisionStatus.
2748 2749 2750 |
# File 'lib/google/apis/run_v1/classes.rb', line 2748 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Conditions communicate information about ongoing/complete reconciliation
processes that bring the "spec" inline with the observed state of the world.
As a Revision is being prepared, it will incrementally update conditions.
Revision-specific conditions include: * ResourcesAvailable
: True
when
underlying resources have been provisioned. * ContainerHealthy
: True
when
the Revision readiness check completes. * Active
: True
when the Revision
may receive traffic.
Corresponds to the JSON property conditions
2712 2713 2714 |
# File 'lib/google/apis/run_v1/classes.rb', line 2712 def conditions @conditions end |
#desired_replicas ⇒ Fixnum
Output only. The configured number of instances running this revision. For
Cloud Run, this only includes instances provisioned using the minScale
annotation. It does not include instances created by autoscaling.
Corresponds to the JSON property desiredReplicas
2719 2720 2721 |
# File 'lib/google/apis/run_v1/classes.rb', line 2719 def desired_replicas @desired_replicas end |
#image_digest ⇒ String
ImageDigest holds the resolved digest for the image specified within .Spec.
Container.Image. The digest is resolved during the creation of Revision. This
field holds the digest value regardless of whether a tag or digest was
originally specified in the Container object.
Corresponds to the JSON property imageDigest
2727 2728 2729 |
# File 'lib/google/apis/run_v1/classes.rb', line 2727 def image_digest @image_digest end |
#log_url ⇒ String
Optional. Specifies the generated logging url for this particular revision
based on the revision url template specified in the controller's config.
Corresponds to the JSON property logUrl
2733 2734 2735 |
# File 'lib/google/apis/run_v1/classes.rb', line 2733 def log_url @log_url end |
#observed_generation ⇒ Fixnum
ObservedGeneration is the 'Generation' of the Revision that was last processed
by the controller. Clients polling for completed reconciliation should poll
until observedGeneration = metadata.generation, and the Ready condition's
status is True or False.
Corresponds to the JSON property observedGeneration
2741 2742 2743 |
# File 'lib/google/apis/run_v1/classes.rb', line 2741 def observed_generation @observed_generation end |
#service_name ⇒ String
Not currently used by Cloud Run.
Corresponds to the JSON property serviceName
2746 2747 2748 |
# File 'lib/google/apis/run_v1/classes.rb', line 2746 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2753 2754 2755 2756 2757 2758 2759 2760 |
# File 'lib/google/apis/run_v1/classes.rb', line 2753 def update!(**args) @conditions = args[:conditions] if args.key?(:conditions) @desired_replicas = args[:desired_replicas] if args.key?(:desired_replicas) @image_digest = args[:image_digest] if args.key?(:image_digest) @log_url = args[:log_url] if args.key?(:log_url) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @service_name = args[:service_name] if args.key?(:service_name) end |