Class: Google::Apis::RunV1alpha1::ServiceStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ServiceStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
The current state of the Service. Output only.
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::RunV1alpha1::Addressable
Information for connecting over HTTP(s).
-
#conditions ⇒ Array<Google::Apis::RunV1alpha1::ServiceCondition>
Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world.
-
#domain ⇒ String
From RouteStatus.
-
#latest_created_revision_name ⇒ String
From ConfigurationStatus.
-
#latest_ready_revision_name ⇒ String
From ConfigurationStatus.
-
#observed_generation ⇒ Fixnum
ObservedGeneration is the 'Generation' of the Route that was last processed by the controller.
-
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
From RouteStatus.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceStatus
constructor
A new instance of ServiceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceStatus
Returns a new instance of ServiceStatus
3644 3645 3646 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::RunV1alpha1::Addressable
Information for connecting over HTTP(s).
Corresponds to the JSON property address
3593 3594 3595 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3593 def address @address end |
#conditions ⇒ Array<Google::Apis::RunV1alpha1::ServiceCondition>
Conditions communicates information about ongoing/complete
reconciliation processes that bring the "spec" inline with the observed
state of the world.
Corresponds to the JSON property conditions
3600 3601 3602 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3600 def conditions @conditions end |
#domain ⇒ String
From RouteStatus.
Domain holds the top-level domain that will distribute traffic over the
provided targets. It generally has the form
https://route-hash-project-hash-cluster-level-suffix.a.run.app
Corresponds to the JSON property domain
3608 3609 3610 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3608 def domain @domain end |
#latest_created_revision_name ⇒ String
From ConfigurationStatus.
LatestCreatedRevisionName is the last revision that was created from this
Service's Configuration. It might not be ready yet, for that use
LatestReadyRevisionName.
Corresponds to the JSON property latestCreatedRevisionName
3616 3617 3618 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3616 def latest_created_revision_name @latest_created_revision_name end |
#latest_ready_revision_name ⇒ String
From ConfigurationStatus.
LatestReadyRevisionName holds the name of the latest Revision stamped out
from this Service's Configuration that has had its "Ready" condition become
"True".
Corresponds to the JSON property latestReadyRevisionName
3624 3625 3626 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3624 def latest_ready_revision_name @latest_ready_revision_name end |
#observed_generation ⇒ Fixnum
ObservedGeneration is the 'Generation' of the Route 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
3633 3634 3635 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3633 def observed_generation @observed_generation end |
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
From RouteStatus.
Traffic holds the configured traffic distribution.
These entries will always contain RevisionName references.
When ConfigurationName appears in the spec, this will hold the
LatestReadyRevisionName that we last observed.
Corresponds to the JSON property traffic
3642 3643 3644 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3642 def traffic @traffic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3649 3650 3651 3652 3653 3654 3655 3656 3657 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3649 def update!(**args) @address = args[:address] if args.key?(:address) @conditions = args[:conditions] if args.key?(:conditions) @domain = args[:domain] if args.key?(:domain) @latest_created_revision_name = args[:latest_created_revision_name] if args.key?(:latest_created_revision_name) @latest_ready_revision_name = args[:latest_ready_revision_name] if args.key?(:latest_ready_revision_name) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @traffic = args[:traffic] if args.key?(:traffic) end |