Class: Google::Apis::ContainerV1::OperationProgress

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

Overview

Information about operation (or operation stage) progress.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationProgress

Returns a new instance of OperationProgress.



5184
5185
5186
# File 'lib/google/apis/container_v1/classes.rb', line 5184

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

Instance Attribute Details

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

Progress metric bundle, for example: metrics: [name: "nodes done", int_value: 15, name: "nodes total", int_value: 32] or metrics: [name: "progress", double_value: 0.56, name: "progress scale", double_value: 1.0] Corresponds to the JSON property metrics



5166
5167
5168
# File 'lib/google/apis/container_v1/classes.rb', line 5166

def metrics
  @metrics
end

#nameString

A non-parameterized string describing an operation stage. Unset for single- stage operations. Corresponds to the JSON property name

Returns:

  • (String)


5172
5173
5174
# File 'lib/google/apis/container_v1/classes.rb', line 5172

def name
  @name
end

#stagesArray<Google::Apis::ContainerV1::OperationProgress>

Substages of an operation or a stage. Corresponds to the JSON property stages



5177
5178
5179
# File 'lib/google/apis/container_v1/classes.rb', line 5177

def stages
  @stages
end

#statusString

Status of an operation stage. Unset for single-stage operations. Corresponds to the JSON property status

Returns:

  • (String)


5182
5183
5184
# File 'lib/google/apis/container_v1/classes.rb', line 5182

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5189
5190
5191
5192
5193
5194
# File 'lib/google/apis/container_v1/classes.rb', line 5189

def update!(**args)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @stages = args[:stages] if args.key?(:stages)
  @status = args[:status] if args.key?(:status)
end