Class: Google::Apis::ContainerV1beta1::CancelOperationRequest

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

CancelOperationRequest cancels a single operation.

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) ⇒ CancelOperationRequest

Returns a new instance of CancelOperationRequest



145
146
147
# File 'generated/google/apis/container_v1beta1/classes.rb', line 145

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

Instance Attribute Details

#nameString

The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects//locations//operations/*'. Corresponds to the JSON property name

Returns:

  • (String)


123
124
125
# File 'generated/google/apis/container_v1beta1/classes.rb', line 123

def name
  @name
end

#operation_idString

The server-assigned name of the operation. This field is deprecated, use name instead. Corresponds to the JSON property operationId

Returns:

  • (String)


129
130
131
# File 'generated/google/apis/container_v1beta1/classes.rb', line 129

def operation_id
  @operation_id
end

#project_idString

The Google Developers Console project ID or project number. This field is deprecated, use name instead. Corresponds to the JSON property projectId

Returns:

  • (String)


136
137
138
# File 'generated/google/apis/container_v1beta1/classes.rb', line 136

def project_id
  @project_id
end

#zoneString

The name of the Google Compute Engine zone in which the operation resides. This field is deprecated, use name instead. Corresponds to the JSON property zone

Returns:

  • (String)


143
144
145
# File 'generated/google/apis/container_v1beta1/classes.rb', line 143

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
154
155
# File 'generated/google/apis/container_v1beta1/classes.rb', line 150

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @zone = args[:zone] if args.key?(:zone)
end