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