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