Class: Google::Apis::DataprocV1beta2::ClusterOperation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ClusterOperation

Returns a new instance of ClusterOperation.



550
551
552
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 550

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)


537
538
539
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 537

def done
  @done
end

#errorString

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

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 543

def error
  @error
end

#operation_idString

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

Returns:

  • (String)


548
549
550
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 548

def operation_id
  @operation_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
559
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 555

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