Class: Google::Apis::StoragetransferV1::TransferCounters

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 collection of counters that report the progress of a transfer 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) ⇒ TransferCounters

Returns a new instance of TransferCounters



464
465
466
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 464

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

Instance Attribute Details

#bytes_copied_to_sinkString

Bytes that are copied to the data sink. Corresponds to the JSON property bytesCopiedToSink

Returns:

  • (String)


449
450
451
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 449

def bytes_copied_to_sink
  @bytes_copied_to_sink
end

#bytes_deleted_from_sinkString

Bytes that are deleted from the data sink. Corresponds to the JSON property bytesDeletedFromSink

Returns:

  • (String)


414
415
416
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 414

def bytes_deleted_from_sink
  @bytes_deleted_from_sink
end

#bytes_deleted_from_sourceString

Bytes that are deleted from the data source. Corresponds to the JSON property bytesDeletedFromSource

Returns:

  • (String)


381
382
383
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 381

def bytes_deleted_from_source
  @bytes_deleted_from_source
end

#bytes_failed_to_delete_from_sinkString

Bytes that failed to be deleted from the data sink. Corresponds to the JSON property bytesFailedToDeleteFromSink

Returns:

  • (String)


419
420
421
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 419

def bytes_failed_to_delete_from_sink
  @bytes_failed_to_delete_from_sink
end

#bytes_found_from_sourceString

Bytes found in the data source that are scheduled to be transferred, which will be copied, excluded based on conditions, or skipped due to failures. Corresponds to the JSON property bytesFoundFromSource

Returns:

  • (String)


456
457
458
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 456

def bytes_found_from_source
  @bytes_found_from_source
end

#bytes_found_only_from_sinkString

Bytes found only in the data sink that are scheduled to be deleted. Corresponds to the JSON property bytesFoundOnlyFromSink

Returns:

  • (String)


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

def bytes_found_only_from_sink
  @bytes_found_only_from_sink
end

#bytes_from_source_failedString

Bytes in the data source that failed during the transfer. Corresponds to the JSON property bytesFromSourceFailed

Returns:

  • (String)


424
425
426
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 424

def bytes_from_source_failed
  @bytes_from_source_failed
end

#bytes_from_source_skipped_by_syncString

Bytes in the data source that are not transferred because they already exist in the data sink. Corresponds to the JSON property bytesFromSourceSkippedBySync

Returns:

  • (String)


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

def bytes_from_source_skipped_by_sync
  @bytes_from_source_skipped_by_sync
end

#objects_copied_to_sinkString

Objects that are copied to the data sink. Corresponds to the JSON property objectsCopiedToSink

Returns:

  • (String)


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

def objects_copied_to_sink
  @objects_copied_to_sink
end

#objects_deleted_from_sinkString

Objects that are deleted from the data sink. Corresponds to the JSON property objectsDeletedFromSink

Returns:

  • (String)


398
399
400
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 398

def objects_deleted_from_sink
  @objects_deleted_from_sink
end

#objects_deleted_from_sourceString

Objects that are deleted from the data source. Corresponds to the JSON property objectsDeletedFromSource

Returns:

  • (String)


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

def objects_deleted_from_source
  @objects_deleted_from_source
end

#objects_failed_to_delete_from_sinkString

Objects that failed to be deleted from the data sink. Corresponds to the JSON property objectsFailedToDeleteFromSink

Returns:

  • (String)


393
394
395
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 393

def objects_failed_to_delete_from_sink
  @objects_failed_to_delete_from_sink
end

#objects_found_from_sourceString

Objects found in the data source that are scheduled to be transferred, which will be copied, excluded based on conditions, or skipped due to failures. Corresponds to the JSON property objectsFoundFromSource

Returns:

  • (String)


388
389
390
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 388

def objects_found_from_source
  @objects_found_from_source
end

#objects_found_only_from_sinkString

Objects found only in the data sink that are scheduled to be deleted. Corresponds to the JSON property objectsFoundOnlyFromSink

Returns:

  • (String)


403
404
405
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 403

def objects_found_only_from_sink
  @objects_found_only_from_sink
end

#objects_from_source_failedString

Objects in the data source that failed during the transfer. Corresponds to the JSON property objectsFromSourceFailed

Returns:

  • (String)


429
430
431
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 429

def objects_from_source_failed
  @objects_from_source_failed
end

#objects_from_source_skipped_by_syncString

Objects in the data source that are not transferred because they already exist in the data sink. Corresponds to the JSON property objectsFromSourceSkippedBySync

Returns:

  • (String)


462
463
464
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 462

def objects_from_source_skipped_by_sync
  @objects_from_source_skipped_by_sync
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 469

def update!(**args)
  @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
  @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
  @objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink)
  @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
  @objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
  @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
  @bytes_deleted_from_sink = args[:bytes_deleted_from_sink] if args.key?(:bytes_deleted_from_sink)
  @bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] if args.key?(:bytes_failed_to_delete_from_sink)
  @bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
  @objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed)
  @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
  @bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
  @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source)
  @bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink)
  @bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source)
  @objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync)
end