Class: Google::Apis::ContainerV1beta1::OperationProgress

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

Overview

Information about operation (or operation stage) progress.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperationProgress

Returns a new instance of OperationProgress



2453
2454
2455
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2453

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

Instance Attribute Details

#metricsArray<Google::Apis::ContainerV1beta1::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



2434
2435
2436
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2434

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)


2440
2441
2442
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2440

def name
  @name
end

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

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



2445
2446
2447
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2445

def stages
  @stages
end

#statusString

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

Returns:

  • (String)


2451
2452
2453
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2451

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2458
2459
2460
2461
2462
2463
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2458

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