Class: Google::Apis::DataprocV1::ClusterOperationMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/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



839
840
841
# File 'generated/google/apis/dataproc_v1/classes.rb', line 839

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)


837
838
839
# File 'generated/google/apis/dataproc_v1/classes.rb', line 837

def cluster_name
  @cluster_name
end

#cluster_uuidString

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

Returns:

  • (String)


832
833
834
# File 'generated/google/apis/dataproc_v1/classes.rb', line 832

def cluster_uuid
  @cluster_uuid
end

#descriptionString

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

Returns:

  • (String)


807
808
809
# File 'generated/google/apis/dataproc_v1/classes.rb', line 807

def description
  @description
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


817
818
819
# File 'generated/google/apis/dataproc_v1/classes.rb', line 817

def labels
  @labels
end

#operation_typeString

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

Returns:

  • (String)


802
803
804
# File 'generated/google/apis/dataproc_v1/classes.rb', line 802

def operation_type
  @operation_type
end

#statusGoogle::Apis::DataprocV1::ClusterOperationStatus

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



822
823
824
# File 'generated/google/apis/dataproc_v1/classes.rb', line 822

def status
  @status
end

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

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



827
828
829
# File 'generated/google/apis/dataproc_v1/classes.rb', line 827

def status_history
  @status_history
end

#warningsArray<String>

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

Returns:

  • (Array<String>)


812
813
814
# File 'generated/google/apis/dataproc_v1/classes.rb', line 812

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



844
845
846
847
848
849
850
851
852
853
# File 'generated/google/apis/dataproc_v1/classes.rb', line 844

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