lib/purecloudplatformclientv2/api/users_api.rb in purecloudplatformclientv2-34.0.0 vs lib/purecloudplatformclientv2/api/users_api.rb in purecloudplatformclientv2-35.0.0

- old
+ new

@@ -1311,10 +1311,11 @@ # @param user_id User ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Page size (default to 25) # @option opts [Integer] :page_number Page number (default to 1) # @option opts [BOOLEAN] :joined Is joined to the queue (default to true) + # @option opts [Array<String>] :division_id Division ID(s) # @return [UserQueueEntityListing] def get_user_queues(user_id, opts = {}) data, _status_code, _headers = get_user_queues_with_http_info(user_id, opts) return data end @@ -1324,10 +1325,11 @@ # @param user_id User ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Page size # @option opts [Integer] :page_number Page number # @option opts [BOOLEAN] :joined Is joined to the queue + # @option opts [Array<String>] :division_id Division ID(s) # @return [Array<(UserQueueEntityListing, Fixnum, Hash)>] UserQueueEntityListing data, response status code and response headers def get_user_queues_with_http_info(user_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UsersApi.get_user_queues ..." end @@ -1356,18 +1358,25 @@ + + + + + + # resource path local_var_path = "/api/v2/users/{userId}/queues".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'joined'] = opts[:'joined'] if opts[:'joined'] + query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) @@ -2521,10 +2530,11 @@ # Join or unjoin a set of queues for a user # # @param user_id User ID # @param body User Queues # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :division_id Division ID(s) # @return [UserQueueEntityListing] def patch_user_queues(user_id, body, opts = {}) data, _status_code, _headers = patch_user_queues_with_http_info(user_id, body, opts) return data end @@ -2532,10 +2542,11 @@ # Join or unjoin a set of queues for a user # # @param user_id User ID # @param body User Queues # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :division_id Division ID(s) # @return [Array<(UserQueueEntityListing, Fixnum, Hash)>] UserQueueEntityListing data, response status code and response headers def patch_user_queues_with_http_info(user_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: UsersApi.patch_user_queues ..." end @@ -2554,14 +2565,21 @@ + + + + + + # resource path local_var_path = "/api/v2/users/{userId}/queues".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s) # query parameters query_params = {} + query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id'] # header parameters header_params = {} # HTTP header 'Accept' (if needed)