Class: OCI::Database::Models::DbNode
- Inherits:
-
Object
- Object
- OCI::Database::Models::DbNode
- Defined in:
- lib/oci/database/models/db_node.rb
Overview
DbNode model.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze, LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_STOPPING = 'STOPPING'.freeze, LIFECYCLE_STATE_STOPPED = 'STOPPED'.freeze, LIFECYCLE_STATE_STARTING = 'STARTING'.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
- AVAILABLE_ACTIONS_ENUM =
[ AVAILABLE_ACTIONS_STOP = 'STOP'.freeze, AVAILABLE_ACTIONS_FORCESTOP = 'FORCESTOP'.freeze, AVAILABLE_ACTIONS_FORCERESET = 'FORCERESET'.freeze, AVAILABLE_ACTIONS_START = 'START'.freeze, AVAILABLE_ACTIONS_SOFTRESET = 'SOFTRESET'.freeze, AVAILABLE_ACTIONS_RESET = 'RESET'.freeze, AVAILABLE_ACTIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- MAINTENANCE_TYPE_ENUM =
[ MAINTENANCE_TYPE_VMDB_REBOOT_MIGRATION = 'VMDB_REBOOT_MIGRATION'.freeze, MAINTENANCE_TYPE_EXADBXS_REBOOT_MIGRATION = 'EXADBXS_REBOOT_MIGRATION'.freeze, MAINTENANCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- COMPUTE_MODEL_ENUM =
[ COMPUTE_MODEL_ECPU = 'ECPU'.freeze, COMPUTE_MODEL_OCPU = 'OCPU'.freeze, COMPUTE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#additional_details ⇒ String
Additional information about the planned maintenance.
-
#available_actions ⇒ Array<String>
Actions that can be performed on the database node, depending on its current lifecycle state.
-
#backup_ip_id ⇒ String
The OCID of the backup IPv4 address associated with the database node.
-
#backup_ipv6_id ⇒ String
The OCID of the backup IPv6 address associated with the database node.
-
#backup_vnic2_id ⇒ String
The OCID of the second backup VNIC.
-
#backup_vnic_id ⇒ String
The OCID of the backup VNIC.
-
#compute_count ⇒ Integer
The number of compute servers for the DB system.
-
#compute_model ⇒ String
The compute model for Base Database Service.
-
#cpu_core_count ⇒ Integer
The number of CPU cores enabled on the Db node.
-
#db_node_storage_size_in_gbs ⇒ Integer
The allocated local node storage in GBs on the Db node.
-
#db_server_id ⇒ String
The OCID of the Exacc Db server associated with the database node.
-
#db_system_id ⇒ String
[Required] The OCID of the DB system.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#fault_domain ⇒ String
The name of the Fault Domain the instance is contained in.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#host_ip_id ⇒ String
The OCID of the host IPv4 address associated with the database node.
-
#host_ipv6_id ⇒ String
The OCID of the host IPv6 address associated with the database node.
-
#hostname ⇒ String
The host name for the database node.
-
#id ⇒ String
[Required] The OCID of the database node.
-
#is_os_patch_reboot_required ⇒ BOOLEAN
Indicates whether the database node must be rebooted after applying Operating System patches.
-
#lifecycle_details ⇒ String
Information about the current lifecycle state.
-
#lifecycle_state ⇒ String
[Required] The current state of the database node.
-
#maintenance_type ⇒ String
The type of database node maintenance.
-
#memory_size_in_gbs ⇒ Integer
The allocated memory in GBs on the Db node.
-
#software_storage_size_in_gb ⇒ Integer
The size (in GB) of the block storage volume allocation for the DB system.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#time_created ⇒ DateTime
[Required] The date and time that the database node was created.
-
#time_maintenance_window_end ⇒ DateTime
End date and time of maintenance window.
-
#time_maintenance_window_start ⇒ DateTime
Start date and time of maintenance window.
-
#total_cpu_core_count ⇒ Integer
The total number of CPU cores reserved on the Db node.
-
#vnic2_id ⇒ String
The OCID of the second VNIC.
-
#vnic_id ⇒ String
[Required] The OCID of the VNIC.
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 = {}) ⇒ DbNode
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 = {}) ⇒ DbNode
Initializes the object
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 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 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/oci/database/models/db_node.rb', line 328 def initialize(attributes = {}) return unless attributes.is_a?(Hash) self.id = attributes[:'id'] if attributes[:'id'] self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId'] raise 'You cannot provide both :dbSystemId and :db_system_id' if attributes.key?(:'dbSystemId') && attributes.key?(:'db_system_id') self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id'] self.vnic_id = attributes[:'vnicId'] if attributes[:'vnicId'] raise 'You cannot provide both :vnicId and :vnic_id' if attributes.key?(:'vnicId') && attributes.key?(:'vnic_id') self.vnic_id = attributes[:'vnic_id'] if attributes[:'vnic_id'] self.backup_vnic_id = attributes[:'backupVnicId'] if attributes[:'backupVnicId'] raise 'You cannot provide both :backupVnicId and :backup_vnic_id' if attributes.key?(:'backupVnicId') && attributes.key?(:'backup_vnic_id') self.backup_vnic_id = attributes[:'backup_vnic_id'] if attributes[:'backup_vnic_id'] self.host_ip_id = attributes[:'hostIpId'] if attributes[:'hostIpId'] raise 'You cannot provide both :hostIpId and :host_ip_id' if attributes.key?(:'hostIpId') && attributes.key?(:'host_ip_id') self.host_ip_id = attributes[:'host_ip_id'] if attributes[:'host_ip_id'] self.backup_ip_id = attributes[:'backupIpId'] if attributes[:'backupIpId'] raise 'You cannot provide both :backupIpId and :backup_ip_id' if attributes.key?(:'backupIpId') && attributes.key?(:'backup_ip_id') self.backup_ip_id = attributes[:'backup_ip_id'] if attributes[:'backup_ip_id'] self.host_ipv6_id = attributes[:'hostIpv6Id'] if attributes[:'hostIpv6Id'] raise 'You cannot provide both :hostIpv6Id and :host_ipv6_id' if attributes.key?(:'hostIpv6Id') && attributes.key?(:'host_ipv6_id') self.host_ipv6_id = attributes[:'host_ipv6_id'] if attributes[:'host_ipv6_id'] self.backup_ipv6_id = attributes[:'backupIpv6Id'] if attributes[:'backupIpv6Id'] raise 'You cannot provide both :backupIpv6Id and :backup_ipv6_id' if attributes.key?(:'backupIpv6Id') && attributes.key?(:'backup_ipv6_id') self.backup_ipv6_id = attributes[:'backup_ipv6_id'] if attributes[:'backup_ipv6_id'] self.vnic2_id = attributes[:'vnic2Id'] if attributes[:'vnic2Id'] raise 'You cannot provide both :vnic2Id and :vnic2_id' if attributes.key?(:'vnic2Id') && attributes.key?(:'vnic2_id') self.vnic2_id = attributes[:'vnic2_id'] if attributes[:'vnic2_id'] self.backup_vnic2_id = attributes[:'backupVnic2Id'] if attributes[:'backupVnic2Id'] raise 'You cannot provide both :backupVnic2Id and :backup_vnic2_id' if attributes.key?(:'backupVnic2Id') && attributes.key?(:'backup_vnic2_id') self.backup_vnic2_id = attributes[:'backup_vnic2_id'] if attributes[:'backup_vnic2_id'] 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.available_actions = attributes[:'availableActions'] if attributes[:'availableActions'] raise 'You cannot provide both :availableActions and :available_actions' if attributes.key?(:'availableActions') && attributes.key?(:'available_actions') self.available_actions = attributes[:'available_actions'] if attributes[:'available_actions'] self.hostname = attributes[:'hostname'] if attributes[:'hostname'] self.fault_domain = attributes[:'faultDomain'] if attributes[:'faultDomain'] raise 'You cannot provide both :faultDomain and :fault_domain' if attributes.key?(:'faultDomain') && attributes.key?(:'fault_domain') self.fault_domain = attributes[:'fault_domain'] if attributes[:'fault_domain'] 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.software_storage_size_in_gb = attributes[:'softwareStorageSizeInGB'] if attributes[:'softwareStorageSizeInGB'] raise 'You cannot provide both :softwareStorageSizeInGB and :software_storage_size_in_gb' if attributes.key?(:'softwareStorageSizeInGB') && attributes.key?(:'software_storage_size_in_gb') self.software_storage_size_in_gb = attributes[:'software_storage_size_in_gb'] if attributes[:'software_storage_size_in_gb'] self.maintenance_type = attributes[:'maintenanceType'] if attributes[:'maintenanceType'] raise 'You cannot provide both :maintenanceType and :maintenance_type' if attributes.key?(:'maintenanceType') && attributes.key?(:'maintenance_type') self.maintenance_type = attributes[:'maintenance_type'] if attributes[:'maintenance_type'] self.time_maintenance_window_start = attributes[:'timeMaintenanceWindowStart'] if attributes[:'timeMaintenanceWindowStart'] raise 'You cannot provide both :timeMaintenanceWindowStart and :time_maintenance_window_start' if attributes.key?(:'timeMaintenanceWindowStart') && attributes.key?(:'time_maintenance_window_start') self.time_maintenance_window_start = attributes[:'time_maintenance_window_start'] if attributes[:'time_maintenance_window_start'] self.time_maintenance_window_end = attributes[:'timeMaintenanceWindowEnd'] if attributes[:'timeMaintenanceWindowEnd'] raise 'You cannot provide both :timeMaintenanceWindowEnd and :time_maintenance_window_end' if attributes.key?(:'timeMaintenanceWindowEnd') && attributes.key?(:'time_maintenance_window_end') self.time_maintenance_window_end = attributes[:'time_maintenance_window_end'] if attributes[:'time_maintenance_window_end'] self.additional_details = attributes[:'additionalDetails'] if attributes[:'additionalDetails'] raise 'You cannot provide both :additionalDetails and :additional_details' if attributes.key?(:'additionalDetails') && attributes.key?(:'additional_details') self.additional_details = attributes[:'additional_details'] if attributes[:'additional_details'] 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'] 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.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount'] raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count') self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count'] self.memory_size_in_gbs = attributes[:'memorySizeInGBs'] if attributes[:'memorySizeInGBs'] raise 'You cannot provide both :memorySizeInGBs and :memory_size_in_gbs' if attributes.key?(:'memorySizeInGBs') && attributes.key?(:'memory_size_in_gbs') self.memory_size_in_gbs = attributes[:'memory_size_in_gbs'] if attributes[:'memory_size_in_gbs'] self.db_node_storage_size_in_gbs = attributes[:'dbNodeStorageSizeInGBs'] if attributes[:'dbNodeStorageSizeInGBs'] raise 'You cannot provide both :dbNodeStorageSizeInGBs and :db_node_storage_size_in_gbs' if attributes.key?(:'dbNodeStorageSizeInGBs') && attributes.key?(:'db_node_storage_size_in_gbs') self.db_node_storage_size_in_gbs = attributes[:'db_node_storage_size_in_gbs'] if attributes[:'db_node_storage_size_in_gbs'] self.total_cpu_core_count = attributes[:'totalCpuCoreCount'] if attributes[:'totalCpuCoreCount'] raise 'You cannot provide both :totalCpuCoreCount and :total_cpu_core_count' if attributes.key?(:'totalCpuCoreCount') && attributes.key?(:'total_cpu_core_count') self.total_cpu_core_count = attributes[:'total_cpu_core_count'] if attributes[:'total_cpu_core_count'] self.db_server_id = attributes[:'dbServerId'] if attributes[:'dbServerId'] raise 'You cannot provide both :dbServerId and :db_server_id' if attributes.key?(:'dbServerId') && attributes.key?(:'db_server_id') self.db_server_id = attributes[:'db_server_id'] if attributes[:'db_server_id'] self.compute_model = attributes[:'computeModel'] if attributes[:'computeModel'] raise 'You cannot provide both :computeModel and :compute_model' if attributes.key?(:'computeModel') && attributes.key?(:'compute_model') self.compute_model = attributes[:'compute_model'] if attributes[:'compute_model'] self.compute_count = attributes[:'computeCount'] if attributes[:'computeCount'] raise 'You cannot provide both :computeCount and :compute_count' if attributes.key?(:'computeCount') && attributes.key?(:'compute_count') self.compute_count = attributes[:'compute_count'] if attributes[:'compute_count'] self.is_os_patch_reboot_required = attributes[:'isOsPatchRebootRequired'] unless attributes[:'isOsPatchRebootRequired'].nil? raise 'You cannot provide both :isOsPatchRebootRequired and :is_os_patch_reboot_required' if attributes.key?(:'isOsPatchRebootRequired') && attributes.key?(:'is_os_patch_reboot_required') self.is_os_patch_reboot_required = attributes[:'is_os_patch_reboot_required'] unless attributes[:'is_os_patch_reboot_required'].nil? end |
Instance Attribute Details
#additional_details ⇒ String
Additional information about the planned maintenance.
150 151 152 |
# File 'lib/oci/database/models/db_node.rb', line 150 def additional_details @additional_details end |
#available_actions ⇒ Array<String>
Actions that can be performed on the database node, depending on its current lifecycle state.
117 118 119 |
# File 'lib/oci/database/models/db_node.rb', line 117 def available_actions @available_actions end |
#backup_ip_id ⇒ String
The OCID of the backup IPv4 address associated with the database node. Use this OCID with either the get_private_ip or the get_public_ip_by_private_ip_id API to get the IPv4 address needed to make a database connection.
Note: Applies only to Exadata Cloud Service.
79 80 81 |
# File 'lib/oci/database/models/db_node.rb', line 79 def backup_ip_id @backup_ip_id end |
#backup_ipv6_id ⇒ String
The OCID of the backup IPv6 address associated with the database node. Use this OCID with the get_ipv6 API to get the IPv6 address needed to make a database connection.
Note: Applies only to Exadata Cloud Service.
95 96 97 |
# File 'lib/oci/database/models/db_node.rb', line 95 def backup_ipv6_id @backup_ipv6_id end |
#backup_vnic2_id ⇒ String
The OCID of the second backup VNIC.
Note: Applies only to Exadata Cloud Service.
109 110 111 |
# File 'lib/oci/database/models/db_node.rb', line 109 def backup_vnic2_id @backup_vnic2_id end |
#backup_vnic_id ⇒ String
The OCID of the backup VNIC.
61 62 63 |
# File 'lib/oci/database/models/db_node.rb', line 61 def backup_vnic_id @backup_vnic_id end |
#compute_count ⇒ Integer
The number of compute servers for the DB system.
202 203 204 |
# File 'lib/oci/database/models/db_node.rb', line 202 def compute_count @compute_count end |
#compute_model ⇒ String
The compute model for Base Database Service. This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy.
198 199 200 |
# File 'lib/oci/database/models/db_node.rb', line 198 def compute_model @compute_model end |
#cpu_core_count ⇒ Integer
The number of CPU cores enabled on the Db node.
178 179 180 |
# File 'lib/oci/database/models/db_node.rb', line 178 def cpu_core_count @cpu_core_count end |
#db_node_storage_size_in_gbs ⇒ Integer
The allocated local node storage in GBs on the Db node.
186 187 188 |
# File 'lib/oci/database/models/db_node.rb', line 186 def db_node_storage_size_in_gbs @db_node_storage_size_in_gbs end |
#db_server_id ⇒ String
The OCID of the Exacc Db server associated with the database node.
194 195 196 |
# File 'lib/oci/database/models/db_node.rb', line 194 def db_server_id @db_server_id end |
#db_system_id ⇒ String
[Required] The OCID of the DB system.
53 54 55 |
# File 'lib/oci/database/models/db_node.rb', line 53 def db_system_id @db_system_id 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.
164 165 166 |
# File 'lib/oci/database/models/db_node.rb', line 164 def @defined_tags end |
#fault_domain ⇒ String
The name of the Fault Domain the instance is contained in.
125 126 127 |
# File 'lib/oci/database/models/db_node.rb', line 125 def fault_domain @fault_domain 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\"}
158 159 160 |
# File 'lib/oci/database/models/db_node.rb', line 158 def @freeform_tags end |
#host_ip_id ⇒ String
The OCID of the host IPv4 address associated with the database node. Use this OCID with either the get_private_ip or the get_public_ip_by_private_ip_id API to get the IPv4 address needed to make a database connection.
Note: Applies only to Exadata Cloud Service.
70 71 72 |
# File 'lib/oci/database/models/db_node.rb', line 70 def host_ip_id @host_ip_id end |
#host_ipv6_id ⇒ String
The OCID of the host IPv6 address associated with the database node. Use this OCID with the get_ipv6 API to get the IPv6 address needed to make a database connection.
Note: Applies only to Exadata Cloud Service.
87 88 89 |
# File 'lib/oci/database/models/db_node.rb', line 87 def host_ipv6_id @host_ipv6_id end |
#hostname ⇒ String
The host name for the database node.
121 122 123 |
# File 'lib/oci/database/models/db_node.rb', line 121 def hostname @hostname end |
#id ⇒ String
[Required] The OCID of the database node.
49 50 51 |
# File 'lib/oci/database/models/db_node.rb', line 49 def id @id end |
#is_os_patch_reboot_required ⇒ BOOLEAN
Indicates whether the database node must be rebooted after applying Operating System patches. This flag becomes true after operations such as OS/kernel updates to indicate that a reboot of the node is required. After a successful reboot, this value is expected to return to false.
208 209 210 |
# File 'lib/oci/database/models/db_node.rb', line 208 def is_os_patch_reboot_required @is_os_patch_reboot_required end |
#lifecycle_details ⇒ String
Information about the current lifecycle state.
174 175 176 |
# File 'lib/oci/database/models/db_node.rb', line 174 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the database node.
113 114 115 |
# File 'lib/oci/database/models/db_node.rb', line 113 def lifecycle_state @lifecycle_state end |
#maintenance_type ⇒ String
The type of database node maintenance.
138 139 140 |
# File 'lib/oci/database/models/db_node.rb', line 138 def maintenance_type @maintenance_type end |
#memory_size_in_gbs ⇒ Integer
The allocated memory in GBs on the Db node.
182 183 184 |
# File 'lib/oci/database/models/db_node.rb', line 182 def memory_size_in_gbs @memory_size_in_gbs end |
#software_storage_size_in_gb ⇒ Integer
The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
134 135 136 |
# File 'lib/oci/database/models/db_node.rb', line 134 def software_storage_size_in_gb @software_storage_size_in_gb 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.
170 171 172 |
# File 'lib/oci/database/models/db_node.rb', line 170 def @system_tags end |
#time_created ⇒ DateTime
[Required] The date and time that the database node was created.
129 130 131 |
# File 'lib/oci/database/models/db_node.rb', line 129 def time_created @time_created end |
#time_maintenance_window_end ⇒ DateTime
End date and time of maintenance window.
146 147 148 |
# File 'lib/oci/database/models/db_node.rb', line 146 def time_maintenance_window_end @time_maintenance_window_end end |
#time_maintenance_window_start ⇒ DateTime
Start date and time of maintenance window.
142 143 144 |
# File 'lib/oci/database/models/db_node.rb', line 142 def time_maintenance_window_start @time_maintenance_window_start end |
#total_cpu_core_count ⇒ Integer
The total number of CPU cores reserved on the Db node.
190 191 192 |
# File 'lib/oci/database/models/db_node.rb', line 190 def total_cpu_core_count @total_cpu_core_count end |
#vnic2_id ⇒ String
The OCID of the second VNIC.
Note: Applies only to Exadata Cloud Service.
102 103 104 |
# File 'lib/oci/database/models/db_node.rb', line 102 def vnic2_id @vnic2_id end |
#vnic_id ⇒ String
[Required] The OCID of the VNIC.
57 58 59 |
# File 'lib/oci/database/models/db_node.rb', line 57 def vnic_id @vnic_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/oci/database/models/db_node.rb', line 211 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'db_system_id': :'dbSystemId', 'vnic_id': :'vnicId', 'backup_vnic_id': :'backupVnicId', 'host_ip_id': :'hostIpId', 'backup_ip_id': :'backupIpId', 'host_ipv6_id': :'hostIpv6Id', 'backup_ipv6_id': :'backupIpv6Id', 'vnic2_id': :'vnic2Id', 'backup_vnic2_id': :'backupVnic2Id', 'lifecycle_state': :'lifecycleState', 'available_actions': :'availableActions', 'hostname': :'hostname', 'fault_domain': :'faultDomain', 'time_created': :'timeCreated', 'software_storage_size_in_gb': :'softwareStorageSizeInGB', 'maintenance_type': :'maintenanceType', 'time_maintenance_window_start': :'timeMaintenanceWindowStart', 'time_maintenance_window_end': :'timeMaintenanceWindowEnd', 'additional_details': :'additionalDetails', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'lifecycle_details': :'lifecycleDetails', 'cpu_core_count': :'cpuCoreCount', 'memory_size_in_gbs': :'memorySizeInGBs', 'db_node_storage_size_in_gbs': :'dbNodeStorageSizeInGBs', 'total_cpu_core_count': :'totalCpuCoreCount', 'db_server_id': :'dbServerId', 'compute_model': :'computeModel', 'compute_count': :'computeCount', 'is_os_patch_reboot_required': :'isOsPatchRebootRequired' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/database/models/db_node.rb', line 251 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'db_system_id': :'String', 'vnic_id': :'String', 'backup_vnic_id': :'String', 'host_ip_id': :'String', 'backup_ip_id': :'String', 'host_ipv6_id': :'String', 'backup_ipv6_id': :'String', 'vnic2_id': :'String', 'backup_vnic2_id': :'String', 'lifecycle_state': :'String', 'available_actions': :'Array<String>', 'hostname': :'String', 'fault_domain': :'String', 'time_created': :'DateTime', 'software_storage_size_in_gb': :'Integer', 'maintenance_type': :'String', 'time_maintenance_window_start': :'DateTime', 'time_maintenance_window_end': :'DateTime', 'additional_details': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'lifecycle_details': :'String', 'cpu_core_count': :'Integer', 'memory_size_in_gbs': :'Integer', 'db_node_storage_size_in_gbs': :'Integer', 'total_cpu_core_count': :'Integer', 'db_server_id': :'String', 'compute_model': :'String', 'compute_count': :'Integer', 'is_os_patch_reboot_required': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/oci/database/models/db_node.rb', line 582 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && db_system_id == other.db_system_id && vnic_id == other.vnic_id && backup_vnic_id == other.backup_vnic_id && host_ip_id == other.host_ip_id && backup_ip_id == other.backup_ip_id && host_ipv6_id == other.host_ipv6_id && backup_ipv6_id == other.backup_ipv6_id && vnic2_id == other.vnic2_id && backup_vnic2_id == other.backup_vnic2_id && lifecycle_state == other.lifecycle_state && available_actions == other.available_actions && hostname == other.hostname && fault_domain == other.fault_domain && time_created == other.time_created && software_storage_size_in_gb == other.software_storage_size_in_gb && maintenance_type == other.maintenance_type && time_maintenance_window_start == other.time_maintenance_window_start && time_maintenance_window_end == other.time_maintenance_window_end && additional_details == other.additional_details && == other. && == other. && == other. && lifecycle_details == other.lifecycle_details && cpu_core_count == other.cpu_core_count && memory_size_in_gbs == other.memory_size_in_gbs && db_node_storage_size_in_gbs == other.db_node_storage_size_in_gbs && total_cpu_core_count == other.total_cpu_core_count && db_server_id == other.db_server_id && compute_model == other.compute_model && compute_count == other.compute_count && is_os_patch_reboot_required == other.is_os_patch_reboot_required end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 |
# File 'lib/oci/database/models/db_node.rb', line 643 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
623 624 625 |
# File 'lib/oci/database/models/db_node.rb', line 623 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
632 633 634 |
# File 'lib/oci/database/models/db_node.rb', line 632 def hash [id, db_system_id, vnic_id, backup_vnic_id, host_ip_id, backup_ip_id, host_ipv6_id, backup_ipv6_id, vnic2_id, backup_vnic2_id, lifecycle_state, available_actions, hostname, fault_domain, time_created, software_storage_size_in_gb, maintenance_type, time_maintenance_window_start, time_maintenance_window_end, additional_details, , , , lifecycle_details, cpu_core_count, memory_size_in_gbs, db_node_storage_size_in_gbs, total_cpu_core_count, db_server_id, compute_model, compute_count, is_os_patch_reboot_required].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
676 677 678 679 680 681 682 683 684 685 |
# File 'lib/oci/database/models/db_node.rb', line 676 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
670 671 672 |
# File 'lib/oci/database/models/db_node.rb', line 670 def to_s to_hash.to_s end |