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.



1717
1718
1719
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1717

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)


1710
1711
1712
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1710

def code
  @code
end

#messageString

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

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1715

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1722
1723
1724
1725
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1722

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