oci 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -5,17 +5,15 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # The properties that define a Data Guard association.
9
- #
10
- # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an
11
- # administrator. If you're an administrator who needs to write policies to give users access, see
12
- # [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
13
- #
14
- # For information about endpoints and signing API requests, see
15
- # [About the API](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see
16
- # [SDKS and Other Tools](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm).
17
- #
8
+ # DataGuardAssociation model.
18
9
  class Database::Models::DataGuardAssociation # rubocop:disable Metrics/LineLength
10
+ ROLE_ENUM = [
11
+ ROLE_PRIMARY = 'PRIMARY'.freeze,
12
+ ROLE_STANDBY = 'STANDBY'.freeze,
13
+ ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
14
+ ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
15
+ ].freeze
16
+
19
17
  LIFECYCLE_STATE_ENUM = [
20
18
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
21
19
  LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
@@ -40,13 +38,6 @@ module OCI
40
38
  PROTECTION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
41
39
  ].freeze
42
40
 
43
- ROLE_ENUM = [
44
- ROLE_PRIMARY = 'PRIMARY'.freeze,
45
- ROLE_STANDBY = 'STANDBY'.freeze,
46
- ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
47
- ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
48
- ].freeze
49
-
50
41
  TRANSPORT_TYPE_ENUM = [
51
42
  TRANSPORT_TYPE_SYNC = 'SYNC'.freeze,
52
43
  TRANSPORT_TYPE_ASYNC = 'ASYNC'.freeze,
@@ -54,60 +45,64 @@ module OCI
54
45
  TRANSPORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
55
46
  ].freeze
56
47
 
57
- # The lag time between updates to the primary database and application of the redo data on the standby database,
58
- # as computed by the reporting database.
59
- #
60
- # Example: `9 seconds`
61
- #
62
- # @return [String]
63
- attr_accessor :apply_lag
64
-
65
- # The rate at which redo logs are synced between the associated databases.
66
- #
67
- # Example: `180 Mb per second`
68
- #
48
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
69
49
  # @return [String]
70
- attr_accessor :apply_rate
50
+ attr_accessor :id
71
51
 
72
52
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database.
73
53
  # @return [String]
74
54
  attr_accessor :database_id
75
55
 
76
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
56
+ # **[Required]** The role of the reporting database in this Data Guard association.
77
57
  # @return [String]
78
- attr_accessor :id
58
+ attr_reader :role
59
+
60
+ # **[Required]** The current state of the Data Guard association.
61
+ # @return [String]
62
+ attr_reader :lifecycle_state
79
63
 
80
64
  # Additional information about the current lifecycleState, if available.
81
65
  #
82
66
  # @return [String]
83
67
  attr_accessor :lifecycle_details
84
68
 
85
- # **[Required]** The current state of the Data Guard association.
69
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated
70
+ # peer database.
71
+ #
86
72
  # @return [String]
87
- attr_reader :lifecycle_state
73
+ attr_accessor :peer_db_system_id
88
74
 
89
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association.
75
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
76
+ #
90
77
  # @return [String]
91
- attr_accessor :peer_data_guard_association_id
78
+ attr_accessor :peer_db_home_id
92
79
 
93
80
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database.
94
81
  # @return [String]
95
82
  attr_accessor :peer_database_id
96
83
 
97
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
98
- #
84
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association.
99
85
  # @return [String]
100
- attr_accessor :peer_db_home_id
86
+ attr_accessor :peer_data_guard_association_id
101
87
 
102
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated
103
- # peer database.
88
+ # **[Required]** The role of the peer database in this Data Guard association.
89
+ # @return [String]
90
+ attr_reader :peer_role
91
+
92
+ # The lag time between updates to the primary database and application of the redo data on the standby database,
93
+ # as computed by the reporting database.
94
+ #
95
+ # Example: `9 seconds`
104
96
  #
105
97
  # @return [String]
106
- attr_accessor :peer_db_system_id
98
+ attr_accessor :apply_lag
107
99
 
108
- # **[Required]** The role of the peer database in this Data Guard association.
100
+ # The rate at which redo logs are synced between the associated databases.
101
+ #
102
+ # Example: `180 Mb per second`
103
+ #
109
104
  # @return [String]
110
- attr_reader :peer_role
105
+ attr_accessor :apply_rate
111
106
 
112
107
  # **[Required]** The protection mode of this Data Guard association. For more information, see
113
108
  # [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000)
@@ -116,14 +111,6 @@ module OCI
116
111
  # @return [String]
117
112
  attr_reader :protection_mode
118
113
 
119
- # **[Required]** The role of the reporting database in this Data Guard association.
120
- # @return [String]
121
- attr_reader :role
122
-
123
- # The date and time the Data Guard Association was created.
124
- # @return [DateTime]
125
- attr_accessor :time_created
126
-
127
114
  # The redo transport type used by this Data Guard association. For more information, see
128
115
  # [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400)
129
116
  # in the Oracle Data Guard documentation.
@@ -131,25 +118,29 @@ module OCI
131
118
  # @return [String]
132
119
  attr_reader :transport_type
133
120
 
121
+ # The date and time the Data Guard association was created.
122
+ # @return [DateTime]
123
+ attr_accessor :time_created
124
+
134
125
  # Attribute mapping from ruby-style variable name to JSON key.
135
126
  def self.attribute_map
136
127
  {
137
128
  # rubocop:disable Style/SymbolLiteral
138
- 'apply_lag': :'applyLag',
139
- 'apply_rate': :'applyRate',
140
- 'database_id': :'databaseId',
141
129
  'id': :'id',
142
- 'lifecycle_details': :'lifecycleDetails',
130
+ 'database_id': :'databaseId',
131
+ 'role': :'role',
143
132
  'lifecycle_state': :'lifecycleState',
144
- 'peer_data_guard_association_id': :'peerDataGuardAssociationId',
145
- 'peer_database_id': :'peerDatabaseId',
146
- 'peer_db_home_id': :'peerDbHomeId',
133
+ 'lifecycle_details': :'lifecycleDetails',
147
134
  'peer_db_system_id': :'peerDbSystemId',
135
+ 'peer_db_home_id': :'peerDbHomeId',
136
+ 'peer_database_id': :'peerDatabaseId',
137
+ 'peer_data_guard_association_id': :'peerDataGuardAssociationId',
148
138
  'peer_role': :'peerRole',
139
+ 'apply_lag': :'applyLag',
140
+ 'apply_rate': :'applyRate',
149
141
  'protection_mode': :'protectionMode',
150
- 'role': :'role',
151
- 'time_created': :'timeCreated',
152
- 'transport_type': :'transportType'
142
+ 'transport_type': :'transportType',
143
+ 'time_created': :'timeCreated'
153
144
  # rubocop:enable Style/SymbolLiteral
154
145
  }
155
146
  end
@@ -158,21 +149,21 @@ module OCI
158
149
  def self.swagger_types
159
150
  {
160
151
  # rubocop:disable Style/SymbolLiteral
161
- 'apply_lag': :'String',
162
- 'apply_rate': :'String',
163
- 'database_id': :'String',
164
152
  'id': :'String',
165
- 'lifecycle_details': :'String',
153
+ 'database_id': :'String',
154
+ 'role': :'String',
166
155
  'lifecycle_state': :'String',
167
- 'peer_data_guard_association_id': :'String',
168
- 'peer_database_id': :'String',
169
- 'peer_db_home_id': :'String',
156
+ 'lifecycle_details': :'String',
170
157
  'peer_db_system_id': :'String',
158
+ 'peer_db_home_id': :'String',
159
+ 'peer_database_id': :'String',
160
+ 'peer_data_guard_association_id': :'String',
171
161
  'peer_role': :'String',
162
+ 'apply_lag': :'String',
163
+ 'apply_rate': :'String',
172
164
  'protection_mode': :'String',
173
- 'role': :'String',
174
- 'time_created': :'DateTime',
175
- 'transport_type': :'String'
165
+ 'transport_type': :'String',
166
+ 'time_created': :'DateTime'
176
167
  # rubocop:enable Style/SymbolLiteral
177
168
  }
178
169
  end
@@ -183,38 +174,25 @@ module OCI
183
174
 
184
175
  # Initializes the object
185
176
  # @param [Hash] attributes Model attributes in the form of hash
186
- # @option attributes [String] :apply_lag The value to assign to the {#apply_lag} property
187
- # @option attributes [String] :apply_rate The value to assign to the {#apply_rate} property
188
- # @option attributes [String] :database_id The value to assign to the {#database_id} property
189
177
  # @option attributes [String] :id The value to assign to the {#id} property
190
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
178
+ # @option attributes [String] :database_id The value to assign to the {#database_id} property
179
+ # @option attributes [String] :role The value to assign to the {#role} property
191
180
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
192
- # @option attributes [String] :peer_data_guard_association_id The value to assign to the {#peer_data_guard_association_id} property
193
- # @option attributes [String] :peer_database_id The value to assign to the {#peer_database_id} property
194
- # @option attributes [String] :peer_db_home_id The value to assign to the {#peer_db_home_id} property
181
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
195
182
  # @option attributes [String] :peer_db_system_id The value to assign to the {#peer_db_system_id} property
183
+ # @option attributes [String] :peer_db_home_id The value to assign to the {#peer_db_home_id} property
184
+ # @option attributes [String] :peer_database_id The value to assign to the {#peer_database_id} property
185
+ # @option attributes [String] :peer_data_guard_association_id The value to assign to the {#peer_data_guard_association_id} property
196
186
  # @option attributes [String] :peer_role The value to assign to the {#peer_role} property
187
+ # @option attributes [String] :apply_lag The value to assign to the {#apply_lag} property
188
+ # @option attributes [String] :apply_rate The value to assign to the {#apply_rate} property
197
189
  # @option attributes [String] :protection_mode The value to assign to the {#protection_mode} property
198
- # @option attributes [String] :role The value to assign to the {#role} property
199
- # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
200
190
  # @option attributes [String] :transport_type The value to assign to the {#transport_type} property
191
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
201
192
  def initialize(attributes = {})
202
193
  return unless attributes.is_a?(Hash)
203
194
 
204
- # convert string to symbol for hash key
205
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
206
-
207
- self.apply_lag = attributes[:'applyLag'] if attributes[:'applyLag']
208
-
209
- raise 'You cannot provide both :applyLag and :apply_lag' if attributes.key?(:'applyLag') && attributes.key?(:'apply_lag')
210
-
211
- self.apply_lag = attributes[:'apply_lag'] if attributes[:'apply_lag']
212
-
213
- self.apply_rate = attributes[:'applyRate'] if attributes[:'applyRate']
214
-
215
- raise 'You cannot provide both :applyRate and :apply_rate' if attributes.key?(:'applyRate') && attributes.key?(:'apply_rate')
216
-
217
- self.apply_rate = attributes[:'apply_rate'] if attributes[:'apply_rate']
195
+ self.id = attributes[:'id'] if attributes[:'id']
218
196
 
219
197
  self.database_id = attributes[:'databaseId'] if attributes[:'databaseId']
220
198
 
@@ -222,13 +200,7 @@ module OCI
222
200
 
223
201
  self.database_id = attributes[:'database_id'] if attributes[:'database_id']
224
202
 
225
- self.id = attributes[:'id'] if attributes[:'id']
226
-
227
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
228
-
229
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
230
-
231
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
203
+ self.role = attributes[:'role'] if attributes[:'role']
232
204
 
233
205
  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
234
206
 
@@ -236,17 +208,17 @@ module OCI
236
208
 
237
209
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
238
210
 
239
- self.peer_data_guard_association_id = attributes[:'peerDataGuardAssociationId'] if attributes[:'peerDataGuardAssociationId']
211
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
240
212
 
241
- raise 'You cannot provide both :peerDataGuardAssociationId and :peer_data_guard_association_id' if attributes.key?(:'peerDataGuardAssociationId') && attributes.key?(:'peer_data_guard_association_id')
213
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
242
214
 
243
- self.peer_data_guard_association_id = attributes[:'peer_data_guard_association_id'] if attributes[:'peer_data_guard_association_id']
215
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
244
216
 
245
- self.peer_database_id = attributes[:'peerDatabaseId'] if attributes[:'peerDatabaseId']
217
+ self.peer_db_system_id = attributes[:'peerDbSystemId'] if attributes[:'peerDbSystemId']
246
218
 
247
- raise 'You cannot provide both :peerDatabaseId and :peer_database_id' if attributes.key?(:'peerDatabaseId') && attributes.key?(:'peer_database_id')
219
+ raise 'You cannot provide both :peerDbSystemId and :peer_db_system_id' if attributes.key?(:'peerDbSystemId') && attributes.key?(:'peer_db_system_id')
248
220
 
249
- self.peer_database_id = attributes[:'peer_database_id'] if attributes[:'peer_database_id']
221
+ self.peer_db_system_id = attributes[:'peer_db_system_id'] if attributes[:'peer_db_system_id']
250
222
 
251
223
  self.peer_db_home_id = attributes[:'peerDbHomeId'] if attributes[:'peerDbHomeId']
252
224
 
@@ -254,11 +226,17 @@ module OCI
254
226
 
255
227
  self.peer_db_home_id = attributes[:'peer_db_home_id'] if attributes[:'peer_db_home_id']
256
228
 
257
- self.peer_db_system_id = attributes[:'peerDbSystemId'] if attributes[:'peerDbSystemId']
229
+ self.peer_database_id = attributes[:'peerDatabaseId'] if attributes[:'peerDatabaseId']
258
230
 
259
- raise 'You cannot provide both :peerDbSystemId and :peer_db_system_id' if attributes.key?(:'peerDbSystemId') && attributes.key?(:'peer_db_system_id')
231
+ raise 'You cannot provide both :peerDatabaseId and :peer_database_id' if attributes.key?(:'peerDatabaseId') && attributes.key?(:'peer_database_id')
260
232
 
261
- self.peer_db_system_id = attributes[:'peer_db_system_id'] if attributes[:'peer_db_system_id']
233
+ self.peer_database_id = attributes[:'peer_database_id'] if attributes[:'peer_database_id']
234
+
235
+ self.peer_data_guard_association_id = attributes[:'peerDataGuardAssociationId'] if attributes[:'peerDataGuardAssociationId']
236
+
237
+ raise 'You cannot provide both :peerDataGuardAssociationId and :peer_data_guard_association_id' if attributes.key?(:'peerDataGuardAssociationId') && attributes.key?(:'peer_data_guard_association_id')
238
+
239
+ self.peer_data_guard_association_id = attributes[:'peer_data_guard_association_id'] if attributes[:'peer_data_guard_association_id']
262
240
 
263
241
  self.peer_role = attributes[:'peerRole'] if attributes[:'peerRole']
264
242
 
@@ -266,29 +244,54 @@ module OCI
266
244
 
267
245
  self.peer_role = attributes[:'peer_role'] if attributes[:'peer_role']
268
246
 
269
- self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode']
247
+ self.apply_lag = attributes[:'applyLag'] if attributes[:'applyLag']
270
248
 
271
- raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode')
249
+ raise 'You cannot provide both :applyLag and :apply_lag' if attributes.key?(:'applyLag') && attributes.key?(:'apply_lag')
272
250
 
273
- self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode']
251
+ self.apply_lag = attributes[:'apply_lag'] if attributes[:'apply_lag']
274
252
 
275
- self.role = attributes[:'role'] if attributes[:'role']
253
+ self.apply_rate = attributes[:'applyRate'] if attributes[:'applyRate']
276
254
 
277
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
255
+ raise 'You cannot provide both :applyRate and :apply_rate' if attributes.key?(:'applyRate') && attributes.key?(:'apply_rate')
278
256
 
279
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
257
+ self.apply_rate = attributes[:'apply_rate'] if attributes[:'apply_rate']
280
258
 
281
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
259
+ self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode']
260
+
261
+ raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode')
262
+
263
+ self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode']
282
264
 
283
265
  self.transport_type = attributes[:'transportType'] if attributes[:'transportType']
284
266
 
285
267
  raise 'You cannot provide both :transportType and :transport_type' if attributes.key?(:'transportType') && attributes.key?(:'transport_type')
286
268
 
287
269
  self.transport_type = attributes[:'transport_type'] if attributes[:'transport_type']
270
+
271
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
272
+
273
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
274
+
275
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
288
276
  end
289
277
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
290
278
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
291
279
 
280
+ # Custom attribute writer method checking allowed values (enum).
281
+ # @param [Object] role Object to be assigned
282
+ def role=(role)
283
+ # rubocop:disable Style/ConditionalAssignment
284
+ if role && !ROLE_ENUM.include?(role)
285
+ # rubocop: disable Metrics/LineLength
286
+ OCI.logger.debug("Unknown value for 'role' [" + role + "]. Mapping to 'ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
287
+ # rubocop: enable Metrics/LineLength
288
+ @role = ROLE_UNKNOWN_ENUM_VALUE
289
+ else
290
+ @role = role
291
+ end
292
+ # rubocop:enable Style/ConditionalAssignment
293
+ end
294
+
292
295
  # Custom attribute writer method checking allowed values (enum).
293
296
  # @param [Object] lifecycle_state Object to be assigned
294
297
  def lifecycle_state=(lifecycle_state)
@@ -334,21 +337,6 @@ module OCI
334
337
  # rubocop:enable Style/ConditionalAssignment
335
338
  end
336
339
 
337
- # Custom attribute writer method checking allowed values (enum).
338
- # @param [Object] role Object to be assigned
339
- def role=(role)
340
- # rubocop:disable Style/ConditionalAssignment
341
- if role && !ROLE_ENUM.include?(role)
342
- # rubocop: disable Metrics/LineLength
343
- OCI.logger.debug("Unknown value for 'role' [" + role + "]. Mapping to 'ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
344
- # rubocop: enable Metrics/LineLength
345
- @role = ROLE_UNKNOWN_ENUM_VALUE
346
- else
347
- @role = role
348
- end
349
- # rubocop:enable Style/ConditionalAssignment
350
- end
351
-
352
340
  # Custom attribute writer method checking allowed values (enum).
353
341
  # @param [Object] transport_type Object to be assigned
354
342
  def transport_type=(transport_type)
@@ -373,21 +361,21 @@ module OCI
373
361
  return true if equal?(other)
374
362
 
375
363
  self.class == other.class &&
376
- apply_lag == other.apply_lag &&
377
- apply_rate == other.apply_rate &&
378
- database_id == other.database_id &&
379
364
  id == other.id &&
380
- lifecycle_details == other.lifecycle_details &&
365
+ database_id == other.database_id &&
366
+ role == other.role &&
381
367
  lifecycle_state == other.lifecycle_state &&
382
- peer_data_guard_association_id == other.peer_data_guard_association_id &&
383
- peer_database_id == other.peer_database_id &&
384
- peer_db_home_id == other.peer_db_home_id &&
368
+ lifecycle_details == other.lifecycle_details &&
385
369
  peer_db_system_id == other.peer_db_system_id &&
370
+ peer_db_home_id == other.peer_db_home_id &&
371
+ peer_database_id == other.peer_database_id &&
372
+ peer_data_guard_association_id == other.peer_data_guard_association_id &&
386
373
  peer_role == other.peer_role &&
374
+ apply_lag == other.apply_lag &&
375
+ apply_rate == other.apply_rate &&
387
376
  protection_mode == other.protection_mode &&
388
- role == other.role &&
389
- time_created == other.time_created &&
390
- transport_type == other.transport_type
377
+ transport_type == other.transport_type &&
378
+ time_created == other.time_created
391
379
  end
392
380
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
393
381
 
@@ -403,7 +391,7 @@ module OCI
403
391
  # Calculates hash code according to all attributes.
404
392
  # @return [Fixnum] Hash code
405
393
  def hash
406
- [apply_lag, apply_rate, database_id, id, lifecycle_details, lifecycle_state, peer_data_guard_association_id, peer_database_id, peer_db_home_id, peer_db_system_id, peer_role, protection_mode, role, time_created, transport_type].hash
394
+ [id, database_id, role, lifecycle_state, lifecycle_details, peer_db_system_id, peer_db_home_id, peer_database_id, peer_data_guard_association_id, peer_role, apply_lag, apply_rate, protection_mode, transport_type, time_created].hash
407
395
  end
408
396
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
409
397
 
@@ -16,6 +16,13 @@ module OCI
16
16
  # [SDKS and Other Tools](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdks.htm).
17
17
  #
18
18
  class Database::Models::DataGuardAssociationSummary # rubocop:disable Metrics/LineLength
19
+ ROLE_ENUM = [
20
+ ROLE_PRIMARY = 'PRIMARY'.freeze,
21
+ ROLE_STANDBY = 'STANDBY'.freeze,
22
+ ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
23
+ ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
24
+ ].freeze
25
+
19
26
  LIFECYCLE_STATE_ENUM = [
20
27
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
21
28
  LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
@@ -40,13 +47,6 @@ module OCI
40
47
  PROTECTION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
41
48
  ].freeze
42
49
 
43
- ROLE_ENUM = [
44
- ROLE_PRIMARY = 'PRIMARY'.freeze,
45
- ROLE_STANDBY = 'STANDBY'.freeze,
46
- ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'.freeze,
47
- ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
48
- ].freeze
49
-
50
50
  TRANSPORT_TYPE_ENUM = [
51
51
  TRANSPORT_TYPE_SYNC = 'SYNC'.freeze,
52
52
  TRANSPORT_TYPE_ASYNC = 'ASYNC'.freeze,
@@ -54,60 +54,64 @@ module OCI
54
54
  TRANSPORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
55
55
  ].freeze
56
56
 
57
- # The lag time between updates to the primary database and application of the redo data on the standby database,
58
- # as computed by the reporting database.
59
- #
60
- # Example: `9 seconds`
61
- #
62
- # @return [String]
63
- attr_accessor :apply_lag
64
-
65
- # The rate at which redo logs are synced between the associated databases.
66
- #
67
- # Example: `180 Mb per second`
68
- #
57
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
69
58
  # @return [String]
70
- attr_accessor :apply_rate
59
+ attr_accessor :id
71
60
 
72
61
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database.
73
62
  # @return [String]
74
63
  attr_accessor :database_id
75
64
 
76
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
65
+ # **[Required]** The role of the reporting database in this Data Guard association.
77
66
  # @return [String]
78
- attr_accessor :id
67
+ attr_reader :role
68
+
69
+ # **[Required]** The current state of the Data Guard association.
70
+ # @return [String]
71
+ attr_reader :lifecycle_state
79
72
 
80
73
  # Additional information about the current lifecycleState, if available.
81
74
  #
82
75
  # @return [String]
83
76
  attr_accessor :lifecycle_details
84
77
 
85
- # **[Required]** The current state of the Data Guard association.
78
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated
79
+ # peer database.
80
+ #
86
81
  # @return [String]
87
- attr_reader :lifecycle_state
82
+ attr_accessor :peer_db_system_id
88
83
 
89
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association.
84
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
85
+ #
90
86
  # @return [String]
91
- attr_accessor :peer_data_guard_association_id
87
+ attr_accessor :peer_db_home_id
92
88
 
93
89
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database.
94
90
  # @return [String]
95
91
  attr_accessor :peer_database_id
96
92
 
97
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
98
- #
93
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database's Data Guard association.
99
94
  # @return [String]
100
- attr_accessor :peer_db_home_id
95
+ attr_accessor :peer_data_guard_association_id
101
96
 
102
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system containing the associated
103
- # peer database.
97
+ # **[Required]** The role of the peer database in this Data Guard association.
98
+ # @return [String]
99
+ attr_reader :peer_role
100
+
101
+ # The lag time between updates to the primary database and application of the redo data on the standby database,
102
+ # as computed by the reporting database.
103
+ #
104
+ # Example: `9 seconds`
104
105
  #
105
106
  # @return [String]
106
- attr_accessor :peer_db_system_id
107
+ attr_accessor :apply_lag
107
108
 
108
- # **[Required]** The role of the peer database in this Data Guard association.
109
+ # The rate at which redo logs are synced between the associated databases.
110
+ #
111
+ # Example: `180 Mb per second`
112
+ #
109
113
  # @return [String]
110
- attr_reader :peer_role
114
+ attr_accessor :apply_rate
111
115
 
112
116
  # **[Required]** The protection mode of this Data Guard association. For more information, see
113
117
  # [Oracle Data Guard Protection Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000)
@@ -116,14 +120,6 @@ module OCI
116
120
  # @return [String]
117
121
  attr_reader :protection_mode
118
122
 
119
- # **[Required]** The role of the reporting database in this Data Guard association.
120
- # @return [String]
121
- attr_reader :role
122
-
123
- # The date and time the Data Guard Association was created.
124
- # @return [DateTime]
125
- attr_accessor :time_created
126
-
127
123
  # The redo transport type used by this Data Guard association. For more information, see
128
124
  # [Redo Transport Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400)
129
125
  # in the Oracle Data Guard documentation.
@@ -131,25 +127,29 @@ module OCI
131
127
  # @return [String]
132
128
  attr_reader :transport_type
133
129
 
130
+ # The date and time the Data Guard association was created.
131
+ # @return [DateTime]
132
+ attr_accessor :time_created
133
+
134
134
  # Attribute mapping from ruby-style variable name to JSON key.
135
135
  def self.attribute_map
136
136
  {
137
137
  # rubocop:disable Style/SymbolLiteral
138
- 'apply_lag': :'applyLag',
139
- 'apply_rate': :'applyRate',
140
- 'database_id': :'databaseId',
141
138
  'id': :'id',
142
- 'lifecycle_details': :'lifecycleDetails',
139
+ 'database_id': :'databaseId',
140
+ 'role': :'role',
143
141
  'lifecycle_state': :'lifecycleState',
144
- 'peer_data_guard_association_id': :'peerDataGuardAssociationId',
145
- 'peer_database_id': :'peerDatabaseId',
146
- 'peer_db_home_id': :'peerDbHomeId',
142
+ 'lifecycle_details': :'lifecycleDetails',
147
143
  'peer_db_system_id': :'peerDbSystemId',
144
+ 'peer_db_home_id': :'peerDbHomeId',
145
+ 'peer_database_id': :'peerDatabaseId',
146
+ 'peer_data_guard_association_id': :'peerDataGuardAssociationId',
148
147
  'peer_role': :'peerRole',
148
+ 'apply_lag': :'applyLag',
149
+ 'apply_rate': :'applyRate',
149
150
  'protection_mode': :'protectionMode',
150
- 'role': :'role',
151
- 'time_created': :'timeCreated',
152
- 'transport_type': :'transportType'
151
+ 'transport_type': :'transportType',
152
+ 'time_created': :'timeCreated'
153
153
  # rubocop:enable Style/SymbolLiteral
154
154
  }
155
155
  end
@@ -158,21 +158,21 @@ module OCI
158
158
  def self.swagger_types
159
159
  {
160
160
  # rubocop:disable Style/SymbolLiteral
161
- 'apply_lag': :'String',
162
- 'apply_rate': :'String',
163
- 'database_id': :'String',
164
161
  'id': :'String',
165
- 'lifecycle_details': :'String',
162
+ 'database_id': :'String',
163
+ 'role': :'String',
166
164
  'lifecycle_state': :'String',
167
- 'peer_data_guard_association_id': :'String',
168
- 'peer_database_id': :'String',
169
- 'peer_db_home_id': :'String',
165
+ 'lifecycle_details': :'String',
170
166
  'peer_db_system_id': :'String',
167
+ 'peer_db_home_id': :'String',
168
+ 'peer_database_id': :'String',
169
+ 'peer_data_guard_association_id': :'String',
171
170
  'peer_role': :'String',
171
+ 'apply_lag': :'String',
172
+ 'apply_rate': :'String',
172
173
  'protection_mode': :'String',
173
- 'role': :'String',
174
- 'time_created': :'DateTime',
175
- 'transport_type': :'String'
174
+ 'transport_type': :'String',
175
+ 'time_created': :'DateTime'
176
176
  # rubocop:enable Style/SymbolLiteral
177
177
  }
178
178
  end
@@ -183,38 +183,28 @@ module OCI
183
183
 
184
184
  # Initializes the object
185
185
  # @param [Hash] attributes Model attributes in the form of hash
186
- # @option attributes [String] :apply_lag The value to assign to the {#apply_lag} property
187
- # @option attributes [String] :apply_rate The value to assign to the {#apply_rate} property
188
- # @option attributes [String] :database_id The value to assign to the {#database_id} property
189
186
  # @option attributes [String] :id The value to assign to the {#id} property
190
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
187
+ # @option attributes [String] :database_id The value to assign to the {#database_id} property
188
+ # @option attributes [String] :role The value to assign to the {#role} property
191
189
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
192
- # @option attributes [String] :peer_data_guard_association_id The value to assign to the {#peer_data_guard_association_id} property
193
- # @option attributes [String] :peer_database_id The value to assign to the {#peer_database_id} property
194
- # @option attributes [String] :peer_db_home_id The value to assign to the {#peer_db_home_id} property
190
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
195
191
  # @option attributes [String] :peer_db_system_id The value to assign to the {#peer_db_system_id} property
192
+ # @option attributes [String] :peer_db_home_id The value to assign to the {#peer_db_home_id} property
193
+ # @option attributes [String] :peer_database_id The value to assign to the {#peer_database_id} property
194
+ # @option attributes [String] :peer_data_guard_association_id The value to assign to the {#peer_data_guard_association_id} property
196
195
  # @option attributes [String] :peer_role The value to assign to the {#peer_role} property
196
+ # @option attributes [String] :apply_lag The value to assign to the {#apply_lag} property
197
+ # @option attributes [String] :apply_rate The value to assign to the {#apply_rate} property
197
198
  # @option attributes [String] :protection_mode The value to assign to the {#protection_mode} property
198
- # @option attributes [String] :role The value to assign to the {#role} property
199
- # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
200
199
  # @option attributes [String] :transport_type The value to assign to the {#transport_type} property
200
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
201
201
  def initialize(attributes = {})
202
202
  return unless attributes.is_a?(Hash)
203
203
 
204
204
  # convert string to symbol for hash key
205
205
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
206
206
 
207
- self.apply_lag = attributes[:'applyLag'] if attributes[:'applyLag']
208
-
209
- raise 'You cannot provide both :applyLag and :apply_lag' if attributes.key?(:'applyLag') && attributes.key?(:'apply_lag')
210
-
211
- self.apply_lag = attributes[:'apply_lag'] if attributes[:'apply_lag']
212
-
213
- self.apply_rate = attributes[:'applyRate'] if attributes[:'applyRate']
214
-
215
- raise 'You cannot provide both :applyRate and :apply_rate' if attributes.key?(:'applyRate') && attributes.key?(:'apply_rate')
216
-
217
- self.apply_rate = attributes[:'apply_rate'] if attributes[:'apply_rate']
207
+ self.id = attributes[:'id'] if attributes[:'id']
218
208
 
219
209
  self.database_id = attributes[:'databaseId'] if attributes[:'databaseId']
220
210
 
@@ -222,13 +212,7 @@ module OCI
222
212
 
223
213
  self.database_id = attributes[:'database_id'] if attributes[:'database_id']
224
214
 
225
- self.id = attributes[:'id'] if attributes[:'id']
226
-
227
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
228
-
229
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
230
-
231
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
215
+ self.role = attributes[:'role'] if attributes[:'role']
232
216
 
233
217
  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
234
218
 
@@ -236,17 +220,17 @@ module OCI
236
220
 
237
221
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
238
222
 
239
- self.peer_data_guard_association_id = attributes[:'peerDataGuardAssociationId'] if attributes[:'peerDataGuardAssociationId']
223
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
240
224
 
241
- raise 'You cannot provide both :peerDataGuardAssociationId and :peer_data_guard_association_id' if attributes.key?(:'peerDataGuardAssociationId') && attributes.key?(:'peer_data_guard_association_id')
225
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
242
226
 
243
- self.peer_data_guard_association_id = attributes[:'peer_data_guard_association_id'] if attributes[:'peer_data_guard_association_id']
227
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
244
228
 
245
- self.peer_database_id = attributes[:'peerDatabaseId'] if attributes[:'peerDatabaseId']
229
+ self.peer_db_system_id = attributes[:'peerDbSystemId'] if attributes[:'peerDbSystemId']
246
230
 
247
- raise 'You cannot provide both :peerDatabaseId and :peer_database_id' if attributes.key?(:'peerDatabaseId') && attributes.key?(:'peer_database_id')
231
+ raise 'You cannot provide both :peerDbSystemId and :peer_db_system_id' if attributes.key?(:'peerDbSystemId') && attributes.key?(:'peer_db_system_id')
248
232
 
249
- self.peer_database_id = attributes[:'peer_database_id'] if attributes[:'peer_database_id']
233
+ self.peer_db_system_id = attributes[:'peer_db_system_id'] if attributes[:'peer_db_system_id']
250
234
 
251
235
  self.peer_db_home_id = attributes[:'peerDbHomeId'] if attributes[:'peerDbHomeId']
252
236
 
@@ -254,11 +238,17 @@ module OCI
254
238
 
255
239
  self.peer_db_home_id = attributes[:'peer_db_home_id'] if attributes[:'peer_db_home_id']
256
240
 
257
- self.peer_db_system_id = attributes[:'peerDbSystemId'] if attributes[:'peerDbSystemId']
241
+ self.peer_database_id = attributes[:'peerDatabaseId'] if attributes[:'peerDatabaseId']
258
242
 
259
- raise 'You cannot provide both :peerDbSystemId and :peer_db_system_id' if attributes.key?(:'peerDbSystemId') && attributes.key?(:'peer_db_system_id')
243
+ raise 'You cannot provide both :peerDatabaseId and :peer_database_id' if attributes.key?(:'peerDatabaseId') && attributes.key?(:'peer_database_id')
260
244
 
261
- self.peer_db_system_id = attributes[:'peer_db_system_id'] if attributes[:'peer_db_system_id']
245
+ self.peer_database_id = attributes[:'peer_database_id'] if attributes[:'peer_database_id']
246
+
247
+ self.peer_data_guard_association_id = attributes[:'peerDataGuardAssociationId'] if attributes[:'peerDataGuardAssociationId']
248
+
249
+ raise 'You cannot provide both :peerDataGuardAssociationId and :peer_data_guard_association_id' if attributes.key?(:'peerDataGuardAssociationId') && attributes.key?(:'peer_data_guard_association_id')
250
+
251
+ self.peer_data_guard_association_id = attributes[:'peer_data_guard_association_id'] if attributes[:'peer_data_guard_association_id']
262
252
 
263
253
  self.peer_role = attributes[:'peerRole'] if attributes[:'peerRole']
264
254
 
@@ -266,29 +256,54 @@ module OCI
266
256
 
267
257
  self.peer_role = attributes[:'peer_role'] if attributes[:'peer_role']
268
258
 
269
- self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode']
259
+ self.apply_lag = attributes[:'applyLag'] if attributes[:'applyLag']
270
260
 
271
- raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode')
261
+ raise 'You cannot provide both :applyLag and :apply_lag' if attributes.key?(:'applyLag') && attributes.key?(:'apply_lag')
272
262
 
273
- self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode']
263
+ self.apply_lag = attributes[:'apply_lag'] if attributes[:'apply_lag']
274
264
 
275
- self.role = attributes[:'role'] if attributes[:'role']
265
+ self.apply_rate = attributes[:'applyRate'] if attributes[:'applyRate']
276
266
 
277
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
267
+ raise 'You cannot provide both :applyRate and :apply_rate' if attributes.key?(:'applyRate') && attributes.key?(:'apply_rate')
278
268
 
279
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
269
+ self.apply_rate = attributes[:'apply_rate'] if attributes[:'apply_rate']
280
270
 
281
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
271
+ self.protection_mode = attributes[:'protectionMode'] if attributes[:'protectionMode']
272
+
273
+ raise 'You cannot provide both :protectionMode and :protection_mode' if attributes.key?(:'protectionMode') && attributes.key?(:'protection_mode')
274
+
275
+ self.protection_mode = attributes[:'protection_mode'] if attributes[:'protection_mode']
282
276
 
283
277
  self.transport_type = attributes[:'transportType'] if attributes[:'transportType']
284
278
 
285
279
  raise 'You cannot provide both :transportType and :transport_type' if attributes.key?(:'transportType') && attributes.key?(:'transport_type')
286
280
 
287
281
  self.transport_type = attributes[:'transport_type'] if attributes[:'transport_type']
282
+
283
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
284
+
285
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
286
+
287
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
288
288
  end
289
289
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
290
290
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
291
291
 
292
+ # Custom attribute writer method checking allowed values (enum).
293
+ # @param [Object] role Object to be assigned
294
+ def role=(role)
295
+ # rubocop:disable Style/ConditionalAssignment
296
+ if role && !ROLE_ENUM.include?(role)
297
+ # rubocop: disable Metrics/LineLength
298
+ OCI.logger.debug("Unknown value for 'role' [" + role + "]. Mapping to 'ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
299
+ # rubocop: enable Metrics/LineLength
300
+ @role = ROLE_UNKNOWN_ENUM_VALUE
301
+ else
302
+ @role = role
303
+ end
304
+ # rubocop:enable Style/ConditionalAssignment
305
+ end
306
+
292
307
  # Custom attribute writer method checking allowed values (enum).
293
308
  # @param [Object] lifecycle_state Object to be assigned
294
309
  def lifecycle_state=(lifecycle_state)
@@ -334,21 +349,6 @@ module OCI
334
349
  # rubocop:enable Style/ConditionalAssignment
335
350
  end
336
351
 
337
- # Custom attribute writer method checking allowed values (enum).
338
- # @param [Object] role Object to be assigned
339
- def role=(role)
340
- # rubocop:disable Style/ConditionalAssignment
341
- if role && !ROLE_ENUM.include?(role)
342
- # rubocop: disable Metrics/LineLength
343
- OCI.logger.debug("Unknown value for 'role' [" + role + "]. Mapping to 'ROLE_UNKNOWN_ENUM_VALUE'") if OCI.logger
344
- # rubocop: enable Metrics/LineLength
345
- @role = ROLE_UNKNOWN_ENUM_VALUE
346
- else
347
- @role = role
348
- end
349
- # rubocop:enable Style/ConditionalAssignment
350
- end
351
-
352
352
  # Custom attribute writer method checking allowed values (enum).
353
353
  # @param [Object] transport_type Object to be assigned
354
354
  def transport_type=(transport_type)
@@ -373,21 +373,21 @@ module OCI
373
373
  return true if equal?(other)
374
374
 
375
375
  self.class == other.class &&
376
- apply_lag == other.apply_lag &&
377
- apply_rate == other.apply_rate &&
378
- database_id == other.database_id &&
379
376
  id == other.id &&
380
- lifecycle_details == other.lifecycle_details &&
377
+ database_id == other.database_id &&
378
+ role == other.role &&
381
379
  lifecycle_state == other.lifecycle_state &&
382
- peer_data_guard_association_id == other.peer_data_guard_association_id &&
383
- peer_database_id == other.peer_database_id &&
384
- peer_db_home_id == other.peer_db_home_id &&
380
+ lifecycle_details == other.lifecycle_details &&
385
381
  peer_db_system_id == other.peer_db_system_id &&
382
+ peer_db_home_id == other.peer_db_home_id &&
383
+ peer_database_id == other.peer_database_id &&
384
+ peer_data_guard_association_id == other.peer_data_guard_association_id &&
386
385
  peer_role == other.peer_role &&
386
+ apply_lag == other.apply_lag &&
387
+ apply_rate == other.apply_rate &&
387
388
  protection_mode == other.protection_mode &&
388
- role == other.role &&
389
- time_created == other.time_created &&
390
- transport_type == other.transport_type
389
+ transport_type == other.transport_type &&
390
+ time_created == other.time_created
391
391
  end
392
392
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
393
393
 
@@ -403,7 +403,7 @@ module OCI
403
403
  # Calculates hash code according to all attributes.
404
404
  # @return [Fixnum] Hash code
405
405
  def hash
406
- [apply_lag, apply_rate, database_id, id, lifecycle_details, lifecycle_state, peer_data_guard_association_id, peer_database_id, peer_db_home_id, peer_db_system_id, peer_role, protection_mode, role, time_created, transport_type].hash
406
+ [id, database_id, role, lifecycle_state, lifecycle_details, peer_db_system_id, peer_db_home_id, peer_database_id, peer_data_guard_association_id, peer_role, apply_lag, apply_rate, protection_mode, transport_type, time_created].hash
407
407
  end
408
408
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
409
409