Class: Google::Apis::ContainerV1beta1::CancelOperationRequest
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContainerV1beta1::CancelOperationRequest
 
 
- 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
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name (project, location, operation id) of the operation to cancel.
 - 
  
    
      #operation_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Deprecated.
 - 
  
    
      #project_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Deprecated.
 - 
  
    
      #zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Deprecated.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CancelOperationRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CancelOperationRequest.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CancelOperationRequest
Returns a new instance of CancelOperationRequest
      174 175 176  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 174 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#name ⇒ String
The name (project, location, operation id) of the operation to cancel.
Specified in the format 'projects//locations//operations/*'.
Corresponds to the JSON property name
      152 153 154  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 152 def name @name end  | 
  
#operation_id ⇒ String
Deprecated. The server-assigned name of the operation.
This field has been deprecated and replaced by the name field.
Corresponds to the JSON property operationId
      158 159 160  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 158 def operation_id @operation_id end  | 
  
#project_id ⇒ String
Deprecated. The Google Developers Console project ID or project
number.
This field has been deprecated and replaced by the name field.
Corresponds to the JSON property projectId
      165 166 167  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 165 def project_id @project_id end  | 
  
#zone ⇒ String
Deprecated. The name of the Google Compute Engine
zone in which the operation resides.
This field has been deprecated and replaced by the name field.
Corresponds to the JSON property zone
      172 173 174  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 172 def zone @zone end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      179 180 181 182 183 184  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 179 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  |