Class: Google::Apis::SqladminV1beta4::ApiWarning
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::ApiWarning
- 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
An Admin API warning message.
Instance Attribute Summary collapse
-
#code ⇒ String
Code to uniquely identify the warning type.
-
#message ⇒ String
The warning message.
-
#region ⇒ String
The region name for REGION_UNREACHABLE warning.
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.
82 83 84 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 82 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 'lib/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 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 75 def @message end |
#region ⇒ String
The region name for REGION_UNREACHABLE warning.
Corresponds to the JSON property region
80 81 82 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 80 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
87 88 89 90 91 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 87 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) @region = args[:region] if args.key?(:region) end |