lib/oci/key_management/kms_crypto_client.rb
def decrypt(decrypt_data_details, opts = {})
      logger.debug 'Calling operation KmsCryptoClient#decrypt.' if logger

      raise "Missing the required parameter 'decrypt_data_details' when calling decrypt." if decrypt_data_details.nil?

      path = '/20180608/decrypt'
      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[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      # rubocop:enable Style/NegatedIf

      post_body = @api_client.object_to_http_body(decrypt_data_details)

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsCryptoClient#decrypt') 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,
          return_type: 'OCI::KeyManagement::Models::DecryptedData'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Decrypts data using the given [DecryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/DecryptDataDetails) resource.
#
# @param [OCI::KeyManagement::Models::DecryptDataDetails] decrypt_data_details DecryptDataDetails
# @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] :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 {OCI::KeyManagement::Models::DecryptedData DecryptedData}
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/keymanagement/decrypt.rb.html) to see an example of how to use decrypt API.
Decrypts data using the given [DecryptDataDetails] resource.
Decrypts data using the given [ DecryptDataDetails ] resource .
def decrypt(decrypt_data_details, opts = {})
      logger.debug 'Calling operation KmsCryptoClient#decrypt.' if logger
      raise "Missing the required parameter 'decrypt_data_details' when calling decrypt." if decrypt_data_details.nil?
      path = '/20180608/decrypt'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = @api_client.object_to_http_body(decrypt_data_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsCryptoClient#decrypt') 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,
          return_type: 'OCI::KeyManagement::Models::DecryptedData'
        )
      end
    end
def decrypt ( decrypt_data_details , opts = { } ) logger . debug 'Calling operation KmsCryptoClient#decrypt.' if logger raise "Missing the required parameter 'decrypt_data_details' when calling decrypt." if decrypt_data_details . nil? path = '/20180608/decrypt' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = @api_client . object_to_http_body ( decrypt_data_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'KmsCryptoClient#decrypt' ) 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 , return_type : 'OCI::KeyManagement::Models::DecryptedData' ) end end
Decrypts data using the given [DecryptDataDetails](https://docs.cloud.oracle.com/api/#/en/key/latest/datatypes/DecryptDataDetails) resource.
Decrypts data using the given [ DecryptDataDetails ] ( https : // docs . cloud . oracle . com / api / # / en / key / latest / datatypes / DecryptDataDetails ) resource .
# 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 {OCI::KeyManagement::Models::DecryptedData DecryptedData}
A Response object with data of type { OCI :: KeyManagement :: Models :: DecryptedData DecryptedData }
Response
decrypt_data_details
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 decrypt API.
Click [ here ] to see an example of how to use decrypt API .