Class: Google::Apis::RunV1::StatusCause

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StatusCause

Returns a new instance of StatusCause.



3195
3196
3197
# File 'generated/google/apis/run_v1/classes.rb', line 3195

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

Instance Attribute Details

#fieldString

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

Returns:

  • (String)


3179
3180
3181
# File 'generated/google/apis/run_v1/classes.rb', line 3179

def field
  @field
end

#messageString

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

Returns:

  • (String)


3186
3187
3188
# File 'generated/google/apis/run_v1/classes.rb', line 3186

def message
  @message
end

#reasonString

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

Returns:

  • (String)


3193
3194
3195
# File 'generated/google/apis/run_v1/classes.rb', line 3193

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3200
3201
3202
3203
3204
# File 'generated/google/apis/run_v1/classes.rb', line 3200

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