Class: Google::Apis::DataprocV1beta2::ClusterOperationMetadata

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

Metadata describing the operation.

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

Returns a new instance of ClusterOperationMetadata.



606
607
608
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 606

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

Instance Attribute Details

#cluster_nameString

Output only. Name of the cluster for the operation. Corresponds to the JSON property clusterName

Returns:

  • (String)


569
570
571
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 569

def cluster_name
  @cluster_name
end

#cluster_uuidString

Output only. Cluster UUID for the operation. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


574
575
576
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 574

def cluster_uuid
  @cluster_uuid
end

#descriptionString

Output only. Short description of operation. Corresponds to the JSON property description

Returns:

  • (String)


579
580
581
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 579

def description
  @description
end

#labelsHash<String,String>

Output only. Labels associated with the operation Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


584
585
586
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 584

def labels
  @labels
end

#operation_typeString

Output only. The operation type. Corresponds to the JSON property operationType

Returns:

  • (String)


589
590
591
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 589

def operation_type
  @operation_type
end

#statusGoogle::Apis::DataprocV1beta2::ClusterOperationStatus

The status of the operation. Corresponds to the JSON property status



594
595
596
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 594

def status
  @status
end

#status_historyArray<Google::Apis::DataprocV1beta2::ClusterOperationStatus>

Output only. The previous operation status. Corresponds to the JSON property statusHistory



599
600
601
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 599

def status_history
  @status_history
end

#warningsArray<String>

Output only. Errors encountered during operation execution. Corresponds to the JSON property warnings

Returns:

  • (Array<String>)


604
605
606
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 604

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
615
616
617
618
619
620
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 611

def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @status = args[:status] if args.key?(:status)
  @status_history = args[:status_history] if args.key?(:status_history)
  @warnings = args[:warnings] if args.key?(:warnings)
end