oci 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/oci.rb +4 -0
  4. data/lib/oci/auth/federation_client.rb +4 -4
  5. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +22 -16
  6. data/lib/oci/autoscaling/auto_scaling_client.rb +774 -0
  7. data/lib/oci/autoscaling/auto_scaling_client_composite_operations.rb +24 -0
  8. data/lib/oci/autoscaling/autoscaling.rb +38 -0
  9. data/lib/oci/autoscaling/models/action.rb +182 -0
  10. data/lib/oci/autoscaling/models/auto_scaling_configuration.rb +282 -0
  11. data/lib/oci/autoscaling/models/auto_scaling_configuration_summary.rb +234 -0
  12. data/lib/oci/autoscaling/models/auto_scaling_policy.rb +222 -0
  13. data/lib/oci/autoscaling/models/auto_scaling_policy_summary.rb +179 -0
  14. data/lib/oci/autoscaling/models/capacity.rb +170 -0
  15. data/lib/oci/autoscaling/models/condition.rb +186 -0
  16. data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +256 -0
  17. data/lib/oci/autoscaling/models/create_auto_scaling_policy_details.rb +196 -0
  18. data/lib/oci/autoscaling/models/create_condition_details.rb +176 -0
  19. data/lib/oci/autoscaling/models/create_threshold_policy_details.rb +166 -0
  20. data/lib/oci/autoscaling/models/instance_pool_resource.rb +148 -0
  21. data/lib/oci/autoscaling/models/metric.rb +186 -0
  22. data/lib/oci/autoscaling/models/resource.rb +177 -0
  23. data/lib/oci/autoscaling/models/threshold.rb +188 -0
  24. data/lib/oci/autoscaling/models/threshold_policy.rb +173 -0
  25. data/lib/oci/autoscaling/models/update_auto_scaling_configuration_details.rb +219 -0
  26. data/lib/oci/autoscaling/models/update_auto_scaling_policy_details.rb +194 -0
  27. data/lib/oci/autoscaling/models/update_condition_details.rb +176 -0
  28. data/lib/oci/autoscaling/models/update_threshold_policy_details.rb +164 -0
  29. data/lib/oci/autoscaling/util.rb +2 -0
  30. data/lib/oci/core/blockstorage_client.rb +1 -1
  31. data/lib/oci/core/compute_client.rb +1 -1
  32. data/lib/oci/core/compute_management_client.rb +135 -1
  33. data/lib/oci/core/compute_management_client_composite_operations.rb +80 -0
  34. data/lib/oci/core/core.rb +8 -0
  35. data/lib/oci/core/models/attach_load_balancer_details.rb +191 -0
  36. data/lib/oci/core/models/create_instance_pool_details.rb +19 -4
  37. data/lib/oci/core/models/detach_load_balancer_details.rb +167 -0
  38. data/lib/oci/core/models/image.rb +14 -1
  39. data/lib/oci/core/models/instance.rb +18 -2
  40. data/lib/oci/core/models/instance_agent_config.rb +154 -0
  41. data/lib/oci/core/models/instance_agent_features.rb +154 -0
  42. data/lib/oci/core/models/instance_pool.rb +19 -4
  43. data/lib/oci/core/models/instance_pool_instance_load_balancer_backend.rb +219 -0
  44. data/lib/oci/core/models/instance_pool_load_balancer_attachment.rb +253 -0
  45. data/lib/oci/core/models/instance_summary.rb +19 -4
  46. data/lib/oci/core/models/launch_instance_agent_config_details.rb +155 -0
  47. data/lib/oci/core/models/launch_instance_details.rb +14 -1
  48. data/lib/oci/core/models/update_instance_agent_config_details.rb +154 -0
  49. data/lib/oci/core/models/update_instance_details.rb +16 -1
  50. data/lib/oci/core/virtual_network_client.rb +1 -1
  51. data/lib/oci/database/database_client.rb +12 -14
  52. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +3 -1
  53. data/lib/oci/database/models/autonomous_database_connection_strings.rb +3 -1
  54. data/lib/oci/database/models/create_data_guard_association_details.rb +2 -7
  55. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -1
  56. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +4 -1
  57. data/lib/oci/database/models/database_summary.rb +1 -1
  58. data/lib/oci/database/models/db_node.rb +15 -1
  59. data/lib/oci/database/models/db_node_summary.rb +15 -1
  60. data/lib/oci/database/models/db_system.rb +15 -1
  61. data/lib/oci/database/models/db_system_summary.rb +15 -1
  62. data/lib/oci/database/models/db_version_summary.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +33 -2
  64. data/lib/oci/database/models/launch_db_system_details.rb +5 -1
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +5 -1
  66. data/lib/oci/database/models/update_db_system_details.rb +1 -1
  67. data/lib/oci/identity/identity.rb +4 -0
  68. data/lib/oci/identity/identity_client.rb +468 -12
  69. data/lib/oci/identity/identity_client_composite_operations.rb +79 -0
  70. data/lib/oci/identity/models/change_tag_namespace_compartment_detail.rb +154 -0
  71. data/lib/oci/identity/models/create_identity_provider_details.rb +2 -1
  72. data/lib/oci/identity/models/mfa_totp_device.rb +279 -0
  73. data/lib/oci/identity/models/mfa_totp_device_summary.rb +267 -0
  74. data/lib/oci/identity/models/mfa_totp_token.rb +155 -0
  75. data/lib/oci/identity/models/tag_namespace_summary.rb +1 -1
  76. data/lib/oci/identity/models/user.rb +18 -4
  77. data/lib/oci/monitoring/models/aggregated_datapoint.rb +166 -0
  78. data/lib/oci/monitoring/models/alarm.rb +538 -0
  79. data/lib/oci/monitoring/models/alarm_history_collection.rb +183 -0
  80. data/lib/oci/monitoring/models/alarm_history_entry.rb +187 -0
  81. data/lib/oci/monitoring/models/alarm_status_summary.rb +277 -0
  82. data/lib/oci/monitoring/models/alarm_summary.rb +386 -0
  83. data/lib/oci/monitoring/models/create_alarm_details.rb +423 -0
  84. data/lib/oci/monitoring/models/datapoint.rb +179 -0
  85. data/lib/oci/monitoring/models/failed_metric_record.rb +166 -0
  86. data/lib/oci/monitoring/models/list_metrics_details.rb +271 -0
  87. data/lib/oci/monitoring/models/metric.rb +197 -0
  88. data/lib/oci/monitoring/models/metric_data.rb +243 -0
  89. data/lib/oci/monitoring/models/metric_data_details.rb +227 -0
  90. data/lib/oci/monitoring/models/post_metric_data_details.rb +194 -0
  91. data/lib/oci/monitoring/models/post_metric_data_response_details.rb +170 -0
  92. data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +229 -0
  93. data/lib/oci/monitoring/models/suppression.rb +196 -0
  94. data/lib/oci/monitoring/models/update_alarm_details.rb +423 -0
  95. data/lib/oci/monitoring/monitoring.rb +37 -0
  96. data/lib/oci/monitoring/monitoring_client.rb +923 -0
  97. data/lib/oci/monitoring/monitoring_client_composite_operations.rb +145 -0
  98. data/lib/oci/monitoring/util.rb +2 -0
  99. data/lib/oci/ons/models/backoff_retry_policy.rb +192 -0
  100. data/lib/oci/ons/models/confirmation_result.rb +221 -0
  101. data/lib/oci/ons/models/create_subscription_details.rb +238 -0
  102. data/lib/oci/ons/models/create_topic_details.rb +209 -0
  103. data/lib/oci/ons/models/delivery_policy.rb +153 -0
  104. data/lib/oci/ons/models/message_details.rb +163 -0
  105. data/lib/oci/ons/models/notification_topic.rb +302 -0
  106. data/lib/oci/ons/models/notification_topic_summary.rb +303 -0
  107. data/lib/oci/ons/models/publish_result.rb +168 -0
  108. data/lib/oci/ons/models/subscription.rb +273 -0
  109. data/lib/oci/ons/models/subscription_summary.rb +300 -0
  110. data/lib/oci/ons/models/topic_attributes_details.rb +184 -0
  111. data/lib/oci/ons/models/update_subscription_details.rb +188 -0
  112. data/lib/oci/ons/notification_control_plane_client.rb +463 -0
  113. data/lib/oci/ons/notification_control_plane_client_composite_operations.rb +24 -0
  114. data/lib/oci/ons/notification_data_plane_client.rb +680 -0
  115. data/lib/oci/ons/notification_data_plane_client_composite_operations.rb +104 -0
  116. data/lib/oci/ons/ons.rb +33 -0
  117. data/lib/oci/ons/util.rb +2 -0
  118. data/lib/oci/regions.rb +5 -0
  119. data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +189 -0
  120. data/lib/oci/resource_manager/models/config_source.rb +208 -0
  121. data/lib/oci/resource_manager/models/create_config_source_details.rb +187 -0
  122. data/lib/oci/resource_manager/models/create_job_details.rb +225 -0
  123. data/lib/oci/resource_manager/models/create_stack_details.rb +239 -0
  124. data/lib/oci/resource_manager/models/create_zip_upload_config_source_details.rb +166 -0
  125. data/lib/oci/resource_manager/models/failure_details.rb +185 -0
  126. data/lib/oci/resource_manager/models/job.rb +399 -0
  127. data/lib/oci/resource_manager/models/job_summary.rb +311 -0
  128. data/lib/oci/resource_manager/models/log_entry.rb +225 -0
  129. data/lib/oci/resource_manager/models/stack.rb +305 -0
  130. data/lib/oci/resource_manager/models/stack_summary.rb +249 -0
  131. data/lib/oci/resource_manager/models/update_config_source_details.rb +184 -0
  132. data/lib/oci/resource_manager/models/update_job_details.rb +188 -0
  133. data/lib/oci/resource_manager/models/update_stack_details.rb +225 -0
  134. data/lib/oci/resource_manager/models/update_zip_upload_config_source_details.rb +164 -0
  135. data/lib/oci/resource_manager/models/zip_upload_config_source.rb +149 -0
  136. data/lib/oci/resource_manager/resource_manager.rb +36 -0
  137. data/lib/oci/resource_manager/resource_manager_client.rb +1264 -0
  138. data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +263 -0
  139. data/lib/oci/resource_manager/util.rb +2 -0
  140. data/lib/oci/version.rb +1 -1
  141. metadata +100 -2
@@ -51,6 +51,7 @@ module OCI
51
51
  {
52
52
  # rubocop:disable Style/SymbolLiteral
53
53
  'compartment_id': :'compartmentId',
54
+ 'fault_domains': :'faultDomains',
54
55
  'display_name': :'displayName',
55
56
  'availability_domain': :'availabilityDomain',
56
57
  'subnet_id': :'subnetId',
@@ -81,6 +82,7 @@ module OCI
81
82
  {
82
83
  # rubocop:disable Style/SymbolLiteral
83
84
  'compartment_id': :'String',
85
+ 'fault_domains': :'Array<String>',
84
86
  'display_name': :'String',
85
87
  'availability_domain': :'String',
86
88
  'subnet_id': :'String',
@@ -113,6 +115,7 @@ module OCI
113
115
  # Initializes the object
114
116
  # @param [Hash] attributes Model attributes in the form of hash
115
117
  # @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#compartment_id #compartment_id} proprety
118
+ # @option attributes [Array<String>] :fault_domains The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#fault_domains #fault_domains} proprety
116
119
  # @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
117
120
  # @option attributes [String] :availability_domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#availability_domain #availability_domain} proprety
118
121
  # @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
@@ -210,6 +213,7 @@ module OCI
210
213
 
211
214
  self.class == other.class &&
212
215
  compartment_id == other.compartment_id &&
216
+ fault_domains == other.fault_domains &&
213
217
  display_name == other.display_name &&
214
218
  availability_domain == other.availability_domain &&
215
219
  subnet_id == other.subnet_id &&
@@ -246,7 +250,7 @@ module OCI
246
250
  # Calculates hash code according to all attributes.
247
251
  # @return [Fixnum] Hash code
248
252
  def hash
249
- [compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
253
+ [compartment_id, fault_domains, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
250
254
  end
251
255
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
252
256
 
@@ -51,6 +51,7 @@ module OCI
51
51
  {
52
52
  # rubocop:disable Style/SymbolLiteral
53
53
  'compartment_id': :'compartmentId',
54
+ 'fault_domains': :'faultDomains',
54
55
  'display_name': :'displayName',
55
56
  'availability_domain': :'availabilityDomain',
56
57
  'subnet_id': :'subnetId',
@@ -81,6 +82,7 @@ module OCI
81
82
  {
82
83
  # rubocop:disable Style/SymbolLiteral
83
84
  'compartment_id': :'String',
85
+ 'fault_domains': :'Array<String>',
84
86
  'display_name': :'String',
85
87
  'availability_domain': :'String',
86
88
  'subnet_id': :'String',
@@ -113,6 +115,7 @@ module OCI
113
115
  # Initializes the object
114
116
  # @param [Hash] attributes Model attributes in the form of hash
115
117
  # @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#compartment_id #compartment_id} proprety
118
+ # @option attributes [Array<String>] :fault_domains The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#fault_domains #fault_domains} proprety
116
119
  # @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
117
120
  # @option attributes [String] :availability_domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#availability_domain #availability_domain} proprety
118
121
  # @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
@@ -210,6 +213,7 @@ module OCI
210
213
 
211
214
  self.class == other.class &&
212
215
  compartment_id == other.compartment_id &&
216
+ fault_domains == other.fault_domains &&
213
217
  display_name == other.display_name &&
214
218
  availability_domain == other.availability_domain &&
215
219
  subnet_id == other.subnet_id &&
@@ -246,7 +250,7 @@ module OCI
246
250
  # Calculates hash code according to all attributes.
247
251
  # @return [Fixnum] Hash code
248
252
  def hash
249
- [compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
253
+ [compartment_id, fault_domains, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
250
254
  end
251
255
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
252
256
 
@@ -16,7 +16,7 @@ module OCI
16
16
  # @return [OCI::Database::Models::PatchDetails]
17
17
  attr_accessor :version
18
18
 
19
- # The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 10,000 characters.
19
+ # The public key portion of the key pair to use for SSH access to the DB system. Multiple public keys can be provided. The length of the combined keys cannot exceed 40,000 characters.
20
20
  # @return [Array<String>]
21
21
  attr_accessor :ssh_public_keys
22
22
 
@@ -14,6 +14,7 @@ require 'oci/identity/models/add_user_to_group_details'
14
14
  require 'oci/identity/models/api_key'
15
15
  require 'oci/identity/models/auth_token'
16
16
  require 'oci/identity/models/availability_domain'
17
+ require 'oci/identity/models/change_tag_namespace_compartment_detail'
17
18
  require 'oci/identity/models/compartment'
18
19
  require 'oci/identity/models/create_api_key_details'
19
20
  require 'oci/identity/models/create_auth_token_details'
@@ -39,6 +40,9 @@ require 'oci/identity/models/group'
39
40
  require 'oci/identity/models/identity_provider'
40
41
  require 'oci/identity/models/identity_provider_group_summary'
41
42
  require 'oci/identity/models/idp_group_mapping'
43
+ require 'oci/identity/models/mfa_totp_device'
44
+ require 'oci/identity/models/mfa_totp_device_summary'
45
+ require 'oci/identity/models/mfa_totp_token'
42
46
  require 'oci/identity/models/policy'
43
47
  require 'oci/identity/models/region'
44
48
  require 'oci/identity/models/region_subscription'
@@ -108,6 +108,76 @@ module OCI
108
108
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
109
109
 
110
110
 
111
+ # Activate the specified MFA TOTP device for the user.
112
+ #
113
+ # @param [String] user_id The OCID of the user.
114
+ # @param [String] mfa_totp_device_id The OCID of the MFA TOTP device.
115
+ # @param [OCI::Identity::Models::MfaTotpToken] mfa_totp_token MFA TOTP token
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
118
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
119
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
120
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
121
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
122
+ #
123
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
124
+ # server error without risk of executing that same action again. Retry tokens expire after 24
125
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
126
+ # has been deleted and purged from the system, then a retry of the original creation request
127
+ # may be rejected).
128
+ #
129
+ # @return [Response] A Response object with data of type {OCI::Identity::Models::MfaTotpDeviceSummary MfaTotpDeviceSummary}
130
+ def activate_mfa_totp_device(user_id, mfa_totp_device_id, mfa_totp_token, opts = {})
131
+ logger.debug 'Calling operation IdentityClient#activate_mfa_totp_device.' if logger
132
+
133
+ raise "Missing the required parameter 'user_id' when calling activate_mfa_totp_device." if user_id.nil?
134
+ raise "Missing the required parameter 'mfa_totp_device_id' when calling activate_mfa_totp_device." if mfa_totp_device_id.nil?
135
+ raise "Missing the required parameter 'mfa_totp_token' when calling activate_mfa_totp_device." if mfa_totp_token.nil?
136
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
137
+ raise "Parameter value for 'mfa_totp_device_id' must not be blank" if OCI::Internal::Util.blank_string?(mfa_totp_device_id)
138
+
139
+ path = '/users/{userId}/mfaTotpDevices/{mfaTotpDeviceId}/actions/activate'.sub('{userId}', user_id.to_s).sub('{mfaTotpDeviceId}', mfa_totp_device_id.to_s)
140
+ operation_signing_strategy = :standard
141
+
142
+ # rubocop:disable Style/NegatedIf
143
+ # Query Params
144
+ query_params = {}
145
+
146
+ # Header Params
147
+ header_params = {}
148
+ header_params[:accept] = 'application/json'
149
+ header_params[:'content-type'] = 'application/json'
150
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
151
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
152
+ # rubocop:enable Style/NegatedIf
153
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
154
+
155
+ post_body = @api_client.object_to_http_body(mfa_totp_token)
156
+
157
+ # rubocop:disable Metrics/BlockLength
158
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#activate_mfa_totp_device') do
159
+ @api_client.call_api(
160
+ :POST,
161
+ path,
162
+ endpoint,
163
+ header_params: header_params,
164
+ query_params: query_params,
165
+ operation_signing_strategy: operation_signing_strategy,
166
+ body: post_body,
167
+ return_type: 'OCI::Identity::Models::MfaTotpDeviceSummary'
168
+ )
169
+ end
170
+ # rubocop:enable Metrics/BlockLength
171
+ end
172
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
173
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
174
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
175
+
176
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
177
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
178
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
179
+
180
+
111
181
  # Adds the specified user to the specified group and returns a `UserGroupMembership` object with its own OCID.
112
182
  #
113
183
  # After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the
@@ -170,6 +240,73 @@ module OCI
170
240
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
171
241
 
172
242
 
243
+ # Moves the specified tag namespace to the specified compartment within the same tenancy.
244
+ #
245
+ # To move the tag namespace, you must have the manage tag-namespaces permission on both compartments.
246
+ # For more information about IAM policies, see [Details for IAM](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Reference/iampolicyreference.htm).
247
+ #
248
+ # Moving a tag namespace moves all the tag key definitions contained in the tag namespace.
249
+ #
250
+ # @param [String] tag_namespace_id The OCID of the tag namespace.
251
+ #
252
+ # @param [OCI::Identity::Models::ChangeTagNamespaceCompartmentDetail] change_tag_namespace_compartment_detail Request object for changing the compartment of a tag namespace.
253
+ # @param [Hash] opts the optional parameters
254
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
255
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
256
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
257
+ # server error without risk of executing that same action again. Retry tokens expire after 24
258
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
259
+ # has been deleted and purged from the system, then a retry of the original creation request
260
+ # may be rejected).
261
+ #
262
+ # @return [Response] A Response object with data of type nil
263
+ def change_tag_namespace_compartment(tag_namespace_id, change_tag_namespace_compartment_detail, opts = {})
264
+ logger.debug 'Calling operation IdentityClient#change_tag_namespace_compartment.' if logger
265
+
266
+ raise "Missing the required parameter 'tag_namespace_id' when calling change_tag_namespace_compartment." if tag_namespace_id.nil?
267
+ raise "Missing the required parameter 'change_tag_namespace_compartment_detail' when calling change_tag_namespace_compartment." if change_tag_namespace_compartment_detail.nil?
268
+ raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util.blank_string?(tag_namespace_id)
269
+
270
+ path = '/tagNamespaces/{tagNamespaceId}/actions/changeCompartment'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
271
+ operation_signing_strategy = :standard
272
+
273
+ # rubocop:disable Style/NegatedIf
274
+ # Query Params
275
+ query_params = {}
276
+
277
+ # Header Params
278
+ header_params = {}
279
+ header_params[:accept] = 'application/json'
280
+ header_params[:'content-type'] = 'application/json'
281
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
282
+ # rubocop:enable Style/NegatedIf
283
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
284
+
285
+ post_body = @api_client.object_to_http_body(change_tag_namespace_compartment_detail)
286
+
287
+ # rubocop:disable Metrics/BlockLength
288
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#change_tag_namespace_compartment') do
289
+ @api_client.call_api(
290
+ :POST,
291
+ path,
292
+ endpoint,
293
+ header_params: header_params,
294
+ query_params: query_params,
295
+ operation_signing_strategy: operation_signing_strategy,
296
+ body: post_body
297
+ )
298
+ end
299
+ # rubocop:enable Metrics/BlockLength
300
+ end
301
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
302
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
303
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
304
+
305
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
306
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
307
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
308
+
309
+
173
310
  # Creates a new auth token for the specified user. For information about what auth tokens are for, see
174
311
  # [Managing User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm).
175
312
  #
@@ -684,6 +821,66 @@ module OCI
684
821
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
685
822
 
686
823
 
824
+ # Create a new MFA TOTP device for the user. A user can only create one MFA TOTP device.
825
+ #
826
+ # @param [String] user_id The OCID of the user.
827
+ # @param [Hash] opts the optional parameters
828
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
829
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
830
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
831
+ # server error without risk of executing that same action again. Retry tokens expire after 24
832
+ # hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
833
+ # has been deleted and purged from the system, then a retry of the original creation request
834
+ # may be rejected).
835
+ #
836
+ # @return [Response] A Response object with data of type {OCI::Identity::Models::MfaTotpDevice MfaTotpDevice}
837
+ def create_mfa_totp_device(user_id, opts = {})
838
+ logger.debug 'Calling operation IdentityClient#create_mfa_totp_device.' if logger
839
+
840
+ raise "Missing the required parameter 'user_id' when calling create_mfa_totp_device." if user_id.nil?
841
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
842
+
843
+ path = '/users/{userId}/mfaTotpDevices'.sub('{userId}', user_id.to_s)
844
+ operation_signing_strategy = :standard
845
+
846
+ # rubocop:disable Style/NegatedIf
847
+ # Query Params
848
+ query_params = {}
849
+
850
+ # Header Params
851
+ header_params = {}
852
+ header_params[:accept] = 'application/json'
853
+ header_params[:'content-type'] = 'application/json'
854
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
855
+ # rubocop:enable Style/NegatedIf
856
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
857
+
858
+ post_body = nil
859
+
860
+ # rubocop:disable Metrics/BlockLength
861
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#create_mfa_totp_device') do
862
+ @api_client.call_api(
863
+ :POST,
864
+ path,
865
+ endpoint,
866
+ header_params: header_params,
867
+ query_params: query_params,
868
+ operation_signing_strategy: operation_signing_strategy,
869
+ body: post_body,
870
+ return_type: 'OCI::Identity::Models::MfaTotpDevice'
871
+ )
872
+ end
873
+ # rubocop:enable Metrics/BlockLength
874
+ end
875
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
876
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
877
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
878
+
879
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
880
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
881
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
882
+
883
+
687
884
  # Creates a new Console one-time password for the specified user. For more information about user
688
885
  # credentials, see [User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/usercredentials.htm).
689
886
  #
@@ -1736,6 +1933,65 @@ module OCI
1736
1933
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1737
1934
 
1738
1935
 
1936
+ # Delete the specified MFA TOTP device for the specified user.
1937
+ #
1938
+ # @param [String] user_id The OCID of the user.
1939
+ # @param [String] mfa_totp_device_id The OCID of the MFA TOTP device.
1940
+ # @param [Hash] opts the optional parameters
1941
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1942
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1943
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1944
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1945
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1946
+ #
1947
+ # @return [Response] A Response object with data of type nil
1948
+ def delete_mfa_totp_device(user_id, mfa_totp_device_id, opts = {})
1949
+ logger.debug 'Calling operation IdentityClient#delete_mfa_totp_device.' if logger
1950
+
1951
+ raise "Missing the required parameter 'user_id' when calling delete_mfa_totp_device." if user_id.nil?
1952
+ raise "Missing the required parameter 'mfa_totp_device_id' when calling delete_mfa_totp_device." if mfa_totp_device_id.nil?
1953
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
1954
+ raise "Parameter value for 'mfa_totp_device_id' must not be blank" if OCI::Internal::Util.blank_string?(mfa_totp_device_id)
1955
+
1956
+ path = '/users/{userId}/mfaTotpDevices/{mfaTotpDeviceId}'.sub('{userId}', user_id.to_s).sub('{mfaTotpDeviceId}', mfa_totp_device_id.to_s)
1957
+ operation_signing_strategy = :standard
1958
+
1959
+ # rubocop:disable Style/NegatedIf
1960
+ # Query Params
1961
+ query_params = {}
1962
+
1963
+ # Header Params
1964
+ header_params = {}
1965
+ header_params[:accept] = 'application/json'
1966
+ header_params[:'content-type'] = 'application/json'
1967
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1968
+ # rubocop:enable Style/NegatedIf
1969
+
1970
+ post_body = nil
1971
+
1972
+ # rubocop:disable Metrics/BlockLength
1973
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#delete_mfa_totp_device') do
1974
+ @api_client.call_api(
1975
+ :DELETE,
1976
+ path,
1977
+ endpoint,
1978
+ header_params: header_params,
1979
+ query_params: query_params,
1980
+ operation_signing_strategy: operation_signing_strategy,
1981
+ body: post_body
1982
+ )
1983
+ end
1984
+ # rubocop:enable Metrics/BlockLength
1985
+ end
1986
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1987
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1988
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1989
+
1990
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1991
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1992
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1993
+
1994
+
1739
1995
  # Deletes the specified policy. The deletion takes effect typically within 10 seconds.
1740
1996
  # @param [String] policy_id The OCID of the policy.
1741
1997
  # @param [Hash] opts the optional parameters
@@ -1961,6 +2217,66 @@ module OCI
1961
2217
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1962
2218
  # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1963
2219
 
2220
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2221
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2222
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2223
+
2224
+
2225
+ # Generate seed for the MFA TOTP device
2226
+ #
2227
+ # @param [String] user_id The OCID of the user.
2228
+ # @param [String] mfa_totp_device_id The OCID of the MFA TOTP device.
2229
+ # @param [Hash] opts the optional parameters
2230
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2231
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2232
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
2233
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
2234
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
2235
+ #
2236
+ # @return [Response] A Response object with data of type {OCI::Identity::Models::MfaTotpDevice MfaTotpDevice}
2237
+ def generate_totp_seed(user_id, mfa_totp_device_id, opts = {})
2238
+ logger.debug 'Calling operation IdentityClient#generate_totp_seed.' if logger
2239
+
2240
+ raise "Missing the required parameter 'user_id' when calling generate_totp_seed." if user_id.nil?
2241
+ raise "Missing the required parameter 'mfa_totp_device_id' when calling generate_totp_seed." if mfa_totp_device_id.nil?
2242
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
2243
+ raise "Parameter value for 'mfa_totp_device_id' must not be blank" if OCI::Internal::Util.blank_string?(mfa_totp_device_id)
2244
+
2245
+ path = '/users/{userId}/mfaTotpDevices/{mfaTotpDeviceId}/actions/generateSeed'.sub('{userId}', user_id.to_s).sub('{mfaTotpDeviceId}', mfa_totp_device_id.to_s)
2246
+ operation_signing_strategy = :standard
2247
+
2248
+ # rubocop:disable Style/NegatedIf
2249
+ # Query Params
2250
+ query_params = {}
2251
+
2252
+ # Header Params
2253
+ header_params = {}
2254
+ header_params[:accept] = 'application/json'
2255
+ header_params[:'content-type'] = 'application/json'
2256
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2257
+ # rubocop:enable Style/NegatedIf
2258
+
2259
+ post_body = nil
2260
+
2261
+ # rubocop:disable Metrics/BlockLength
2262
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#generate_totp_seed') do
2263
+ @api_client.call_api(
2264
+ :POST,
2265
+ path,
2266
+ endpoint,
2267
+ header_params: header_params,
2268
+ query_params: query_params,
2269
+ operation_signing_strategy: operation_signing_strategy,
2270
+ body: post_body,
2271
+ return_type: 'OCI::Identity::Models::MfaTotpDevice'
2272
+ )
2273
+ end
2274
+ # rubocop:enable Metrics/BlockLength
2275
+ end
2276
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2277
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2278
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2279
+
1964
2280
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1965
2281
  # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1966
2282
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
@@ -2249,6 +2565,63 @@ module OCI
2249
2565
  # rubocop:disable Lint/UnusedMethodArgument
2250
2566
 
2251
2567
 
2568
+ # Get the specified MFA TOTP device for the specified user.
2569
+ #
2570
+ # @param [String] user_id The OCID of the user.
2571
+ # @param [String] mfa_totp_device_id The OCID of the MFA TOTP device.
2572
+ # @param [Hash] opts the optional parameters
2573
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2574
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2575
+ # @return [Response] A Response object with data of type {OCI::Identity::Models::MfaTotpDeviceSummary MfaTotpDeviceSummary}
2576
+ def get_mfa_totp_device(user_id, mfa_totp_device_id, opts = {})
2577
+ logger.debug 'Calling operation IdentityClient#get_mfa_totp_device.' if logger
2578
+
2579
+ raise "Missing the required parameter 'user_id' when calling get_mfa_totp_device." if user_id.nil?
2580
+ raise "Missing the required parameter 'mfa_totp_device_id' when calling get_mfa_totp_device." if mfa_totp_device_id.nil?
2581
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
2582
+ raise "Parameter value for 'mfa_totp_device_id' must not be blank" if OCI::Internal::Util.blank_string?(mfa_totp_device_id)
2583
+
2584
+ path = '/users/{userId}/mfaTotpDevices/{mfaTotpDeviceId}'.sub('{userId}', user_id.to_s).sub('{mfaTotpDeviceId}', mfa_totp_device_id.to_s)
2585
+ operation_signing_strategy = :standard
2586
+
2587
+ # rubocop:disable Style/NegatedIf
2588
+ # Query Params
2589
+ query_params = {}
2590
+
2591
+ # Header Params
2592
+ header_params = {}
2593
+ header_params[:accept] = 'application/json'
2594
+ header_params[:'content-type'] = 'application/json'
2595
+ # rubocop:enable Style/NegatedIf
2596
+
2597
+ post_body = nil
2598
+
2599
+ # rubocop:disable Metrics/BlockLength
2600
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#get_mfa_totp_device') do
2601
+ @api_client.call_api(
2602
+ :GET,
2603
+ path,
2604
+ endpoint,
2605
+ header_params: header_params,
2606
+ query_params: query_params,
2607
+ operation_signing_strategy: operation_signing_strategy,
2608
+ body: post_body,
2609
+ return_type: 'OCI::Identity::Models::MfaTotpDeviceSummary'
2610
+ )
2611
+ end
2612
+ # rubocop:enable Metrics/BlockLength
2613
+ end
2614
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2615
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2616
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2617
+ # rubocop:enable Lint/UnusedMethodArgument
2618
+
2619
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2620
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2621
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2622
+ # rubocop:disable Lint/UnusedMethodArgument
2623
+
2624
+
2252
2625
  # Gets the specified policy's information.
2253
2626
  # @param [String] policy_id The OCID of the policy.
2254
2627
  # @param [Hash] opts the optional parameters
@@ -2747,7 +3120,7 @@ module OCI
2747
3120
  # Note that the order of the results returned can change if availability domains are added or removed; therefore, do not
2748
3121
  # create a dependency on the list order.
2749
3122
  #
2750
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3123
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
2751
3124
  #
2752
3125
  # @param [Hash] opts the optional parameters
2753
3126
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -2818,7 +3191,7 @@ module OCI
2818
3191
  #
2819
3192
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
2820
3193
  #
2821
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3194
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
2822
3195
  #
2823
3196
  # @param [Hash] opts the optional parameters
2824
3197
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -2899,7 +3272,7 @@ module OCI
2899
3272
  # Lists all the tags enabled for cost-tracking in the specified tenancy. For information about
2900
3273
  # cost-tracking tags, see [Using Cost-tracking Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/taggingoverview.htm#costs).
2901
3274
  #
2902
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3275
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
2903
3276
  #
2904
3277
  # @param [Hash] opts the optional parameters
2905
3278
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3015,7 +3388,7 @@ module OCI
3015
3388
  # the compartment ID (remember that the tenancy is simply the root compartment).
3016
3389
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
3017
3390
  #
3018
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3391
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3019
3392
  #
3020
3393
  # @param [Hash] opts the optional parameters
3021
3394
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3077,7 +3450,7 @@ module OCI
3077
3450
  # of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
3078
3451
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
3079
3452
  #
3080
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3453
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3081
3454
  #
3082
3455
  # @param [String] availability_domain The name of the availibilityDomain.
3083
3456
  #
@@ -3137,7 +3510,7 @@ module OCI
3137
3510
  # the compartment ID (remember that the tenancy is simply the root compartment).
3138
3511
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
3139
3512
  #
3140
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3513
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3141
3514
  #
3142
3515
  # @param [Hash] opts the optional parameters
3143
3516
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3258,7 +3631,7 @@ module OCI
3258
3631
  #
3259
3632
  # @param [String] protocol The protocol used for federation.
3260
3633
  # Allowed values are: SAML2
3261
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3634
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3262
3635
  #
3263
3636
  # @param [Hash] opts the optional parameters
3264
3637
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3378,13 +3751,96 @@ module OCI
3378
3751
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3379
3752
 
3380
3753
 
3754
+ # Lists the MFA TOTP devices for the specified user. The returned object contains the device's OCID, but not
3755
+ # the seed. The seed is returned only upon creation or when we regenerate MFA seed for the device.
3756
+ #
3757
+ # @param [String] user_id The OCID of the user.
3758
+ # @param [Hash] opts the optional parameters
3759
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3760
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3761
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
3762
+ #
3763
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
3764
+ #
3765
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
3766
+ # TIMECREATED is descending. Default order for NAME is ascending. The NAME
3767
+ # sort order is case sensitive.
3768
+ #
3769
+ # **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
3770
+ # optionally filter by Availability Domain if the scope of the resource type is within a
3771
+ # single Availability Domain. If you call one of these \"List\" operations without specifying
3772
+ # an Availability Domain, the resources are grouped by Availability Domain, then sorted.
3773
+ #
3774
+ # Allowed values are: TIMECREATED, NAME
3775
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order
3776
+ # is case sensitive.
3777
+ #
3778
+ # Allowed values are: ASC, DESC
3779
+ # @return [Response] A Response object with data of type Array<{OCI::Identity::Models::MfaTotpDeviceSummary MfaTotpDeviceSummary}>
3780
+ def list_mfa_totp_devices(user_id, opts = {})
3781
+ logger.debug 'Calling operation IdentityClient#list_mfa_totp_devices.' if logger
3782
+
3783
+ raise "Missing the required parameter 'user_id' when calling list_mfa_totp_devices." if user_id.nil?
3784
+
3785
+ if opts[:sort_by] && !%w[TIMECREATED NAME].include?(opts[:sort_by])
3786
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, NAME.'
3787
+ end
3788
+
3789
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
3790
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
3791
+ end
3792
+ raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util.blank_string?(user_id)
3793
+
3794
+ path = '/users/{userId}/mfaTotpDevices'.sub('{userId}', user_id.to_s)
3795
+ operation_signing_strategy = :standard
3796
+
3797
+ # rubocop:disable Style/NegatedIf
3798
+ # Query Params
3799
+ query_params = {}
3800
+ query_params[:page] = opts[:page] if opts[:page]
3801
+ query_params[:limit] = opts[:limit] if opts[:limit]
3802
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
3803
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3804
+
3805
+ # Header Params
3806
+ header_params = {}
3807
+ header_params[:accept] = 'application/json'
3808
+ header_params[:'content-type'] = 'application/json'
3809
+ # rubocop:enable Style/NegatedIf
3810
+
3811
+ post_body = nil
3812
+
3813
+ # rubocop:disable Metrics/BlockLength
3814
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_mfa_totp_devices') do
3815
+ @api_client.call_api(
3816
+ :GET,
3817
+ path,
3818
+ endpoint,
3819
+ header_params: header_params,
3820
+ query_params: query_params,
3821
+ operation_signing_strategy: operation_signing_strategy,
3822
+ body: post_body,
3823
+ return_type: 'Array<OCI::Identity::Models::MfaTotpDeviceSummary>'
3824
+ )
3825
+ end
3826
+ # rubocop:enable Metrics/BlockLength
3827
+ end
3828
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3829
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3830
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3831
+
3832
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3833
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3834
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3835
+
3836
+
3381
3837
  # Lists the policies in the specified compartment (either the tenancy or another of your compartments).
3382
3838
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
3383
3839
  #
3384
3840
  # To determine which policies apply to a particular group or compartment, you must view the individual
3385
3841
  # statements inside all your policies. There isn't a way to automatically obtain that information via the API.
3386
3842
  #
3387
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
3843
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3388
3844
  #
3389
3845
  # @param [Hash] opts the optional parameters
3390
3846
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3658,7 +4114,7 @@ module OCI
3658
4114
 
3659
4115
  # Lists the tag namespaces in the specified compartment.
3660
4116
  #
3661
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
4117
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3662
4118
  #
3663
4119
  # @param [Hash] opts the optional parameters
3664
4120
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3789,7 +4245,7 @@ module OCI
3789
4245
  # If the answer is no, the response is an empty list.
3790
4246
  # - Although`userId` and `groupId` are not indvidually required, you must set one of them.
3791
4247
  #
3792
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
4248
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3793
4249
  #
3794
4250
  # @param [Hash] opts the optional parameters
3795
4251
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3854,7 +4310,7 @@ module OCI
3854
4310
  # compartment ID (remember that the tenancy is simply the root compartment).
3855
4311
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
3856
4312
  #
3857
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
4313
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3858
4314
  #
3859
4315
  # @param [Hash] opts the optional parameters
3860
4316
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
@@ -3919,7 +4375,7 @@ module OCI
3919
4375
 
3920
4376
  # Lists the work requests in compartment.
3921
4377
  #
3922
- # @param [String] compartment_id The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
4378
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
3923
4379
  #
3924
4380
  # @param [Hash] opts the optional parameters
3925
4381
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level