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



1058
1059
1060
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1058

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

Instance Attribute Details

#bytes_copied_to_sinkFixnum

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

Returns:

  • (Fixnum)


1043
1044
1045
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1043

def bytes_copied_to_sink
  @bytes_copied_to_sink
end

#bytes_deleted_from_sinkFixnum

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

Returns:

  • (Fixnum)


1008
1009
1010
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1008

def bytes_deleted_from_sink
  @bytes_deleted_from_sink
end

#bytes_deleted_from_sourceFixnum

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

Returns:

  • (Fixnum)


982
983
984
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 982

def bytes_deleted_from_source
  @bytes_deleted_from_source
end

#bytes_failed_to_delete_from_sinkFixnum

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

Returns:

  • (Fixnum)


1013
1014
1015
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1013

def bytes_failed_to_delete_from_sink
  @bytes_failed_to_delete_from_sink
end

#bytes_found_from_sourceFixnum

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:

  • (Fixnum)


1050
1051
1052
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1050

def bytes_found_from_source
  @bytes_found_from_source
end

#bytes_found_only_from_sinkFixnum

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

Returns:

  • (Fixnum)


1033
1034
1035
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1033

def bytes_found_only_from_sink
  @bytes_found_only_from_sink
end

#bytes_from_source_failedFixnum

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

Returns:

  • (Fixnum)


1018
1019
1020
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1018

def bytes_from_source_failed
  @bytes_from_source_failed
end

#bytes_from_source_skipped_by_syncFixnum

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

Returns:

  • (Fixnum)


1003
1004
1005
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1003

def bytes_from_source_skipped_by_sync
  @bytes_from_source_skipped_by_sync
end

#objects_copied_to_sinkFixnum

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

Returns:

  • (Fixnum)


1028
1029
1030
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1028

def objects_copied_to_sink
  @objects_copied_to_sink
end

#objects_deleted_from_sinkFixnum

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

Returns:

  • (Fixnum)


992
993
994
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 992

def objects_deleted_from_sink
  @objects_deleted_from_sink
end

#objects_deleted_from_sourceFixnum

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

Returns:

  • (Fixnum)


1038
1039
1040
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1038

def objects_deleted_from_source
  @objects_deleted_from_source
end

#objects_failed_to_delete_from_sinkFixnum

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

Returns:

  • (Fixnum)


987
988
989
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 987

def objects_failed_to_delete_from_sink
  @objects_failed_to_delete_from_sink
end

#objects_found_from_sourceFixnum

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:

  • (Fixnum)


977
978
979
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 977

def objects_found_from_source
  @objects_found_from_source
end

#objects_found_only_from_sinkFixnum

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

Returns:

  • (Fixnum)


997
998
999
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 997

def objects_found_only_from_sink
  @objects_found_only_from_sink
end

#objects_from_source_failedFixnum

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

Returns:

  • (Fixnum)


1023
1024
1025
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1023

def objects_from_source_failed
  @objects_from_source_failed
end

#objects_from_source_skipped_by_syncFixnum

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

Returns:

  • (Fixnum)


1056
1057
1058
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1056

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



1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 1063

def update!(**args)
  @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
  @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_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