oci 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/auth/federation_client.rb +4 -4
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +22 -16
- data/lib/oci/autoscaling/auto_scaling_client.rb +774 -0
- data/lib/oci/autoscaling/auto_scaling_client_composite_operations.rb +24 -0
- data/lib/oci/autoscaling/autoscaling.rb +38 -0
- data/lib/oci/autoscaling/models/action.rb +182 -0
- data/lib/oci/autoscaling/models/auto_scaling_configuration.rb +282 -0
- data/lib/oci/autoscaling/models/auto_scaling_configuration_summary.rb +234 -0
- data/lib/oci/autoscaling/models/auto_scaling_policy.rb +222 -0
- data/lib/oci/autoscaling/models/auto_scaling_policy_summary.rb +179 -0
- data/lib/oci/autoscaling/models/capacity.rb +170 -0
- data/lib/oci/autoscaling/models/condition.rb +186 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +256 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_policy_details.rb +196 -0
- data/lib/oci/autoscaling/models/create_condition_details.rb +176 -0
- data/lib/oci/autoscaling/models/create_threshold_policy_details.rb +166 -0
- data/lib/oci/autoscaling/models/instance_pool_resource.rb +148 -0
- data/lib/oci/autoscaling/models/metric.rb +186 -0
- data/lib/oci/autoscaling/models/resource.rb +177 -0
- data/lib/oci/autoscaling/models/threshold.rb +188 -0
- data/lib/oci/autoscaling/models/threshold_policy.rb +173 -0
- data/lib/oci/autoscaling/models/update_auto_scaling_configuration_details.rb +219 -0
- data/lib/oci/autoscaling/models/update_auto_scaling_policy_details.rb +194 -0
- data/lib/oci/autoscaling/models/update_condition_details.rb +176 -0
- data/lib/oci/autoscaling/models/update_threshold_policy_details.rb +164 -0
- data/lib/oci/autoscaling/util.rb +2 -0
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +1 -1
- data/lib/oci/core/compute_management_client.rb +135 -1
- data/lib/oci/core/compute_management_client_composite_operations.rb +80 -0
- data/lib/oci/core/core.rb +8 -0
- data/lib/oci/core/models/attach_load_balancer_details.rb +191 -0
- data/lib/oci/core/models/create_instance_pool_details.rb +19 -4
- data/lib/oci/core/models/detach_load_balancer_details.rb +167 -0
- data/lib/oci/core/models/image.rb +14 -1
- data/lib/oci/core/models/instance.rb +18 -2
- data/lib/oci/core/models/instance_agent_config.rb +154 -0
- data/lib/oci/core/models/instance_agent_features.rb +154 -0
- data/lib/oci/core/models/instance_pool.rb +19 -4
- data/lib/oci/core/models/instance_pool_instance_load_balancer_backend.rb +219 -0
- data/lib/oci/core/models/instance_pool_load_balancer_attachment.rb +253 -0
- data/lib/oci/core/models/instance_summary.rb +19 -4
- data/lib/oci/core/models/launch_instance_agent_config_details.rb +155 -0
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/update_instance_agent_config_details.rb +154 -0
- data/lib/oci/core/models/update_instance_details.rb +16 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database_client.rb +12 -14
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +3 -1
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +3 -1
- data/lib/oci/database/models/create_data_guard_association_details.rb +2 -7
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +4 -1
- data/lib/oci/database/models/database_summary.rb +1 -1
- data/lib/oci/database/models/db_node.rb +15 -1
- data/lib/oci/database/models/db_node_summary.rb +15 -1
- data/lib/oci/database/models/db_system.rb +15 -1
- data/lib/oci/database/models/db_system_summary.rb +15 -1
- data/lib/oci/database/models/db_version_summary.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +33 -2
- data/lib/oci/database/models/launch_db_system_details.rb +5 -1
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +5 -1
- data/lib/oci/database/models/update_db_system_details.rb +1 -1
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +468 -12
- data/lib/oci/identity/identity_client_composite_operations.rb +79 -0
- data/lib/oci/identity/models/change_tag_namespace_compartment_detail.rb +154 -0
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -1
- data/lib/oci/identity/models/mfa_totp_device.rb +279 -0
- data/lib/oci/identity/models/mfa_totp_device_summary.rb +267 -0
- data/lib/oci/identity/models/mfa_totp_token.rb +155 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +1 -1
- data/lib/oci/identity/models/user.rb +18 -4
- data/lib/oci/monitoring/models/aggregated_datapoint.rb +166 -0
- data/lib/oci/monitoring/models/alarm.rb +538 -0
- data/lib/oci/monitoring/models/alarm_history_collection.rb +183 -0
- data/lib/oci/monitoring/models/alarm_history_entry.rb +187 -0
- data/lib/oci/monitoring/models/alarm_status_summary.rb +277 -0
- data/lib/oci/monitoring/models/alarm_summary.rb +386 -0
- data/lib/oci/monitoring/models/create_alarm_details.rb +423 -0
- data/lib/oci/monitoring/models/datapoint.rb +179 -0
- data/lib/oci/monitoring/models/failed_metric_record.rb +166 -0
- data/lib/oci/monitoring/models/list_metrics_details.rb +271 -0
- data/lib/oci/monitoring/models/metric.rb +197 -0
- data/lib/oci/monitoring/models/metric_data.rb +243 -0
- data/lib/oci/monitoring/models/metric_data_details.rb +227 -0
- data/lib/oci/monitoring/models/post_metric_data_details.rb +194 -0
- data/lib/oci/monitoring/models/post_metric_data_response_details.rb +170 -0
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +229 -0
- data/lib/oci/monitoring/models/suppression.rb +196 -0
- data/lib/oci/monitoring/models/update_alarm_details.rb +423 -0
- data/lib/oci/monitoring/monitoring.rb +37 -0
- data/lib/oci/monitoring/monitoring_client.rb +923 -0
- data/lib/oci/monitoring/monitoring_client_composite_operations.rb +145 -0
- data/lib/oci/monitoring/util.rb +2 -0
- data/lib/oci/ons/models/backoff_retry_policy.rb +192 -0
- data/lib/oci/ons/models/confirmation_result.rb +221 -0
- data/lib/oci/ons/models/create_subscription_details.rb +238 -0
- data/lib/oci/ons/models/create_topic_details.rb +209 -0
- data/lib/oci/ons/models/delivery_policy.rb +153 -0
- data/lib/oci/ons/models/message_details.rb +163 -0
- data/lib/oci/ons/models/notification_topic.rb +302 -0
- data/lib/oci/ons/models/notification_topic_summary.rb +303 -0
- data/lib/oci/ons/models/publish_result.rb +168 -0
- data/lib/oci/ons/models/subscription.rb +273 -0
- data/lib/oci/ons/models/subscription_summary.rb +300 -0
- data/lib/oci/ons/models/topic_attributes_details.rb +184 -0
- data/lib/oci/ons/models/update_subscription_details.rb +188 -0
- data/lib/oci/ons/notification_control_plane_client.rb +463 -0
- data/lib/oci/ons/notification_control_plane_client_composite_operations.rb +24 -0
- data/lib/oci/ons/notification_data_plane_client.rb +680 -0
- data/lib/oci/ons/notification_data_plane_client_composite_operations.rb +104 -0
- data/lib/oci/ons/ons.rb +33 -0
- data/lib/oci/ons/util.rb +2 -0
- data/lib/oci/regions.rb +5 -0
- data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +189 -0
- data/lib/oci/resource_manager/models/config_source.rb +208 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +187 -0
- data/lib/oci/resource_manager/models/create_job_details.rb +225 -0
- data/lib/oci/resource_manager/models/create_stack_details.rb +239 -0
- data/lib/oci/resource_manager/models/create_zip_upload_config_source_details.rb +166 -0
- data/lib/oci/resource_manager/models/failure_details.rb +185 -0
- data/lib/oci/resource_manager/models/job.rb +399 -0
- data/lib/oci/resource_manager/models/job_summary.rb +311 -0
- data/lib/oci/resource_manager/models/log_entry.rb +225 -0
- data/lib/oci/resource_manager/models/stack.rb +305 -0
- data/lib/oci/resource_manager/models/stack_summary.rb +249 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +184 -0
- data/lib/oci/resource_manager/models/update_job_details.rb +188 -0
- data/lib/oci/resource_manager/models/update_stack_details.rb +225 -0
- data/lib/oci/resource_manager/models/update_zip_upload_config_source_details.rb +164 -0
- data/lib/oci/resource_manager/models/zip_upload_config_source.rb +149 -0
- data/lib/oci/resource_manager/resource_manager.rb +36 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +1264 -0
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +263 -0
- data/lib/oci/resource_manager/util.rb +2 -0
- data/lib/oci/version.rb +1 -1
- metadata +100 -2
@@ -94,7 +94,7 @@ module OCI
|
|
94
94
|
|
95
95
|
raise 'A region must be specified.' unless @region
|
96
96
|
|
97
|
-
@endpoint = OCI::Regions.
|
97
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://iaas.{region}.{secondLevelDomain}') + '/20160918'
|
98
98
|
logger.info "VirtualNetworkClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
99
99
|
end
|
100
100
|
|
@@ -94,7 +94,7 @@ module OCI
|
|
94
94
|
|
95
95
|
raise 'A region must be specified.' unless @region
|
96
96
|
|
97
|
-
@endpoint = OCI::Regions.
|
97
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://database.{region}.{secondLevelDomain}') + '/20160918'
|
98
98
|
logger.info "DatabaseClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
99
99
|
end
|
100
100
|
|
@@ -667,21 +667,19 @@ module OCI
|
|
667
667
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
668
668
|
|
669
669
|
|
670
|
-
# Performs
|
670
|
+
# Performs one of the following power actions on the specified DB node:
|
671
|
+
# - start - power on
|
672
|
+
# - stop - power off
|
673
|
+
# - softreset - ACPI shutdown and power on
|
674
|
+
# - reset - power off and power on
|
671
675
|
#
|
672
|
-
# **
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
# **softreset** - ACPI shutdown and power on
|
677
|
-
#
|
678
|
-
# **reset** - power off and power on
|
679
|
-
#
|
680
|
-
# Note that the **stop** state has no effect on the resources you consume.
|
681
|
-
# Billing continues for DB Nodes that you stop, and related resources continue
|
676
|
+
# **Note:** Stopping a node affects billing differently, depending on the type of DB system:
|
677
|
+
# *Bare metal and Exadata DB systems* - The _stop_ state has no effect on the resources you consume.
|
678
|
+
# Billing continues for DB nodes that you stop, and related resources continue
|
682
679
|
# to apply against any relevant quotas. You must terminate the DB system
|
683
680
|
# ({#terminate_db_system terminate_db_system})
|
684
681
|
# to remove its resources from billing and quotas.
|
682
|
+
# *Virtual machine DB systems* - Stopping a node stops billing for all OCPUs associated with that node, and billing resumes when you restart the node.
|
685
683
|
#
|
686
684
|
# @param [String] db_node_id The database node [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
687
685
|
# @param [String] action The action to perform on the DB Node.
|
@@ -2793,7 +2791,7 @@ module OCI
|
|
2793
2791
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2794
2792
|
|
2795
2793
|
|
2796
|
-
# Gets a list of database homes in the specified DB system and compartment. A database home is a directory where Oracle
|
2794
|
+
# Gets a list of database homes in the specified DB system and compartment. A database home is a directory where Oracle Database software is installed.
|
2797
2795
|
#
|
2798
2796
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
2799
2797
|
# @param [String] db_system_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
@@ -3209,7 +3207,7 @@ module OCI
|
|
3209
3207
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3210
3208
|
|
3211
3209
|
|
3212
|
-
# Gets a list of supported Oracle
|
3210
|
+
# Gets a list of supported Oracle Database versions.
|
3213
3211
|
# @param [String] compartment_id The compartment [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
3214
3212
|
# @param [Hash] opts the optional parameters
|
3215
3213
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
@@ -19,7 +19,9 @@ module OCI
|
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :low
|
21
21
|
|
22
|
-
#
|
22
|
+
# Returns all connection strings that can be used to connect to the Autonomous Data Warehouse.
|
23
|
+
# For more information, please see [Predefined Database Service Names for Autonomous Transaction Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE)
|
24
|
+
#
|
23
25
|
# @return [Hash<String, String>]
|
24
26
|
attr_accessor :all_connection_strings
|
25
27
|
|
@@ -19,7 +19,9 @@ module OCI
|
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :low
|
21
21
|
|
22
|
-
#
|
22
|
+
# Returns all connection strings that can be used to connect to the Autonomous Database.
|
23
|
+
# For more information, please see [Predefined Database Service Names for Autonomous Transaction Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE)
|
24
|
+
#
|
23
25
|
# @return [Hash<String, String>]
|
24
26
|
attr_accessor :all_connection_strings
|
25
27
|
|
@@ -6,12 +6,7 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# The configuration details for creating a Data Guard association between databases.
|
8
8
|
#
|
9
|
-
# **
|
10
|
-
# \"ExistingDbSystem\" is the only supported `creationType` value. Therefore, all
|
11
|
-
# {#create_data_guard_association create_data_guard_association}
|
12
|
-
# requests must include the `peerDbSystemId` parameter found in the
|
13
|
-
# {#create_data_guard_association_to_existing_db_system_details create_data_guard_association_to_existing_db_system_details}
|
14
|
-
# object.
|
9
|
+
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
15
10
|
#
|
16
11
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
17
12
|
class Database::Models::CreateDataGuardAssociationDetails # rubocop:disable Metrics/LineLength
|
@@ -68,7 +63,7 @@ module OCI
|
|
68
63
|
# @return [String]
|
69
64
|
attr_reader :transport_type
|
70
65
|
|
71
|
-
# **[Required]** Specifies whether to create the peer database in an existing DB system or in a new DB system.
|
66
|
+
# **[Required]** Specifies whether to create the peer database in an existing DB system or in a new DB system. `ExistingDbSystem` is not supported for creating Data Guard associations for virtual machine DB system databases.
|
72
67
|
#
|
73
68
|
# @return [String]
|
74
69
|
attr_accessor :creation_type
|
@@ -5,9 +5,13 @@ require_relative 'create_data_guard_association_details'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
# The configuration details for creating a Data Guard association
|
8
|
+
# The configuration details for creating a Data Guard association for a bare metal DB system database. A standby database will be created in the DB system you specify.
|
9
|
+
#
|
10
|
+
# To create a Data Guard association for a database in a virtual machine DB system, use the {#create_data_guard_association_with_new_db_system_details create_data_guard_association_with_new_db_system_details} subtype.
|
11
|
+
#
|
9
12
|
class Database::Models::CreateDataGuardAssociationToExistingDbSystemDetails < Database::Models::CreateDataGuardAssociationDetails # rubocop:disable Metrics/LineLength
|
10
13
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system in which to create the standby database.
|
14
|
+
# You must supply this value if creationType is `ExistingDbSystem`.
|
11
15
|
#
|
12
16
|
# @return [String]
|
13
17
|
attr_accessor :peer_db_system_id
|
@@ -5,7 +5,10 @@ require_relative 'create_data_guard_association_details'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
# The configuration details for creating a Data Guard association
|
8
|
+
# The configuration details for creating a Data Guard association for a bare metal DB system or virtual machine DB system database. A new DB system will be launched to create the standby database.
|
9
|
+
#
|
10
|
+
# **NOTE** - You must use this subtype to create a Data Guard association for a database in a virtual machine DB system.
|
11
|
+
#
|
9
12
|
class Database::Models::CreateDataGuardAssociationWithNewDbSystemDetails < Database::Models::CreateDataGuardAssociationDetails # rubocop:disable Metrics/LineLength
|
10
13
|
# The user-friendly name of the DB system that will contain the the standby database. The display name does not have to be unique.
|
11
14
|
# @return [String]
|
@@ -5,7 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
# An Oracle
|
8
|
+
# An Oracle Database on a bare metal or virtual machine DB system. For more information, see [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm).
|
9
9
|
#
|
10
10
|
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
11
11
|
#
|
@@ -44,6 +44,10 @@ module OCI
|
|
44
44
|
# @return [String]
|
45
45
|
attr_accessor :hostname
|
46
46
|
|
47
|
+
# The name of the fault domain the instance is contained in.
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :fault_domain
|
50
|
+
|
47
51
|
# **[Required]** The date and time that the database node was created.
|
48
52
|
# @return [DateTime]
|
49
53
|
attr_accessor :time_created
|
@@ -63,6 +67,7 @@ module OCI
|
|
63
67
|
'backup_vnic_id': :'backupVnicId',
|
64
68
|
'lifecycle_state': :'lifecycleState',
|
65
69
|
'hostname': :'hostname',
|
70
|
+
'fault_domain': :'faultDomain',
|
66
71
|
'time_created': :'timeCreated',
|
67
72
|
'software_storage_size_in_gb': :'softwareStorageSizeInGB'
|
68
73
|
# rubocop:enable Style/SymbolLiteral
|
@@ -79,6 +84,7 @@ module OCI
|
|
79
84
|
'backup_vnic_id': :'String',
|
80
85
|
'lifecycle_state': :'String',
|
81
86
|
'hostname': :'String',
|
87
|
+
'fault_domain': :'String',
|
82
88
|
'time_created': :'DateTime',
|
83
89
|
'software_storage_size_in_gb': :'Integer'
|
84
90
|
# rubocop:enable Style/SymbolLiteral
|
@@ -97,6 +103,7 @@ module OCI
|
|
97
103
|
# @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
|
98
104
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
99
105
|
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
106
|
+
# @option attributes [String] :fault_domain The value to assign to the {#fault_domain} property
|
100
107
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
101
108
|
# @option attributes [Integer] :software_storage_size_in_gb The value to assign to the {#software_storage_size_in_gb} property
|
102
109
|
def initialize(attributes = {})
|
@@ -130,6 +137,12 @@ module OCI
|
|
130
137
|
|
131
138
|
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
132
139
|
|
140
|
+
self.fault_domain = attributes[:'faultDomain'] if attributes[:'faultDomain']
|
141
|
+
|
142
|
+
raise 'You cannot provide both :faultDomain and :fault_domain' if attributes.key?(:'faultDomain') && attributes.key?(:'fault_domain')
|
143
|
+
|
144
|
+
self.fault_domain = attributes[:'fault_domain'] if attributes[:'fault_domain']
|
145
|
+
|
133
146
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
134
147
|
|
135
148
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
@@ -175,6 +188,7 @@ module OCI
|
|
175
188
|
backup_vnic_id == other.backup_vnic_id &&
|
176
189
|
lifecycle_state == other.lifecycle_state &&
|
177
190
|
hostname == other.hostname &&
|
191
|
+
fault_domain == other.fault_domain &&
|
178
192
|
time_created == other.time_created &&
|
179
193
|
software_storage_size_in_gb == other.software_storage_size_in_gb
|
180
194
|
end
|
@@ -192,7 +206,7 @@ module OCI
|
|
192
206
|
# Calculates hash code according to all attributes.
|
193
207
|
# @return [Fixnum] Hash code
|
194
208
|
def hash
|
195
|
-
[id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, time_created, software_storage_size_in_gb].hash
|
209
|
+
[id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, fault_domain, time_created, software_storage_size_in_gb].hash
|
196
210
|
end
|
197
211
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
198
212
|
|
@@ -49,6 +49,10 @@ module OCI
|
|
49
49
|
# @return [String]
|
50
50
|
attr_accessor :hostname
|
51
51
|
|
52
|
+
# The name of the fault domain the instance is contained in.
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :fault_domain
|
55
|
+
|
52
56
|
# **[Required]** The date and time that the database node was created.
|
53
57
|
# @return [DateTime]
|
54
58
|
attr_accessor :time_created
|
@@ -68,6 +72,7 @@ module OCI
|
|
68
72
|
'backup_vnic_id': :'backupVnicId',
|
69
73
|
'lifecycle_state': :'lifecycleState',
|
70
74
|
'hostname': :'hostname',
|
75
|
+
'fault_domain': :'faultDomain',
|
71
76
|
'time_created': :'timeCreated',
|
72
77
|
'software_storage_size_in_gb': :'softwareStorageSizeInGB'
|
73
78
|
# rubocop:enable Style/SymbolLiteral
|
@@ -84,6 +89,7 @@ module OCI
|
|
84
89
|
'backup_vnic_id': :'String',
|
85
90
|
'lifecycle_state': :'String',
|
86
91
|
'hostname': :'String',
|
92
|
+
'fault_domain': :'String',
|
87
93
|
'time_created': :'DateTime',
|
88
94
|
'software_storage_size_in_gb': :'Integer'
|
89
95
|
# rubocop:enable Style/SymbolLiteral
|
@@ -102,6 +108,7 @@ module OCI
|
|
102
108
|
# @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
|
103
109
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
104
110
|
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
111
|
+
# @option attributes [String] :fault_domain The value to assign to the {#fault_domain} property
|
105
112
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
106
113
|
# @option attributes [Integer] :software_storage_size_in_gb The value to assign to the {#software_storage_size_in_gb} property
|
107
114
|
def initialize(attributes = {})
|
@@ -138,6 +145,12 @@ module OCI
|
|
138
145
|
|
139
146
|
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
140
147
|
|
148
|
+
self.fault_domain = attributes[:'faultDomain'] if attributes[:'faultDomain']
|
149
|
+
|
150
|
+
raise 'You cannot provide both :faultDomain and :fault_domain' if attributes.key?(:'faultDomain') && attributes.key?(:'fault_domain')
|
151
|
+
|
152
|
+
self.fault_domain = attributes[:'fault_domain'] if attributes[:'fault_domain']
|
153
|
+
|
141
154
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
142
155
|
|
143
156
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
@@ -183,6 +196,7 @@ module OCI
|
|
183
196
|
backup_vnic_id == other.backup_vnic_id &&
|
184
197
|
lifecycle_state == other.lifecycle_state &&
|
185
198
|
hostname == other.hostname &&
|
199
|
+
fault_domain == other.fault_domain &&
|
186
200
|
time_created == other.time_created &&
|
187
201
|
software_storage_size_in_gb == other.software_storage_size_in_gb
|
188
202
|
end
|
@@ -200,7 +214,7 @@ module OCI
|
|
200
214
|
# Calculates hash code according to all attributes.
|
201
215
|
# @return [Fixnum] Hash code
|
202
216
|
def hash
|
203
|
-
[id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, time_created, software_storage_size_in_gb].hash
|
217
|
+
[id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, fault_domain, time_created, software_storage_size_in_gb].hash
|
204
218
|
end
|
205
219
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
206
220
|
|
@@ -53,6 +53,10 @@ module OCI
|
|
53
53
|
# @return [String]
|
54
54
|
attr_accessor :availability_domain
|
55
55
|
|
56
|
+
# List of the fault domains in which this DB system is provisioned.
|
57
|
+
# @return [Array<String>]
|
58
|
+
attr_accessor :fault_domains
|
59
|
+
|
56
60
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
|
57
61
|
#
|
58
62
|
# **Subnet Restrictions:**
|
@@ -215,6 +219,7 @@ module OCI
|
|
215
219
|
'compartment_id': :'compartmentId',
|
216
220
|
'display_name': :'displayName',
|
217
221
|
'availability_domain': :'availabilityDomain',
|
222
|
+
'fault_domains': :'faultDomains',
|
218
223
|
'subnet_id': :'subnetId',
|
219
224
|
'backup_subnet_id': :'backupSubnetId',
|
220
225
|
'shape': :'shape',
|
@@ -254,6 +259,7 @@ module OCI
|
|
254
259
|
'compartment_id': :'String',
|
255
260
|
'display_name': :'String',
|
256
261
|
'availability_domain': :'String',
|
262
|
+
'fault_domains': :'Array<String>',
|
257
263
|
'subnet_id': :'String',
|
258
264
|
'backup_subnet_id': :'String',
|
259
265
|
'shape': :'String',
|
@@ -295,6 +301,7 @@ module OCI
|
|
295
301
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
296
302
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
297
303
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
304
|
+
# @option attributes [Array<String>] :fault_domains The value to assign to the {#fault_domains} property
|
298
305
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
299
306
|
# @option attributes [String] :backup_subnet_id The value to assign to the {#backup_subnet_id} property
|
300
307
|
# @option attributes [String] :shape The value to assign to the {#shape} property
|
@@ -345,6 +352,12 @@ module OCI
|
|
345
352
|
|
346
353
|
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
347
354
|
|
355
|
+
self.fault_domains = attributes[:'faultDomains'] if attributes[:'faultDomains']
|
356
|
+
|
357
|
+
raise 'You cannot provide both :faultDomains and :fault_domains' if attributes.key?(:'faultDomains') && attributes.key?(:'fault_domains')
|
358
|
+
|
359
|
+
self.fault_domains = attributes[:'fault_domains'] if attributes[:'fault_domains']
|
360
|
+
|
348
361
|
self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
|
349
362
|
|
350
363
|
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
@@ -567,6 +580,7 @@ module OCI
|
|
567
580
|
compartment_id == other.compartment_id &&
|
568
581
|
display_name == other.display_name &&
|
569
582
|
availability_domain == other.availability_domain &&
|
583
|
+
fault_domains == other.fault_domains &&
|
570
584
|
subnet_id == other.subnet_id &&
|
571
585
|
backup_subnet_id == other.backup_subnet_id &&
|
572
586
|
shape == other.shape &&
|
@@ -609,7 +623,7 @@ module OCI
|
|
609
623
|
# Calculates hash code according to all attributes.
|
610
624
|
# @return [Fixnum] Hash code
|
611
625
|
def hash
|
612
|
-
[id, compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
|
626
|
+
[id, compartment_id, display_name, availability_domain, fault_domains, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
|
613
627
|
end
|
614
628
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
615
629
|
|
@@ -70,6 +70,10 @@ module OCI
|
|
70
70
|
# @return [String]
|
71
71
|
attr_accessor :availability_domain
|
72
72
|
|
73
|
+
# List of the fault domains in which this DB system is provisioned.
|
74
|
+
# @return [Array<String>]
|
75
|
+
attr_accessor :fault_domains
|
76
|
+
|
73
77
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
|
74
78
|
#
|
75
79
|
# **Subnet Restrictions:**
|
@@ -232,6 +236,7 @@ module OCI
|
|
232
236
|
'compartment_id': :'compartmentId',
|
233
237
|
'display_name': :'displayName',
|
234
238
|
'availability_domain': :'availabilityDomain',
|
239
|
+
'fault_domains': :'faultDomains',
|
235
240
|
'subnet_id': :'subnetId',
|
236
241
|
'backup_subnet_id': :'backupSubnetId',
|
237
242
|
'shape': :'shape',
|
@@ -271,6 +276,7 @@ module OCI
|
|
271
276
|
'compartment_id': :'String',
|
272
277
|
'display_name': :'String',
|
273
278
|
'availability_domain': :'String',
|
279
|
+
'fault_domains': :'Array<String>',
|
274
280
|
'subnet_id': :'String',
|
275
281
|
'backup_subnet_id': :'String',
|
276
282
|
'shape': :'String',
|
@@ -312,6 +318,7 @@ module OCI
|
|
312
318
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
313
319
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
314
320
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
321
|
+
# @option attributes [Array<String>] :fault_domains The value to assign to the {#fault_domains} property
|
315
322
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
316
323
|
# @option attributes [String] :backup_subnet_id The value to assign to the {#backup_subnet_id} property
|
317
324
|
# @option attributes [String] :shape The value to assign to the {#shape} property
|
@@ -365,6 +372,12 @@ module OCI
|
|
365
372
|
|
366
373
|
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
367
374
|
|
375
|
+
self.fault_domains = attributes[:'faultDomains'] if attributes[:'faultDomains']
|
376
|
+
|
377
|
+
raise 'You cannot provide both :faultDomains and :fault_domains' if attributes.key?(:'faultDomains') && attributes.key?(:'fault_domains')
|
378
|
+
|
379
|
+
self.fault_domains = attributes[:'fault_domains'] if attributes[:'fault_domains']
|
380
|
+
|
368
381
|
self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
|
369
382
|
|
370
383
|
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
@@ -587,6 +600,7 @@ module OCI
|
|
587
600
|
compartment_id == other.compartment_id &&
|
588
601
|
display_name == other.display_name &&
|
589
602
|
availability_domain == other.availability_domain &&
|
603
|
+
fault_domains == other.fault_domains &&
|
590
604
|
subnet_id == other.subnet_id &&
|
591
605
|
backup_subnet_id == other.backup_subnet_id &&
|
592
606
|
shape == other.shape &&
|
@@ -629,7 +643,7 @@ module OCI
|
|
629
643
|
# Calculates hash code according to all attributes.
|
630
644
|
# @return [Fixnum] Hash code
|
631
645
|
def hash
|
632
|
-
[id, compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
|
646
|
+
[id, compartment_id, display_name, availability_domain, fault_domains, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
|
633
647
|
end
|
634
648
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
635
649
|
|
@@ -4,7 +4,7 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
# The Oracle
|
7
|
+
# The Oracle Database software version.
|
8
8
|
#
|
9
9
|
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
10
10
|
#
|
@@ -19,6 +19,27 @@ module OCI
|
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :compartment_id
|
21
21
|
|
22
|
+
# A fault domain is a grouping of hardware and infrastructure within an availability domain.
|
23
|
+
# fault domains let you distribute your instances so that they are not on the same physical
|
24
|
+
# hardware within a single availability domain. A hardware failure or maintenance
|
25
|
+
# that affects one fault domain does not affect DB systems in other fault domains.
|
26
|
+
#
|
27
|
+
# If you do not specify the fault domain, the system selects one for you. To change the fault
|
28
|
+
# domain for a DB system, terminate it and launch a new DB system in the preferred fault domain.
|
29
|
+
#
|
30
|
+
# If the node count is greater than 1, you can specify which fault domains these nodes will be distributed into.
|
31
|
+
# The system assigns your nodes automatically to the fault domains you specify so that
|
32
|
+
# no fault domain contains more than one node.
|
33
|
+
#
|
34
|
+
# To get a list of fault domains, use the
|
35
|
+
# {#list_fault_domains list_fault_domains} operation in the
|
36
|
+
# Identity and Access Management Service API.
|
37
|
+
#
|
38
|
+
# Example: `FAULT-DOMAIN-1`
|
39
|
+
#
|
40
|
+
# @return [Array<String>]
|
41
|
+
attr_accessor :fault_domains
|
42
|
+
|
22
43
|
# The user-friendly name for the DB system. The name does not have to be unique.
|
23
44
|
# @return [String]
|
24
45
|
attr_accessor :display_name
|
@@ -61,7 +82,7 @@ module OCI
|
|
61
82
|
# @return [BOOLEAN]
|
62
83
|
attr_accessor :sparse_diskgroup
|
63
84
|
|
64
|
-
# **[Required]** The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed
|
85
|
+
# **[Required]** The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 40,000 characters.
|
65
86
|
# @return [Array<String>]
|
66
87
|
attr_accessor :ssh_public_keys
|
67
88
|
|
@@ -149,6 +170,7 @@ module OCI
|
|
149
170
|
{
|
150
171
|
# rubocop:disable Style/SymbolLiteral
|
151
172
|
'compartment_id': :'compartmentId',
|
173
|
+
'fault_domains': :'faultDomains',
|
152
174
|
'display_name': :'displayName',
|
153
175
|
'availability_domain': :'availabilityDomain',
|
154
176
|
'subnet_id': :'subnetId',
|
@@ -175,6 +197,7 @@ module OCI
|
|
175
197
|
{
|
176
198
|
# rubocop:disable Style/SymbolLiteral
|
177
199
|
'compartment_id': :'String',
|
200
|
+
'fault_domains': :'Array<String>',
|
178
201
|
'display_name': :'String',
|
179
202
|
'availability_domain': :'String',
|
180
203
|
'subnet_id': :'String',
|
@@ -219,6 +242,7 @@ module OCI
|
|
219
242
|
# Initializes the object
|
220
243
|
# @param [Hash] attributes Model attributes in the form of hash
|
221
244
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
245
|
+
# @option attributes [Array<String>] :fault_domains The value to assign to the {#fault_domains} property
|
222
246
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
223
247
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
224
248
|
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
@@ -248,6 +272,12 @@ module OCI
|
|
248
272
|
|
249
273
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
250
274
|
|
275
|
+
self.fault_domains = attributes[:'faultDomains'] if attributes[:'faultDomains']
|
276
|
+
|
277
|
+
raise 'You cannot provide both :faultDomains and :fault_domains' if attributes.key?(:'faultDomains') && attributes.key?(:'fault_domains')
|
278
|
+
|
279
|
+
self.fault_domains = attributes[:'fault_domains'] if attributes[:'fault_domains']
|
280
|
+
|
251
281
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
252
282
|
|
253
283
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
@@ -358,6 +388,7 @@ module OCI
|
|
358
388
|
|
359
389
|
self.class == other.class &&
|
360
390
|
compartment_id == other.compartment_id &&
|
391
|
+
fault_domains == other.fault_domains &&
|
361
392
|
display_name == other.display_name &&
|
362
393
|
availability_domain == other.availability_domain &&
|
363
394
|
subnet_id == other.subnet_id &&
|
@@ -390,7 +421,7 @@ module OCI
|
|
390
421
|
# Calculates hash code according to all attributes.
|
391
422
|
# @return [Fixnum] Hash code
|
392
423
|
def hash
|
393
|
-
[compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source].hash
|
424
|
+
[compartment_id, fault_domains, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source].hash
|
394
425
|
end
|
395
426
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
396
427
|
|