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.
140 141 142 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Code to uniquely identify the warning type.
Corresponds to the JSON property code
128 129 130 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 128 def code @code end |
#message ⇒ String
The warning message.
Corresponds to the JSON property message
133 134 135 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 133 def @message end |
#region ⇒ String
The region name for REGION_UNREACHABLE warning.
Corresponds to the JSON property region
138 139 140 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 138 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 149 |
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 145 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 |