Class: Google::Apis::SqladminV1::OperationError

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



2653
2654
2655
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2653

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2641

def code
  @code
end

#kindString

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

Returns:

  • (String)


2646
2647
2648
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2646

def kind
  @kind
end

#messageString

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

Returns:

  • (String)


2651
2652
2653
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2651

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2658
2659
2660
2661
2662
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2658

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