Class: Google::Apis::SqladminV1::OperationError
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::OperationError
- 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
-
#code ⇒ String
Identifies the specific error that occurred.
-
#kind ⇒ String
This is always
sql#operationError. -
#message ⇒ String
Additional information about the error encountered.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OperationError
constructor
A new instance of OperationError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OperationError
Returns a new instance of OperationError.
2473 2474 2475 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Identifies the specific error that occurred.
Corresponds to the JSON property code
2461 2462 2463 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2461 def code @code end |
#kind ⇒ String
This is always sql#operationError.
Corresponds to the JSON property kind
2466 2467 2468 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2466 def kind @kind end |
#message ⇒ String
Additional information about the error encountered.
Corresponds to the JSON property message
2471 2472 2473 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2471 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2478 2479 2480 2481 2482 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2478 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 |