oci 2.5.11 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/auth/federation_client.rb +2 -1
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -1
- data/lib/oci/auth/url_based_certificate_retriever.rb +6 -2
- data/lib/oci/auth/util.rb +18 -0
- data/lib/oci/core/compute_client.rb +730 -48
- data/lib/oci/core/compute_client_composite_operations.rb +119 -0
- data/lib/oci/core/compute_management_client.rb +11 -4
- data/lib/oci/core/core.rb +13 -0
- data/lib/oci/core/models/add_security_rule_details.rb +4 -2
- data/lib/oci/core/models/attach_vnic_details.rb +1 -0
- data/lib/oci/core/models/capture_console_history_details.rb +1 -0
- data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_network_security_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_public_ip_compartment_details.rb +155 -0
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +262 -0
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -2
- data/lib/oci/core/models/create_image_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_base.rb +16 -6
- data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +3 -2
- data/lib/oci/core/models/create_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
- data/lib/oci/core/models/create_volume_group_backup_details.rb +3 -1
- data/lib/oci/core/models/create_volume_group_details.rb +1 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -0
- data/lib/oci/core/models/dedicated_vm_host.rb +359 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +170 -0
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +215 -0
- data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +171 -0
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +325 -0
- data/lib/oci/core/models/drg_attachment.rb +6 -3
- data/lib/oci/core/models/egress_security_rule.rb +1 -0
- data/lib/oci/core/models/image.rb +2 -0
- data/lib/oci/core/models/ingress_security_rule.rb +2 -1
- data/lib/oci/core/models/instance.rb +16 -1
- data/lib/oci/core/models/instance_configuration.rb +10 -7
- data/lib/oci/core/models/ipv6.rb +2 -0
- data/lib/oci/core/models/launch_instance_details.rb +16 -1
- data/lib/oci/core/models/launch_options.rb +3 -2
- data/lib/oci/core/models/local_peering_gateway.rb +4 -3
- data/lib/oci/core/models/route_rule.rb +2 -1
- data/lib/oci/core/models/security_rule.rb +3 -1
- data/lib/oci/core/models/service_gateway.rb +4 -3
- data/lib/oci/core/models/subnet.rb +2 -1
- data/lib/oci/core/models/update_console_history_details.rb +1 -0
- data/lib/oci/core/models/update_dedicated_vm_host_details.rb +194 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +6 -3
- data/lib/oci/core/models/update_instance_pool_details.rb +3 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_network_security_group_details.rb +2 -0
- data/lib/oci/core/models/update_security_rule_details.rb +4 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +4 -3
- data/lib/oci/core/models/update_vnic_details.rb +2 -0
- data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
- data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -1
- data/lib/oci/core/models/update_volume_group_details.rb +2 -1
- data/lib/oci/core/models/vcn.rb +2 -1
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +396 -59
- data/lib/oci/dts/dts.rb +57 -0
- data/lib/oci/dts/models/attach_devices_details.rb +153 -0
- data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +154 -0
- data/lib/oci/dts/models/create_transfer_appliance_details.rb +152 -0
- data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +178 -0
- data/lib/oci/dts/models/create_transfer_device_details.rb +165 -0
- data/lib/oci/dts/models/create_transfer_job_details.rb +238 -0
- data/lib/oci/dts/models/create_transfer_package_details.rb +178 -0
- data/lib/oci/dts/models/detach_devices_details.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_appliances.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_devices.rb +153 -0
- data/lib/oci/dts/models/multiple_transfer_packages.rb +153 -0
- data/lib/oci/dts/models/new_transfer_device.rb +246 -0
- data/lib/oci/dts/models/shipping_address.rb +263 -0
- data/lib/oci/dts/models/shipping_vendors.rb +149 -0
- data/lib/oci/dts/models/transfer_appliance.rb +367 -0
- data/lib/oci/dts/models/transfer_appliance_certificate.rb +148 -0
- data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_entitlement.rb +240 -0
- data/lib/oci/dts/models/transfer_appliance_public_key.rb +152 -0
- data/lib/oci/dts/models/transfer_appliance_summary.rb +223 -0
- data/lib/oci/dts/models/transfer_device.rb +268 -0
- data/lib/oci/dts/models/transfer_device_summary.rb +254 -0
- data/lib/oci/dts/models/transfer_job.rb +356 -0
- data/lib/oci/dts/models/transfer_job_summary.rb +296 -0
- data/lib/oci/dts/models/transfer_package.rb +281 -0
- data/lib/oci/dts/models/transfer_package_summary.rb +201 -0
- data/lib/oci/dts/models/update_transfer_appliance_details.rb +180 -0
- data/lib/oci/dts/models/update_transfer_device_details.rb +166 -0
- data/lib/oci/dts/models/update_transfer_job_details.rb +237 -0
- data/lib/oci/dts/models/update_transfer_package_details.rb +204 -0
- data/lib/oci/dts/shipping_vendors_client.rb +165 -0
- data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_appliance_client.rb +569 -0
- data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +104 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client.rb +223 -0
- data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +24 -0
- data/lib/oci/dts/transfer_device_client.rb +402 -0
- data/lib/oci/dts/transfer_device_client_composite_operations.rb +65 -0
- data/lib/oci/dts/transfer_job_client.rb +458 -0
- data/lib/oci/dts/transfer_job_client_composite_operations.rb +143 -0
- data/lib/oci/dts/transfer_package_client.rb +515 -0
- data/lib/oci/dts/transfer_package_client_composite_operations.rb +104 -0
- data/lib/oci/dts/util.rb +2 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +19 -4
- data/lib/oci/file_storage/models/file_system.rb +19 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +19 -4
- data/lib/oci/file_storage/models/update_file_system_details.rb +22 -4
- data/lib/oci/limits/limits.rb +5 -0
- data/lib/oci/limits/limits_client.rb +444 -0
- data/lib/oci/limits/limits_client_composite_operations.rb +24 -0
- data/lib/oci/limits/models/create_quota_details.rb +1 -1
- data/lib/oci/limits/models/limit_definition_summary.rb +241 -0
- data/lib/oci/limits/models/limit_value_summary.rb +210 -0
- data/lib/oci/limits/models/quota.rb +1 -1
- data/lib/oci/limits/models/resource_availability.rb +163 -0
- data/lib/oci/limits/models/service_summary.rb +159 -0
- data/lib/oci/limits/models/update_quota_details.rb +1 -1
- data/lib/oci/limits/quotas_client.rb +12 -11
- data/lib/oci/monitoring/models/alarm.rb +20 -1
- data/lib/oci/monitoring/models/create_alarm_details.rb +20 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +23 -3
- data/lib/oci/monitoring/models/metric.rb +20 -1
- data/lib/oci/monitoring/models/metric_data.rb +20 -1
- data/lib/oci/monitoring/models/metric_data_details.rb +20 -1
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +20 -1
- data/lib/oci/monitoring/models/update_alarm_details.rb +20 -1
- data/lib/oci/regions.rb +14 -8
- data/lib/oci/streaming/models/archiver.rb +291 -0
- data/lib/oci/streaming/models/archiver_error.rb +159 -0
- data/lib/oci/streaming/models/archiver_lifecycle_state.rb +14 -0
- data/lib/oci/streaming/models/archiver_start_position.rb +10 -0
- data/lib/oci/streaming/models/create_archiver_details.rb +223 -0
- data/lib/oci/streaming/models/update_archiver_details.rb +222 -0
- data/lib/oci/streaming/stream_admin_client.rb +304 -0
- data/lib/oci/streaming/stream_admin_client_composite_operations.rb +162 -0
- data/lib/oci/streaming/streaming.rb +6 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +121 -4
- data/lib/oci/waas/models/access_rule_criteria.rb +12 -0
- data/lib/oci/waas/models/address_list.rb +289 -0
- data/lib/oci/waas/models/address_list_summary.rb +279 -0
- data/lib/oci/waas/models/caching_rule.rb +243 -0
- data/lib/oci/waas/models/caching_rule_criteria.rb +194 -0
- data/lib/oci/waas/models/caching_rule_summary.rb +246 -0
- data/lib/oci/waas/models/certificate.rb +22 -9
- data/lib/oci/waas/models/certificate_extensions.rb +3 -0
- data/lib/oci/waas/models/certificate_issuer_name.rb +225 -0
- data/lib/oci/waas/models/certificate_public_key_info.rb +4 -1
- data/lib/oci/waas/models/certificate_subject_name.rb +8 -1
- data/lib/oci/waas/models/certificate_summary.rb +10 -2
- data/lib/oci/waas/models/change_address_list_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_address_list_details.rb +213 -0
- data/lib/oci/waas/models/create_certificate_details.rb +22 -3
- data/lib/oci/waas/models/create_custom_protection_rule_details.rb +251 -0
- data/lib/oci/waas/models/create_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/custom_protection_rule.rb +326 -0
- data/lib/oci/waas/models/custom_protection_rule_setting.rb +180 -0
- data/lib/oci/waas/models/custom_protection_rule_summary.rb +279 -0
- data/lib/oci/waas/models/origin_group.rb +149 -0
- data/lib/oci/waas/models/origin_group_origins.rb +159 -0
- data/lib/oci/waas/models/policy_config.rb +201 -4
- data/lib/oci/waas/models/protection_rule_exclusion.rb +2 -2
- data/lib/oci/waas/models/purge_cache.rb +149 -0
- data/lib/oci/waas/models/update_address_list_details.rb +199 -0
- data/lib/oci/waas/models/update_certificate_details.rb +10 -2
- data/lib/oci/waas/models/update_custom_protection_rule_details.rb +237 -0
- data/lib/oci/waas/models/update_waas_policy_details.rb +26 -4
- data/lib/oci/waas/models/waas_policy.rb +25 -3
- data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +207 -0
- data/lib/oci/waas/models/waas_policy_summary.rb +10 -2
- data/lib/oci/waas/models/waf_config.rb +43 -1
- data/lib/oci/waas/models/waf_config_details.rb +43 -1
- data/lib/oci/waas/models/waf_log.rb +3 -3
- data/lib/oci/waas/models/work_request.rb +4 -1
- data/lib/oci/waas/models/work_request_operation_types.rb +4 -1
- data/lib/oci/waas/models/work_request_summary.rb +4 -1
- data/lib/oci/waas/waas.rb +19 -0
- data/lib/oci/waas/waas_client.rb +1147 -61
- data/lib/oci/waas/waas_client_composite_operations.rb +386 -0
- metadata +90 -2
@@ -166,6 +166,70 @@ module OCI
|
|
166
166
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
167
167
|
|
168
168
|
|
169
|
+
# Starts the provisioning of a new stream archiver.
|
170
|
+
# To track the progress of the provisioning, you can periodically call {#get_archiver get_archiver}.
|
171
|
+
# In the response, the `lifecycleState` parameter of the {Archiver} object tells you its current state.
|
172
|
+
#
|
173
|
+
# @param [String] stream_id The OCID of the stream.
|
174
|
+
#
|
175
|
+
# @param [OCI::Streaming::Models::CreateArchiverDetails] create_archiver_details A stream archiver parameters to create.
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
178
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
179
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
180
|
+
# particular request, please provide the request ID.
|
181
|
+
#
|
182
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
|
183
|
+
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Archiver Archiver}
|
184
|
+
def create_archiver(stream_id, create_archiver_details, opts = {})
|
185
|
+
logger.debug 'Calling operation StreamAdminClient#create_archiver.' if logger
|
186
|
+
|
187
|
+
raise "Missing the required parameter 'stream_id' when calling create_archiver." if stream_id.nil?
|
188
|
+
raise "Missing the required parameter 'create_archiver_details' when calling create_archiver." if create_archiver_details.nil?
|
189
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
190
|
+
|
191
|
+
path = '/streams/{streamId}/archiver'.sub('{streamId}', stream_id.to_s)
|
192
|
+
operation_signing_strategy = :standard
|
193
|
+
|
194
|
+
# rubocop:disable Style/NegatedIf
|
195
|
+
# Query Params
|
196
|
+
query_params = {}
|
197
|
+
|
198
|
+
# Header Params
|
199
|
+
header_params = {}
|
200
|
+
header_params[:accept] = 'application/json'
|
201
|
+
header_params[:'content-type'] = 'application/json'
|
202
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
203
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
204
|
+
# rubocop:enable Style/NegatedIf
|
205
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
206
|
+
|
207
|
+
post_body = @api_client.object_to_http_body(create_archiver_details)
|
208
|
+
|
209
|
+
# rubocop:disable Metrics/BlockLength
|
210
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#create_archiver') do
|
211
|
+
@api_client.call_api(
|
212
|
+
:POST,
|
213
|
+
path,
|
214
|
+
endpoint,
|
215
|
+
header_params: header_params,
|
216
|
+
query_params: query_params,
|
217
|
+
operation_signing_strategy: operation_signing_strategy,
|
218
|
+
body: post_body,
|
219
|
+
return_type: 'OCI::Streaming::Models::Archiver'
|
220
|
+
)
|
221
|
+
end
|
222
|
+
# rubocop:enable Metrics/BlockLength
|
223
|
+
end
|
224
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
225
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
226
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
227
|
+
|
228
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
229
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
230
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
231
|
+
|
232
|
+
|
169
233
|
# Starts the provisioning of a new stream.
|
170
234
|
# To track the progress of the provisioning, you can periodically call {#get_stream get_stream}.
|
171
235
|
# In the response, the `lifecycleState` parameter of the {Stream} object tells you its current state.
|
@@ -236,6 +300,7 @@ module OCI
|
|
236
300
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
237
301
|
# particular request, please provide the request ID.
|
238
302
|
#
|
303
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
239
304
|
# @return [Response] A Response object with data of type nil
|
240
305
|
def delete_stream(stream_id, opts = {})
|
241
306
|
logger.debug 'Calling operation StreamAdminClient#delete_stream.' if logger
|
@@ -255,6 +320,7 @@ module OCI
|
|
255
320
|
header_params[:accept] = 'application/json'
|
256
321
|
header_params[:'content-type'] = 'application/json'
|
257
322
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
323
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
258
324
|
# rubocop:enable Style/NegatedIf
|
259
325
|
|
260
326
|
post_body = nil
|
@@ -282,6 +348,63 @@ module OCI
|
|
282
348
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
283
349
|
|
284
350
|
|
351
|
+
# Returns the current state of the stream archiver.
|
352
|
+
#
|
353
|
+
# @param [String] stream_id The OCID of the stream.
|
354
|
+
#
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
357
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
358
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
359
|
+
# particular request, please provide the request ID.
|
360
|
+
#
|
361
|
+
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Archiver Archiver}
|
362
|
+
def get_archiver(stream_id, opts = {})
|
363
|
+
logger.debug 'Calling operation StreamAdminClient#get_archiver.' if logger
|
364
|
+
|
365
|
+
raise "Missing the required parameter 'stream_id' when calling get_archiver." if stream_id.nil?
|
366
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
367
|
+
|
368
|
+
path = '/streams/{streamId}/archiver'.sub('{streamId}', stream_id.to_s)
|
369
|
+
operation_signing_strategy = :standard
|
370
|
+
|
371
|
+
# rubocop:disable Style/NegatedIf
|
372
|
+
# Query Params
|
373
|
+
query_params = {}
|
374
|
+
|
375
|
+
# Header Params
|
376
|
+
header_params = {}
|
377
|
+
header_params[:accept] = 'application/json'
|
378
|
+
header_params[:'content-type'] = 'application/json'
|
379
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
380
|
+
# rubocop:enable Style/NegatedIf
|
381
|
+
|
382
|
+
post_body = nil
|
383
|
+
|
384
|
+
# rubocop:disable Metrics/BlockLength
|
385
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#get_archiver') do
|
386
|
+
@api_client.call_api(
|
387
|
+
:GET,
|
388
|
+
path,
|
389
|
+
endpoint,
|
390
|
+
header_params: header_params,
|
391
|
+
query_params: query_params,
|
392
|
+
operation_signing_strategy: operation_signing_strategy,
|
393
|
+
body: post_body,
|
394
|
+
return_type: 'OCI::Streaming::Models::Archiver'
|
395
|
+
)
|
396
|
+
end
|
397
|
+
# rubocop:enable Metrics/BlockLength
|
398
|
+
end
|
399
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
400
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
401
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
402
|
+
|
403
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
404
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
405
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
406
|
+
|
407
|
+
|
285
408
|
# Gets detailed information about a stream, including the number of partitions.
|
286
409
|
# @param [String] stream_id The OCID of the stream to retrieve.
|
287
410
|
# @param [Hash] opts the optional parameters
|
@@ -425,6 +548,185 @@ module OCI
|
|
425
548
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
426
549
|
|
427
550
|
|
551
|
+
# Start the archiver for the specified stream.
|
552
|
+
#
|
553
|
+
# @param [String] stream_id The OCID of the stream.
|
554
|
+
#
|
555
|
+
# @param [Hash] opts the optional parameters
|
556
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
557
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
558
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
559
|
+
# particular request, please provide the request ID.
|
560
|
+
#
|
561
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
562
|
+
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Archiver Archiver}
|
563
|
+
def start_archiver(stream_id, opts = {})
|
564
|
+
logger.debug 'Calling operation StreamAdminClient#start_archiver.' if logger
|
565
|
+
|
566
|
+
raise "Missing the required parameter 'stream_id' when calling start_archiver." if stream_id.nil?
|
567
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
568
|
+
|
569
|
+
path = '/streams/{streamId}/archiver/actions/start'.sub('{streamId}', stream_id.to_s)
|
570
|
+
operation_signing_strategy = :standard
|
571
|
+
|
572
|
+
# rubocop:disable Style/NegatedIf
|
573
|
+
# Query Params
|
574
|
+
query_params = {}
|
575
|
+
|
576
|
+
# Header Params
|
577
|
+
header_params = {}
|
578
|
+
header_params[:accept] = 'application/json'
|
579
|
+
header_params[:'content-type'] = 'application/json'
|
580
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
581
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
582
|
+
# rubocop:enable Style/NegatedIf
|
583
|
+
|
584
|
+
post_body = nil
|
585
|
+
|
586
|
+
# rubocop:disable Metrics/BlockLength
|
587
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#start_archiver') do
|
588
|
+
@api_client.call_api(
|
589
|
+
:POST,
|
590
|
+
path,
|
591
|
+
endpoint,
|
592
|
+
header_params: header_params,
|
593
|
+
query_params: query_params,
|
594
|
+
operation_signing_strategy: operation_signing_strategy,
|
595
|
+
body: post_body,
|
596
|
+
return_type: 'OCI::Streaming::Models::Archiver'
|
597
|
+
)
|
598
|
+
end
|
599
|
+
# rubocop:enable Metrics/BlockLength
|
600
|
+
end
|
601
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
602
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
603
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
604
|
+
|
605
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
606
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
607
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
608
|
+
|
609
|
+
|
610
|
+
# Stop the archiver for the specified stream.
|
611
|
+
#
|
612
|
+
# @param [String] stream_id The OCID of the stream.
|
613
|
+
#
|
614
|
+
# @param [Hash] opts the optional parameters
|
615
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
616
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
617
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
618
|
+
# particular request, please provide the request ID.
|
619
|
+
#
|
620
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
621
|
+
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Archiver Archiver}
|
622
|
+
def stop_archiver(stream_id, opts = {})
|
623
|
+
logger.debug 'Calling operation StreamAdminClient#stop_archiver.' if logger
|
624
|
+
|
625
|
+
raise "Missing the required parameter 'stream_id' when calling stop_archiver." if stream_id.nil?
|
626
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
627
|
+
|
628
|
+
path = '/streams/{streamId}/archiver/actions/stop'.sub('{streamId}', stream_id.to_s)
|
629
|
+
operation_signing_strategy = :standard
|
630
|
+
|
631
|
+
# rubocop:disable Style/NegatedIf
|
632
|
+
# Query Params
|
633
|
+
query_params = {}
|
634
|
+
|
635
|
+
# Header Params
|
636
|
+
header_params = {}
|
637
|
+
header_params[:accept] = 'application/json'
|
638
|
+
header_params[:'content-type'] = 'application/json'
|
639
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
640
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
641
|
+
# rubocop:enable Style/NegatedIf
|
642
|
+
|
643
|
+
post_body = nil
|
644
|
+
|
645
|
+
# rubocop:disable Metrics/BlockLength
|
646
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#stop_archiver') do
|
647
|
+
@api_client.call_api(
|
648
|
+
:POST,
|
649
|
+
path,
|
650
|
+
endpoint,
|
651
|
+
header_params: header_params,
|
652
|
+
query_params: query_params,
|
653
|
+
operation_signing_strategy: operation_signing_strategy,
|
654
|
+
body: post_body,
|
655
|
+
return_type: 'OCI::Streaming::Models::Archiver'
|
656
|
+
)
|
657
|
+
end
|
658
|
+
# rubocop:enable Metrics/BlockLength
|
659
|
+
end
|
660
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
661
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
662
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
663
|
+
|
664
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
665
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
666
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
667
|
+
|
668
|
+
|
669
|
+
# Update the stream archiver parameters.
|
670
|
+
#
|
671
|
+
# @param [String] stream_id The OCID of the stream.
|
672
|
+
#
|
673
|
+
# @param [OCI::Streaming::Models::UpdateArchiverDetails] update_archiver_details The new parameters of the stream archiver.
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
676
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
677
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
678
|
+
# particular request, please provide the request ID.
|
679
|
+
#
|
680
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
681
|
+
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Archiver Archiver}
|
682
|
+
def update_archiver(stream_id, update_archiver_details, opts = {})
|
683
|
+
logger.debug 'Calling operation StreamAdminClient#update_archiver.' if logger
|
684
|
+
|
685
|
+
raise "Missing the required parameter 'stream_id' when calling update_archiver." if stream_id.nil?
|
686
|
+
raise "Missing the required parameter 'update_archiver_details' when calling update_archiver." if update_archiver_details.nil?
|
687
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
688
|
+
|
689
|
+
path = '/streams/{streamId}/archiver'.sub('{streamId}', stream_id.to_s)
|
690
|
+
operation_signing_strategy = :standard
|
691
|
+
|
692
|
+
# rubocop:disable Style/NegatedIf
|
693
|
+
# Query Params
|
694
|
+
query_params = {}
|
695
|
+
|
696
|
+
# Header Params
|
697
|
+
header_params = {}
|
698
|
+
header_params[:accept] = 'application/json'
|
699
|
+
header_params[:'content-type'] = 'application/json'
|
700
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
701
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
702
|
+
# rubocop:enable Style/NegatedIf
|
703
|
+
|
704
|
+
post_body = @api_client.object_to_http_body(update_archiver_details)
|
705
|
+
|
706
|
+
# rubocop:disable Metrics/BlockLength
|
707
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#update_archiver') do
|
708
|
+
@api_client.call_api(
|
709
|
+
:PUT,
|
710
|
+
path,
|
711
|
+
endpoint,
|
712
|
+
header_params: header_params,
|
713
|
+
query_params: query_params,
|
714
|
+
operation_signing_strategy: operation_signing_strategy,
|
715
|
+
body: post_body,
|
716
|
+
return_type: 'OCI::Streaming::Models::Archiver'
|
717
|
+
)
|
718
|
+
end
|
719
|
+
# rubocop:enable Metrics/BlockLength
|
720
|
+
end
|
721
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
722
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
723
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
724
|
+
|
725
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
726
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
727
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
728
|
+
|
729
|
+
|
428
730
|
# Updates the tags applied to the stream.
|
429
731
|
#
|
430
732
|
# @param [String] stream_id The OCID of the stream to update.
|
@@ -435,6 +737,7 @@ module OCI
|
|
435
737
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
436
738
|
# particular request, please provide the request ID.
|
437
739
|
#
|
740
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
438
741
|
# @return [Response] A Response object with data of type {OCI::Streaming::Models::Stream Stream}
|
439
742
|
def update_stream(stream_id, update_stream_details, opts = {})
|
440
743
|
logger.debug 'Calling operation StreamAdminClient#update_stream.' if logger
|
@@ -455,6 +758,7 @@ module OCI
|
|
455
758
|
header_params[:accept] = 'application/json'
|
456
759
|
header_params[:'content-type'] = 'application/json'
|
457
760
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
761
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
458
762
|
# rubocop:enable Style/NegatedIf
|
459
763
|
|
460
764
|
post_body = @api_client.object_to_http_body(update_stream_details)
|
@@ -24,6 +24,47 @@ module OCI
|
|
24
24
|
# rubocop:disable Layout/EmptyLines
|
25
25
|
|
26
26
|
|
27
|
+
# Calls {OCI::Streaming::StreamAdminClient#create_archiver} and then waits for the {OCI::Streaming::Models::Archiver} acted upon
|
28
|
+
# to enter the given state(s).
|
29
|
+
#
|
30
|
+
# @param [String] stream_id The OCID of the stream.
|
31
|
+
#
|
32
|
+
# @param [OCI::Streaming::Models::CreateArchiverDetails] create_archiver_details A stream archiver parameters to create.
|
33
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Streaming::Models::Archiver#lifecycle_state}
|
34
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Streaming::StreamAdminClient#create_archiver}
|
35
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
36
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
37
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
38
|
+
#
|
39
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Streaming::Models::Archiver}
|
40
|
+
def create_archiver_and_wait_for_state(stream_id, create_archiver_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
41
|
+
operation_result = @service_client.create_archiver(stream_id, create_archiver_details, base_operation_opts)
|
42
|
+
|
43
|
+
return operation_result if wait_for_states.empty?
|
44
|
+
|
45
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
46
|
+
wait_for_resource_id = operation_result.data.id
|
47
|
+
|
48
|
+
begin
|
49
|
+
waiter_result = @service_client.get_archiver(wait_for_resource_id).wait_until(
|
50
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
51
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
52
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
53
|
+
)
|
54
|
+
result_to_return = waiter_result
|
55
|
+
|
56
|
+
return result_to_return
|
57
|
+
rescue StandardError
|
58
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
62
|
+
# rubocop:enable Layout/EmptyLines
|
63
|
+
|
64
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
65
|
+
# rubocop:disable Layout/EmptyLines
|
66
|
+
|
67
|
+
|
27
68
|
# Calls {OCI::Streaming::StreamAdminClient#create_stream} and then waits for the {OCI::Streaming::Models::Stream} acted upon
|
28
69
|
# to enter the given state(s).
|
29
70
|
#
|
@@ -103,6 +144,127 @@ module OCI
|
|
103
144
|
# rubocop:disable Layout/EmptyLines
|
104
145
|
|
105
146
|
|
147
|
+
# Calls {OCI::Streaming::StreamAdminClient#start_archiver} and then waits for the {OCI::Streaming::Models::Archiver} acted upon
|
148
|
+
# to enter the given state(s).
|
149
|
+
#
|
150
|
+
# @param [String] stream_id The OCID of the stream.
|
151
|
+
#
|
152
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Streaming::Models::Archiver#lifecycle_state}
|
153
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Streaming::StreamAdminClient#start_archiver}
|
154
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
155
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
156
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
157
|
+
#
|
158
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Streaming::Models::Archiver}
|
159
|
+
def start_archiver_and_wait_for_state(stream_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
160
|
+
operation_result = @service_client.start_archiver(stream_id, base_operation_opts)
|
161
|
+
|
162
|
+
return operation_result if wait_for_states.empty?
|
163
|
+
|
164
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
165
|
+
wait_for_resource_id = operation_result.data.id
|
166
|
+
|
167
|
+
begin
|
168
|
+
waiter_result = @service_client.get_archiver(wait_for_resource_id).wait_until(
|
169
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
170
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
171
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
172
|
+
)
|
173
|
+
result_to_return = waiter_result
|
174
|
+
|
175
|
+
return result_to_return
|
176
|
+
rescue StandardError
|
177
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
178
|
+
end
|
179
|
+
end
|
180
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
181
|
+
# rubocop:enable Layout/EmptyLines
|
182
|
+
|
183
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
184
|
+
# rubocop:disable Layout/EmptyLines
|
185
|
+
|
186
|
+
|
187
|
+
# Calls {OCI::Streaming::StreamAdminClient#stop_archiver} and then waits for the {OCI::Streaming::Models::Archiver} acted upon
|
188
|
+
# to enter the given state(s).
|
189
|
+
#
|
190
|
+
# @param [String] stream_id The OCID of the stream.
|
191
|
+
#
|
192
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Streaming::Models::Archiver#lifecycle_state}
|
193
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Streaming::StreamAdminClient#stop_archiver}
|
194
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
195
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
196
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
197
|
+
#
|
198
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Streaming::Models::Archiver}
|
199
|
+
def stop_archiver_and_wait_for_state(stream_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
200
|
+
operation_result = @service_client.stop_archiver(stream_id, base_operation_opts)
|
201
|
+
|
202
|
+
return operation_result if wait_for_states.empty?
|
203
|
+
|
204
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
205
|
+
wait_for_resource_id = operation_result.data.id
|
206
|
+
|
207
|
+
begin
|
208
|
+
waiter_result = @service_client.get_archiver(wait_for_resource_id).wait_until(
|
209
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
210
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
211
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
212
|
+
)
|
213
|
+
result_to_return = waiter_result
|
214
|
+
|
215
|
+
return result_to_return
|
216
|
+
rescue StandardError
|
217
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
218
|
+
end
|
219
|
+
end
|
220
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
221
|
+
# rubocop:enable Layout/EmptyLines
|
222
|
+
|
223
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
224
|
+
# rubocop:disable Layout/EmptyLines
|
225
|
+
|
226
|
+
|
227
|
+
# Calls {OCI::Streaming::StreamAdminClient#update_archiver} and then waits for the {OCI::Streaming::Models::Archiver} acted upon
|
228
|
+
# to enter the given state(s).
|
229
|
+
#
|
230
|
+
# @param [String] stream_id The OCID of the stream.
|
231
|
+
#
|
232
|
+
# @param [OCI::Streaming::Models::UpdateArchiverDetails] update_archiver_details The new parameters of the stream archiver.
|
233
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Streaming::Models::Archiver#lifecycle_state}
|
234
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Streaming::StreamAdminClient#update_archiver}
|
235
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
236
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
237
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
238
|
+
#
|
239
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Streaming::Models::Archiver}
|
240
|
+
def update_archiver_and_wait_for_state(stream_id, update_archiver_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
241
|
+
operation_result = @service_client.update_archiver(stream_id, update_archiver_details, base_operation_opts)
|
242
|
+
|
243
|
+
return operation_result if wait_for_states.empty?
|
244
|
+
|
245
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
246
|
+
wait_for_resource_id = operation_result.data.id
|
247
|
+
|
248
|
+
begin
|
249
|
+
waiter_result = @service_client.get_archiver(wait_for_resource_id).wait_until(
|
250
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
251
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
252
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
253
|
+
)
|
254
|
+
result_to_return = waiter_result
|
255
|
+
|
256
|
+
return result_to_return
|
257
|
+
rescue StandardError
|
258
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
259
|
+
end
|
260
|
+
end
|
261
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
262
|
+
# rubocop:enable Layout/EmptyLines
|
263
|
+
|
264
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
265
|
+
# rubocop:disable Layout/EmptyLines
|
266
|
+
|
267
|
+
|
106
268
|
# Calls {OCI::Streaming::StreamAdminClient#update_stream} and then waits for the {OCI::Streaming::Models::Stream} acted upon
|
107
269
|
# to enter the given state(s).
|
108
270
|
#
|