Class: Google::Apis::DataprocV1::ClusterOperation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

The cluster operation triggered by a workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterOperation

Returns a new instance of ClusterOperation.



1630
1631
1632
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1630

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

Instance Attribute Details

#doneBoolean Also known as: done?

Output only. Indicates the operation is done. Corresponds to the JSON property done

Returns:

  • (Boolean)


1617
1618
1619
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1617

def done
  @done
end

#errorString

Output only. Error, if operation failed. Corresponds to the JSON property error

Returns:

  • (String)


1623
1624
1625
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1623

def error
  @error
end

#operation_idString

Output only. The id of the cluster operation. Corresponds to the JSON property operationId

Returns:

  • (String)


1628
1629
1630
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1628

def operation_id
  @operation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1635
1636
1637
1638
1639
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1635

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