class Google::Apis::ContainerV1::Operation

This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.

Attributes

detail[RW]

Detailed operation progress, if available. Corresponds to the JSON property `detail` @return [String]

name[RW]

The server-assigned ID for the operation. Corresponds to the JSON property `name` @return [String]

operation_type[RW]

The operation type. Corresponds to the JSON property `operationType` @return [String]

status[RW]

The current status of the operation. Corresponds to the JSON property `status` @return [String]

status_message[RW]

If an error has occurred, a textual description of the error. Corresponds to the JSON property `statusMessage` @return [String]

zone[RW]

The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the operation is taking place. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/container_v1/classes.rb, line 488
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/container_v1/classes.rb, line 493
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @zone = args[:zone] if args.key?(:zone)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @status = args[:status] if args.key?(:status)
  @detail = args[:detail] if args.key?(:detail)
  @status_message = args[:status_message] if args.key?(:status_message)
  @self_link = args[:self_link] if args.key?(:self_link)
  @target_link = args[:target_link] if args.key?(:target_link)
end