lib/purecloud/api/routing_api.rb in purecloud-0.44.1 vs lib/purecloud/api/routing_api.rb in purecloud-0.45.1

- old
+ new

@@ -1524,32 +1524,35 @@ end # Join or unjoin a set of users for a queue # # @param queue_id Queue ID + # @param body Queue Members # @param [Hash] opts the optional parameters - # @option opts [Array<QueueMember>] :body Queue Members # @return [QueueMember] - def patch_queues_queue_id_users(queue_id, opts = {}) - data, status_code, headers = patch_queues_queue_id_users_with_http_info(queue_id, opts) + def patch_queues_queue_id_users(queue_id, body, opts = {}) + data, status_code, headers = patch_queues_queue_id_users_with_http_info(queue_id, body, opts) return data end # Join or unjoin a set of users for a queue # # @param queue_id Queue ID + # @param body Queue Members # @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_queues_queue_id_users_with_http_info(queue_id, opts = {}) + def patch_queues_queue_id_users_with_http_info(queue_id, body, opts = {}) if @api_client.config.debugging @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_queues_queue_id_users" if queue_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling patch_queues_queue_id_users" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters query_params = {} @@ -1567,11 +1570,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1587,36 +1590,39 @@ # Update the ring number of joined status for a User in a Queue # # @param queue_id Queue ID # @param member_id Member ID + # @param body Queue Member # @param [Hash] opts the optional parameters - # @option opts [QueueMember] :body Queue Member # @return [QueueMember] - 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) + def patch_queues_queue_id_users_member_id(queue_id, member_id, body, opts = {}) + data, status_code, headers = patch_queues_queue_id_users_member_id_with_http_info(queue_id, member_id, body, 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 body Queue Member # @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_queues_queue_id_users_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, body, opts = {}) if @api_client.config.debugging @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_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_queues_queue_id_users_member_id" if member_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling patch_queues_queue_id_users_member_id" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues/{queueId}/users/{memberId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s) # query parameters query_params = {} @@ -1634,11 +1640,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1652,28 +1658,31 @@ return data, status_code, headers end # Create a domain # + # @param body Domain # @param [Hash] opts the optional parameters - # @option opts [InboundDomain] :body Domain # @return [InboundDomain] - def post_email_domains(opts = {}) - data, status_code, headers = post_email_domains_with_http_info(opts) + def post_email_domains(body, opts = {}) + data, status_code, headers = post_email_domains_with_http_info(body, opts) return data end # Create a domain # + # @param body 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 post_email_domains_with_http_info(opts = {}) + def post_email_domains_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_email_domains ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_email_domains" if body.nil? + # resource path local_var_path = "/api/v2/routing/email/domains".sub('{format}','json') # query parameters query_params = {} @@ -1691,11 +1700,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1710,32 +1719,35 @@ end # Create a route # # @param domain_name email domain + # @param body Route # @param [Hash] opts the optional parameters - # @option opts [InboundRoute] :body Route # @return [InboundRoute] - def post_email_domains_domainname_routes(domain_name, opts = {}) - data, status_code, headers = post_email_domains_domainname_routes_with_http_info(domain_name, opts) + def post_email_domains_domainname_routes(domain_name, body, opts = {}) + data, status_code, headers = post_email_domains_domainname_routes_with_http_info(domain_name, body, opts) return data end # Create a route # # @param domain_name email domain + # @param body Route # @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 post_email_domains_domainname_routes_with_http_info(domain_name, opts = {}) + def post_email_domains_domainname_routes_with_http_info(domain_name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_email_domains_domainname_routes ..." end # verify the required parameter 'domain_name' is set fail "Missing the required parameter 'domain_name' when calling post_email_domains_domainname_routes" if domain_name.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_email_domains_domainname_routes" if body.nil? + # resource path local_var_path = "/api/v2/routing/email/domains/{domainName}/routes".sub('{format}','json').sub('{' + 'domainName' + '}', domain_name.to_s) # query parameters query_params = {} @@ -1753,11 +1765,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1771,28 +1783,31 @@ return data, status_code, headers end # Create queue # + # @param body Queue # @param [Hash] opts the optional parameters - # @option opts [Queue] :body Queue # @return [Queue] - def post_queues(opts = {}) - data, status_code, headers = post_queues_with_http_info(opts) + def post_queues(body, opts = {}) + data, status_code, headers = post_queues_with_http_info(body, opts) return data end # Create queue # + # @param body Queue # @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 post_queues_with_http_info(opts = {}) + def post_queues_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_queues ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_queues" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues".sub('{format}','json') # query parameters query_params = {} @@ -1810,11 +1825,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1828,28 +1843,31 @@ return data, status_code, headers end # Query for queue observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [ObservationQueryResponse] - def post_queues_observations_query(opts = {}) - data, status_code, headers = post_queues_observations_query_with_http_info(opts) + def post_queues_observations_query(body, opts = {}) + data, status_code, headers = post_queues_observations_query_with_http_info(body, opts) return data end # Query for queue observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [Array<(ObservationQueryResponse, Fixnum, Hash)>] ObservationQueryResponse data, response status code and response headers - def post_queues_observations_query_with_http_info(opts = {}) + def post_queues_observations_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_queues_observations_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_queues_observations_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/queues/observations/query".sub('{format}','json') # query parameters query_params = {} @@ -1867,11 +1885,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1886,34 +1904,37 @@ end # Bulk add or delete up to 100 queue members # # @param queue_id Queue ID + # @param body Queue Members # @param [Hash] opts the optional parameters - # @option opts [Array<QueueMember>] :body Queue Members # @option opts [BOOLEAN] :delete True to delete queue members (default to false) # @return [QueueMember] - def post_queues_queue_id_users(queue_id, opts = {}) - data, status_code, headers = post_queues_queue_id_users_with_http_info(queue_id, opts) + def post_queues_queue_id_users(queue_id, body, opts = {}) + data, status_code, headers = post_queues_queue_id_users_with_http_info(queue_id, body, opts) return data end # Bulk add or delete up to 100 queue members # # @param queue_id Queue ID + # @param body Queue Members # @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 post_queues_queue_id_users_with_http_info(queue_id, opts = {}) + def post_queues_queue_id_users_with_http_info(queue_id, body, opts = {}) if @api_client.config.debugging @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 post_queues_queue_id_users" if queue_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_queues_queue_id_users" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters query_params = {} @@ -1932,11 +1953,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1952,36 +1973,39 @@ # Add up to 100 wrap-up codes to a queue # # @param queue_id Queue ID # @param code_id Code ID + # @param body List of wrapup codes # @param [Hash] opts the optional parameters - # @option opts [Array<WrapupCode>] :body # @return [WrapupCode] - 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) + def post_queues_queue_id_wrapupcodes(queue_id, code_id, body, opts = {}) + data, status_code, headers = post_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, body, 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 body List of wrapup codes # @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 post_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, opts = {}) + def post_queues_queue_id_wrapupcodes_with_http_info(queue_id, code_id, body, opts = {}) if @api_client.config.debugging @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 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 post_queues_queue_id_wrapupcodes" if code_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_queues_queue_id_wrapupcodes" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues/{queueId}/wrapupcodes".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'codeId' + '}', code_id.to_s) # query parameters query_params = {} @@ -1999,11 +2023,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -2017,28 +2041,31 @@ return data, status_code, headers end # Create Skill # + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [RoutingSkill] :body Skill # @return [RoutingSkill] - def post_skills(opts = {}) - data, status_code, headers = post_skills_with_http_info(opts) + def post_skills(body, opts = {}) + data, status_code, headers = post_skills_with_http_info(body, opts) return data end # Create Skill # + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [RoutingSkill] :body Skill # @return [Array<(RoutingSkill, Fixnum, Hash)>] RoutingSkill data, response status code and response headers - def post_skills_with_http_info(opts = {}) + def post_skills_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_skills ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_skills" if body.nil? + # resource path local_var_path = "/api/v2/routing/skills".sub('{format}','json') # query parameters query_params = {} @@ -2056,11 +2083,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -2075,32 +2102,35 @@ end # Add routing skill to user # # @param user_id User ID + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [UserRoutingSkill] :body Skill # @return [UserRoutingSkill] - def post_user_id_routingskills(user_id, opts = {}) - data, status_code, headers = post_user_id_routingskills_with_http_info(user_id, opts) + def post_user_id_routingskills(user_id, body, opts = {}) + data, status_code, headers = post_user_id_routingskills_with_http_info(user_id, body, opts) return data end # Add routing skill to user # # @param user_id User ID + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [UserRoutingSkill] :body Skill # @return [Array<(UserRoutingSkill, Fixnum, Hash)>] UserRoutingSkill data, response status code and response headers - def post_user_id_routingskills_with_http_info(user_id, opts = {}) + def post_user_id_routingskills_with_http_info(user_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_user_id_routingskills ..." end # verify the required parameter 'user_id' is set fail "Missing the required parameter 'user_id' when calling post_user_id_routingskills" if user_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_user_id_routingskills" if body.nil? + # resource path local_var_path = "/api/v2/users/{userId}/routingskills".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} @@ -2118,11 +2148,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -2136,28 +2166,31 @@ return data, status_code, headers end # Create a wrap-up code # + # @param body WrapupCode # @param [Hash] opts the optional parameters - # @option opts [WrapupCode] :body WrapupCode # @return [CallableTimeSet] - def post_wrapupcodes(opts = {}) - data, status_code, headers = post_wrapupcodes_with_http_info(opts) + def post_wrapupcodes(body, opts = {}) + data, status_code, headers = post_wrapupcodes_with_http_info(body, opts) return data end # Create a wrap-up code # + # @param body WrapupCode # @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 post_wrapupcodes_with_http_info(opts = {}) + def post_wrapupcodes_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#post_wrapupcodes ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_wrapupcodes" if body.nil? + # resource path local_var_path = "/api/v2/routing/wrapupcodes".sub('{format}','json') # query parameters query_params = {} @@ -2175,11 +2208,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -2195,36 +2228,39 @@ # Update a route # # @param domain_name email domain # @param route_id route ID + # @param body Route # @param [Hash] opts the optional parameters - # @option opts [InboundRoute] :body Route # @return [InboundRoute] - def put_email_domains_domainname_routes_route_id(domain_name, route_id, opts = {}) - data, status_code, headers = put_email_domains_domainname_routes_route_id_with_http_info(domain_name, route_id, opts) + def put_email_domains_domainname_routes_route_id(domain_name, route_id, body, opts = {}) + data, status_code, headers = put_email_domains_domainname_routes_route_id_with_http_info(domain_name, route_id, body, opts) return data end # Update a route # # @param domain_name email domain # @param route_id route ID + # @param body Route # @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 put_email_domains_domainname_routes_route_id_with_http_info(domain_name, route_id, opts = {}) + def put_email_domains_domainname_routes_route_id_with_http_info(domain_name, route_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#put_email_domains_domainname_routes_route_id ..." end # verify the required parameter 'domain_name' is set fail "Missing the required parameter 'domain_name' when calling put_email_domains_domainname_routes_route_id" if domain_name.nil? # verify the required parameter 'route_id' is set fail "Missing the required parameter 'route_id' when calling put_email_domains_domainname_routes_route_id" if route_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_email_domains_domainname_routes_route_id" if body.nil? + # resource path local_var_path = "/api/v2/routing/email/domains/{domainName}/routes/{routeId}".sub('{format}','json').sub('{' + 'domainName' + '}', domain_name.to_s).sub('{' + 'routeId' + '}', route_id.to_s) # query parameters query_params = {} @@ -2242,11 +2278,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + 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, @@ -2261,32 +2297,35 @@ end # Update a queue # # @param queue_id Queue ID + # @param body Queue # @param [Hash] opts the optional parameters - # @option opts [Queue] :body Queue # @return [Queue] - def put_queues_queue_id(queue_id, opts = {}) - data, status_code, headers = put_queues_queue_id_with_http_info(queue_id, opts) + def put_queues_queue_id(queue_id, body, opts = {}) + data, status_code, headers = put_queues_queue_id_with_http_info(queue_id, body, opts) return data end # Update a queue # # @param queue_id Queue ID + # @param body Queue # @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 put_queues_queue_id_with_http_info(queue_id, opts = {}) + def put_queues_queue_id_with_http_info(queue_id, body, opts = {}) if @api_client.config.debugging @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 put_queues_queue_id" if queue_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_queues_queue_id" if body.nil? + # resource path local_var_path = "/api/v2/routing/queues/{queueId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s) # query parameters query_params = {} @@ -2304,11 +2343,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + 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, @@ -2324,36 +2363,39 @@ # Update routing skill proficiency or state. # # @param user_id User ID # @param skill_id + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [UserRoutingSkill] :body Skill # @return [UserRoutingSkill] - def put_user_id_routingskills_skill_id(user_id, skill_id, opts = {}) - data, status_code, headers = put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, opts) + def put_user_id_routingskills_skill_id(user_id, skill_id, body, opts = {}) + data, status_code, headers = put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, body, opts) return data end # Update routing skill proficiency or state. # # @param user_id User ID # @param skill_id + # @param body Skill # @param [Hash] opts the optional parameters - # @option opts [UserRoutingSkill] :body Skill # @return [Array<(UserRoutingSkill, Fixnum, Hash)>] UserRoutingSkill data, response status code and response headers - def put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, opts = {}) + def put_user_id_routingskills_skill_id_with_http_info(user_id, skill_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#put_user_id_routingskills_skill_id ..." end # verify the required parameter 'user_id' is set fail "Missing the required parameter 'user_id' when calling put_user_id_routingskills_skill_id" if user_id.nil? # verify the required parameter 'skill_id' is set fail "Missing the required parameter 'skill_id' when calling put_user_id_routingskills_skill_id" if skill_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_user_id_routingskills_skill_id" if body.nil? + # resource path local_var_path = "/api/v2/users/{userId}/routingskills/{skillId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'skillId' + '}', skill_id.to_s) # query parameters query_params = {} @@ -2371,11 +2413,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + 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, @@ -2389,28 +2431,31 @@ return data, status_code, headers end # Update the utilization settings. # + # @param body utilization # @param [Hash] opts the optional parameters - # @option opts [Utilization] :body utilization # @return [Utilization] - def put_utilization(opts = {}) - data, status_code, headers = put_utilization_with_http_info(opts) + def put_utilization(body, opts = {}) + data, status_code, headers = put_utilization_with_http_info(body, opts) return data end # Update the utilization settings. # + # @param body utilization # @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 put_utilization_with_http_info(opts = {}) + def put_utilization_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RoutingApi#put_utilization ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_utilization" if body.nil? + # resource path local_var_path = "/api/v2/routing/utilization".sub('{format}','json') # query parameters query_params = {} @@ -2428,11 +2473,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + 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, @@ -2447,32 +2492,35 @@ end # Update wrap-up code # # @param code_id Wrapup Code ID + # @param body WrapupCode # @param [Hash] opts the optional parameters - # @option opts [WrapupCode] :body WrapupCode # @return [WrapupCode] - def put_wrapupcodes_code_id(code_id, opts = {}) - data, status_code, headers = put_wrapupcodes_code_id_with_http_info(code_id, opts) + def put_wrapupcodes_code_id(code_id, body, opts = {}) + data, status_code, headers = put_wrapupcodes_code_id_with_http_info(code_id, body, opts) return data end # Update wrap-up code # # @param code_id Wrapup Code ID + # @param body WrapupCode # @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 put_wrapupcodes_code_id_with_http_info(code_id, opts = {}) + def put_wrapupcodes_code_id_with_http_info(code_id, body, opts = {}) if @api_client.config.debugging @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 put_wrapupcodes_code_id" if code_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_wrapupcodes_code_id" if body.nil? + # resource path local_var_path = "/api/v2/routing/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'codeId' + '}', code_id.to_s) # query parameters query_params = {} @@ -2490,10 +2538,10 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + 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,