lib/datadog_api_client/v2/api/auth_n_mappings_api.rb
# Delete an AuthN Mapping
# Delete an AuthN Mapping specified by AuthN Mapping UUID.
# @param authn_mapping_id [String] The UUID of the AuthN Mapping.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Delete an AuthN Mapping
Delete an AuthN Mapping specified by AuthN Mapping UUID.
Delete an AuthN Mapping Delete an AuthN Mapping specified by AuthN Mapping UUID .
def delete_auth_n_mapping_with_http_info(authn_mapping_id, opts = {})
      if @api_client.config.unstable_operations.has_key?(:delete_auth_n_mapping)
        unstable_enabled = @api_client.config.unstable_operations[:delete_auth_n_mapping]
        if unstable_enabled
          @api_client.config.logger.warn format("Using unstable operation '%s'", "delete_auth_n_mapping")
        else
          raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_auth_n_mapping"))
        end
      end
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AuthNMappingsAPI.delete_auth_n_mapping ...'
      end
      if @api_client.config.client_side_validation && authn_mapping_id.nil?
        fail ArgumentError, "Missing the required parameter 'authn_mapping_id' when calling AuthNMappingsAPI.delete_auth_n_mapping"
      end
      local_var_path = '/api/v2/authn_mappings/{authn_mapping_id}'.sub('{authn_mapping_id}', CGI.escape(authn_mapping_id.to_s).gsub('%2F', '/'))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['*/*'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
      new_options = opts.merge(
        :operation => :delete_auth_n_mapping,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AuthNMappingsAPI#delete_auth_n_mapping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_auth_n_mapping_with_http_info ( authn_mapping_id , opts = { } ) if @api_client . config . unstable_operations . has_key? ( :delete_auth_n_mapping ) unstable_enabled = @api_client . config . unstable_operations [ :delete_auth_n_mapping ] if unstable_enabled @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "delete_auth_n_mapping" ) else raise APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "delete_auth_n_mapping" ) ) end end if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AuthNMappingsAPI.delete_auth_n_mapping ...' end if @api_client . config . client_side_validation && authn_mapping_id . nil? fail ArgumentError , "Missing the required parameter 'authn_mapping_id' when calling AuthNMappingsAPI.delete_auth_n_mapping" end local_var_path = '/api/v2/authn_mappings/{authn_mapping_id}' . sub ( '{authn_mapping_id}' , CGI . escape ( authn_mapping_id . to_s ) . gsub ( '%2F' , '/' ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ] new_options = opts . merge ( :operation => :delete_auth_n_mapping , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AuthNMappingsAPI#delete_auth_n_mapping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete an AuthN Mapping
Delete an AuthN Mapping specified by AuthN Mapping UUID.
Delete an AuthN Mapping Delete an AuthN Mapping specified by AuthN Mapping UUID .
# verify the required parameter 'authn_mapping_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
authn_mapping_id
The UUID of the AuthN Mapping.
The UUID of the AuthN Mapping .
opts
the optional parameters
the optional parameters