Class: OCI::DatabaseManagement::Models::CloudExadataInfrastructure
- Inherits:
-
DbmResource
- Object
- DbmResource
- OCI::DatabaseManagement::Models::CloudExadataInfrastructure
- Defined in:
- lib/oci/database_management/models/cloud_exadata_infrastructure.rb
Overview
The details of the Exadata infrastructure.
Constant Summary collapse
- 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_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze, LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DEPLOYMENT_TYPE_ENUM =
[ DEPLOYMENT_TYPE_EXADATA = 'EXADATA'.freeze, DEPLOYMENT_TYPE_EXADATA_CC = 'EXADATA_CC'.freeze, DEPLOYMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Constants inherited from DbmResource
DbmResource::LIFECYCLE_STATE_ENUM, DbmResource::RESOURCE_TYPE_ENUM
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
The OCID of the compartment.
-
#database_compartments ⇒ Array<String>
The list of [OCIDs] (docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartments.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#deployment_type ⇒ String
The infrastructure deployment type.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#license_model ⇒ String
The Oracle license model that applies to the database management resources.
-
#rack_size ⇒ String
The rack size of the Exadata infrastructure.
- #storage_grid ⇒ OCI::DatabaseManagement::Models::CloudExadataStorageGridSummary
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#vm_clusters ⇒ Array<OCI::DatabaseManagement::Models::ExadataVmClusterSummary>
The list of VM Clusters in the Exadata infrastructure.
Attributes inherited from DbmResource
#additional_details, #display_name, #id, #internal_id, #lifecycle_details, #lifecycle_state, #resource_type, #status, #time_created, #time_updated, #version
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 = {}) ⇒ CloudExadataInfrastructure
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.
Methods inherited from DbmResource
Constructor Details
#initialize(attributes = {}) ⇒ CloudExadataInfrastructure
Initializes the object
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 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 168 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['resourceType'] = 'CLOUD_INFRASTRUCTURE' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } 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.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel'] raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model') self.license_model = attributes[:'license_model'] if attributes[:'license_model'] self.storage_grid = attributes[:'storageGrid'] if attributes[:'storageGrid'] raise 'You cannot provide both :storageGrid and :storage_grid' if attributes.key?(:'storageGrid') && attributes.key?(:'storage_grid') self.storage_grid = attributes[:'storage_grid'] if attributes[:'storage_grid'] 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.vm_clusters = attributes[:'vmClusters'] if attributes[:'vmClusters'] raise 'You cannot provide both :vmClusters and :vm_clusters' if attributes.key?(:'vmClusters') && attributes.key?(:'vm_clusters') self.vm_clusters = attributes[:'vm_clusters'] if attributes[:'vm_clusters'] self.database_compartments = attributes[:'databaseCompartments'] if attributes[:'databaseCompartments'] raise 'You cannot provide both :databaseCompartments and :database_compartments' if attributes.key?(:'databaseCompartments') && attributes.key?(:'database_compartments') self.database_compartments = attributes[:'database_compartments'] if attributes[:'database_compartments'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] end |
Instance Attribute Details
#compartment_id ⇒ String
The OCID of the compartment.
39 40 41 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 39 def compartment_id @compartment_id end |
#database_compartments ⇒ Array<String>
The list of [OCIDs] (docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartments.
59 60 61 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 59 def database_compartments @database_compartments end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {\"Operations\": {\"CostCenter\": \"42\"}}
73 74 75 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 73 def @defined_tags end |
#deployment_type ⇒ String
The infrastructure deployment type.
51 52 53 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 51 def deployment_type @deployment_type end |
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {\"Department\": \"Finance\"}
66 67 68 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 66 def @freeform_tags end |
#license_model ⇒ String
The Oracle license model that applies to the database management resources.
44 45 46 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 44 def license_model @license_model end |
#rack_size ⇒ String
The rack size of the Exadata infrastructure.
35 36 37 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 35 def rack_size @rack_size end |
#storage_grid ⇒ OCI::DatabaseManagement::Models::CloudExadataStorageGridSummary
47 48 49 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 47 def storage_grid @storage_grid end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}
82 83 84 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 82 def @system_tags end |
#vm_clusters ⇒ Array<OCI::DatabaseManagement::Models::ExadataVmClusterSummary>
The list of VM Clusters in the Exadata infrastructure.
55 56 57 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 55 def vm_clusters @vm_clusters end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 111 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 85 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'display_name': :'displayName', 'version': :'version', 'internal_id': :'internalId', 'status': :'status', 'lifecycle_state': :'lifecycleState', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_details': :'lifecycleDetails', 'additional_details': :'additionalDetails', 'resource_type': :'resourceType', 'rack_size': :'rackSize', 'compartment_id': :'compartmentId', 'license_model': :'licenseModel', 'storage_grid': :'storageGrid', 'deployment_type': :'deploymentType', 'vm_clusters': :'vmClusters', 'database_compartments': :'databaseCompartments', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 114 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'display_name': :'String', 'version': :'String', 'internal_id': :'String', 'status': :'String', 'lifecycle_state': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_details': :'String', 'additional_details': :'Hash<String, String>', 'resource_type': :'String', 'rack_size': :'String', 'compartment_id': :'String', 'license_model': :'String', 'storage_grid': :'OCI::DatabaseManagement::Models::CloudExadataStorageGridSummary', 'deployment_type': :'String', 'vm_clusters': :'Array<OCI::DatabaseManagement::Models::ExadataVmClusterSummary>', 'database_compartments': :'Array<String>', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 285 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && display_name == other.display_name && version == other.version && internal_id == other.internal_id && status == other.status && lifecycle_state == other.lifecycle_state && time_created == other.time_created && time_updated == other.time_updated && lifecycle_details == other.lifecycle_details && additional_details == other.additional_details && resource_type == other.resource_type && rack_size == other.rack_size && compartment_id == other.compartment_id && license_model == other.license_model && storage_grid == other.storage_grid && deployment_type == other.deployment_type && vm_clusters == other.vm_clusters && database_compartments == other.database_compartments && == other. && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 335 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
315 316 317 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 315 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
324 325 326 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 324 def hash [id, display_name, version, internal_id, status, lifecycle_state, time_created, time_updated, lifecycle_details, additional_details, resource_type, rack_size, compartment_id, license_model, storage_grid, deployment_type, vm_clusters, database_compartments, , , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
368 369 370 371 372 373 374 375 376 377 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 368 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
362 363 364 |
# File 'lib/oci/database_management/models/cloud_exadata_infrastructure.rb', line 362 def to_s to_hash.to_s end |