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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/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.



4145
4146
4147
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4145

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


4133
4134
4135
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4133

def code
  @code
end

#kindString

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

Returns:

  • (String)


4138
4139
4140
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4138

def kind
  @kind
end

#messageString

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

Returns:

  • (String)


4143
4144
4145
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4143

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4150
4151
4152
4153
4154
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4150

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