Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Error

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Error message from an interaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1Error

Returns a new instance of GenaiVertexV1beta1Error.



1915
1916
1917
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1915

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

Instance Attribute Details

#codeString

A URI that identifies the error type. Corresponds to the JSON property code

Returns:

  • (String)


1908
1909
1910
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1908

def code
  @code
end

#messageString

A human-readable error message. Corresponds to the JSON property message

Returns:

  • (String)


1913
1914
1915
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1913

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1920
1921
1922
1923
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1920

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