Class: Google::Apis::SqladminV1::Message
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::Message
- 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
Represents a notice or warning message from the database.
Instance Attribute Summary collapse
-
#message ⇒ String
The full message string.
-
#severity ⇒ String
The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Message
constructor
A new instance of Message.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Message
Returns a new instance of Message.
3766 3767 3768 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3766 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ String
The full message string. For PostgreSQL, this is a formatted string that may
include severity, code, and the notice/warning message. For MySQL, this
contains the warning message.
Corresponds to the JSON property message
3758 3759 3760 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3758 def @message end |
#severity ⇒ String
The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for
MySQL).
Corresponds to the JSON property severity
3764 3765 3766 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3764 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3771 3772 3773 3774 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3771 def update!(**args) @message = args[:message] if args.key?(:message) @severity = args[:severity] if args.key?(:severity) end |