Class: OCI::Database::Models::ExternalNonContainerDatabaseSummary
- Inherits:
-
Object
- Object
- OCI::Database::Models::ExternalNonContainerDatabaseSummary
- Defined in:
- lib/oci/database/models/external_non_container_database_summary.rb
Overview
An Oracle Cloud Infrastructure external non-container database resource. This resource is used to manage a non-container database located outside of Oracle Cloud.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze, LIFECYCLE_STATE_NOT_CONNECTED = 'NOT_CONNECTED'.freeze, LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze, LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DATABASE_EDITION_ENUM =
[ DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_DEVELOPER = 'ENTERPRISE_EDITION_DEVELOPER'.freeze, DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DATABASE_CONFIGURATION_ENUM =
[ DATABASE_CONFIGURATION_RAC = 'RAC'.freeze, DATABASE_CONFIGURATION_SINGLE_INSTANCE = 'SINGLE_INSTANCE'.freeze, DATABASE_CONFIGURATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#character_set ⇒ String
The character set of the external database.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#database_configuration ⇒ String
The Oracle Database configuration.
-
#database_edition ⇒ String
The Oracle Database Edition that applies to all the databases on the DB system.
- #database_management_config ⇒ OCI::Database::Models::DatabaseManagementConfig
-
#database_version ⇒ String
The Oracle Database version.
-
#db_id ⇒ String
The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
-
#db_packs ⇒ String
The database packs licensed for the external Oracle Database.
-
#db_unique_name ⇒ String
The
DB_UNIQUE_NAME
of the external database. -
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
[Required] The user-friendly name for the external database.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#id ⇒ String
[Required] The OCID of the Oracle Cloud Infrastructure external database resource.
-
#lifecycle_details ⇒ String
Additional information about the current lifecycle state.
-
#lifecycle_state ⇒ String
[Required] The current state of the Oracle Cloud Infrastructure external database resource.
-
#ncharacter_set ⇒ String
The national character of the external database.
- #operations_insights_config ⇒ OCI::Database::Models::OperationsInsightsConfig
- #stack_monitoring_config ⇒ OCI::Database::Models::StackMonitoringConfig
-
#time_created ⇒ DateTime
[Required] The date and time the database was created.
-
#time_zone ⇒ String
The time zone of the external database.
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 = {}) ⇒ ExternalNonContainerDatabaseSummary
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 = {}) ⇒ ExternalNonContainerDatabaseSummary
Initializes the object
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 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 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 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 212 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.operations_insights_config = attributes[:'operationsInsightsConfig'] if attributes[:'operationsInsightsConfig'] raise 'You cannot provide both :operationsInsightsConfig and :operations_insights_config' if attributes.key?(:'operationsInsightsConfig') && attributes.key?(:'operations_insights_config') self.operations_insights_config = attributes[:'operations_insights_config'] if attributes[:'operations_insights_config'] 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. = 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.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.id = attributes[:'id'] if attributes[:'id'] 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.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.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName'] raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name') self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name'] self.db_id = attributes[:'dbId'] if attributes[:'dbId'] raise 'You cannot provide both :dbId and :db_id' if attributes.key?(:'dbId') && attributes.key?(:'db_id') self.db_id = attributes[:'db_id'] if attributes[:'db_id'] self.database_version = attributes[:'databaseVersion'] if attributes[:'databaseVersion'] raise 'You cannot provide both :databaseVersion and :database_version' if attributes.key?(:'databaseVersion') && attributes.key?(:'database_version') self.database_version = attributes[:'database_version'] if attributes[:'database_version'] self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition'] raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition') self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition'] self.time_zone = attributes[:'timeZone'] if attributes[:'timeZone'] raise 'You cannot provide both :timeZone and :time_zone' if attributes.key?(:'timeZone') && attributes.key?(:'time_zone') self.time_zone = attributes[:'time_zone'] if attributes[:'time_zone'] self.character_set = attributes[:'characterSet'] if attributes[:'characterSet'] raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set') self.character_set = attributes[:'character_set'] if attributes[:'character_set'] self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet'] raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set') self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set'] self.db_packs = attributes[:'dbPacks'] if attributes[:'dbPacks'] raise 'You cannot provide both :dbPacks and :db_packs' if attributes.key?(:'dbPacks') && attributes.key?(:'db_packs') self.db_packs = attributes[:'db_packs'] if attributes[:'db_packs'] self.database_configuration = attributes[:'databaseConfiguration'] if attributes[:'databaseConfiguration'] raise 'You cannot provide both :databaseConfiguration and :database_configuration' if attributes.key?(:'databaseConfiguration') && attributes.key?(:'database_configuration') self.database_configuration = attributes[:'database_configuration'] if attributes[:'database_configuration'] self.database_management_config = attributes[:'databaseManagementConfig'] if attributes[:'databaseManagementConfig'] raise 'You cannot provide both :databaseManagementConfig and :database_management_config' if attributes.key?(:'databaseManagementConfig') && attributes.key?(:'database_management_config') self.database_management_config = attributes[:'database_management_config'] if attributes[:'database_management_config'] self.stack_monitoring_config = attributes[:'stackMonitoringConfig'] if attributes[:'stackMonitoringConfig'] raise 'You cannot provide both :stackMonitoringConfig and :stack_monitoring_config' if attributes.key?(:'stackMonitoringConfig') && attributes.key?(:'stack_monitoring_config') self.stack_monitoring_config = attributes[:'stack_monitoring_config'] if attributes[:'stack_monitoring_config'] end |
Instance Attribute Details
#character_set ⇒ String
The character set of the external database.
110 111 112 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 110 def character_set @character_set end |
#compartment_id ⇒ String
[Required] The OCID of the compartment.
45 46 47 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 45 def compartment_id @compartment_id end |
#database_configuration ⇒ String
The Oracle Database configuration
122 123 124 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 122 def database_configuration @database_configuration end |
#database_edition ⇒ String
The Oracle Database Edition that applies to all the databases on the DB system. Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE.
99 100 101 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 99 def database_edition @database_edition end |
#database_management_config ⇒ OCI::Database::Models::DatabaseManagementConfig
125 126 127 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 125 def database_management_config @database_management_config end |
#database_version ⇒ String
The Oracle Database version.
93 94 95 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 93 def database_version @database_version end |
#db_id ⇒ String
The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
89 90 91 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 89 def db_id @db_id end |
#db_packs ⇒ String
The database packs licensed for the external Oracle Database.
118 119 120 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 118 def db_packs @db_packs end |
#db_unique_name ⇒ String
The DB_UNIQUE_NAME
of the external database.
84 85 86 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 84 def db_unique_name @db_unique_name 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.
59 60 61 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 59 def @defined_tags end |
#display_name ⇒ String
[Required] The user-friendly name for the external database. The name does not have to be unique.
63 64 65 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 63 def display_name @display_name 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\"}
53 54 55 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 53 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the Oracle Cloud Infrastructure external database resource.
68 69 70 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 68 def id @id end |
#lifecycle_details ⇒ String
Additional information about the current lifecycle state.
72 73 74 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 72 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the Oracle Cloud Infrastructure external database resource.
76 77 78 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 76 def lifecycle_state @lifecycle_state end |
#ncharacter_set ⇒ String
The national character of the external database.
114 115 116 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 114 def ncharacter_set @ncharacter_set end |
#operations_insights_config ⇒ OCI::Database::Models::OperationsInsightsConfig
41 42 43 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 41 def operations_insights_config @operations_insights_config end |
#stack_monitoring_config ⇒ OCI::Database::Models::StackMonitoringConfig
128 129 130 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 128 def stack_monitoring_config @stack_monitoring_config end |
#time_created ⇒ DateTime
[Required] The date and time the database was created.
80 81 82 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 80 def time_created @time_created end |
#time_zone ⇒ String
The time zone of the external database. It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, depending on how the time zone value was specified when the database was created / last altered.
106 107 108 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 106 def time_zone @time_zone end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 131 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'operations_insights_config': :'operationsInsightsConfig', 'compartment_id': :'compartmentId', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'display_name': :'displayName', 'id': :'id', 'lifecycle_details': :'lifecycleDetails', 'lifecycle_state': :'lifecycleState', 'time_created': :'timeCreated', 'db_unique_name': :'dbUniqueName', 'db_id': :'dbId', 'database_version': :'databaseVersion', 'database_edition': :'databaseEdition', 'time_zone': :'timeZone', 'character_set': :'characterSet', 'ncharacter_set': :'ncharacterSet', 'db_packs': :'dbPacks', 'database_configuration': :'databaseConfiguration', 'database_management_config': :'databaseManagementConfig', 'stack_monitoring_config': :'stackMonitoringConfig' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 159 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'operations_insights_config': :'OCI::Database::Models::OperationsInsightsConfig', 'compartment_id': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'display_name': :'String', 'id': :'String', 'lifecycle_details': :'String', 'lifecycle_state': :'String', 'time_created': :'DateTime', 'db_unique_name': :'String', 'db_id': :'String', 'database_version': :'String', 'database_edition': :'String', 'time_zone': :'String', 'character_set': :'String', 'ncharacter_set': :'String', 'db_packs': :'String', 'database_configuration': :'String', 'database_management_config': :'OCI::Database::Models::DatabaseManagementConfig', 'stack_monitoring_config': :'OCI::Database::Models::StackMonitoringConfig' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 381 def ==(other) return true if equal?(other) self.class == other.class && operations_insights_config == other.operations_insights_config && compartment_id == other.compartment_id && == other. && == other. && display_name == other.display_name && id == other.id && lifecycle_details == other.lifecycle_details && lifecycle_state == other.lifecycle_state && time_created == other.time_created && db_unique_name == other.db_unique_name && db_id == other.db_id && database_version == other.database_version && database_edition == other.database_edition && time_zone == other.time_zone && character_set == other.character_set && ncharacter_set == other.ncharacter_set && db_packs == other.db_packs && database_configuration == other.database_configuration && database_management_config == other.database_management_config && stack_monitoring_config == other.stack_monitoring_config end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 430 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
410 411 412 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 410 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
419 420 421 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 419 def hash [operations_insights_config, compartment_id, , , display_name, id, lifecycle_details, lifecycle_state, time_created, db_unique_name, db_id, database_version, database_edition, time_zone, character_set, ncharacter_set, db_packs, database_configuration, database_management_config, stack_monitoring_config].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
463 464 465 466 467 468 469 470 471 472 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 463 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
457 458 459 |
# File 'lib/oci/database/models/external_non_container_database_summary.rb', line 457 def to_s to_hash.to_s end |