Class: Google::Apis::SqladminV1beta4::ApiWarning

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#codeString

Code to uniquely identify the warning type. Corresponds to the JSON property code

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 70

def code
  @code
end

#messageString

The warning message. Corresponds to the JSON property message

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 75

def message
  @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