Class: OCI::DatabaseManagement::Models::ExternalExadataInfrastructureDiscovery
- Inherits:
-
EntityDiscovered
- Object
- EntityDiscovered
- OCI::DatabaseManagement::Models::ExternalExadataInfrastructureDiscovery
- Defined in:
- lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb
Overview
The result of the Exadata infrastructure discovery.
Constant Summary collapse
- 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
- 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 = 'UNKNOWN'.freeze, RACK_SIZE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Constants inherited from EntityDiscovered
OCI::DatabaseManagement::Models::EntityDiscovered::DISCOVER_STATUS_ENUM, OCI::DatabaseManagement::Models::EntityDiscovered::ENTITY_TYPE_ENUM
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
The OCID of the compartment.
-
#db_systems ⇒ Array<OCI::DatabaseManagement::Models::ExternalDatabaseSystemDiscoverySummary>
The list of DB systems in the Exadata infrastructure.
-
#discovery_key ⇒ String
[Required] The unique key of the discovery request.
-
#grid_home_path ⇒ String
The Oracle home path of the Exadata infrastructure.
-
#license_model ⇒ String
The Oracle license model that applies to the database management resources.
-
#rack_size ⇒ String
The size of the Exadata infrastructure.
- #storage_grid ⇒ OCI::DatabaseManagement::Models::ExternalStorageGridDiscoverySummary
-
#storage_servers ⇒ Array<OCI::DatabaseManagement::Models::ExternalStorageServerDiscoverySummary>
The list of storage servers in the Exadata infrastructure.
Attributes inherited from EntityDiscovered
#agent_id, #connector_id, #discover_error_code, #discover_error_msg, #discover_status, #display_name, #entity_type, #id, #internal_id, #status, #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 = {}) ⇒ ExternalExadataInfrastructureDiscovery
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 EntityDiscovered
Constructor Details
#initialize(attributes = {}) ⇒ ExternalExadataInfrastructureDiscovery
Initializes the object
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 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 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 138 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['entityType'] = 'INFRASTRUCTURE_DISCOVER' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.discovery_key = attributes[:'discoveryKey'] if attributes[:'discoveryKey'] raise 'You cannot provide both :discoveryKey and :discovery_key' if attributes.key?(:'discoveryKey') && attributes.key?(:'discovery_key') self.discovery_key = attributes[:'discovery_key'] if attributes[:'discovery_key'] 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.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.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.grid_home_path = attributes[:'gridHomePath'] if attributes[:'gridHomePath'] raise 'You cannot provide both :gridHomePath and :grid_home_path' if attributes.key?(:'gridHomePath') && attributes.key?(:'grid_home_path') self.grid_home_path = attributes[:'grid_home_path'] if attributes[:'grid_home_path'] self.db_systems = attributes[:'dbSystems'] if attributes[:'dbSystems'] raise 'You cannot provide both :dbSystems and :db_systems' if attributes.key?(:'dbSystems') && attributes.key?(:'db_systems') self.db_systems = attributes[:'db_systems'] if attributes[:'db_systems'] 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.storage_servers = attributes[:'storageServers'] if attributes[:'storageServers'] raise 'You cannot provide both :storageServers and :storage_servers' if attributes.key?(:'storageServers') && attributes.key?(:'storage_servers') self.storage_servers = attributes[:'storage_servers'] if attributes[:'storage_servers'] end |
Instance Attribute Details
#compartment_id ⇒ String
The OCID of the compartment.
39 40 41 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 39 def compartment_id @compartment_id end |
#db_systems ⇒ Array<OCI::DatabaseManagement::Models::ExternalDatabaseSystemDiscoverySummary>
The list of DB systems in the Exadata infrastructure.
51 52 53 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 51 def db_systems @db_systems end |
#discovery_key ⇒ String
[Required] The unique key of the discovery request.
30 31 32 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 30 def discovery_key @discovery_key end |
#grid_home_path ⇒ String
The Oracle home path of the Exadata infrastructure.
47 48 49 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 47 def grid_home_path @grid_home_path end |
#license_model ⇒ String
The Oracle license model that applies to the database management resources.
35 36 37 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 35 def license_model @license_model end |
#rack_size ⇒ String
The size of the Exadata infrastructure.
43 44 45 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 43 def rack_size @rack_size end |
#storage_grid ⇒ OCI::DatabaseManagement::Models::ExternalStorageGridDiscoverySummary
54 55 56 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 54 def storage_grid @storage_grid end |
#storage_servers ⇒ Array<OCI::DatabaseManagement::Models::ExternalStorageServerDiscoverySummary>
The list of storage servers in the Exadata infrastructure.
58 59 60 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 58 def storage_servers @storage_servers end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 61 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'agent_id': :'agentId', 'connector_id': :'connectorId', 'display_name': :'displayName', 'version': :'version', 'internal_id': :'internalId', 'status': :'status', 'discover_status': :'discoverStatus', 'discover_error_code': :'discoverErrorCode', 'discover_error_msg': :'discoverErrorMsg', 'entity_type': :'entityType', 'discovery_key': :'discoveryKey', 'license_model': :'licenseModel', 'compartment_id': :'compartmentId', 'rack_size': :'rackSize', 'grid_home_path': :'gridHomePath', 'db_systems': :'dbSystems', 'storage_grid': :'storageGrid', 'storage_servers': :'storageServers' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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_management/models/external_exadata_infrastructure_discovery.rb', line 88 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'agent_id': :'String', 'connector_id': :'String', 'display_name': :'String', 'version': :'String', 'internal_id': :'String', 'status': :'String', 'discover_status': :'String', 'discover_error_code': :'String', 'discover_error_msg': :'String', 'entity_type': :'String', 'discovery_key': :'String', 'license_model': :'String', 'compartment_id': :'String', 'rack_size': :'String', 'grid_home_path': :'String', 'db_systems': :'Array<OCI::DatabaseManagement::Models::ExternalDatabaseSystemDiscoverySummary>', 'storage_grid': :'OCI::DatabaseManagement::Models::ExternalStorageGridDiscoverySummary', 'storage_servers': :'Array<OCI::DatabaseManagement::Models::ExternalStorageServerDiscoverySummary>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 230 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && agent_id == other.agent_id && connector_id == other.connector_id && display_name == other.display_name && version == other.version && internal_id == other.internal_id && status == other.status && discover_status == other.discover_status && discover_error_code == other.discover_error_code && discover_error_msg == other.discover_error_msg && entity_type == other.entity_type && discovery_key == other.discovery_key && license_model == other.license_model && compartment_id == other.compartment_id && rack_size == other.rack_size && grid_home_path == other.grid_home_path && db_systems == other.db_systems && storage_grid == other.storage_grid && storage_servers == other.storage_servers end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 278 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
258 259 260 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 258 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
267 268 269 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 267 def hash [id, agent_id, connector_id, display_name, version, internal_id, status, discover_status, discover_error_code, discover_error_msg, entity_type, discovery_key, license_model, compartment_id, rack_size, grid_home_path, db_systems, storage_grid, storage_servers].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
311 312 313 314 315 316 317 318 319 320 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 311 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
305 306 307 |
# File 'lib/oci/database_management/models/external_exadata_infrastructure_discovery.rb', line 305 def to_s to_hash.to_s end |