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
@@ -23,7 +23,7 @@ module OCI
23
23
  # @return [String]
24
24
  attr_accessor :id
25
25
 
26
- # **[Required]** Name of the service.
26
+ # **[Required]** Name of the service. This name can change and is not guaranteed to be unique.
27
27
  # @return [String]
28
28
  attr_accessor :name
29
29
 
@@ -12,7 +12,10 @@ module OCI
12
12
  # @return [String]
13
13
  attr_accessor :display_name
14
14
 
15
- # The OCID of the route table the DRG attachment will use.
15
+ # The OCID of the route table the DRG attachment will use. For information about why you
16
+ # would associate a route table with a DRG attachment, see
17
+ # [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
18
+ #
16
19
  # @return [String]
17
20
  attr_accessor :route_table_id
18
21
 
@@ -29,7 +29,10 @@ module OCI
29
29
  # @return [Hash<String, String>]
30
30
  attr_accessor :freeform_tags
31
31
 
32
- # The OCID of the route table the LPG will use.
32
+ # The OCID of the route table the LPG will use. For information about why you
33
+ # would associate a route table with an LPG, see
34
+ # [Advanced Scenario: Transit Routing](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/transitrouting.htm).
35
+ #
33
36
  # @return [String]
34
37
  attr_accessor :route_table_id
35
38
 
@@ -75,6 +75,10 @@ module OCI
75
75
  # @return [String]
76
76
  attr_accessor :volume_id
77
77
 
78
+ # Whether the enable encryption in transit for the PV volume attachment is on or not.
79
+ # @return [BOOLEAN]
80
+ attr_accessor :is_pv_encryption_in_transit_enabled
81
+
78
82
  # Attribute mapping from ruby-style variable name to JSON key.
79
83
  def self.attribute_map
80
84
  {
@@ -88,7 +92,8 @@ module OCI
88
92
  'is_read_only': :'isReadOnly',
89
93
  'lifecycle_state': :'lifecycleState',
90
94
  'time_created': :'timeCreated',
91
- 'volume_id': :'volumeId'
95
+ 'volume_id': :'volumeId',
96
+ 'is_pv_encryption_in_transit_enabled': :'isPvEncryptionInTransitEnabled'
92
97
  # rubocop:enable Style/SymbolLiteral
93
98
  }
94
99
  end
@@ -106,7 +111,8 @@ module OCI
106
111
  'is_read_only': :'BOOLEAN',
107
112
  'lifecycle_state': :'String',
108
113
  'time_created': :'DateTime',
109
- 'volume_id': :'String'
114
+ 'volume_id': :'String',
115
+ 'is_pv_encryption_in_transit_enabled': :'BOOLEAN'
110
116
  # rubocop:enable Style/SymbolLiteral
111
117
  }
112
118
  end
@@ -143,6 +149,7 @@ module OCI
143
149
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
144
150
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
145
151
  # @option attributes [String] :volume_id The value to assign to the {#volume_id} property
152
+ # @option attributes [BOOLEAN] :is_pv_encryption_in_transit_enabled The value to assign to the {#is_pv_encryption_in_transit_enabled} property
146
153
  def initialize(attributes = {})
147
154
  return unless attributes.is_a?(Hash)
148
155
 
@@ -204,6 +211,12 @@ module OCI
204
211
  raise 'You cannot provide both :volumeId and :volume_id' if attributes.key?(:'volumeId') && attributes.key?(:'volume_id')
205
212
 
206
213
  self.volume_id = attributes[:'volume_id'] if attributes[:'volume_id']
214
+
215
+ self.is_pv_encryption_in_transit_enabled = attributes[:'isPvEncryptionInTransitEnabled'] unless attributes[:'isPvEncryptionInTransitEnabled'].nil?
216
+
217
+ raise 'You cannot provide both :isPvEncryptionInTransitEnabled and :is_pv_encryption_in_transit_enabled' if attributes.key?(:'isPvEncryptionInTransitEnabled') && attributes.key?(:'is_pv_encryption_in_transit_enabled')
218
+
219
+ self.is_pv_encryption_in_transit_enabled = attributes[:'is_pv_encryption_in_transit_enabled'] unless attributes[:'is_pv_encryption_in_transit_enabled'].nil?
207
220
  end
208
221
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
209
222
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -241,7 +254,8 @@ module OCI
241
254
  is_read_only == other.is_read_only &&
242
255
  lifecycle_state == other.lifecycle_state &&
243
256
  time_created == other.time_created &&
244
- volume_id == other.volume_id
257
+ volume_id == other.volume_id &&
258
+ is_pv_encryption_in_transit_enabled == other.is_pv_encryption_in_transit_enabled
245
259
  end
246
260
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
247
261
 
@@ -257,7 +271,7 @@ module OCI
257
271
  # Calculates hash code according to all attributes.
258
272
  # @return [Fixnum] Hash code
259
273
  def hash
260
- [attachment_type, availability_domain, compartment_id, display_name, id, instance_id, is_read_only, lifecycle_state, time_created, volume_id].hash
274
+ [attachment_type, availability_domain, compartment_id, display_name, id, instance_id, is_read_only, lifecycle_state, time_created, volume_id, is_pv_encryption_in_transit_enabled].hash
261
275
  end
262
276
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
263
277
 
@@ -26,7 +26,7 @@ module OCI
26
26
  # @return [String]
27
27
  attr_reader :backup_type
28
28
 
29
- # **[Required]** The number of seconds (positive or negative) that the backup time should be shifted from the default interval boundaries specified by the period.
29
+ # **[Required]** The number of seconds (positive or negative) that the backup time should be shifted from the default interval boundaries specified by the period. Backup time = Frequency start time + Offset.
30
30
  # @return [Integer]
31
31
  attr_accessor :offset_seconds
32
32
 
@@ -7431,7 +7431,7 @@ module OCI
7431
7431
  # {#delete_public_ip delete_public_ip}, which
7432
7432
  # unassigns and deletes the ephemeral public IP.
7433
7433
  #
7434
- # **Note:** If a public IP (either ephemeral or reserved) is assigned to a secondary private
7434
+ # **Note:** If a public IP is assigned to a secondary private
7435
7435
  # IP (see {PrivateIp}), and you move that secondary
7436
7436
  # private IP to another VNIC, the public IP moves with it.
7437
7437
  #
@@ -30,6 +30,7 @@ require 'oci/database/models/create_autonomous_database_details'
30
30
  require 'oci/database/models/create_backup_details'
31
31
  require 'oci/database/models/create_data_guard_association_details'
32
32
  require 'oci/database/models/create_data_guard_association_to_existing_db_system_details'
33
+ require 'oci/database/models/create_data_guard_association_with_new_db_system_details'
33
34
  require 'oci/database/models/create_database_details'
34
35
  require 'oci/database/models/create_database_from_backup_details'
35
36
  require 'oci/database/models/create_db_home_details'
@@ -7,15 +7,7 @@ require 'logger'
7
7
  module OCI
8
8
  # An Oracle Autonomous Data Warehouse.
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::AutonomousDataWarehouse # 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,
@@ -32,13 +24,31 @@ module OCI
32
24
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
33
25
  ].freeze
34
26
 
27
+ LICENSE_MODEL_ENUM = [
28
+ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze,
29
+ LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze,
30
+ LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
31
+ ].freeze
32
+
33
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
34
+ # @return [String]
35
+ attr_accessor :id
36
+
35
37
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
36
38
  # @return [String]
37
39
  attr_accessor :compartment_id
38
40
 
39
- # The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
40
- # @return [OCI::Database::Models::AutonomousDataWarehouseConnectionStrings]
41
- attr_accessor :connection_strings
41
+ # **[Required]** The current state of the database.
42
+ # @return [String]
43
+ attr_reader :lifecycle_state
44
+
45
+ # Information about the current lifecycle state.
46
+ # @return [String]
47
+ attr_accessor :lifecycle_details
48
+
49
+ # **[Required]** The database name.
50
+ # @return [String]
51
+ attr_accessor :db_name
42
52
 
43
53
  # **[Required]** The number of CPU cores to be made available to the database.
44
54
  # @return [Integer]
@@ -48,25 +58,26 @@ module OCI
48
58
  # @return [Integer]
49
59
  attr_accessor :data_storage_size_in_tbs
50
60
 
51
- # **[Required]** The database name.
61
+ # The date and time the database was created.
62
+ # @return [DateTime]
63
+ attr_accessor :time_created
64
+
65
+ # The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
52
66
  # @return [String]
53
- attr_accessor :db_name
67
+ attr_accessor :display_name
54
68
 
55
- # A valid Oracle Database version for Autonomous Data Warehouse.
69
+ # The URL of the Service Console for the Data Warehouse.
56
70
  # @return [String]
57
- attr_accessor :db_version
71
+ attr_accessor :service_console_url
58
72
 
59
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
60
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
61
- #
62
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
63
- #
64
- # @return [Hash<String, Hash<String, Object>>]
65
- attr_accessor :defined_tags
73
+ # The connection string used to connect to the Data Warehouse. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Data Warehouse for the password value.
74
+ # @return [OCI::Database::Models::AutonomousDataWarehouseConnectionStrings]
75
+ attr_accessor :connection_strings
66
76
 
67
- # The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
77
+ # The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
78
+ #
68
79
  # @return [String]
69
- attr_accessor :display_name
80
+ attr_reader :license_model
70
81
 
71
82
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
72
83
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
@@ -76,50 +87,37 @@ module OCI
76
87
  # @return [Hash<String, String>]
77
88
  attr_accessor :freeform_tags
78
89
 
79
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse.
80
- # @return [String]
81
- attr_accessor :id
82
-
83
- # The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
90
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
91
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
84
92
  #
85
- # @return [String]
86
- attr_reader :license_model
87
-
88
- # Information about the current lifecycle state.
89
- # @return [String]
90
- attr_accessor :lifecycle_details
91
-
92
- # **[Required]** The current state of the database.
93
- # @return [String]
94
- attr_reader :lifecycle_state
93
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
94
+ #
95
+ # @return [Hash<String, Hash<String, Object>>]
96
+ attr_accessor :defined_tags
95
97
 
96
- # The URL of the Service Console for the Data Warehouse.
98
+ # A valid Oracle Database version for Autonomous Data Warehouse.
97
99
  # @return [String]
98
- attr_accessor :service_console_url
99
-
100
- # The date and time the database was created.
101
- # @return [DateTime]
102
- attr_accessor :time_created
100
+ attr_accessor :db_version
103
101
 
104
102
  # Attribute mapping from ruby-style variable name to JSON key.
105
103
  def self.attribute_map
106
104
  {
107
105
  # rubocop:disable Style/SymbolLiteral
106
+ 'id': :'id',
108
107
  'compartment_id': :'compartmentId',
109
- 'connection_strings': :'connectionStrings',
108
+ 'lifecycle_state': :'lifecycleState',
109
+ 'lifecycle_details': :'lifecycleDetails',
110
+ 'db_name': :'dbName',
110
111
  'cpu_core_count': :'cpuCoreCount',
111
112
  'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
112
- 'db_name': :'dbName',
113
- 'db_version': :'dbVersion',
114
- 'defined_tags': :'definedTags',
113
+ 'time_created': :'timeCreated',
115
114
  'display_name': :'displayName',
116
- 'freeform_tags': :'freeformTags',
117
- 'id': :'id',
118
- 'license_model': :'licenseModel',
119
- 'lifecycle_details': :'lifecycleDetails',
120
- 'lifecycle_state': :'lifecycleState',
121
115
  'service_console_url': :'serviceConsoleUrl',
122
- 'time_created': :'timeCreated'
116
+ 'connection_strings': :'connectionStrings',
117
+ 'license_model': :'licenseModel',
118
+ 'freeform_tags': :'freeformTags',
119
+ 'defined_tags': :'definedTags',
120
+ 'db_version': :'dbVersion'
123
121
  # rubocop:enable Style/SymbolLiteral
124
122
  }
125
123
  end
@@ -128,21 +126,21 @@ module OCI
128
126
  def self.swagger_types
129
127
  {
130
128
  # rubocop:disable Style/SymbolLiteral
129
+ 'id': :'String',
131
130
  'compartment_id': :'String',
132
- 'connection_strings': :'OCI::Database::Models::AutonomousDataWarehouseConnectionStrings',
131
+ 'lifecycle_state': :'String',
132
+ 'lifecycle_details': :'String',
133
+ 'db_name': :'String',
133
134
  'cpu_core_count': :'Integer',
134
135
  'data_storage_size_in_tbs': :'Integer',
135
- 'db_name': :'String',
136
- 'db_version': :'String',
137
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
136
+ 'time_created': :'DateTime',
138
137
  'display_name': :'String',
139
- 'freeform_tags': :'Hash<String, String>',
140
- 'id': :'String',
141
- 'license_model': :'String',
142
- 'lifecycle_details': :'String',
143
- 'lifecycle_state': :'String',
144
138
  'service_console_url': :'String',
145
- 'time_created': :'DateTime'
139
+ 'connection_strings': :'OCI::Database::Models::AutonomousDataWarehouseConnectionStrings',
140
+ 'license_model': :'String',
141
+ 'freeform_tags': :'Hash<String, String>',
142
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
143
+ 'db_version': :'String'
146
144
  # rubocop:enable Style/SymbolLiteral
147
145
  }
148
146
  end
@@ -153,26 +151,25 @@ module OCI
153
151
 
154
152
  # Initializes the object
155
153
  # @param [Hash] attributes Model attributes in the form of hash
154
+ # @option attributes [String] :id The value to assign to the {#id} property
156
155
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
157
- # @option attributes [OCI::Database::Models::AutonomousDataWarehouseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
156
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
157
+ # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
158
+ # @option attributes [String] :db_name The value to assign to the {#db_name} property
158
159
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
159
160
  # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
160
- # @option attributes [String] :db_name The value to assign to the {#db_name} property
161
- # @option attributes [String] :db_version The value to assign to the {#db_version} property
162
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
161
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
163
162
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
164
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
165
- # @option attributes [String] :id The value to assign to the {#id} property
166
- # @option attributes [String] :license_model The value to assign to the {#license_model} property
167
- # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
168
- # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
169
163
  # @option attributes [String] :service_console_url The value to assign to the {#service_console_url} property
170
- # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
164
+ # @option attributes [OCI::Database::Models::AutonomousDataWarehouseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
165
+ # @option attributes [String] :license_model The value to assign to the {#license_model} property
166
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
167
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
168
+ # @option attributes [String] :db_version The value to assign to the {#db_version} property
171
169
  def initialize(attributes = {})
172
170
  return unless attributes.is_a?(Hash)
173
171
 
174
- # convert string to symbol for hash key
175
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
172
+ self.id = attributes[:'id'] if attributes[:'id']
176
173
 
177
174
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
178
175
 
@@ -180,23 +177,17 @@ module OCI
180
177
 
181
178
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
182
179
 
183
- self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
184
-
185
- raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
186
-
187
- self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
188
-
189
- self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
180
+ self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
190
181
 
191
- raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
182
+ raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
192
183
 
193
- self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
184
+ self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
194
185
 
195
- self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
186
+ self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
196
187
 
197
- raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
188
+ raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
198
189
 
199
- self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
190
+ self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
200
191
 
201
192
  self.db_name = attributes[:'dbName'] if attributes[:'dbName']
202
193
 
@@ -204,17 +195,23 @@ module OCI
204
195
 
205
196
  self.db_name = attributes[:'db_name'] if attributes[:'db_name']
206
197
 
207
- self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
198
+ self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
208
199
 
209
- raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
200
+ raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
210
201
 
211
- self.db_version = attributes[:'db_version'] if attributes[:'db_version']
202
+ self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
212
203
 
213
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
204
+ self.data_storage_size_in_tbs = attributes[:'dataStorageSizeInTBs'] if attributes[:'dataStorageSizeInTBs']
214
205
 
215
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
206
+ raise 'You cannot provide both :dataStorageSizeInTBs and :data_storage_size_in_tbs' if attributes.key?(:'dataStorageSizeInTBs') && attributes.key?(:'data_storage_size_in_tbs')
216
207
 
217
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
208
+ self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
209
+
210
+ self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
211
+
212
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
213
+
214
+ self.time_created = attributes[:'time_created'] if attributes[:'time_created']
218
215
 
219
216
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
220
217
 
@@ -222,13 +219,17 @@ module OCI
222
219
 
223
220
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
224
221
 
225
- self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
222
+ self.service_console_url = attributes[:'serviceConsoleUrl'] if attributes[:'serviceConsoleUrl']
226
223
 
227
- raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
224
+ raise 'You cannot provide both :serviceConsoleUrl and :service_console_url' if attributes.key?(:'serviceConsoleUrl') && attributes.key?(:'service_console_url')
228
225
 
229
- self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
226
+ self.service_console_url = attributes[:'service_console_url'] if attributes[:'service_console_url']
230
227
 
231
- self.id = attributes[:'id'] if attributes[:'id']
228
+ self.connection_strings = attributes[:'connectionStrings'] if attributes[:'connectionStrings']
229
+
230
+ raise 'You cannot provide both :connectionStrings and :connection_strings' if attributes.key?(:'connectionStrings') && attributes.key?(:'connection_strings')
231
+
232
+ self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
232
233
 
233
234
  self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
234
235
 
@@ -236,59 +237,53 @@ module OCI
236
237
 
237
238
  self.license_model = attributes[:'license_model'] if attributes[:'license_model']
238
239
 
239
- self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
240
-
241
- raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
242
-
243
- self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
244
-
245
- self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
240
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
246
241
 
247
- raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
242
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
248
243
 
249
- self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
244
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
250
245
 
251
- self.service_console_url = attributes[:'serviceConsoleUrl'] if attributes[:'serviceConsoleUrl']
246
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
252
247
 
253
- raise 'You cannot provide both :serviceConsoleUrl and :service_console_url' if attributes.key?(:'serviceConsoleUrl') && attributes.key?(:'service_console_url')
248
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
254
249
 
255
- self.service_console_url = attributes[:'service_console_url'] if attributes[:'service_console_url']
250
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
256
251
 
257
- self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
252
+ self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
258
253
 
259
- raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
254
+ raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
260
255
 
261
- self.time_created = attributes[:'time_created'] if attributes[:'time_created']
256
+ self.db_version = attributes[:'db_version'] if attributes[:'db_version']
262
257
  end
263
258
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
264
259
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
265
260
 
266
261
  # Custom attribute writer method checking allowed values (enum).
267
- # @param [Object] license_model Object to be assigned
268
- def license_model=(license_model)
262
+ # @param [Object] lifecycle_state Object to be assigned
263
+ def lifecycle_state=(lifecycle_state)
269
264
  # rubocop:disable Style/ConditionalAssignment
270
- if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
265
+ if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
271
266
  # rubocop: disable Metrics/LineLength
272
- OCI.logger.debug("Unknown value for 'license_model' [" + license_model + "]. Mapping to 'LICENSE_MODEL_UNKNOWN_ENUM_VALUE'") if OCI.logger
267
+ OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
273
268
  # rubocop: enable Metrics/LineLength
274
- @license_model = LICENSE_MODEL_UNKNOWN_ENUM_VALUE
269
+ @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
275
270
  else
276
- @license_model = license_model
271
+ @lifecycle_state = lifecycle_state
277
272
  end
278
273
  # rubocop:enable Style/ConditionalAssignment
279
274
  end
280
275
 
281
276
  # Custom attribute writer method checking allowed values (enum).
282
- # @param [Object] lifecycle_state Object to be assigned
283
- def lifecycle_state=(lifecycle_state)
277
+ # @param [Object] license_model Object to be assigned
278
+ def license_model=(license_model)
284
279
  # rubocop:disable Style/ConditionalAssignment
285
- if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
280
+ if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
286
281
  # rubocop: disable Metrics/LineLength
287
- OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
282
+ OCI.logger.debug("Unknown value for 'license_model' [" + license_model + "]. Mapping to 'LICENSE_MODEL_UNKNOWN_ENUM_VALUE'") if OCI.logger
288
283
  # rubocop: enable Metrics/LineLength
289
- @lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
284
+ @license_model = LICENSE_MODEL_UNKNOWN_ENUM_VALUE
290
285
  else
291
- @lifecycle_state = lifecycle_state
286
+ @license_model = license_model
292
287
  end
293
288
  # rubocop:enable Style/ConditionalAssignment
294
289
  end
@@ -302,21 +297,21 @@ module OCI
302
297
  return true if equal?(other)
303
298
 
304
299
  self.class == other.class &&
300
+ id == other.id &&
305
301
  compartment_id == other.compartment_id &&
306
- connection_strings == other.connection_strings &&
302
+ lifecycle_state == other.lifecycle_state &&
303
+ lifecycle_details == other.lifecycle_details &&
304
+ db_name == other.db_name &&
307
305
  cpu_core_count == other.cpu_core_count &&
308
306
  data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
309
- db_name == other.db_name &&
310
- db_version == other.db_version &&
311
- defined_tags == other.defined_tags &&
307
+ time_created == other.time_created &&
312
308
  display_name == other.display_name &&
313
- freeform_tags == other.freeform_tags &&
314
- id == other.id &&
315
- license_model == other.license_model &&
316
- lifecycle_details == other.lifecycle_details &&
317
- lifecycle_state == other.lifecycle_state &&
318
309
  service_console_url == other.service_console_url &&
319
- time_created == other.time_created
310
+ connection_strings == other.connection_strings &&
311
+ license_model == other.license_model &&
312
+ freeform_tags == other.freeform_tags &&
313
+ defined_tags == other.defined_tags &&
314
+ db_version == other.db_version
320
315
  end
321
316
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
322
317
 
@@ -332,7 +327,7 @@ module OCI
332
327
  # Calculates hash code according to all attributes.
333
328
  # @return [Fixnum] Hash code
334
329
  def hash
335
- [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
330
+ [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
336
331
  end
337
332
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
338
333