Class: Google::Apis::DataprocV1::OperationMetadata

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

Returns a new instance of OperationMetadata.



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

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

Instance Attribute Details

#cluster_nameString

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

Returns:

  • (String)


1485
1486
1487
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1485

def cluster_name
  @cluster_name
end

#cluster_uuidString

Cluster UUId for the operation. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


1490
1491
1492
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1490

def cluster_uuid
  @cluster_uuid
end

#descriptionString

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

Returns:

  • (String)


1510
1511
1512
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1510

def description
  @description
end

#detailsString

A message containing any operation metadata details. Corresponds to the JSON property details

Returns:

  • (String)


1465
1466
1467
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1465

def details
  @details
end

#end_timeString

The time that the operation completed. Corresponds to the JSON property endTime

Returns:

  • (String)


1480
1481
1482
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1480

def end_time
  @end_time
end

#inner_stateString

A message containing the detailed operation state. Corresponds to the JSON property innerState

Returns:

  • (String)


1460
1461
1462
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1460

def inner_state
  @inner_state
end

#insert_timeString

The time that the operation was requested. Corresponds to the JSON property insertTime

Returns:

  • (String)


1470
1471
1472
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1470

def insert_time
  @insert_time
end

#operation_typeString

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

Returns:

  • (String)


1505
1506
1507
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1505

def operation_type
  @operation_type
end

#start_timeString

The time that the operation was started by the server. Corresponds to the JSON property startTime

Returns:

  • (String)


1475
1476
1477
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1475

def start_time
  @start_time
end

#stateString

A message containing the operation state. Corresponds to the JSON property state

Returns:

  • (String)


1455
1456
1457
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1455

def state
  @state
end

#statusGoogle::Apis::DataprocV1::OperationStatus

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



1495
1496
1497
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1495

def status
  @status
end

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

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



1500
1501
1502
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1500

def status_history
  @status_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1517

def update!(**args)
  @state = args[:state] if args.key?(:state)
  @inner_state = args[:inner_state] if args.key?(:inner_state)
  @details = args[:details] if args.key?(:details)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @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)
end