Class: OCI::DatabaseManagement::Models::ExadataInfrastructureFleetStatusByCategory
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::Models::ExadataInfrastructureFleetStatusByCategory
- Defined in:
- lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb
Overview
The number of Exadata infrastructures in the fleet, grouped by deployment type and rack-size.
Constant Summary collapse
- DEPLOYMENT_TYPE_ENUM =
[ DEPLOYMENT_TYPE_ONPREMISE = 'ONPREMISE'.freeze, DEPLOYMENT_TYPE_EXADATA = 'EXADATA'.freeze, DEPLOYMENT_TYPE_EXADATA_CC = 'EXADATA_CC'.freeze, DEPLOYMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- RACK_SIZE_ENUM =
[ RACK_SIZE_FULL = 'FULL'.freeze, RACK_SIZE_HALF = 'HALF'.freeze, RACK_SIZE_QUARTER = 'QUARTER'.freeze, RACK_SIZE_EIGHTH = 'EIGHTH'.freeze, RACK_SIZE_OTHER = 'OTHER'.freeze, RACK_SIZE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#deployment_type ⇒ String
The infrastructure deployment type.
-
#inventory_count ⇒ Integer
The number of Exadata infrastructures in the fleet.
-
#rack_size ⇒ String
The size of the Exadata infrastructure.
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 = {}) ⇒ ExadataInfrastructureFleetStatusByCategory
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 = {}) ⇒ ExadataInfrastructureFleetStatusByCategory
Initializes the object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 71 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.deployment_type = attributes[:'deploymentType'] if attributes[:'deploymentType'] raise 'You cannot provide both :deploymentType and :deployment_type' if attributes.key?(:'deploymentType') && attributes.key?(:'deployment_type') self.deployment_type = attributes[:'deployment_type'] if attributes[:'deployment_type'] self.rack_size = attributes[:'rackSize'] if attributes[:'rackSize'] raise 'You cannot provide both :rackSize and :rack_size' if attributes.key?(:'rackSize') && attributes.key?(:'rack_size') self.rack_size = attributes[:'rack_size'] if attributes[:'rack_size'] self.inventory_count = attributes[:'inventoryCount'] if attributes[:'inventoryCount'] raise 'You cannot provide both :inventoryCount and :inventory_count' if attributes.key?(:'inventoryCount') && attributes.key?(:'inventory_count') self.inventory_count = attributes[:'inventory_count'] if attributes[:'inventory_count'] end |
Instance Attribute Details
#deployment_type ⇒ String
The infrastructure deployment type.
30 31 32 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 30 def deployment_type @deployment_type end |
#inventory_count ⇒ Integer
The number of Exadata infrastructures in the fleet.
38 39 40 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 38 def inventory_count @inventory_count end |
#rack_size ⇒ String
The size of the Exadata infrastructure.
34 35 36 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 34 def rack_size @rack_size end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
41 42 43 44 45 46 47 48 49 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 41 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'deployment_type': :'deploymentType', 'rack_size': :'rackSize', 'inventory_count': :'inventoryCount' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
52 53 54 55 56 57 58 59 60 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 52 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'deployment_type': :'String', 'rack_size': :'String', 'inventory_count': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
129 130 131 132 133 134 135 136 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 129 def ==(other) return true if equal?(other) self.class == other.class && deployment_type == other.deployment_type && rack_size == other.rack_size && inventory_count == other.inventory_count end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 161 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
141 142 143 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 141 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
150 151 152 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 150 def hash [deployment_type, rack_size, inventory_count].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
194 195 196 197 198 199 200 201 202 203 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 194 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
188 189 190 |
# File 'lib/oci/database_management/models/exadata_infrastructure_fleet_status_by_category.rb', line 188 def to_s to_hash.to_s end |