Class: Google::Apis::SqladminV1::Message

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#messageString

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

Returns:

  • (String)


3758
3759
3760
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3758

def message
  @message
end

#severityString

The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL). Corresponds to the JSON property severity

Returns:

  • (String)


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