Class: Google::Apis::SqladminV1beta4::ApiWarning
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::ApiWarning
- 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
An Admin API warning message.
Instance Attribute Summary collapse
-
#code ⇒ String
Code to uniquely identify the warning type.
-
#message ⇒ String
The warning message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiWarning
constructor
A new instance of ApiWarning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiWarning
Returns a new instance of ApiWarning.
77 78 79 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 77 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Code to uniquely identify the warning type.
Corresponds to the JSON property code
70 71 72 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 70 def code @code end |
#message ⇒ String
The warning message.
Corresponds to the JSON property message
75 76 77 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 75 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 82 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |