Class: Google::Apis::RunV1alpha1::ServiceStatus

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

The current state of the Service. Output only.

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) ⇒ ServiceStatus

Returns a new instance of ServiceStatus



4236
4237
4238
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4236

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



4177
4178
4179
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4177

def address
  @address
end

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



4184
4185
4186
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4184

def conditions
  @conditions
end

#domainString

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

Returns:

  • (String)


4192
4193
4194
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4192

def domain
  @domain
end

#latest_created_revision_nameString

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

Returns:

  • (String)


4200
4201
4202
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4200

def latest_created_revision_name
  @latest_created_revision_name
end

#latest_ready_revision_nameString

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

Returns:

  • (String)


4208
4209
4210
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4208

def latest_ready_revision_name
  @latest_ready_revision_name
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. Corresponds to the JSON property observedGeneration

Returns:

  • (Fixnum)


4217
4218
4219
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4217

def observed_generation
  @observed_generation
end

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



4226
4227
4228
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4226

def traffic
  @traffic
end

#urlString

From RouteStatus. 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)


4234
4235
4236
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4234

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4241

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