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
@@ -0,0 +1,218 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
require_relative 'create_data_guard_association_details'
|
5
|
+
|
6
|
+
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
|
+
module OCI
|
8
|
+
# The configuration details for creating a Data Guard association to an existing database. A new DbSystem will be launched for standby database.
|
9
|
+
class Database::Models::CreateDataGuardAssociationWithNewDbSystemDetails < Database::Models::CreateDataGuardAssociationDetails # rubocop:disable Metrics/LineLength
|
10
|
+
# The user-friendly name of the DB system that will contain the the standby database. The display name does not have to be unique.
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :display_name
|
13
|
+
|
14
|
+
# The name of the availability domain that the standby database DB system will be located in. For example- \"Uocm:PHX-AD-1\".
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :availability_domain
|
17
|
+
|
18
|
+
# The OCID of the subnet the DB system is associated with.
|
19
|
+
# **Subnet Restrictions:**
|
20
|
+
# - For 1- and 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.16.16/28
|
21
|
+
#
|
22
|
+
# These subnets are used by the Oracle Clusterware private interconnect on the database instance.
|
23
|
+
# Specifying an overlapping subnet will cause the private interconnect to malfunction.
|
24
|
+
# This restriction applies to both the client subnet and backup subnet.
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :subnet_id
|
28
|
+
|
29
|
+
# The host name for the DB Node.
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :hostname
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
# rubocop:disable Style/SymbolLiteral
|
37
|
+
'database_admin_password': :'databaseAdminPassword',
|
38
|
+
'protection_mode': :'protectionMode',
|
39
|
+
'transport_type': :'transportType',
|
40
|
+
'creation_type': :'creationType',
|
41
|
+
'display_name': :'displayName',
|
42
|
+
'availability_domain': :'availabilityDomain',
|
43
|
+
'subnet_id': :'subnetId',
|
44
|
+
'hostname': :'hostname'
|
45
|
+
# rubocop:enable Style/SymbolLiteral
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
# rubocop:disable Style/SymbolLiteral
|
53
|
+
'database_admin_password': :'String',
|
54
|
+
'protection_mode': :'String',
|
55
|
+
'transport_type': :'String',
|
56
|
+
'creation_type': :'String',
|
57
|
+
'display_name': :'String',
|
58
|
+
'availability_domain': :'String',
|
59
|
+
'subnet_id': :'String',
|
60
|
+
'hostname': :'String'
|
61
|
+
# rubocop:enable Style/SymbolLiteral
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
66
|
+
# rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
67
|
+
|
68
|
+
|
69
|
+
# Initializes the object
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
+
# @option attributes [String] :database_admin_password The value to assign to the {OCI::Database::Models::CreateDataGuardAssociationDetails#database_admin_password #database_admin_password} proprety
|
72
|
+
# @option attributes [String] :protection_mode The value to assign to the {OCI::Database::Models::CreateDataGuardAssociationDetails#protection_mode #protection_mode} proprety
|
73
|
+
# @option attributes [String] :transport_type The value to assign to the {OCI::Database::Models::CreateDataGuardAssociationDetails#transport_type #transport_type} proprety
|
74
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
75
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
76
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
77
|
+
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
78
|
+
def initialize(attributes = {})
|
79
|
+
return unless attributes.is_a?(Hash)
|
80
|
+
|
81
|
+
attributes['creationType'] = 'NewDbSystem'
|
82
|
+
|
83
|
+
super(attributes)
|
84
|
+
|
85
|
+
# convert string to symbol for hash key
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
|
+
|
88
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
89
|
+
|
90
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
91
|
+
|
92
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
93
|
+
|
94
|
+
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
95
|
+
|
96
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
97
|
+
|
98
|
+
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
99
|
+
|
100
|
+
self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
|
101
|
+
|
102
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
103
|
+
|
104
|
+
self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
|
105
|
+
|
106
|
+
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
107
|
+
end
|
108
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
109
|
+
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
110
|
+
|
111
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
112
|
+
|
113
|
+
|
114
|
+
# Checks equality by comparing each attribute.
|
115
|
+
# @param [Object] other the other object to be compared
|
116
|
+
def ==(other)
|
117
|
+
return true if equal?(other)
|
118
|
+
|
119
|
+
self.class == other.class &&
|
120
|
+
database_admin_password == other.database_admin_password &&
|
121
|
+
protection_mode == other.protection_mode &&
|
122
|
+
transport_type == other.transport_type &&
|
123
|
+
creation_type == other.creation_type &&
|
124
|
+
display_name == other.display_name &&
|
125
|
+
availability_domain == other.availability_domain &&
|
126
|
+
subnet_id == other.subnet_id &&
|
127
|
+
hostname == other.hostname
|
128
|
+
end
|
129
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
130
|
+
|
131
|
+
# @see the `==` method
|
132
|
+
# @param [Object] other the other object to be compared
|
133
|
+
def eql?(other)
|
134
|
+
self == other
|
135
|
+
end
|
136
|
+
|
137
|
+
# rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
138
|
+
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Fixnum] Hash code
|
142
|
+
def hash
|
143
|
+
[database_admin_password, protection_mode, transport_type, creation_type, display_name, availability_domain, subnet_id, hostname].hash
|
144
|
+
end
|
145
|
+
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
146
|
+
|
147
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
148
|
+
|
149
|
+
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
|
156
|
+
self.class.swagger_types.each_pair do |key, type|
|
157
|
+
if type =~ /^Array<(.*)>/i
|
158
|
+
# check to ensure the input is an array given that the the attribute
|
159
|
+
# is documented as an array but the input is not
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
161
|
+
public_method("#{key}=").call(
|
162
|
+
attributes[self.class.attribute_map[key]]
|
163
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
164
|
+
)
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
public_method("#{key}=").call(
|
168
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
169
|
+
)
|
170
|
+
end
|
171
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
172
|
+
end
|
173
|
+
|
174
|
+
self
|
175
|
+
end
|
176
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = public_method(attr).call
|
190
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
191
|
+
|
192
|
+
hash[param] = _to_hash(value)
|
193
|
+
end
|
194
|
+
hash
|
195
|
+
end
|
196
|
+
|
197
|
+
private
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
# rubocop:enable Lint/UnneededCopDisableDirective
|
@@ -14,6 +14,14 @@ module OCI
|
|
14
14
|
DB_WORKLOAD_DSS = 'DSS'.freeze
|
15
15
|
].freeze
|
16
16
|
|
17
|
+
# **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :db_name
|
20
|
+
|
21
|
+
# The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name.
|
22
|
+
# @return [String]
|
23
|
+
attr_accessor :pdb_name
|
24
|
+
|
17
25
|
# **[Required]** A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \\#, or -.
|
18
26
|
# @return [String]
|
19
27
|
attr_accessor :admin_password
|
@@ -25,24 +33,18 @@ module OCI
|
|
25
33
|
# @return [String]
|
26
34
|
attr_accessor :character_set
|
27
35
|
|
28
|
-
#
|
29
|
-
|
30
|
-
|
31
|
-
# **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.
|
36
|
+
# The national character set for the database. The default is AL16UTF16. Allowed values are:
|
37
|
+
# AL16UTF16 or UTF8.
|
38
|
+
#
|
32
39
|
# @return [String]
|
33
|
-
attr_accessor :
|
40
|
+
attr_accessor :ncharacter_set
|
34
41
|
|
35
42
|
# The database workload type.
|
36
43
|
# @return [String]
|
37
44
|
attr_reader :db_workload
|
38
45
|
|
39
|
-
#
|
40
|
-
|
41
|
-
#
|
42
|
-
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
43
|
-
#
|
44
|
-
# @return [Hash<String, Hash<String, Object>>]
|
45
|
-
attr_accessor :defined_tags
|
46
|
+
# @return [OCI::Database::Models::DbBackupConfig]
|
47
|
+
attr_accessor :db_backup_config
|
46
48
|
|
47
49
|
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
48
50
|
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
@@ -52,29 +54,27 @@ module OCI
|
|
52
54
|
# @return [Hash<String, String>]
|
53
55
|
attr_accessor :freeform_tags
|
54
56
|
|
55
|
-
#
|
56
|
-
#
|
57
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
58
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
57
59
|
#
|
58
|
-
#
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
# @return [String]
|
63
|
-
attr_accessor :pdb_name
|
60
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
61
|
+
#
|
62
|
+
# @return [Hash<String, Hash<String, Object>>]
|
63
|
+
attr_accessor :defined_tags
|
64
64
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
66
|
def self.attribute_map
|
67
67
|
{
|
68
68
|
# rubocop:disable Style/SymbolLiteral
|
69
|
+
'db_name': :'dbName',
|
70
|
+
'pdb_name': :'pdbName',
|
69
71
|
'admin_password': :'adminPassword',
|
70
72
|
'character_set': :'characterSet',
|
71
|
-
'
|
72
|
-
'db_name': :'dbName',
|
73
|
+
'ncharacter_set': :'ncharacterSet',
|
73
74
|
'db_workload': :'dbWorkload',
|
74
|
-
'
|
75
|
+
'db_backup_config': :'dbBackupConfig',
|
75
76
|
'freeform_tags': :'freeformTags',
|
76
|
-
'
|
77
|
-
'pdb_name': :'pdbName'
|
77
|
+
'defined_tags': :'definedTags'
|
78
78
|
# rubocop:enable Style/SymbolLiteral
|
79
79
|
}
|
80
80
|
end
|
@@ -83,15 +83,15 @@ module OCI
|
|
83
83
|
def self.swagger_types
|
84
84
|
{
|
85
85
|
# rubocop:disable Style/SymbolLiteral
|
86
|
+
'db_name': :'String',
|
87
|
+
'pdb_name': :'String',
|
86
88
|
'admin_password': :'String',
|
87
89
|
'character_set': :'String',
|
88
|
-
'
|
89
|
-
'db_name': :'String',
|
90
|
+
'ncharacter_set': :'String',
|
90
91
|
'db_workload': :'String',
|
91
|
-
'
|
92
|
+
'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
|
92
93
|
'freeform_tags': :'Hash<String, String>',
|
93
|
-
'
|
94
|
-
'pdb_name': :'String'
|
94
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
95
95
|
# rubocop:enable Style/SymbolLiteral
|
96
96
|
}
|
97
97
|
end
|
@@ -102,21 +102,33 @@ module OCI
|
|
102
102
|
|
103
103
|
# Initializes the object
|
104
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @option attributes [String] :db_name The value to assign to the {#db_name} property
|
106
|
+
# @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
|
105
107
|
# @option attributes [String] :admin_password The value to assign to the {#admin_password} property
|
106
108
|
# @option attributes [String] :character_set The value to assign to the {#character_set} property
|
107
|
-
# @option attributes [
|
108
|
-
# @option attributes [String] :db_name The value to assign to the {#db_name} property
|
109
|
+
# @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
|
109
110
|
# @option attributes [String] :db_workload The value to assign to the {#db_workload} property
|
110
|
-
# @option attributes [
|
111
|
+
# @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
|
111
112
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
112
|
-
# @option attributes [String] :
|
113
|
-
# @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
|
113
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
114
114
|
def initialize(attributes = {})
|
115
115
|
return unless attributes.is_a?(Hash)
|
116
116
|
|
117
117
|
# convert string to symbol for hash key
|
118
118
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
119
119
|
|
120
|
+
self.db_name = attributes[:'dbName'] if attributes[:'dbName']
|
121
|
+
|
122
|
+
raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
|
123
|
+
|
124
|
+
self.db_name = attributes[:'db_name'] if attributes[:'db_name']
|
125
|
+
|
126
|
+
self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
|
127
|
+
|
128
|
+
raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
|
129
|
+
|
130
|
+
self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
|
131
|
+
|
120
132
|
self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
|
121
133
|
|
122
134
|
raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
|
@@ -129,17 +141,11 @@ module OCI
|
|
129
141
|
|
130
142
|
self.character_set = attributes[:'character_set'] if attributes[:'character_set']
|
131
143
|
|
132
|
-
self.
|
133
|
-
|
134
|
-
raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
|
135
|
-
|
136
|
-
self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
|
137
|
-
|
138
|
-
self.db_name = attributes[:'dbName'] if attributes[:'dbName']
|
144
|
+
self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
|
139
145
|
|
140
|
-
raise 'You cannot provide both :
|
146
|
+
raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
|
141
147
|
|
142
|
-
self.
|
148
|
+
self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
|
143
149
|
|
144
150
|
self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload']
|
145
151
|
|
@@ -147,11 +153,11 @@ module OCI
|
|
147
153
|
|
148
154
|
self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload']
|
149
155
|
|
150
|
-
self.
|
156
|
+
self.db_backup_config = attributes[:'dbBackupConfig'] if attributes[:'dbBackupConfig']
|
151
157
|
|
152
|
-
raise 'You cannot provide both :
|
158
|
+
raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
|
153
159
|
|
154
|
-
self.
|
160
|
+
self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
|
155
161
|
|
156
162
|
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
157
163
|
|
@@ -159,17 +165,11 @@ module OCI
|
|
159
165
|
|
160
166
|
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
161
167
|
|
162
|
-
self.
|
163
|
-
|
164
|
-
raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
|
165
|
-
|
166
|
-
self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
|
167
|
-
|
168
|
-
self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
|
168
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
169
169
|
|
170
|
-
raise 'You cannot provide both :
|
170
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
171
171
|
|
172
|
-
self.
|
172
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
173
173
|
end
|
174
174
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
175
175
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -193,15 +193,15 @@ module OCI
|
|
193
193
|
return true if equal?(other)
|
194
194
|
|
195
195
|
self.class == other.class &&
|
196
|
+
db_name == other.db_name &&
|
197
|
+
pdb_name == other.pdb_name &&
|
196
198
|
admin_password == other.admin_password &&
|
197
199
|
character_set == other.character_set &&
|
198
|
-
|
199
|
-
db_name == other.db_name &&
|
200
|
+
ncharacter_set == other.ncharacter_set &&
|
200
201
|
db_workload == other.db_workload &&
|
201
|
-
|
202
|
+
db_backup_config == other.db_backup_config &&
|
202
203
|
freeform_tags == other.freeform_tags &&
|
203
|
-
|
204
|
-
pdb_name == other.pdb_name
|
204
|
+
defined_tags == other.defined_tags
|
205
205
|
end
|
206
206
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
207
207
|
|
@@ -217,7 +217,7 @@ module OCI
|
|
217
217
|
# Calculates hash code according to all attributes.
|
218
218
|
# @return [Fixnum] Hash code
|
219
219
|
def hash
|
220
|
-
[admin_password, character_set,
|
220
|
+
[db_name, pdb_name, admin_password, character_set, ncharacter_set, db_workload, db_backup_config, freeform_tags, defined_tags].hash
|
221
221
|
end
|
222
222
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
223
223
|
|
@@ -6,10 +6,6 @@ require 'date'
|
|
6
6
|
module OCI
|
7
7
|
# CreateDatabaseFromBackupDetails model.
|
8
8
|
class Database::Models::CreateDatabaseFromBackupDetails # rubocop:disable Metrics/LineLength
|
9
|
-
# **[Required]** A strong password for SYS, SYSTEM, PDB Admin and TDE Wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \\#, or -.
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :admin_password
|
12
|
-
|
13
9
|
# **[Required]** The backup [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
14
10
|
# @return [String]
|
15
11
|
attr_accessor :backup_id
|
@@ -18,13 +14,17 @@ module OCI
|
|
18
14
|
# @return [String]
|
19
15
|
attr_accessor :backup_tde_password
|
20
16
|
|
17
|
+
# **[Required]** A strong password for SYS, SYSTEM, PDB Admin and TDE Wallet. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \\#, or -.
|
18
|
+
# @return [String]
|
19
|
+
attr_accessor :admin_password
|
20
|
+
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
24
|
# rubocop:disable Style/SymbolLiteral
|
25
|
-
'admin_password': :'adminPassword',
|
26
25
|
'backup_id': :'backupId',
|
27
|
-
'backup_tde_password': :'backupTDEPassword'
|
26
|
+
'backup_tde_password': :'backupTDEPassword',
|
27
|
+
'admin_password': :'adminPassword'
|
28
28
|
# rubocop:enable Style/SymbolLiteral
|
29
29
|
}
|
30
30
|
end
|
@@ -33,9 +33,9 @@ module OCI
|
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
35
|
# rubocop:disable Style/SymbolLiteral
|
36
|
-
'admin_password': :'String',
|
37
36
|
'backup_id': :'String',
|
38
|
-
'backup_tde_password': :'String'
|
37
|
+
'backup_tde_password': :'String',
|
38
|
+
'admin_password': :'String'
|
39
39
|
# rubocop:enable Style/SymbolLiteral
|
40
40
|
}
|
41
41
|
end
|
@@ -46,21 +46,15 @@ module OCI
|
|
46
46
|
|
47
47
|
# Initializes the object
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
-
# @option attributes [String] :admin_password The value to assign to the {#admin_password} property
|
50
49
|
# @option attributes [String] :backup_id The value to assign to the {#backup_id} property
|
51
50
|
# @option attributes [String] :backup_tde_password The value to assign to the {#backup_tde_password} property
|
51
|
+
# @option attributes [String] :admin_password The value to assign to the {#admin_password} property
|
52
52
|
def initialize(attributes = {})
|
53
53
|
return unless attributes.is_a?(Hash)
|
54
54
|
|
55
55
|
# convert string to symbol for hash key
|
56
56
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
57
|
|
58
|
-
self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
|
59
|
-
|
60
|
-
raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
|
61
|
-
|
62
|
-
self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
|
63
|
-
|
64
58
|
self.backup_id = attributes[:'backupId'] if attributes[:'backupId']
|
65
59
|
|
66
60
|
raise 'You cannot provide both :backupId and :backup_id' if attributes.key?(:'backupId') && attributes.key?(:'backup_id')
|
@@ -72,6 +66,12 @@ module OCI
|
|
72
66
|
raise 'You cannot provide both :backupTDEPassword and :backup_tde_password' if attributes.key?(:'backupTDEPassword') && attributes.key?(:'backup_tde_password')
|
73
67
|
|
74
68
|
self.backup_tde_password = attributes[:'backup_tde_password'] if attributes[:'backup_tde_password']
|
69
|
+
|
70
|
+
self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
|
71
|
+
|
72
|
+
raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
|
73
|
+
|
74
|
+
self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
|
75
75
|
end
|
76
76
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
77
77
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -85,9 +85,9 @@ module OCI
|
|
85
85
|
return true if equal?(other)
|
86
86
|
|
87
87
|
self.class == other.class &&
|
88
|
-
admin_password == other.admin_password &&
|
89
88
|
backup_id == other.backup_id &&
|
90
|
-
backup_tde_password == other.backup_tde_password
|
89
|
+
backup_tde_password == other.backup_tde_password &&
|
90
|
+
admin_password == other.admin_password
|
91
91
|
end
|
92
92
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
93
93
|
|
@@ -103,7 +103,7 @@ module OCI
|
|
103
103
|
# Calculates hash code according to all attributes.
|
104
104
|
# @return [Fixnum] Hash code
|
105
105
|
def hash
|
106
|
-
[
|
106
|
+
[backup_id, backup_tde_password, admin_password].hash
|
107
107
|
end
|
108
108
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
109
109
|
|