|
68 | 68 | from ..models import AgentWorkPlanListResponse |
69 | 69 | from ..models import AgentsBidAssignedWorkPlanOverrideRequest |
70 | 70 | from ..models import AgentsIntegrationsListing |
| 71 | +from ..models import AgentsWorkPlansResponse |
71 | 72 | from ..models import AlternativeShiftAsyncResponse |
72 | 73 | from ..models import AlternativeShiftBuSettingsResponse |
73 | 74 | from ..models import AlternativeShiftJobResponse |
|
148 | 149 | from ..models import EstimateAvailableTimeOffResponse |
149 | 150 | from ..models import ForecastPlanningGroupsResponse |
150 | 151 | from ..models import GenerateBuForecastRequest |
| 152 | +from ..models import GetAgentsWorkPlansRequest |
151 | 153 | from ..models import HistoricalImportDeleteJobResponse |
152 | 154 | from ..models import HistoricalImportStatusListing |
153 | 155 | from ..models import HrisTimeOffTypesJobResponse |
|
216 | 218 | from ..models import UpdateAlternativeShiftBuSettingsRequest |
217 | 219 | from ..models import UpdateBusinessUnitRequest |
218 | 220 | from ..models import UpdateManagementUnitRequest |
| 221 | +from ..models import UpdateMuAgentWorkPlansBatchRequest |
| 222 | +from ..models import UpdateMuAgentWorkPlansBatchResponse |
219 | 223 | from ..models import UpdateMuAgentsRequest |
220 | 224 | from ..models import UpdateNotificationsRequest |
221 | 225 | from ..models import UpdateNotificationsResponse |
@@ -11735,6 +11739,87 @@ def patch_workforcemanagement_managementunit_agents(self, management_unit_id: st |
11735 | 11739 | callback=params.get('callback')) |
11736 | 11740 | return response |
11737 | 11741 |
|
| 11742 | + def patch_workforcemanagement_managementunit_agents_workplans_bulk(self, management_unit_id: str, **kwargs) -> 'UpdateMuAgentWorkPlansBatchResponse': |
| 11743 | + """ |
| 11744 | + Updates agent work plan configuration |
| 11745 | + |
| 11746 | + |
| 11747 | + This method makes a synchronous HTTP request by default. To make an |
| 11748 | + asynchronous HTTP request, please define a `callback` function |
| 11749 | + to be invoked when receiving the response. |
| 11750 | + >>> def callback_function(response): |
| 11751 | + >>> pprint(response) |
| 11752 | + >>> |
| 11753 | + >>> thread = api.patch_workforcemanagement_managementunit_agents_workplans_bulk(management_unit_id, callback=callback_function) |
| 11754 | + |
| 11755 | + :param callback function: The callback function |
| 11756 | + for asynchronous request. (optional) |
| 11757 | + :param str management_unit_id: The ID of the management unit, or 'mine' for the management unit of the logged-in user. (required) |
| 11758 | + :param UpdateMuAgentWorkPlansBatchRequest body: body |
| 11759 | + :return: UpdateMuAgentWorkPlansBatchResponse |
| 11760 | + If the method is called asynchronously, |
| 11761 | + returns the request thread. |
| 11762 | + """ |
| 11763 | + |
| 11764 | + all_params = ['management_unit_id', 'body'] |
| 11765 | + all_params.append('callback') |
| 11766 | + |
| 11767 | + params = locals() |
| 11768 | + for key, val in iteritems(params['kwargs']): |
| 11769 | + if key not in all_params: |
| 11770 | + raise TypeError( |
| 11771 | + "Got an unexpected keyword argument '%s'" |
| 11772 | + " to method patch_workforcemanagement_managementunit_agents_workplans_bulk" % key |
| 11773 | + ) |
| 11774 | + params[key] = val |
| 11775 | + del params['kwargs'] |
| 11776 | + |
| 11777 | + # verify the required parameter 'management_unit_id' is set |
| 11778 | + if ('management_unit_id' not in params) or (params['management_unit_id'] is None): |
| 11779 | + raise ValueError("Missing the required parameter `management_unit_id` when calling `patch_workforcemanagement_managementunit_agents_workplans_bulk`") |
| 11780 | + |
| 11781 | + |
| 11782 | + resource_path = '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk'.replace('{format}', 'json') |
| 11783 | + path_params = {} |
| 11784 | + if 'management_unit_id' in params: |
| 11785 | + path_params['managementUnitId'] = params['management_unit_id'] |
| 11786 | + |
| 11787 | + query_params = {} |
| 11788 | + |
| 11789 | + header_params = {} |
| 11790 | + |
| 11791 | + form_params = [] |
| 11792 | + local_var_files = {} |
| 11793 | + |
| 11794 | + body_params = None |
| 11795 | + if 'body' in params: |
| 11796 | + body_params = params['body'] |
| 11797 | + |
| 11798 | + # HTTP header `Accept` |
| 11799 | + header_params['Accept'] = self.api_client.\ |
| 11800 | + select_header_accept(['application/json']) |
| 11801 | + if not header_params['Accept']: |
| 11802 | + del header_params['Accept'] |
| 11803 | + |
| 11804 | + # HTTP header `Content-Type` |
| 11805 | + header_params['Content-Type'] = self.api_client.\ |
| 11806 | + select_header_content_type(['application/json']) |
| 11807 | + |
| 11808 | + # Authentication setting |
| 11809 | + auth_settings = ['PureCloud OAuth'] |
| 11810 | + |
| 11811 | + response = self.api_client.call_api(resource_path, 'PATCH', |
| 11812 | + path_params, |
| 11813 | + query_params, |
| 11814 | + header_params, |
| 11815 | + body=body_params, |
| 11816 | + post_params=form_params, |
| 11817 | + files=local_var_files, |
| 11818 | + response_type='UpdateMuAgentWorkPlansBatchResponse', |
| 11819 | + auth_settings=auth_settings, |
| 11820 | + callback=params.get('callback')) |
| 11821 | + return response |
| 11822 | + |
11738 | 11823 | def patch_workforcemanagement_managementunit_timeofflimit(self, management_unit_id: str, time_off_limit_id: str, **kwargs) -> 'TimeOffLimit': |
11739 | 11824 | """ |
11740 | 11825 | Updates a time off limit object. |
@@ -16911,6 +16996,90 @@ def post_workforcemanagement_integrations_hri_timeofftypes_jobs(self, hris_integ |
16911 | 16996 | callback=params.get('callback')) |
16912 | 16997 | return response |
16913 | 16998 |
|
| 16999 | + def post_workforcemanagement_managementunit_agents_workplans_query(self, management_unit_id: str, **kwargs) -> 'AgentsWorkPlansResponse': |
| 17000 | + """ |
| 17001 | + Get agents work plans configuration |
| 17002 | + |
| 17003 | + |
| 17004 | + This method makes a synchronous HTTP request by default. To make an |
| 17005 | + asynchronous HTTP request, please define a `callback` function |
| 17006 | + to be invoked when receiving the response. |
| 17007 | + >>> def callback_function(response): |
| 17008 | + >>> pprint(response) |
| 17009 | + >>> |
| 17010 | + >>> thread = api.post_workforcemanagement_managementunit_agents_workplans_query(management_unit_id, callback=callback_function) |
| 17011 | + |
| 17012 | + :param callback function: The callback function |
| 17013 | + for asynchronous request. (optional) |
| 17014 | + :param str management_unit_id: The ID of the management unit, or 'mine' for the management unit of the logged-in user. (required) |
| 17015 | + :param bool force_download_service: Force the result of this operation to be sent via download service. For testing/app development purposes |
| 17016 | + :param GetAgentsWorkPlansRequest body: body |
| 17017 | + :return: AgentsWorkPlansResponse |
| 17018 | + If the method is called asynchronously, |
| 17019 | + returns the request thread. |
| 17020 | + """ |
| 17021 | + |
| 17022 | + all_params = ['management_unit_id', 'force_download_service', 'body'] |
| 17023 | + all_params.append('callback') |
| 17024 | + |
| 17025 | + params = locals() |
| 17026 | + for key, val in iteritems(params['kwargs']): |
| 17027 | + if key not in all_params: |
| 17028 | + raise TypeError( |
| 17029 | + "Got an unexpected keyword argument '%s'" |
| 17030 | + " to method post_workforcemanagement_managementunit_agents_workplans_query" % key |
| 17031 | + ) |
| 17032 | + params[key] = val |
| 17033 | + del params['kwargs'] |
| 17034 | + |
| 17035 | + # verify the required parameter 'management_unit_id' is set |
| 17036 | + if ('management_unit_id' not in params) or (params['management_unit_id'] is None): |
| 17037 | + raise ValueError("Missing the required parameter `management_unit_id` when calling `post_workforcemanagement_managementunit_agents_workplans_query`") |
| 17038 | + |
| 17039 | + |
| 17040 | + resource_path = '/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query'.replace('{format}', 'json') |
| 17041 | + path_params = {} |
| 17042 | + if 'management_unit_id' in params: |
| 17043 | + path_params['managementUnitId'] = params['management_unit_id'] |
| 17044 | + |
| 17045 | + query_params = {} |
| 17046 | + if 'force_download_service' in params: |
| 17047 | + query_params['forceDownloadService'] = params['force_download_service'] |
| 17048 | + |
| 17049 | + header_params = {} |
| 17050 | + |
| 17051 | + form_params = [] |
| 17052 | + local_var_files = {} |
| 17053 | + |
| 17054 | + body_params = None |
| 17055 | + if 'body' in params: |
| 17056 | + body_params = params['body'] |
| 17057 | + |
| 17058 | + # HTTP header `Accept` |
| 17059 | + header_params['Accept'] = self.api_client.\ |
| 17060 | + select_header_accept(['application/json']) |
| 17061 | + if not header_params['Accept']: |
| 17062 | + del header_params['Accept'] |
| 17063 | + |
| 17064 | + # HTTP header `Content-Type` |
| 17065 | + header_params['Content-Type'] = self.api_client.\ |
| 17066 | + select_header_content_type(['application/json']) |
| 17067 | + |
| 17068 | + # Authentication setting |
| 17069 | + auth_settings = ['PureCloud OAuth'] |
| 17070 | + |
| 17071 | + response = self.api_client.call_api(resource_path, 'POST', |
| 17072 | + path_params, |
| 17073 | + query_params, |
| 17074 | + header_params, |
| 17075 | + body=body_params, |
| 17076 | + post_params=form_params, |
| 17077 | + files=local_var_files, |
| 17078 | + response_type='AgentsWorkPlansResponse', |
| 17079 | + auth_settings=auth_settings, |
| 17080 | + callback=params.get('callback')) |
| 17081 | + return response |
| 17082 | + |
16914 | 17083 | def post_workforcemanagement_managementunit_agentschedules_search(self, management_unit_id: str, **kwargs) -> 'BuAsyncAgentSchedulesSearchResponse': |
16915 | 17084 | """ |
16916 | 17085 | Query published schedules for given given time range for set of users |
|
0 commit comments