Class: Google::Apis::SqladminV1beta4::OperationError

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

Overview

Database instance operation error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationError

Returns a new instance of OperationError.



2163
2164
2165
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2163

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

Instance Attribute Details

#codeString

Identifies the specific error that occurred. Corresponds to the JSON property code

Returns:

  • (String)


2151
2152
2153
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2151

def code
  @code
end

#kindString

This is always sql#operationError. Corresponds to the JSON property kind

Returns:

  • (String)


2156
2157
2158
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2156

def kind
  @kind
end

#messageString

Additional information about the error encountered. Corresponds to the JSON property message

Returns:

  • (String)


2161
2162
2163
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2161

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2168
2169
2170
2171
2172
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 2168

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