Class: Google::Apis::StoragebatchoperationsV1::ErrorSummary

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



409
410
411
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 409

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

Instance Attribute Details

#error_codeString

Required. The canonical error code. Corresponds to the JSON property errorCode

Returns:

  • (String)


397
398
399
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 397

def error_code
  @error_code
end

#error_countFixnum

Required. Number of errors encountered per error_code. Corresponds to the JSON property errorCount

Returns:

  • (Fixnum)


402
403
404
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 402

def error_count
  @error_count
end

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

Required. Sample error logs. Corresponds to the JSON property errorLogEntries



407
408
409
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 407

def error_log_entries
  @error_log_entries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
417
418
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 414

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