oci 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- 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,25 @@ module OCI
|
|
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
|
#
|
11
11
|
class Database::Models::DbVersionSummary # rubocop:disable Metrics/LineLength
|
12
|
-
# True if this version of the Oracle Database software supports pluggable databases.
|
13
|
-
# @return [BOOLEAN]
|
14
|
-
attr_accessor :supports_pdb
|
15
|
-
|
16
12
|
# **[Required]** A valid Oracle Database version.
|
17
13
|
# @return [String]
|
18
14
|
attr_accessor :version
|
19
15
|
|
16
|
+
# True if this version of the Oracle Database software is the latest version for a release.
|
17
|
+
# @return [BOOLEAN]
|
18
|
+
attr_accessor :is_latest_for_major_version
|
19
|
+
|
20
|
+
# True if this version of the Oracle Database software supports pluggable databases.
|
21
|
+
# @return [BOOLEAN]
|
22
|
+
attr_accessor :supports_pdb
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
27
|
# rubocop:disable Style/SymbolLiteral
|
24
|
-
'
|
25
|
-
'
|
28
|
+
'version': :'version',
|
29
|
+
'is_latest_for_major_version': :'isLatestForMajorVersion',
|
30
|
+
'supports_pdb': :'supportsPdb'
|
26
31
|
# rubocop:enable Style/SymbolLiteral
|
27
32
|
}
|
28
33
|
end
|
@@ -31,8 +36,9 @@ module OCI
|
|
31
36
|
def self.swagger_types
|
32
37
|
{
|
33
38
|
# rubocop:disable Style/SymbolLiteral
|
34
|
-
'
|
35
|
-
'
|
39
|
+
'version': :'String',
|
40
|
+
'is_latest_for_major_version': :'BOOLEAN',
|
41
|
+
'supports_pdb': :'BOOLEAN'
|
36
42
|
# rubocop:enable Style/SymbolLiteral
|
37
43
|
}
|
38
44
|
end
|
@@ -43,21 +49,28 @@ module OCI
|
|
43
49
|
|
44
50
|
# Initializes the object
|
45
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
-
# @option attributes [BOOLEAN] :supports_pdb The value to assign to the {#supports_pdb} property
|
47
52
|
# @option attributes [String] :version The value to assign to the {#version} property
|
53
|
+
# @option attributes [BOOLEAN] :is_latest_for_major_version The value to assign to the {#is_latest_for_major_version} property
|
54
|
+
# @option attributes [BOOLEAN] :supports_pdb The value to assign to the {#supports_pdb} property
|
48
55
|
def initialize(attributes = {})
|
49
56
|
return unless attributes.is_a?(Hash)
|
50
57
|
|
51
58
|
# convert string to symbol for hash key
|
52
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
60
|
|
61
|
+
self.version = attributes[:'version'] if attributes[:'version']
|
62
|
+
|
63
|
+
self.is_latest_for_major_version = attributes[:'isLatestForMajorVersion'] unless attributes[:'isLatestForMajorVersion'].nil?
|
64
|
+
|
65
|
+
raise 'You cannot provide both :isLatestForMajorVersion and :is_latest_for_major_version' if attributes.key?(:'isLatestForMajorVersion') && attributes.key?(:'is_latest_for_major_version')
|
66
|
+
|
67
|
+
self.is_latest_for_major_version = attributes[:'is_latest_for_major_version'] unless attributes[:'is_latest_for_major_version'].nil?
|
68
|
+
|
54
69
|
self.supports_pdb = attributes[:'supportsPdb'] unless attributes[:'supportsPdb'].nil?
|
55
70
|
|
56
71
|
raise 'You cannot provide both :supportsPdb and :supports_pdb' if attributes.key?(:'supportsPdb') && attributes.key?(:'supports_pdb')
|
57
72
|
|
58
73
|
self.supports_pdb = attributes[:'supports_pdb'] unless attributes[:'supports_pdb'].nil?
|
59
|
-
|
60
|
-
self.version = attributes[:'version'] if attributes[:'version']
|
61
74
|
end
|
62
75
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
63
76
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -71,8 +84,9 @@ module OCI
|
|
71
84
|
return true if equal?(other)
|
72
85
|
|
73
86
|
self.class == other.class &&
|
74
|
-
|
75
|
-
|
87
|
+
version == other.version &&
|
88
|
+
is_latest_for_major_version == other.is_latest_for_major_version &&
|
89
|
+
supports_pdb == other.supports_pdb
|
76
90
|
end
|
77
91
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
78
92
|
|
@@ -88,7 +102,7 @@ module OCI
|
|
88
102
|
# Calculates hash code according to all attributes.
|
89
103
|
# @return [Fixnum] Hash code
|
90
104
|
def hash
|
91
|
-
[
|
105
|
+
[version, is_latest_for_major_version, supports_pdb].hash
|
92
106
|
end
|
93
107
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
94
108
|
|
@@ -11,24 +11,18 @@ module OCI
|
|
11
11
|
# @return [String]
|
12
12
|
attr_accessor :backup_id
|
13
13
|
|
14
|
-
# **[Required]** The name of the Swift compartment bucket where the backup should be stored.
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :bucket_name
|
17
|
-
|
18
14
|
# **[Required]** An indicator for the provisioning state of the resource. If `TRUE`, the resource is still being provisioned.
|
19
15
|
# @return [BOOLEAN]
|
20
16
|
attr_accessor :provisioning
|
21
17
|
|
22
|
-
# The auth token to use for access to the Swift compartment bucket that will store the standalone backup.
|
23
|
-
# For information about auth tokens, see [Working with Auth Tokens](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm#two).
|
24
|
-
#
|
25
|
-
# @return [String]
|
26
|
-
attr_accessor :swift_password
|
27
|
-
|
28
18
|
# **[Required]** The Swift path to use as a destination for the standalone backup.
|
29
19
|
# @return [String]
|
30
20
|
attr_accessor :swift_path
|
31
21
|
|
22
|
+
# **[Required]** The name of the Swift compartment bucket where the backup should be stored.
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :bucket_name
|
25
|
+
|
32
26
|
# **[Required]** The tag for RMAN to apply to the backup.
|
33
27
|
# @return [String]
|
34
28
|
attr_accessor :tag
|
@@ -37,17 +31,23 @@ module OCI
|
|
37
31
|
# @return [String]
|
38
32
|
attr_accessor :user_name
|
39
33
|
|
34
|
+
# The auth token to use for access to the Swift compartment bucket that will store the standalone backup.
|
35
|
+
# For information about auth tokens, see [Working with Auth Tokens](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm#two).
|
36
|
+
#
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :swift_password
|
39
|
+
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
43
|
# rubocop:disable Style/SymbolLiteral
|
44
44
|
'backup_id': :'backupId',
|
45
|
-
'bucket_name': :'bucketName',
|
46
45
|
'provisioning': :'provisioning',
|
47
|
-
'swift_password': :'swiftPassword',
|
48
46
|
'swift_path': :'swiftPath',
|
47
|
+
'bucket_name': :'bucketName',
|
49
48
|
'tag': :'tag',
|
50
|
-
'user_name': :'userName'
|
49
|
+
'user_name': :'userName',
|
50
|
+
'swift_password': :'swiftPassword'
|
51
51
|
# rubocop:enable Style/SymbolLiteral
|
52
52
|
}
|
53
53
|
end
|
@@ -57,12 +57,12 @@ module OCI
|
|
57
57
|
{
|
58
58
|
# rubocop:disable Style/SymbolLiteral
|
59
59
|
'backup_id': :'String',
|
60
|
-
'bucket_name': :'String',
|
61
60
|
'provisioning': :'BOOLEAN',
|
62
|
-
'swift_password': :'String',
|
63
61
|
'swift_path': :'String',
|
62
|
+
'bucket_name': :'String',
|
64
63
|
'tag': :'String',
|
65
|
-
'user_name': :'String'
|
64
|
+
'user_name': :'String',
|
65
|
+
'swift_password': :'String'
|
66
66
|
# rubocop:enable Style/SymbolLiteral
|
67
67
|
}
|
68
68
|
end
|
@@ -74,12 +74,12 @@ module OCI
|
|
74
74
|
# Initializes the object
|
75
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
76
76
|
# @option attributes [String] :backup_id The value to assign to the {#backup_id} property
|
77
|
-
# @option attributes [String] :bucket_name The value to assign to the {#bucket_name} property
|
78
77
|
# @option attributes [BOOLEAN] :provisioning The value to assign to the {#provisioning} property
|
79
|
-
# @option attributes [String] :swift_password The value to assign to the {#swift_password} property
|
80
78
|
# @option attributes [String] :swift_path The value to assign to the {#swift_path} property
|
79
|
+
# @option attributes [String] :bucket_name The value to assign to the {#bucket_name} property
|
81
80
|
# @option attributes [String] :tag The value to assign to the {#tag} property
|
82
81
|
# @option attributes [String] :user_name The value to assign to the {#user_name} property
|
82
|
+
# @option attributes [String] :swift_password The value to assign to the {#swift_password} property
|
83
83
|
def initialize(attributes = {})
|
84
84
|
return unless attributes.is_a?(Hash)
|
85
85
|
|
@@ -92,26 +92,20 @@ module OCI
|
|
92
92
|
|
93
93
|
self.backup_id = attributes[:'backup_id'] if attributes[:'backup_id']
|
94
94
|
|
95
|
-
self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName']
|
96
|
-
|
97
|
-
raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name')
|
98
|
-
|
99
|
-
self.bucket_name = attributes[:'bucket_name'] if attributes[:'bucket_name']
|
100
|
-
|
101
95
|
self.provisioning = attributes[:'provisioning'] unless attributes[:'provisioning'].nil?
|
102
96
|
|
103
|
-
self.swift_password = attributes[:'swiftPassword'] if attributes[:'swiftPassword']
|
104
|
-
|
105
|
-
raise 'You cannot provide both :swiftPassword and :swift_password' if attributes.key?(:'swiftPassword') && attributes.key?(:'swift_password')
|
106
|
-
|
107
|
-
self.swift_password = attributes[:'swift_password'] if attributes[:'swift_password']
|
108
|
-
|
109
97
|
self.swift_path = attributes[:'swiftPath'] if attributes[:'swiftPath']
|
110
98
|
|
111
99
|
raise 'You cannot provide both :swiftPath and :swift_path' if attributes.key?(:'swiftPath') && attributes.key?(:'swift_path')
|
112
100
|
|
113
101
|
self.swift_path = attributes[:'swift_path'] if attributes[:'swift_path']
|
114
102
|
|
103
|
+
self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName']
|
104
|
+
|
105
|
+
raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name')
|
106
|
+
|
107
|
+
self.bucket_name = attributes[:'bucket_name'] if attributes[:'bucket_name']
|
108
|
+
|
115
109
|
self.tag = attributes[:'tag'] if attributes[:'tag']
|
116
110
|
|
117
111
|
self.user_name = attributes[:'userName'] if attributes[:'userName']
|
@@ -119,6 +113,12 @@ module OCI
|
|
119
113
|
raise 'You cannot provide both :userName and :user_name' if attributes.key?(:'userName') && attributes.key?(:'user_name')
|
120
114
|
|
121
115
|
self.user_name = attributes[:'user_name'] if attributes[:'user_name']
|
116
|
+
|
117
|
+
self.swift_password = attributes[:'swiftPassword'] if attributes[:'swiftPassword']
|
118
|
+
|
119
|
+
raise 'You cannot provide both :swiftPassword and :swift_password' if attributes.key?(:'swiftPassword') && attributes.key?(:'swift_password')
|
120
|
+
|
121
|
+
self.swift_password = attributes[:'swift_password'] if attributes[:'swift_password']
|
122
122
|
end
|
123
123
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
124
124
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -133,12 +133,12 @@ module OCI
|
|
133
133
|
|
134
134
|
self.class == other.class &&
|
135
135
|
backup_id == other.backup_id &&
|
136
|
-
bucket_name == other.bucket_name &&
|
137
136
|
provisioning == other.provisioning &&
|
138
|
-
swift_password == other.swift_password &&
|
139
137
|
swift_path == other.swift_path &&
|
138
|
+
bucket_name == other.bucket_name &&
|
140
139
|
tag == other.tag &&
|
141
|
-
user_name == other.user_name
|
140
|
+
user_name == other.user_name &&
|
141
|
+
swift_password == other.swift_password
|
142
142
|
end
|
143
143
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
144
144
|
|
@@ -154,7 +154,7 @@ module OCI
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Fixnum] Hash code
|
156
156
|
def hash
|
157
|
-
[backup_id,
|
157
|
+
[backup_id, provisioning, swift_path, bucket_name, tag, user_name, swift_password].hash
|
158
158
|
end
|
159
159
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
160
160
|
|
@@ -7,7 +7,7 @@ module OCI
|
|
7
7
|
# Details to create and download a wallet for an Oracle Autonomous Data Warehouse.
|
8
8
|
#
|
9
9
|
class Database::Models::GenerateAutonomousDataWarehouseWalletDetails # rubocop:disable Metrics/LineLength
|
10
|
-
# **[Required]** The password to encrypt the keys inside the wallet.
|
10
|
+
# **[Required]** The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.
|
11
11
|
# @return [String]
|
12
12
|
attr_accessor :password
|
13
13
|
|
@@ -7,7 +7,7 @@ module OCI
|
|
7
7
|
# Details to create and download an Oracle Autonomous Transaction Processing database wallet.
|
8
8
|
#
|
9
9
|
class Database::Models::GenerateAutonomousDatabaseWalletDetails # rubocop:disable Metrics/LineLength
|
10
|
-
# **[Required]** The password to encrypt the keys inside the wallet.
|
10
|
+
# **[Required]** The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.
|
11
11
|
# @return [String]
|
12
12
|
attr_accessor :password
|
13
13
|
|
@@ -15,10 +15,31 @@ module OCI
|
|
15
15
|
SOURCE_DB_BACKUP = 'DB_BACKUP'.freeze
|
16
16
|
].freeze
|
17
17
|
|
18
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment the DB system belongs in.
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :compartment_id
|
21
|
+
|
22
|
+
# The user-friendly name for the DB system. The name does not have to be unique.
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :display_name
|
25
|
+
|
18
26
|
# **[Required]** The availability domain where the DB system is located.
|
19
27
|
# @return [String]
|
20
28
|
attr_accessor :availability_domain
|
21
29
|
|
30
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
|
31
|
+
#
|
32
|
+
# **Subnet Restrictions:**
|
33
|
+
# - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
|
34
|
+
# - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
|
35
|
+
#
|
36
|
+
# These subnets are used by the Oracle Clusterware private interconnect on the database instance.
|
37
|
+
# Specifying an overlapping subnet will cause the private interconnect to malfunction.
|
38
|
+
# This restriction applies to both the client subnet and the backup subnet.
|
39
|
+
#
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :subnet_id
|
42
|
+
|
22
43
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems.
|
23
44
|
#
|
24
45
|
# **Subnet Restrictions:** See the subnet restrictions information for **subnetId**.
|
@@ -26,14 +47,41 @@ module OCI
|
|
26
47
|
# @return [String]
|
27
48
|
attr_accessor :backup_subnet_id
|
28
49
|
|
29
|
-
# The
|
50
|
+
# **[Required]** The shape of the DB system. The shape determines resources allocated to the DB system.
|
51
|
+
# - For virtual machine shapes, the number of CPU cores and memory
|
52
|
+
# - For bare metal and Exadata shapes, the number of CPU cores, memory, and storage
|
53
|
+
#
|
54
|
+
# To get a list of shapes, use the {#list_db_system_shapes list_db_system_shapes} operation.
|
30
55
|
#
|
31
56
|
# @return [String]
|
32
|
-
attr_accessor :
|
57
|
+
attr_accessor :shape
|
33
58
|
|
34
|
-
#
|
59
|
+
# If true, Sparse Diskgroup is configured for Exadata dbsystem. If False, Sparse diskgroup is not configured.
|
60
|
+
#
|
61
|
+
# @return [BOOLEAN]
|
62
|
+
attr_accessor :sparse_diskgroup
|
63
|
+
|
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 10,000 characters.
|
65
|
+
# @return [Array<String>]
|
66
|
+
attr_accessor :ssh_public_keys
|
67
|
+
|
68
|
+
# **[Required]** The hostname for the DB system. The hostname must begin with an alphabetic character and
|
69
|
+
# can contain a maximum of 30 alphanumeric characters, including hyphens (-).
|
70
|
+
#
|
71
|
+
# The maximum length of the combined hostname and domain is 63 characters.
|
72
|
+
#
|
73
|
+
# **Note:** The hostname must be unique within the subnet. If it is not unique,
|
74
|
+
# the DB system will fail to provision.
|
75
|
+
#
|
35
76
|
# @return [String]
|
36
|
-
attr_accessor :
|
77
|
+
attr_accessor :hostname
|
78
|
+
|
79
|
+
# A domain name used for the DB system. If the Oracle-provided Internet and VCN
|
80
|
+
# Resolver is enabled for the specified subnet, the domain name for the subnet is used
|
81
|
+
# (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted.
|
82
|
+
#
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :domain
|
37
85
|
|
38
86
|
# **[Required]** The number of CPU cores to enable for a bare metal or Exadata DB system. The valid values depend on the specified shape:
|
39
87
|
#
|
@@ -52,6 +100,11 @@ module OCI
|
|
52
100
|
# @return [Integer]
|
53
101
|
attr_accessor :cpu_core_count
|
54
102
|
|
103
|
+
# The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive.
|
104
|
+
#
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :cluster_name
|
107
|
+
|
55
108
|
# The percentage assigned to DATA storage (user data and database files).
|
56
109
|
# The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups).
|
57
110
|
# Specify 80 or 40. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems.
|
@@ -59,24 +112,15 @@ module OCI
|
|
59
112
|
# @return [Integer]
|
60
113
|
attr_accessor :data_storage_percentage
|
61
114
|
|
62
|
-
#
|
63
|
-
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
64
|
-
#
|
65
|
-
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
115
|
+
# Size (in GB) of the initial data volume that will be created and attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume.
|
66
116
|
#
|
67
|
-
# @return [
|
68
|
-
attr_accessor :
|
69
|
-
|
70
|
-
# The user-friendly name for the DB system. The name does not have to be unique.
|
71
|
-
# @return [String]
|
72
|
-
attr_accessor :display_name
|
117
|
+
# @return [Integer]
|
118
|
+
attr_accessor :initial_data_storage_size_in_gb
|
73
119
|
|
74
|
-
#
|
75
|
-
# Resolver is enabled for the specified subnet, the domain name for the subnet is used
|
76
|
-
# (do not provide one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted.
|
120
|
+
# The number of nodes to launch for a 2-node RAC virtual machine DB system.
|
77
121
|
#
|
78
|
-
# @return [
|
79
|
-
attr_accessor :
|
122
|
+
# @return [Integer]
|
123
|
+
attr_accessor :node_count
|
80
124
|
|
81
125
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
82
126
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
@@ -86,35 +130,13 @@ module OCI
|
|
86
130
|
# @return [Hash<String, String>]
|
87
131
|
attr_accessor :freeform_tags
|
88
132
|
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# The maximum length of the combined hostname and domain is 63 characters.
|
93
|
-
#
|
94
|
-
# **Note:** The hostname must be unique within the subnet. If it is not unique,
|
95
|
-
# the DB system will fail to provision.
|
96
|
-
#
|
97
|
-
# @return [String]
|
98
|
-
attr_accessor :hostname
|
99
|
-
|
100
|
-
# Size (in GB) of the initial data volume that will be created and attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software volume.
|
101
|
-
#
|
102
|
-
# @return [Integer]
|
103
|
-
attr_accessor :initial_data_storage_size_in_gb
|
104
|
-
|
105
|
-
# The number of nodes to launch for a 2-node RAC virtual machine DB system.
|
106
|
-
#
|
107
|
-
# @return [Integer]
|
108
|
-
attr_accessor :node_count
|
109
|
-
|
110
|
-
# **[Required]** The shape of the DB system. The shape determines resources allocated to the DB system.
|
111
|
-
# - For virtual machine shapes, the number of CPU cores and memory
|
112
|
-
# - For bare metal and Exadata shapes, the number of CPU cores, memory, and storage
|
133
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
134
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
113
135
|
#
|
114
|
-
#
|
136
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
115
137
|
#
|
116
|
-
# @return [String]
|
117
|
-
attr_accessor :
|
138
|
+
# @return [Hash<String, Hash<String, Object>>]
|
139
|
+
attr_accessor :defined_tags
|
118
140
|
|
119
141
|
# The source of the database:
|
120
142
|
# NONE for creating a new database. DB_BACKUP for creating a new database by restoring from a backup. The default is NONE.
|
@@ -122,44 +144,28 @@ module OCI
|
|
122
144
|
# @return [String]
|
123
145
|
attr_reader :source
|
124
146
|
|
125
|
-
# **[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 10,000 characters.
|
126
|
-
# @return [Array<String>]
|
127
|
-
attr_accessor :ssh_public_keys
|
128
|
-
|
129
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
|
130
|
-
#
|
131
|
-
# **Subnet Restrictions:**
|
132
|
-
# - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
|
133
|
-
# - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
|
134
|
-
#
|
135
|
-
# These subnets are used by the Oracle Clusterware private interconnect on the database instance.
|
136
|
-
# Specifying an overlapping subnet will cause the private interconnect to malfunction.
|
137
|
-
# This restriction applies to both the client subnet and the backup subnet.
|
138
|
-
#
|
139
|
-
# @return [String]
|
140
|
-
attr_accessor :subnet_id
|
141
|
-
|
142
147
|
# Attribute mapping from ruby-style variable name to JSON key.
|
143
148
|
def self.attribute_map
|
144
149
|
{
|
145
150
|
# rubocop:disable Style/SymbolLiteral
|
151
|
+
'compartment_id': :'compartmentId',
|
152
|
+
'display_name': :'displayName',
|
146
153
|
'availability_domain': :'availabilityDomain',
|
154
|
+
'subnet_id': :'subnetId',
|
147
155
|
'backup_subnet_id': :'backupSubnetId',
|
148
|
-
'
|
149
|
-
'
|
156
|
+
'shape': :'shape',
|
157
|
+
'sparse_diskgroup': :'sparseDiskgroup',
|
158
|
+
'ssh_public_keys': :'sshPublicKeys',
|
159
|
+
'hostname': :'hostname',
|
160
|
+
'domain': :'domain',
|
150
161
|
'cpu_core_count': :'cpuCoreCount',
|
162
|
+
'cluster_name': :'clusterName',
|
151
163
|
'data_storage_percentage': :'dataStoragePercentage',
|
152
|
-
'defined_tags': :'definedTags',
|
153
|
-
'display_name': :'displayName',
|
154
|
-
'domain': :'domain',
|
155
|
-
'freeform_tags': :'freeformTags',
|
156
|
-
'hostname': :'hostname',
|
157
164
|
'initial_data_storage_size_in_gb': :'initialDataStorageSizeInGB',
|
158
165
|
'node_count': :'nodeCount',
|
159
|
-
'
|
160
|
-
'
|
161
|
-
'
|
162
|
-
'subnet_id': :'subnetId'
|
166
|
+
'freeform_tags': :'freeformTags',
|
167
|
+
'defined_tags': :'definedTags',
|
168
|
+
'source': :'source'
|
163
169
|
# rubocop:enable Style/SymbolLiteral
|
164
170
|
}
|
165
171
|
end
|
@@ -168,23 +174,24 @@ module OCI
|
|
168
174
|
def self.swagger_types
|
169
175
|
{
|
170
176
|
# rubocop:disable Style/SymbolLiteral
|
177
|
+
'compartment_id': :'String',
|
178
|
+
'display_name': :'String',
|
171
179
|
'availability_domain': :'String',
|
180
|
+
'subnet_id': :'String',
|
172
181
|
'backup_subnet_id': :'String',
|
173
|
-
'
|
174
|
-
'
|
182
|
+
'shape': :'String',
|
183
|
+
'sparse_diskgroup': :'BOOLEAN',
|
184
|
+
'ssh_public_keys': :'Array<String>',
|
185
|
+
'hostname': :'String',
|
186
|
+
'domain': :'String',
|
175
187
|
'cpu_core_count': :'Integer',
|
188
|
+
'cluster_name': :'String',
|
176
189
|
'data_storage_percentage': :'Integer',
|
177
|
-
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
178
|
-
'display_name': :'String',
|
179
|
-
'domain': :'String',
|
180
|
-
'freeform_tags': :'Hash<String, String>',
|
181
|
-
'hostname': :'String',
|
182
190
|
'initial_data_storage_size_in_gb': :'Integer',
|
183
191
|
'node_count': :'Integer',
|
184
|
-
'
|
185
|
-
'
|
186
|
-
'
|
187
|
-
'subnet_id': :'String'
|
192
|
+
'freeform_tags': :'Hash<String, String>',
|
193
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
194
|
+
'source': :'String'
|
188
195
|
# rubocop:enable Style/SymbolLiteral
|
189
196
|
}
|
190
197
|
end
|
@@ -211,86 +218,95 @@ module OCI
|
|
211
218
|
|
212
219
|
# Initializes the object
|
213
220
|
# @param [Hash] attributes Model attributes in the form of hash
|
221
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
222
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
214
223
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
224
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
215
225
|
# @option attributes [String] :backup_subnet_id The value to assign to the {#backup_subnet_id} property
|
216
|
-
# @option attributes [String] :
|
217
|
-
# @option attributes [
|
226
|
+
# @option attributes [String] :shape The value to assign to the {#shape} property
|
227
|
+
# @option attributes [BOOLEAN] :sparse_diskgroup The value to assign to the {#sparse_diskgroup} property
|
228
|
+
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
|
229
|
+
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
230
|
+
# @option attributes [String] :domain The value to assign to the {#domain} property
|
218
231
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
232
|
+
# @option attributes [String] :cluster_name The value to assign to the {#cluster_name} property
|
219
233
|
# @option attributes [Integer] :data_storage_percentage The value to assign to the {#data_storage_percentage} property
|
220
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
221
|
-
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
222
|
-
# @option attributes [String] :domain The value to assign to the {#domain} property
|
223
|
-
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
224
|
-
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
225
234
|
# @option attributes [Integer] :initial_data_storage_size_in_gb The value to assign to the {#initial_data_storage_size_in_gb} property
|
226
235
|
# @option attributes [Integer] :node_count The value to assign to the {#node_count} property
|
227
|
-
# @option attributes [String] :
|
236
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
237
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
228
238
|
# @option attributes [String] :source The value to assign to the {#source} property
|
229
|
-
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
|
230
|
-
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
231
239
|
def initialize(attributes = {})
|
232
240
|
return unless attributes.is_a?(Hash)
|
233
241
|
|
234
242
|
# convert string to symbol for hash key
|
235
243
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
236
244
|
|
245
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
246
|
+
|
247
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
248
|
+
|
249
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
250
|
+
|
251
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
252
|
+
|
253
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
254
|
+
|
255
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
256
|
+
|
237
257
|
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
238
258
|
|
239
259
|
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
240
260
|
|
241
261
|
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
242
262
|
|
243
|
-
self.
|
244
|
-
|
245
|
-
raise 'You cannot provide both :backupSubnetId and :backup_subnet_id' if attributes.key?(:'backupSubnetId') && attributes.key?(:'backup_subnet_id')
|
246
|
-
|
247
|
-
self.backup_subnet_id = attributes[:'backup_subnet_id'] if attributes[:'backup_subnet_id']
|
263
|
+
self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
|
248
264
|
|
249
|
-
|
265
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
250
266
|
|
251
|
-
|
267
|
+
self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
|
252
268
|
|
253
|
-
self.
|
269
|
+
self.backup_subnet_id = attributes[:'backupSubnetId'] if attributes[:'backupSubnetId']
|
254
270
|
|
255
|
-
|
271
|
+
raise 'You cannot provide both :backupSubnetId and :backup_subnet_id' if attributes.key?(:'backupSubnetId') && attributes.key?(:'backup_subnet_id')
|
256
272
|
|
257
|
-
|
273
|
+
self.backup_subnet_id = attributes[:'backup_subnet_id'] if attributes[:'backup_subnet_id']
|
258
274
|
|
259
|
-
self.
|
275
|
+
self.shape = attributes[:'shape'] if attributes[:'shape']
|
260
276
|
|
261
|
-
self.
|
277
|
+
self.sparse_diskgroup = attributes[:'sparseDiskgroup'] unless attributes[:'sparseDiskgroup'].nil?
|
262
278
|
|
263
|
-
raise 'You cannot provide both :
|
279
|
+
raise 'You cannot provide both :sparseDiskgroup and :sparse_diskgroup' if attributes.key?(:'sparseDiskgroup') && attributes.key?(:'sparse_diskgroup')
|
264
280
|
|
265
|
-
self.
|
281
|
+
self.sparse_diskgroup = attributes[:'sparse_diskgroup'] unless attributes[:'sparse_diskgroup'].nil?
|
266
282
|
|
267
|
-
self.
|
283
|
+
self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
|
268
284
|
|
269
|
-
raise 'You cannot provide both :
|
285
|
+
raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
|
270
286
|
|
271
|
-
self.
|
287
|
+
self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
|
272
288
|
|
273
|
-
self.
|
289
|
+
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
274
290
|
|
275
|
-
|
291
|
+
self.domain = attributes[:'domain'] if attributes[:'domain']
|
276
292
|
|
277
|
-
self.
|
293
|
+
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
278
294
|
|
279
|
-
|
295
|
+
raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
|
280
296
|
|
281
|
-
|
297
|
+
self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
|
282
298
|
|
283
|
-
self.
|
299
|
+
self.cluster_name = attributes[:'clusterName'] if attributes[:'clusterName']
|
284
300
|
|
285
|
-
|
301
|
+
raise 'You cannot provide both :clusterName and :cluster_name' if attributes.key?(:'clusterName') && attributes.key?(:'cluster_name')
|
286
302
|
|
287
|
-
self.
|
303
|
+
self.cluster_name = attributes[:'cluster_name'] if attributes[:'cluster_name']
|
288
304
|
|
289
|
-
|
305
|
+
self.data_storage_percentage = attributes[:'dataStoragePercentage'] if attributes[:'dataStoragePercentage']
|
290
306
|
|
291
|
-
|
307
|
+
raise 'You cannot provide both :dataStoragePercentage and :data_storage_percentage' if attributes.key?(:'dataStoragePercentage') && attributes.key?(:'data_storage_percentage')
|
292
308
|
|
293
|
-
self.
|
309
|
+
self.data_storage_percentage = attributes[:'data_storage_percentage'] if attributes[:'data_storage_percentage']
|
294
310
|
|
295
311
|
self.initial_data_storage_size_in_gb = attributes[:'initialDataStorageSizeInGB'] if attributes[:'initialDataStorageSizeInGB']
|
296
312
|
|
@@ -304,22 +320,20 @@ module OCI
|
|
304
320
|
|
305
321
|
self.node_count = attributes[:'node_count'] if attributes[:'node_count']
|
306
322
|
|
307
|
-
self.
|
308
|
-
|
309
|
-
self.source = attributes[:'source'] if attributes[:'source']
|
310
|
-
self.source = "NONE" if source.nil? && !attributes.key?(:'source') # rubocop:disable Style/StringLiterals
|
323
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
311
324
|
|
312
|
-
|
325
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
313
326
|
|
314
|
-
|
327
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
315
328
|
|
316
|
-
self.
|
329
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
317
330
|
|
318
|
-
|
331
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
319
332
|
|
320
|
-
|
333
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
321
334
|
|
322
|
-
self.
|
335
|
+
self.source = attributes[:'source'] if attributes[:'source']
|
336
|
+
self.source = "NONE" if source.nil? && !attributes.key?(:'source') # rubocop:disable Style/StringLiterals
|
323
337
|
end
|
324
338
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
325
339
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -343,23 +357,24 @@ module OCI
|
|
343
357
|
return true if equal?(other)
|
344
358
|
|
345
359
|
self.class == other.class &&
|
360
|
+
compartment_id == other.compartment_id &&
|
361
|
+
display_name == other.display_name &&
|
346
362
|
availability_domain == other.availability_domain &&
|
363
|
+
subnet_id == other.subnet_id &&
|
347
364
|
backup_subnet_id == other.backup_subnet_id &&
|
348
|
-
|
349
|
-
|
365
|
+
shape == other.shape &&
|
366
|
+
sparse_diskgroup == other.sparse_diskgroup &&
|
367
|
+
ssh_public_keys == other.ssh_public_keys &&
|
368
|
+
hostname == other.hostname &&
|
369
|
+
domain == other.domain &&
|
350
370
|
cpu_core_count == other.cpu_core_count &&
|
371
|
+
cluster_name == other.cluster_name &&
|
351
372
|
data_storage_percentage == other.data_storage_percentage &&
|
352
|
-
defined_tags == other.defined_tags &&
|
353
|
-
display_name == other.display_name &&
|
354
|
-
domain == other.domain &&
|
355
|
-
freeform_tags == other.freeform_tags &&
|
356
|
-
hostname == other.hostname &&
|
357
373
|
initial_data_storage_size_in_gb == other.initial_data_storage_size_in_gb &&
|
358
374
|
node_count == other.node_count &&
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
subnet_id == other.subnet_id
|
375
|
+
freeform_tags == other.freeform_tags &&
|
376
|
+
defined_tags == other.defined_tags &&
|
377
|
+
source == other.source
|
363
378
|
end
|
364
379
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
365
380
|
|
@@ -375,7 +390,7 @@ module OCI
|
|
375
390
|
# Calculates hash code according to all attributes.
|
376
391
|
# @return [Fixnum] Hash code
|
377
392
|
def hash
|
378
|
-
[
|
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
|
379
394
|
end
|
380
395
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
381
396
|
|