Class: Google::Apis::RunV1::StatusCause
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::StatusCause
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1/classes.rb,
generated/google/apis/run_v1/representations.rb,
generated/google/apis/run_v1/representations.rb
Overview
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
Instance Attribute Summary collapse
-
#field ⇒ String
The field of the resource that has caused this error, as named by its JSON serialization.
-
#message ⇒ String
A human-readable description of the cause of the error.
-
#reason ⇒ String
A machine-readable description of the cause of the error.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StatusCause
constructor
A new instance of StatusCause.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StatusCause
Returns a new instance of StatusCause.
2787 2788 2789 |
# File 'generated/google/apis/run_v1/classes.rb', line 2787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ String
The field of the resource that has caused this error, as named by its JSON
serialization. May include dot and postfix notation for nested attributes.
Arrays are zero-indexed. Fields may appear more than once in an array of
causes due to fields having multiple errors. Optional. Examples: "name" - the
field "name" on the current resource "items[0].name" - the field "name" on the
first array entry in "items" +optional
Corresponds to the JSON property field
2773 2774 2775 |
# File 'generated/google/apis/run_v1/classes.rb', line 2773 def field @field end |
#message ⇒ String
A human-readable description of the cause of the error. This field may be
presented as-is to a reader. +optional
Corresponds to the JSON property message
2779 2780 2781 |
# File 'generated/google/apis/run_v1/classes.rb', line 2779 def @message end |
#reason ⇒ String
A machine-readable description of the cause of the error. If this value is
empty there is no information available. +optional
Corresponds to the JSON property reason
2785 2786 2787 |
# File 'generated/google/apis/run_v1/classes.rb', line 2785 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2792 2793 2794 2795 2796 |
# File 'generated/google/apis/run_v1/classes.rb', line 2792 def update!(**args) @field = args[:field] if args.key?(:field) @message = args[:message] if args.key?(:message) @reason = args[:reason] if args.key?(:reason) end |