Class: Google::Apis::RunV1alpha1::RouteStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RouteStatus

Returns a new instance of RouteStatus.



4013
4014
4015
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4013

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressGoogle::Apis::RunV1alpha1::Addressable

Information for connecting over HTTP(s). Corresponds to the JSON property address



3963
3964
3965
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3963

def address
  @address
end

#conditionsArray<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



3970
3971
3972
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3970

def conditions
  @conditions
end

#domainString

Deprecated - use url instead. Domain holds the top-level domain that will distribute traffic over the provided targets. Corresponds to the JSON property domain

Returns:

  • (String)


3977
3978
3979
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3977

def domain
  @domain
end

#domain_internalString

Deprecated - use address instead. For Cloud Run, identifical to domain. Corresponds to the JSON property domainInternal

Returns:

  • (String)


3983
3984
3985
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3983

def domain_internal
  @domain_internal
end

#observed_generationFixnum

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

Returns:

  • (Fixnum)


3996
3997
3998
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3996

def observed_generation
  @observed_generation
end

#trafficArray<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



4004
4005
4006
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4004

def traffic
  @traffic
end

#urlString

URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form https://route-hash-project-hash-cluster-level-suffix.a.run.app Corresponds to the JSON property url

Returns:

  • (String)


4011
4012
4013
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4011

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4018
4019
4020
4021
4022
4023
4024
4025
4026
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4018

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)
  @url = args[:url] if args.key?(:url)
end