lib/purecloud/api/routing_api.rb in purecloud-0.18.0 vs lib/purecloud/api/routing_api.rb in purecloud-0.25.0

- old
+ new

@@ -67,23 +67,23 @@ # Create a domain # # @param [Hash] opts the optional parameters # @option opts [InboundDomain] :body Domain # @return [InboundDomain] - def create_email_domains(opts = {}) - data, status_code, headers = create_email_domains_with_http_info(opts) + def post_email_domains(opts = {}) + data, status_code, headers = post_email_domains_with_http_info(opts) return data end # Create a domain # # @param [Hash] opts the optional parameters # @option opts [InboundDomain] :body Domain # @return [Array<(InboundDomain, Fixnum, Hash)>] InboundDomain data, response status code and response headers - def create_email_domains_with_http_info(opts = {}) + def post_email_domains_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_email_domains ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_email_domains ..." end # resource path path = "/api/v1/routing/email/domains".sub('{format}','json') @@ -115,37 +115,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InboundDomain') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_email_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_email_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get routes # # @param domain email domain # @param [Hash] opts the optional parameters # @return [InboundRouteEntityListing] - def get_email_domain_routes(domain, opts = {}) - data, status_code, headers = get_email_domain_routes_with_http_info(domain, opts) + def get_email_domains_domain_routes(domain, opts = {}) + data, status_code, headers = get_email_domains_domain_routes_with_http_info(domain, opts) return data end # Get routes # # @param domain email domain # @param [Hash] opts the optional parameters # @return [Array<(InboundRouteEntityListing, Fixnum, Hash)>] InboundRouteEntityListing data, response status code and response headers - def get_email_domain_routes_with_http_info(domain, opts = {}) + def get_email_domains_domain_routes_with_http_info(domain, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_email_domain_routes ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_email_domains_domain_routes ..." end # verify the required parameter 'domain' is set - fail "Missing the required parameter 'domain' when calling get_email_domain_routes" if domain.nil? + fail "Missing the required parameter 'domain' when calling get_email_domains_domain_routes" if domain.nil? # resource path path = "/api/v1/routing/email/domains/{domain}/routes".sub('{format}','json').sub('{' + 'domain' + '}', domain.to_s) # query parameters @@ -176,39 +176,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InboundRouteEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_email_domain_routes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_email_domains_domain_routes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a route # # @param domain email domain # @param [Hash] opts the optional parameters # @option opts [InboundRoute] :body Route # @return [InboundRoute] - def create_email_domain_routes(domain, opts = {}) - data, status_code, headers = create_email_domain_routes_with_http_info(domain, opts) + def post_email_domains_domain_routes(domain, opts = {}) + data, status_code, headers = post_email_domains_domain_routes_with_http_info(domain, opts) return data end # Create a route # # @param domain email domain # @param [Hash] opts the optional parameters # @option opts [InboundRoute] :body Route # @return [Array<(InboundRoute, Fixnum, Hash)>] InboundRoute data, response status code and response headers - def create_email_domain_routes_with_http_info(domain, opts = {}) + def post_email_domains_domain_routes_with_http_info(domain, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_email_domain_routes ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_email_domains_domain_routes ..." end # verify the required parameter 'domain' is set - fail "Missing the required parameter 'domain' when calling create_email_domain_routes" if domain.nil? + fail "Missing the required parameter 'domain' when calling post_email_domains_domain_routes" if domain.nil? # resource path path = "/api/v1/routing/email/domains/{domain}/routes".sub('{format}','json').sub('{' + 'domain' + '}', domain.to_s) # query parameters @@ -239,42 +239,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InboundRoute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_email_domain_routes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_email_domains_domain_routes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a route # # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @return [InboundRoute] - def get_email_domain_routes_by_id(domain, id, opts = {}) - data, status_code, headers = get_email_domain_routes_by_id_with_http_info(domain, id, opts) + def get_email_domains_domain_routes_id(domain, id, opts = {}) + data, status_code, headers = get_email_domains_domain_routes_id_with_http_info(domain, id, opts) return data end # Get a route # # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @return [Array<(InboundRoute, Fixnum, Hash)>] InboundRoute data, response status code and response headers - def get_email_domain_routes_by_id_with_http_info(domain, id, opts = {}) + def get_email_domains_domain_routes_id_with_http_info(domain, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_email_domain_routes_by_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_email_domains_domain_routes_id ..." end # verify the required parameter 'domain' is set - fail "Missing the required parameter 'domain' when calling get_email_domain_routes_by_id" if domain.nil? + fail "Missing the required parameter 'domain' when calling get_email_domains_domain_routes_id" if domain.nil? # verify the required parameter 'id' is set - fail "Missing the required parameter 'id' when calling get_email_domain_routes_by_id" if id.nil? + fail "Missing the required parameter 'id' when calling get_email_domains_domain_routes_id" if id.nil? # resource path path = "/api/v1/routing/email/domains/{domain}/routes/{id}".sub('{format}','json').sub('{' + 'domain' + '}', domain.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters @@ -305,11 +305,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InboundRoute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_email_domain_routes_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_email_domains_domain_routes_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a route @@ -317,32 +317,32 @@ # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @option opts [InboundRoute] :body Route # @return [InboundRoute] - def update_email_domain_routes_by_id(domain, id, opts = {}) - data, status_code, headers = update_email_domain_routes_by_id_with_http_info(domain, id, opts) + def put_email_domains_domain_routes_id(domain, id, opts = {}) + data, status_code, headers = put_email_domains_domain_routes_id_with_http_info(domain, id, opts) return data end # Update a route # # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @option opts [InboundRoute] :body Route # @return [Array<(InboundRoute, Fixnum, Hash)>] InboundRoute data, response status code and response headers - def update_email_domain_routes_by_id_with_http_info(domain, id, opts = {}) + def put_email_domains_domain_routes_id_with_http_info(domain, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#update_email_domain_routes_by_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_email_domains_domain_routes_id ..." end # verify the required parameter 'domain' is set - fail "Missing the required parameter 'domain' when calling update_email_domain_routes_by_id" if domain.nil? + fail "Missing the required parameter 'domain' when calling put_email_domains_domain_routes_id" if domain.nil? # verify the required parameter 'id' is set - fail "Missing the required parameter 'id' when calling update_email_domain_routes_by_id" if id.nil? + fail "Missing the required parameter 'id' when calling put_email_domains_domain_routes_id" if id.nil? # resource path path = "/api/v1/routing/email/domains/{domain}/routes/{id}".sub('{format}','json').sub('{' + 'domain' + '}', domain.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters @@ -373,42 +373,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'InboundRoute') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#update_email_domain_routes_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_email_domains_domain_routes_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a route # # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @return [String] - def delete_email_domain_routes_by_id(domain, id, opts = {}) - data, status_code, headers = delete_email_domain_routes_by_id_with_http_info(domain, id, opts) + def delete_email_domains_domain_routes_id(domain, id, opts = {}) + data, status_code, headers = delete_email_domains_domain_routes_id_with_http_info(domain, id, opts) return data end # Delete a route # # @param domain email domain # @param id route ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers - def delete_email_domain_routes_by_id_with_http_info(domain, id, opts = {}) + def delete_email_domains_domain_routes_id_with_http_info(domain, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#delete_email_domain_routes_by_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#delete_email_domains_domain_routes_id ..." end # verify the required parameter 'domain' is set - fail "Missing the required parameter 'domain' when calling delete_email_domain_routes_by_id" if domain.nil? + fail "Missing the required parameter 'domain' when calling delete_email_domains_domain_routes_id" if domain.nil? # verify the required parameter 'id' is set - fail "Missing the required parameter 'id' when calling delete_email_domain_routes_by_id" if id.nil? + fail "Missing the required parameter 'id' when calling delete_email_domains_domain_routes_id" if id.nil? # resource path path = "/api/v1/routing/email/domains/{domain}/routes/{id}".sub('{format}','json').sub('{' + 'domain' + '}', domain.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters @@ -439,11 +439,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#delete_email_domain_routes_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#delete_email_domains_domain_routes_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a domain @@ -563,43 +563,38 @@ return data, status_code, headers end # Get list of queues. # - # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Page size # @option opts [Integer] :page_number Page number # @option opts [String] :sort_by Sort by # @option opts [String] :name Name # @option opts [BOOLEAN] :active Active # @return [QueueEntityListing] - def get_queues(queue_id, opts = {}) - data, status_code, headers = get_queues_with_http_info(queue_id, opts) + def get_queues(opts = {}) + data, status_code, headers = get_queues_with_http_info(opts) return data end # Get list of queues. # - # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Page size # @option opts [Integer] :page_number Page number # @option opts [String] :sort_by Sort by # @option opts [String] :name Name # @option opts [BOOLEAN] :active Active # @return [Array<(QueueEntityListing, Fixnum, Hash)>] QueueEntityListing data, response status code and response headers - def get_queues_with_http_info(queue_id, opts = {}) + def get_queues_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#get_queues ..." end - # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling get_queues" if queue_id.nil? - # resource path - path = "/api/v1/routing/queues".sub('{format}','json').sub('{' + 'QueueId' + '}', queue_id.to_s) + path = "/api/v1/routing/queues".sub('{format}','json') # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] @@ -639,35 +634,30 @@ return data, status_code, headers end # Create queue # - # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Queue] :body Queue # @return [Queue] - def create_queues(queue_id, opts = {}) - data, status_code, headers = create_queues_with_http_info(queue_id, opts) + def post_queues(opts = {}) + data, status_code, headers = post_queues_with_http_info(opts) return data end # Create queue # - # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Queue] :body Queue # @return [Array<(Queue, Fixnum, Hash)>] Queue data, response status code and response headers - def create_queues_with_http_info(queue_id, opts = {}) + def post_queues_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_queues ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_queues ..." end - # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling create_queues" if queue_id.nil? - # resource path - path = "/api/v1/routing/queues".sub('{format}','json').sub('{' + 'QueueId' + '}', queue_id.to_s) + path = "/api/v1/routing/queues".sub('{format}','json') # query parameters query_params = {} # header parameters @@ -695,37 +685,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Queue') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get details about this queue. # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @return [Queue] - def get_queue(queue_id, opts = {}) - data, status_code, headers = get_queue_with_http_info(queue_id, opts) + def get_queues_queue_id(queue_id, opts = {}) + data, status_code, headers = get_queues_queue_id_with_http_info(queue_id, opts) return data end # Get details about this queue. # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @return [Array<(Queue, Fixnum, Hash)>] Queue data, response status code and response headers - def get_queue_with_http_info(queue_id, opts = {}) + def get_queues_queue_id_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_queue ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_queues_queue_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling get_queue" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling get_queues_queue_id" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -756,39 +746,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Queue') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_queues_queue_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Queue] :body Queue # @return [Queue] - def update_queue(queue_id, opts = {}) - data, status_code, headers = update_queue_with_http_info(queue_id, opts) + def put_queues_queue_id(queue_id, opts = {}) + data, status_code, headers = put_queues_queue_id_with_http_info(queue_id, opts) return data end # Update a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Queue] :body Queue # @return [Array<(Queue, Fixnum, Hash)>] Queue data, response status code and response headers - def update_queue_with_http_info(queue_id, opts = {}) + def put_queues_queue_id_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#update_queue ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_queues_queue_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling update_queue" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling put_queues_queue_id" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -819,39 +809,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Queue') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#update_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_queues_queue_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :force_delete # @return [String] - def delete_queue(queue_id, opts = {}) - data, status_code, headers = delete_queue_with_http_info(queue_id, opts) + def delete_queues_queue_id(queue_id, opts = {}) + data, status_code, headers = delete_queues_queue_id_with_http_info(queue_id, opts) return data end # Delete a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :force_delete # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers - def delete_queue_with_http_info(queue_id, opts = {}) + def delete_queues_queue_id_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#delete_queue ..." + @api_client.config.logger.debug "Calling API: RoutingApi#delete_queues_queue_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling delete_queue" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling delete_queues_queue_id" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -883,15 +873,79 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#delete_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#delete_queues_queue_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Get Estimated Wait Time + # + # @param queue_id queueId + # @param [Hash] opts the optional parameters + # @option opts [String] :conversation_id conversationId + # @return [EstimatedWaitTimePredictions] + def get_queues_queue_id_estimatedwaittime(queue_id, opts = {}) + data, status_code, headers = get_queues_queue_id_estimatedwaittime_with_http_info(queue_id, opts) + return data + end + + # Get Estimated Wait Time + # + # @param queue_id queueId + # @param [Hash] opts the optional parameters + # @option opts [String] :conversation_id conversationId + # @return [Array<(EstimatedWaitTimePredictions, Fixnum, Hash)>] EstimatedWaitTimePredictions data, response status code and response headers + def get_queues_queue_id_estimatedwaittime_with_http_info(queue_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: RoutingApi#get_queues_queue_id_estimatedwaittime ..." + end + + # verify the required parameter 'queue_id' is set + fail "Missing the required parameter 'queue_id' when calling get_queues_queue_id_estimatedwaittime" if queue_id.nil? + + # resource path + path = "/api/v1/routing/queues/{queueId}/estimatedwaittime".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) + + # query parameters + query_params = {} + query_params[:'conversationId'] = opts[:'conversation_id'] if opts[:'conversation_id'] + + # 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, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'EstimatedWaitTimePredictions') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: RoutingApi#get_queues_queue_id_estimatedwaittime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get members in a queue # Get the list of members of a queue # @param queue_id # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Page size @@ -899,12 +953,12 @@ # @option opts [String] :user_id UserID # @option opts [String] :status_id Status ID # @option opts [BOOLEAN] :joined Joined # @option opts [String] :expand expand # @return [QueueMemberEntityListing] - def get_queue_members(queue_id, opts = {}) - data, status_code, headers = get_queue_members_with_http_info(queue_id, opts) + def get_queues_queue_id_members(queue_id, opts = {}) + data, status_code, headers = get_queues_queue_id_members_with_http_info(queue_id, opts) return data end # Get members in a queue # Get the list of members of a queue @@ -915,17 +969,17 @@ # @option opts [String] :user_id UserID # @option opts [String] :status_id Status ID # @option opts [BOOLEAN] :joined Joined # @option opts [String] :expand expand # @return [Array<(QueueMemberEntityListing, Fixnum, Hash)>] QueueMemberEntityListing data, response status code and response headers - def get_queue_members_with_http_info(queue_id, opts = {}) + def get_queues_queue_id_members_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_queue_members ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_queues_queue_id_members ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling get_queue_members" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling get_queues_queue_id_members" if queue_id.nil? if opts[:'expand'] && !['routingStatus'].include?(opts[:'expand']) fail 'invalid value for "expand", must be one of routingStatus' end @@ -966,11 +1020,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMemberEntityListing') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_queue_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_queues_queue_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Join or unjoin a user to the queue. @@ -978,32 +1032,32 @@ # @param queue_id Queue ID # @param member_id Member/User ID # @param [Hash] opts the optional parameters # @option opts [QueueMember] :body To join queue ~ \&quot;joined\&quot;:true # @return [QueueMember] - def update_queue_members_by_member_id(queue_id, member_id, opts = {}) - data, status_code, headers = update_queue_members_by_member_id_with_http_info(queue_id, member_id, opts) + def put_queues_queue_id_members_member_id(queue_id, member_id, opts = {}) + data, status_code, headers = put_queues_queue_id_members_member_id_with_http_info(queue_id, member_id, opts) return data end # Join or unjoin a user to the queue. # # @param queue_id Queue ID # @param member_id Member/User ID # @param [Hash] opts the optional parameters # @option opts [QueueMember] :body To join queue ~ \&quot;joined\&quot;:true # @return [Array<(QueueMember, Fixnum, Hash)>] QueueMember data, response status code and response headers - def update_queue_members_by_member_id_with_http_info(queue_id, member_id, opts = {}) + def put_queues_queue_id_members_member_id_with_http_info(queue_id, member_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#update_queue_members_by_member_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_queues_queue_id_members_member_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling update_queue_members_by_member_id" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling put_queues_queue_id_members_member_id" if queue_id.nil? # verify the required parameter 'member_id' is set - fail "Missing the required parameter 'member_id' when calling update_queue_members_by_member_id" if member_id.nil? + fail "Missing the required parameter 'member_id' when calling put_queues_queue_id_members_member_id" if member_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/members/{memberId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters @@ -1034,11 +1088,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMember') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#update_queue_members_by_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_queues_queue_id_members_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get the members of this queue @@ -1049,12 +1103,12 @@ # @option opts [Integer] :page_number Page number # @option opts [String] :sort_by Sort by # @option opts [String] :expand expand # @option opts [BOOLEAN] :direct_members Only get users that are direct members of the queue # @return [QueueMember] - def get_queue_users(queue_id, opts = {}) - data, status_code, headers = get_queue_users_with_http_info(queue_id, opts) + def get_queues_queue_id_users(queue_id, opts = {}) + data, status_code, headers = get_queues_queue_id_users_with_http_info(queue_id, opts) return data end # Get the members of this queue # @@ -1064,17 +1118,17 @@ # @option opts [Integer] :page_number Page number # @option opts [String] :sort_by Sort by # @option opts [String] :expand expand # @option opts [BOOLEAN] :direct_members Only get users that are direct members of the queue # @return [Array<(QueueMember, Fixnum, Hash)>] QueueMember data, response status code and response headers - def get_queue_users_with_http_info(queue_id, opts = {}) + def get_queues_queue_id_users_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_queue_users ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_queues_queue_id_users ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling get_queue_users" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling get_queues_queue_id_users" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -1110,11 +1164,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMember') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_queue_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_queues_queue_id_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Bulk add or delete up to 100 queue members @@ -1122,29 +1176,29 @@ # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Array<QueueMember>] :body Queue Members # @option opts [BOOLEAN] :delete True to delete queue members # @return [QueueMember] - def create_queue_users(queue_id, opts = {}) - data, status_code, headers = create_queue_users_with_http_info(queue_id, opts) + def post_queues_queue_id_users(queue_id, opts = {}) + data, status_code, headers = post_queues_queue_id_users_with_http_info(queue_id, opts) return data end # Bulk add or delete up to 100 queue members # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Array<QueueMember>] :body Queue Members # @option opts [BOOLEAN] :delete True to delete queue members # @return [Array<(QueueMember, Fixnum, Hash)>] QueueMember data, response status code and response headers - def create_queue_users_with_http_info(queue_id, opts = {}) + def post_queues_queue_id_users_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_queue_users ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_queues_queue_id_users ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling create_queue_users" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling post_queues_queue_id_users" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -1176,39 +1230,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMember') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_queue_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_queues_queue_id_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Join or unjoin a set of users for a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Array<QueueMember>] :body Queue Members # @return [QueueMember] - def patch_queue_users(queue_id, opts = {}) - data, status_code, headers = patch_queue_users_with_http_info(queue_id, opts) + def patch_queues_queue_id_users(queue_id, opts = {}) + data, status_code, headers = patch_queues_queue_id_users_with_http_info(queue_id, opts) return data end # Join or unjoin a set of users for a queue # # @param queue_id Queue ID # @param [Hash] opts the optional parameters # @option opts [Array<QueueMember>] :body Queue Members # @return [Array<(QueueMember, Fixnum, Hash)>] QueueMember data, response status code and response headers - def patch_queue_users_with_http_info(queue_id, opts = {}) + def patch_queues_queue_id_users_with_http_info(queue_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#patch_queue_users ..." + @api_client.config.logger.debug "Calling API: RoutingApi#patch_queues_queue_id_users ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling patch_queue_users" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling patch_queues_queue_id_users" if queue_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters @@ -1239,42 +1293,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMember') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#patch_queue_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#patch_queues_queue_id_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete queue member # # @param queue_id Queue ID # @param member_id Member ID # @param [Hash] opts the optional parameters # @return [String] - def delete_queue_users_by_member_id(queue_id, member_id, opts = {}) - data, status_code, headers = delete_queue_users_by_member_id_with_http_info(queue_id, member_id, opts) + def delete_queues_queue_id_users_member_id(queue_id, member_id, opts = {}) + data, status_code, headers = delete_queues_queue_id_users_member_id_with_http_info(queue_id, member_id, opts) return data end # Delete queue member # # @param queue_id Queue ID # @param member_id Member ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers - def delete_queue_users_by_member_id_with_http_info(queue_id, member_id, opts = {}) + def delete_queues_queue_id_users_member_id_with_http_info(queue_id, member_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#delete_queue_users_by_member_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#delete_queues_queue_id_users_member_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling delete_queue_users_by_member_id" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling delete_queues_queue_id_users_member_id" if queue_id.nil? # verify the required parameter 'member_id' is set - fail "Missing the required parameter 'member_id' when calling delete_queue_users_by_member_id" if member_id.nil? + fail "Missing the required parameter 'member_id' when calling delete_queues_queue_id_users_member_id" if member_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/users/{memberId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters @@ -1305,11 +1359,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#delete_queue_users_by_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#delete_queues_queue_id_users_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update the ring number of joined status for a User in a Queue @@ -1317,32 +1371,32 @@ # @param queue_id Queue ID # @param member_id Member ID # @param [Hash] opts the optional parameters # @option opts [QueueMember] :body Queue Member # @return [QueueMember] - def patch_queue_users_by_member_id(queue_id, member_id, opts = {}) - data, status_code, headers = patch_queue_users_by_member_id_with_http_info(queue_id, member_id, opts) + def patch_queues_queue_id_users_member_id(queue_id, member_id, opts = {}) + data, status_code, headers = patch_queues_queue_id_users_member_id_with_http_info(queue_id, member_id, opts) return data end # Update the ring number of joined status for a User in a Queue # # @param queue_id Queue ID # @param member_id Member ID # @param [Hash] opts the optional parameters # @option opts [QueueMember] :body Queue Member # @return [Array<(QueueMember, Fixnum, Hash)>] QueueMember data, response status code and response headers - def patch_queue_users_by_member_id_with_http_info(queue_id, member_id, opts = {}) + def patch_queues_queue_id_users_member_id_with_http_info(queue_id, member_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#patch_queue_users_by_member_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#patch_queues_queue_id_users_member_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling patch_queue_users_by_member_id" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling patch_queues_queue_id_users_member_id" if queue_id.nil? # verify the required parameter 'member_id' is set - fail "Missing the required parameter 'member_id' when calling patch_queue_users_by_member_id" if member_id.nil? + fail "Missing the required parameter 'member_id' when calling patch_queues_queue_id_users_member_id" if member_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/users/{memberId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters @@ -1373,42 +1427,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'QueueMember') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#patch_queue_users_by_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#patch_queues_queue_id_users_member_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get the wrap-up codes for a queue # # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @return [WrapupCode] - def get_queue_wrapupcodes(queue_id, code_id, opts = {}) - data, status_code, headers = get_queue_wrapupcodes_with_http_info(queue_id, code_id, opts) + def get_queues_queue_id_wrapupcodes(queue_id, code_id, opts = {}) + data, status_code, headers = get_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, opts) return data end # Get the wrap-up codes for a queue # # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers - def get_queue_wrapupcodes_with_http_info(queue_id, code_id, opts = {}) + def get_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_queue_wrapupcodes ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_queues_queue_id_wrapupcodes ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling get_queue_wrapupcodes" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling get_queues_queue_id_wrapupcodes" if queue_id.nil? # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling get_queue_wrapupcodes" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling get_queues_queue_id_wrapupcodes" if code_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/wrapupcodes".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -1439,11 +1493,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_queue_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_queues_queue_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Add up to 100 wrap-up codes to a queue @@ -1451,32 +1505,32 @@ # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @option opts [Array<WrapupCode>] :body # @return [WrapupCode] - def create_queue_wrapupcodes(queue_id, code_id, opts = {}) - data, status_code, headers = create_queue_wrapupcodes_with_http_info(queue_id, code_id, opts) + def post_queues_queue_id_wrapupcodes(queue_id, code_id, opts = {}) + data, status_code, headers = post_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, opts) return data end # Add up to 100 wrap-up codes to a queue # # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @option opts [Array<WrapupCode>] :body # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers - def create_queue_wrapupcodes_with_http_info(queue_id, code_id, opts = {}) + def post_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_queue_wrapupcodes ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_queues_queue_id_wrapupcodes ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling create_queue_wrapupcodes" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling post_queues_queue_id_wrapupcodes" if queue_id.nil? # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling create_queue_wrapupcodes" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling post_queues_queue_id_wrapupcodes" if code_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/wrapupcodes".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -1507,42 +1561,42 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_queue_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_queues_queue_id_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a wrap-up code from a queue # # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @return [String] - def delete_queue_wrapupcodes_by_code_id(queue_id, code_id, opts = {}) - data, status_code, headers = delete_queue_wrapupcodes_by_code_id_with_http_info(queue_id, code_id, opts) + def delete_queues_queue_id_wrapupcodes_code_id(queue_id, code_id, opts = {}) + data, status_code, headers = delete_queues_queue_id_wrapupcodes_code_id_with_http_info(queue_id, code_id, opts) return data end # Delete a wrap-up code from a queue # # @param queue_id Queue ID # @param code_id Code ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers - def delete_queue_wrapupcodes_by_code_id_with_http_info(queue_id, code_id, opts = {}) + def delete_queues_queue_id_wrapupcodes_code_id_with_http_info(queue_id, code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#delete_queue_wrapupcodes_by_code_id ..." + @api_client.config.logger.debug "Calling API: RoutingApi#delete_queues_queue_id_wrapupcodes_code_id ..." end # verify the required parameter 'queue_id' is set - fail "Missing the required parameter 'queue_id' when calling delete_queue_wrapupcodes_by_code_id" if queue_id.nil? + fail "Missing the required parameter 'queue_id' when calling delete_queues_queue_id_wrapupcodes_code_id" if queue_id.nil? # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling delete_queue_wrapupcodes_by_code_id" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling delete_queues_queue_id_wrapupcodes_code_id" if code_id.nil? # resource path path = "/api/v1/routing/queues/{queueId}/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -1573,11 +1627,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#delete_queue_wrapupcodes_by_code_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#delete_queues_queue_id_wrapupcodes_code_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get the list of skills. @@ -1707,23 +1761,23 @@ # Update the utilization settings. # # @param [Hash] opts the optional parameters # @option opts [Utilization] :body utilization # @return [Utilization] - def update_utilization(opts = {}) - data, status_code, headers = update_utilization_with_http_info(opts) + def put_utilization(opts = {}) + data, status_code, headers = put_utilization_with_http_info(opts) return data end # Update the utilization settings. # # @param [Hash] opts the optional parameters # @option opts [Utilization] :body utilization # @return [Array<(Utilization, Fixnum, Hash)>] Utilization data, response status code and response headers - def update_utilization_with_http_info(opts = {}) + def put_utilization_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#update_utilization ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_utilization ..." end # resource path path = "/api/v1/routing/utilization".sub('{format}','json') @@ -1755,11 +1809,11 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Utilization') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#update_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete utilization settings and revert to system defaults. @@ -1886,23 +1940,23 @@ # Create a wrap-up code # # @param [Hash] opts the optional parameters # @option opts [WrapupCode] :body WrapupCode # @return [CallableTimeSet] - def create_wrapupcodes(opts = {}) - data, status_code, headers = create_wrapupcodes_with_http_info(opts) + def post_wrapupcodes(opts = {}) + data, status_code, headers = post_wrapupcodes_with_http_info(opts) return data end # Create a wrap-up code # # @param [Hash] opts the optional parameters # @option opts [WrapupCode] :body WrapupCode # @return [Array<(CallableTimeSet, Fixnum, Hash)>] CallableTimeSet data, response status code and response headers - def create_wrapupcodes_with_http_info(opts = {}) + def post_wrapupcodes_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#create_wrapupcodes ..." + @api_client.config.logger.debug "Calling API: RoutingApi#post_wrapupcodes ..." end # resource path path = "/api/v1/routing/wrapupcodes".sub('{format}','json') @@ -1934,37 +1988,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'CallableTimeSet') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#create_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#post_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get details about this wrap-up code. # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @return [WrapupCode] - def get_wrapupcodes_code(code_id, opts = {}) - data, status_code, headers = get_wrapupcodes_code_with_http_info(code_id, opts) + def get_wrapupcodes_code_id(code_id, opts = {}) + data, status_code, headers = get_wrapupcodes_code_id_with_http_info(code_id, opts) return data end # Get details about this wrap-up code. # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers - def get_wrapupcodes_code_with_http_info(code_id, opts = {}) + def get_wrapupcodes_code_id_with_http_info(code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#get_wrapupcodes_code ..." + @api_client.config.logger.debug "Calling API: RoutingApi#get_wrapupcodes_code_id ..." end # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling get_wrapupcodes_code" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling get_wrapupcodes_code_id" if code_id.nil? # resource path path = "/api/v1/routing/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -1995,39 +2049,39 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#get_wrapupcodes_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#get_wrapupcodes_code_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update wrap-up code # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @option opts [WrapupCode] :body WrapupCode # @return [WrapupCode] - def update_wrapupcodes_code(code_id, opts = {}) - data, status_code, headers = update_wrapupcodes_code_with_http_info(code_id, opts) + def put_wrapupcodes_code_id(code_id, opts = {}) + data, status_code, headers = put_wrapupcodes_code_id_with_http_info(code_id, opts) return data end # Update wrap-up code # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @option opts [WrapupCode] :body WrapupCode # @return [Array<(WrapupCode, Fixnum, Hash)>] WrapupCode data, response status code and response headers - def update_wrapupcodes_code_with_http_info(code_id, opts = {}) + def put_wrapupcodes_code_id_with_http_info(code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#update_wrapupcodes_code ..." + @api_client.config.logger.debug "Calling API: RoutingApi#put_wrapupcodes_code_id ..." end # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling update_wrapupcodes_code" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling put_wrapupcodes_code_id" if code_id.nil? # resource path path = "/api/v1/routing/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -2058,37 +2112,37 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WrapupCode') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#update_wrapupcodes_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#put_wrapupcodes_code_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete wrap-up code # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @return [String] - def delete_wrapupcodes_code(code_id, opts = {}) - data, status_code, headers = delete_wrapupcodes_code_with_http_info(code_id, opts) + def delete_wrapupcodes_code_id(code_id, opts = {}) + data, status_code, headers = delete_wrapupcodes_code_id_with_http_info(code_id, opts) return data end # Delete wrap-up code # # @param code_id Wrapup Code ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers - def delete_wrapupcodes_code_with_http_info(code_id, opts = {}) + def delete_wrapupcodes_code_id_with_http_info(code_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RoutingApi#delete_wrapupcodes_code ..." + @api_client.config.logger.debug "Calling API: RoutingApi#delete_wrapupcodes_code_id ..." end # verify the required parameter 'code_id' is set - fail "Missing the required parameter 'code_id' when calling delete_wrapupcodes_code" if code_id.nil? + fail "Missing the required parameter 'code_id' when calling delete_wrapupcodes_code_id" if code_id.nil? # resource path path = "/api/v1/routing/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'codeId' + '}', code_id.to_s) # query parameters @@ -2119,10 +2173,10 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging - @api_client.config.logger.debug "API called: RoutingApi#delete_wrapupcodes_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RoutingApi#delete_wrapupcodes_code_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end