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



1270
1271
1272
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1270

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)


1243
1244
1245
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1243

def cluster_name
  @cluster_name
end

#cluster_uuidString

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

Returns:

  • (String)


1248
1249
1250
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1248

def cluster_uuid
  @cluster_uuid
end

#descriptionString

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

Returns:

  • (String)


1258
1259
1260
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1258

def description
  @description
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1268
1269
1270
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1268

def labels
  @labels
end

#operation_typeString

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

Returns:

  • (String)


1253
1254
1255
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1253

def operation_type
  @operation_type
end

#statusGoogle::Apis::DataprocV1::ClusterOperationStatus

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



1233
1234
1235
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1233

def status
  @status
end

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

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



1238
1239
1240
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1238

def status_history
  @status_history
end

#warningsArray<String>

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

Returns:

  • (Array<String>)


1263
1264
1265
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1263

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1275

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @status_history = args[:status_history] if args.key?(:status_history)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
  @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)
end