Class: Google::Apis::ContainerV1beta1::Operation

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

Overview

Defines the operation resource. All fields are output only.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Operation

Returns a new instance of Operation.



423
424
425
# File 'generated/google/apis/container_v1beta1/classes.rb', line 423

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

Instance Attribute Details

#error_messageString

If an error has occurred, a textual description of the error. Corresponds to the JSON property errorMessage

Returns:

  • (String)


384
385
386
# File 'generated/google/apis/container_v1beta1/classes.rb', line 384

def error_message
  @error_message
end

#nameString

The server-assigned ID for the operation. Corresponds to the JSON property name

Returns:

  • (String)


389
390
391
# File 'generated/google/apis/container_v1beta1/classes.rb', line 389

def name
  @name
end

#operation_typeString

The operation type. Corresponds to the JSON property operationType

Returns:

  • (String)


394
395
396
# File 'generated/google/apis/container_v1beta1/classes.rb', line 394

def operation_type
  @operation_type
end

Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


399
400
401
# File 'generated/google/apis/container_v1beta1/classes.rb', line 399

def self_link
  @self_link
end

#statusString

The current status of the operation. Corresponds to the JSON property status

Returns:

  • (String)


404
405
406
# File 'generated/google/apis/container_v1beta1/classes.rb', line 404

def status
  @status
end

#targetString

[Optional] The URL of the cluster resource that this operation is associated with. Corresponds to the JSON property target

Returns:

  • (String)


410
411
412
# File 'generated/google/apis/container_v1beta1/classes.rb', line 410

def target
  @target
end

Server-defined URL for the target of the operation. Corresponds to the JSON property targetLink

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/container_v1beta1/classes.rb', line 415

def target_link
  @target_link
end

#zoneString

The name of the Google Compute Engine zone in which the operation is taking place. Corresponds to the JSON property zone

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/container_v1beta1/classes.rb', line 421

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
432
433
434
435
436
437
# File 'generated/google/apis/container_v1beta1/classes.rb', line 428

def update!(**args)
  @error_message = args[:error_message] unless args[:error_message].nil?
  @name = args[:name] unless args[:name].nil?
  @operation_type = args[:operation_type] unless args[:operation_type].nil?
  @self_link = args[:self_link] unless args[:self_link].nil?
  @status = args[:status] unless args[:status].nil?
  @target = args[:target] unless args[:target].nil?
  @target_link = args[:target_link] unless args[:target_link].nil?
  @zone = args[:zone] unless args[:zone].nil?
end