Class: Google::Apis::GkeonpremV1::OperationStage

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

Overview

Information about a particular stage of an operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationStage

Returns a new instance of OperationStage.



3035
3036
3037
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3035

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

Instance Attribute Details

#end_timeString

Time the stage ended. Corresponds to the JSON property endTime

Returns:

  • (String)


3013
3014
3015
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3013

def end_time
  @end_time
end

#metricsArray<Google::Apis::GkeonpremV1::Metric>

Progress metric bundle. Corresponds to the JSON property metrics



3018
3019
3020
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3018

def metrics
  @metrics
end

#stageString

The high-level stage of the operation. Corresponds to the JSON property stage

Returns:

  • (String)


3023
3024
3025
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3023

def stage
  @stage
end

#start_timeString

Time the stage started. Corresponds to the JSON property startTime

Returns:

  • (String)


3028
3029
3030
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3028

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


3033
3034
3035
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3033

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3040
3041
3042
3043
3044
3045
3046
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3040

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