lib/oci/oda/oda_client.rb
# Starts an asynchronous job to delete the specified Digital Assistant instance.
# To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
# @param [String] oda_instance_id Unique Digital Assistant instance identifier.
# @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
# @option opts [String] :if_match For optimistic concurrency control in a PUT or DELETE call for
#   a Digital Assistant instance, set the `if-match` query parameter
#   to the value of the `ETAG` header from a previous GET or POST
#   response for that instance. The service updates or deletes the
#   instance only if the etag that you provide matches the instance's
#   current etag value.
#
# @option opts [String] :opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
# @return [Response] A Response object with data of type nil
Starts an asynchronous job to delete the specified Digital Assistant instance.
To monitor the status of the job, take the `opc-work-request-id` response header value and use it to call `GET /workRequests/{workRequestID}`.
Starts an asynchronous job to delete the specified Digital Assistant instance . To monitor the status of the job take the ` opc - work - request - id ` response header value and use it to call ` GET / workRequests / { workRequestID } ` .
def delete_oda_instance(oda_instance_id, opts = {})
      logger.debug 'Calling operation OdaClient#delete_oda_instance.' if logger
      raise "Missing the required parameter 'oda_instance_id' when calling delete_oda_instance." if oda_instance_id.nil?
      raise "Parameter value for 'oda_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oda_instance_id)
      path = '/odaInstances/{odaInstanceId}'.sub('{odaInstanceId}', oda_instance_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OdaClient#delete_oda_instance') do
        @api_client.call_api(
          :DELETE,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def delete_oda_instance ( oda_instance_id , opts = { } ) logger . debug 'Calling operation OdaClient#delete_oda_instance.' if logger raise "Missing the required parameter 'oda_instance_id' when calling delete_oda_instance." if oda_instance_id . nil? raise "Parameter value for 'oda_instance_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( oda_instance_id ) path = '/odaInstances/{odaInstanceId}' . sub ( '{odaInstanceId}' , oda_instance_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'OdaClient#delete_oda_instance' ) do @api_client . call_api ( :DELETE , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Starts an asynchronous job to delete the specified Digital Assistant instance.
Starts an asynchronous job to delete the specified Digital Assistant instance .
# 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
oda_instance_id
<not_specific>
opts
:opc_request_id The client request ID for tracing. This value is included in the opc-request-id response header.
: opc_request_id The client request ID for tracing . This value is included in the opc - request - id response header .
<not_specific>
opts the optional parameters
opts the optional parameters