Class: OCI::Database::Models::ExadataIormConfig
- Inherits:
-
Object
- Object
- OCI::Database::Models::ExadataIormConfig
- Defined in:
- lib/oci/database/models/exadata_iorm_config.rb
Overview
Response details which has IORM Settings for this Exadata System
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
rubocop:disable Metrics/LineLength
[ 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>
Array of IORM Setting for all the database in this Exadata DB System.
-
#lifecycle_details ⇒ String
Additional information about the current lifecycleState.
-
#lifecycle_state ⇒ String
The current config state of IORM settings for this Exadata System.
-
#objective ⇒ String
Value for the IORM objective Default is "Auto".
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
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 85 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>
Array of IORM Setting for all the database in this Exadata DB System
49 50 51 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 49 def db_plans @db_plans end |
#lifecycle_details ⇒ String
Additional information about the current lifecycleState.
37 38 39 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 37 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
The current config state of IORM settings for this Exadata System.
32 33 34 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 32 def lifecycle_state @lifecycle_state end |
#objective ⇒ String
Value for the IORM objective Default is "Auto"
43 44 45 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 43 def objective @objective end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 52 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.
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 64 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.
149 150 151 152 153 154 155 156 157 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 149 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
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 182 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
162 163 164 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 162 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
171 172 173 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 171 def hash [lifecycle_state, lifecycle_details, objective, db_plans].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
215 216 217 218 219 220 221 222 223 224 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 215 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
209 210 211 |
# File 'lib/oci/database/models/exadata_iorm_config.rb', line 209 def to_s to_hash.to_s end |