class Google::Apis::RunV1::RouteStatus

RouteStatus communicates the observed state of the Route (from the controller).

Attributes

address[RW]

Information for connecting over HTTP(s). Corresponds to the JSON property `address` @return [Google::Apis::RunV1::Addressable]

conditions[RW]

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` @return [Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>]

observed_generation[RW]

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` @return [Fixnum]

traffic[RW]

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` @return [Array<Google::Apis::RunV1::TrafficTarget>]

url[RW]

URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form: `route-hash`-`project-hash`-` cluster-level-suffix`.a.run.app Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2268
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1/classes.rb, line 2273
def update!(**args)
  @address = args[:address] if args.key?(:address)
  @conditions = args[:conditions] if args.key?(:conditions)
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
  @traffic = args[:traffic] if args.key?(:traffic)
  @url = args[:url] if args.key?(:url)
end