Class: Google::Apis::StoragetransferV1::TransferOperation

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

Overview

A description of the execution of a transfer.

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

Returns a new instance of TransferOperation



349
350
351
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 349

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

Instance Attribute Details

#countersGoogle::Apis::StoragetransferV1::TransferCounters

A collection of counters that report the progress of a transfer operation. Corresponds to the JSON property counters



321
322
323
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 321

def counters
  @counters
end

#end_timeString

End time of this transfer execution. Corresponds to the JSON property endTime

Returns:

  • (String)


347
348
349
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 347

def end_time
  @end_time
end

#error_breakdownsArray<Google::Apis::StoragetransferV1::ErrorSummary>

Summarizes errors encountered with sample error log entries. Corresponds to the JSON property errorBreakdowns



331
332
333
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 331

def error_breakdowns
  @error_breakdowns
end

#nameString

A globally unique ID assigned by the system. Corresponds to the JSON property name

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 336

def name
  @name
end

#project_idString

The ID of the Google Cloud Platform Console project that owns the operation. Required. Corresponds to the JSON property projectId

Returns:

  • (String)


342
343
344
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 342

def project_id
  @project_id
end

#start_timeString

Start time of this transfer execution. Corresponds to the JSON property startTime

Returns:

  • (String)


306
307
308
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 306

def start_time
  @start_time
end

#statusString

Status of the transfer operation. Corresponds to the JSON property status

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 326

def status
  @status
end

#transfer_job_nameString

The name of the transfer job that triggers this transfer operation. Corresponds to the JSON property transferJobName

Returns:

  • (String)


311
312
313
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 311

def transfer_job_name
  @transfer_job_name
end

#transfer_specGoogle::Apis::StoragetransferV1::TransferSpec

Configuration for running a transfer. Corresponds to the JSON property transferSpec



316
317
318
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 316

def transfer_spec
  @transfer_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
357
358
359
360
361
362
363
364
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 354

def update!(**args)
  @start_time = args[:start_time] if args.key?(:start_time)
  @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name)
  @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec)
  @counters = args[:counters] if args.key?(:counters)
  @status = args[:status] if args.key?(:status)
  @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns)
  @name = args[:name] if args.key?(:name)
  @project_id = args[:project_id] if args.key?(:project_id)
  @end_time = args[:end_time] if args.key?(:end_time)
end