lib/purecloud/api/response_management_api.rb in purecloud-0.35.1 vs lib/purecloud/api/response_management_api.rb in purecloud-0.36.1
- old
+ new
@@ -1,44 +1,59 @@
+=begin
+PureCloud API
+
+PureCloud API
+
+OpenAPI spec version: v1
+Contact: chuck.pulfer@inin.com
+Generated by: https://github.com/swagger-api/swagger-codegen.git
+
+License: ININ
+http://www.inin.com
+
+Terms of Service: http://www.inin.com
+
+=end
+
require "uri"
module PureCloud
class ResponseManagementApi
attr_accessor :api_client
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
- # Gets a list of existing response libraries.
- #
+ # Delete an existing response library.
+ # This will remove any responses associated with the library.
+ # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Integer] :page_number Page number
- # @option opts [Integer] :page_size Page size
- # @return [LibraryEntityListing]
- def get_libraries(opts = {})
- data, status_code, headers = get_libraries_with_http_info(opts)
- return data
+ # @return [nil]
+ def delete_libraries_library_id(library_id, opts = {})
+ delete_libraries_library_id_with_http_info(library_id, opts)
+ return nil
end
- # Gets a list of existing response libraries.
- #
+ # Delete an existing response library.
+ # This will remove any responses associated with the library.
+ # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Integer] :page_number Page number
- # @option opts [Integer] :page_size Page size
- # @return [Array<(LibraryEntityListing, Fixnum, Hash)>] LibraryEntityListing data, response status code and response headers
- def get_libraries_with_http_info(opts = {})
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
+ def delete_libraries_library_id_with_http_info(library_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_libraries ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#delete_libraries_library_id ..."
end
+ # verify the required parameter 'library_id' is set
+ fail "Missing the required parameter 'library_id' when calling delete_libraries_library_id" if library_id.nil?
+
# resource path
- path = "/api/v2/responsemanagement/libraries".sub('{format}','json')
+ local_var_path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
# query parameters
query_params = {}
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
@@ -53,50 +68,111 @@
form_params = {}
# http body (model)
post_body = nil
+ auth_names = ['PureCloud Auth']
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ResponseManagementApi#delete_libraries_library_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ # Delete an existing response.
+ # This will remove the response from any libraries associated with it.
+ # @param response_id Response ID
+ # @param [Hash] opts the optional parameters
+ # @return [nil]
+ def delete_responses_response_id(response_id, opts = {})
+ delete_responses_response_id_with_http_info(response_id, opts)
+ return nil
+ end
+
+ # Delete an existing response.
+ # This will remove the response from any libraries associated with it.
+ # @param response_id Response ID
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
+ def delete_responses_response_id_with_http_info(response_id, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#delete_responses_response_id ..."
+ end
+
+ # verify the required parameter 'response_id' is set
+ fail "Missing the required parameter 'response_id' when calling delete_responses_response_id" if response_id.nil?
+
+ # resource path
+ local_var_path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
+
+ # query parameters
+ query_params = {}
+
+ # header parameters
+ header_params = {}
+
+ # HTTP header 'Accept' (if needed)
+ _header_accept = ['application/json']
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
+
+ # HTTP header 'Content-Type'
+ _header_content_type = ['application/json']
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
+
+ # form parameters
+ form_params = {}
+
+ # http body (model)
+ post_body = nil
+
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:GET, path,
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
- :auth_names => auth_names,
- :return_type => 'LibraryEntityListing')
+ :auth_names => auth_names)
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#get_libraries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#delete_responses_response_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Create a response library.
+ # Gets a list of existing response libraries.
#
# @param [Hash] opts the optional parameters
- # @option opts [Library] :body Library
- # @return [Library]
- def post_libraries(opts = {})
- data, status_code, headers = post_libraries_with_http_info(opts)
+ # @option opts [Integer] :page_number Page number (default to 1)
+ # @option opts [Integer] :page_size Page size (default to 25)
+ # @return [LibraryEntityListing]
+ def get_libraries(opts = {})
+ data, status_code, headers = get_libraries_with_http_info(opts)
return data
end
- # Create a response library.
+ # Gets a list of existing response libraries.
#
# @param [Hash] opts the optional parameters
- # @option opts [Library] :body Library
- # @return [Array<(Library, Fixnum, Hash)>] Library data, response status code and response headers
- def post_libraries_with_http_info(opts = {})
+ # @option opts [Integer] :page_number Page number
+ # @option opts [Integer] :page_size Page size
+ # @return [Array<(LibraryEntityListing, Fixnum, Hash)>] LibraryEntityListing data, response status code and response headers
+ def get_libraries_with_http_info(opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#post_libraries ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_libraries ..."
end
# resource path
- path = "/api/v2/responsemanagement/libraries".sub('{format}','json')
+ local_var_path = "/api/v2/responsemanagement/libraries".sub('{format}','json')
# query parameters
query_params = {}
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
@@ -109,23 +185,22 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ post_body = nil
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:POST, path,
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'Library')
+ :return_type => 'LibraryEntityListing')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#post_libraries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#get_libraries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Get details about an existing response library.
@@ -150,11 +225,11 @@
# verify the required parameter 'library_id' is set
fail "Missing the required parameter 'library_id' when calling get_libraries_library_id" if library_id.nil?
# resource path
- path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
+ local_var_path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -172,13 +247,12 @@
form_params = {}
# http body (model)
post_body = nil
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:GET, path,
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -187,40 +261,45 @@
@api_client.config.logger.debug "API called: ResponseManagementApi#get_libraries_library_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Update an existing response library.
- # Fields that can be updated: name. The most recent version is required for updates.
+ # Gets a list of existing responses.
+ #
# @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Library] :body Library
- # @return [Library]
- def put_libraries_library_id(library_id, opts = {})
- data, status_code, headers = put_libraries_library_id_with_http_info(library_id, opts)
+ # @option opts [Integer] :page_number Page number (default to 1)
+ # @option opts [Integer] :page_size Page size (default to 25)
+ # @return [ResponseEntityListing]
+ def get_responses(library_id, opts = {})
+ data, status_code, headers = get_responses_with_http_info(library_id, opts)
return data
end
- # Update an existing response library.
- # Fields that can be updated: name. The most recent version is required for updates.
+ # Gets a list of existing responses.
+ #
# @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Library] :body Library
- # @return [Array<(Library, Fixnum, Hash)>] Library data, response status code and response headers
- def put_libraries_library_id_with_http_info(library_id, opts = {})
+ # @option opts [Integer] :page_number Page number
+ # @option opts [Integer] :page_size Page size
+ # @return [Array<(ResponseEntityListing, Fixnum, Hash)>] ResponseEntityListing data, response status code and response headers
+ def get_responses_with_http_info(library_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#put_libraries_library_id ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_responses ..."
end
# verify the required parameter 'library_id' is set
- fail "Missing the required parameter 'library_id' when calling put_libraries_library_id" if library_id.nil?
+ fail "Missing the required parameter 'library_id' when calling get_responses" if library_id.nil?
# resource path
- path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
+ local_var_path = "/api/v2/responsemanagement/responses".sub('{format}','json')
# query parameters
query_params = {}
+ query_params[:'libraryId'] = library_id
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
@@ -233,52 +312,51 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(opts[:'body'])
+ post_body = nil
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:PUT, path,
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'Library')
+ :return_type => 'ResponseEntityListing')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#put_libraries_library_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#get_responses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Delete an existing response library.
- # This will remove any responses associated with the library.
- # @param library_id Library ID
+ # Get details about an existing response.
+ #
+ # @param response_id Response ID
# @param [Hash] opts the optional parameters
- # @return [nil]
- def delete_libraries_library_id(library_id, opts = {})
- delete_libraries_library_id_with_http_info(library_id, opts)
- return nil
+ # @return [Response]
+ def get_responses_response_id(response_id, opts = {})
+ data, status_code, headers = get_responses_response_id_with_http_info(response_id, opts)
+ return data
end
- # Delete an existing response library.
- # This will remove any responses associated with the library.
- # @param library_id Library ID
+ # Get details about an existing response.
+ #
+ # @param response_id Response ID
# @param [Hash] opts the optional parameters
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
- def delete_libraries_library_id_with_http_info(library_id, opts = {})
+ # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
+ def get_responses_response_id_with_http_info(response_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#delete_libraries_library_id ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_responses_response_id ..."
end
- # verify the required parameter 'library_id' is set
- fail "Missing the required parameter 'library_id' when calling delete_libraries_library_id" if library_id.nil?
+ # verify the required parameter 'response_id' is set
+ fail "Missing the required parameter 'response_id' when calling get_responses_response_id" if response_id.nil?
# resource path
- path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
+ local_var_path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -296,59 +374,49 @@
form_params = {}
# http body (model)
post_body = nil
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:DELETE, path,
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
- :auth_names => auth_names)
+ :auth_names => auth_names,
+ :return_type => 'Response')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#delete_libraries_library_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#get_responses_response_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Gets a list of existing responses.
+ # Create a response library.
#
- # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Integer] :page_number Page number
- # @option opts [Integer] :page_size Page size
- # @return [ResponseEntityListing]
- def get_responses(library_id, opts = {})
- data, status_code, headers = get_responses_with_http_info(library_id, opts)
+ # @option opts [Library] :body Library
+ # @return [Library]
+ def post_libraries(opts = {})
+ data, status_code, headers = post_libraries_with_http_info(opts)
return data
end
- # Gets a list of existing responses.
+ # Create a response library.
#
- # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @option opts [Integer] :page_number Page number
- # @option opts [Integer] :page_size Page size
- # @return [Array<(ResponseEntityListing, Fixnum, Hash)>] ResponseEntityListing data, response status code and response headers
- def get_responses_with_http_info(library_id, opts = {})
+ # @option opts [Library] :body Library
+ # @return [Array<(Library, Fixnum, Hash)>] Library data, response status code and response headers
+ def post_libraries_with_http_info(opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_responses ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#post_libraries ..."
end
- # verify the required parameter 'library_id' is set
- fail "Missing the required parameter 'library_id' when calling get_responses" if library_id.nil?
-
# resource path
- path = "/api/v2/responsemanagement/responses".sub('{format}','json')
+ local_var_path = "/api/v2/responsemanagement/libraries".sub('{format}','json')
# query parameters
query_params = {}
- query_params[:'libraryId'] = library_id
- query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
- query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
@@ -361,23 +429,22 @@
# form parameters
form_params = {}
# http body (model)
- post_body = nil
+ post_body = @api_client.object_to_http_body(opts[:'body'])
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:GET, path,
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'ResponseEntityListing')
+ :return_type => 'Library')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#get_responses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#post_libraries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Create a response.
@@ -399,11 +466,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ResponseManagementApi#post_responses ..."
end
# resource path
- path = "/api/v2/responsemanagement/responses".sub('{format}','json')
+ local_var_path = "/api/v2/responsemanagement/responses".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -421,13 +488,12 @@
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:POST, path,
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -457,11 +523,11 @@
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ResponseManagementApi#post_responses_query ..."
end
# resource path
- path = "/api/v2/responsemanagement/responses/query".sub('{format}','json')
+ local_var_path = "/api/v2/responsemanagement/responses/query".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
@@ -479,13 +545,12 @@
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:POST, path,
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -494,35 +559,37 @@
@api_client.config.logger.debug "API called: ResponseManagementApi#post_responses_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Get details about an existing response.
- #
- # @param response_id Response ID
+ # Update an existing response library.
+ # Fields that can be updated: name. The most recent version is required for updates.
+ # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @return [Response]
- def get_responses_response_id(response_id, opts = {})
- data, status_code, headers = get_responses_response_id_with_http_info(response_id, opts)
+ # @option opts [Library] :body Library
+ # @return [Library]
+ def put_libraries_library_id(library_id, opts = {})
+ data, status_code, headers = put_libraries_library_id_with_http_info(library_id, opts)
return data
end
- # Get details about an existing response.
- #
- # @param response_id Response ID
+ # Update an existing response library.
+ # Fields that can be updated: name. The most recent version is required for updates.
+ # @param library_id Library ID
# @param [Hash] opts the optional parameters
- # @return [Array<(Response, Fixnum, Hash)>] Response data, response status code and response headers
- def get_responses_response_id_with_http_info(response_id, opts = {})
+ # @option opts [Library] :body Library
+ # @return [Array<(Library, Fixnum, Hash)>] Library data, response status code and response headers
+ def put_libraries_library_id_with_http_info(library_id, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#get_responses_response_id ..."
+ @api_client.config.logger.debug "Calling API: ResponseManagementApi#put_libraries_library_id ..."
end
- # verify the required parameter 'response_id' is set
- fail "Missing the required parameter 'response_id' when calling get_responses_response_id" if response_id.nil?
+ # verify the required parameter 'library_id' is set
+ fail "Missing the required parameter 'library_id' when calling put_libraries_library_id" if library_id.nil?
# resource path
- path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
+ local_var_path = "/api/v2/responsemanagement/libraries/{libraryId}".sub('{format}','json').sub('{' + 'libraryId' + '}', library_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -538,23 +605,22 @@
# form parameters
form_params = {}
# http body (model)
- post_body = nil
+ post_body = @api_client.object_to_http_body(opts[:'body'])
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:GET, path,
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'Response')
+ :return_type => 'Library')
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#get_responses_response_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: ResponseManagementApi#put_libraries_library_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Update an existing response.
@@ -581,11 +647,11 @@
# verify the required parameter 'response_id' is set
fail "Missing the required parameter 'response_id' when calling put_responses_response_id" if response_id.nil?
# resource path
- path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
+ local_var_path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
# query parameters
query_params = {}
# header parameters
@@ -603,13 +669,12 @@
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
-
auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:PUT, path,
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -617,71 +682,7 @@
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ResponseManagementApi#put_responses_response_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
-
- # Delete an existing response.
- # This will remove the response from any libraries associated with it.
- # @param response_id Response ID
- # @param [Hash] opts the optional parameters
- # @return [nil]
- def delete_responses_response_id(response_id, opts = {})
- delete_responses_response_id_with_http_info(response_id, opts)
- return nil
- end
-
- # Delete an existing response.
- # This will remove the response from any libraries associated with it.
- # @param response_id Response ID
- # @param [Hash] opts the optional parameters
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
- def delete_responses_response_id_with_http_info(response_id, opts = {})
- if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: ResponseManagementApi#delete_responses_response_id ..."
- end
-
- # verify the required parameter 'response_id' is set
- fail "Missing the required parameter 'response_id' when calling delete_responses_response_id" if response_id.nil?
-
- # resource path
- path = "/api/v2/responsemanagement/responses/{responseId}".sub('{format}','json').sub('{' + 'responseId' + '}', response_id.to_s)
-
- # query parameters
- query_params = {}
-
- # header parameters
- header_params = {}
-
- # HTTP header 'Accept' (if needed)
- _header_accept = ['application/json']
- _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
-
- # HTTP header 'Content-Type'
- _header_content_type = ['application/json']
- header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
-
- # form parameters
- form_params = {}
-
- # http body (model)
- post_body = nil
-
-
- auth_names = ['PureCloud Auth']
- data, status_code, headers = @api_client.call_api(:DELETE, path,
- :header_params => header_params,
- :query_params => query_params,
- :form_params => form_params,
- :body => post_body,
- :auth_names => auth_names)
- if @api_client.config.debugging
- @api_client.config.logger.debug "API called: ResponseManagementApi#delete_responses_response_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
- end
- return data, status_code, headers
- end
end
end
-
-
-
-