Class: Google::Apis::RunV1::ConfigurationStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb

Overview

ConfigurationStatus communicates the observed state of the Configuration (from the controller).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigurationStatus

Returns a new instance of ConfigurationStatus.



468
469
470
# File 'lib/google/apis/run_v1/classes.rb', line 468

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

Instance Attribute Details

#conditionsArray<Google::Apis::RunV1::GoogleCloudRunV1Condition>

Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Corresponds to the JSON property conditions



444
445
446
# File 'lib/google/apis/run_v1/classes.rb', line 444

def conditions
  @conditions
end

#latest_created_revision_nameString

LatestCreatedRevisionName is the last revision that was created from this Configuration. It might not be ready yet, so for the latest ready revision, use LatestReadyRevisionName. Corresponds to the JSON property latestCreatedRevisionName

Returns:

  • (String)


451
452
453
# File 'lib/google/apis/run_v1/classes.rb', line 451

def latest_created_revision_name
  @latest_created_revision_name
end

#latest_ready_revision_nameString

LatestReadyRevisionName holds the name of the latest Revision stamped out from this Configuration that has had its "Ready" condition become "True". Corresponds to the JSON property latestReadyRevisionName

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/run_v1/classes.rb', line 457

def latest_ready_revision_name
  @latest_ready_revision_name
end

#observed_generationFixnum

ObservedGeneration is the 'Generation' of the Configuration that was last processed by the controller. The observed generation is updated even if the controller failed to process the spec and create the Revision. 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)


466
467
468
# File 'lib/google/apis/run_v1/classes.rb', line 466

def observed_generation
  @observed_generation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



473
474
475
476
477
478
# File 'lib/google/apis/run_v1/classes.rb', line 473

def update!(**args)
  @conditions = args[:conditions] if args.key?(:conditions)
  @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)
end