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
@@ -5,16 +5,7 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # A directory where Oracle Database software is installed. A bare metal DB system can have multiple database homes
9
- # and each database home can run a different supported version of Oracle Database. A virtual machine DB system can have only one database home.
10
- # For more information, see [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm).
11
- #
12
- # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an
13
- # administrator. If you're an administrator who needs to write policies to give users access,
14
- # see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
15
- #
16
- # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
17
- #
8
+ # DbHome model.
18
9
  class Database::Models::DbHome # rubocop:disable Metrics/LineLength
19
10
  LIFECYCLE_STATE_ENUM = [
20
11
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
@@ -26,26 +17,18 @@ module OCI
26
17
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
27
18
  ].freeze
28
19
 
29
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
30
- # @return [String]
31
- attr_accessor :compartment_id
32
-
33
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
20
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
34
21
  # @return [String]
35
- attr_accessor :db_system_id
22
+ attr_accessor :id
36
23
 
37
- # **[Required]** The Oracle Database version.
24
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
38
25
  # @return [String]
39
- attr_accessor :db_version
26
+ attr_accessor :compartment_id
40
27
 
41
28
  # **[Required]** The user-provided name for the database home. The name does not need to be unique.
42
29
  # @return [String]
43
30
  attr_accessor :display_name
44
31
 
45
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
46
- # @return [String]
47
- attr_accessor :id
48
-
49
32
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation is started.
50
33
  # @return [String]
51
34
  attr_accessor :last_patch_history_entry_id
@@ -54,6 +37,14 @@ module OCI
54
37
  # @return [String]
55
38
  attr_reader :lifecycle_state
56
39
 
40
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
41
+ # @return [String]
42
+ attr_accessor :db_system_id
43
+
44
+ # **[Required]** The Oracle Database version.
45
+ # @return [String]
46
+ attr_accessor :db_version
47
+
57
48
  # The date and time the database home was created.
58
49
  # @return [DateTime]
59
50
  attr_accessor :time_created
@@ -62,13 +53,13 @@ module OCI
62
53
  def self.attribute_map
63
54
  {
64
55
  # rubocop:disable Style/SymbolLiteral
56
+ 'id': :'id',
65
57
  'compartment_id': :'compartmentId',
66
- 'db_system_id': :'dbSystemId',
67
- 'db_version': :'dbVersion',
68
58
  'display_name': :'displayName',
69
- 'id': :'id',
70
59
  'last_patch_history_entry_id': :'lastPatchHistoryEntryId',
71
60
  'lifecycle_state': :'lifecycleState',
61
+ 'db_system_id': :'dbSystemId',
62
+ 'db_version': :'dbVersion',
72
63
  'time_created': :'timeCreated'
73
64
  # rubocop:enable Style/SymbolLiteral
74
65
  }
@@ -78,13 +69,13 @@ module OCI
78
69
  def self.swagger_types
79
70
  {
80
71
  # rubocop:disable Style/SymbolLiteral
72
+ 'id': :'String',
81
73
  'compartment_id': :'String',
82
- 'db_system_id': :'String',
83
- 'db_version': :'String',
84
74
  'display_name': :'String',
85
- 'id': :'String',
86
75
  'last_patch_history_entry_id': :'String',
87
76
  'lifecycle_state': :'String',
77
+ 'db_system_id': :'String',
78
+ 'db_version': :'String',
88
79
  'time_created': :'DateTime'
89
80
  # rubocop:enable Style/SymbolLiteral
90
81
  }
@@ -96,19 +87,18 @@ module OCI
96
87
 
97
88
  # Initializes the object
98
89
  # @param [Hash] attributes Model attributes in the form of hash
90
+ # @option attributes [String] :id The value to assign to the {#id} property
99
91
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
100
- # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
101
- # @option attributes [String] :db_version The value to assign to the {#db_version} property
102
92
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
103
- # @option attributes [String] :id The value to assign to the {#id} property
104
93
  # @option attributes [String] :last_patch_history_entry_id The value to assign to the {#last_patch_history_entry_id} property
105
94
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
95
+ # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
96
+ # @option attributes [String] :db_version The value to assign to the {#db_version} property
106
97
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
107
98
  def initialize(attributes = {})
108
99
  return unless attributes.is_a?(Hash)
109
100
 
110
- # convert string to symbol for hash key
111
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
101
+ self.id = attributes[:'id'] if attributes[:'id']
112
102
 
113
103
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
114
104
 
@@ -116,26 +106,12 @@ module OCI
116
106
 
117
107
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
118
108
 
119
- self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
120
-
121
- raise 'You cannot provide both :dbSystemId and :db_system_id' if attributes.key?(:'dbSystemId') && attributes.key?(:'db_system_id')
122
-
123
- self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
124
-
125
- self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
126
-
127
- raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
128
-
129
- self.db_version = attributes[:'db_version'] if attributes[:'db_version']
130
-
131
109
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
132
110
 
133
111
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
134
112
 
135
113
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
136
114
 
137
- self.id = attributes[:'id'] if attributes[:'id']
138
-
139
115
  self.last_patch_history_entry_id = attributes[:'lastPatchHistoryEntryId'] if attributes[:'lastPatchHistoryEntryId']
140
116
 
141
117
  raise 'You cannot provide both :lastPatchHistoryEntryId and :last_patch_history_entry_id' if attributes.key?(:'lastPatchHistoryEntryId') && attributes.key?(:'last_patch_history_entry_id')
@@ -148,6 +124,18 @@ module OCI
148
124
 
149
125
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
150
126
 
127
+ self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
128
+
129
+ raise 'You cannot provide both :dbSystemId and :db_system_id' if attributes.key?(:'dbSystemId') && attributes.key?(:'db_system_id')
130
+
131
+ self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
132
+
133
+ self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
134
+
135
+ raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
136
+
137
+ self.db_version = attributes[:'db_version'] if attributes[:'db_version']
138
+
151
139
  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
152
140
 
153
141
  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
@@ -181,13 +169,13 @@ module OCI
181
169
  return true if equal?(other)
182
170
 
183
171
  self.class == other.class &&
172
+ id == other.id &&
184
173
  compartment_id == other.compartment_id &&
185
- db_system_id == other.db_system_id &&
186
- db_version == other.db_version &&
187
174
  display_name == other.display_name &&
188
- id == other.id &&
189
175
  last_patch_history_entry_id == other.last_patch_history_entry_id &&
190
176
  lifecycle_state == other.lifecycle_state &&
177
+ db_system_id == other.db_system_id &&
178
+ db_version == other.db_version &&
191
179
  time_created == other.time_created
192
180
  end
193
181
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
@@ -204,7 +192,7 @@ module OCI
204
192
  # Calculates hash code according to all attributes.
205
193
  # @return [Fixnum] Hash code
206
194
  def hash
207
- [compartment_id, db_system_id, db_version, display_name, id, last_patch_history_entry_id, lifecycle_state, time_created].hash
195
+ [id, compartment_id, display_name, last_patch_history_entry_id, lifecycle_state, db_system_id, db_version, time_created].hash
208
196
  end
209
197
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
210
198
 
@@ -26,26 +26,18 @@ module OCI
26
26
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
27
27
  ].freeze
28
28
 
29
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
30
- # @return [String]
31
- attr_accessor :compartment_id
32
-
33
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
29
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
34
30
  # @return [String]
35
- attr_accessor :db_system_id
31
+ attr_accessor :id
36
32
 
37
- # **[Required]** The Oracle Database version.
33
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
38
34
  # @return [String]
39
- attr_accessor :db_version
35
+ attr_accessor :compartment_id
40
36
 
41
37
  # **[Required]** The user-provided name for the database home. The name does not need to be unique.
42
38
  # @return [String]
43
39
  attr_accessor :display_name
44
40
 
45
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home.
46
- # @return [String]
47
- attr_accessor :id
48
-
49
41
  # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation is started.
50
42
  # @return [String]
51
43
  attr_accessor :last_patch_history_entry_id
@@ -54,6 +46,14 @@ module OCI
54
46
  # @return [String]
55
47
  attr_reader :lifecycle_state
56
48
 
49
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
50
+ # @return [String]
51
+ attr_accessor :db_system_id
52
+
53
+ # **[Required]** The Oracle Database version.
54
+ # @return [String]
55
+ attr_accessor :db_version
56
+
57
57
  # The date and time the database home was created.
58
58
  # @return [DateTime]
59
59
  attr_accessor :time_created
@@ -62,13 +62,13 @@ module OCI
62
62
  def self.attribute_map
63
63
  {
64
64
  # rubocop:disable Style/SymbolLiteral
65
+ 'id': :'id',
65
66
  'compartment_id': :'compartmentId',
66
- 'db_system_id': :'dbSystemId',
67
- 'db_version': :'dbVersion',
68
67
  'display_name': :'displayName',
69
- 'id': :'id',
70
68
  'last_patch_history_entry_id': :'lastPatchHistoryEntryId',
71
69
  'lifecycle_state': :'lifecycleState',
70
+ 'db_system_id': :'dbSystemId',
71
+ 'db_version': :'dbVersion',
72
72
  'time_created': :'timeCreated'
73
73
  # rubocop:enable Style/SymbolLiteral
74
74
  }
@@ -78,13 +78,13 @@ module OCI
78
78
  def self.swagger_types
79
79
  {
80
80
  # rubocop:disable Style/SymbolLiteral
81
+ 'id': :'String',
81
82
  'compartment_id': :'String',
82
- 'db_system_id': :'String',
83
- 'db_version': :'String',
84
83
  'display_name': :'String',
85
- 'id': :'String',
86
84
  'last_patch_history_entry_id': :'String',
87
85
  'lifecycle_state': :'String',
86
+ 'db_system_id': :'String',
87
+ 'db_version': :'String',
88
88
  'time_created': :'DateTime'
89
89
  # rubocop:enable Style/SymbolLiteral
90
90
  }
@@ -96,13 +96,13 @@ module OCI
96
96
 
97
97
  # Initializes the object
98
98
  # @param [Hash] attributes Model attributes in the form of hash
99
+ # @option attributes [String] :id The value to assign to the {#id} property
99
100
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
100
- # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
101
- # @option attributes [String] :db_version The value to assign to the {#db_version} property
102
101
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
103
- # @option attributes [String] :id The value to assign to the {#id} property
104
102
  # @option attributes [String] :last_patch_history_entry_id The value to assign to the {#last_patch_history_entry_id} property
105
103
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
104
+ # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
105
+ # @option attributes [String] :db_version The value to assign to the {#db_version} property
106
106
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
107
107
  def initialize(attributes = {})
108
108
  return unless attributes.is_a?(Hash)
@@ -110,32 +110,20 @@ module OCI
110
110
  # convert string to symbol for hash key
111
111
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
112
112
 
113
+ self.id = attributes[:'id'] if attributes[:'id']
114
+
113
115
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
114
116
 
115
117
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
116
118
 
117
119
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
118
120
 
119
- self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
120
-
121
- raise 'You cannot provide both :dbSystemId and :db_system_id' if attributes.key?(:'dbSystemId') && attributes.key?(:'db_system_id')
122
-
123
- self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
124
-
125
- self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
126
-
127
- raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
128
-
129
- self.db_version = attributes[:'db_version'] if attributes[:'db_version']
130
-
131
121
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
132
122
 
133
123
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
134
124
 
135
125
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
136
126
 
137
- self.id = attributes[:'id'] if attributes[:'id']
138
-
139
127
  self.last_patch_history_entry_id = attributes[:'lastPatchHistoryEntryId'] if attributes[:'lastPatchHistoryEntryId']
140
128
 
141
129
  raise 'You cannot provide both :lastPatchHistoryEntryId and :last_patch_history_entry_id' if attributes.key?(:'lastPatchHistoryEntryId') && attributes.key?(:'last_patch_history_entry_id')
@@ -148,6 +136,18 @@ module OCI
148
136
 
149
137
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
150
138
 
139
+ self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
140
+
141
+ raise 'You cannot provide both :dbSystemId and :db_system_id' if attributes.key?(:'dbSystemId') && attributes.key?(:'db_system_id')
142
+
143
+ self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
144
+
145
+ self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion']
146
+
147
+ raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version')
148
+
149
+ self.db_version = attributes[:'db_version'] if attributes[:'db_version']
150
+
151
151
  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
152
152
 
153
153
  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
@@ -181,13 +181,13 @@ module OCI
181
181
  return true if equal?(other)
182
182
 
183
183
  self.class == other.class &&
184
+ id == other.id &&
184
185
  compartment_id == other.compartment_id &&
185
- db_system_id == other.db_system_id &&
186
- db_version == other.db_version &&
187
186
  display_name == other.display_name &&
188
- id == other.id &&
189
187
  last_patch_history_entry_id == other.last_patch_history_entry_id &&
190
188
  lifecycle_state == other.lifecycle_state &&
189
+ db_system_id == other.db_system_id &&
190
+ db_version == other.db_version &&
191
191
  time_created == other.time_created
192
192
  end
193
193
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
@@ -204,7 +204,7 @@ module OCI
204
204
  # Calculates hash code according to all attributes.
205
205
  # @return [Fixnum] Hash code
206
206
  def hash
207
- [compartment_id, db_system_id, db_version, display_name, id, last_patch_history_entry_id, lifecycle_state, time_created].hash
207
+ [id, compartment_id, display_name, last_patch_history_entry_id, lifecycle_state, db_system_id, db_version, time_created].hash
208
208
  end
209
209
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
210
210
 
@@ -5,12 +5,7 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # A server where Oracle Database software is running.
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 administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
11
- #
12
- # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
13
- #
8
+ # DbNode model.
14
9
  class Database::Models::DbNode # rubocop:disable Metrics/LineLength
15
10
  LIFECYCLE_STATE_ENUM = [
16
11
  LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
@@ -25,51 +20,51 @@ module OCI
25
20
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
26
21
  ].freeze
27
22
 
28
- # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup VNIC.
23
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database node.
29
24
  # @return [String]
30
- attr_accessor :backup_vnic_id
25
+ attr_accessor :id
31
26
 
32
27
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
33
28
  # @return [String]
34
29
  attr_accessor :db_system_id
35
30
 
36
- # The host name for the database node.
31
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VNIC.
37
32
  # @return [String]
38
- attr_accessor :hostname
33
+ attr_accessor :vnic_id
39
34
 
40
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database node.
35
+ # The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup VNIC.
41
36
  # @return [String]
42
- attr_accessor :id
37
+ attr_accessor :backup_vnic_id
43
38
 
44
39
  # **[Required]** The current state of the database node.
45
40
  # @return [String]
46
41
  attr_reader :lifecycle_state
47
42
 
48
- # The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
49
- #
50
- # @return [Integer]
51
- attr_accessor :software_storage_size_in_gb
43
+ # The host name for the database node.
44
+ # @return [String]
45
+ attr_accessor :hostname
52
46
 
53
47
  # **[Required]** The date and time that the database node was created.
54
48
  # @return [DateTime]
55
49
  attr_accessor :time_created
56
50
 
57
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VNIC.
58
- # @return [String]
59
- attr_accessor :vnic_id
51
+ # The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
52
+ #
53
+ # @return [Integer]
54
+ attr_accessor :software_storage_size_in_gb
60
55
 
61
56
  # Attribute mapping from ruby-style variable name to JSON key.
62
57
  def self.attribute_map
63
58
  {
64
59
  # rubocop:disable Style/SymbolLiteral
65
- 'backup_vnic_id': :'backupVnicId',
66
- 'db_system_id': :'dbSystemId',
67
- 'hostname': :'hostname',
68
60
  'id': :'id',
61
+ 'db_system_id': :'dbSystemId',
62
+ 'vnic_id': :'vnicId',
63
+ 'backup_vnic_id': :'backupVnicId',
69
64
  'lifecycle_state': :'lifecycleState',
70
- 'software_storage_size_in_gb': :'softwareStorageSizeInGB',
65
+ 'hostname': :'hostname',
71
66
  'time_created': :'timeCreated',
72
- 'vnic_id': :'vnicId'
67
+ 'software_storage_size_in_gb': :'softwareStorageSizeInGB'
73
68
  # rubocop:enable Style/SymbolLiteral
74
69
  }
75
70
  end
@@ -78,14 +73,14 @@ module OCI
78
73
  def self.swagger_types
79
74
  {
80
75
  # rubocop:disable Style/SymbolLiteral
81
- 'backup_vnic_id': :'String',
82
- 'db_system_id': :'String',
83
- 'hostname': :'String',
84
76
  'id': :'String',
77
+ 'db_system_id': :'String',
78
+ 'vnic_id': :'String',
79
+ 'backup_vnic_id': :'String',
85
80
  'lifecycle_state': :'String',
86
- 'software_storage_size_in_gb': :'Integer',
81
+ 'hostname': :'String',
87
82
  'time_created': :'DateTime',
88
- 'vnic_id': :'String'
83
+ 'software_storage_size_in_gb': :'Integer'
89
84
  # rubocop:enable Style/SymbolLiteral
90
85
  }
91
86
  end
@@ -96,25 +91,18 @@ module OCI
96
91
 
97
92
  # Initializes the object
98
93
  # @param [Hash] attributes Model attributes in the form of hash
99
- # @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
100
- # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
101
- # @option attributes [String] :hostname The value to assign to the {#hostname} property
102
94
  # @option attributes [String] :id The value to assign to the {#id} property
95
+ # @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
96
+ # @option attributes [String] :vnic_id The value to assign to the {#vnic_id} property
97
+ # @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
103
98
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
104
- # @option attributes [Integer] :software_storage_size_in_gb The value to assign to the {#software_storage_size_in_gb} property
99
+ # @option attributes [String] :hostname The value to assign to the {#hostname} property
105
100
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
106
- # @option attributes [String] :vnic_id The value to assign to the {#vnic_id} property
101
+ # @option attributes [Integer] :software_storage_size_in_gb The value to assign to the {#software_storage_size_in_gb} property
107
102
  def initialize(attributes = {})
108
103
  return unless attributes.is_a?(Hash)
109
104
 
110
- # convert string to symbol for hash key
111
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
112
-
113
- self.backup_vnic_id = attributes[:'backupVnicId'] if attributes[:'backupVnicId']
114
-
115
- raise 'You cannot provide both :backupVnicId and :backup_vnic_id' if attributes.key?(:'backupVnicId') && attributes.key?(:'backup_vnic_id')
116
-
117
- self.backup_vnic_id = attributes[:'backup_vnic_id'] if attributes[:'backup_vnic_id']
105
+ self.id = attributes[:'id'] if attributes[:'id']
118
106
 
119
107
  self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
120
108
 
@@ -122,9 +110,17 @@ module OCI
122
110
 
123
111
  self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
124
112
 
125
- self.hostname = attributes[:'hostname'] if attributes[:'hostname']
113
+ self.vnic_id = attributes[:'vnicId'] if attributes[:'vnicId']
126
114
 
127
- self.id = attributes[:'id'] if attributes[:'id']
115
+ raise 'You cannot provide both :vnicId and :vnic_id' if attributes.key?(:'vnicId') && attributes.key?(:'vnic_id')
116
+
117
+ self.vnic_id = attributes[:'vnic_id'] if attributes[:'vnic_id']
118
+
119
+ self.backup_vnic_id = attributes[:'backupVnicId'] if attributes[:'backupVnicId']
120
+
121
+ raise 'You cannot provide both :backupVnicId and :backup_vnic_id' if attributes.key?(:'backupVnicId') && attributes.key?(:'backup_vnic_id')
122
+
123
+ self.backup_vnic_id = attributes[:'backup_vnic_id'] if attributes[:'backup_vnic_id']
128
124
 
129
125
  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
130
126
 
@@ -132,11 +128,7 @@ module OCI
132
128
 
133
129
  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
134
130
 
135
- self.software_storage_size_in_gb = attributes[:'softwareStorageSizeInGB'] if attributes[:'softwareStorageSizeInGB']
136
-
137
- raise 'You cannot provide both :softwareStorageSizeInGB and :software_storage_size_in_gb' if attributes.key?(:'softwareStorageSizeInGB') && attributes.key?(:'software_storage_size_in_gb')
138
-
139
- self.software_storage_size_in_gb = attributes[:'software_storage_size_in_gb'] if attributes[:'software_storage_size_in_gb']
131
+ self.hostname = attributes[:'hostname'] if attributes[:'hostname']
140
132
 
141
133
  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
142
134
 
@@ -144,11 +136,11 @@ module OCI
144
136
 
145
137
  self.time_created = attributes[:'time_created'] if attributes[:'time_created']
146
138
 
147
- self.vnic_id = attributes[:'vnicId'] if attributes[:'vnicId']
139
+ self.software_storage_size_in_gb = attributes[:'softwareStorageSizeInGB'] if attributes[:'softwareStorageSizeInGB']
148
140
 
149
- raise 'You cannot provide both :vnicId and :vnic_id' if attributes.key?(:'vnicId') && attributes.key?(:'vnic_id')
141
+ raise 'You cannot provide both :softwareStorageSizeInGB and :software_storage_size_in_gb' if attributes.key?(:'softwareStorageSizeInGB') && attributes.key?(:'software_storage_size_in_gb')
150
142
 
151
- self.vnic_id = attributes[:'vnic_id'] if attributes[:'vnic_id']
143
+ self.software_storage_size_in_gb = attributes[:'software_storage_size_in_gb'] if attributes[:'software_storage_size_in_gb']
152
144
  end
153
145
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
154
146
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -177,14 +169,14 @@ module OCI
177
169
  return true if equal?(other)
178
170
 
179
171
  self.class == other.class &&
180
- backup_vnic_id == other.backup_vnic_id &&
181
- db_system_id == other.db_system_id &&
182
- hostname == other.hostname &&
183
172
  id == other.id &&
173
+ db_system_id == other.db_system_id &&
174
+ vnic_id == other.vnic_id &&
175
+ backup_vnic_id == other.backup_vnic_id &&
184
176
  lifecycle_state == other.lifecycle_state &&
185
- software_storage_size_in_gb == other.software_storage_size_in_gb &&
177
+ hostname == other.hostname &&
186
178
  time_created == other.time_created &&
187
- vnic_id == other.vnic_id
179
+ software_storage_size_in_gb == other.software_storage_size_in_gb
188
180
  end
189
181
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
190
182
 
@@ -200,7 +192,7 @@ module OCI
200
192
  # Calculates hash code according to all attributes.
201
193
  # @return [Fixnum] Hash code
202
194
  def hash
203
- [backup_vnic_id, db_system_id, hostname, id, lifecycle_state, software_storage_size_in_gb, time_created, vnic_id].hash
195
+ [id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, time_created, software_storage_size_in_gb].hash
204
196
  end
205
197
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
206
198