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
@@ -12,18 +12,18 @@ module OCI
12
12
  # see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
13
13
  #
14
14
  class Database::Models::PatchSummary # rubocop:disable Metrics/LineLength
15
- AVAILABLE_ACTIONS_ENUM = [
16
- AVAILABLE_ACTIONS_APPLY = 'APPLY'.freeze,
17
- AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'.freeze,
18
- AVAILABLE_ACTIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
19
- ].freeze
20
-
21
15
  LAST_ACTION_ENUM = [
22
16
  LAST_ACTION_APPLY = 'APPLY'.freeze,
23
17
  LAST_ACTION_PRECHECK = 'PRECHECK'.freeze,
24
18
  LAST_ACTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
25
19
  ].freeze
26
20
 
21
+ AVAILABLE_ACTIONS_ENUM = [
22
+ AVAILABLE_ACTIONS_APPLY = 'APPLY'.freeze,
23
+ AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'.freeze,
24
+ AVAILABLE_ACTIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
25
+ ].freeze
26
+
27
27
  LIFECYCLE_STATE_ENUM = [
28
28
  LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
29
29
  LIFECYCLE_STATE_SUCCESS = 'SUCCESS'.freeze,
@@ -32,22 +32,22 @@ module OCI
32
32
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
33
33
  ].freeze
34
34
 
35
- # Actions that can possibly be performed using this patch.
36
- # @return [Array<String>]
37
- attr_reader :available_actions
35
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
36
+ # @return [String]
37
+ attr_accessor :id
38
38
 
39
39
  # **[Required]** The text describing this patch package.
40
40
  # @return [String]
41
41
  attr_accessor :description
42
42
 
43
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
44
- # @return [String]
45
- attr_accessor :id
46
-
47
43
  # Action that is currently being performed or was completed last.
48
44
  # @return [String]
49
45
  attr_reader :last_action
50
46
 
47
+ # Actions that can possibly be performed using this patch.
48
+ # @return [Array<String>]
49
+ attr_reader :available_actions
50
+
51
51
  # A descriptive text associated with the lifecycleState.
52
52
  # Typically can contain additional displayable text.
53
53
  #
@@ -70,10 +70,10 @@ module OCI
70
70
  def self.attribute_map
71
71
  {
72
72
  # rubocop:disable Style/SymbolLiteral
73
- 'available_actions': :'availableActions',
74
- 'description': :'description',
75
73
  'id': :'id',
74
+ 'description': :'description',
76
75
  'last_action': :'lastAction',
76
+ 'available_actions': :'availableActions',
77
77
  'lifecycle_details': :'lifecycleDetails',
78
78
  'lifecycle_state': :'lifecycleState',
79
79
  'time_released': :'timeReleased',
@@ -86,10 +86,10 @@ module OCI
86
86
  def self.swagger_types
87
87
  {
88
88
  # rubocop:disable Style/SymbolLiteral
89
- 'available_actions': :'Array<String>',
90
- 'description': :'String',
91
89
  'id': :'String',
90
+ 'description': :'String',
92
91
  'last_action': :'String',
92
+ 'available_actions': :'Array<String>',
93
93
  'lifecycle_details': :'String',
94
94
  'lifecycle_state': :'String',
95
95
  'time_released': :'DateTime',
@@ -104,10 +104,10 @@ module OCI
104
104
 
105
105
  # Initializes the object
106
106
  # @param [Hash] attributes Model attributes in the form of hash
107
- # @option attributes [Array<String>] :available_actions The value to assign to the {#available_actions} property
108
- # @option attributes [String] :description The value to assign to the {#description} property
109
107
  # @option attributes [String] :id The value to assign to the {#id} property
108
+ # @option attributes [String] :description The value to assign to the {#description} property
110
109
  # @option attributes [String] :last_action The value to assign to the {#last_action} property
110
+ # @option attributes [Array<String>] :available_actions The value to assign to the {#available_actions} property
111
111
  # @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
112
112
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
113
113
  # @option attributes [DateTime] :time_released The value to assign to the {#time_released} property
@@ -118,22 +118,22 @@ module OCI
118
118
  # convert string to symbol for hash key
119
119
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
120
120
 
121
- self.available_actions = attributes[:'availableActions'] if attributes[:'availableActions']
122
-
123
- raise 'You cannot provide both :availableActions and :available_actions' if attributes.key?(:'availableActions') && attributes.key?(:'available_actions')
124
-
125
- self.available_actions = attributes[:'available_actions'] if attributes[:'available_actions']
121
+ self.id = attributes[:'id'] if attributes[:'id']
126
122
 
127
123
  self.description = attributes[:'description'] if attributes[:'description']
128
124
 
129
- self.id = attributes[:'id'] if attributes[:'id']
130
-
131
125
  self.last_action = attributes[:'lastAction'] if attributes[:'lastAction']
132
126
 
133
127
  raise 'You cannot provide both :lastAction and :last_action' if attributes.key?(:'lastAction') && attributes.key?(:'last_action')
134
128
 
135
129
  self.last_action = attributes[:'last_action'] if attributes[:'last_action']
136
130
 
131
+ self.available_actions = attributes[:'availableActions'] if attributes[:'availableActions']
132
+
133
+ raise 'You cannot provide both :availableActions and :available_actions' if attributes.key?(:'availableActions') && attributes.key?(:'available_actions')
134
+
135
+ self.available_actions = attributes[:'available_actions'] if attributes[:'available_actions']
136
+
137
137
  self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
138
138
 
139
139
  raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
@@ -157,6 +157,21 @@ module OCI
157
157
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
158
158
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
159
159
 
160
+ # Custom attribute writer method checking allowed values (enum).
161
+ # @param [Object] last_action Object to be assigned
162
+ def last_action=(last_action)
163
+ # rubocop:disable Style/ConditionalAssignment
164
+ if last_action && !LAST_ACTION_ENUM.include?(last_action)
165
+ # rubocop: disable Metrics/LineLength
166
+ OCI.logger.debug("Unknown value for 'last_action' [" + last_action + "]. Mapping to 'LAST_ACTION_UNKNOWN_ENUM_VALUE'") if OCI.logger
167
+ # rubocop: enable Metrics/LineLength
168
+ @last_action = LAST_ACTION_UNKNOWN_ENUM_VALUE
169
+ else
170
+ @last_action = last_action
171
+ end
172
+ # rubocop:enable Style/ConditionalAssignment
173
+ end
174
+
160
175
  # Custom attribute writer method checking allowed values (enum).
161
176
  # @param [Object] available_actions Object to be assigned
162
177
  def available_actions=(available_actions)
@@ -179,21 +194,6 @@ module OCI
179
194
  # rubocop:enable Style/ConditionalAssignment
180
195
  end
181
196
 
182
- # Custom attribute writer method checking allowed values (enum).
183
- # @param [Object] last_action Object to be assigned
184
- def last_action=(last_action)
185
- # rubocop:disable Style/ConditionalAssignment
186
- if last_action && !LAST_ACTION_ENUM.include?(last_action)
187
- # rubocop: disable Metrics/LineLength
188
- OCI.logger.debug("Unknown value for 'last_action' [" + last_action + "]. Mapping to 'LAST_ACTION_UNKNOWN_ENUM_VALUE'") if OCI.logger
189
- # rubocop: enable Metrics/LineLength
190
- @last_action = LAST_ACTION_UNKNOWN_ENUM_VALUE
191
- else
192
- @last_action = last_action
193
- end
194
- # rubocop:enable Style/ConditionalAssignment
195
- end
196
-
197
197
  # Custom attribute writer method checking allowed values (enum).
198
198
  # @param [Object] lifecycle_state Object to be assigned
199
199
  def lifecycle_state=(lifecycle_state)
@@ -218,10 +218,10 @@ module OCI
218
218
  return true if equal?(other)
219
219
 
220
220
  self.class == other.class &&
221
- available_actions == other.available_actions &&
222
- description == other.description &&
223
221
  id == other.id &&
222
+ description == other.description &&
224
223
  last_action == other.last_action &&
224
+ available_actions == other.available_actions &&
225
225
  lifecycle_details == other.lifecycle_details &&
226
226
  lifecycle_state == other.lifecycle_state &&
227
227
  time_released == other.time_released &&
@@ -241,7 +241,7 @@ module OCI
241
241
  # Calculates hash code according to all attributes.
242
242
  # @return [Fixnum] Hash code
243
243
  def hash
244
- [available_actions, description, id, last_action, lifecycle_details, lifecycle_state, time_released, version].hash
244
+ [id, description, last_action, available_actions, lifecycle_details, lifecycle_state, time_released, version].hash
245
245
  end
246
246
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
247
247
 
@@ -11,23 +11,23 @@ module OCI
11
11
  # @return [String]
12
12
  attr_accessor :database_scn
13
13
 
14
- # Restores to the last known good state with the least possible data loss.
15
- #
16
- # @return [BOOLEAN]
17
- attr_accessor :latest
18
-
19
14
  # Restores to the timestamp specified.
20
15
  #
21
16
  # @return [DateTime]
22
17
  attr_accessor :timestamp
23
18
 
19
+ # Restores to the last known good state with the least possible data loss.
20
+ #
21
+ # @return [BOOLEAN]
22
+ attr_accessor :latest
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
27
  # rubocop:disable Style/SymbolLiteral
28
28
  'database_scn': :'databaseSCN',
29
- 'latest': :'latest',
30
- 'timestamp': :'timestamp'
29
+ 'timestamp': :'timestamp',
30
+ 'latest': :'latest'
31
31
  # rubocop:enable Style/SymbolLiteral
32
32
  }
33
33
  end
@@ -37,8 +37,8 @@ module OCI
37
37
  {
38
38
  # rubocop:disable Style/SymbolLiteral
39
39
  'database_scn': :'String',
40
- 'latest': :'BOOLEAN',
41
- 'timestamp': :'DateTime'
40
+ 'timestamp': :'DateTime',
41
+ 'latest': :'BOOLEAN'
42
42
  # rubocop:enable Style/SymbolLiteral
43
43
  }
44
44
  end
@@ -50,8 +50,8 @@ module OCI
50
50
  # Initializes the object
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  # @option attributes [String] :database_scn The value to assign to the {#database_scn} property
53
- # @option attributes [BOOLEAN] :latest The value to assign to the {#latest} property
54
53
  # @option attributes [DateTime] :timestamp The value to assign to the {#timestamp} property
54
+ # @option attributes [BOOLEAN] :latest The value to assign to the {#latest} property
55
55
  def initialize(attributes = {})
56
56
  return unless attributes.is_a?(Hash)
57
57
 
@@ -64,9 +64,9 @@ module OCI
64
64
 
65
65
  self.database_scn = attributes[:'database_scn'] if attributes[:'database_scn']
66
66
 
67
- self.latest = attributes[:'latest'] unless attributes[:'latest'].nil?
68
-
69
67
  self.timestamp = attributes[:'timestamp'] if attributes[:'timestamp']
68
+
69
+ self.latest = attributes[:'latest'] unless attributes[:'latest'].nil?
70
70
  end
71
71
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
72
72
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -81,8 +81,8 @@ module OCI
81
81
 
82
82
  self.class == other.class &&
83
83
  database_scn == other.database_scn &&
84
- latest == other.latest &&
85
- timestamp == other.timestamp
84
+ timestamp == other.timestamp &&
85
+ latest == other.latest
86
86
  end
87
87
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
88
88
 
@@ -98,7 +98,7 @@ module OCI
98
98
  # Calculates hash code according to all attributes.
99
99
  # @return [Fixnum] Hash code
100
100
  def hash
101
- [database_scn, latest, timestamp].hash
101
+ [database_scn, timestamp, latest].hash
102
102
  end
103
103
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
104
104
 
@@ -9,10 +9,6 @@ module OCI
9
9
  # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
10
10
  #
11
11
  class Database::Models::UpdateAutonomousDataWarehouseDetails # rubocop:disable Metrics/LineLength
12
- # A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol (\"). It must be different than the last 4 passwords.
13
- # @return [String]
14
- attr_accessor :admin_password
15
-
16
12
  # The number of CPU cores to be made available to the database.
17
13
  # @return [Integer]
18
14
  attr_accessor :cpu_core_count
@@ -22,18 +18,14 @@ module OCI
22
18
  # @return [Integer]
23
19
  attr_accessor :data_storage_size_in_tbs
24
20
 
25
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
26
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
27
- #
28
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
29
- #
30
- # @return [Hash<String, Hash<String, Object>>]
31
- attr_accessor :defined_tags
32
-
33
21
  # The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
34
22
  # @return [String]
35
23
  attr_accessor :display_name
36
24
 
25
+ # The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing. It must be different from the last four passwords and it must not be a password used within the last 24 hours.
26
+ # @return [String]
27
+ attr_accessor :admin_password
28
+
37
29
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
38
30
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
39
31
  #
@@ -42,16 +34,24 @@ module OCI
42
34
  # @return [Hash<String, String>]
43
35
  attr_accessor :freeform_tags
44
36
 
37
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
38
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
39
+ #
40
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
41
+ #
42
+ # @return [Hash<String, Hash<String, Object>>]
43
+ attr_accessor :defined_tags
44
+
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
48
  # rubocop:disable Style/SymbolLiteral
49
- 'admin_password': :'adminPassword',
50
49
  'cpu_core_count': :'cpuCoreCount',
51
50
  'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
52
- 'defined_tags': :'definedTags',
53
51
  'display_name': :'displayName',
54
- 'freeform_tags': :'freeformTags'
52
+ 'admin_password': :'adminPassword',
53
+ 'freeform_tags': :'freeformTags',
54
+ 'defined_tags': :'definedTags'
55
55
  # rubocop:enable Style/SymbolLiteral
56
56
  }
57
57
  end
@@ -60,12 +60,12 @@ module OCI
60
60
  def self.swagger_types
61
61
  {
62
62
  # rubocop:disable Style/SymbolLiteral
63
- 'admin_password': :'String',
64
63
  'cpu_core_count': :'Integer',
65
64
  'data_storage_size_in_tbs': :'Integer',
66
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
67
65
  'display_name': :'String',
68
- 'freeform_tags': :'Hash<String, String>'
66
+ 'admin_password': :'String',
67
+ 'freeform_tags': :'Hash<String, String>',
68
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
69
69
  # rubocop:enable Style/SymbolLiteral
70
70
  }
71
71
  end
@@ -76,24 +76,18 @@ module OCI
76
76
 
77
77
  # Initializes the object
78
78
  # @param [Hash] attributes Model attributes in the form of hash
79
- # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
80
79
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
81
80
  # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
82
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
83
81
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
82
+ # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
84
83
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
84
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
85
85
  def initialize(attributes = {})
86
86
  return unless attributes.is_a?(Hash)
87
87
 
88
88
  # convert string to symbol for hash key
89
89
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
90
90
 
91
- self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
92
-
93
- raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
94
-
95
- self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
96
-
97
91
  self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
98
92
 
99
93
  raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
@@ -106,23 +100,29 @@ module OCI
106
100
 
107
101
  self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
108
102
 
109
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
110
-
111
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
112
-
113
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
114
-
115
103
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
116
104
 
117
105
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
118
106
 
119
107
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
120
108
 
109
+ self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
110
+
111
+ raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
112
+
113
+ self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
114
+
121
115
  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
122
116
 
123
117
  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
124
118
 
125
119
  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
120
+
121
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
122
+
123
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
124
+
125
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
126
126
  end
127
127
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
128
128
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -136,12 +136,12 @@ module OCI
136
136
  return true if equal?(other)
137
137
 
138
138
  self.class == other.class &&
139
- admin_password == other.admin_password &&
140
139
  cpu_core_count == other.cpu_core_count &&
141
140
  data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
142
- defined_tags == other.defined_tags &&
143
141
  display_name == other.display_name &&
144
- freeform_tags == other.freeform_tags
142
+ admin_password == other.admin_password &&
143
+ freeform_tags == other.freeform_tags &&
144
+ defined_tags == other.defined_tags
145
145
  end
146
146
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
147
147
 
@@ -157,7 +157,7 @@ module OCI
157
157
  # Calculates hash code according to all attributes.
158
158
  # @return [Fixnum] Hash code
159
159
  def hash
160
- [admin_password, cpu_core_count, data_storage_size_in_tbs, defined_tags, display_name, freeform_tags].hash
160
+ [cpu_core_count, data_storage_size_in_tbs, display_name, admin_password, freeform_tags, defined_tags].hash
161
161
  end
162
162
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
163
163
 
@@ -9,10 +9,6 @@ module OCI
9
9
  # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
10
10
  #
11
11
  class Database::Models::UpdateAutonomousDatabaseDetails # rubocop:disable Metrics/LineLength
12
- # A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol (\"). It must be different than the last 4 passwords.
13
- # @return [String]
14
- attr_accessor :admin_password
15
-
16
12
  # The number of CPU cores to be made available to the database.
17
13
  # @return [Integer]
18
14
  attr_accessor :cpu_core_count
@@ -22,18 +18,14 @@ module OCI
22
18
  # @return [Integer]
23
19
  attr_accessor :data_storage_size_in_tbs
24
20
 
25
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
26
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
27
- #
28
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
29
- #
30
- # @return [Hash<String, Hash<String, Object>>]
31
- attr_accessor :defined_tags
32
-
33
21
  # The user-friendly name for the Autonomous Database. The name does not have to be unique.
34
22
  # @return [String]
35
23
  attr_accessor :display_name
36
24
 
25
+ # The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing. It must be different from the last four passwords and it must not be a password used within the last 24 hours.
26
+ # @return [String]
27
+ attr_accessor :admin_password
28
+
37
29
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
38
30
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
39
31
  #
@@ -42,16 +34,24 @@ module OCI
42
34
  # @return [Hash<String, String>]
43
35
  attr_accessor :freeform_tags
44
36
 
37
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
38
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
39
+ #
40
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
41
+ #
42
+ # @return [Hash<String, Hash<String, Object>>]
43
+ attr_accessor :defined_tags
44
+
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
48
  # rubocop:disable Style/SymbolLiteral
49
- 'admin_password': :'adminPassword',
50
49
  'cpu_core_count': :'cpuCoreCount',
51
50
  'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
52
- 'defined_tags': :'definedTags',
53
51
  'display_name': :'displayName',
54
- 'freeform_tags': :'freeformTags'
52
+ 'admin_password': :'adminPassword',
53
+ 'freeform_tags': :'freeformTags',
54
+ 'defined_tags': :'definedTags'
55
55
  # rubocop:enable Style/SymbolLiteral
56
56
  }
57
57
  end
@@ -60,12 +60,12 @@ module OCI
60
60
  def self.swagger_types
61
61
  {
62
62
  # rubocop:disable Style/SymbolLiteral
63
- 'admin_password': :'String',
64
63
  'cpu_core_count': :'Integer',
65
64
  'data_storage_size_in_tbs': :'Integer',
66
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
67
65
  'display_name': :'String',
68
- 'freeform_tags': :'Hash<String, String>'
66
+ 'admin_password': :'String',
67
+ 'freeform_tags': :'Hash<String, String>',
68
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
69
69
  # rubocop:enable Style/SymbolLiteral
70
70
  }
71
71
  end
@@ -76,24 +76,18 @@ module OCI
76
76
 
77
77
  # Initializes the object
78
78
  # @param [Hash] attributes Model attributes in the form of hash
79
- # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
80
79
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
81
80
  # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
82
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
83
81
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
82
+ # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
84
83
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
84
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
85
85
  def initialize(attributes = {})
86
86
  return unless attributes.is_a?(Hash)
87
87
 
88
88
  # convert string to symbol for hash key
89
89
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
90
90
 
91
- self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
92
-
93
- raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
94
-
95
- self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
96
-
97
91
  self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
98
92
 
99
93
  raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
@@ -106,23 +100,29 @@ module OCI
106
100
 
107
101
  self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
108
102
 
109
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
110
-
111
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
112
-
113
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
114
-
115
103
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
116
104
 
117
105
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
118
106
 
119
107
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
120
108
 
109
+ self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
110
+
111
+ raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
112
+
113
+ self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
114
+
121
115
  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
122
116
 
123
117
  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
124
118
 
125
119
  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
120
+
121
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
122
+
123
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
124
+
125
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
126
126
  end
127
127
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
128
128
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -136,12 +136,12 @@ module OCI
136
136
  return true if equal?(other)
137
137
 
138
138
  self.class == other.class &&
139
- admin_password == other.admin_password &&
140
139
  cpu_core_count == other.cpu_core_count &&
141
140
  data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
142
- defined_tags == other.defined_tags &&
143
141
  display_name == other.display_name &&
144
- freeform_tags == other.freeform_tags
142
+ admin_password == other.admin_password &&
143
+ freeform_tags == other.freeform_tags &&
144
+ defined_tags == other.defined_tags
145
145
  end
146
146
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
147
147
 
@@ -157,7 +157,7 @@ module OCI
157
157
  # Calculates hash code according to all attributes.
158
158
  # @return [Fixnum] Hash code
159
159
  def hash
160
- [admin_password, cpu_core_count, data_storage_size_in_tbs, defined_tags, display_name, freeform_tags].hash
160
+ [cpu_core_count, data_storage_size_in_tbs, display_name, admin_password, freeform_tags, defined_tags].hash
161
161
  end
162
162
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
163
163