oci 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -5,12 +5,7 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # An Oracle database on a bare metal or virtual machine DB system. For more information, see [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm).
9
- #
10
- # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
11
- #
12
- # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
13
- #
8
+ # Database model.
14
9
  class Database::Models::Database # rubocop:disable Metrics/LineLength
15
10
  LIFECYCLE_STATE_ENUM = [
16
11
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
@@ -24,16 +19,21 @@ module OCI
24
19
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
25
20
  ].freeze
26
21
 
27
- # The character set for the database.
22
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
28
23
  # @return [String]
29
- attr_accessor :character_set
24
+ attr_accessor :id
30
25
 
31
26
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
32
27
  # @return [String]
33
28
  attr_accessor :compartment_id
34
29
 
35
- # @return [OCI::Database::Models::DbBackupConfig]
36
- attr_accessor :db_backup_config
30
+ # The character set for the database.
31
+ # @return [String]
32
+ attr_accessor :character_set
33
+
34
+ # The national character set for the database.
35
+ # @return [String]
36
+ attr_accessor :ncharacter_set
37
37
 
38
38
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
39
39
  # @return [String]
@@ -43,34 +43,18 @@ module OCI
43
43
  # @return [String]
44
44
  attr_accessor :db_name
45
45
 
46
- # **[Required]** A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed.
47
- #
46
+ # 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.
48
47
  # @return [String]
49
- attr_accessor :db_unique_name
48
+ attr_accessor :pdb_name
50
49
 
51
50
  # The database workload type.
52
51
  # @return [String]
53
52
  attr_accessor :db_workload
54
53
 
55
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
56
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
57
- #
58
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
59
- #
60
- # @return [Hash<String, Hash<String, Object>>]
61
- attr_accessor :defined_tags
62
-
63
- # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
64
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
65
- #
66
- # Example: `{\"Department\": \"Finance\"}`
54
+ # **[Required]** A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed.
67
55
  #
68
- # @return [Hash<String, String>]
69
- attr_accessor :freeform_tags
70
-
71
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
72
56
  # @return [String]
73
- attr_accessor :id
57
+ attr_accessor :db_unique_name
74
58
 
75
59
  # Additional information about the current lifecycleState.
76
60
  # @return [String]
@@ -80,37 +64,48 @@ module OCI
80
64
  # @return [String]
81
65
  attr_reader :lifecycle_state
82
66
 
83
- # The national character set for the database.
84
- # @return [String]
85
- attr_accessor :ncharacter_set
86
-
87
- # 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.
88
- # @return [String]
89
- attr_accessor :pdb_name
90
-
91
67
  # The date and time the database was created.
92
68
  # @return [DateTime]
93
69
  attr_accessor :time_created
94
70
 
71
+ # @return [OCI::Database::Models::DbBackupConfig]
72
+ attr_accessor :db_backup_config
73
+
74
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
75
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
76
+ #
77
+ # Example: `{\"Department\": \"Finance\"}`
78
+ #
79
+ # @return [Hash<String, String>]
80
+ attr_accessor :freeform_tags
81
+
82
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
83
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
84
+ #
85
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
86
+ #
87
+ # @return [Hash<String, Hash<String, Object>>]
88
+ attr_accessor :defined_tags
89
+
95
90
  # Attribute mapping from ruby-style variable name to JSON key.
96
91
  def self.attribute_map
97
92
  {
98
93
  # rubocop:disable Style/SymbolLiteral
99
- 'character_set': :'characterSet',
94
+ 'id': :'id',
100
95
  'compartment_id': :'compartmentId',
101
- 'db_backup_config': :'dbBackupConfig',
96
+ 'character_set': :'characterSet',
97
+ 'ncharacter_set': :'ncharacterSet',
102
98
  'db_home_id': :'dbHomeId',
103
99
  'db_name': :'dbName',
104
- 'db_unique_name': :'dbUniqueName',
100
+ 'pdb_name': :'pdbName',
105
101
  'db_workload': :'dbWorkload',
106
- 'defined_tags': :'definedTags',
107
- 'freeform_tags': :'freeformTags',
108
- 'id': :'id',
102
+ 'db_unique_name': :'dbUniqueName',
109
103
  'lifecycle_details': :'lifecycleDetails',
110
104
  'lifecycle_state': :'lifecycleState',
111
- 'ncharacter_set': :'ncharacterSet',
112
- 'pdb_name': :'pdbName',
113
- 'time_created': :'timeCreated'
105
+ 'time_created': :'timeCreated',
106
+ 'db_backup_config': :'dbBackupConfig',
107
+ 'freeform_tags': :'freeformTags',
108
+ 'defined_tags': :'definedTags'
114
109
  # rubocop:enable Style/SymbolLiteral
115
110
  }
116
111
  end
@@ -119,21 +114,21 @@ module OCI
119
114
  def self.swagger_types
120
115
  {
121
116
  # rubocop:disable Style/SymbolLiteral
122
- 'character_set': :'String',
117
+ 'id': :'String',
123
118
  'compartment_id': :'String',
124
- 'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
119
+ 'character_set': :'String',
120
+ 'ncharacter_set': :'String',
125
121
  'db_home_id': :'String',
126
122
  'db_name': :'String',
127
- 'db_unique_name': :'String',
123
+ 'pdb_name': :'String',
128
124
  'db_workload': :'String',
129
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
130
- 'freeform_tags': :'Hash<String, String>',
131
- 'id': :'String',
125
+ 'db_unique_name': :'String',
132
126
  'lifecycle_details': :'String',
133
127
  'lifecycle_state': :'String',
134
- 'ncharacter_set': :'String',
135
- 'pdb_name': :'String',
136
- 'time_created': :'DateTime'
128
+ 'time_created': :'DateTime',
129
+ 'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
130
+ 'freeform_tags': :'Hash<String, String>',
131
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
137
132
  # rubocop:enable Style/SymbolLiteral
138
133
  }
139
134
  end
@@ -144,32 +139,25 @@ module OCI
144
139
 
145
140
  # Initializes the object
146
141
  # @param [Hash] attributes Model attributes in the form of hash
147
- # @option attributes [String] :character_set The value to assign to the {#character_set} property
142
+ # @option attributes [String] :id The value to assign to the {#id} property
148
143
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
149
- # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
144
+ # @option attributes [String] :character_set The value to assign to the {#character_set} property
145
+ # @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
150
146
  # @option attributes [String] :db_home_id The value to assign to the {#db_home_id} property
151
147
  # @option attributes [String] :db_name The value to assign to the {#db_name} property
152
- # @option attributes [String] :db_unique_name The value to assign to the {#db_unique_name} property
148
+ # @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
153
149
  # @option attributes [String] :db_workload The value to assign to the {#db_workload} property
154
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
155
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
156
- # @option attributes [String] :id The value to assign to the {#id} property
150
+ # @option attributes [String] :db_unique_name The value to assign to the {#db_unique_name} property
157
151
  # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
158
152
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
159
- # @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
160
- # @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
161
153
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
154
+ # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
155
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
156
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
162
157
  def initialize(attributes = {})
163
158
  return unless attributes.is_a?(Hash)
164
159
 
165
- # convert string to symbol for hash key
166
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
167
-
168
- self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
169
-
170
- raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
171
-
172
- self.character_set = attributes[:'character_set'] if attributes[:'character_set']
160
+ self.id = attributes[:'id'] if attributes[:'id']
173
161
 
174
162
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
175
163
 
@@ -177,11 +165,17 @@ module OCI
177
165
 
178
166
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
179
167
 
180
- self.db_backup_config = attributes[:'dbBackupConfig'] if attributes[:'dbBackupConfig']
168
+ self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
181
169
 
182
- raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
170
+ raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
183
171
 
184
- self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
172
+ self.character_set = attributes[:'character_set'] if attributes[:'character_set']
173
+
174
+ self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
175
+
176
+ raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
177
+
178
+ self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
185
179
 
186
180
  self.db_home_id = attributes[:'dbHomeId'] if attributes[:'dbHomeId']
187
181
 
@@ -195,11 +189,11 @@ module OCI
195
189
 
196
190
  self.db_name = attributes[:'db_name'] if attributes[:'db_name']
197
191
 
198
- self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName']
192
+ self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
199
193
 
200
- raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name')
194
+ raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
201
195
 
202
- self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name']
196
+ self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
203
197
 
204
198
  self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload']
205
199
 
@@ -207,19 +201,11 @@ module OCI
207
201
 
208
202
  self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload']
209
203
 
210
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
211
-
212
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
213
-
214
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
215
-
216
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
217
-
218
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
204
+ self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName']
219
205
 
220
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
206
+ raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name')
221
207
 
222
- self.id = attributes[:'id'] if attributes[:'id']
208
+ self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name']
223
209
 
224
210
  self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
225
211
 
@@ -233,23 +219,29 @@ module OCI
233
219
 
234
220
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
235
221
 
236
- self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
222
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
237
223
 
238
- raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
224
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
239
225
 
240
- self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
226
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
241
227
 
242
- self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
228
+ self.db_backup_config = attributes[:'dbBackupConfig'] if attributes[:'dbBackupConfig']
243
229
 
244
- raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
230
+ raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
245
231
 
246
- self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
232
+ self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
247
233
 
248
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
234
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
249
235
 
250
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
236
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
251
237
 
252
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
238
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
239
+
240
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
241
+
242
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
243
+
244
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
253
245
  end
254
246
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
255
247
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -278,21 +270,21 @@ module OCI
278
270
  return true if equal?(other)
279
271
 
280
272
  self.class == other.class &&
281
- character_set == other.character_set &&
273
+ id == other.id &&
282
274
  compartment_id == other.compartment_id &&
283
- db_backup_config == other.db_backup_config &&
275
+ character_set == other.character_set &&
276
+ ncharacter_set == other.ncharacter_set &&
284
277
  db_home_id == other.db_home_id &&
285
278
  db_name == other.db_name &&
286
- db_unique_name == other.db_unique_name &&
279
+ pdb_name == other.pdb_name &&
287
280
  db_workload == other.db_workload &&
288
- defined_tags == other.defined_tags &&
289
- freeform_tags == other.freeform_tags &&
290
- id == other.id &&
281
+ db_unique_name == other.db_unique_name &&
291
282
  lifecycle_details == other.lifecycle_details &&
292
283
  lifecycle_state == other.lifecycle_state &&
293
- ncharacter_set == other.ncharacter_set &&
294
- pdb_name == other.pdb_name &&
295
- time_created == other.time_created
284
+ time_created == other.time_created &&
285
+ db_backup_config == other.db_backup_config &&
286
+ freeform_tags == other.freeform_tags &&
287
+ defined_tags == other.defined_tags
296
288
  end
297
289
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
298
290
 
@@ -308,7 +300,7 @@ module OCI
308
300
  # Calculates hash code according to all attributes.
309
301
  # @return [Fixnum] Hash code
310
302
  def hash
311
- [character_set, compartment_id, db_backup_config, db_home_id, db_name, db_unique_name, db_workload, defined_tags, freeform_tags, id, lifecycle_details, lifecycle_state, ncharacter_set, pdb_name, time_created].hash
303
+ [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags].hash
312
304
  end
313
305
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
314
306
 
@@ -24,16 +24,21 @@ module OCI
24
24
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
25
25
  ].freeze
26
26
 
27
- # The character set for the database.
27
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
28
28
  # @return [String]
29
- attr_accessor :character_set
29
+ attr_accessor :id
30
30
 
31
31
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
32
32
  # @return [String]
33
33
  attr_accessor :compartment_id
34
34
 
35
- # @return [OCI::Database::Models::DbBackupConfig]
36
- attr_accessor :db_backup_config
35
+ # The character set for the database.
36
+ # @return [String]
37
+ attr_accessor :character_set
38
+
39
+ # The national character set for the database.
40
+ # @return [String]
41
+ attr_accessor :ncharacter_set
37
42
 
38
43
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
39
44
  # @return [String]
@@ -43,34 +48,18 @@ module OCI
43
48
  # @return [String]
44
49
  attr_accessor :db_name
45
50
 
46
- # **[Required]** A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed.
47
- #
51
+ # 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.
48
52
  # @return [String]
49
- attr_accessor :db_unique_name
53
+ attr_accessor :pdb_name
50
54
 
51
55
  # The database workload type.
52
56
  # @return [String]
53
57
  attr_accessor :db_workload
54
58
 
55
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
56
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
57
- #
58
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
59
- #
60
- # @return [Hash<String, Hash<String, Object>>]
61
- attr_accessor :defined_tags
62
-
63
- # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
64
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
65
- #
66
- # Example: `{\"Department\": \"Finance\"}`
59
+ # **[Required]** A system-generated name for the database to ensure uniqueness within an Oracle Data Guard group (a primary database and its standby databases). The unique name cannot be changed.
67
60
  #
68
- # @return [Hash<String, String>]
69
- attr_accessor :freeform_tags
70
-
71
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database.
72
61
  # @return [String]
73
- attr_accessor :id
62
+ attr_accessor :db_unique_name
74
63
 
75
64
  # Additional information about the current lifecycleState.
76
65
  # @return [String]
@@ -80,37 +69,48 @@ module OCI
80
69
  # @return [String]
81
70
  attr_reader :lifecycle_state
82
71
 
83
- # The national character set for the database.
84
- # @return [String]
85
- attr_accessor :ncharacter_set
86
-
87
- # 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.
88
- # @return [String]
89
- attr_accessor :pdb_name
90
-
91
72
  # The date and time the database was created.
92
73
  # @return [DateTime]
93
74
  attr_accessor :time_created
94
75
 
76
+ # @return [OCI::Database::Models::DbBackupConfig]
77
+ attr_accessor :db_backup_config
78
+
79
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
80
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
81
+ #
82
+ # Example: `{\"Department\": \"Finance\"}`
83
+ #
84
+ # @return [Hash<String, String>]
85
+ attr_accessor :freeform_tags
86
+
87
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
88
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
89
+ #
90
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
91
+ #
92
+ # @return [Hash<String, Hash<String, Object>>]
93
+ attr_accessor :defined_tags
94
+
95
95
  # Attribute mapping from ruby-style variable name to JSON key.
96
96
  def self.attribute_map
97
97
  {
98
98
  # rubocop:disable Style/SymbolLiteral
99
- 'character_set': :'characterSet',
99
+ 'id': :'id',
100
100
  'compartment_id': :'compartmentId',
101
- 'db_backup_config': :'dbBackupConfig',
101
+ 'character_set': :'characterSet',
102
+ 'ncharacter_set': :'ncharacterSet',
102
103
  'db_home_id': :'dbHomeId',
103
104
  'db_name': :'dbName',
104
- 'db_unique_name': :'dbUniqueName',
105
+ 'pdb_name': :'pdbName',
105
106
  'db_workload': :'dbWorkload',
106
- 'defined_tags': :'definedTags',
107
- 'freeform_tags': :'freeformTags',
108
- 'id': :'id',
107
+ 'db_unique_name': :'dbUniqueName',
109
108
  'lifecycle_details': :'lifecycleDetails',
110
109
  'lifecycle_state': :'lifecycleState',
111
- 'ncharacter_set': :'ncharacterSet',
112
- 'pdb_name': :'pdbName',
113
- 'time_created': :'timeCreated'
110
+ 'time_created': :'timeCreated',
111
+ 'db_backup_config': :'dbBackupConfig',
112
+ 'freeform_tags': :'freeformTags',
113
+ 'defined_tags': :'definedTags'
114
114
  # rubocop:enable Style/SymbolLiteral
115
115
  }
116
116
  end
@@ -119,21 +119,21 @@ module OCI
119
119
  def self.swagger_types
120
120
  {
121
121
  # rubocop:disable Style/SymbolLiteral
122
- 'character_set': :'String',
122
+ 'id': :'String',
123
123
  'compartment_id': :'String',
124
- 'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
124
+ 'character_set': :'String',
125
+ 'ncharacter_set': :'String',
125
126
  'db_home_id': :'String',
126
127
  'db_name': :'String',
127
- 'db_unique_name': :'String',
128
+ 'pdb_name': :'String',
128
129
  'db_workload': :'String',
129
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
130
- 'freeform_tags': :'Hash<String, String>',
131
- 'id': :'String',
130
+ 'db_unique_name': :'String',
132
131
  'lifecycle_details': :'String',
133
132
  'lifecycle_state': :'String',
134
- 'ncharacter_set': :'String',
135
- 'pdb_name': :'String',
136
- 'time_created': :'DateTime'
133
+ 'time_created': :'DateTime',
134
+ 'db_backup_config': :'OCI::Database::Models::DbBackupConfig',
135
+ 'freeform_tags': :'Hash<String, String>',
136
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
137
137
  # rubocop:enable Style/SymbolLiteral
138
138
  }
139
139
  end
@@ -144,32 +144,28 @@ module OCI
144
144
 
145
145
  # Initializes the object
146
146
  # @param [Hash] attributes Model attributes in the form of hash
147
- # @option attributes [String] :character_set The value to assign to the {#character_set} property
147
+ # @option attributes [String] :id The value to assign to the {#id} property
148
148
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
149
- # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
149
+ # @option attributes [String] :character_set The value to assign to the {#character_set} property
150
+ # @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
150
151
  # @option attributes [String] :db_home_id The value to assign to the {#db_home_id} property
151
152
  # @option attributes [String] :db_name The value to assign to the {#db_name} property
152
- # @option attributes [String] :db_unique_name The value to assign to the {#db_unique_name} property
153
+ # @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
153
154
  # @option attributes [String] :db_workload The value to assign to the {#db_workload} property
154
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
155
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
156
- # @option attributes [String] :id The value to assign to the {#id} property
155
+ # @option attributes [String] :db_unique_name The value to assign to the {#db_unique_name} property
157
156
  # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
158
157
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
159
- # @option attributes [String] :ncharacter_set The value to assign to the {#ncharacter_set} property
160
- # @option attributes [String] :pdb_name The value to assign to the {#pdb_name} property
161
158
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
159
+ # @option attributes [OCI::Database::Models::DbBackupConfig] :db_backup_config The value to assign to the {#db_backup_config} property
160
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
161
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
162
162
  def initialize(attributes = {})
163
163
  return unless attributes.is_a?(Hash)
164
164
 
165
165
  # convert string to symbol for hash key
166
166
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
167
167
 
168
- self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
169
-
170
- raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
171
-
172
- self.character_set = attributes[:'character_set'] if attributes[:'character_set']
168
+ self.id = attributes[:'id'] if attributes[:'id']
173
169
 
174
170
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
175
171
 
@@ -177,11 +173,17 @@ module OCI
177
173
 
178
174
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
179
175
 
180
- self.db_backup_config = attributes[:'dbBackupConfig'] if attributes[:'dbBackupConfig']
176
+ self.character_set = attributes[:'characterSet'] if attributes[:'characterSet']
181
177
 
182
- raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
178
+ raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set')
183
179
 
184
- self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
180
+ self.character_set = attributes[:'character_set'] if attributes[:'character_set']
181
+
182
+ self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
183
+
184
+ raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
185
+
186
+ self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
185
187
 
186
188
  self.db_home_id = attributes[:'dbHomeId'] if attributes[:'dbHomeId']
187
189
 
@@ -195,11 +197,11 @@ module OCI
195
197
 
196
198
  self.db_name = attributes[:'db_name'] if attributes[:'db_name']
197
199
 
198
- self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName']
200
+ self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
199
201
 
200
- raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name')
202
+ raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
201
203
 
202
- self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name']
204
+ self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
203
205
 
204
206
  self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload']
205
207
 
@@ -207,19 +209,11 @@ module OCI
207
209
 
208
210
  self.db_workload = attributes[:'db_workload'] if attributes[:'db_workload']
209
211
 
210
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
211
-
212
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
213
-
214
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
215
-
216
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
217
-
218
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
212
+ self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName']
219
213
 
220
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
214
+ raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name')
221
215
 
222
- self.id = attributes[:'id'] if attributes[:'id']
216
+ self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name']
223
217
 
224
218
  self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
225
219
 
@@ -233,23 +227,29 @@ module OCI
233
227
 
234
228
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
235
229
 
236
- self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet']
230
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
237
231
 
238
- raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set')
232
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
239
233
 
240
- self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set']
234
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
241
235
 
242
- self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName']
236
+ self.db_backup_config = attributes[:'dbBackupConfig'] if attributes[:'dbBackupConfig']
243
237
 
244
- raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name')
238
+ raise 'You cannot provide both :dbBackupConfig and :db_backup_config' if attributes.key?(:'dbBackupConfig') && attributes.key?(:'db_backup_config')
245
239
 
246
- self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name']
240
+ self.db_backup_config = attributes[:'db_backup_config'] if attributes[:'db_backup_config']
247
241
 
248
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
242
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
249
243
 
250
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
244
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
251
245
 
252
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
246
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
247
+
248
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
249
+
250
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
251
+
252
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
253
253
  end
254
254
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
255
255
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -278,21 +278,21 @@ module OCI
278
278
  return true if equal?(other)
279
279
 
280
280
  self.class == other.class &&
281
- character_set == other.character_set &&
281
+ id == other.id &&
282
282
  compartment_id == other.compartment_id &&
283
- db_backup_config == other.db_backup_config &&
283
+ character_set == other.character_set &&
284
+ ncharacter_set == other.ncharacter_set &&
284
285
  db_home_id == other.db_home_id &&
285
286
  db_name == other.db_name &&
286
- db_unique_name == other.db_unique_name &&
287
+ pdb_name == other.pdb_name &&
287
288
  db_workload == other.db_workload &&
288
- defined_tags == other.defined_tags &&
289
- freeform_tags == other.freeform_tags &&
290
- id == other.id &&
289
+ db_unique_name == other.db_unique_name &&
291
290
  lifecycle_details == other.lifecycle_details &&
292
291
  lifecycle_state == other.lifecycle_state &&
293
- ncharacter_set == other.ncharacter_set &&
294
- pdb_name == other.pdb_name &&
295
- time_created == other.time_created
292
+ time_created == other.time_created &&
293
+ db_backup_config == other.db_backup_config &&
294
+ freeform_tags == other.freeform_tags &&
295
+ defined_tags == other.defined_tags
296
296
  end
297
297
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
298
298
 
@@ -308,7 +308,7 @@ module OCI
308
308
  # Calculates hash code according to all attributes.
309
309
  # @return [Fixnum] Hash code
310
310
  def hash
311
- [character_set, compartment_id, db_backup_config, db_home_id, db_name, db_unique_name, db_workload, defined_tags, freeform_tags, id, lifecycle_details, lifecycle_state, ncharacter_set, pdb_name, time_created].hash
311
+ [id, compartment_id, character_set, ncharacter_set, db_home_id, db_name, pdb_name, db_workload, db_unique_name, lifecycle_details, lifecycle_state, time_created, db_backup_config, freeform_tags, defined_tags].hash
312
312
  end
313
313
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
314
314