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,25 +9,25 @@ 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::CreateDbHomeDetails # rubocop:disable Metrics/LineLength
|
|
12
|
-
#
|
|
13
|
-
# @return [
|
|
14
|
-
attr_accessor :
|
|
12
|
+
# The user-provided name of the database home.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :display_name
|
|
15
15
|
|
|
16
16
|
# **[Required]** A valid Oracle Database version. To get a list of supported versions, use the {#list_db_versions list_db_versions} operation.
|
|
17
17
|
# @return [String]
|
|
18
18
|
attr_accessor :db_version
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
# @return [
|
|
22
|
-
attr_accessor :
|
|
20
|
+
# This attribute is required.
|
|
21
|
+
# @return [OCI::Database::Models::CreateDatabaseDetails]
|
|
22
|
+
attr_accessor :database
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
27
27
|
# rubocop:disable Style/SymbolLiteral
|
|
28
|
-
'
|
|
28
|
+
'display_name': :'displayName',
|
|
29
29
|
'db_version': :'dbVersion',
|
|
30
|
-
'
|
|
30
|
+
'database': :'database'
|
|
31
31
|
# rubocop:enable Style/SymbolLiteral
|
|
32
32
|
}
|
|
33
33
|
end
|
|
@@ -36,9 +36,9 @@ module OCI
|
|
|
36
36
|
def self.swagger_types
|
|
37
37
|
{
|
|
38
38
|
# rubocop:disable Style/SymbolLiteral
|
|
39
|
-
'
|
|
39
|
+
'display_name': :'String',
|
|
40
40
|
'db_version': :'String',
|
|
41
|
-
'
|
|
41
|
+
'database': :'OCI::Database::Models::CreateDatabaseDetails'
|
|
42
42
|
# rubocop:enable Style/SymbolLiteral
|
|
43
43
|
}
|
|
44
44
|
end
|
|
@@ -49,16 +49,20 @@ module OCI
|
|
|
49
49
|
|
|
50
50
|
# Initializes the object
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
-
# @option attributes [OCI::Database::Models::CreateDatabaseDetails] :database The value to assign to the {#database} property
|
|
53
|
-
# @option attributes [String] :db_version The value to assign to the {#db_version} property
|
|
54
52
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
53
|
+
# @option attributes [String] :db_version The value to assign to the {#db_version} property
|
|
54
|
+
# @option attributes [OCI::Database::Models::CreateDatabaseDetails] :database The value to assign to the {#database} property
|
|
55
55
|
def initialize(attributes = {})
|
|
56
56
|
return unless attributes.is_a?(Hash)
|
|
57
57
|
|
|
58
58
|
# convert string to symbol for hash key
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
60
60
|
|
|
61
|
-
self.
|
|
61
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
62
|
+
|
|
63
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
64
|
+
|
|
65
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
62
66
|
|
|
63
67
|
self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
|
|
64
68
|
|
|
@@ -66,11 +70,7 @@ module OCI
|
|
|
66
70
|
|
|
67
71
|
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
|
68
72
|
|
|
69
|
-
self.
|
|
70
|
-
|
|
71
|
-
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
72
|
-
|
|
73
|
-
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
73
|
+
self.database = attributes[:'database'] if attributes[:'database']
|
|
74
74
|
end
|
|
75
75
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
76
76
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -84,9 +84,9 @@ module OCI
|
|
|
84
84
|
return true if equal?(other)
|
|
85
85
|
|
|
86
86
|
self.class == other.class &&
|
|
87
|
-
|
|
87
|
+
display_name == other.display_name &&
|
|
88
88
|
db_version == other.db_version &&
|
|
89
|
-
|
|
89
|
+
database == other.database
|
|
90
90
|
end
|
|
91
91
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
92
92
|
|
|
@@ -102,7 +102,7 @@ module OCI
|
|
|
102
102
|
# Calculates hash code according to all attributes.
|
|
103
103
|
# @return [Fixnum] Hash code
|
|
104
104
|
def hash
|
|
105
|
-
[
|
|
105
|
+
[display_name, db_version, database].hash
|
|
106
106
|
end
|
|
107
107
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
108
108
|
|
|
@@ -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::CreateDbHomeFromBackupDetails # rubocop:disable Metrics/LineLength
|
|
12
|
-
# This attribute is required.
|
|
13
|
-
# @return [OCI::Database::Models::CreateDatabaseFromBackupDetails]
|
|
14
|
-
attr_accessor :database
|
|
15
|
-
|
|
16
12
|
# The user-provided name of the database home.
|
|
17
13
|
# @return [String]
|
|
18
14
|
attr_accessor :display_name
|
|
19
15
|
|
|
16
|
+
# This attribute is required.
|
|
17
|
+
# @return [OCI::Database::Models::CreateDatabaseFromBackupDetails]
|
|
18
|
+
attr_accessor :database
|
|
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
|
+
'database': :'database'
|
|
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
|
+
'database': :'OCI::Database::Models::CreateDatabaseFromBackupDetails'
|
|
36
36
|
# rubocop:enable Style/SymbolLiteral
|
|
37
37
|
}
|
|
38
38
|
end
|
|
@@ -43,21 +43,21 @@ module OCI
|
|
|
43
43
|
|
|
44
44
|
# Initializes the object
|
|
45
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
-
# @option attributes [OCI::Database::Models::CreateDatabaseFromBackupDetails] :database The value to assign to the {#database} property
|
|
47
46
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
47
|
+
# @option attributes [OCI::Database::Models::CreateDatabaseFromBackupDetails] :database The value to assign to the {#database} 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.database = attributes[:'database'] if attributes[:'database']
|
|
55
|
-
|
|
56
54
|
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
57
55
|
|
|
58
56
|
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
59
57
|
|
|
60
58
|
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
59
|
+
|
|
60
|
+
self.database = attributes[:'database'] if attributes[:'database']
|
|
61
61
|
end
|
|
62
62
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
63
63
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -71,8 +71,8 @@ module OCI
|
|
|
71
71
|
return true if equal?(other)
|
|
72
72
|
|
|
73
73
|
self.class == other.class &&
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
display_name == other.display_name &&
|
|
75
|
+
database == other.database
|
|
76
76
|
end
|
|
77
77
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
78
78
|
|
|
@@ -88,7 +88,7 @@ module OCI
|
|
|
88
88
|
# Calculates hash code according to all attributes.
|
|
89
89
|
# @return [Fixnum] Hash code
|
|
90
90
|
def hash
|
|
91
|
-
[
|
|
91
|
+
[display_name, database].hash
|
|
92
92
|
end
|
|
93
93
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
94
94
|
|
|
@@ -7,14 +7,14 @@ require_relative 'create_db_home_with_db_system_id_base'
|
|
|
7
7
|
module OCI
|
|
8
8
|
# CreateDbHomeWithDbSystemIdDetails model.
|
|
9
9
|
class Database::Models::CreateDbHomeWithDbSystemIdDetails < Database::Models::CreateDbHomeWithDbSystemIdBase # rubocop:disable Metrics/LineLength
|
|
10
|
-
# This attribute is required.
|
|
11
|
-
# @return [OCI::Database::Models::CreateDatabaseDetails]
|
|
12
|
-
attr_accessor :database
|
|
13
|
-
|
|
14
10
|
# **[Required]** A valid Oracle Database version. To get a list of supported versions, use the {#list_db_versions list_db_versions} operation.
|
|
15
11
|
# @return [String]
|
|
16
12
|
attr_accessor :db_version
|
|
17
13
|
|
|
14
|
+
# This attribute is required.
|
|
15
|
+
# @return [OCI::Database::Models::CreateDatabaseDetails]
|
|
16
|
+
attr_accessor :database
|
|
17
|
+
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
19
|
def self.attribute_map
|
|
20
20
|
{
|
|
@@ -22,8 +22,8 @@ module OCI
|
|
|
22
22
|
'db_system_id': :'dbSystemId',
|
|
23
23
|
'display_name': :'displayName',
|
|
24
24
|
'source': :'source',
|
|
25
|
-
'
|
|
26
|
-
'
|
|
25
|
+
'db_version': :'dbVersion',
|
|
26
|
+
'database': :'database'
|
|
27
27
|
# rubocop:enable Style/SymbolLiteral
|
|
28
28
|
}
|
|
29
29
|
end
|
|
@@ -35,8 +35,8 @@ module OCI
|
|
|
35
35
|
'db_system_id': :'String',
|
|
36
36
|
'display_name': :'String',
|
|
37
37
|
'source': :'String',
|
|
38
|
-
'
|
|
39
|
-
'
|
|
38
|
+
'db_version': :'String',
|
|
39
|
+
'database': :'OCI::Database::Models::CreateDatabaseDetails'
|
|
40
40
|
# rubocop:enable Style/SymbolLiteral
|
|
41
41
|
}
|
|
42
42
|
end
|
|
@@ -49,8 +49,8 @@ module OCI
|
|
|
49
49
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
50
|
# @option attributes [String] :db_system_id The value to assign to the {OCI::Database::Models::CreateDbHomeWithDbSystemIdBase#db_system_id #db_system_id} proprety
|
|
51
51
|
# @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::CreateDbHomeWithDbSystemIdBase#display_name #display_name} proprety
|
|
52
|
-
# @option attributes [OCI::Database::Models::CreateDatabaseDetails] :database The value to assign to the {#database} property
|
|
53
52
|
# @option attributes [String] :db_version The value to assign to the {#db_version} property
|
|
53
|
+
# @option attributes [OCI::Database::Models::CreateDatabaseDetails] :database The value to assign to the {#database} property
|
|
54
54
|
def initialize(attributes = {})
|
|
55
55
|
return unless attributes.is_a?(Hash)
|
|
56
56
|
|
|
@@ -61,13 +61,13 @@ module OCI
|
|
|
61
61
|
# convert string to symbol for hash key
|
|
62
62
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
63
63
|
|
|
64
|
-
self.database = attributes[:'database'] if attributes[:'database']
|
|
65
|
-
|
|
66
64
|
self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
|
|
67
65
|
|
|
68
66
|
raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
|
|
69
67
|
|
|
70
68
|
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
|
69
|
+
|
|
70
|
+
self.database = attributes[:'database'] if attributes[:'database']
|
|
71
71
|
end
|
|
72
72
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
73
73
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
@@ -84,8 +84,8 @@ module OCI
|
|
|
84
84
|
db_system_id == other.db_system_id &&
|
|
85
85
|
display_name == other.display_name &&
|
|
86
86
|
source == other.source &&
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
db_version == other.db_version &&
|
|
88
|
+
database == other.database
|
|
89
89
|
end
|
|
90
90
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
91
91
|
|
|
@@ -101,7 +101,7 @@ module OCI
|
|
|
101
101
|
# Calculates hash code according to all attributes.
|
|
102
102
|
# @return [Fixnum] Hash code
|
|
103
103
|
def hash
|
|
104
|
-
[db_system_id, display_name, source,
|
|
104
|
+
[db_system_id, display_name, source, db_version, database].hash
|
|
105
105
|
end
|
|
106
106
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
107
107
|
|
|
@@ -6,6 +6,11 @@ require 'date'
|
|
|
6
6
|
module OCI
|
|
7
7
|
# CreateExternalBackupJobDetails model.
|
|
8
8
|
class Database::Models::CreateExternalBackupJobDetails # rubocop:disable Metrics/LineLength
|
|
9
|
+
DATABASE_MODE_ENUM = [
|
|
10
|
+
DATABASE_MODE_SI = 'SI'.freeze,
|
|
11
|
+
DATABASE_MODE_RAC = 'RAC'.freeze
|
|
12
|
+
].freeze
|
|
13
|
+
|
|
9
14
|
DATABASE_EDITION_ENUM = [
|
|
10
15
|
DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze,
|
|
11
16
|
DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze,
|
|
@@ -13,32 +18,21 @@ module OCI
|
|
|
13
18
|
DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze
|
|
14
19
|
].freeze
|
|
15
20
|
|
|
16
|
-
DATABASE_MODE_ENUM = [
|
|
17
|
-
DATABASE_MODE_SI = 'SI'.freeze,
|
|
18
|
-
DATABASE_MODE_RAC = 'RAC'.freeze
|
|
19
|
-
].freeze
|
|
20
|
-
|
|
21
21
|
# **[Required]** The targeted availability domain for the backup.
|
|
22
22
|
# @return [String]
|
|
23
23
|
attr_accessor :availability_domain
|
|
24
24
|
|
|
25
|
-
# **[Required]** The character set for the database.
|
|
26
|
-
# @return [String]
|
|
27
|
-
attr_accessor :character_set
|
|
28
|
-
|
|
29
25
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment where this backup should be created.
|
|
30
26
|
# @return [String]
|
|
31
27
|
attr_accessor :compartment_id
|
|
32
28
|
|
|
33
|
-
# **[Required]**
|
|
34
|
-
# Note that 2-node RAC DB systems require Enterprise Edition - Extreme Performance.
|
|
35
|
-
#
|
|
29
|
+
# **[Required]** A user-friendly name for the backup. This name does not have to be unique.
|
|
36
30
|
# @return [String]
|
|
37
|
-
|
|
31
|
+
attr_accessor :display_name
|
|
38
32
|
|
|
39
|
-
# **[Required]**
|
|
33
|
+
# **[Required]** A valid Oracle Database version.
|
|
40
34
|
# @return [String]
|
|
41
|
-
|
|
35
|
+
attr_accessor :db_version
|
|
42
36
|
|
|
43
37
|
# **[Required]** The name of the database from which the backup is being taken.
|
|
44
38
|
# @return [String]
|
|
@@ -48,42 +42,48 @@ module OCI
|
|
|
48
42
|
# @return [String]
|
|
49
43
|
attr_accessor :db_unique_name
|
|
50
44
|
|
|
51
|
-
#
|
|
52
|
-
# @return [String]
|
|
53
|
-
attr_accessor :db_version
|
|
54
|
-
|
|
55
|
-
# **[Required]** A user-friendly name for the backup. This name does not have to be unique.
|
|
45
|
+
# The pluggable database name.
|
|
56
46
|
# @return [String]
|
|
57
|
-
attr_accessor :
|
|
47
|
+
attr_accessor :pdb_name
|
|
58
48
|
|
|
59
49
|
# **[Required]** The `DBID` of the Oracle Database being backed up.
|
|
60
50
|
# @return [Integer]
|
|
61
51
|
attr_accessor :external_database_identifier
|
|
62
52
|
|
|
53
|
+
# **[Required]** The character set for the database.
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :character_set
|
|
56
|
+
|
|
63
57
|
# **[Required]** The national character set for the database.
|
|
64
58
|
# @return [String]
|
|
65
59
|
attr_accessor :ncharacter_set
|
|
66
60
|
|
|
67
|
-
# The
|
|
61
|
+
# **[Required]** The mode (single instance or RAC) of the database being backed up.
|
|
68
62
|
# @return [String]
|
|
69
|
-
|
|
63
|
+
attr_reader :database_mode
|
|
64
|
+
|
|
65
|
+
# **[Required]** The Oracle Database edition to use for creating a database from this standalone backup.
|
|
66
|
+
# Note that 2-node RAC DB systems require Enterprise Edition - Extreme Performance.
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
attr_reader :database_edition
|
|
70
70
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
74
|
# rubocop:disable Style/SymbolLiteral
|
|
75
75
|
'availability_domain': :'availabilityDomain',
|
|
76
|
-
'character_set': :'characterSet',
|
|
77
76
|
'compartment_id': :'compartmentId',
|
|
78
|
-
'
|
|
79
|
-
'
|
|
77
|
+
'display_name': :'displayName',
|
|
78
|
+
'db_version': :'dbVersion',
|
|
80
79
|
'db_name': :'dbName',
|
|
81
80
|
'db_unique_name': :'dbUniqueName',
|
|
82
|
-
'
|
|
83
|
-
'display_name': :'displayName',
|
|
81
|
+
'pdb_name': :'pdbName',
|
|
84
82
|
'external_database_identifier': :'externalDatabaseIdentifier',
|
|
83
|
+
'character_set': :'characterSet',
|
|
85
84
|
'ncharacter_set': :'ncharacterSet',
|
|
86
|
-
'
|
|
85
|
+
'database_mode': :'databaseMode',
|
|
86
|
+
'database_edition': :'databaseEdition'
|
|
87
87
|
# rubocop:enable Style/SymbolLiteral
|
|
88
88
|
}
|
|
89
89
|
end
|
|
@@ -93,17 +93,17 @@ module OCI
|
|
|
93
93
|
{
|
|
94
94
|
# rubocop:disable Style/SymbolLiteral
|
|
95
95
|
'availability_domain': :'String',
|
|
96
|
-
'character_set': :'String',
|
|
97
96
|
'compartment_id': :'String',
|
|
98
|
-
'
|
|
99
|
-
'
|
|
97
|
+
'display_name': :'String',
|
|
98
|
+
'db_version': :'String',
|
|
100
99
|
'db_name': :'String',
|
|
101
100
|
'db_unique_name': :'String',
|
|
102
|
-
'
|
|
103
|
-
'display_name': :'String',
|
|
101
|
+
'pdb_name': :'String',
|
|
104
102
|
'external_database_identifier': :'Integer',
|
|
103
|
+
'character_set': :'String',
|
|
105
104
|
'ncharacter_set': :'String',
|
|
106
|
-
'
|
|
105
|
+
'database_mode': :'String',
|
|
106
|
+
'database_edition': :'String'
|
|
107
107
|
# rubocop:enable Style/SymbolLiteral
|
|
108
108
|
}
|
|
109
109
|
end
|
|
@@ -115,17 +115,17 @@ module OCI
|
|
|
115
115
|
# Initializes the object
|
|
116
116
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
117
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
|
118
|
-
# @option attributes [String] :character_set The value to assign to the {#character_set} property
|
|
119
118
|
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
120
|
-
# @option attributes [String] :
|
|
121
|
-
# @option attributes [String] :
|
|
119
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
120
|
+
# @option attributes [String] :db_version The value to assign to the {#db_version} property
|
|
122
121
|
# @option attributes [String] :db_name The value to assign to the {#db_name} property
|
|
123
122
|
# @option attributes [String] :db_unique_name The value to assign to the {#db_unique_name} property
|
|
124
|
-
# @option attributes [String] :
|
|
125
|
-
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
123
|
+
# @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
|
|
126
124
|
# @option attributes [Integer] :external_database_identifier The value to assign to the {#external_database_identifier} property
|
|
125
|
+
# @option attributes [String] :character_set The value to assign to the {#character_set} property
|
|
127
126
|
# @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
|
|
128
|
-
# @option attributes [String] :
|
|
127
|
+
# @option attributes [String] :database_mode The value to assign to the {#database_mode} property
|
|
128
|
+
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
|
129
129
|
def initialize(attributes = {})
|
|
130
130
|
return unless attributes.is_a?(Hash)
|
|
131
131
|
|
|
@@ -138,29 +138,23 @@ module OCI
|
|
|
138
138
|
|
|
139
139
|
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
|
140
140
|
|
|
141
|
-
self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
|
|
142
|
-
|
|
143
|
-
raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
|
|
144
|
-
|
|
145
|
-
self.character_set = attributes[:'character_set'] if attributes[:'character_set']
|
|
146
|
-
|
|
147
141
|
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
148
142
|
|
|
149
143
|
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
150
144
|
|
|
151
145
|
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
152
146
|
|
|
153
|
-
self.
|
|
147
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
154
148
|
|
|
155
|
-
raise 'You cannot provide both :
|
|
149
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
156
150
|
|
|
157
|
-
self.
|
|
151
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
|
158
152
|
|
|
159
|
-
self.
|
|
153
|
+
self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
|
|
160
154
|
|
|
161
|
-
raise 'You cannot provide both :
|
|
155
|
+
raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
|
|
162
156
|
|
|
163
|
-
self.
|
|
157
|
+
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
|
164
158
|
|
|
165
159
|
self.db_name = attributes[:'dbName'] if attributes[:'dbName']
|
|
166
160
|
|
|
@@ -174,17 +168,11 @@ module OCI
|
|
|
174
168
|
|
|
175
169
|
self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name']
|
|
176
170
|
|
|
177
|
-
self.
|
|
178
|
-
|
|
179
|
-
raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
|
|
180
|
-
|
|
181
|
-
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
|
182
|
-
|
|
183
|
-
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
|
171
|
+
self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
|
|
184
172
|
|
|
185
|
-
raise 'You cannot provide both :
|
|
173
|
+
raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
|
|
186
174
|
|
|
187
|
-
self.
|
|
175
|
+
self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
|
|
188
176
|
|
|
189
177
|
self.external_database_identifier = attributes[:'externalDatabaseIdentifier'] if attributes[:'externalDatabaseIdentifier']
|
|
190
178
|
|
|
@@ -192,39 +180,51 @@ module OCI
|
|
|
192
180
|
|
|
193
181
|
self.external_database_identifier = attributes[:'external_database_identifier'] if attributes[:'external_database_identifier']
|
|
194
182
|
|
|
183
|
+
self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
|
|
184
|
+
|
|
185
|
+
raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
|
|
186
|
+
|
|
187
|
+
self.character_set = attributes[:'character_set'] if attributes[:'character_set']
|
|
188
|
+
|
|
195
189
|
self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
|
|
196
190
|
|
|
197
191
|
raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
|
|
198
192
|
|
|
199
193
|
self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
|
|
200
194
|
|
|
201
|
-
self.
|
|
195
|
+
self.database_mode = attributes[:'databaseMode'] if attributes[:'databaseMode']
|
|
202
196
|
|
|
203
|
-
raise 'You cannot provide both :
|
|
197
|
+
raise 'You cannot provide both :databaseMode and :database_mode' if attributes.key?(:'databaseMode') && attributes.key?(:'database_mode')
|
|
204
198
|
|
|
205
|
-
self.
|
|
199
|
+
self.database_mode = attributes[:'database_mode'] if attributes[:'database_mode']
|
|
200
|
+
|
|
201
|
+
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
|
202
|
+
|
|
203
|
+
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
|
204
|
+
|
|
205
|
+
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
|
206
206
|
end
|
|
207
207
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
208
208
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
209
209
|
|
|
210
210
|
# Custom attribute writer method checking allowed values (enum).
|
|
211
|
-
# @param [Object]
|
|
212
|
-
def
|
|
211
|
+
# @param [Object] database_mode Object to be assigned
|
|
212
|
+
def database_mode=(database_mode)
|
|
213
213
|
# rubocop: disable Metrics/LineLength
|
|
214
|
-
raise "Invalid value for '
|
|
214
|
+
raise "Invalid value for 'database_mode': this must be one of the values in DATABASE_MODE_ENUM." if database_mode && !DATABASE_MODE_ENUM.include?(database_mode)
|
|
215
215
|
|
|
216
216
|
# rubocop: enable Metrics/LineLength
|
|
217
|
-
@
|
|
217
|
+
@database_mode = database_mode
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
# Custom attribute writer method checking allowed values (enum).
|
|
221
|
-
# @param [Object]
|
|
222
|
-
def
|
|
221
|
+
# @param [Object] database_edition Object to be assigned
|
|
222
|
+
def database_edition=(database_edition)
|
|
223
223
|
# rubocop: disable Metrics/LineLength
|
|
224
|
-
raise "Invalid value for '
|
|
224
|
+
raise "Invalid value for 'database_edition': this must be one of the values in DATABASE_EDITION_ENUM." if database_edition && !DATABASE_EDITION_ENUM.include?(database_edition)
|
|
225
225
|
|
|
226
226
|
# rubocop: enable Metrics/LineLength
|
|
227
|
-
@
|
|
227
|
+
@database_edition = database_edition
|
|
228
228
|
end
|
|
229
229
|
|
|
230
230
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
@@ -237,17 +237,17 @@ module OCI
|
|
|
237
237
|
|
|
238
238
|
self.class == other.class &&
|
|
239
239
|
availability_domain == other.availability_domain &&
|
|
240
|
-
character_set == other.character_set &&
|
|
241
240
|
compartment_id == other.compartment_id &&
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
display_name == other.display_name &&
|
|
242
|
+
db_version == other.db_version &&
|
|
244
243
|
db_name == other.db_name &&
|
|
245
244
|
db_unique_name == other.db_unique_name &&
|
|
246
|
-
|
|
247
|
-
display_name == other.display_name &&
|
|
245
|
+
pdb_name == other.pdb_name &&
|
|
248
246
|
external_database_identifier == other.external_database_identifier &&
|
|
247
|
+
character_set == other.character_set &&
|
|
249
248
|
ncharacter_set == other.ncharacter_set &&
|
|
250
|
-
|
|
249
|
+
database_mode == other.database_mode &&
|
|
250
|
+
database_edition == other.database_edition
|
|
251
251
|
end
|
|
252
252
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
|
253
253
|
|
|
@@ -263,7 +263,7 @@ module OCI
|
|
|
263
263
|
# Calculates hash code according to all attributes.
|
|
264
264
|
# @return [Fixnum] Hash code
|
|
265
265
|
def hash
|
|
266
|
-
[availability_domain,
|
|
266
|
+
[availability_domain, compartment_id, display_name, db_version, db_name, db_unique_name, pdb_name, external_database_identifier, character_set, ncharacter_set, database_mode, database_edition].hash
|
|
267
267
|
end
|
|
268
268
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
|
269
269
|
|