Class: Google::Apis::GenomicsV1::OperationMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v1/classes.rb,
generated/google/apis/genomics_v1/representations.rb,
generated/google/apis/genomics_v1/representations.rb

Overview

Metadata describing an 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.



446
447
448
# File 'generated/google/apis/genomics_v1/classes.rb', line 446

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

Instance Attribute Details

#client_idString

This field is deprecated. Use labels instead. Optionally provided by the caller when submitting the request that creates the operation. Corresponds to the JSON property clientId

Returns:

  • (String)


399
400
401
# File 'generated/google/apis/genomics_v1/classes.rb', line 399

def client_id
  @client_id
end

#create_timeString

The time at which the job was submitted to the Genomics service. Corresponds to the JSON property createTime

Returns:

  • (String)


404
405
406
# File 'generated/google/apis/genomics_v1/classes.rb', line 404

def create_time
  @create_time
end

#end_timeString

The time at which the job stopped running. Corresponds to the JSON property endTime

Returns:

  • (String)


409
410
411
# File 'generated/google/apis/genomics_v1/classes.rb', line 409

def end_time
  @end_time
end

#eventsArray<Google::Apis::GenomicsV1::OperationEvent>

Optional event messages that were generated during the job's execution. This also contains any warnings that were generated during import or export. Corresponds to the JSON property events



416
417
418
# File 'generated/google/apis/genomics_v1/classes.rb', line 416

def events
  @events
end

#labelsHash<String,String>

Optionally provided by the caller when submitting the request that creates the operation. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


422
423
424
# File 'generated/google/apis/genomics_v1/classes.rb', line 422

def labels
  @labels
end

#project_idString

The Google Cloud Project in which the job is scoped. Corresponds to the JSON property projectId

Returns:

  • (String)


427
428
429
# File 'generated/google/apis/genomics_v1/classes.rb', line 427

def project_id
  @project_id
end

#requestHash<String,Object>

The original request that started the operation. Note that this will be in current version of the API. If the operation was started with v1beta2 API and a GetOperation is performed on v1 API, a v1 request will be returned. Corresponds to the JSON property request

Returns:

  • (Hash<String,Object>)


434
435
436
# File 'generated/google/apis/genomics_v1/classes.rb', line 434

def request
  @request
end

#runtime_metadataHash<String,Object>

Runtime metadata on this Operation. Corresponds to the JSON property runtimeMetadata

Returns:

  • (Hash<String,Object>)


439
440
441
# File 'generated/google/apis/genomics_v1/classes.rb', line 439

def 
  @runtime_metadata
end

#start_timeString

The time at which the job began to run. Corresponds to the JSON property startTime

Returns:

  • (String)


444
445
446
# File 'generated/google/apis/genomics_v1/classes.rb', line 444

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



451
452
453
454
455
456
457
458
459
460
461
# File 'generated/google/apis/genomics_v1/classes.rb', line 451

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @events = args[:events] if args.key?(:events)
  @labels = args[:labels] if args.key?(:labels)
  @project_id = args[:project_id] if args.key?(:project_id)
  @request = args[:request] if args.key?(:request)
  @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
  @start_time = args[:start_time] if args.key?(:start_time)
end