lib/oci/vault/vaults_client.rb
def cancel_secret_version_deletion(secret_id, secret_version_number, opts = {})
      logger.debug 'Calling operation VaultsClient#cancel_secret_version_deletion.' if logger

      raise "Missing the required parameter 'secret_id' when calling cancel_secret_version_deletion." if secret_id.nil?
      raise "Missing the required parameter 'secret_version_number' when calling cancel_secret_version_deletion." if secret_version_number.nil?
      raise "Parameter value for 'secret_id' must not be blank" if OCI::Internal::Util.blank_string?(secret_id)
      raise "Parameter value for 'secret_version_number' must not be blank" if OCI::Internal::Util.blank_string?(secret_version_number)

      path = '/secrets/{secretId}/version/{secretVersionNumber}/actions/cancelDeletion'.sub('{secretId}', secret_id.to_s).sub('{secretVersionNumber}', secret_version_number.to_s)
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}

      # Header 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]
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VaultsClient#cancel_secret_version_deletion') 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
      # rubocop:enable Metrics/BlockLength
    end
# Cancels the scheduled deletion of a secret version.
# @param [String] secret_id The OCID of the secret.
# @param [Integer] secret_version_number The version number of the secret.
# @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 Unique identifier for the request. If provided, the returned request ID
#   will include this value. Otherwise, a random request ID will be
#   generated by the service.
#
# @return [Response] A Response object with data of type nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/vault/cancel_secret_version_deletion.rb.html) to see an example of how to use cancel_secret_version_deletion API.
Cancels the scheduled deletion of a secret version.
Cancels the scheduled deletion of a secret version .
def cancel_secret_version_deletion(secret_id, secret_version_number, opts = {})
      logger.debug 'Calling operation VaultsClient#cancel_secret_version_deletion.' if logger
      raise "Missing the required parameter 'secret_id' when calling cancel_secret_version_deletion." if secret_id.nil?
      raise "Missing the required parameter 'secret_version_number' when calling cancel_secret_version_deletion." if secret_version_number.nil?
      raise "Parameter value for 'secret_id' must not be blank" if OCI::Internal::Util.blank_string?(secret_id)
      raise "Parameter value for 'secret_version_number' must not be blank" if OCI::Internal::Util.blank_string?(secret_version_number)
      path = '/secrets/{secretId}/version/{secretVersionNumber}/actions/cancelDeletion'.sub('{secretId}', secret_id.to_s).sub('{secretVersionNumber}', secret_version_number.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: 'VaultsClient#cancel_secret_version_deletion') 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 cancel_secret_version_deletion ( secret_id , secret_version_number , opts = { } ) logger . debug 'Calling operation VaultsClient#cancel_secret_version_deletion.' if logger raise "Missing the required parameter 'secret_id' when calling cancel_secret_version_deletion." if secret_id . nil? raise "Missing the required parameter 'secret_version_number' when calling cancel_secret_version_deletion." if secret_version_number . nil? raise "Parameter value for 'secret_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( secret_id ) raise "Parameter value for 'secret_version_number' must not be blank" if OCI :: Internal :: Util . blank_string? ( secret_version_number ) path = '/secrets/{secretId}/version/{secretVersionNumber}/actions/cancelDeletion' . sub ( '{secretId}' , secret_id . to_s ) . sub ( '{secretVersionNumber}' , secret_version_number . 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 : 'VaultsClient#cancel_secret_version_deletion' ) 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
Cancels the scheduled deletion of a secret version.
Cancels the scheduled deletion of a secret version .
# 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
secret_id
secret_version_number
opts
:opc_request_id Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.
: opc_request_id Unique identifier for the request . If provided the returned request ID will include this value . Otherwise a random request ID will be generated by the service .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use cancel_secret_version_deletion API.
Click [ here ] to see an example of how to use cancel_secret_version_deletion API .