Class: Google::Apis::GkehubV1beta::RolloutStage

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

Overview

Stage represents a single stage in the Rollout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutStage

Returns a new instance of RolloutStage.



6185
6186
6187
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6185

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

Instance Attribute Details

#end_timeString

Optional. Output only. The time at which the stage ended. Corresponds to the JSON property endTime

Returns:

  • (String)


6163
6164
6165
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6163

def end_time
  @end_time
end

#soak_durationString

Optional. Duration to soak after this stage before starting the next stage. Corresponds to the JSON property soakDuration

Returns:

  • (String)


6168
6169
6170
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6168

def soak_duration
  @soak_duration
end

#stage_numberFixnum

Output only. The stage number to which this status applies. Corresponds to the JSON property stageNumber

Returns:

  • (Fixnum)


6173
6174
6175
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6173

def stage_number
  @stage_number
end

#start_timeString

Optional. Output only. The time at which the stage started. Corresponds to the JSON property startTime

Returns:

  • (String)


6178
6179
6180
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6178

def start_time
  @start_time
end

#stateString

Output only. The state of the stage. Corresponds to the JSON property state

Returns:

  • (String)


6183
6184
6185
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6183

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6190
6191
6192
6193
6194
6195
6196
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 6190

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @soak_duration = args[:soak_duration] if args.key?(:soak_duration)
  @stage_number = args[:stage_number] if args.key?(:stage_number)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end