Class: Google::Apis::StoragetransferV1::ErrorSummary

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 summary of errors by error code, plus a count and sample error log entries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorSummary

Returns a new instance of ErrorSummary.



276
277
278
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 276

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

Instance Attribute Details

#error_codeString

Required. Corresponds to the JSON property errorCode

Returns:

  • (String)


263
264
265
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 263

def error_code
  @error_code
end

#error_countFixnum

Required. Count of this type of error. Corresponds to the JSON property errorCount

Returns:

  • (Fixnum)


268
269
270
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 268

def error_count
  @error_count
end

#error_log_entriesArray<Google::Apis::StoragetransferV1::ErrorLogEntry>

Error samples. At most 5 error log entries will be recorded for a given error code for a single transfer operation. Corresponds to the JSON property errorLogEntries



274
275
276
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 274

def error_log_entries
  @error_log_entries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



281
282
283
284
285
# File 'generated/google/apis/storagetransfer_v1/classes.rb', line 281

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @error_count = args[:error_count] if args.key?(:error_count)
  @error_log_entries = args[:error_log_entries] if args.key?(:error_log_entries)
end