Class: OCI::Database::Models::AutonomousDatabase
- Inherits:
-
Object
- Object
- OCI::Database::Models::AutonomousDatabase
- Defined in:
- lib/oci/database/models/autonomous_database.rb
Overview
An Oracle Autonomous Database.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze, LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.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_UNAVAILABLE = 'UNAVAILABLE'.freeze, LIFECYCLE_STATE_RESTORE_IN_PROGRESS = 'RESTORE_IN_PROGRESS'.freeze, LIFECYCLE_STATE_RESTORE_FAILED = 'RESTORE_FAILED'.freeze, LIFECYCLE_STATE_BACKUP_IN_PROGRESS = 'BACKUP_IN_PROGRESS'.freeze, LIFECYCLE_STATE_SCALE_IN_PROGRESS = 'SCALE_IN_PROGRESS'.freeze, LIFECYCLE_STATE_AVAILABLE_NEEDS_ATTENTION = 'AVAILABLE_NEEDS_ATTENTION'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'.freeze, LIFECYCLE_STATE_RESTARTING = 'RESTARTING'.freeze, LIFECYCLE_STATE_RECREATING = 'RECREATING'.freeze, LIFECYCLE_STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS'.freeze, LIFECYCLE_STATE_UPGRADING = 'UPGRADING'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- INFRASTRUCTURE_TYPE_ENUM =
[ INFRASTRUCTURE_TYPE_CLOUD = 'CLOUD'.freeze, INFRASTRUCTURE_TYPE_CLOUD_AT_CUSTOMER = 'CLOUD_AT_CUSTOMER'.freeze, INFRASTRUCTURE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze, LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DB_WORKLOAD_ENUM =
[ DB_WORKLOAD_OLTP = 'OLTP'.freeze, DB_WORKLOAD_DW = 'DW'.freeze, DB_WORKLOAD_AJD = 'AJD'.freeze, DB_WORKLOAD_APEX = 'APEX'.freeze, DB_WORKLOAD_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DATA_SAFE_STATUS_ENUM =
[ DATA_SAFE_STATUS_REGISTERING = 'REGISTERING'.freeze, DATA_SAFE_STATUS_REGISTERED = 'REGISTERED'.freeze, DATA_SAFE_STATUS_DEREGISTERING = 'DEREGISTERING'.freeze, DATA_SAFE_STATUS_NOT_REGISTERED = 'NOT_REGISTERED'.freeze, DATA_SAFE_STATUS_FAILED = 'FAILED'.freeze, DATA_SAFE_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- OPERATIONS_INSIGHTS_STATUS_ENUM =
[ OPERATIONS_INSIGHTS_STATUS_ENABLING = 'ENABLING'.freeze, OPERATIONS_INSIGHTS_STATUS_ENABLED = 'ENABLED'.freeze, OPERATIONS_INSIGHTS_STATUS_DISABLING = 'DISABLING'.freeze, OPERATIONS_INSIGHTS_STATUS_NOT_ENABLED = 'NOT_ENABLED'.freeze, OPERATIONS_INSIGHTS_STATUS_FAILED_ENABLING = 'FAILED_ENABLING'.freeze, OPERATIONS_INSIGHTS_STATUS_FAILED_DISABLING = 'FAILED_DISABLING'.freeze, OPERATIONS_INSIGHTS_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- OPEN_MODE_ENUM =
[ OPEN_MODE_READ_ONLY = 'READ_ONLY'.freeze, OPEN_MODE_READ_WRITE = 'READ_WRITE'.freeze, OPEN_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- REFRESHABLE_STATUS_ENUM =
[ REFRESHABLE_STATUS_REFRESHING = 'REFRESHING'.freeze, REFRESHABLE_STATUS_NOT_REFRESHING = 'NOT_REFRESHING'.freeze, REFRESHABLE_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- REFRESHABLE_MODE_ENUM =
[ REFRESHABLE_MODE_AUTOMATIC = 'AUTOMATIC'.freeze, REFRESHABLE_MODE_MANUAL = 'MANUAL'.freeze, REFRESHABLE_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PERMISSION_LEVEL_ENUM =
[ PERMISSION_LEVEL_RESTRICTED = 'RESTRICTED'.freeze, PERMISSION_LEVEL_UNRESTRICTED = 'UNRESTRICTED'.freeze, PERMISSION_LEVEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- ROLE_ENUM =
[ ROLE_PRIMARY = 'PRIMARY'.freeze, ROLE_STANDBY = 'STANDBY'.freeze, ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze, ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#apex_details ⇒ OCI::Database::Models::AutonomousDatabaseApex
Information about Autonomous Application Express.
-
#autonomous_container_database_id ⇒ String
The Autonomous Container Database [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
-
#available_upgrade_versions ⇒ Array<String>
List of Oracle Database versions available for a database upgrade.
- #backup_config ⇒ OCI::Database::Models::AutonomousDatabaseBackupConfig
-
#compartment_id ⇒ String
[Required] The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
-
#connection_strings ⇒ OCI::Database::Models::AutonomousDatabaseConnectionStrings
The connection string used to connect to the Autonomous Database.
- #connection_urls ⇒ OCI::Database::Models::AutonomousDatabaseConnectionUrls
-
#cpu_core_count ⇒ Integer
[Required] The number of OCPU cores to be made available to the database.
-
#data_safe_status ⇒ String
Status of the Data Safe registration for this Autonomous Database.
-
#data_storage_size_in_gbs ⇒ Integer
The quantity of data in the database, in gigabytes.
-
#data_storage_size_in_tbs ⇒ Integer
[Required] The quantity of data in the database, in terabytes.
-
#db_name ⇒ String
[Required] The database name.
-
#db_version ⇒ String
A valid Oracle Database version for Autonomous Database.
-
#db_workload ⇒ String
The Autonomous Database workload type.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
The user-friendly name for the Autonomous Database.
-
#failed_data_recovery_in_seconds ⇒ Integer
Indicates the number of seconds of data loss for a Data Guard failover.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#id ⇒ String
[Required] The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
-
#infrastructure_type ⇒ String
The infrastructure type this resource belongs to.
-
#is_access_control_enabled ⇒ BOOLEAN
Indicates if the database-level access control is enabled.
-
#is_auto_scaling_enabled ⇒ BOOLEAN
Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
-
#is_data_guard_enabled ⇒ BOOLEAN
Indicates whether the Autonomous Database has Data Guard enabled.
-
#is_dedicated ⇒ BOOLEAN
True if the database uses [dedicated Exadata infrastructure](docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm).
-
#is_free_tier ⇒ BOOLEAN
Indicates if this is an Always Free resource.
-
#is_preview ⇒ BOOLEAN
Indicates if the Autonomous Database version is a preview version.
-
#is_refreshable_clone ⇒ BOOLEAN
Indicates whether the Autonomous Database is a refreshable clone.
-
#key_store_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store.
-
#key_store_wallet_name ⇒ String
The wallet name for Oracle Key Vault.
-
#license_model ⇒ String
The Oracle license model that applies to the Oracle Autonomous Database.
-
#lifecycle_details ⇒ String
Information about the current lifecycle state.
-
#lifecycle_state ⇒ String
[Required] The current state of the Autonomous Database.
-
#nsg_ids ⇒ Array<String>
A list of the [OCIDs](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that this resource belongs to.
-
#open_mode ⇒ String
The ‘DATABASE OPEN` mode.
-
#operations_insights_status ⇒ String
Status of Operations Insights for this Autonomous Database.
-
#permission_level ⇒ String
The Autonomous Database permission level.
-
#private_endpoint ⇒ String
The private endpoint for the resource.
-
#private_endpoint_ip ⇒ String
The private endpoint Ip address for the resource.
-
#private_endpoint_label ⇒ String
The private endpoint label for the resource.
-
#refreshable_mode ⇒ String
The refresh mode of the clone.
-
#refreshable_status ⇒ String
The refresh status of the clone.
-
#role ⇒ String
The role of the Autonomous Data Guard-enabled Autonomous Container Database.
-
#service_console_url ⇒ String
The URL of the Service Console for the Autonomous Database.
-
#source_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that was cloned to create the current Autonomous Database.
- #standby_db ⇒ OCI::Database::Models::AutonomousDatabaseStandbySummary
-
#subnet_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the resource is associated with.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#time_created ⇒ DateTime
The date and time the Autonomous Database was created.
-
#time_deletion_of_free_autonomous_database ⇒ DateTime
The date and time the Always Free database will be automatically deleted because of inactivity.
-
#time_maintenance_begin ⇒ DateTime
The date and time when maintenance will begin.
-
#time_maintenance_end ⇒ DateTime
The date and time when maintenance will end.
-
#time_of_last_failover ⇒ DateTime
The timestamp of the last failover operation.
-
#time_of_last_refresh ⇒ DateTime
The date and time when last refresh happened.
-
#time_of_last_refresh_point ⇒ DateTime
The refresh point timestamp (UTC).
-
#time_of_last_switchover ⇒ DateTime
The timestamp of the last switchover operation for the Autonomous Database.
-
#time_of_next_refresh ⇒ DateTime
The date and time of next refresh.
-
#time_reclamation_of_free_autonomous_database ⇒ DateTime
The date and time the Always Free database will be stopped because of inactivity.
-
#used_data_storage_size_in_tbs ⇒ Integer
The amount of storage that has been used, in terabytes.
-
#whitelisted_ips ⇒ Array<String>
The client IP access control list (ACL).
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 = {}) ⇒ AutonomousDatabase
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 = {}) ⇒ AutonomousDatabase
Initializes the object
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 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 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 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/oci/database/models/autonomous_database.rb', line 590 def initialize(attributes = {}) return unless attributes.is_a?(Hash) self.id = attributes[:'id'] if attributes[:'id'] 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.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_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.db_name = attributes[:'dbName'] if attributes[:'dbName'] raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name') self.db_name = attributes[:'db_name'] if attributes[:'db_name'] self.is_free_tier = attributes[:'isFreeTier'] unless attributes[:'isFreeTier'].nil? self.is_free_tier = false if is_free_tier.nil? && !attributes.key?(:'isFreeTier') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :isFreeTier and :is_free_tier' if attributes.key?(:'isFreeTier') && attributes.key?(:'is_free_tier') self.is_free_tier = attributes[:'is_free_tier'] unless attributes[:'is_free_tier'].nil? self.is_free_tier = false if is_free_tier.nil? && !attributes.key?(:'isFreeTier') && !attributes.key?(:'is_free_tier') # rubocop:disable Style/StringLiterals 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.time_reclamation_of_free_autonomous_database = attributes[:'timeReclamationOfFreeAutonomousDatabase'] if attributes[:'timeReclamationOfFreeAutonomousDatabase'] raise 'You cannot provide both :timeReclamationOfFreeAutonomousDatabase and :time_reclamation_of_free_autonomous_database' if attributes.key?(:'timeReclamationOfFreeAutonomousDatabase') && attributes.key?(:'time_reclamation_of_free_autonomous_database') self.time_reclamation_of_free_autonomous_database = attributes[:'time_reclamation_of_free_autonomous_database'] if attributes[:'time_reclamation_of_free_autonomous_database'] self.time_deletion_of_free_autonomous_database = attributes[:'timeDeletionOfFreeAutonomousDatabase'] if attributes[:'timeDeletionOfFreeAutonomousDatabase'] raise 'You cannot provide both :timeDeletionOfFreeAutonomousDatabase and :time_deletion_of_free_autonomous_database' if attributes.key?(:'timeDeletionOfFreeAutonomousDatabase') && attributes.key?(:'time_deletion_of_free_autonomous_database') self.time_deletion_of_free_autonomous_database = attributes[:'time_deletion_of_free_autonomous_database'] if attributes[:'time_deletion_of_free_autonomous_database'] self.backup_config = attributes[:'backupConfig'] if attributes[:'backupConfig'] raise 'You cannot provide both :backupConfig and :backup_config' if attributes.key?(:'backupConfig') && attributes.key?(:'backup_config') self.backup_config = attributes[:'backup_config'] if attributes[:'backup_config'] 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.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs'] raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs') self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs'] self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs'] raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs') self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs'] self.infrastructure_type = attributes[:'infrastructureType'] if attributes[:'infrastructureType'] raise 'You cannot provide both :infrastructureType and :infrastructure_type' if attributes.key?(:'infrastructureType') && attributes.key?(:'infrastructure_type') self.infrastructure_type = attributes[:'infrastructure_type'] if attributes[:'infrastructure_type'] self.is_dedicated = attributes[:'isDedicated'] unless attributes[:'isDedicated'].nil? raise 'You cannot provide both :isDedicated and :is_dedicated' if attributes.key?(:'isDedicated') && attributes.key?(:'is_dedicated') self.is_dedicated = attributes[:'is_dedicated'] unless attributes[:'is_dedicated'].nil? self.autonomous_container_database_id = attributes[:'autonomousContainerDatabaseId'] if attributes[:'autonomousContainerDatabaseId'] raise 'You cannot provide both :autonomousContainerDatabaseId and :autonomous_container_database_id' if attributes.key?(:'autonomousContainerDatabaseId') && attributes.key?(:'autonomous_container_database_id') self.autonomous_container_database_id = attributes[:'autonomous_container_database_id'] if attributes[:'autonomous_container_database_id'] 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.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.service_console_url = attributes[:'serviceConsoleUrl'] if attributes[:'serviceConsoleUrl'] raise 'You cannot provide both :serviceConsoleUrl and :service_console_url' if attributes.key?(:'serviceConsoleUrl') && attributes.key?(:'service_console_url') self.service_console_url = attributes[:'service_console_url'] if attributes[:'service_console_url'] self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings'] raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings') self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings'] self.connection_urls = attributes[:'connectionUrls'] if attributes[:'connectionUrls'] raise 'You cannot provide both :connectionUrls and :connection_urls' if attributes.key?(:'connectionUrls') && attributes.key?(:'connection_urls') self.connection_urls = attributes[:'connection_urls'] if attributes[:'connection_urls'] self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel'] raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model') self.license_model = attributes[:'license_model'] if attributes[:'license_model'] self.used_data_storage_size_in_tbs = attributes[:'usedDataStorageSizeInTBs'] if attributes[:'usedDataStorageSizeInTBs'] raise 'You cannot provide both :usedDataStorageSizeInTBs and :used_data_storage_size_in_tbs' if attributes.key?(:'usedDataStorageSizeInTBs') && attributes.key?(:'used_data_storage_size_in_tbs') self.used_data_storage_size_in_tbs = attributes[:'used_data_storage_size_in_tbs'] if attributes[:'used_data_storage_size_in_tbs'] 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.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId'] raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id') self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id'] self.nsg_ids = attributes[:'nsgIds'] if attributes[:'nsgIds'] raise 'You cannot provide both :nsgIds and :nsg_ids' if attributes.key?(:'nsgIds') && attributes.key?(:'nsg_ids') self.nsg_ids = attributes[:'nsg_ids'] if attributes[:'nsg_ids'] self.private_endpoint = attributes[:'privateEndpoint'] if attributes[:'privateEndpoint'] raise 'You cannot provide both :privateEndpoint and :private_endpoint' if attributes.key?(:'privateEndpoint') && attributes.key?(:'private_endpoint') self.private_endpoint = attributes[:'private_endpoint'] if attributes[:'private_endpoint'] self.private_endpoint_label = attributes[:'privateEndpointLabel'] if attributes[:'privateEndpointLabel'] raise 'You cannot provide both :privateEndpointLabel and :private_endpoint_label' if attributes.key?(:'privateEndpointLabel') && attributes.key?(:'private_endpoint_label') self.private_endpoint_label = attributes[:'private_endpoint_label'] if attributes[:'private_endpoint_label'] self.private_endpoint_ip = attributes[:'privateEndpointIp'] if attributes[:'privateEndpointIp'] raise 'You cannot provide both :privateEndpointIp and :private_endpoint_ip' if attributes.key?(:'privateEndpointIp') && attributes.key?(:'private_endpoint_ip') self.private_endpoint_ip = attributes[:'private_endpoint_ip'] if attributes[:'private_endpoint_ip'] self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion'] raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version') self.db_version = attributes[:'db_version'] if attributes[:'db_version'] self.is_preview = attributes[:'isPreview'] unless attributes[:'isPreview'].nil? raise 'You cannot provide both :isPreview and :is_preview' if attributes.key?(:'isPreview') && attributes.key?(:'is_preview') self.is_preview = attributes[:'is_preview'] unless attributes[:'is_preview'].nil? self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload'] raise 'You cannot provide both :dbWorkload and :db_workload' if attributes.key?(:'dbWorkload') && attributes.key?(:'db_workload') self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload'] self.is_access_control_enabled = attributes[:'isAccessControlEnabled'] unless attributes[:'isAccessControlEnabled'].nil? raise 'You cannot provide both :isAccessControlEnabled and :is_access_control_enabled' if attributes.key?(:'isAccessControlEnabled') && attributes.key?(:'is_access_control_enabled') self.is_access_control_enabled = attributes[:'is_access_control_enabled'] unless attributes[:'is_access_control_enabled'].nil? self.whitelisted_ips = attributes[:'whitelistedIps'] if attributes[:'whitelistedIps'] raise 'You cannot provide both :whitelistedIps and :whitelisted_ips' if attributes.key?(:'whitelistedIps') && attributes.key?(:'whitelisted_ips') self.whitelisted_ips = attributes[:'whitelisted_ips'] if attributes[:'whitelisted_ips'] self.apex_details = attributes[:'apexDetails'] if attributes[:'apexDetails'] raise 'You cannot provide both :apexDetails and :apex_details' if attributes.key?(:'apexDetails') && attributes.key?(:'apex_details') self.apex_details = attributes[:'apex_details'] if attributes[:'apex_details'] self.is_auto_scaling_enabled = attributes[:'isAutoScalingEnabled'] unless attributes[:'isAutoScalingEnabled'].nil? raise 'You cannot provide both :isAutoScalingEnabled and :is_auto_scaling_enabled' if attributes.key?(:'isAutoScalingEnabled') && attributes.key?(:'is_auto_scaling_enabled') self.is_auto_scaling_enabled = attributes[:'is_auto_scaling_enabled'] unless attributes[:'is_auto_scaling_enabled'].nil? self.data_safe_status = attributes[:'dataSafeStatus'] if attributes[:'dataSafeStatus'] raise 'You cannot provide both :dataSafeStatus and :data_safe_status' if attributes.key?(:'dataSafeStatus') && attributes.key?(:'data_safe_status') self.data_safe_status = attributes[:'data_safe_status'] if attributes[:'data_safe_status'] self.operations_insights_status = attributes[:'operationsInsightsStatus'] if attributes[:'operationsInsightsStatus'] raise 'You cannot provide both :operationsInsightsStatus and :operations_insights_status' if attributes.key?(:'operationsInsightsStatus') && attributes.key?(:'operations_insights_status') self.operations_insights_status = attributes[:'operations_insights_status'] if attributes[:'operations_insights_status'] self.time_maintenance_begin = attributes[:'timeMaintenanceBegin'] if attributes[:'timeMaintenanceBegin'] raise 'You cannot provide both :timeMaintenanceBegin and :time_maintenance_begin' if attributes.key?(:'timeMaintenanceBegin') && attributes.key?(:'time_maintenance_begin') self.time_maintenance_begin = attributes[:'time_maintenance_begin'] if attributes[:'time_maintenance_begin'] self.time_maintenance_end = attributes[:'timeMaintenanceEnd'] if attributes[:'timeMaintenanceEnd'] raise 'You cannot provide both :timeMaintenanceEnd and :time_maintenance_end' if attributes.key?(:'timeMaintenanceEnd') && attributes.key?(:'time_maintenance_end') self.time_maintenance_end = attributes[:'time_maintenance_end'] if attributes[:'time_maintenance_end'] self.is_refreshable_clone = attributes[:'isRefreshableClone'] unless attributes[:'isRefreshableClone'].nil? raise 'You cannot provide both :isRefreshableClone and :is_refreshable_clone' if attributes.key?(:'isRefreshableClone') && attributes.key?(:'is_refreshable_clone') self.is_refreshable_clone = attributes[:'is_refreshable_clone'] unless attributes[:'is_refreshable_clone'].nil? self.time_of_last_refresh = attributes[:'timeOfLastRefresh'] if attributes[:'timeOfLastRefresh'] raise 'You cannot provide both :timeOfLastRefresh and :time_of_last_refresh' if attributes.key?(:'timeOfLastRefresh') && attributes.key?(:'time_of_last_refresh') self.time_of_last_refresh = attributes[:'time_of_last_refresh'] if attributes[:'time_of_last_refresh'] self.time_of_last_refresh_point = attributes[:'timeOfLastRefreshPoint'] if attributes[:'timeOfLastRefreshPoint'] raise 'You cannot provide both :timeOfLastRefreshPoint and :time_of_last_refresh_point' if attributes.key?(:'timeOfLastRefreshPoint') && attributes.key?(:'time_of_last_refresh_point') self.time_of_last_refresh_point = attributes[:'time_of_last_refresh_point'] if attributes[:'time_of_last_refresh_point'] self.time_of_next_refresh = attributes[:'timeOfNextRefresh'] if attributes[:'timeOfNextRefresh'] raise 'You cannot provide both :timeOfNextRefresh and :time_of_next_refresh' if attributes.key?(:'timeOfNextRefresh') && attributes.key?(:'time_of_next_refresh') self.time_of_next_refresh = attributes[:'time_of_next_refresh'] if attributes[:'time_of_next_refresh'] self.open_mode = attributes[:'openMode'] if attributes[:'openMode'] raise 'You cannot provide both :openMode and :open_mode' if attributes.key?(:'openMode') && attributes.key?(:'open_mode') self.open_mode = attributes[:'open_mode'] if attributes[:'open_mode'] self.refreshable_status = attributes[:'refreshableStatus'] if attributes[:'refreshableStatus'] raise 'You cannot provide both :refreshableStatus and :refreshable_status' if attributes.key?(:'refreshableStatus') && attributes.key?(:'refreshable_status') self.refreshable_status = attributes[:'refreshable_status'] if attributes[:'refreshable_status'] self.refreshable_mode = attributes[:'refreshableMode'] if attributes[:'refreshableMode'] raise 'You cannot provide both :refreshableMode and :refreshable_mode' if attributes.key?(:'refreshableMode') && attributes.key?(:'refreshable_mode') self.refreshable_mode = attributes[:'refreshable_mode'] if attributes[:'refreshable_mode'] self.source_id = attributes[:'sourceId'] if attributes[:'sourceId'] raise 'You cannot provide both :sourceId and :source_id' if attributes.key?(:'sourceId') && attributes.key?(:'source_id') self.source_id = attributes[:'source_id'] if attributes[:'source_id'] self. = attributes[:'permissionLevel'] if attributes[:'permissionLevel'] raise 'You cannot provide both :permissionLevel and :permission_level' if attributes.key?(:'permissionLevel') && attributes.key?(:'permission_level') self. = attributes[:'permission_level'] if attributes[:'permission_level'] self.time_of_last_switchover = attributes[:'timeOfLastSwitchover'] if attributes[:'timeOfLastSwitchover'] raise 'You cannot provide both :timeOfLastSwitchover and :time_of_last_switchover' if attributes.key?(:'timeOfLastSwitchover') && attributes.key?(:'time_of_last_switchover') self.time_of_last_switchover = attributes[:'time_of_last_switchover'] if attributes[:'time_of_last_switchover'] self.time_of_last_failover = attributes[:'timeOfLastFailover'] if attributes[:'timeOfLastFailover'] raise 'You cannot provide both :timeOfLastFailover and :time_of_last_failover' if attributes.key?(:'timeOfLastFailover') && attributes.key?(:'time_of_last_failover') self.time_of_last_failover = attributes[:'time_of_last_failover'] if attributes[:'time_of_last_failover'] self.is_data_guard_enabled = attributes[:'isDataGuardEnabled'] unless attributes[:'isDataGuardEnabled'].nil? raise 'You cannot provide both :isDataGuardEnabled and :is_data_guard_enabled' if attributes.key?(:'isDataGuardEnabled') && attributes.key?(:'is_data_guard_enabled') self.is_data_guard_enabled = attributes[:'is_data_guard_enabled'] unless attributes[:'is_data_guard_enabled'].nil? self.failed_data_recovery_in_seconds = attributes[:'failedDataRecoveryInSeconds'] if attributes[:'failedDataRecoveryInSeconds'] raise 'You cannot provide both :failedDataRecoveryInSeconds and :failed_data_recovery_in_seconds' if attributes.key?(:'failedDataRecoveryInSeconds') && attributes.key?(:'failed_data_recovery_in_seconds') self.failed_data_recovery_in_seconds = attributes[:'failed_data_recovery_in_seconds'] if attributes[:'failed_data_recovery_in_seconds'] self.standby_db = attributes[:'standbyDb'] if attributes[:'standbyDb'] raise 'You cannot provide both :standbyDb and :standby_db' if attributes.key?(:'standbyDb') && attributes.key?(:'standby_db') self.standby_db = attributes[:'standby_db'] if attributes[:'standby_db'] self.role = attributes[:'role'] if attributes[:'role'] self.available_upgrade_versions = attributes[:'availableUpgradeVersions'] if attributes[:'availableUpgradeVersions'] raise 'You cannot provide both :availableUpgradeVersions and :available_upgrade_versions' if attributes.key?(:'availableUpgradeVersions') && attributes.key?(:'available_upgrade_versions') self.available_upgrade_versions = attributes[:'available_upgrade_versions'] if attributes[:'available_upgrade_versions'] self.key_store_id = attributes[:'keyStoreId'] if attributes[:'keyStoreId'] raise 'You cannot provide both :keyStoreId and :key_store_id' if attributes.key?(:'keyStoreId') && attributes.key?(:'key_store_id') self.key_store_id = attributes[:'key_store_id'] if attributes[:'key_store_id'] self.key_store_wallet_name = attributes[:'keyStoreWalletName'] if attributes[:'keyStoreWalletName'] raise 'You cannot provide both :keyStoreWalletName and :key_store_wallet_name' if attributes.key?(:'keyStoreWalletName') && attributes.key?(:'key_store_wallet_name') self.key_store_wallet_name = attributes[:'key_store_wallet_name'] if attributes[:'key_store_wallet_name'] end |
Instance Attribute Details
#apex_details ⇒ OCI::Database::Models::AutonomousDatabaseApex
Information about Autonomous Application Express.
297 298 299 |
# File 'lib/oci/database/models/autonomous_database.rb', line 297 def apex_details @apex_details end |
#autonomous_container_database_id ⇒ String
The Autonomous Container Database [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
172 173 174 |
# File 'lib/oci/database/models/autonomous_database.rb', line 172 def autonomous_container_database_id @autonomous_container_database_id end |
#available_upgrade_versions ⇒ Array<String>
List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty.
381 382 383 |
# File 'lib/oci/database/models/autonomous_database.rb', line 381 def available_upgrade_versions @available_upgrade_versions end |
#backup_config ⇒ OCI::Database::Models::AutonomousDatabaseBackupConfig
147 148 149 |
# File 'lib/oci/database/models/autonomous_database.rb', line 147 def backup_config @backup_config end |
#compartment_id ⇒ String
[Required] The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
111 112 113 |
# File 'lib/oci/database/models/autonomous_database.rb', line 111 def compartment_id @compartment_id end |
#connection_strings ⇒ OCI::Database::Models::AutonomousDatabaseConnectionStrings
The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
188 189 190 |
# File 'lib/oci/database/models/autonomous_database.rb', line 188 def connection_strings @connection_strings end |
#connection_urls ⇒ OCI::Database::Models::AutonomousDatabaseConnectionUrls
191 192 193 |
# File 'lib/oci/database/models/autonomous_database.rb', line 191 def connection_urls @connection_urls end |
#cpu_core_count ⇒ Integer
[Required] The number of OCPU cores to be made available to the database.
151 152 153 |
# File 'lib/oci/database/models/autonomous_database.rb', line 151 def cpu_core_count @cpu_core_count end |
#data_safe_status ⇒ String
Status of the Data Safe registration for this Autonomous Database.
306 307 308 |
# File 'lib/oci/database/models/autonomous_database.rb', line 306 def data_safe_status @data_safe_status end |
#data_storage_size_in_gbs ⇒ Integer
The quantity of data in the database, in gigabytes.
159 160 161 |
# File 'lib/oci/database/models/autonomous_database.rb', line 159 def data_storage_size_in_gbs @data_storage_size_in_gbs end |
#data_storage_size_in_tbs ⇒ Integer
[Required] The quantity of data in the database, in terabytes.
155 156 157 |
# File 'lib/oci/database/models/autonomous_database.rb', line 155 def data_storage_size_in_tbs @data_storage_size_in_tbs end |
#db_name ⇒ String
[Required] The database name.
123 124 125 |
# File 'lib/oci/database/models/autonomous_database.rb', line 123 def db_name @db_name end |
#db_version ⇒ String
A valid Oracle Database version for Autonomous Database.
254 255 256 |
# File 'lib/oci/database/models/autonomous_database.rb', line 254 def db_version @db_version end |
#db_workload ⇒ String
The Autonomous Database workload type. The following values are valid:
-
OLTP - indicates an Autonomous Transaction Processing database
-
DW - indicates an Autonomous Data Warehouse database
-
AJD - indicates an Autonomous JSON Database
-
APEX - indicates an Autonomous Database with the Oracle Application Express (APEX) workload type.
268 269 270 |
# File 'lib/oci/database/models/autonomous_database.rb', line 268 def db_workload @db_workload 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](docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
217 218 219 |
# File 'lib/oci/database/models/autonomous_database.rb', line 217 def end |
#display_name ⇒ String
The user-friendly name for the Autonomous Database. The name does not have to be unique.
180 181 182 |
# File 'lib/oci/database/models/autonomous_database.rb', line 180 def display_name @display_name end |
#failed_data_recovery_in_seconds ⇒ Integer
Indicates the number of seconds of data loss for a Data Guard failover.
370 371 372 |
# File 'lib/oci/database/models/autonomous_database.rb', line 370 def failed_data_recovery_in_seconds @failed_data_recovery_in_seconds 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](docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
Example: ‘"Finance"`
211 212 213 |
# File 'lib/oci/database/models/autonomous_database.rb', line 211 def end |
#id ⇒ String
[Required] The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
107 108 109 |
# File 'lib/oci/database/models/autonomous_database.rb', line 107 def id @id end |
#infrastructure_type ⇒ String
The infrastructure type this resource belongs to.
163 164 165 |
# File 'lib/oci/database/models/autonomous_database.rb', line 163 def infrastructure_type @infrastructure_type end |
#is_access_control_enabled ⇒ BOOLEAN
Indicates if the database-level access control is enabled. If disabled, database access is defined by the network security rules. If enabled, database access is restricted to the IP addresses defined by the rules specified with the whitelistedIps property. While specifying whitelistedIps rules is optional,
if database-level access control is enabled and no rules are specified, the database will become inaccessible. The rules can be added later using the `UpdateAutonomousDatabase` API operation or edit option in console.
When creating a database clone, the desired access control setting should be specified. By default, database-level access control will be disabled for the clone.
This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform.
279 280 281 |
# File 'lib/oci/database/models/autonomous_database.rb', line 279 def is_access_control_enabled @is_access_control_enabled end |
#is_auto_scaling_enabled ⇒ BOOLEAN
Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
302 303 304 |
# File 'lib/oci/database/models/autonomous_database.rb', line 302 def is_auto_scaling_enabled @is_auto_scaling_enabled end |
#is_data_guard_enabled ⇒ BOOLEAN
Indicates whether the Autonomous Database has Data Guard enabled.
366 367 368 |
# File 'lib/oci/database/models/autonomous_database.rb', line 366 def is_data_guard_enabled @is_data_guard_enabled end |
#is_dedicated ⇒ BOOLEAN
True if the database uses [dedicated Exadata infrastructure](docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm).
168 169 170 |
# File 'lib/oci/database/models/autonomous_database.rb', line 168 def is_dedicated @is_dedicated end |
#is_free_tier ⇒ BOOLEAN
Indicates if this is an Always Free resource. The default value is false. Note that Always Free Autonomous Databases have 1 CPU and 20GB of memory. For Always Free databases, memory and CPU cannot be scaled.
128 129 130 |
# File 'lib/oci/database/models/autonomous_database.rb', line 128 def is_free_tier @is_free_tier end |
#is_preview ⇒ BOOLEAN
Indicates if the Autonomous Database version is a preview version.
258 259 260 |
# File 'lib/oci/database/models/autonomous_database.rb', line 258 def is_preview @is_preview end |
#is_refreshable_clone ⇒ BOOLEAN
Indicates whether the Autonomous Database is a refreshable clone.
322 323 324 |
# File 'lib/oci/database/models/autonomous_database.rb', line 322 def is_refreshable_clone @is_refreshable_clone end |
#key_store_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store.
385 386 387 |
# File 'lib/oci/database/models/autonomous_database.rb', line 385 def key_store_id @key_store_id end |
#key_store_wallet_name ⇒ String
The wallet name for Oracle Key Vault.
389 390 391 |
# File 'lib/oci/database/models/autonomous_database.rb', line 389 def key_store_wallet_name @key_store_wallet_name end |
#license_model ⇒ String
The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. License Included allows you to subscribe to new Oracle Database software licenses and the Database service. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of BRING_YOUR_OWN_LICENSE.
199 200 201 |
# File 'lib/oci/database/models/autonomous_database.rb', line 199 def license_model @license_model end |
#lifecycle_details ⇒ String
Information about the current lifecycle state.
119 120 121 |
# File 'lib/oci/database/models/autonomous_database.rb', line 119 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the Autonomous Database.
115 116 117 |
# File 'lib/oci/database/models/autonomous_database.rb', line 115 def lifecycle_state @lifecycle_state end |
#nsg_ids ⇒ Array<String>
A list of the [OCIDs](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that this resource belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). **NsgIds restrictions:**
-
Autonomous Databases with private access require at least 1 Network Security Group (NSG). The nsgIds array cannot be empty.
238 239 240 |
# File 'lib/oci/database/models/autonomous_database.rb', line 238 def nsg_ids @nsg_ids end |
#open_mode ⇒ String
The ‘DATABASE OPEN` mode. You can open the database in READ_ONLY or READ_WRITE mode.
338 339 340 |
# File 'lib/oci/database/models/autonomous_database.rb', line 338 def open_mode @open_mode end |
#operations_insights_status ⇒ String
Status of Operations Insights for this Autonomous Database.
310 311 312 |
# File 'lib/oci/database/models/autonomous_database.rb', line 310 def operations_insights_status @operations_insights_status end |
#permission_level ⇒ String
The Autonomous Database permission level. Restricted mode allows access only to admin users.
354 355 356 |
# File 'lib/oci/database/models/autonomous_database.rb', line 354 def end |
#private_endpoint ⇒ String
The private endpoint for the resource.
242 243 244 |
# File 'lib/oci/database/models/autonomous_database.rb', line 242 def private_endpoint @private_endpoint end |
#private_endpoint_ip ⇒ String
The private endpoint Ip address for the resource.
250 251 252 |
# File 'lib/oci/database/models/autonomous_database.rb', line 250 def private_endpoint_ip @private_endpoint_ip end |
#private_endpoint_label ⇒ String
The private endpoint label for the resource. Setting this to an empty string, after the private endpoint database gets created, will change the same private endpoint database to the public endpoint database.
246 247 248 |
# File 'lib/oci/database/models/autonomous_database.rb', line 246 def private_endpoint_label @private_endpoint_label end |
#refreshable_mode ⇒ String
The refresh mode of the clone. AUTOMATIC indicates that the clone is automatically being refreshed with data from the source Autonomous Database.
346 347 348 |
# File 'lib/oci/database/models/autonomous_database.rb', line 346 def refreshable_mode @refreshable_mode end |
#refreshable_status ⇒ String
The refresh status of the clone. REFRESHING indicates that the clone is currently being refreshed with data from the source Autonomous Database.
342 343 344 |
# File 'lib/oci/database/models/autonomous_database.rb', line 342 def refreshable_status @refreshable_status end |
#role ⇒ String
The role of the Autonomous Data Guard-enabled Autonomous Container Database.
377 378 379 |
# File 'lib/oci/database/models/autonomous_database.rb', line 377 def role @role end |
#service_console_url ⇒ String
The URL of the Service Console for the Autonomous Database.
184 185 186 |
# File 'lib/oci/database/models/autonomous_database.rb', line 184 def service_console_url @service_console_url end |
#source_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that was cloned to create the current Autonomous Database.
350 351 352 |
# File 'lib/oci/database/models/autonomous_database.rb', line 350 def source_id @source_id end |
#standby_db ⇒ OCI::Database::Models::AutonomousDatabaseStandbySummary
373 374 375 |
# File 'lib/oci/database/models/autonomous_database.rb', line 373 def standby_db @standby_db end |
#subnet_id ⇒ String
The [OCID](docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the resource is associated with.
**Subnet Restrictions:**
-
For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
-
For Exadata and virtual machine 2-node RAC systems, do not use a subnet that overlaps with 192.168.128.0/20.
-
For Autonomous Database, setting this will disable public secure access to the database.
These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and the backup subnet.
231 232 233 |
# File 'lib/oci/database/models/autonomous_database.rb', line 231 def subnet_id @subnet_id 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](docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
134 135 136 |
# File 'lib/oci/database/models/autonomous_database.rb', line 134 def end |
#time_created ⇒ DateTime
The date and time the Autonomous Database was created.
176 177 178 |
# File 'lib/oci/database/models/autonomous_database.rb', line 176 def time_created @time_created end |
#time_deletion_of_free_autonomous_database ⇒ DateTime
The date and time the Always Free database will be automatically deleted because of inactivity. If the database is in the STOPPED state and without activity until this time, it will be deleted.
144 145 146 |
# File 'lib/oci/database/models/autonomous_database.rb', line 144 def time_deletion_of_free_autonomous_database @time_deletion_of_free_autonomous_database end |
#time_maintenance_begin ⇒ DateTime
The date and time when maintenance will begin.
314 315 316 |
# File 'lib/oci/database/models/autonomous_database.rb', line 314 def time_maintenance_begin @time_maintenance_begin end |
#time_maintenance_end ⇒ DateTime
The date and time when maintenance will end.
318 319 320 |
# File 'lib/oci/database/models/autonomous_database.rb', line 318 def time_maintenance_end @time_maintenance_end end |
#time_of_last_failover ⇒ DateTime
The timestamp of the last failover operation.
362 363 364 |
# File 'lib/oci/database/models/autonomous_database.rb', line 362 def time_of_last_failover @time_of_last_failover end |
#time_of_last_refresh ⇒ DateTime
The date and time when last refresh happened.
326 327 328 |
# File 'lib/oci/database/models/autonomous_database.rb', line 326 def time_of_last_refresh @time_of_last_refresh end |
#time_of_last_refresh_point ⇒ DateTime
The refresh point timestamp (UTC). The refresh point is the time to which the database was most recently refreshed. Data created after the refresh point is not included in the refresh.
330 331 332 |
# File 'lib/oci/database/models/autonomous_database.rb', line 330 def time_of_last_refresh_point @time_of_last_refresh_point end |
#time_of_last_switchover ⇒ DateTime
The timestamp of the last switchover operation for the Autonomous Database.
358 359 360 |
# File 'lib/oci/database/models/autonomous_database.rb', line 358 def time_of_last_switchover @time_of_last_switchover end |
#time_of_next_refresh ⇒ DateTime
The date and time of next refresh.
334 335 336 |
# File 'lib/oci/database/models/autonomous_database.rb', line 334 def time_of_next_refresh @time_of_next_refresh end |
#time_reclamation_of_free_autonomous_database ⇒ DateTime
The date and time the Always Free database will be stopped because of inactivity. If this time is reached without any database activity, the database will automatically be put into the STOPPED state.
139 140 141 |
# File 'lib/oci/database/models/autonomous_database.rb', line 139 def time_reclamation_of_free_autonomous_database @time_reclamation_of_free_autonomous_database end |
#used_data_storage_size_in_tbs ⇒ Integer
The amount of storage that has been used, in terabytes.
203 204 205 |
# File 'lib/oci/database/models/autonomous_database.rb', line 203 def used_data_storage_size_in_tbs @used_data_storage_size_in_tbs end |
#whitelisted_ips ⇒ Array<String>
The client IP access control list (ACL). This feature is available for autonomous databases on [shared Exadata infrastructure](docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) and on Exadata Cloud@Customer. Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance.
For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. Example: ‘["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.<unique_id>","ocid1.vcn.oc1.sea.<unique_id1>;1.1.1.1","ocid1.vcn.oc1.sea.<unique_id2>;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]`
For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry.
293 294 295 |
# File 'lib/oci/database/models/autonomous_database.rb', line 293 def whitelisted_ips @whitelisted_ips end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/database/models/autonomous_database.rb', line 392 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'compartment_id': :'compartmentId', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'db_name': :'dbName', 'is_free_tier': :'isFreeTier', 'system_tags': :'systemTags', 'time_reclamation_of_free_autonomous_database': :'timeReclamationOfFreeAutonomousDatabase', 'time_deletion_of_free_autonomous_database': :'timeDeletionOfFreeAutonomousDatabase', 'backup_config': :'backupConfig', 'cpu_core_count': :'cpuCoreCount', 'data_storage_size_in_tbs': :'dataStorageSizeInTBs', 'data_storage_size_in_gbs': :'dataStorageSizeInGBs', 'infrastructure_type': :'infrastructureType', 'is_dedicated': :'isDedicated', 'autonomous_container_database_id': :'autonomousContainerDatabaseId', 'time_created': :'timeCreated', 'display_name': :'displayName', 'service_console_url': :'serviceConsoleUrl', 'connection_strings': :'connectionStrings', 'connection_urls': :'connectionUrls', 'license_model': :'licenseModel', 'used_data_storage_size_in_tbs': :'usedDataStorageSizeInTBs', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'subnet_id': :'subnetId', 'nsg_ids': :'nsgIds', 'private_endpoint': :'privateEndpoint', 'private_endpoint_label': :'privateEndpointLabel', 'private_endpoint_ip': :'privateEndpointIp', 'db_version': :'dbVersion', 'is_preview': :'isPreview', 'db_workload': :'dbWorkload', 'is_access_control_enabled': :'isAccessControlEnabled', 'whitelisted_ips': :'whitelistedIps', 'apex_details': :'apexDetails', 'is_auto_scaling_enabled': :'isAutoScalingEnabled', 'data_safe_status': :'dataSafeStatus', 'operations_insights_status': :'operationsInsightsStatus', 'time_maintenance_begin': :'timeMaintenanceBegin', 'time_maintenance_end': :'timeMaintenanceEnd', 'is_refreshable_clone': :'isRefreshableClone', 'time_of_last_refresh': :'timeOfLastRefresh', 'time_of_last_refresh_point': :'timeOfLastRefreshPoint', 'time_of_next_refresh': :'timeOfNextRefresh', 'open_mode': :'openMode', 'refreshable_status': :'refreshableStatus', 'refreshable_mode': :'refreshableMode', 'source_id': :'sourceId', 'permission_level': :'permissionLevel', 'time_of_last_switchover': :'timeOfLastSwitchover', 'time_of_last_failover': :'timeOfLastFailover', 'is_data_guard_enabled': :'isDataGuardEnabled', 'failed_data_recovery_in_seconds': :'failedDataRecoveryInSeconds', 'standby_db': :'standbyDb', 'role': :'role', 'available_upgrade_versions': :'availableUpgradeVersions', 'key_store_id': :'keyStoreId', 'key_store_wallet_name': :'keyStoreWalletName' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 515 516 517 518 519 520 521 522 523 |
# File 'lib/oci/database/models/autonomous_database.rb', line 459 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'compartment_id': :'String', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'db_name': :'String', 'is_free_tier': :'BOOLEAN', 'system_tags': :'Hash<String, Hash<String, Object>>', 'time_reclamation_of_free_autonomous_database': :'DateTime', 'time_deletion_of_free_autonomous_database': :'DateTime', 'backup_config': :'OCI::Database::Models::AutonomousDatabaseBackupConfig', 'cpu_core_count': :'Integer', 'data_storage_size_in_tbs': :'Integer', 'data_storage_size_in_gbs': :'Integer', 'infrastructure_type': :'String', 'is_dedicated': :'BOOLEAN', 'autonomous_container_database_id': :'String', 'time_created': :'DateTime', 'display_name': :'String', 'service_console_url': :'String', 'connection_strings': :'OCI::Database::Models::AutonomousDatabaseConnectionStrings', 'connection_urls': :'OCI::Database::Models::AutonomousDatabaseConnectionUrls', 'license_model': :'String', 'used_data_storage_size_in_tbs': :'Integer', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'subnet_id': :'String', 'nsg_ids': :'Array<String>', 'private_endpoint': :'String', 'private_endpoint_label': :'String', 'private_endpoint_ip': :'String', 'db_version': :'String', 'is_preview': :'BOOLEAN', 'db_workload': :'String', 'is_access_control_enabled': :'BOOLEAN', 'whitelisted_ips': :'Array<String>', 'apex_details': :'OCI::Database::Models::AutonomousDatabaseApex', 'is_auto_scaling_enabled': :'BOOLEAN', 'data_safe_status': :'String', 'operations_insights_status': :'String', 'time_maintenance_begin': :'DateTime', 'time_maintenance_end': :'DateTime', 'is_refreshable_clone': :'BOOLEAN', 'time_of_last_refresh': :'DateTime', 'time_of_last_refresh_point': :'DateTime', 'time_of_next_refresh': :'DateTime', 'open_mode': :'String', 'refreshable_status': :'String', 'refreshable_mode': :'String', 'source_id': :'String', 'permission_level': :'String', 'time_of_last_switchover': :'DateTime', 'time_of_last_failover': :'DateTime', 'is_data_guard_enabled': :'BOOLEAN', 'failed_data_recovery_in_seconds': :'Integer', 'standby_db': :'OCI::Database::Models::AutonomousDatabaseStandbySummary', 'role': :'String', 'available_upgrade_versions': :'Array<String>', 'key_store_id': :'String', 'key_store_wallet_name': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1092 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && compartment_id == other.compartment_id && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && db_name == other.db_name && is_free_tier == other.is_free_tier && == other. && time_reclamation_of_free_autonomous_database == other.time_reclamation_of_free_autonomous_database && time_deletion_of_free_autonomous_database == other.time_deletion_of_free_autonomous_database && backup_config == other.backup_config && cpu_core_count == other.cpu_core_count && data_storage_size_in_tbs == other.data_storage_size_in_tbs && data_storage_size_in_gbs == other.data_storage_size_in_gbs && infrastructure_type == other.infrastructure_type && is_dedicated == other.is_dedicated && autonomous_container_database_id == other.autonomous_container_database_id && time_created == other.time_created && display_name == other.display_name && service_console_url == other.service_console_url && connection_strings == other.connection_strings && connection_urls == other.connection_urls && license_model == other.license_model && used_data_storage_size_in_tbs == other.used_data_storage_size_in_tbs && == other. && == other. && subnet_id == other.subnet_id && nsg_ids == other.nsg_ids && private_endpoint == other.private_endpoint && private_endpoint_label == other.private_endpoint_label && private_endpoint_ip == other.private_endpoint_ip && db_version == other.db_version && is_preview == other.is_preview && db_workload == other.db_workload && is_access_control_enabled == other.is_access_control_enabled && whitelisted_ips == other.whitelisted_ips && apex_details == other.apex_details && is_auto_scaling_enabled == other.is_auto_scaling_enabled && data_safe_status == other.data_safe_status && operations_insights_status == other.operations_insights_status && time_maintenance_begin == other.time_maintenance_begin && time_maintenance_end == other.time_maintenance_end && is_refreshable_clone == other.is_refreshable_clone && time_of_last_refresh == other.time_of_last_refresh && time_of_last_refresh_point == other.time_of_last_refresh_point && time_of_next_refresh == other.time_of_next_refresh && open_mode == other.open_mode && refreshable_status == other.refreshable_status && refreshable_mode == other.refreshable_mode && source_id == other.source_id && == other. && time_of_last_switchover == other.time_of_last_switchover && time_of_last_failover == other.time_of_last_failover && is_data_guard_enabled == other.is_data_guard_enabled && failed_data_recovery_in_seconds == other.failed_data_recovery_in_seconds && standby_db == other.standby_db && role == other.role && available_upgrade_versions == other.available_upgrade_versions && key_store_id == other.key_store_id && key_store_wallet_name == other.key_store_wallet_name end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1180 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
1160 1161 1162 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1160 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1169 1170 1171 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1169 def hash [id, compartment_id, lifecycle_state, lifecycle_details, db_name, is_free_tier, , time_reclamation_of_free_autonomous_database, time_deletion_of_free_autonomous_database, backup_config, cpu_core_count, data_storage_size_in_tbs, data_storage_size_in_gbs, infrastructure_type, is_dedicated, autonomous_container_database_id, time_created, display_name, service_console_url, connection_strings, connection_urls, license_model, used_data_storage_size_in_tbs, , , subnet_id, nsg_ids, private_endpoint, private_endpoint_label, private_endpoint_ip, db_version, is_preview, db_workload, is_access_control_enabled, whitelisted_ips, apex_details, is_auto_scaling_enabled, data_safe_status, operations_insights_status, time_maintenance_begin, time_maintenance_end, is_refreshable_clone, time_of_last_refresh, time_of_last_refresh_point, time_of_next_refresh, open_mode, refreshable_status, refreshable_mode, source_id, , time_of_last_switchover, time_of_last_failover, is_data_guard_enabled, failed_data_recovery_in_seconds, standby_db, role, available_upgrade_versions, key_store_id, key_store_wallet_name].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1213 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
1207 1208 1209 |
# File 'lib/oci/database/models/autonomous_database.rb', line 1207 def to_s to_hash.to_s end |