Class: Google::Apis::ContainerV1beta1::Operation
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::Operation
- 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
-
#error_message ⇒ String
If an error has occurred, a textual description of the error.
-
#name ⇒ String
The server-assigned ID for the operation.
-
#operation_type ⇒ String
The operation type.
-
#self_link ⇒ String
Server-defined URL for the resource.
-
#status ⇒ String
The current status of the operation.
-
#target ⇒ String
[Optional] The URL of the cluster resource that this operation is associated with.
-
#target_link ⇒ String
Server-defined URL for the target of the operation.
-
#zone ⇒ String
The name of the Google Compute Engine zone in which the operation is taking place.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Operation
constructor
A new instance of Operation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
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_message ⇒ String
If an error has occurred, a textual description of the error.
Corresponds to the JSON property errorMessage
384 385 386 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 384 def @error_message end |
#name ⇒ String
The server-assigned ID for the operation.
Corresponds to the JSON property name
389 390 391 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 389 def name @name end |
#operation_type ⇒ String
The operation type.
Corresponds to the JSON property operationType
394 395 396 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 394 def operation_type @operation_type end |
#self_link ⇒ String
Server-defined URL for the resource.
Corresponds to the JSON property selfLink
399 400 401 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 399 def self_link @self_link end |
#status ⇒ String
The current status of the operation.
Corresponds to the JSON property status
404 405 406 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 404 def status @status end |
#target ⇒ String
[Optional] The URL of the cluster resource that this operation is associated
with.
Corresponds to the JSON property target
410 411 412 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 410 def target @target end |
#target_link ⇒ String
Server-defined URL for the target of the operation.
Corresponds to the JSON property targetLink
415 416 417 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 415 def target_link @target_link end |
#zone ⇒ String
The name of the Google Compute Engine zone in which the operation is taking
place.
Corresponds to the JSON property zone
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 |