Class: Google::Apis::RunV1alpha1::RouteStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::RouteStatus
- 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
RouteStatus communicates the observed state of the Route (from the controller).
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::RunV1alpha1::Addressable
Information for connecting over HTTP(s).
-
#conditions ⇒ Array<Google::Apis::RunV1alpha1::RouteCondition>
Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world.
-
#domain ⇒ String
Domain holds the top-level domain that will distribute traffic over the provided targets.
-
#domain_internal ⇒ String
For Cloud Run, identifical to domain.
-
#observed_generation ⇒ Fixnum
ObservedGeneration is the 'Generation' of the Route that was last processed by the controller.
-
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
Traffic holds the configured traffic distribution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouteStatus
constructor
A new instance of RouteStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RouteStatus
Returns a new instance of RouteStatus
2670 2671 2672 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2670 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
2628 2629 2630 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2628 def address @address end |
#conditions ⇒ Array<Google::Apis::RunV1alpha1::RouteCondition>
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
2635 2636 2637 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2635 def conditions @conditions end |
#domain ⇒ String
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
2642 2643 2644 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2642 def domain @domain end |
#domain_internal ⇒ String
For Cloud Run, identifical to domain.
Corresponds to the JSON property domainInternal
2647 2648 2649 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2647 def domain_internal @domain_internal 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.
Note that providing a trafficTarget that only has a configurationName will
result in a Route that does not increment either its metadata.generation or
its observedGeneration, as new "latest ready" revisions from the
Configuration are processed without an update to the Route's spec.
Corresponds to the JSON property observedGeneration
2660 2661 2662 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2660 def observed_generation @observed_generation end |
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
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
2668 2669 2670 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2668 def traffic @traffic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2675 2676 2677 2678 2679 2680 2681 2682 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2675 def update!(**args) @address = args[:address] if args.key?(:address) @conditions = args[:conditions] if args.key?(:conditions) @domain = args[:domain] if args.key?(:domain) @domain_internal = args[:domain_internal] if args.key?(:domain_internal) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @traffic = args[:traffic] if args.key?(:traffic) end |