Class: Google::Apis::SqladminV1::ApiWarning

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

An Admin API warning message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApiWarning

Returns a new instance of ApiWarning.



140
141
142
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 140

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)


128
129
130
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 128

def code
  @code
end

#messageString

The warning message. Corresponds to the JSON property message

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 133

def message
  @message
end

#regionString

The region name for REGION_UNREACHABLE warning. Corresponds to the JSON property region

Returns:

  • (String)


138
139
140
# File 'lib/google/apis/sqladmin_v1/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_v1/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