Class: Google::Apis::DatastreamV1alpha1::Error
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1alpha1::Error
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/representations.rb
Overview
Represent a user-facing Error.
Instance Attribute Summary collapse
-
#details ⇒ Hash<String,String>
Additional information about the error.
-
#error_time ⇒ String
The time when the error occurred.
-
#error_uuid ⇒ String
A unique identifier for this specific error, allowing it to be traced throughout the system in logs and API responses.
-
#message ⇒ String
A message containing more information about the error that occurred.
-
#reason ⇒ String
A title that explains the reason for the error.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Error
constructor
A new instance of Error.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Error
Returns a new instance of Error.
378 379 380 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 378 def initialize(**args) update!(**args) end |
Instance Attribute Details
#details ⇒ Hash<String,String>
Additional information about the error.
Corresponds to the JSON property details
355 356 357 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 355 def details @details end |
#error_time ⇒ String
The time when the error occurred.
Corresponds to the JSON property errorTime
360 361 362 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 360 def error_time @error_time end |
#error_uuid ⇒ String
A unique identifier for this specific error, allowing it to be traced
throughout the system in logs and API responses.
Corresponds to the JSON property errorUuid
366 367 368 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 366 def error_uuid @error_uuid end |
#message ⇒ String
A message containing more information about the error that occurred.
Corresponds to the JSON property message
371 372 373 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 371 def @message end |
#reason ⇒ String
A title that explains the reason for the error.
Corresponds to the JSON property reason
376 377 378 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 376 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
383 384 385 386 387 388 389 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 383 def update!(**args) @details = args[:details] if args.key?(:details) @error_time = args[:error_time] if args.key?(:error_time) @error_uuid = args[:error_uuid] if args.key?(:error_uuid) @message = args[:message] if args.key?(:message) @reason = args[:reason] if args.key?(:reason) end |