Method: OCI::Database::Models::DbIormConfig#initialize

Defined in:
lib/oci/database/models/db_iorm_config.rb

#initialize(attributes = {}) ⇒ DbIormConfig

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :db_name (String)

    The value to assign to the #db_name property

  • :share (Integer)

    The value to assign to the #share property

  • :flash_cache_limit (String)

    The value to assign to the #flash_cache_limit property



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/oci/database/models/db_iorm_config.rb', line 56

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.db_name = attributes[:'dbName'] if attributes[:'dbName']

  raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')

  self.db_name = attributes[:'db_name'] if attributes[:'db_name']

  self.share = attributes[:'share'] if attributes[:'share']

  self.flash_cache_limit = attributes[:'flashCacheLimit'] if attributes[:'flashCacheLimit']

  raise 'You cannot provide both :flashCacheLimit and :flash_cache_limit' if attributes.key?(:'flashCacheLimit') && attributes.key?(:'flash_cache_limit')

  self.flash_cache_limit = attributes[:'flash_cache_limit'] if attributes[:'flash_cache_limit']
end