lib/oci/dts/transfer_package_client.rb
# Detaches Devices from a Transfer Package
# @param [String] id ID of the Transfer Job
# @param [String] transfer_package_label Label of the Transfer Package
# @param [OCI::Dts::Models::DetachDevicesDetails] detach_devices_details Labels of Transfer Devices to detach
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @return [Response] A Response object with data of type nil
Detaches Devices from a Transfer Package
Detaches Devices from a Transfer Package
def detach_devices_from_transfer_package(id, transfer_package_label, detach_devices_details, opts = {})
      logger.debug 'Calling operation TransferPackageClient#detach_devices_from_transfer_package.' if logger
      raise "Missing the required parameter 'id' when calling detach_devices_from_transfer_package." if id.nil?
      raise "Missing the required parameter 'transfer_package_label' when calling detach_devices_from_transfer_package." if transfer_package_label.nil?
      raise "Missing the required parameter 'detach_devices_details' when calling detach_devices_from_transfer_package." if detach_devices_details.nil?
      raise "Parameter value for 'id' must not be blank" if OCI::Internal::Util.blank_string?(id)
      raise "Parameter value for 'transfer_package_label' must not be blank" if OCI::Internal::Util.blank_string?(transfer_package_label)
      path = '/transferJobs/{id}/transferPackages/{transferPackageLabel}/actions/detachDevices'.sub('{id}', id.to_s).sub('{transferPackageLabel}', transfer_package_label.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = @api_client.object_to_http_body(detach_devices_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'TransferPackageClient#detach_devices_from_transfer_package') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def detach_devices_from_transfer_package ( id , transfer_package_label , detach_devices_details , opts = { } ) logger . debug 'Calling operation TransferPackageClient#detach_devices_from_transfer_package.' if logger raise "Missing the required parameter 'id' when calling detach_devices_from_transfer_package." if id . nil? raise "Missing the required parameter 'transfer_package_label' when calling detach_devices_from_transfer_package." if transfer_package_label . nil? raise "Missing the required parameter 'detach_devices_details' when calling detach_devices_from_transfer_package." if detach_devices_details . nil? raise "Parameter value for 'id' must not be blank" if OCI :: Internal :: Util . blank_string? ( id ) raise "Parameter value for 'transfer_package_label' must not be blank" if OCI :: Internal :: Util . blank_string? ( transfer_package_label ) path = '/transferJobs/{id}/transferPackages/{transferPackageLabel}/actions/detachDevices' . sub ( '{id}' , id . to_s ) . sub ( '{transferPackageLabel}' , transfer_package_label . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = @api_client . object_to_http_body ( detach_devices_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'TransferPackageClient#detach_devices_from_transfer_package' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Detaches Devices from a Transfer Package
Detaches Devices from a Transfer Package
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type nil
A Response object with data of type nil
Response
id
<not_specific>
transfer_package_label
<not_specific>
detach_devices_details
<not_specific>
opts
:retry_config The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
: retry_config The retry configuration to apply to this operation . If no key is provided then the service - level retry configuration defined by { #retry_config } will be used . If an explicit ` nil ` value is provided then the operation will not retry
<not_specific>
opts the optional parameters
opts the optional parameters