Class: Google::Apis::DataprocV1beta2::ClusterOperation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DataprocV1beta2::ClusterOperation
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb 
Overview
The cluster operation triggered by a workflow.
Instance Attribute Summary collapse
- 
  
    
      #done  ⇒ Boolean 
    
    
      (also: #done?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #error  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #operation_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ClusterOperation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ClusterOperation.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClusterOperation
Returns a new instance of ClusterOperation
      322 323 324  | 
    
      # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 322 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#done ⇒ Boolean Also known as: done?
Output only. Indicates the operation is done.
Corresponds to the JSON property done
      309 310 311  | 
    
      # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 309 def done @done end  | 
  
#error ⇒ String
Output only. Error, if operation failed.
Corresponds to the JSON property error
      315 316 317  | 
    
      # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 315 def error @error end  | 
  
#operation_id ⇒ String
Output only. The id of the cluster operation.
Corresponds to the JSON property operationId
      320 321 322  | 
    
      # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 320 def operation_id @operation_id end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      327 328 329 330 331  | 
    
      # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 327 def update!(**args) @done = args[:done] if args.key?(:done) @error = args[:error] if args.key?(:error) @operation_id = args[:operation_id] if args.key?(:operation_id) end  |