lib/purecloudplatformclientv2/api/fax_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/fax_api.rb in purecloudplatformclientv2-9.0.0

- old
+ new

@@ -41,12 +41,19 @@ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_fax_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.delete_fax_document ..." end + + # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling FaxApi.delete_fax_document" if document_id.nil? + + + + + # resource path local_var_path = "/api/v2/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} @@ -65,11 +72,12 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + + 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, @@ -97,12 +105,19 @@ # @return [Array<(FaxDocument, Fixnum, Hash)>] FaxDocument data, response status code and response headers def get_fax_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.get_fax_document ..." end + + # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling FaxApi.get_fax_document" if document_id.nil? + + + + + # resource path local_var_path = "/api/v2/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} @@ -121,11 +136,12 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + + auth_names = ['PureCloud Auth'] 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, @@ -154,12 +170,19 @@ # @return [Array<(DownloadResponse, Fixnum, Hash)>] DownloadResponse data, response status code and response headers def get_fax_document_content_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.get_fax_document_content ..." end + + # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling FaxApi.get_fax_document_content" if document_id.nil? + + + + + # resource path local_var_path = "/api/v2/fax/documents/{documentId}/content".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} @@ -178,11 +201,12 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + + auth_names = ['PureCloud Auth'] 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, @@ -213,10 +237,23 @@ # @return [Array<(FaxDocumentEntityListing, Fixnum, Hash)>] FaxDocumentEntityListing data, response status code and response headers def get_fax_documents_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.get_fax_documents ..." end + + + + + + + + + + + + + # resource path local_var_path = "/api/v2/fax/documents".sub('{format}','json') # query parameters query_params = {} @@ -237,11 +274,12 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + + auth_names = ['PureCloud Auth'] 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, @@ -268,10 +306,11 @@ # @return [Array<(FaxSummary, Fixnum, Hash)>] FaxSummary data, response status code and response headers def get_fax_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.get_fax_summary ..." end + # resource path local_var_path = "/api/v2/fax/summary".sub('{format}','json') # query parameters query_params = {} @@ -290,11 +329,12 @@ # form parameters form_params = {} # http body (model) post_body = nil - auth_names = ['PureCloud Auth'] + + auth_names = ['PureCloud Auth'] 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, @@ -325,14 +365,27 @@ # @return [Array<(FaxDocument, Fixnum, Hash)>] FaxDocument data, response status code and response headers def put_fax_document_with_http_info(document_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FaxApi.put_fax_document ..." end + + # verify the required parameter 'document_id' is set fail ArgumentError, "Missing the required parameter 'document_id' when calling FaxApi.put_fax_document" if document_id.nil? + + + + + + # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling FaxApi.put_fax_document" if body.nil? + + + + + # resource path local_var_path = "/api/v2/fax/documents/{documentId}".sub('{format}','json').sub('{' + 'documentId' + '}', document_id.to_s) # query parameters query_params = {} @@ -351,9 +404,10 @@ # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) + auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params,