lib/oci/data_safe/data_safe_client.rb
# Updates one or more attributes of the specified Data Safe private endpoint.
# @param [String] data_safe_private_endpoint_id The OCID of the private endpoint.
# @param [OCI::DataSafe::Models::UpdateDataSafePrivateEndpointDetails] update_data_safe_private_endpoint_details The details used to update a Data Safe private endpoint.
# @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.
# @return [Response] A Response object with data of type nil
Updates one or more attributes of the specified Data Safe private endpoint.
Updates one or more attributes of the specified Data Safe private endpoint .
def update_data_safe_private_endpoint(data_safe_private_endpoint_id, update_data_safe_private_endpoint_details, opts = {})
      logger.debug 'Calling operation DataSafeClient#update_data_safe_private_endpoint.' if logger
      raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling update_data_safe_private_endpoint." if data_safe_private_endpoint_id.nil?
      raise "Missing the required parameter 'update_data_safe_private_endpoint_details' when calling update_data_safe_private_endpoint." if update_data_safe_private_endpoint_details.nil?
      raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(data_safe_private_endpoint_id)
      path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}'.sub('{dataSafePrivateEndpointId}', data_safe_private_endpoint_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(update_data_safe_private_endpoint_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DataSafeClient#update_data_safe_private_endpoint') do
        @api_client.call_api(
          :PUT,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def update_data_safe_private_endpoint ( data_safe_private_endpoint_id , update_data_safe_private_endpoint_details , opts = { } ) logger . debug 'Calling operation DataSafeClient#update_data_safe_private_endpoint.' if logger raise "Missing the required parameter 'data_safe_private_endpoint_id' when calling update_data_safe_private_endpoint." if data_safe_private_endpoint_id . nil? raise "Missing the required parameter 'update_data_safe_private_endpoint_details' when calling update_data_safe_private_endpoint." if update_data_safe_private_endpoint_details . nil? raise "Parameter value for 'data_safe_private_endpoint_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( data_safe_private_endpoint_id ) path = '/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}' . sub ( '{dataSafePrivateEndpointId}' , data_safe_private_endpoint_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 ( update_data_safe_private_endpoint_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'DataSafeClient#update_data_safe_private_endpoint' ) do @api_client . call_api ( :PUT , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Updates one or more attributes of the specified Data Safe private endpoint.
Updates one or more attributes of the specified Data Safe private endpoint .
# 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
data_safe_private_endpoint_id
update_data_safe_private_endpoint_details
opts
:opc_request_id Unique identifier for the request.
: opc_request_id Unique identifier for the request .
opts the optional parameters
opts the optional parameters