Class: OCI::Datacc::Models::Infrastructure
- Inherits:
-
Object
- Object
- OCI::Datacc::Models::Infrastructure
- Defined in:
- lib/oci/datacc/models/infrastructure.rb
Overview
Details about Database Infrastructure resource.
Constant Summary collapse
- SYSTEM_MODEL_ENUM =
[ SYSTEM_MODEL_X11_HA_768 = 'X11_HA_768'.freeze, SYSTEM_MODEL_X10_HA_512 = 'X10_HA_512'.freeze, SYSTEM_MODEL_X8_HA_384 = 'X8_HA_384'.freeze, SYSTEM_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- SHAPE_ENUM =
[ SHAPE_SIX_SSDS = 'SIX_SSDS'.freeze, SHAPE_TWELVE_SSDS = 'TWELVE_SSDS'.freeze, SHAPE_EIGHTEEN_SSDS = 'EIGHTEEN_SSDS'.freeze, SHAPE_TWENTY_FOUR_SSDS = 'TWENTY_FOUR_SSDS'.freeze, SHAPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CLIENT_NETWORK_BONDING_MODE_ENUM =
[ CLIENT_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, CLIENT_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze, CLIENT_NETWORK_BONDING_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- BACKUP_NETWORK_BONDING_MODE_ENUM =
[ BACKUP_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, BACKUP_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze, BACKUP_NETWORK_BONDING_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CPS_NETWORK_BONDING_MODE_ENUM =
[ CPS_NETWORK_BONDING_MODE_ACTIVE_BACKUP = 'ACTIVE_BACKUP'.freeze, CPS_NETWORK_BONDING_MODE_LACP = 'LACP'.freeze, CPS_NETWORK_BONDING_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CLIENT_NETWORK_BONDING_INTERFACE_ENUM =
[ CLIENT_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze, CLIENT_NETWORK_BONDING_INTERFACE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- BACKUP_NETWORK_BONDING_INTERFACE_ENUM =
[ BACKUP_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze, BACKUP_NETWORK_BONDING_INTERFACE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- CPS_NETWORK_BONDING_INTERFACE_ENUM =
[ CPS_NETWORK_BONDING_INTERFACE_BTBOND1 = 'BTBOND1'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND2 = 'BTBOND2'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND3 = 'BTBOND3'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND4 = 'BTBOND4'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND5 = 'BTBOND5'.freeze, CPS_NETWORK_BONDING_INTERFACE_BTBOND6 = 'BTBOND6'.freeze, CPS_NETWORK_BONDING_INTERFACE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_REQUIRES_VALIDATION = 'REQUIRES_VALIDATION'.freeze, LIFECYCLE_STATE_VALIDATING = 'VALIDATING'.freeze, LIFECYCLE_STATE_VALIDATION_FAILED = 'VALIDATION_FAILED'.freeze, LIFECYCLE_STATE_REQUIRES_ACTIVATION = 'REQUIRES_ACTIVATION'.freeze, LIFECYCLE_STATE_ACTIVATING = 'ACTIVATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_ACTIVATION_FAILED = 'ACTIVATION_FAILED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_DISCONNECTED = 'DISCONNECTED'.freeze, LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- SSD_CONFIGURATION_REQUESTED_ENUM =
[ SSD_CONFIGURATION_REQUESTED_SIX_SSDS = 'SIX_SSDS'.freeze, SSD_CONFIGURATION_REQUESTED_TWELVE_SSDS = 'TWELVE_SSDS'.freeze, SSD_CONFIGURATION_REQUESTED_EIGHTEEN_SSDS = 'EIGHTEEN_SSDS'.freeze, SSD_CONFIGURATION_REQUESTED_TWENTY_FOUR_SSDS = 'TWENTY_FOUR_SSDS'.freeze, SSD_CONFIGURATION_REQUESTED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#acfs_file_system_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs.
-
#acfs_file_system_used_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs.
-
#admin_networkcidr ⇒ String
[Required] The CIDR block for the system network.
-
#backup_network_bonding_interface ⇒ String
The network bonding interface for backup network for the Database Infrastructure.
-
#backup_network_bonding_mode ⇒ String
The network bonding mode for Backup networks for the Database Infrastructure.
-
#client_network_bonding_interface ⇒ String
The network bonding interface for client network for the Database Infrastructure.
-
#client_network_bonding_mode ⇒ String
The network bonding mode for Client networks for the Database Infrastructure.
-
#cloud_control_plane_server1 ⇒ String
[Required] The IP address for the first control plane server.
-
#cloud_control_plane_server2 ⇒ String
[Required] The IP address for the second control plane server.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
- #compute_capacity ⇒ OCI::Datacc::Models::ComputeCapacityDetails
-
#contacts ⇒ Array<OCI::Datacc::Models::InfrastructureContact>
The list of contacts for the Database Infrastructure.
-
#corporate_proxy ⇒ String
The corporate network proxy for access to the control plane network.
-
#cps_network_bonding_interface ⇒ String
The network bonding interface for CPS network for the Database Infrastructure.
-
#cps_network_bonding_mode ⇒ String
The network bonding mode for CPS networks for the Database Infrastructure.
-
#data_disk_percentage ⇒ Integer
Percentage of disk space assigned for DATA disk group.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#description ⇒ String
Database Infrastructure description.
-
#display_name ⇒ String
[Required] The user-friendly name for the Database Infrastructure.
-
#dns_servers ⇒ Array<String>
[Required] The list of DNS server IP addresses.
-
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope.
-
#gateway ⇒ String
[Required] The gateway for the control plane network.
-
#id ⇒ String
[Required] The OCID of the Database Infrastructure.
-
#lifecycle_state ⇒ String
The current state of the Database Infrastructure.
-
#lifecycle_state_details ⇒ String
Lifecycle state details of the Database Infrastructure.
- #maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
-
#netmask ⇒ String
[Required] The netmask for the control plane network.
-
#network_adapter_configuration ⇒ String
The network adapter, transceiver and cable configuration for the client and backup networks.
-
#ntp_servers ⇒ Array<String>
[Required] The list of NTP server IP addresses.
-
#rack_serial_number ⇒ String
The serial number for the Database Infrastructure.
-
#reco_disk_percentage ⇒ Integer
Percentage of disk space assigned for RECO disk group.
-
#servers ⇒ Array<OCI::Datacc::Models::InfrastructureServer>
A list of Database Infrastructure nodes.
-
#shape ⇒ String
[Required] The shape of the Database Infrastructure.
-
#ssd_configuration_requested ⇒ String
SSD configuration requested for the infrastructure.
-
#storage_capacity ⇒ Array<OCI::Datacc::Models::StorageCapacityDetails>
Capacity details of the Storage disk group.
-
#subscription_plan_number ⇒ String
The unique identifier for the subscription plan number.
-
#system_model ⇒ String
[Required] Database Infrastructure System Model specification.
- #system_storage_capacity ⇒ OCI::Datacc::Models::SystemStorageCapacityDetails
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
Usage of system tag keys.
-
#time_activated ⇒ DateTime
The time, in RFC3339 format, when the Database Infrastructure was activated.
-
#time_created ⇒ DateTime
The time that the Database Infrastructure cluster was created.
-
#time_last_state_updated ⇒ DateTime
The time, in RFC3339 format, when the lifecycle state was last updated.
-
#time_updated ⇒ DateTime
The time that the Database Infrastructure was last updated.
-
#time_validated ⇒ DateTime
The time, in RFC3339 format, when the Database Infrastructure network was validated.
-
#version ⇒ String
The version of the system software on the Database Infrastructure.
-
#vlan_id ⇒ String
The CPS network VLAN ID.
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 = {}) ⇒ Infrastructure
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 = {}) ⇒ Infrastructure
Initializes the object
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 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 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 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 469 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.id = attributes[:'id'] if attributes[:'id'] self.description = attributes[:'description'] if attributes[:'description'] 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.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.system_model = attributes[:'systemModel'] if attributes[:'systemModel'] raise 'You cannot provide both :systemModel and :system_model' if attributes.key?(:'systemModel') && attributes.key?(:'system_model') self.system_model = attributes[:'system_model'] if attributes[:'system_model'] self.version = attributes[:'version'] if attributes[:'version'] self.shape = attributes[:'shape'] if attributes[:'shape'] self.cloud_control_plane_server1 = attributes[:'cloudControlPlaneServer1'] if attributes[:'cloudControlPlaneServer1'] raise 'You cannot provide both :cloudControlPlaneServer1 and :cloud_control_plane_server1' if attributes.key?(:'cloudControlPlaneServer1') && attributes.key?(:'cloud_control_plane_server1') self.cloud_control_plane_server1 = attributes[:'cloud_control_plane_server1'] if attributes[:'cloud_control_plane_server1'] self.cloud_control_plane_server2 = attributes[:'cloudControlPlaneServer2'] if attributes[:'cloudControlPlaneServer2'] raise 'You cannot provide both :cloudControlPlaneServer2 and :cloud_control_plane_server2' if attributes.key?(:'cloudControlPlaneServer2') && attributes.key?(:'cloud_control_plane_server2') self.cloud_control_plane_server2 = attributes[:'cloud_control_plane_server2'] if attributes[:'cloud_control_plane_server2'] self.netmask = attributes[:'netmask'] if attributes[:'netmask'] self.gateway = attributes[:'gateway'] if attributes[:'gateway'] self.admin_networkcidr = attributes[:'adminNetworkcidr'] if attributes[:'adminNetworkcidr'] raise 'You cannot provide both :adminNetworkcidr and :admin_networkcidr' if attributes.key?(:'adminNetworkcidr') && attributes.key?(:'admin_networkcidr') self.admin_networkcidr = attributes[:'admin_networkcidr'] if attributes[:'admin_networkcidr'] self.data_disk_percentage = attributes[:'dataDiskPercentage'] if attributes[:'dataDiskPercentage'] raise 'You cannot provide both :dataDiskPercentage and :data_disk_percentage' if attributes.key?(:'dataDiskPercentage') && attributes.key?(:'data_disk_percentage') self.data_disk_percentage = attributes[:'data_disk_percentage'] if attributes[:'data_disk_percentage'] self.reco_disk_percentage = attributes[:'recoDiskPercentage'] if attributes[:'recoDiskPercentage'] raise 'You cannot provide both :recoDiskPercentage and :reco_disk_percentage' if attributes.key?(:'recoDiskPercentage') && attributes.key?(:'reco_disk_percentage') self.reco_disk_percentage = attributes[:'reco_disk_percentage'] if attributes[:'reco_disk_percentage'] self.contacts = attributes[:'contacts'] if attributes[:'contacts'] self.dns_servers = attributes[:'dnsServers'] if attributes[:'dnsServers'] raise 'You cannot provide both :dnsServers and :dns_servers' if attributes.key?(:'dnsServers') && attributes.key?(:'dns_servers') self.dns_servers = attributes[:'dns_servers'] if attributes[:'dns_servers'] self.ntp_servers = attributes[:'ntpServers'] if attributes[:'ntpServers'] raise 'You cannot provide both :ntpServers and :ntp_servers' if attributes.key?(:'ntpServers') && attributes.key?(:'ntp_servers') self.ntp_servers = attributes[:'ntp_servers'] if attributes[:'ntp_servers'] self.client_network_bonding_mode = attributes[:'clientNetworkBondingMode'] if attributes[:'clientNetworkBondingMode'] raise 'You cannot provide both :clientNetworkBondingMode and :client_network_bonding_mode' if attributes.key?(:'clientNetworkBondingMode') && attributes.key?(:'client_network_bonding_mode') self.client_network_bonding_mode = attributes[:'client_network_bonding_mode'] if attributes[:'client_network_bonding_mode'] self.backup_network_bonding_mode = attributes[:'backupNetworkBondingMode'] if attributes[:'backupNetworkBondingMode'] raise 'You cannot provide both :backupNetworkBondingMode and :backup_network_bonding_mode' if attributes.key?(:'backupNetworkBondingMode') && attributes.key?(:'backup_network_bonding_mode') self.backup_network_bonding_mode = attributes[:'backup_network_bonding_mode'] if attributes[:'backup_network_bonding_mode'] self.cps_network_bonding_mode = attributes[:'cpsNetworkBondingMode'] if attributes[:'cpsNetworkBondingMode'] raise 'You cannot provide both :cpsNetworkBondingMode and :cps_network_bonding_mode' if attributes.key?(:'cpsNetworkBondingMode') && attributes.key?(:'cps_network_bonding_mode') self.cps_network_bonding_mode = attributes[:'cps_network_bonding_mode'] if attributes[:'cps_network_bonding_mode'] self.client_network_bonding_interface = attributes[:'clientNetworkBondingInterface'] if attributes[:'clientNetworkBondingInterface'] raise 'You cannot provide both :clientNetworkBondingInterface and :client_network_bonding_interface' if attributes.key?(:'clientNetworkBondingInterface') && attributes.key?(:'client_network_bonding_interface') self.client_network_bonding_interface = attributes[:'client_network_bonding_interface'] if attributes[:'client_network_bonding_interface'] self.backup_network_bonding_interface = attributes[:'backupNetworkBondingInterface'] if attributes[:'backupNetworkBondingInterface'] raise 'You cannot provide both :backupNetworkBondingInterface and :backup_network_bonding_interface' if attributes.key?(:'backupNetworkBondingInterface') && attributes.key?(:'backup_network_bonding_interface') self.backup_network_bonding_interface = attributes[:'backup_network_bonding_interface'] if attributes[:'backup_network_bonding_interface'] self.cps_network_bonding_interface = attributes[:'cpsNetworkBondingInterface'] if attributes[:'cpsNetworkBondingInterface'] raise 'You cannot provide both :cpsNetworkBondingInterface and :cps_network_bonding_interface' if attributes.key?(:'cpsNetworkBondingInterface') && attributes.key?(:'cps_network_bonding_interface') self.cps_network_bonding_interface = attributes[:'cps_network_bonding_interface'] if attributes[:'cps_network_bonding_interface'] self.acfs_file_system_storage_in_gbs = attributes[:'acfsFileSystemStorageInGbs'] if attributes[:'acfsFileSystemStorageInGbs'] raise 'You cannot provide both :acfsFileSystemStorageInGbs and :acfs_file_system_storage_in_gbs' if attributes.key?(:'acfsFileSystemStorageInGbs') && attributes.key?(:'acfs_file_system_storage_in_gbs') self.acfs_file_system_storage_in_gbs = attributes[:'acfs_file_system_storage_in_gbs'] if attributes[:'acfs_file_system_storage_in_gbs'] self.acfs_file_system_used_storage_in_gbs = attributes[:'acfsFileSystemUsedStorageInGbs'] if attributes[:'acfsFileSystemUsedStorageInGbs'] raise 'You cannot provide both :acfsFileSystemUsedStorageInGbs and :acfs_file_system_used_storage_in_gbs' if attributes.key?(:'acfsFileSystemUsedStorageInGbs') && attributes.key?(:'acfs_file_system_used_storage_in_gbs') self.acfs_file_system_used_storage_in_gbs = attributes[:'acfs_file_system_used_storage_in_gbs'] if attributes[:'acfs_file_system_used_storage_in_gbs'] self.corporate_proxy = attributes[:'corporateProxy'] if attributes[:'corporateProxy'] raise 'You cannot provide both :corporateProxy and :corporate_proxy' if attributes.key?(:'corporateProxy') && attributes.key?(:'corporate_proxy') self.corporate_proxy = attributes[:'corporate_proxy'] if attributes[:'corporate_proxy'] self.vlan_id = attributes[:'vlanId'] if attributes[:'vlanId'] raise 'You cannot provide both :vlanId and :vlan_id' if attributes.key?(:'vlanId') && attributes.key?(:'vlan_id') self.vlan_id = attributes[:'vlan_id'] if attributes[:'vlan_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. = 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.maintenance_window = attributes[:'maintenanceWindow'] if attributes[:'maintenanceWindow'] raise 'You cannot provide both :maintenanceWindow and :maintenance_window' if attributes.key?(:'maintenanceWindow') && attributes.key?(:'maintenance_window') self.maintenance_window = attributes[:'maintenance_window'] if attributes[:'maintenance_window'] 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.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.time_last_state_updated = attributes[:'timeLastStateUpdated'] if attributes[:'timeLastStateUpdated'] raise 'You cannot provide both :timeLastStateUpdated and :time_last_state_updated' if attributes.key?(:'timeLastStateUpdated') && attributes.key?(:'time_last_state_updated') self.time_last_state_updated = attributes[:'time_last_state_updated'] if attributes[:'time_last_state_updated'] self.time_activated = attributes[:'timeActivated'] if attributes[:'timeActivated'] raise 'You cannot provide both :timeActivated and :time_activated' if attributes.key?(:'timeActivated') && attributes.key?(:'time_activated') self.time_activated = attributes[:'time_activated'] if attributes[:'time_activated'] self.time_validated = attributes[:'timeValidated'] if attributes[:'timeValidated'] raise 'You cannot provide both :timeValidated and :time_validated' if attributes.key?(:'timeValidated') && attributes.key?(:'time_validated') self.time_validated = attributes[:'time_validated'] if attributes[:'time_validated'] 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.lifecycle_state_details = attributes[:'lifecycleStateDetails'] if attributes[:'lifecycleStateDetails'] raise 'You cannot provide both :lifecycleStateDetails and :lifecycle_state_details' if attributes.key?(:'lifecycleStateDetails') && attributes.key?(:'lifecycle_state_details') self.lifecycle_state_details = attributes[:'lifecycle_state_details'] if attributes[:'lifecycle_state_details'] self.rack_serial_number = attributes[:'rackSerialNumber'] if attributes[:'rackSerialNumber'] raise 'You cannot provide both :rackSerialNumber and :rack_serial_number' if attributes.key?(:'rackSerialNumber') && attributes.key?(:'rack_serial_number') self.rack_serial_number = attributes[:'rack_serial_number'] if attributes[:'rack_serial_number'] self.servers = attributes[:'servers'] if attributes[:'servers'] self.compute_capacity = attributes[:'computeCapacity'] if attributes[:'computeCapacity'] raise 'You cannot provide both :computeCapacity and :compute_capacity' if attributes.key?(:'computeCapacity') && attributes.key?(:'compute_capacity') self.compute_capacity = attributes[:'compute_capacity'] if attributes[:'compute_capacity'] self.storage_capacity = attributes[:'storageCapacity'] if attributes[:'storageCapacity'] raise 'You cannot provide both :storageCapacity and :storage_capacity' if attributes.key?(:'storageCapacity') && attributes.key?(:'storage_capacity') self.storage_capacity = attributes[:'storage_capacity'] if attributes[:'storage_capacity'] self.system_storage_capacity = attributes[:'systemStorageCapacity'] if attributes[:'systemStorageCapacity'] raise 'You cannot provide both :systemStorageCapacity and :system_storage_capacity' if attributes.key?(:'systemStorageCapacity') && attributes.key?(:'system_storage_capacity') self.system_storage_capacity = attributes[:'system_storage_capacity'] if attributes[:'system_storage_capacity'] self.network_adapter_configuration = attributes[:'networkAdapterConfiguration'] if attributes[:'networkAdapterConfiguration'] raise 'You cannot provide both :networkAdapterConfiguration and :network_adapter_configuration' if attributes.key?(:'networkAdapterConfiguration') && attributes.key?(:'network_adapter_configuration') self.network_adapter_configuration = attributes[:'network_adapter_configuration'] if attributes[:'network_adapter_configuration'] self.subscription_plan_number = attributes[:'subscriptionPlanNumber'] if attributes[:'subscriptionPlanNumber'] raise 'You cannot provide both :subscriptionPlanNumber and :subscription_plan_number' if attributes.key?(:'subscriptionPlanNumber') && attributes.key?(:'subscription_plan_number') self.subscription_plan_number = attributes[:'subscription_plan_number'] if attributes[:'subscription_plan_number'] self.ssd_configuration_requested = attributes[:'ssdConfigurationRequested'] if attributes[:'ssdConfigurationRequested'] raise 'You cannot provide both :ssdConfigurationRequested and :ssd_configuration_requested' if attributes.key?(:'ssdConfigurationRequested') && attributes.key?(:'ssd_configuration_requested') self.ssd_configuration_requested = attributes[:'ssd_configuration_requested'] if attributes[:'ssd_configuration_requested'] end |
Instance Attribute Details
#acfs_file_system_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is reserved for creating local storage for VM Clusters and application VMs.
203 204 205 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 203 def acfs_file_system_storage_in_gbs @acfs_file_system_storage_in_gbs end |
#acfs_file_system_used_storage_in_gbs ⇒ Float
The amount of storage (in GB) in the DATA disk group that is currently utilized for creating local storage for VM Clusters and application VMs. This attribute is deprecated and will be removed in a subsequent release. Please read from systemStorageCapacity instead.
209 210 211 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 209 def acfs_file_system_used_storage_in_gbs @acfs_file_system_used_storage_in_gbs end |
#admin_networkcidr ⇒ String
[Required] The CIDR block for the system network. The system network is a private network in Database Infrastructure and is not connected to your corporate network. The system network is used for storage (ASM) traffic, high-performance interconnect traffic and administration of infrastructure components.
154 155 156 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 154 def admin_networkcidr @admin_networkcidr end |
#backup_network_bonding_interface ⇒ String
The network bonding interface for backup network for the Database Infrastructure.
194 195 196 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 194 def backup_network_bonding_interface @backup_network_bonding_interface end |
#backup_network_bonding_mode ⇒ String
The network bonding mode for Backup networks for the Database Infrastructure.
182 183 184 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 182 def backup_network_bonding_mode @backup_network_bonding_mode end |
#client_network_bonding_interface ⇒ String
The network bonding interface for client network for the Database Infrastructure.
190 191 192 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 190 def client_network_bonding_interface @client_network_bonding_interface end |
#client_network_bonding_mode ⇒ String
The network bonding mode for Client networks for the Database Infrastructure.
178 179 180 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 178 def client_network_bonding_mode @client_network_bonding_mode end |
#cloud_control_plane_server1 ⇒ String
[Required] The IP address for the first control plane server.
138 139 140 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 138 def cloud_control_plane_server1 @cloud_control_plane_server1 end |
#cloud_control_plane_server2 ⇒ String
[Required] The IP address for the second control plane server.
142 143 144 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 142 def cloud_control_plane_server2 @cloud_control_plane_server2 end |
#compartment_id ⇒ String
[Required] The OCID of the compartment.
114 115 116 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 114 def compartment_id @compartment_id end |
#compute_capacity ⇒ OCI::Datacc::Models::ComputeCapacityDetails
284 285 286 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 284 def compute_capacity @compute_capacity end |
#contacts ⇒ Array<OCI::Datacc::Models::InfrastructureContact>
The list of contacts for the Database Infrastructure.
166 167 168 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 166 def contacts @contacts end |
#corporate_proxy ⇒ String
The corporate network proxy for access to the control plane network. Oracle recommends using an HTTPS proxy when possible for enhanced security.
215 216 217 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 215 def corporate_proxy @corporate_proxy end |
#cps_network_bonding_interface ⇒ String
The network bonding interface for CPS network for the Database Infrastructure.
198 199 200 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 198 def cps_network_bonding_interface @cps_network_bonding_interface end |
#cps_network_bonding_mode ⇒ String
The network bonding mode for CPS networks for the Database Infrastructure.
186 187 188 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 186 def cps_network_bonding_mode @cps_network_bonding_mode end |
#data_disk_percentage ⇒ Integer
Percentage of disk space assigned for DATA disk group.
158 159 160 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 158 def data_disk_percentage @data_disk_percentage end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
231 232 233 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 231 def @defined_tags end |
#description ⇒ String
Database Infrastructure description.
109 110 111 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 109 def description @description end |
#display_name ⇒ String
[Required] The user-friendly name for the Database Infrastructure. The name does not need to be unique.
119 120 121 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 119 def display_name @display_name end |
#dns_servers ⇒ Array<String>
[Required] The list of DNS server IP addresses. Maximum of 3 allowed.
170 171 172 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 170 def dns_servers @dns_servers end |
#freeform_tags ⇒ Hash<String, String>
Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}
225 226 227 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 225 def @freeform_tags end |
#gateway ⇒ String
[Required] The gateway for the control plane network.
150 151 152 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 150 def gateway @gateway end |
#id ⇒ String
[Required] The OCID of the Database Infrastructure.
105 106 107 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 105 def id @id end |
#lifecycle_state ⇒ String
The current state of the Database Infrastructure.
269 270 271 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 269 def lifecycle_state @lifecycle_state end |
#lifecycle_state_details ⇒ String
Lifecycle state details of the Database Infrastructure.
273 274 275 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 273 def lifecycle_state_details @lifecycle_state_details end |
#maintenance_window ⇒ OCI::Datacc::Models::MaintenanceWindow
240 241 242 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 240 def maintenance_window @maintenance_window end |
#netmask ⇒ String
[Required] The netmask for the control plane network.
146 147 148 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 146 def netmask @netmask end |
#network_adapter_configuration ⇒ String
The network adapter, transceiver and cable configuration for the client and backup networks.
299 300 301 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 299 def network_adapter_configuration @network_adapter_configuration end |
#ntp_servers ⇒ Array<String>
[Required] The list of NTP server IP addresses. Maximum of 3 allowed.
174 175 176 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 174 def ntp_servers @ntp_servers end |
#rack_serial_number ⇒ String
The serial number for the Database Infrastructure.
277 278 279 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 277 def rack_serial_number @rack_serial_number end |
#reco_disk_percentage ⇒ Integer
Percentage of disk space assigned for RECO disk group.
162 163 164 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 162 def reco_disk_percentage @reco_disk_percentage end |
#servers ⇒ Array<OCI::Datacc::Models::InfrastructureServer>
A list of Database Infrastructure nodes.
281 282 283 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 281 def servers @servers end |
#shape ⇒ String
[Required] The shape of the Database Infrastructure. The shape determines the amount of CPU, storage, and memory resources allocated to the instance.
134 135 136 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 134 def shape @shape end |
#ssd_configuration_requested ⇒ String
SSD configuration requested for the infrastructure.
307 308 309 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 307 def ssd_configuration_requested @ssd_configuration_requested end |
#storage_capacity ⇒ Array<OCI::Datacc::Models::StorageCapacityDetails>
Capacity details of the Storage disk group. This attribute is deprecated and will be removed in a subsequent release. Please use systemStorageCapacity instead.
291 292 293 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 291 def storage_capacity @storage_capacity end |
#subscription_plan_number ⇒ String
The unique identifier for the subscription plan number.
303 304 305 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 303 def subscription_plan_number @subscription_plan_number end |
#system_model ⇒ String
[Required] Database Infrastructure System Model specification. The system model determines the model of the Database Infrastructure hardware to be used.
124 125 126 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 124 def system_model @system_model end |
#system_storage_capacity ⇒ OCI::Datacc::Models::SystemStorageCapacityDetails
294 295 296 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 294 def system_storage_capacity @system_storage_capacity end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { \"orcl-cloud\": { \"free-tier-retained\": \"true\" } }
237 238 239 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 237 def @system_tags end |
#time_activated ⇒ DateTime
The time, in RFC3339 format, when the Database Infrastructure was activated.
260 261 262 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 260 def time_activated @time_activated end |
#time_created ⇒ DateTime
The time that the Database Infrastructure cluster was created. An RFC3339 formatted datetime string.
245 246 247 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 245 def time_created @time_created end |
#time_last_state_updated ⇒ DateTime
The time, in RFC3339 format, when the lifecycle state was last updated.
255 256 257 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 255 def time_last_state_updated @time_last_state_updated end |
#time_updated ⇒ DateTime
The time that the Database Infrastructure was last updated. An RFC3339 formatted datetime string.
250 251 252 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 250 def time_updated @time_updated end |
#time_validated ⇒ DateTime
The time, in RFC3339 format, when the Database Infrastructure network was validated.
265 266 267 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 265 def time_validated @time_validated end |
#version ⇒ String
The version of the system software on the Database Infrastructure.
129 130 131 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 129 def version @version end |
#vlan_id ⇒ String
The CPS network VLAN ID.
219 220 221 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 219 def vlan_id @vlan_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 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 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 310 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'description': :'description', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'system_model': :'systemModel', 'version': :'version', 'shape': :'shape', 'cloud_control_plane_server1': :'cloudControlPlaneServer1', 'cloud_control_plane_server2': :'cloudControlPlaneServer2', 'netmask': :'netmask', 'gateway': :'gateway', 'admin_networkcidr': :'adminNetworkcidr', 'data_disk_percentage': :'dataDiskPercentage', 'reco_disk_percentage': :'recoDiskPercentage', 'contacts': :'contacts', 'dns_servers': :'dnsServers', 'ntp_servers': :'ntpServers', 'client_network_bonding_mode': :'clientNetworkBondingMode', 'backup_network_bonding_mode': :'backupNetworkBondingMode', 'cps_network_bonding_mode': :'cpsNetworkBondingMode', 'client_network_bonding_interface': :'clientNetworkBondingInterface', 'backup_network_bonding_interface': :'backupNetworkBondingInterface', 'cps_network_bonding_interface': :'cpsNetworkBondingInterface', 'acfs_file_system_storage_in_gbs': :'acfsFileSystemStorageInGbs', 'acfs_file_system_used_storage_in_gbs': :'acfsFileSystemUsedStorageInGbs', 'corporate_proxy': :'corporateProxy', 'vlan_id': :'vlanId', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'maintenance_window': :'maintenanceWindow', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'time_last_state_updated': :'timeLastStateUpdated', 'time_activated': :'timeActivated', 'time_validated': :'timeValidated', 'lifecycle_state': :'lifecycleState', 'lifecycle_state_details': :'lifecycleStateDetails', 'rack_serial_number': :'rackSerialNumber', 'servers': :'servers', 'compute_capacity': :'computeCapacity', 'storage_capacity': :'storageCapacity', 'system_storage_capacity': :'systemStorageCapacity', 'network_adapter_configuration': :'networkAdapterConfiguration', 'subscription_plan_number': :'subscriptionPlanNumber', 'ssd_configuration_requested': :'ssdConfigurationRequested' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 364 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'description': :'String', 'compartment_id': :'String', 'display_name': :'String', 'system_model': :'String', 'version': :'String', 'shape': :'String', 'cloud_control_plane_server1': :'String', 'cloud_control_plane_server2': :'String', 'netmask': :'String', 'gateway': :'String', 'admin_networkcidr': :'String', 'data_disk_percentage': :'Integer', 'reco_disk_percentage': :'Integer', 'contacts': :'Array<OCI::Datacc::Models::InfrastructureContact>', 'dns_servers': :'Array<String>', 'ntp_servers': :'Array<String>', 'client_network_bonding_mode': :'String', 'backup_network_bonding_mode': :'String', 'cps_network_bonding_mode': :'String', 'client_network_bonding_interface': :'String', 'backup_network_bonding_interface': :'String', 'cps_network_bonding_interface': :'String', 'acfs_file_system_storage_in_gbs': :'Float', 'acfs_file_system_used_storage_in_gbs': :'Float', 'corporate_proxy': :'String', 'vlan_id': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'maintenance_window': :'OCI::Datacc::Models::MaintenanceWindow', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'time_last_state_updated': :'DateTime', 'time_activated': :'DateTime', 'time_validated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_state_details': :'String', 'rack_serial_number': :'String', 'servers': :'Array<OCI::Datacc::Models::InfrastructureServer>', 'compute_capacity': :'OCI::Datacc::Models::ComputeCapacityDetails', 'storage_capacity': :'Array<OCI::Datacc::Models::StorageCapacityDetails>', 'system_storage_capacity': :'OCI::Datacc::Models::SystemStorageCapacityDetails', 'network_adapter_configuration': :'String', 'subscription_plan_number': :'String', 'ssd_configuration_requested': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 857 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && description == other.description && compartment_id == other.compartment_id && display_name == other.display_name && system_model == other.system_model && version == other.version && shape == other.shape && cloud_control_plane_server1 == other.cloud_control_plane_server1 && cloud_control_plane_server2 == other.cloud_control_plane_server2 && netmask == other.netmask && gateway == other.gateway && admin_networkcidr == other.admin_networkcidr && data_disk_percentage == other.data_disk_percentage && reco_disk_percentage == other.reco_disk_percentage && contacts == other.contacts && dns_servers == other.dns_servers && ntp_servers == other.ntp_servers && client_network_bonding_mode == other.client_network_bonding_mode && backup_network_bonding_mode == other.backup_network_bonding_mode && cps_network_bonding_mode == other.cps_network_bonding_mode && client_network_bonding_interface == other.client_network_bonding_interface && backup_network_bonding_interface == other.backup_network_bonding_interface && cps_network_bonding_interface == other.cps_network_bonding_interface && acfs_file_system_storage_in_gbs == other.acfs_file_system_storage_in_gbs && acfs_file_system_used_storage_in_gbs == other.acfs_file_system_used_storage_in_gbs && corporate_proxy == other.corporate_proxy && vlan_id == other.vlan_id && == other. && == other. && == other. && maintenance_window == other.maintenance_window && time_created == other.time_created && time_updated == other.time_updated && time_last_state_updated == other.time_last_state_updated && time_activated == other.time_activated && time_validated == other.time_validated && lifecycle_state == other.lifecycle_state && lifecycle_state_details == other.lifecycle_state_details && rack_serial_number == other.rack_serial_number && servers == other.servers && compute_capacity == other.compute_capacity && storage_capacity == other.storage_capacity && system_storage_capacity == other.system_storage_capacity && network_adapter_configuration == other.network_adapter_configuration && subscription_plan_number == other.subscription_plan_number && ssd_configuration_requested == other.ssd_configuration_requested end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 932 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
912 913 914 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 912 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
921 922 923 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 921 def hash [id, description, compartment_id, display_name, system_model, version, shape, cloud_control_plane_server1, cloud_control_plane_server2, netmask, gateway, admin_networkcidr, data_disk_percentage, reco_disk_percentage, contacts, dns_servers, ntp_servers, client_network_bonding_mode, backup_network_bonding_mode, cps_network_bonding_mode, client_network_bonding_interface, backup_network_bonding_interface, cps_network_bonding_interface, acfs_file_system_storage_in_gbs, acfs_file_system_used_storage_in_gbs, corporate_proxy, vlan_id, , , , maintenance_window, time_created, time_updated, time_last_state_updated, time_activated, time_validated, lifecycle_state, lifecycle_state_details, rack_serial_number, servers, compute_capacity, storage_capacity, system_storage_capacity, network_adapter_configuration, subscription_plan_number, ssd_configuration_requested].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
965 966 967 968 969 970 971 972 973 974 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 965 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
959 960 961 |
# File 'lib/oci/datacc/models/infrastructure.rb', line 959 def to_s to_hash.to_s end |