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.



1520
1521
1522
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1520

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:



1488
1489
1490
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1488

def cluster_name
  @cluster_name
end

#cluster_uuidString

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

Returns:



1493
1494
1495
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1493

def cluster_uuid
  @cluster_uuid
end

#descriptionString

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

Returns:



1513
1514
1515
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1513

def description
  @description
end

#labelsHash<String,String>

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

Returns:



1518
1519
1520
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1518

def labels
  @labels
end

#operation_typeString

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

Returns:



1508
1509
1510
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1508

def operation_type
  @operation_type
end

#statusGoogle::Apis::DataprocV1::ClusterOperationStatus

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

Returns:



1498
1499
1500
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1498

def status
  @status
end

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

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

Returns:



1503
1504
1505
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1503

def status_history
  @status_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1525
1526
1527
1528
1529
1530
1531
1532
1533
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1525

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