Class: Google::Apis::StoragebatchoperationsV1::ErrorLogEntry

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

An entry describing an error that has occurred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorLogEntry

Returns a new instance of ErrorLogEntry.



426
427
428
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 426

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

Instance Attribute Details

#error_detailsArray<String>

Optional. Output only. At most 5 error log entries are recorded for a given error code for a job. Corresponds to the JSON property errorDetails

Returns:

  • (Array<String>)


419
420
421
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 419

def error_details
  @error_details
end

#object_uriString

Required. Output only. Object URL. e.g. gs://my_bucket/object.txt Corresponds to the JSON property objectUri

Returns:

  • (String)


424
425
426
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 424

def object_uri
  @object_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



431
432
433
434
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 431

def update!(**args)
  @error_details = args[:error_details] if args.key?(:error_details)
  @object_uri = args[:object_uri] if args.key?(:object_uri)
end