lib/oci/oce/oce_instance_client.rb
# Deletes a OceInstance resource by identifier
# @param [String] oce_instance_id unique OceInstance identifier
# @param [OCI::Oce::Models::DeleteOceInstanceDetails] delete_oce_instance_details The information about resource to be deleted.
# @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 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.
#
# @option opts [String] :opc_request_id The client request ID for tracing.
# @return [Response] A Response object with data of type nil
Deletes a OceInstance resource by identifier
Deletes a OceInstance resource by identifier
def delete_oce_instance(oce_instance_id, delete_oce_instance_details, opts = {})
      logger.debug 'Calling operation OceInstanceClient#delete_oce_instance.' if logger
      raise "Missing the required parameter 'oce_instance_id' when calling delete_oce_instance." if oce_instance_id.nil?
      raise "Missing the required parameter 'delete_oce_instance_details' when calling delete_oce_instance." if delete_oce_instance_details.nil?
      raise "Parameter value for 'oce_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(oce_instance_id)
      path = '/oceInstances/{oceInstanceId}'.sub('{oceInstanceId}', oce_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 = @api_client.object_to_http_body(delete_oce_instance_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OceInstanceClient#delete_oce_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_oce_instance ( oce_instance_id , delete_oce_instance_details , opts = { } ) logger . debug 'Calling operation OceInstanceClient#delete_oce_instance.' if logger raise "Missing the required parameter 'oce_instance_id' when calling delete_oce_instance." if oce_instance_id . nil? raise "Missing the required parameter 'delete_oce_instance_details' when calling delete_oce_instance." if delete_oce_instance_details . nil? raise "Parameter value for 'oce_instance_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( oce_instance_id ) path = '/oceInstances/{oceInstanceId}' . sub ( '{oceInstanceId}' , oce_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 = @api_client . object_to_http_body ( delete_oce_instance_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'OceInstanceClient#delete_oce_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
Deletes a OceInstance resource by identifier
Deletes a OceInstance resource by identifier
# 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
oce_instance_id
<not_specific>
delete_oce_instance_details
<not_specific>
opts
:opc_request_id The client request ID for tracing.
: opc_request_id The client request ID for tracing .
<not_specific>
opts the optional parameters
opts the optional parameters