oci 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
- data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
- data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
- data/lib/oci/core/models/drg_attachment.rb +4 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
- data/lib/oci/core/models/launch_instance_details.rb +18 -4
- data/lib/oci/core/models/launch_options.rb +18 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -1
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
- data/lib/oci/core/models/service.rb +1 -1
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
- data/lib/oci/core/models/volume_attachment.rb +18 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
- data/lib/oci/database/models/autonomous_database.rb +132 -137
- data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
- data/lib/oci/database/models/backup.rb +102 -109
- data/lib/oci/database/models/backup_summary.rb +101 -101
- data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
- data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
- data/lib/oci/database/models/create_database_details.rb +62 -62
- data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
- data/lib/oci/database/models/create_db_home_details.rb +21 -21
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
- data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
- data/lib/oci/database/models/data_guard_association.rb +132 -144
- data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
- data/lib/oci/database/models/database.rb +100 -108
- data/lib/oci/database/models/database_summary.rb +99 -99
- data/lib/oci/database/models/db_home.rb +39 -51
- data/lib/oci/database/models/db_home_summary.rb +39 -39
- data/lib/oci/database/models/db_node.rb +50 -58
- data/lib/oci/database/models/db_node_summary.rb +49 -49
- data/lib/oci/database/models/db_system.rb +295 -300
- data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
- data/lib/oci/database/models/db_system_summary.rb +295 -280
- data/lib/oci/database/models/db_version_summary.rb +28 -14
- data/lib/oci/database/models/external_backup_job.rb +34 -34
- data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +160 -145
- data/lib/oci/database/models/launch_db_system_details.rb +59 -55
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
- data/lib/oci/database/models/patch.rb +45 -53
- data/lib/oci/database/models/patch_details.rb +14 -14
- data/lib/oci/database/models/patch_history_entry.rb +48 -51
- data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
- data/lib/oci/database/models/patch_summary.rb +44 -44
- data/lib/oci/database/models/restore_database_details.rb +15 -15
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
- data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
- data/lib/oci/database/models/update_database_details.rb +22 -22
- data/lib/oci/database/models/update_db_system_details.rb +38 -38
- data/lib/oci/dns/dns.rb +1 -0
- data/lib/oci/dns/dns_client.rb +14 -13
- data/lib/oci/dns/models/create_zone_details.rb +39 -2
- data/lib/oci/dns/models/external_master.rb +3 -1
- data/lib/oci/dns/models/nameserver.rb +149 -0
- data/lib/oci/dns/models/record.rb +3 -1
- data/lib/oci/dns/models/record_details.rb +3 -1
- data/lib/oci/dns/models/record_operation.rb +3 -1
- data/lib/oci/dns/models/tsig.rb +3 -2
- data/lib/oci/dns/models/update_zone_details.rb +40 -2
- data/lib/oci/dns/models/zone.rb +54 -6
- data/lib/oci/dns/models/zone_summary.rb +79 -5
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +176 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
- data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
- data/lib/oci/identity/models/user.rb +42 -4
- data/lib/oci/identity/models/user_capabilities.rb +209 -0
- data/lib/oci/regions.rb +10 -9
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
|
@@ -9,20 +9,20 @@ module OCI
|
|
|
9
9
|
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
|
10
10
|
#
|
|
11
11
|
class Database::Models::CreateAutonomousDatabaseBackupDetails # rubocop:disable Metrics/LineLength
|
|
12
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
|
|
13
|
-
# @return [String]
|
|
14
|
-
attr_accessor :autonomous_database_id
|
|
15
|
-
|
|
16
12
|
# **[Required]** The user-friendly name for the backup. The name does not have to be unique.
|
|
17
13
|
# @return [String]
|
|
18
14
|
attr_accessor :display_name
|
|
19
15
|
|
|
16
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :autonomous_database_id
|
|
19
|
+
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
23
|
# rubocop:disable Style/SymbolLiteral
|
|
24
|
-
'
|
|
25
|
-
'
|
|
24
|
+
'display_name': :'displayName',
|
|
25
|
+
'autonomous_database_id': :'autonomousDatabaseId'
|
|
26
26
|
# rubocop:enable Style/SymbolLiteral
|
|
27
27
|
}
|
|
28
28
|
end
|
|
@@ -31,8 +31,8 @@ module OCI
|
|
|
31
31
|
def self.swagger_types
|
|
32
32
|
{
|
|
33
33
|
# rubocop:disable Style/SymbolLiteral
|
|
34
|
-
'
|
|
35
|
-
'
|
|
34
|
+
'display_name': :'String',
|
|
35
|
+
'autonomous_database_id': :'String'
|
|
36
36
|
# rubocop:enable Style/SymbolLiteral
|
|
37
37
|
}
|
|
38
38
|
end
|
|
@@ -43,25 +43,25 @@ module OCI
|
|
|
43
43
|
|
|
44
44
|
# Initializes the object
|
|
45
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
-
# @option attributes [String] :autonomous_database_id The value to assign to the {#autonomous_database_id} property
|
|
47
46
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
47
|
+
# @option attributes [String] :autonomous_database_id The value to assign to the {#autonomous_database_id} property
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
return unless attributes.is_a?(Hash)
|
|
50
50
|
|
|
51
51
|
# convert string to symbol for hash key
|
|
52
52
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
53
53
|
|
|
54
|
-
self.autonomous_database_id = attributes[:'autonomousDatabaseId'] if attributes[:'autonomousDatabaseId']
|
|
55
|
-
|
|
56
|
-
raise 'You cannot provide both :autonomousDatabaseId and :autonomous_database_id' if attributes.key?(:'autonomousDatabaseId') && attributes.key?(:'autonomous_database_id')
|
|
57
|
-
|
|
58
|
-
self.autonomous_database_id = attributes[:'autonomous_database_id'] if attributes[:'autonomous_database_id']
|
|
59
|
-
|
|
60
54
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
61
55
|
|
|
62
56
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
63
57
|
|
|
64
58
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
59
|
+
|
|
60
|
+
self.autonomous_database_id = attributes[:'autonomousDatabaseId'] if attributes[:'autonomousDatabaseId']
|
|
61
|
+
|
|
62
|
+
raise 'You cannot provide both :autonomousDatabaseId and :autonomous_database_id' if attributes.key?(:'autonomousDatabaseId') && attributes.key?(:'autonomous_database_id')
|
|
63
|
+
|
|
64
|
+
self.autonomous_database_id = attributes[:'autonomous_database_id'] if attributes[:'autonomous_database_id']
|
|
65
65
|
end
|
|
66
66
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
67
67
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -75,8 +75,8 @@ module OCI
|
|
|
75
75
|
return true if equal?(other)
|
|
76
76
|
|
|
77
77
|
self.class == other.class &&
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
display_name == other.display_name &&
|
|
79
|
+
autonomous_database_id == other.autonomous_database_id
|
|
80
80
|
end
|
|
81
81
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
82
82
|
|
|
@@ -92,7 +92,7 @@ module OCI
|
|
|
92
92
|
# Calculates hash code according to all attributes.
|
|
93
93
|
# @return [Fixnum] Hash code
|
|
94
94
|
def hash
|
|
95
|
-
[
|
|
95
|
+
[display_name, autonomous_database_id].hash
|
|
96
96
|
end
|
|
97
97
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
98
98
|
|
|
@@ -14,14 +14,14 @@ module OCI
|
|
|
14
14
|
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze
|
|
15
15
|
].freeze
|
|
16
16
|
|
|
17
|
-
# **[Required]** A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol (\"). It must be different than the last 4 passwords.
|
|
18
|
-
# @return [String]
|
|
19
|
-
attr_accessor :admin_password
|
|
20
|
-
|
|
21
17
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment of the autonomous database.
|
|
22
18
|
# @return [String]
|
|
23
19
|
attr_accessor :compartment_id
|
|
24
20
|
|
|
21
|
+
# **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :db_name
|
|
24
|
+
|
|
25
25
|
# **[Required]** The number of CPU Cores to be made available to the database.
|
|
26
26
|
# @return [Integer]
|
|
27
27
|
attr_accessor :cpu_core_count
|
|
@@ -31,22 +31,19 @@ module OCI
|
|
|
31
31
|
# @return [Integer]
|
|
32
32
|
attr_accessor :data_storage_size_in_tbs
|
|
33
33
|
|
|
34
|
-
# **[Required]** The
|
|
34
|
+
# **[Required]** The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing.
|
|
35
35
|
# @return [String]
|
|
36
|
-
attr_accessor :
|
|
37
|
-
|
|
38
|
-
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
39
|
-
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
40
|
-
#
|
|
41
|
-
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
42
|
-
#
|
|
43
|
-
# @return [Hash<String, Hash<String, Object>>]
|
|
44
|
-
attr_accessor :defined_tags
|
|
36
|
+
attr_accessor :admin_password
|
|
45
37
|
|
|
46
38
|
# The user-friendly name for the Autonomous Database. The name does not have to be unique.
|
|
47
39
|
# @return [String]
|
|
48
40
|
attr_accessor :display_name
|
|
49
41
|
|
|
42
|
+
# The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_reader :license_model
|
|
46
|
+
|
|
50
47
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
|
51
48
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
52
49
|
#
|
|
@@ -55,24 +52,27 @@ module OCI
|
|
|
55
52
|
# @return [Hash<String, String>]
|
|
56
53
|
attr_accessor :freeform_tags
|
|
57
54
|
|
|
58
|
-
#
|
|
55
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
56
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
59
57
|
#
|
|
60
|
-
#
|
|
61
|
-
|
|
58
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
59
|
+
#
|
|
60
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
61
|
+
attr_accessor :defined_tags
|
|
62
62
|
|
|
63
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
64
|
def self.attribute_map
|
|
65
65
|
{
|
|
66
66
|
# rubocop:disable Style/SymbolLiteral
|
|
67
|
-
'admin_password': :'adminPassword',
|
|
68
67
|
'compartment_id': :'compartmentId',
|
|
68
|
+
'db_name': :'dbName',
|
|
69
69
|
'cpu_core_count': :'cpuCoreCount',
|
|
70
70
|
'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
|
|
71
|
-
'
|
|
72
|
-
'defined_tags': :'definedTags',
|
|
71
|
+
'admin_password': :'adminPassword',
|
|
73
72
|
'display_name': :'displayName',
|
|
73
|
+
'license_model': :'licenseModel',
|
|
74
74
|
'freeform_tags': :'freeformTags',
|
|
75
|
-
'
|
|
75
|
+
'defined_tags': :'definedTags'
|
|
76
76
|
# rubocop:enable Style/SymbolLiteral
|
|
77
77
|
}
|
|
78
78
|
end
|
|
@@ -81,15 +81,15 @@ module OCI
|
|
|
81
81
|
def self.swagger_types
|
|
82
82
|
{
|
|
83
83
|
# rubocop:disable Style/SymbolLiteral
|
|
84
|
-
'admin_password': :'String',
|
|
85
84
|
'compartment_id': :'String',
|
|
85
|
+
'db_name': :'String',
|
|
86
86
|
'cpu_core_count': :'Integer',
|
|
87
87
|
'data_storage_size_in_tbs': :'Integer',
|
|
88
|
-
'
|
|
89
|
-
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
88
|
+
'admin_password': :'String',
|
|
90
89
|
'display_name': :'String',
|
|
90
|
+
'license_model': :'String',
|
|
91
91
|
'freeform_tags': :'Hash<String, String>',
|
|
92
|
-
'
|
|
92
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
|
93
93
|
# rubocop:enable Style/SymbolLiteral
|
|
94
94
|
}
|
|
95
95
|
end
|
|
@@ -100,33 +100,33 @@ module OCI
|
|
|
100
100
|
|
|
101
101
|
# Initializes the object
|
|
102
102
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
|
-
# @option attributes [String] :admin_password The value to assign to the {#admin_password} property
|
|
104
103
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
104
|
+
# @option attributes [String] :db_name The value to assign to the {#db_name} property
|
|
105
105
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
|
106
106
|
# @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
|
|
107
|
-
# @option attributes [String] :
|
|
108
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
107
|
+
# @option attributes [String] :admin_password The value to assign to the {#admin_password} property
|
|
109
108
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
110
|
-
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
111
109
|
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
|
110
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
111
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
112
112
|
def initialize(attributes = {})
|
|
113
113
|
return unless attributes.is_a?(Hash)
|
|
114
114
|
|
|
115
115
|
# convert string to symbol for hash key
|
|
116
116
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
117
117
|
|
|
118
|
-
self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
|
|
119
|
-
|
|
120
|
-
raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
|
|
121
|
-
|
|
122
|
-
self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
|
|
123
|
-
|
|
124
118
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
125
119
|
|
|
126
120
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
127
121
|
|
|
128
122
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
129
123
|
|
|
124
|
+
self.db_name = attributes[:'dbName'] if attributes[:'dbName']
|
|
125
|
+
|
|
126
|
+
raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
|
|
127
|
+
|
|
128
|
+
self.db_name = attributes[:'db_name'] if attributes[:'db_name']
|
|
129
|
+
|
|
130
130
|
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
|
131
131
|
|
|
132
132
|
raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
|
|
@@ -139,17 +139,11 @@ module OCI
|
|
|
139
139
|
|
|
140
140
|
self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
|
|
141
141
|
|
|
142
|
-
self.
|
|
143
|
-
|
|
144
|
-
raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
|
|
145
|
-
|
|
146
|
-
self.db_name = attributes[:'db_name'] if attributes[:'db_name']
|
|
147
|
-
|
|
148
|
-
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
142
|
+
self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
|
|
149
143
|
|
|
150
|
-
raise 'You cannot provide both :
|
|
144
|
+
raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
|
|
151
145
|
|
|
152
|
-
self.
|
|
146
|
+
self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
|
|
153
147
|
|
|
154
148
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
155
149
|
|
|
@@ -157,17 +151,23 @@ module OCI
|
|
|
157
151
|
|
|
158
152
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
159
153
|
|
|
154
|
+
self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
|
|
155
|
+
|
|
156
|
+
raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
|
|
157
|
+
|
|
158
|
+
self.license_model = attributes[:'license_model'] if attributes[:'license_model']
|
|
159
|
+
|
|
160
160
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
|
161
161
|
|
|
162
162
|
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
|
163
163
|
|
|
164
164
|
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
|
165
165
|
|
|
166
|
-
self.
|
|
166
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
|
167
167
|
|
|
168
|
-
raise 'You cannot provide both :
|
|
168
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
|
169
169
|
|
|
170
|
-
self.
|
|
170
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
|
171
171
|
end
|
|
172
172
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
173
173
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -191,15 +191,15 @@ module OCI
|
|
|
191
191
|
return true if equal?(other)
|
|
192
192
|
|
|
193
193
|
self.class == other.class &&
|
|
194
|
-
admin_password == other.admin_password &&
|
|
195
194
|
compartment_id == other.compartment_id &&
|
|
195
|
+
db_name == other.db_name &&
|
|
196
196
|
cpu_core_count == other.cpu_core_count &&
|
|
197
197
|
data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
|
|
198
|
-
|
|
199
|
-
defined_tags == other.defined_tags &&
|
|
198
|
+
admin_password == other.admin_password &&
|
|
200
199
|
display_name == other.display_name &&
|
|
200
|
+
license_model == other.license_model &&
|
|
201
201
|
freeform_tags == other.freeform_tags &&
|
|
202
|
-
|
|
202
|
+
defined_tags == other.defined_tags
|
|
203
203
|
end
|
|
204
204
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
205
205
|
|
|
@@ -215,7 +215,7 @@ module OCI
|
|
|
215
215
|
# Calculates hash code according to all attributes.
|
|
216
216
|
# @return [Fixnum] Hash code
|
|
217
217
|
def hash
|
|
218
|
-
[
|
|
218
|
+
[compartment_id, db_name, cpu_core_count, data_storage_size_in_tbs, admin_password, display_name, license_model, freeform_tags, defined_tags].hash
|
|
219
219
|
end
|
|
220
220
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
221
221
|
|
|
@@ -27,12 +27,6 @@ module OCI
|
|
|
27
27
|
TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC'.freeze
|
|
28
28
|
].freeze
|
|
29
29
|
|
|
30
|
-
# **[Required]** Specifies where to create the associated database.
|
|
31
|
-
# \"ExistingDbSystem\" is the only supported `creationType` value.
|
|
32
|
-
#
|
|
33
|
-
# @return [String]
|
|
34
|
-
attr_accessor :creation_type
|
|
35
|
-
|
|
36
30
|
# **[Required]** A strong password for the `SYS`, `SYSTEM`, and `PDB Admin` users to apply during standby creation.
|
|
37
31
|
#
|
|
38
32
|
# The password must contain no fewer than nine characters and include:
|
|
@@ -54,7 +48,7 @@ module OCI
|
|
|
54
48
|
# [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000)
|
|
55
49
|
# in the Oracle Data Guard documentation.
|
|
56
50
|
#
|
|
57
|
-
# **IMPORTANT** - The only protection mode currently supported by the Database
|
|
51
|
+
# **IMPORTANT** - The only protection mode currently supported by the Database service is MAXIMUM_PERFORMANCE.
|
|
58
52
|
#
|
|
59
53
|
# @return [String]
|
|
60
54
|
attr_reader :protection_mode
|
|
@@ -69,19 +63,24 @@ module OCI
|
|
|
69
63
|
# [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400)
|
|
70
64
|
# in the Oracle Data Guard documentation.
|
|
71
65
|
#
|
|
72
|
-
# **IMPORTANT** - The only transport type currently supported by the Database
|
|
66
|
+
# **IMPORTANT** - The only transport type currently supported by the Database service is ASYNC.
|
|
73
67
|
#
|
|
74
68
|
# @return [String]
|
|
75
69
|
attr_reader :transport_type
|
|
76
70
|
|
|
71
|
+
# **[Required]** Specifies whether to create the peer database in an existing DB system or in a new DB system. Use either \"ExistingDbSystem\" or \"NewDbSystem.\"
|
|
72
|
+
#
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :creation_type
|
|
75
|
+
|
|
77
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
77
|
def self.attribute_map
|
|
79
78
|
{
|
|
80
79
|
# rubocop:disable Style/SymbolLiteral
|
|
81
|
-
'creation_type': :'creationType',
|
|
82
80
|
'database_admin_password': :'databaseAdminPassword',
|
|
83
81
|
'protection_mode': :'protectionMode',
|
|
84
|
-
'transport_type': :'transportType'
|
|
82
|
+
'transport_type': :'transportType',
|
|
83
|
+
'creation_type': :'creationType'
|
|
85
84
|
# rubocop:enable Style/SymbolLiteral
|
|
86
85
|
}
|
|
87
86
|
end
|
|
@@ -90,10 +89,10 @@ module OCI
|
|
|
90
89
|
def self.swagger_types
|
|
91
90
|
{
|
|
92
91
|
# rubocop:disable Style/SymbolLiteral
|
|
93
|
-
'creation_type': :'String',
|
|
94
92
|
'database_admin_password': :'String',
|
|
95
93
|
'protection_mode': :'String',
|
|
96
|
-
'transport_type': :'String'
|
|
94
|
+
'transport_type': :'String',
|
|
95
|
+
'creation_type': :'String'
|
|
97
96
|
# rubocop:enable Style/SymbolLiteral
|
|
98
97
|
}
|
|
99
98
|
end
|
|
@@ -106,6 +105,7 @@ module OCI
|
|
|
106
105
|
def self.get_subtype(object_hash)
|
|
107
106
|
type = object_hash[:'creationType'] # rubocop:disable Style/SymbolLiteral
|
|
108
107
|
|
|
108
|
+
return 'OCI::Database::Models::CreateDataGuardAssociationWithNewDbSystemDetails' if type == 'NewDbSystem'
|
|
109
109
|
return 'OCI::Database::Models::CreateDataGuardAssociationToExistingDbSystemDetails' if type == 'ExistingDbSystem'
|
|
110
110
|
|
|
111
111
|
# TODO: Log a warning when the subtype is not found.
|
|
@@ -119,22 +119,16 @@ module OCI
|
|
|
119
119
|
|
|
120
120
|
# Initializes the object
|
|
121
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
122
|
-
# @option attributes [String] :creation_type The value to assign to the {#creation_type} property
|
|
123
122
|
# @option attributes [String] :database_admin_password The value to assign to the {#database_admin_password} property
|
|
124
123
|
# @option attributes [String] :protection_mode The value to assign to the {#protection_mode} property
|
|
125
124
|
# @option attributes [String] :transport_type The value to assign to the {#transport_type} property
|
|
125
|
+
# @option attributes [String] :creation_type The value to assign to the {#creation_type} property
|
|
126
126
|
def initialize(attributes = {})
|
|
127
127
|
return unless attributes.is_a?(Hash)
|
|
128
128
|
|
|
129
129
|
# convert string to symbol for hash key
|
|
130
130
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
131
131
|
|
|
132
|
-
self.creation_type = attributes[:'creationType'] if attributes[:'creationType']
|
|
133
|
-
|
|
134
|
-
raise 'You cannot provide both :creationType and :creation_type' if attributes.key?(:'creationType') && attributes.key?(:'creation_type')
|
|
135
|
-
|
|
136
|
-
self.creation_type = attributes[:'creation_type'] if attributes[:'creation_type']
|
|
137
|
-
|
|
138
132
|
self.database_admin_password = attributes[:'databaseAdminPassword'] if attributes[:'databaseAdminPassword']
|
|
139
133
|
|
|
140
134
|
raise 'You cannot provide both :databaseAdminPassword and :database_admin_password' if attributes.key?(:'databaseAdminPassword') && attributes.key?(:'database_admin_password')
|
|
@@ -152,6 +146,12 @@ module OCI
|
|
|
152
146
|
raise 'You cannot provide both :transportType and :transport_type' if attributes.key?(:'transportType') && attributes.key?(:'transport_type')
|
|
153
147
|
|
|
154
148
|
self.transport_type = attributes[:'transport_type'] if attributes[:'transport_type']
|
|
149
|
+
|
|
150
|
+
self.creation_type = attributes[:'creationType'] if attributes[:'creationType']
|
|
151
|
+
|
|
152
|
+
raise 'You cannot provide both :creationType and :creation_type' if attributes.key?(:'creationType') && attributes.key?(:'creation_type')
|
|
153
|
+
|
|
154
|
+
self.creation_type = attributes[:'creation_type'] if attributes[:'creation_type']
|
|
155
155
|
end
|
|
156
156
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
157
157
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -185,10 +185,10 @@ module OCI
|
|
|
185
185
|
return true if equal?(other)
|
|
186
186
|
|
|
187
187
|
self.class == other.class &&
|
|
188
|
-
creation_type == other.creation_type &&
|
|
189
188
|
database_admin_password == other.database_admin_password &&
|
|
190
189
|
protection_mode == other.protection_mode &&
|
|
191
|
-
transport_type == other.transport_type
|
|
190
|
+
transport_type == other.transport_type &&
|
|
191
|
+
creation_type == other.creation_type
|
|
192
192
|
end
|
|
193
193
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
194
194
|
|
|
@@ -204,7 +204,7 @@ module OCI
|
|
|
204
204
|
# Calculates hash code according to all attributes.
|
|
205
205
|
# @return [Fixnum] Hash code
|
|
206
206
|
def hash
|
|
207
|
-
[
|
|
207
|
+
[database_admin_password, protection_mode, transport_type, creation_type].hash
|
|
208
208
|
end
|
|
209
209
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
210
210
|
|
|
@@ -7,7 +7,7 @@ require_relative 'create_data_guard_association_details'
|
|
|
7
7
|
module OCI
|
|
8
8
|
# The configuration details for creating a Data Guard association to an existing database.
|
|
9
9
|
class Database::Models::CreateDataGuardAssociationToExistingDbSystemDetails < Database::Models::CreateDataGuardAssociationDetails # rubocop:disable Metrics/LineLength
|
|
10
|
-
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system to create the standby database
|
|
10
|
+
# 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.
|
|
11
11
|
#
|
|
12
12
|
# @return [String]
|
|
13
13
|
attr_accessor :peer_db_system_id
|
|
@@ -16,10 +16,10 @@ module OCI
|
|
|
16
16
|
def self.attribute_map
|
|
17
17
|
{
|
|
18
18
|
# rubocop:disable Style/SymbolLiteral
|
|
19
|
-
'creation_type': :'creationType',
|
|
20
19
|
'database_admin_password': :'databaseAdminPassword',
|
|
21
20
|
'protection_mode': :'protectionMode',
|
|
22
21
|
'transport_type': :'transportType',
|
|
22
|
+
'creation_type': :'creationType',
|
|
23
23
|
'peer_db_system_id': :'peerDbSystemId'
|
|
24
24
|
# rubocop:enable Style/SymbolLiteral
|
|
25
25
|
}
|
|
@@ -29,10 +29,10 @@ module OCI
|
|
|
29
29
|
def self.swagger_types
|
|
30
30
|
{
|
|
31
31
|
# rubocop:disable Style/SymbolLiteral
|
|
32
|
-
'creation_type': :'String',
|
|
33
32
|
'database_admin_password': :'String',
|
|
34
33
|
'protection_mode': :'String',
|
|
35
34
|
'transport_type': :'String',
|
|
35
|
+
'creation_type': :'String',
|
|
36
36
|
'peer_db_system_id': :'String'
|
|
37
37
|
# rubocop:enable Style/SymbolLiteral
|
|
38
38
|
}
|
|
@@ -76,10 +76,10 @@ module OCI
|
|
|
76
76
|
return true if equal?(other)
|
|
77
77
|
|
|
78
78
|
self.class == other.class &&
|
|
79
|
-
creation_type == other.creation_type &&
|
|
80
79
|
database_admin_password == other.database_admin_password &&
|
|
81
80
|
protection_mode == other.protection_mode &&
|
|
82
81
|
transport_type == other.transport_type &&
|
|
82
|
+
creation_type == other.creation_type &&
|
|
83
83
|
peer_db_system_id == other.peer_db_system_id
|
|
84
84
|
end
|
|
85
85
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
@@ -96,7 +96,7 @@ module OCI
|
|
|
96
96
|
# Calculates hash code according to all attributes.
|
|
97
97
|
# @return [Fixnum] Hash code
|
|
98
98
|
def hash
|
|
99
|
-
[
|
|
99
|
+
[database_admin_password, protection_mode, transport_type, creation_type, peer_db_system_id].hash
|
|
100
100
|
end
|
|
101
101
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
102
102
|
|