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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperationError

Returns a new instance of OperationError.



1423
1424
1425
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1423

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


1411
1412
1413
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1411

def code
  @code
end

#kindString

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

Returns:

  • (String)


1416
1417
1418
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1416

def kind
  @kind
end

#messageString

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

Returns:

  • (String)


1421
1422
1423
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1421

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1428
1429
1430
1431
1432
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1428

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