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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ TransferCounters

Returns a new instance of TransferCounters.



1189
1190
1191
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1189

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)


1073
1074
1075
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1073

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)


1078
1079
1080
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1078

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)


1083
1084
1085
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1083

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)


1088
1089
1090
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1088

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, excluding any that are filtered based on object conditions or skipped due to sync. Corresponds to the JSON property bytesFoundFromSource

Returns:

  • (Fixnum)


1094
1095
1096
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1094

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)


1099
1100
1101
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1099

def bytes_found_only_from_sink
  @bytes_found_only_from_sink
end

#bytes_from_source_failedFixnum

Bytes in the data source that failed to be transferred or that failed to be deleted after being transferred. Corresponds to the JSON property bytesFromSourceFailed

Returns:

  • (Fixnum)


1105
1106
1107
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1105

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)


1111
1112
1113
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1111

def bytes_from_source_skipped_by_sync
  @bytes_from_source_skipped_by_sync
end

#directories_failed_to_list_from_sourceFixnum

For transfers involving PosixFilesystem only. Number of listing failures for each directory found at the source. Potential failures when listing a directory include permission failure or block failure. If listing a directory fails, no files in the directory are transferred. Corresponds to the JSON property directoriesFailedToListFromSource

Returns:

  • (Fixnum)


1119
1120
1121
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1119

def directories_failed_to_list_from_source
  @directories_failed_to_list_from_source
end

#directories_found_from_sourceFixnum

For transfers involving PosixFilesystem only. Number of directories found while listing. For example, if the root directory of the transfer is base/ and there are two other directories, a/ and b/ under this directory, the count after listing base/, base/a/ and base/b/ is 3. Corresponds to the JSON property directoriesFoundFromSource

Returns:

  • (Fixnum)


1127
1128
1129
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1127

def directories_found_from_source
  @directories_found_from_source
end

#directories_successfully_listed_from_sourceFixnum

For transfers involving PosixFilesystem only. Number of successful listings for each directory found at the source. Corresponds to the JSON property directoriesSuccessfullyListedFromSource

Returns:

  • (Fixnum)


1133
1134
1135
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1133

def directories_successfully_listed_from_source
  @directories_successfully_listed_from_source
end

#intermediate_objects_cleaned_upFixnum

Number of successfully cleaned up intermediate objects. Corresponds to the JSON property intermediateObjectsCleanedUp

Returns:

  • (Fixnum)


1138
1139
1140
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1138

def intermediate_objects_cleaned_up
  @intermediate_objects_cleaned_up
end

#intermediate_objects_failed_cleaned_upFixnum

Number of intermediate objects failed cleaned up. Corresponds to the JSON property intermediateObjectsFailedCleanedUp

Returns:

  • (Fixnum)


1143
1144
1145
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1143

def intermediate_objects_failed_cleaned_up
  @intermediate_objects_failed_cleaned_up
end

#objects_copied_to_sinkFixnum

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

Returns:

  • (Fixnum)


1148
1149
1150
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1148

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)


1153
1154
1155
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1153

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)


1158
1159
1160
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1158

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)


1163
1164
1165
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1163

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, excluding any that are filtered based on object conditions or skipped due to sync. Corresponds to the JSON property objectsFoundFromSource

Returns:

  • (Fixnum)


1170
1171
1172
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1170

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)


1175
1176
1177
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1175

def objects_found_only_from_sink
  @objects_found_only_from_sink
end

#objects_from_source_failedFixnum

Objects in the data source that failed to be transferred or that failed to be deleted after being transferred. Corresponds to the JSON property objectsFromSourceFailed

Returns:

  • (Fixnum)


1181
1182
1183
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1181

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)


1187
1188
1189
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1187

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



1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 1194

def update!(**args)
  @bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink)
  @bytes_deleted_from_sink = args[:bytes_deleted_from_sink] if args.key?(:bytes_deleted_from_sink)
  @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source)
  @bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] if args.key?(:bytes_failed_to_delete_from_sink)
  @bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source)
  @bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink)
  @bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed)
  @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync)
  @directories_failed_to_list_from_source = args[:directories_failed_to_list_from_source] if args.key?(:directories_failed_to_list_from_source)
  @directories_found_from_source = args[:directories_found_from_source] if args.key?(:directories_found_from_source)
  @directories_successfully_listed_from_source = args[:directories_successfully_listed_from_source] if args.key?(:directories_successfully_listed_from_source)
  @intermediate_objects_cleaned_up = args[:intermediate_objects_cleaned_up] if args.key?(:intermediate_objects_cleaned_up)
  @intermediate_objects_failed_cleaned_up = args[:intermediate_objects_failed_cleaned_up] if args.key?(:intermediate_objects_failed_cleaned_up)
  @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink)
  @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink)
  @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_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_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source)
  @objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink)
  @objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed)
  @objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync)
end