Class: OCI::Database::Models::ExadataIormConfig
- Inherits:
- 
      Object
      
        - Object
- OCI::Database::Models::ExadataIormConfig
 
- Defined in:
- lib/oci/database/models/exadata_iorm_config.rb
Overview
The IORM settings of the Exadata DB system.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
- [ LIFECYCLE_STATE_BOOTSTRAPPING = 'BOOTSTRAPPING'.freeze, LIFECYCLE_STATE_ENABLED = 'ENABLED'.freeze, LIFECYCLE_STATE_DISABLED = 'DISABLED'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze 
- OBJECTIVE_ENUM =
- [ OBJECTIVE_LOW_LATENCY = 'LOW_LATENCY'.freeze, OBJECTIVE_HIGH_THROUGHPUT = 'HIGH_THROUGHPUT'.freeze, OBJECTIVE_BALANCED = 'BALANCED'.freeze, OBJECTIVE_AUTO = 'AUTO'.freeze, OBJECTIVE_BASIC = 'BASIC'.freeze, OBJECTIVE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze 
Instance Attribute Summary collapse
- 
  
    
      #db_plans  ⇒ Array<OCI::Database::Models::DbIormConfig> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An array of IORM settings for all the database in the Exadata DB system. 
- 
  
    
      #lifecycle_details  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional information about the current lifecycleState.
- 
  
    
      #lifecycle_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current state of IORM configuration for the Exadata DB system. 
- 
  
    
      #objective  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The current value for the IORM objective. 
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 = {})  ⇒ ExadataIormConfig 
    
    
  
  
  
    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 = {}) ⇒ ExadataIormConfig
Initializes the object
| 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 87 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.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails'] raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details') self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details'] self.objective = attributes[:'objective'] if attributes[:'objective'] self.db_plans = attributes[:'dbPlans'] if attributes[:'dbPlans'] raise 'You cannot provide both :dbPlans and :db_plans' if attributes.key?(:'dbPlans') && attributes.key?(:'db_plans') self.db_plans = attributes[:'db_plans'] if attributes[:'db_plans'] end | 
Instance Attribute Details
#db_plans ⇒ Array<OCI::Database::Models::DbIormConfig>
An array of IORM settings for all the database in the Exadata DB system.
| 51 52 53 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 51 def db_plans @db_plans end | 
#lifecycle_details ⇒ String
Additional information about the current lifecycleState.
| 39 40 41 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 39 def lifecycle_details @lifecycle_details end | 
#lifecycle_state ⇒ String
The current state of IORM configuration for the Exadata DB system.
| 34 35 36 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 34 def lifecycle_state @lifecycle_state end | 
#objective ⇒ String
The current value for the IORM objective. The default is AUTO.
| 45 46 47 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 45 def objective @objective end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 54 55 56 57 58 59 60 61 62 63 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 54 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'objective': :'objective', 'db_plans': :'dbPlans' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 66 67 68 69 70 71 72 73 74 75 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 66 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'objective': :'String', 'db_plans': :'Array<OCI::Database::Models::DbIormConfig>' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 147 148 149 150 151 152 153 154 155 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 147 def ==(other) return true if equal?(other) self.class == other.class && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && objective == other.objective && db_plans == other.db_plans end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 180 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
| 160 161 162 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 160 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 169 170 171 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 169 def hash [lifecycle_state, lifecycle_details, objective, db_plans].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 213 214 215 216 217 218 219 220 221 222 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 213 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
| 207 208 209 | # File 'lib/oci/database/models/exadata_iorm_config.rb', line 207 def to_s to_hash.to_s end |