Class: Google::Apis::GkehubV1alpha::RolloutSequenceState

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

Overview

State and reasons of the Rollout Sequence.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutSequenceState

Returns a new instance of RolloutSequenceState.



6338
6339
6340
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6338

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

Instance Attribute Details

#lifecycle_stateString

Output only. Lifecycle state of the Rollout Sequence. Corresponds to the JSON property lifecycleState

Returns:

  • (String)


6331
6332
6333
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6331

def lifecycle_state
  @lifecycle_state
end

#state_reasonsArray<String>

Output only. StateReason represents the reason for the Rollout Sequence state. Corresponds to the JSON property stateReasons

Returns:

  • (Array<String>)


6336
6337
6338
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6336

def state_reasons
  @state_reasons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6343
6344
6345
6346
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6343

def update!(**args)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @state_reasons = args[:state_reasons] if args.key?(:state_reasons)
end