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
@@ -11,6 +11,12 @@ module OCI
11
11
  # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
12
12
  #
13
13
  class Database::Models::AutonomousDatabaseBackupSummary # rubocop:disable Metrics/LineLength
14
+ TYPE_ENUM = [
15
+ TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
16
+ TYPE_FULL = 'FULL'.freeze,
17
+ TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
18
+ ].freeze
19
+
14
20
  LIFECYCLE_STATE_ENUM = [
15
21
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
16
22
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
@@ -20,66 +26,60 @@ module OCI
20
26
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
21
27
  ].freeze
22
28
 
23
- TYPE_ENUM = [
24
- TYPE_INCREMENTAL = 'INCREMENTAL'.freeze,
25
- TYPE_FULL = 'FULL'.freeze,
26
- TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
27
- ].freeze
28
-
29
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
29
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
30
30
  # @return [String]
31
- attr_accessor :autonomous_database_id
31
+ attr_accessor :id
32
32
 
33
33
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
34
34
  # @return [String]
35
35
  attr_accessor :compartment_id
36
36
 
37
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
38
+ # @return [String]
39
+ attr_accessor :autonomous_database_id
40
+
37
41
  # **[Required]** The user-friendly name for the backup. The name does not have to be unique.
38
42
  # @return [String]
39
43
  attr_accessor :display_name
40
44
 
41
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database backup.
45
+ # **[Required]** The type of backup.
42
46
  # @return [String]
43
- attr_accessor :id
47
+ attr_reader :type
44
48
 
45
49
  # **[Required]** Indicates whether the backup is user-initiated or automatic.
46
50
  # @return [BOOLEAN]
47
51
  attr_accessor :is_automatic
48
52
 
49
- # Additional information about the current lifecycle state.
50
- # @return [String]
51
- attr_accessor :lifecycle_details
52
-
53
- # **[Required]** The current state of the backup.
54
- # @return [String]
55
- attr_reader :lifecycle_state
53
+ # The date and time the backup started.
54
+ # @return [DateTime]
55
+ attr_accessor :time_started
56
56
 
57
57
  # The date and time the backup completed.
58
58
  # @return [DateTime]
59
59
  attr_accessor :time_ended
60
60
 
61
- # The date and time the backup started.
62
- # @return [DateTime]
63
- attr_accessor :time_started
61
+ # Additional information about the current lifecycle state.
62
+ # @return [String]
63
+ attr_accessor :lifecycle_details
64
64
 
65
- # **[Required]** The type of backup.
65
+ # **[Required]** The current state of the backup.
66
66
  # @return [String]
67
- attr_reader :type
67
+ attr_reader :lifecycle_state
68
68
 
69
69
  # Attribute mapping from ruby-style variable name to JSON key.
70
70
  def self.attribute_map
71
71
  {
72
72
  # rubocop:disable Style/SymbolLiteral
73
- 'autonomous_database_id': :'autonomousDatabaseId',
73
+ 'id': :'id',
74
74
  'compartment_id': :'compartmentId',
75
+ 'autonomous_database_id': :'autonomousDatabaseId',
75
76
  'display_name': :'displayName',
76
- 'id': :'id',
77
+ 'type': :'type',
77
78
  'is_automatic': :'isAutomatic',
78
- 'lifecycle_details': :'lifecycleDetails',
79
- 'lifecycle_state': :'lifecycleState',
80
- 'time_ended': :'timeEnded',
81
79
  'time_started': :'timeStarted',
82
- 'type': :'type'
80
+ 'time_ended': :'timeEnded',
81
+ 'lifecycle_details': :'lifecycleDetails',
82
+ 'lifecycle_state': :'lifecycleState'
83
83
  # rubocop:enable Style/SymbolLiteral
84
84
  }
85
85
  end
@@ -88,16 +88,16 @@ module OCI
88
88
  def self.swagger_types
89
89
  {
90
90
  # rubocop:disable Style/SymbolLiteral
91
- 'autonomous_database_id': :'String',
91
+ 'id': :'String',
92
92
  'compartment_id': :'String',
93
+ 'autonomous_database_id': :'String',
93
94
  'display_name': :'String',
94
- 'id': :'String',
95
+ 'type': :'String',
95
96
  'is_automatic': :'BOOLEAN',
96
- 'lifecycle_details': :'String',
97
- 'lifecycle_state': :'String',
98
- 'time_ended': :'DateTime',
99
97
  'time_started': :'DateTime',
100
- 'type': :'String'
98
+ 'time_ended': :'DateTime',
99
+ 'lifecycle_details': :'String',
100
+ 'lifecycle_state': :'String'
101
101
  # rubocop:enable Style/SymbolLiteral
102
102
  }
103
103
  end
@@ -108,27 +108,23 @@ module OCI
108
108
 
109
109
  # Initializes the object
110
110
  # @param [Hash] attributes Model attributes in the form of hash
111
- # @option attributes [String] :autonomous_database_id The value to assign to the {#autonomous_database_id} property
111
+ # @option attributes [String] :id The value to assign to the {#id} property
112
112
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
113
+ # @option attributes [String] :autonomous_database_id The value to assign to the {#autonomous_database_id} property
113
114
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
114
- # @option attributes [String] :id The value to assign to the {#id} property
115
+ # @option attributes [String] :type The value to assign to the {#type} property
115
116
  # @option attributes [BOOLEAN] :is_automatic The value to assign to the {#is_automatic} property
117
+ # @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
118
+ # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
116
119
  # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
117
120
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
118
- # @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
119
- # @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
120
- # @option attributes [String] :type The value to assign to the {#type} property
121
121
  def initialize(attributes = {})
122
122
  return unless attributes.is_a?(Hash)
123
123
 
124
124
  # convert string to symbol for hash key
125
125
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
126
126
 
127
- self.autonomous_database_id = attributes[:'autonomousDatabaseId'] if attributes[:'autonomousDatabaseId']
128
-
129
- raise 'You cannot provide both :autonomousDatabaseId and :autonomous_database_id' if attributes.key?(:'autonomousDatabaseId') && attributes.key?(:'autonomous_database_id')
130
-
131
- self.autonomous_database_id = attributes[:'autonomous_database_id'] if attributes[:'autonomous_database_id']
127
+ self.id = attributes[:'id'] if attributes[:'id']
132
128
 
133
129
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
134
130
 
@@ -136,13 +132,19 @@ module OCI
136
132
 
137
133
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
138
134
 
135
+ self.autonomous_database_id = attributes[:'autonomousDatabaseId'] if attributes[:'autonomousDatabaseId']
136
+
137
+ raise 'You cannot provide both :autonomousDatabaseId and :autonomous_database_id' if attributes.key?(:'autonomousDatabaseId') && attributes.key?(:'autonomous_database_id')
138
+
139
+ self.autonomous_database_id = attributes[:'autonomous_database_id'] if attributes[:'autonomous_database_id']
140
+
139
141
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
140
142
 
141
143
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
142
144
 
143
145
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
144
146
 
145
- self.id = attributes[:'id'] if attributes[:'id']
147
+ self.type = attributes[:'type'] if attributes[:'type']
146
148
 
147
149
  self.is_automatic = attributes[:'isAutomatic'] unless attributes[:'isAutomatic'].nil?
148
150
 
@@ -150,17 +152,11 @@ module OCI
150
152
 
151
153
  self.is_automatic = attributes[:'is_automatic'] unless attributes[:'is_automatic'].nil?
152
154
 
153
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
154
-
155
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
156
-
157
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
158
-
159
- self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
155
+ self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
160
156
 
161
- raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
157
+ raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
162
158
 
163
- self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
159
+ self.time_started = attributes[:'time_started'] if attributes[:'time_started']
164
160
 
165
161
  self.time_ended = attributes[:'timeEnded'] if attributes[:'timeEnded']
166
162
 
@@ -168,43 +164,47 @@ module OCI
168
164
 
169
165
  self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended']
170
166
 
171
- self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted']
167
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
172
168
 
173
- raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started')
169
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
174
170
 
175
- self.time_started = attributes[:'time_started'] if attributes[:'time_started']
171
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
176
172
 
177
- self.type = attributes[:'type'] if attributes[:'type']
173
+ self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
174
+
175
+ raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
176
+
177
+ self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
178
178
  end
179
179
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
180
180
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
181
181
 
182
182
  # Custom attribute writer method checking allowed values (enum).
183
- # @param [Object] lifecycle_state Object to be assigned
184
- def lifecycle_state=(lifecycle_state)
183
+ # @param [Object] type Object to be assigned
184
+ def type=(type)
185
185
  # rubocop:disable Style/ConditionalAssignment
186
- if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
186
+ if type && !TYPE_ENUM.include?(type)
187
187
  # rubocop: disable Metrics/LineLength
188
- OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
188
+ OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
189
189
  # rubocop: enable Metrics/LineLength
190
- @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
190
+ @type = TYPE_UNKNOWN_ENUM_VALUE
191
191
  else
192
- @lifecycle_state = lifecycle_state
192
+ @type = type
193
193
  end
194
194
  # rubocop:enable Style/ConditionalAssignment
195
195
  end
196
196
 
197
197
  # Custom attribute writer method checking allowed values (enum).
198
- # @param [Object] type Object to be assigned
199
- def type=(type)
198
+ # @param [Object] lifecycle_state Object to be assigned
199
+ def lifecycle_state=(lifecycle_state)
200
200
  # rubocop:disable Style/ConditionalAssignment
201
- if type && !TYPE_ENUM.include?(type)
201
+ if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
202
202
  # rubocop: disable Metrics/LineLength
203
- OCI.logger.debug("Unknown value for 'type' [" + type + "]. Mapping to 'TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
203
+ OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
204
204
  # rubocop: enable Metrics/LineLength
205
- @type = TYPE_UNKNOWN_ENUM_VALUE
205
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
206
206
  else
207
- @type = type
207
+ @lifecycle_state = lifecycle_state
208
208
  end
209
209
  # rubocop:enable Style/ConditionalAssignment
210
210
  end
@@ -218,16 +218,16 @@ module OCI
218
218
  return true if equal?(other)
219
219
 
220
220
  self.class == other.class &&
221
- autonomous_database_id == other.autonomous_database_id &&
221
+ id == other.id &&
222
222
  compartment_id == other.compartment_id &&
223
+ autonomous_database_id == other.autonomous_database_id &&
223
224
  display_name == other.display_name &&
224
- id == other.id &&
225
+ type == other.type &&
225
226
  is_automatic == other.is_automatic &&
226
- lifecycle_details == other.lifecycle_details &&
227
- lifecycle_state == other.lifecycle_state &&
228
- time_ended == other.time_ended &&
229
227
  time_started == other.time_started &&
230
- type == other.type
228
+ time_ended == other.time_ended &&
229
+ lifecycle_details == other.lifecycle_details &&
230
+ lifecycle_state == other.lifecycle_state
231
231
  end
232
232
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
233
233
 
@@ -243,7 +243,7 @@ module OCI
243
243
  # Calculates hash code according to all attributes.
244
244
  # @return [Fixnum] Hash code
245
245
  def hash
246
- [autonomous_database_id, compartment_id, display_name, id, is_automatic, lifecycle_details, lifecycle_state, time_ended, time_started, type].hash
246
+ [id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, lifecycle_state].hash
247
247
  end
248
248
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
249
249
 
@@ -7,30 +7,30 @@ module OCI
7
7
  # Connection strings to connect to an Oracle Autonomous Database.
8
8
  #
9
9
  class Database::Models::AutonomousDatabaseConnectionStrings # rubocop:disable Metrics/LineLength
10
- # All connection strings to use to connect to the Autonomous Database.
11
- # @return [Hash<String, String>]
12
- attr_accessor :all_connection_strings
13
-
14
10
  # The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements.
15
11
  # @return [String]
16
12
  attr_accessor :high
17
13
 
14
+ # The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
15
+ # @return [String]
16
+ attr_accessor :medium
17
+
18
18
  # The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.
19
19
  # @return [String]
20
20
  attr_accessor :low
21
21
 
22
- # The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements.
23
- # @return [String]
24
- attr_accessor :medium
22
+ # All connection strings to use to connect to the Autonomous Database.
23
+ # @return [Hash<String, String>]
24
+ attr_accessor :all_connection_strings
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
29
  # rubocop:disable Style/SymbolLiteral
30
- 'all_connection_strings': :'allConnectionStrings',
31
30
  'high': :'high',
31
+ 'medium': :'medium',
32
32
  'low': :'low',
33
- 'medium': :'medium'
33
+ 'all_connection_strings': :'allConnectionStrings'
34
34
  # rubocop:enable Style/SymbolLiteral
35
35
  }
36
36
  end
@@ -39,10 +39,10 @@ module OCI
39
39
  def self.swagger_types
40
40
  {
41
41
  # rubocop:disable Style/SymbolLiteral
42
- 'all_connection_strings': :'Hash<String, String>',
43
42
  'high': :'String',
43
+ 'medium': :'String',
44
44
  'low': :'String',
45
- 'medium': :'String'
45
+ 'all_connection_strings': :'Hash<String, String>'
46
46
  # rubocop:enable Style/SymbolLiteral
47
47
  }
48
48
  end
@@ -53,27 +53,27 @@ module OCI
53
53
 
54
54
  # Initializes the object
55
55
  # @param [Hash] attributes Model attributes in the form of hash
56
- # @option attributes [Hash<String, String>] :all_connection_strings The value to assign to the {#all_connection_strings} property
57
56
  # @option attributes [String] :high The value to assign to the {#high} property
58
- # @option attributes [String] :low The value to assign to the {#low} property
59
57
  # @option attributes [String] :medium The value to assign to the {#medium} property
58
+ # @option attributes [String] :low The value to assign to the {#low} property
59
+ # @option attributes [Hash<String, String>] :all_connection_strings The value to assign to the {#all_connection_strings} property
60
60
  def initialize(attributes = {})
61
61
  return unless attributes.is_a?(Hash)
62
62
 
63
63
  # convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
65
 
66
- self.all_connection_strings = attributes[:'allConnectionStrings'] if attributes[:'allConnectionStrings']
66
+ self.high = attributes[:'high'] if attributes[:'high']
67
67
 
68
- raise 'You cannot provide both :allConnectionStrings and :all_connection_strings' if attributes.key?(:'allConnectionStrings') && attributes.key?(:'all_connection_strings')
68
+ self.medium = attributes[:'medium'] if attributes[:'medium']
69
69
 
70
- self.all_connection_strings = attributes[:'all_connection_strings'] if attributes[:'all_connection_strings']
70
+ self.low = attributes[:'low'] if attributes[:'low']
71
71
 
72
- self.high = attributes[:'high'] if attributes[:'high']
72
+ self.all_connection_strings = attributes[:'allConnectionStrings'] if attributes[:'allConnectionStrings']
73
73
 
74
- self.low = attributes[:'low'] if attributes[:'low']
74
+ raise 'You cannot provide both :allConnectionStrings and :all_connection_strings' if attributes.key?(:'allConnectionStrings') && attributes.key?(:'all_connection_strings')
75
75
 
76
- self.medium = attributes[:'medium'] if attributes[:'medium']
76
+ self.all_connection_strings = attributes[:'all_connection_strings'] if attributes[:'all_connection_strings']
77
77
  end
78
78
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
79
79
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -87,10 +87,10 @@ module OCI
87
87
  return true if equal?(other)
88
88
 
89
89
  self.class == other.class &&
90
- all_connection_strings == other.all_connection_strings &&
91
90
  high == other.high &&
91
+ medium == other.medium &&
92
92
  low == other.low &&
93
- medium == other.medium
93
+ all_connection_strings == other.all_connection_strings
94
94
  end
95
95
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
96
96
 
@@ -106,7 +106,7 @@ module OCI
106
106
  # Calculates hash code according to all attributes.
107
107
  # @return [Fixnum] Hash code
108
108
  def hash
109
- [all_connection_strings, high, low, medium].hash
109
+ [high, medium, low, all_connection_strings].hash
110
110
  end
111
111
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
112
112
 
@@ -10,12 +10,6 @@ module OCI
10
10
  # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
11
11
  #
12
12
  class Database::Models::AutonomousDatabaseSummary # rubocop:disable Metrics/LineLength
13
- LICENSE_MODEL_ENUM = [
14
- LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze,
15
- LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze,
16
- LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
17
- ].freeze
18
-
19
13
  LIFECYCLE_STATE_ENUM = [
20
14
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
21
15
  LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
@@ -33,13 +27,31 @@ module OCI
33
27
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
34
28
  ].freeze
35
29
 
30
+ LICENSE_MODEL_ENUM = [
31
+ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze,
32
+ LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze,
33
+ LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
34
+ ].freeze
35
+
36
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
37
+ # @return [String]
38
+ attr_accessor :id
39
+
36
40
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
37
41
  # @return [String]
38
42
  attr_accessor :compartment_id
39
43
 
40
- # The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
41
- # @return [OCI::Database::Models::AutonomousDatabaseConnectionStrings]
42
- attr_accessor :connection_strings
44
+ # **[Required]** The current state of the database.
45
+ # @return [String]
46
+ attr_reader :lifecycle_state
47
+
48
+ # Information about the current lifecycle state.
49
+ # @return [String]
50
+ attr_accessor :lifecycle_details
51
+
52
+ # **[Required]** The database name.
53
+ # @return [String]
54
+ attr_accessor :db_name
43
55
 
44
56
  # **[Required]** The number of CPU cores to be made available to the database.
45
57
  # @return [Integer]
@@ -49,25 +61,26 @@ module OCI
49
61
  # @return [Integer]
50
62
  attr_accessor :data_storage_size_in_tbs
51
63
 
52
- # **[Required]** The database name.
64
+ # The date and time the database was created.
65
+ # @return [DateTime]
66
+ attr_accessor :time_created
67
+
68
+ # The user-friendly name for the Autonomous Database. The name does not have to be unique.
53
69
  # @return [String]
54
- attr_accessor :db_name
70
+ attr_accessor :display_name
55
71
 
56
- # A valid Oracle Database version for Autonomous Database.
72
+ # The URL of the Service Console for the Autonomous Database.
57
73
  # @return [String]
58
- attr_accessor :db_version
74
+ attr_accessor :service_console_url
59
75
 
60
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
61
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
62
- #
63
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
64
- #
65
- # @return [Hash<String, Hash<String, Object>>]
66
- attr_accessor :defined_tags
76
+ # The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
77
+ # @return [OCI::Database::Models::AutonomousDatabaseConnectionStrings]
78
+ attr_accessor :connection_strings
67
79
 
68
- # The user-friendly name for the Autonomous Database. The name does not have to be unique.
80
+ # The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
81
+ #
69
82
  # @return [String]
70
- attr_accessor :display_name
83
+ attr_reader :license_model
71
84
 
72
85
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
73
86
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
@@ -77,50 +90,37 @@ module OCI
77
90
  # @return [Hash<String, String>]
78
91
  attr_accessor :freeform_tags
79
92
 
80
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Database.
81
- # @return [String]
82
- attr_accessor :id
83
-
84
- # The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
93
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
94
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
85
95
  #
86
- # @return [String]
87
- attr_reader :license_model
88
-
89
- # Information about the current lifecycle state.
90
- # @return [String]
91
- attr_accessor :lifecycle_details
92
-
93
- # **[Required]** The current state of the database.
94
- # @return [String]
95
- attr_reader :lifecycle_state
96
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
97
+ #
98
+ # @return [Hash<String, Hash<String, Object>>]
99
+ attr_accessor :defined_tags
96
100
 
97
- # The URL of the Service Console for the Autonomous Database.
101
+ # A valid Oracle Database version for Autonomous Database.
98
102
  # @return [String]
99
- attr_accessor :service_console_url
100
-
101
- # The date and time the database was created.
102
- # @return [DateTime]
103
- attr_accessor :time_created
103
+ attr_accessor :db_version
104
104
 
105
105
  # Attribute mapping from ruby-style variable name to JSON key.
106
106
  def self.attribute_map
107
107
  {
108
108
  # rubocop:disable Style/SymbolLiteral
109
+ 'id': :'id',
109
110
  'compartment_id': :'compartmentId',
110
- 'connection_strings': :'connectionStrings',
111
+ 'lifecycle_state': :'lifecycleState',
112
+ 'lifecycle_details': :'lifecycleDetails',
113
+ 'db_name': :'dbName',
111
114
  'cpu_core_count': :'cpuCoreCount',
112
115
  'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
113
- 'db_name': :'dbName',
114
- 'db_version': :'dbVersion',
115
- 'defined_tags': :'definedTags',
116
+ 'time_created': :'timeCreated',
116
117
  'display_name': :'displayName',
117
- 'freeform_tags': :'freeformTags',
118
- 'id': :'id',
119
- 'license_model': :'licenseModel',
120
- 'lifecycle_details': :'lifecycleDetails',
121
- 'lifecycle_state': :'lifecycleState',
122
118
  'service_console_url': :'serviceConsoleUrl',
123
- 'time_created': :'timeCreated'
119
+ 'connection_strings': :'connectionStrings',
120
+ 'license_model': :'licenseModel',
121
+ 'freeform_tags': :'freeformTags',
122
+ 'defined_tags': :'definedTags',
123
+ 'db_version': :'dbVersion'
124
124
  # rubocop:enable Style/SymbolLiteral
125
125
  }
126
126
  end
@@ -129,21 +129,21 @@ module OCI
129
129
  def self.swagger_types
130
130
  {
131
131
  # rubocop:disable Style/SymbolLiteral
132
+ 'id': :'String',
132
133
  'compartment_id': :'String',
133
- 'connection_strings': :'OCI::Database::Models::AutonomousDatabaseConnectionStrings',
134
+ 'lifecycle_state': :'String',
135
+ 'lifecycle_details': :'String',
136
+ 'db_name': :'String',
134
137
  'cpu_core_count': :'Integer',
135
138
  'data_storage_size_in_tbs': :'Integer',
136
- 'db_name': :'String',
137
- 'db_version': :'String',
138
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
139
+ 'time_created': :'DateTime',
139
140
  'display_name': :'String',
140
- 'freeform_tags': :'Hash<String, String>',
141
- 'id': :'String',
142
- 'license_model': :'String',
143
- 'lifecycle_details': :'String',
144
- 'lifecycle_state': :'String',
145
141
  'service_console_url': :'String',
146
- 'time_created': :'DateTime'
142
+ 'connection_strings': :'OCI::Database::Models::AutonomousDatabaseConnectionStrings',
143
+ 'license_model': :'String',
144
+ 'freeform_tags': :'Hash<String, String>',
145
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
146
+ 'db_version': :'String'
147
147
  # rubocop:enable Style/SymbolLiteral
148
148
  }
149
149
  end
@@ -154,50 +154,46 @@ module OCI
154
154
 
155
155
  # Initializes the object
156
156
  # @param [Hash] attributes Model attributes in the form of hash
157
+ # @option attributes [String] :id The value to assign to the {#id} property
157
158
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
158
- # @option attributes [OCI::Database::Models::AutonomousDatabaseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
159
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
160
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
161
+ # @option attributes [String] :db_name The value to assign to the {#db_name} property
159
162
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
160
163
  # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
161
- # @option attributes [String] :db_name The value to assign to the {#db_name} property
162
- # @option attributes [String] :db_version The value to assign to the {#db_version} property
163
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
164
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
164
165
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
165
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
166
- # @option attributes [String] :id The value to assign to the {#id} property
167
- # @option attributes [String] :license_model The value to assign to the {#license_model} property
168
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
169
- # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
170
166
  # @option attributes [String] :service_console_url The value to assign to the {#service_console_url} property
171
- # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
167
+ # @option attributes [OCI::Database::Models::AutonomousDatabaseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
168
+ # @option attributes [String] :license_model The value to assign to the {#license_model} property
169
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
170
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
171
+ # @option attributes [String] :db_version The value to assign to the {#db_version} property
172
172
  def initialize(attributes = {})
173
173
  return unless attributes.is_a?(Hash)
174
174
 
175
175
  # convert string to symbol for hash key
176
176
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
177
177
 
178
+ self.id = attributes[:'id'] if attributes[:'id']
179
+
178
180
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
179
181
 
180
182
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
181
183
 
182
184
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
183
185
 
184
- self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
185
-
186
- raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
187
-
188
- self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
189
-
190
- self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
186
+ self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
191
187
 
192
- raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
188
+ raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
193
189
 
194
- self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
190
+ self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
195
191
 
196
- self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
192
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
197
193
 
198
- raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
194
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
199
195
 
200
- self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
196
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
201
197
 
202
198
  self.db_name = attributes[:'dbName'] if attributes[:'dbName']
203
199
 
@@ -205,17 +201,23 @@ module OCI
205
201
 
206
202
  self.db_name = attributes[:'db_name'] if attributes[:'db_name']
207
203
 
208
- self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
204
+ self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
209
205
 
210
- raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
206
+ raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
211
207
 
212
- self.db_version = attributes[:'db_version'] if attributes[:'db_version']
208
+ self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
213
209
 
214
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
210
+ self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
215
211
 
216
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
212
+ raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
217
213
 
218
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
214
+ self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
215
+
216
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
217
+
218
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
219
+
220
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
219
221
 
220
222
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
221
223
 
@@ -223,13 +225,17 @@ module OCI
223
225
 
224
226
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
225
227
 
226
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
228
+ self.service_console_url = attributes[:'serviceConsoleUrl'] if attributes[:'serviceConsoleUrl']
227
229
 
228
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
230
+ raise 'You cannot provide both :serviceConsoleUrl and :service_console_url' if attributes.key?(:'serviceConsoleUrl') && attributes.key?(:'service_console_url')
229
231
 
230
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
232
+ self.service_console_url = attributes[:'service_console_url'] if attributes[:'service_console_url']
231
233
 
232
- self.id = attributes[:'id'] if attributes[:'id']
234
+ self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
235
+
236
+ raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
237
+
238
+ self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
233
239
 
234
240
  self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
235
241
 
@@ -237,59 +243,53 @@ module OCI
237
243
 
238
244
  self.license_model = attributes[:'license_model'] if attributes[:'license_model']
239
245
 
240
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
241
-
242
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
243
-
244
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
245
-
246
- self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
246
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
247
247
 
248
- raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
248
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
249
249
 
250
- self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
250
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
251
251
 
252
- self.service_console_url = attributes[:'serviceConsoleUrl'] if attributes[:'serviceConsoleUrl']
252
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
253
253
 
254
- raise 'You cannot provide both :serviceConsoleUrl and :service_console_url' if attributes.key?(:'serviceConsoleUrl') && attributes.key?(:'service_console_url')
254
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
255
255
 
256
- self.service_console_url = attributes[:'service_console_url'] if attributes[:'service_console_url']
256
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
257
257
 
258
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
258
+ self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
259
259
 
260
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
260
+ raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
261
261
 
262
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
262
+ self.db_version = attributes[:'db_version'] if attributes[:'db_version']
263
263
  end
264
264
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
265
265
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
266
266
 
267
267
  # Custom attribute writer method checking allowed values (enum).
268
- # @param [Object] license_model Object to be assigned
269
- def license_model=(license_model)
268
+ # @param [Object] lifecycle_state Object to be assigned
269
+ def lifecycle_state=(lifecycle_state)
270
270
  # rubocop:disable Style/ConditionalAssignment
271
- if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
271
+ if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
272
272
  # rubocop: disable Metrics/LineLength
273
- OCI.logger.debug("Unknown value for 'license_model' [" + license_model + "]. Mapping to 'LICENSE_MODEL_UNKNOWN_ENUM_VALUE'") if OCI.logger
273
+ OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
274
274
  # rubocop: enable Metrics/LineLength
275
- @license_model = LICENSE_MODEL_UNKNOWN_ENUM_VALUE
275
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
276
276
  else
277
- @license_model = license_model
277
+ @lifecycle_state = lifecycle_state
278
278
  end
279
279
  # rubocop:enable Style/ConditionalAssignment
280
280
  end
281
281
 
282
282
  # Custom attribute writer method checking allowed values (enum).
283
- # @param [Object] lifecycle_state Object to be assigned
284
- def lifecycle_state=(lifecycle_state)
283
+ # @param [Object] license_model Object to be assigned
284
+ def license_model=(license_model)
285
285
  # rubocop:disable Style/ConditionalAssignment
286
- if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
286
+ if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
287
287
  # rubocop: disable Metrics/LineLength
288
- OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
288
+ OCI.logger.debug("Unknown value for 'license_model' [" + license_model + "]. Mapping to 'LICENSE_MODEL_UNKNOWN_ENUM_VALUE'") if OCI.logger
289
289
  # rubocop: enable Metrics/LineLength
290
- @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
290
+ @license_model = LICENSE_MODEL_UNKNOWN_ENUM_VALUE
291
291
  else
292
- @lifecycle_state = lifecycle_state
292
+ @license_model = license_model
293
293
  end
294
294
  # rubocop:enable Style/ConditionalAssignment
295
295
  end
@@ -303,21 +303,21 @@ module OCI
303
303
  return true if equal?(other)
304
304
 
305
305
  self.class == other.class &&
306
+ id == other.id &&
306
307
  compartment_id == other.compartment_id &&
307
- connection_strings == other.connection_strings &&
308
+ lifecycle_state == other.lifecycle_state &&
309
+ lifecycle_details == other.lifecycle_details &&
310
+ db_name == other.db_name &&
308
311
  cpu_core_count == other.cpu_core_count &&
309
312
  data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
310
- db_name == other.db_name &&
311
- db_version == other.db_version &&
312
- defined_tags == other.defined_tags &&
313
+ time_created == other.time_created &&
313
314
  display_name == other.display_name &&
314
- freeform_tags == other.freeform_tags &&
315
- id == other.id &&
316
- license_model == other.license_model &&
317
- lifecycle_details == other.lifecycle_details &&
318
- lifecycle_state == other.lifecycle_state &&
319
315
  service_console_url == other.service_console_url &&
320
- time_created == other.time_created
316
+ connection_strings == other.connection_strings &&
317
+ license_model == other.license_model &&
318
+ freeform_tags == other.freeform_tags &&
319
+ defined_tags == other.defined_tags &&
320
+ db_version == other.db_version
321
321
  end
322
322
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
323
323
 
@@ -333,7 +333,7 @@ module OCI
333
333
  # Calculates hash code according to all attributes.
334
334
  # @return [Fixnum] Hash code
335
335
  def hash
336
- [compartment_id, connection_strings, cpu_core_count, data_storage_size_in_tbs, db_name, db_version, defined_tags, display_name, freeform_tags, id, license_model, lifecycle_details, lifecycle_state, service_console_url, time_created].hash
336
+ [id, compartment_id, lifecycle_state, lifecycle_details, db_name, cpu_core_count, data_storage_size_in_tbs, time_created, display_name, service_console_url, connection_strings, license_model, freeform_tags, defined_tags, db_version].hash
337
337
  end
338
338
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
339
339