class Google::Apis::RunV1::StatusCause

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

Attributes

field[RW]

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.name” - the field “name” on the first array entry in “items” +optional Corresponds to the JSON property `field` @return [String]

message[RW]

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` @return [String]

reason[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2743
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1/classes.rb, line 2748
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