Class: OCI::DatabaseManagement::Models::MySqlConfigurationDataSummary
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::Models::MySqlConfigurationDataSummary
- Defined in:
- lib/oci/database_management/models/my_sql_configuration_data_summary.rb
Overview
The configuration variables for a MySQL Database.
Constant Summary collapse
- SOURCE_ENUM =
[ SOURCE_COMPILED = 'COMPILED'.freeze, SOURCE_GLOBAL = 'GLOBAL'.freeze, SOURCE_SERVER = 'SERVER'.freeze, SOURCE_EXPLICIT = 'EXPLICIT'.freeze, SOURCE_EXTRA = 'EXTRA'.freeze, SOURCE_USER = 'USER'.freeze, SOURCE_LOGIN = 'LOGIN'.freeze, SOURCE_COMMAND_LINE = 'COMMAND_LINE'.freeze, SOURCE_PERSISTED = 'PERSISTED'.freeze, SOURCE_DYNAMIC = 'DYNAMIC'.freeze, SOURCE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#default_value ⇒ String
[Required] The default value of the variable.
-
#description ⇒ String
[Required] The description of the variable.
-
#host_set ⇒ String
[Required] The host from where the value of the variable was set.
-
#is_configurable ⇒ BOOLEAN
[Required] Indicates whether the variable is configurable.
-
#is_dynamic ⇒ BOOLEAN
[Required] Indicates whether the variable can be set dynamically or not.
-
#is_init ⇒ BOOLEAN
[Required] Indicates whether the variable is set at server startup.
-
#max_value ⇒ Float
[Required] The maximum value of the variable.
-
#min_value ⇒ Float
[Required] The minimum value of the variable.
-
#name ⇒ String
[Required] The name of the configuration variable.
-
#path ⇒ String
[Required] The path name of the option file (VARIABLE_PATH), if the variable was set in an option file.
-
#possible_values ⇒ String
[Required] The comma-separated list of possible values for the variable in value:valueDescription format.
-
#source ⇒ String
[Required] The source from which the variable was most recently set.
-
#supported_versions ⇒ String
[Required] The comma-separated list of MySQL versions that support the variable.
-
#time_set ⇒ DateTime
[Required] The time when the value of the variable was set.
-
#type ⇒ String
[Required] The type of variable.
-
#user_set ⇒ String
[Required] The user who sets the value of the variable.
-
#value ⇒ String
[Required] The value of the variable.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ MySqlConfigurationDataSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ MySqlConfigurationDataSummary
Initializes the object
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 167 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.name = attributes[:'name'] if attributes[:'name'] self.value = attributes[:'value'] if attributes[:'value'] self.source = attributes[:'source'] if attributes[:'source'] self.min_value = attributes[:'minValue'] if attributes[:'minValue'] raise 'You cannot provide both :minValue and :min_value' if attributes.key?(:'minValue') && attributes.key?(:'min_value') self.min_value = attributes[:'min_value'] if attributes[:'min_value'] self.max_value = attributes[:'maxValue'] if attributes[:'maxValue'] raise 'You cannot provide both :maxValue and :max_value' if attributes.key?(:'maxValue') && attributes.key?(:'max_value') self.max_value = attributes[:'max_value'] if attributes[:'max_value'] self.type = attributes[:'type'] if attributes[:'type'] self.default_value = attributes[:'defaultValue'] if attributes[:'defaultValue'] raise 'You cannot provide both :defaultValue and :default_value' if attributes.key?(:'defaultValue') && attributes.key?(:'default_value') self.default_value = attributes[:'default_value'] if attributes[:'default_value'] self.time_set = attributes[:'timeSet'] if attributes[:'timeSet'] raise 'You cannot provide both :timeSet and :time_set' if attributes.key?(:'timeSet') && attributes.key?(:'time_set') self.time_set = attributes[:'time_set'] if attributes[:'time_set'] self.host_set = attributes[:'hostSet'] if attributes[:'hostSet'] raise 'You cannot provide both :hostSet and :host_set' if attributes.key?(:'hostSet') && attributes.key?(:'host_set') self.host_set = attributes[:'host_set'] if attributes[:'host_set'] self.user_set = attributes[:'userSet'] if attributes[:'userSet'] raise 'You cannot provide both :userSet and :user_set' if attributes.key?(:'userSet') && attributes.key?(:'user_set') self.user_set = attributes[:'user_set'] if attributes[:'user_set'] self.is_dynamic = attributes[:'isDynamic'] unless attributes[:'isDynamic'].nil? raise 'You cannot provide both :isDynamic and :is_dynamic' if attributes.key?(:'isDynamic') && attributes.key?(:'is_dynamic') self.is_dynamic = attributes[:'is_dynamic'] unless attributes[:'is_dynamic'].nil? self.is_init = attributes[:'isInit'] unless attributes[:'isInit'].nil? raise 'You cannot provide both :isInit and :is_init' if attributes.key?(:'isInit') && attributes.key?(:'is_init') self.is_init = attributes[:'is_init'] unless attributes[:'is_init'].nil? self.is_configurable = attributes[:'isConfigurable'] unless attributes[:'isConfigurable'].nil? raise 'You cannot provide both :isConfigurable and :is_configurable' if attributes.key?(:'isConfigurable') && attributes.key?(:'is_configurable') self.is_configurable = attributes[:'is_configurable'] unless attributes[:'is_configurable'].nil? self.path = attributes[:'path'] if attributes[:'path'] self.description = attributes[:'description'] if attributes[:'description'] self.possible_values = attributes[:'possibleValues'] if attributes[:'possibleValues'] raise 'You cannot provide both :possibleValues and :possible_values' if attributes.key?(:'possibleValues') && attributes.key?(:'possible_values') self.possible_values = attributes[:'possible_values'] if attributes[:'possible_values'] self.supported_versions = attributes[:'supportedVersions'] if attributes[:'supportedVersions'] raise 'You cannot provide both :supportedVersions and :supported_versions' if attributes.key?(:'supportedVersions') && attributes.key?(:'supported_versions') self.supported_versions = attributes[:'supported_versions'] if attributes[:'supported_versions'] end |
Instance Attribute Details
#default_value ⇒ String
[Required] The default value of the variable.
52 53 54 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 52 def default_value @default_value end |
#description ⇒ String
[Required] The description of the variable.
84 85 86 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 84 def description @description end |
#host_set ⇒ String
[Required] The host from where the value of the variable was set. This is empty for a MySQL Database System.
60 61 62 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 60 def host_set @host_set end |
#is_configurable ⇒ BOOLEAN
[Required] Indicates whether the variable is configurable.
76 77 78 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 76 def is_configurable @is_configurable end |
#is_dynamic ⇒ BOOLEAN
[Required] Indicates whether the variable can be set dynamically or not.
68 69 70 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 68 def is_dynamic @is_dynamic end |
#is_init ⇒ BOOLEAN
[Required] Indicates whether the variable is set at server startup.
72 73 74 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 72 def is_init @is_init end |
#max_value ⇒ Float
[Required] The maximum value of the variable.
44 45 46 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 44 def max_value @max_value end |
#min_value ⇒ Float
[Required] The minimum value of the variable.
40 41 42 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 40 def min_value @min_value end |
#name ⇒ String
[Required] The name of the configuration variable
28 29 30 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 28 def name @name end |
#path ⇒ String
[Required] The path name of the option file (VARIABLE_PATH), if the variable was set in an option file. If the variable was not set in an
80 81 82 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 80 def path @path end |
#possible_values ⇒ String
[Required] The comma-separated list of possible values for the variable in value:valueDescription format.
88 89 90 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 88 def possible_values @possible_values end |
#source ⇒ String
[Required] The source from which the variable was most recently set.
36 37 38 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 36 def source @source end |
#supported_versions ⇒ String
[Required] The comma-separated list of MySQL versions that support the variable.
92 93 94 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 92 def supported_versions @supported_versions end |
#time_set ⇒ DateTime
[Required] The time when the value of the variable was set.
56 57 58 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 56 def time_set @time_set end |
#type ⇒ String
[Required] The type of variable.
48 49 50 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 48 def type @type end |
#user_set ⇒ String
[Required] The user who sets the value of the variable. This is empty for a MySQL Database System.
64 65 66 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 64 def user_set @user_set end |
#value ⇒ String
[Required] The value of the variable.
32 33 34 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 32 def value @value end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 95 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'name': :'name', 'value': :'value', 'source': :'source', 'min_value': :'minValue', 'max_value': :'maxValue', 'type': :'type', 'default_value': :'defaultValue', 'time_set': :'timeSet', 'host_set': :'hostSet', 'user_set': :'userSet', 'is_dynamic': :'isDynamic', 'is_init': :'isInit', 'is_configurable': :'isConfigurable', 'path': :'path', 'description': :'description', 'possible_values': :'possibleValues', 'supported_versions': :'supportedVersions' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 120 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'name': :'String', 'value': :'String', 'source': :'String', 'min_value': :'Float', 'max_value': :'Float', 'type': :'String', 'default_value': :'String', 'time_set': :'DateTime', 'host_set': :'String', 'user_set': :'String', 'is_dynamic': :'BOOLEAN', 'is_init': :'BOOLEAN', 'is_configurable': :'BOOLEAN', 'path': :'String', 'description': :'String', 'possible_values': :'String', 'supported_versions': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 272 def ==(other) return true if equal?(other) self.class == other.class && name == other.name && value == other.value && source == other.source && min_value == other.min_value && max_value == other.max_value && type == other.type && default_value == other.default_value && time_set == other.time_set && host_set == other.host_set && user_set == other.user_set && is_dynamic == other.is_dynamic && is_init == other.is_init && is_configurable == other.is_configurable && path == other.path && description == other.description && possible_values == other.possible_values && supported_versions == other.supported_versions end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 318 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
298 299 300 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 298 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
307 308 309 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 307 def hash [name, value, source, min_value, max_value, type, default_value, time_set, host_set, user_set, is_dynamic, is_init, is_configurable, path, description, possible_values, supported_versions].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
351 352 353 354 355 356 357 358 359 360 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 351 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
345 346 347 |
# File 'lib/oci/database_management/models/my_sql_configuration_data_summary.rb', line 345 def to_s to_hash.to_s end |