purecloudplatformclientv2 75.1.0 → 79.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/ActivityCode.md +1 -1
- data/docs/AnalyticsApi.md +66 -2
- data/docs/AnalyticsConversationAsyncQueryResponse.md +1 -1
- data/docs/AnalyticsConversationQueryResponse.md +1 -1
- data/docs/AnalyticsParticipant.md +1 -0
- data/docs/AnalyticsParticipantWithoutAttributes.md +1 -0
- data/docs/ArchitectApi.md +345 -0
- data/docs/AuditApi.md +3 -1
- data/docs/AuditLogMessage.md +1 -1
- data/docs/AuthorizationApi.md +154 -9
- data/docs/AvailableTopic.md +3 -1
- data/docs/BuAgentScheduleActivity.md +18 -0
- data/docs/BuAgentSchedulePublishedScheduleReference.md +16 -0
- data/docs/BuAgentScheduleSearchResponse.md +15 -0
- data/docs/BuAgentScheduleShift.md +18 -0
- data/docs/BuAgentSchedulesSearchResponse.md +15 -0
- data/docs/BuAsyncAgentSchedulesSearchResponse.md +17 -0
- data/docs/BuFullDayTimeOffMarker.md +18 -0
- data/docs/BuScheduleReference.md +15 -0
- data/docs/Call.md +1 -1
- data/docs/CallBasic.md +1 -1
- data/docs/CallMediaParticipant.md +1 -1
- data/docs/CallbackMediaParticipant.md +1 -1
- data/docs/CampaignProgress.md +2 -1
- data/docs/ChatMediaParticipant.md +1 -1
- data/docs/CobrowseMediaParticipant.md +1 -1
- data/docs/ConversationsApi.md +71 -1
- data/docs/CopyAttachmentsRequest.md +14 -0
- data/docs/CreateManagementUnitApiRequest.md +3 -2
- data/docs/CreateManagementUnitSettingsRequest.md +1 -1
- data/docs/CreateWorkPlanShift.md +1 -1
- data/docs/DataTableExportJob.md +22 -0
- data/docs/DataTableImportJob.md +25 -0
- data/docs/DivsPermittedEntityListing.md +23 -0
- data/docs/EmailMediaParticipant.md +1 -1
- data/docs/EntityListing.md +17 -0
- data/docs/ErrorBody.md +2 -2
- data/docs/ErrorInfo.md +14 -0
- data/docs/Evaluation.md +1 -0
- data/docs/EvaluationQuestionGroupScore.md +4 -0
- data/docs/EvaluationScoringSet.md +1 -0
- data/docs/FacebookIntegrationRequest.md +2 -2
- data/docs/GDPRJourneyCustomer.md +2 -2
- data/docs/InboundDomain.md +2 -0
- data/docs/Library.md +4 -3
- data/docs/LicenseApi.md +66 -0
- data/docs/MailFromResult.md +15 -0
- data/docs/ManagementUnit.md +2 -2
- data/docs/ManagementUnitSettingsRequest.md +1 -1
- data/docs/MessageMediaParticipant.md +1 -1
- data/docs/MessagingApi.md +0 -936
- data/docs/MessagingTemplate.md +15 -0
- data/docs/Organization.md +1 -0
- data/docs/QualityApi.md +5 -6
- data/docs/Record.md +15 -0
- data/docs/ReportingExportMetadataJobListing.md +22 -0
- data/docs/ReportingExportMetadataJobResponse.md +22 -0
- data/docs/Response.md +2 -0
- data/docs/RoutingApi.md +385 -0
- data/docs/RoutingSettings.md +13 -0
- data/docs/SCIMApi.md +397 -23
- data/docs/ScimUserExtensions.md +14 -0
- data/docs/ScimUserRole.md +13 -0
- data/docs/ScimUserRoutingLanguage.md +14 -0
- data/docs/ScimUserRoutingSkill.md +14 -0
- data/docs/ScimV2CreateUser.md +2 -1
- data/docs/ScimV2SchemaAttribute.md +24 -0
- data/docs/ScimV2SchemaDefinition.md +17 -0
- data/docs/ScimV2SchemaListResponse.md +17 -0
- data/docs/ScimV2User.md +2 -1
- data/docs/ShortTermForecast.md +2 -2
- data/docs/ShortTermForecastListItemResponse.md +2 -2
- data/docs/ShortTermForecastReference.md +2 -2
- data/docs/TimeOffRequestLookup.md +3 -3
- data/docs/TimeOffRequestResponse.md +3 -3
- data/docs/UserScheduleAdherence.md +1 -1
- data/docs/UsersApi.md +358 -10
- data/docs/ViewFilter.md +4 -10
- data/docs/WeekSchedule.md +1 -1
- data/docs/WeekScheduleListItemResponse.md +1 -1
- data/docs/WeekScheduleReference.md +1 -1
- data/docs/WorkPlanShift.md +1 -1
- data/docs/WorkforceManagementApi.md +40 -41
- data/lib/purecloudplatformclientv2.rb +27 -0
- data/lib/purecloudplatformclientv2/api/analytics_api.rb +73 -0
- data/lib/purecloudplatformclientv2/api/architect_api.rb +373 -0
- data/lib/purecloudplatformclientv2/api/audit_api.rb +9 -0
- data/lib/purecloudplatformclientv2/api/authorization_api.rb +185 -7
- data/lib/purecloudplatformclientv2/api/conversations_api.rb +84 -0
- data/lib/purecloudplatformclientv2/api/license_api.rb +63 -0
- data/lib/purecloudplatformclientv2/api/messaging_api.rb +0 -949
- data/lib/purecloudplatformclientv2/api/quality_api.rb +8 -6
- data/lib/purecloudplatformclientv2/api/routing_api.rb +378 -0
- data/lib/purecloudplatformclientv2/api/scim_api.rb +366 -26
- data/lib/purecloudplatformclientv2/api/users_api.rb +398 -7
- data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +3 -3
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/activity_code.rb +30 -30
- data/lib/purecloudplatformclientv2/models/analytics_conversation_async_query_response.rb +15 -15
- data/lib/purecloudplatformclientv2/models/analytics_conversation_query_response.rb +15 -15
- data/lib/purecloudplatformclientv2/models/analytics_participant.rb +27 -1
- data/lib/purecloudplatformclientv2/models/analytics_participant_without_attributes.rb +27 -1
- data/lib/purecloudplatformclientv2/models/audit_log_message.rb +5 -5
- data/lib/purecloudplatformclientv2/models/available_topic.rb +57 -4
- data/lib/purecloudplatformclientv2/models/bu_agent_schedule_activity.rb +332 -0
- data/lib/purecloudplatformclientv2/models/bu_agent_schedule_published_schedule_reference.rb +280 -0
- data/lib/purecloudplatformclientv2/models/bu_agent_schedule_search_response.rb +258 -0
- data/lib/purecloudplatformclientv2/models/bu_agent_schedule_shift.rb +334 -0
- data/lib/purecloudplatformclientv2/models/bu_agent_schedules_search_response.rb +258 -0
- data/lib/purecloudplatformclientv2/models/bu_async_agent_schedules_search_response.rb +320 -0
- data/lib/purecloudplatformclientv2/models/bu_full_day_time_off_marker.rb +332 -0
- data/lib/purecloudplatformclientv2/models/bu_schedule_reference.rb +254 -0
- data/lib/purecloudplatformclientv2/models/call.rb +1 -1
- data/lib/purecloudplatformclientv2/models/call_basic.rb +1 -1
- data/lib/purecloudplatformclientv2/models/call_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/callback_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/campaign_progress.rb +28 -2
- data/lib/purecloudplatformclientv2/models/chat_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/cobrowse_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/conversation_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/copy_attachments_request.rb +240 -0
- data/lib/purecloudplatformclientv2/models/create_management_unit_api_request.rb +37 -16
- data/lib/purecloudplatformclientv2/models/create_management_unit_settings_request.rb +1 -1
- data/lib/purecloudplatformclientv2/models/create_work_plan_shift.rb +1 -1
- data/lib/purecloudplatformclientv2/models/data_table_export_job.rb +455 -0
- data/lib/purecloudplatformclientv2/models/data_table_import_job.rb +547 -0
- data/lib/purecloudplatformclientv2/models/divs_permitted_entity_listing.rb +453 -0
- data/lib/purecloudplatformclientv2/models/email_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/entity_listing.rb +303 -0
- data/lib/purecloudplatformclientv2/models/error_body.rb +20 -20
- data/lib/purecloudplatformclientv2/models/error_info.rb +226 -0
- data/lib/purecloudplatformclientv2/models/evaluation.rb +27 -1
- data/lib/purecloudplatformclientv2/models/evaluation_question_group_score.rb +101 -1
- data/lib/purecloudplatformclientv2/models/evaluation_scoring_set.rb +26 -1
- data/lib/purecloudplatformclientv2/models/facebook_integration_request.rb +2 -7
- data/lib/purecloudplatformclientv2/models/flow_aggregate_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/gdpr_journey_customer.rb +2 -12
- data/lib/purecloudplatformclientv2/models/inbound_domain.rb +53 -1
- data/lib/purecloudplatformclientv2/models/library.rb +44 -2
- data/lib/purecloudplatformclientv2/models/mail_from_result.rb +275 -0
- data/lib/purecloudplatformclientv2/models/management_unit.rb +2 -2
- data/lib/purecloudplatformclientv2/models/management_unit_settings_request.rb +1 -1
- data/lib/purecloudplatformclientv2/models/message_media_participant.rb +1 -1
- data/lib/purecloudplatformclientv2/models/messaging_template.rb +270 -0
- data/lib/purecloudplatformclientv2/models/organization.rb +41 -1
- data/lib/purecloudplatformclientv2/models/record.rb +269 -0
- data/lib/purecloudplatformclientv2/models/reporting_export_job_response.rb +2 -2
- data/lib/purecloudplatformclientv2/models/reporting_export_metadata_job_listing.rb +428 -0
- data/lib/purecloudplatformclientv2/models/reporting_export_metadata_job_response.rb +459 -0
- data/lib/purecloudplatformclientv2/models/response.rb +67 -1
- data/lib/purecloudplatformclientv2/models/routing_settings.rb +202 -0
- data/lib/purecloudplatformclientv2/models/scim_metadata.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_user_extensions.rb +233 -0
- data/lib/purecloudplatformclientv2/models/scim_user_role.rb +203 -0
- data/lib/purecloudplatformclientv2/models/scim_user_routing_language.rb +234 -0
- data/lib/purecloudplatformclientv2/models/scim_user_routing_skill.rb +234 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_create_user.rb +30 -5
- data/lib/purecloudplatformclientv2/models/scim_v2_group_reference.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_v2_member_reference.rb +2 -2
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_attribute.rb +551 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_definition.rb +309 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_schema_list_response.rb +311 -0
- data/lib/purecloudplatformclientv2/models/scim_v2_user.rb +27 -2
- data/lib/purecloudplatformclientv2/models/segment_detail_query_predicate.rb +2 -2
- data/lib/purecloudplatformclientv2/models/short_term_forecast.rb +30 -35
- data/lib/purecloudplatformclientv2/models/short_term_forecast_list_item_response.rb +30 -35
- data/lib/purecloudplatformclientv2/models/short_term_forecast_reference.rb +22 -27
- data/lib/purecloudplatformclientv2/models/time_off_request_lookup.rb +3 -3
- data/lib/purecloudplatformclientv2/models/time_off_request_response.rb +3 -3
- data/lib/purecloudplatformclientv2/models/user_schedule_adherence.rb +1 -1
- data/lib/purecloudplatformclientv2/models/view_filter.rb +53 -255
- data/lib/purecloudplatformclientv2/models/week_schedule.rb +21 -21
- data/lib/purecloudplatformclientv2/models/week_schedule_list_item_response.rb +21 -21
- data/lib/purecloudplatformclientv2/models/week_schedule_reference.rb +14 -14
- data/lib/purecloudplatformclientv2/models/work_plan_shift.rb +1 -1
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +56 -2
@@ -172,6 +172,70 @@ module PureCloud
|
|
172
172
|
return data, status_code, headers
|
173
173
|
end
|
174
174
|
|
175
|
+
# Delete the user's max utilization settings and revert to the organization-wide default.
|
176
|
+
#
|
177
|
+
# @param user_id User ID
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [nil]
|
180
|
+
def delete_routing_user_utilization(user_id, opts = {})
|
181
|
+
delete_routing_user_utilization_with_http_info(user_id, opts)
|
182
|
+
return nil
|
183
|
+
end
|
184
|
+
|
185
|
+
# Delete the user's max utilization settings and revert to the organization-wide default.
|
186
|
+
#
|
187
|
+
# @param user_id User ID
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
190
|
+
def delete_routing_user_utilization_with_http_info(user_id, opts = {})
|
191
|
+
if @api_client.config.debugging
|
192
|
+
@api_client.config.logger.debug "Calling API: UsersApi.delete_routing_user_utilization ..."
|
193
|
+
end
|
194
|
+
|
195
|
+
|
196
|
+
# verify the required parameter 'user_id' is set
|
197
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.delete_routing_user_utilization" if user_id.nil?
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
# resource path
|
204
|
+
local_var_path = "/api/v2/routing/users/{userId}/utilization".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
205
|
+
|
206
|
+
# query parameters
|
207
|
+
query_params = {}
|
208
|
+
|
209
|
+
# header parameters
|
210
|
+
header_params = {}
|
211
|
+
|
212
|
+
# HTTP header 'Accept' (if needed)
|
213
|
+
local_header_accept = ['application/json']
|
214
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
215
|
+
|
216
|
+
# HTTP header 'Content-Type'
|
217
|
+
local_header_content_type = ['application/json']
|
218
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
219
|
+
|
220
|
+
# form parameters
|
221
|
+
form_params = {}
|
222
|
+
|
223
|
+
# http body (model)
|
224
|
+
post_body = nil
|
225
|
+
|
226
|
+
auth_names = ['PureCloud OAuth']
|
227
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
228
|
+
:header_params => header_params,
|
229
|
+
:query_params => query_params,
|
230
|
+
:form_params => form_params,
|
231
|
+
:body => post_body,
|
232
|
+
:auth_names => auth_names)
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug "API called: UsersApi#delete_routing_user_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
235
|
+
end
|
236
|
+
return data, status_code, headers
|
237
|
+
end
|
238
|
+
|
175
239
|
# Delete user
|
176
240
|
#
|
177
241
|
# @param user_id User ID
|
@@ -647,6 +711,7 @@ module PureCloud
|
|
647
711
|
# @param job_id jobId
|
648
712
|
# @param [Hash] opts the optional parameters
|
649
713
|
# @option opts [String] :cursor Indicates where to resume query results (not required for first page)
|
714
|
+
# @option opts [Integer] :page_size The desired maximum number of results
|
650
715
|
# @return [AnalyticsUserDetailsAsyncQueryResponse]
|
651
716
|
def get_analytics_users_details_job_results(job_id, opts = {})
|
652
717
|
data, _status_code, _headers = get_analytics_users_details_job_results_with_http_info(job_id, opts)
|
@@ -658,6 +723,7 @@ module PureCloud
|
|
658
723
|
# @param job_id jobId
|
659
724
|
# @param [Hash] opts the optional parameters
|
660
725
|
# @option opts [String] :cursor Indicates where to resume query results (not required for first page)
|
726
|
+
# @option opts [Integer] :page_size The desired maximum number of results
|
661
727
|
# @return [Array<(AnalyticsUserDetailsAsyncQueryResponse, Fixnum, Hash)>] AnalyticsUserDetailsAsyncQueryResponse data, response status code and response headers
|
662
728
|
def get_analytics_users_details_job_results_with_http_info(job_id, opts = {})
|
663
729
|
if @api_client.config.debugging
|
@@ -678,12 +744,19 @@ module PureCloud
|
|
678
744
|
|
679
745
|
|
680
746
|
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
681
753
|
# resource path
|
682
754
|
local_var_path = "/api/v2/analytics/users/details/jobs/{jobId}/results".sub('{format}','json').sub('{' + 'jobId' + '}', job_id.to_s)
|
683
755
|
|
684
756
|
# query parameters
|
685
757
|
query_params = {}
|
686
758
|
query_params[:'cursor'] = opts[:'cursor'] if opts[:'cursor']
|
759
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
687
760
|
|
688
761
|
# header parameters
|
689
762
|
header_params = {}
|
@@ -716,8 +789,8 @@ module PureCloud
|
|
716
789
|
return data, status_code, headers
|
717
790
|
end
|
718
791
|
|
719
|
-
# Returns
|
720
|
-
#
|
792
|
+
# Returns which divisions the current user has the given permission in.
|
793
|
+
# This route is deprecated, use authorization/divisionspermitted/paged/me instead.
|
721
794
|
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
722
795
|
# @param [Hash] opts the optional parameters
|
723
796
|
# @option opts [String] :name Search term to filter by division name
|
@@ -727,8 +800,8 @@ module PureCloud
|
|
727
800
|
return data
|
728
801
|
end
|
729
802
|
|
730
|
-
# Returns
|
731
|
-
#
|
803
|
+
# Returns which divisions the current user has the given permission in.
|
804
|
+
# This route is deprecated, use authorization/divisionspermitted/paged/me instead.
|
732
805
|
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
733
806
|
# @param [Hash] opts the optional parameters
|
734
807
|
# @option opts [String] :name Search term to filter by division name
|
@@ -791,8 +864,186 @@ module PureCloud
|
|
791
864
|
return data, status_code, headers
|
792
865
|
end
|
793
866
|
|
794
|
-
# Returns
|
867
|
+
# Returns which divisions the current user has the given permission in.
|
868
|
+
#
|
869
|
+
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
870
|
+
# @param [Hash] opts the optional parameters
|
871
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
872
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
873
|
+
# @return [DivsPermittedEntityListing]
|
874
|
+
def get_authorization_divisionspermitted_paged_me(permission, opts = {})
|
875
|
+
data, _status_code, _headers = get_authorization_divisionspermitted_paged_me_with_http_info(permission, opts)
|
876
|
+
return data
|
877
|
+
end
|
878
|
+
|
879
|
+
# Returns which divisions the current user has the given permission in.
|
795
880
|
#
|
881
|
+
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
882
|
+
# @param [Hash] opts the optional parameters
|
883
|
+
# @option opts [Integer] :page_number Page number
|
884
|
+
# @option opts [Integer] :page_size Page size
|
885
|
+
# @return [Array<(DivsPermittedEntityListing, Fixnum, Hash)>] DivsPermittedEntityListing data, response status code and response headers
|
886
|
+
def get_authorization_divisionspermitted_paged_me_with_http_info(permission, opts = {})
|
887
|
+
if @api_client.config.debugging
|
888
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_authorization_divisionspermitted_paged_me ..."
|
889
|
+
end
|
890
|
+
|
891
|
+
|
892
|
+
# verify the required parameter 'permission' is set
|
893
|
+
fail ArgumentError, "Missing the required parameter 'permission' when calling UsersApi.get_authorization_divisionspermitted_paged_me" if permission.nil?
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
|
901
|
+
|
902
|
+
|
903
|
+
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
# resource path
|
912
|
+
local_var_path = "/api/v2/authorization/divisionspermitted/paged/me".sub('{format}','json')
|
913
|
+
|
914
|
+
# query parameters
|
915
|
+
query_params = {}
|
916
|
+
query_params[:'permission'] = permission
|
917
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
918
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
919
|
+
|
920
|
+
# header parameters
|
921
|
+
header_params = {}
|
922
|
+
|
923
|
+
# HTTP header 'Accept' (if needed)
|
924
|
+
local_header_accept = ['application/json']
|
925
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
926
|
+
|
927
|
+
# HTTP header 'Content-Type'
|
928
|
+
local_header_content_type = ['application/json']
|
929
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
930
|
+
|
931
|
+
# form parameters
|
932
|
+
form_params = {}
|
933
|
+
|
934
|
+
# http body (model)
|
935
|
+
post_body = nil
|
936
|
+
|
937
|
+
auth_names = ['PureCloud OAuth']
|
938
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
939
|
+
:header_params => header_params,
|
940
|
+
:query_params => query_params,
|
941
|
+
:form_params => form_params,
|
942
|
+
:body => post_body,
|
943
|
+
:auth_names => auth_names,
|
944
|
+
:return_type => 'DivsPermittedEntityListing')
|
945
|
+
if @api_client.config.debugging
|
946
|
+
@api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_paged_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
947
|
+
end
|
948
|
+
return data, status_code, headers
|
949
|
+
end
|
950
|
+
|
951
|
+
# Returns which divisions the specified user has the given permission in.
|
952
|
+
#
|
953
|
+
# @param subject_id Subject ID (user or group)
|
954
|
+
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
955
|
+
# @param [Hash] opts the optional parameters
|
956
|
+
# @option opts [Integer] :page_number Page number (default to 1)
|
957
|
+
# @option opts [Integer] :page_size Page size (default to 25)
|
958
|
+
# @return [DivsPermittedEntityListing]
|
959
|
+
def get_authorization_divisionspermitted_paged_subject_id(subject_id, permission, opts = {})
|
960
|
+
data, _status_code, _headers = get_authorization_divisionspermitted_paged_subject_id_with_http_info(subject_id, permission, opts)
|
961
|
+
return data
|
962
|
+
end
|
963
|
+
|
964
|
+
# Returns which divisions the specified user has the given permission in.
|
965
|
+
#
|
966
|
+
# @param subject_id Subject ID (user or group)
|
967
|
+
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
968
|
+
# @param [Hash] opts the optional parameters
|
969
|
+
# @option opts [Integer] :page_number Page number
|
970
|
+
# @option opts [Integer] :page_size Page size
|
971
|
+
# @return [Array<(DivsPermittedEntityListing, Fixnum, Hash)>] DivsPermittedEntityListing data, response status code and response headers
|
972
|
+
def get_authorization_divisionspermitted_paged_subject_id_with_http_info(subject_id, permission, opts = {})
|
973
|
+
if @api_client.config.debugging
|
974
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_authorization_divisionspermitted_paged_subject_id ..."
|
975
|
+
end
|
976
|
+
|
977
|
+
|
978
|
+
# verify the required parameter 'subject_id' is set
|
979
|
+
fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.get_authorization_divisionspermitted_paged_subject_id" if subject_id.nil?
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
# verify the required parameter 'permission' is set
|
987
|
+
fail ArgumentError, "Missing the required parameter 'permission' when calling UsersApi.get_authorization_divisionspermitted_paged_subject_id" if permission.nil?
|
988
|
+
|
989
|
+
|
990
|
+
|
991
|
+
|
992
|
+
|
993
|
+
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
# resource path
|
1006
|
+
local_var_path = "/api/v2/authorization/divisionspermitted/paged/{subjectId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s)
|
1007
|
+
|
1008
|
+
# query parameters
|
1009
|
+
query_params = {}
|
1010
|
+
query_params[:'permission'] = permission
|
1011
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
1012
|
+
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
|
1013
|
+
|
1014
|
+
# header parameters
|
1015
|
+
header_params = {}
|
1016
|
+
|
1017
|
+
# HTTP header 'Accept' (if needed)
|
1018
|
+
local_header_accept = ['application/json']
|
1019
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1020
|
+
|
1021
|
+
# HTTP header 'Content-Type'
|
1022
|
+
local_header_content_type = ['application/json']
|
1023
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1024
|
+
|
1025
|
+
# form parameters
|
1026
|
+
form_params = {}
|
1027
|
+
|
1028
|
+
# http body (model)
|
1029
|
+
post_body = nil
|
1030
|
+
|
1031
|
+
auth_names = ['PureCloud OAuth']
|
1032
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1033
|
+
:header_params => header_params,
|
1034
|
+
:query_params => query_params,
|
1035
|
+
:form_params => form_params,
|
1036
|
+
:body => post_body,
|
1037
|
+
:auth_names => auth_names,
|
1038
|
+
:return_type => 'DivsPermittedEntityListing')
|
1039
|
+
if @api_client.config.debugging
|
1040
|
+
@api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_paged_subject_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1041
|
+
end
|
1042
|
+
return data, status_code, headers
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
# Returns which divisions the specified user has the given permission in.
|
1046
|
+
# This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead.
|
796
1047
|
# @param subject_id Subject ID (user or group)
|
797
1048
|
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
798
1049
|
# @param [Hash] opts the optional parameters
|
@@ -803,8 +1054,8 @@ module PureCloud
|
|
803
1054
|
return data
|
804
1055
|
end
|
805
1056
|
|
806
|
-
# Returns
|
807
|
-
#
|
1057
|
+
# Returns which divisions the specified user has the given permission in.
|
1058
|
+
# This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead.
|
808
1059
|
# @param subject_id Subject ID (user or group)
|
809
1060
|
# @param permission The permission string, including the object to access, e.g. routing:queue:view
|
810
1061
|
# @param [Hash] opts the optional parameters
|
@@ -1180,6 +1431,71 @@ module PureCloud
|
|
1180
1431
|
return data, status_code, headers
|
1181
1432
|
end
|
1182
1433
|
|
1434
|
+
# Get the user's max utilization settings. If not configured, the organization-wide default is returned.
|
1435
|
+
#
|
1436
|
+
# @param user_id User ID
|
1437
|
+
# @param [Hash] opts the optional parameters
|
1438
|
+
# @return [Utilization]
|
1439
|
+
def get_routing_user_utilization(user_id, opts = {})
|
1440
|
+
data, _status_code, _headers = get_routing_user_utilization_with_http_info(user_id, opts)
|
1441
|
+
return data
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
# Get the user's max utilization settings. If not configured, the organization-wide default is returned.
|
1445
|
+
#
|
1446
|
+
# @param user_id User ID
|
1447
|
+
# @param [Hash] opts the optional parameters
|
1448
|
+
# @return [Array<(Utilization, Fixnum, Hash)>] Utilization data, response status code and response headers
|
1449
|
+
def get_routing_user_utilization_with_http_info(user_id, opts = {})
|
1450
|
+
if @api_client.config.debugging
|
1451
|
+
@api_client.config.logger.debug "Calling API: UsersApi.get_routing_user_utilization ..."
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
|
1455
|
+
# verify the required parameter 'user_id' is set
|
1456
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_routing_user_utilization" if user_id.nil?
|
1457
|
+
|
1458
|
+
|
1459
|
+
|
1460
|
+
|
1461
|
+
|
1462
|
+
# resource path
|
1463
|
+
local_var_path = "/api/v2/routing/users/{userId}/utilization".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
1464
|
+
|
1465
|
+
# query parameters
|
1466
|
+
query_params = {}
|
1467
|
+
|
1468
|
+
# header parameters
|
1469
|
+
header_params = {}
|
1470
|
+
|
1471
|
+
# HTTP header 'Accept' (if needed)
|
1472
|
+
local_header_accept = ['application/json']
|
1473
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1474
|
+
|
1475
|
+
# HTTP header 'Content-Type'
|
1476
|
+
local_header_content_type = ['application/json']
|
1477
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1478
|
+
|
1479
|
+
# form parameters
|
1480
|
+
form_params = {}
|
1481
|
+
|
1482
|
+
# http body (model)
|
1483
|
+
post_body = nil
|
1484
|
+
|
1485
|
+
auth_names = ['PureCloud OAuth']
|
1486
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1487
|
+
:header_params => header_params,
|
1488
|
+
:query_params => query_params,
|
1489
|
+
:form_params => form_params,
|
1490
|
+
:body => post_body,
|
1491
|
+
:auth_names => auth_names,
|
1492
|
+
:return_type => 'Utilization')
|
1493
|
+
if @api_client.config.debugging
|
1494
|
+
@api_client.config.logger.debug "API called: UsersApi#get_routing_user_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1495
|
+
end
|
1496
|
+
return data, status_code, headers
|
1497
|
+
end
|
1498
|
+
|
1183
1499
|
# Get user.
|
1184
1500
|
#
|
1185
1501
|
# @param user_id User ID
|
@@ -4475,6 +4791,81 @@ module PureCloud
|
|
4475
4791
|
return data, status_code, headers
|
4476
4792
|
end
|
4477
4793
|
|
4794
|
+
# Update the user's max utilization settings. Include only those media types requiring custom configuration.
|
4795
|
+
#
|
4796
|
+
# @param user_id User ID
|
4797
|
+
# @param body utilization
|
4798
|
+
# @param [Hash] opts the optional parameters
|
4799
|
+
# @return [Utilization]
|
4800
|
+
def put_routing_user_utilization(user_id, body, opts = {})
|
4801
|
+
data, _status_code, _headers = put_routing_user_utilization_with_http_info(user_id, body, opts)
|
4802
|
+
return data
|
4803
|
+
end
|
4804
|
+
|
4805
|
+
# Update the user's max utilization settings. Include only those media types requiring custom configuration.
|
4806
|
+
#
|
4807
|
+
# @param user_id User ID
|
4808
|
+
# @param body utilization
|
4809
|
+
# @param [Hash] opts the optional parameters
|
4810
|
+
# @return [Array<(Utilization, Fixnum, Hash)>] Utilization data, response status code and response headers
|
4811
|
+
def put_routing_user_utilization_with_http_info(user_id, body, opts = {})
|
4812
|
+
if @api_client.config.debugging
|
4813
|
+
@api_client.config.logger.debug "Calling API: UsersApi.put_routing_user_utilization ..."
|
4814
|
+
end
|
4815
|
+
|
4816
|
+
|
4817
|
+
# verify the required parameter 'user_id' is set
|
4818
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.put_routing_user_utilization" if user_id.nil?
|
4819
|
+
|
4820
|
+
|
4821
|
+
|
4822
|
+
|
4823
|
+
|
4824
|
+
|
4825
|
+
# verify the required parameter 'body' is set
|
4826
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.put_routing_user_utilization" if body.nil?
|
4827
|
+
|
4828
|
+
|
4829
|
+
|
4830
|
+
|
4831
|
+
|
4832
|
+
# resource path
|
4833
|
+
local_var_path = "/api/v2/routing/users/{userId}/utilization".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
|
4834
|
+
|
4835
|
+
# query parameters
|
4836
|
+
query_params = {}
|
4837
|
+
|
4838
|
+
# header parameters
|
4839
|
+
header_params = {}
|
4840
|
+
|
4841
|
+
# HTTP header 'Accept' (if needed)
|
4842
|
+
local_header_accept = ['application/json']
|
4843
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
4844
|
+
|
4845
|
+
# HTTP header 'Content-Type'
|
4846
|
+
local_header_content_type = ['application/json']
|
4847
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
4848
|
+
|
4849
|
+
# form parameters
|
4850
|
+
form_params = {}
|
4851
|
+
|
4852
|
+
# http body (model)
|
4853
|
+
post_body = @api_client.object_to_http_body(body)
|
4854
|
+
|
4855
|
+
auth_names = ['PureCloud OAuth']
|
4856
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
4857
|
+
:header_params => header_params,
|
4858
|
+
:query_params => query_params,
|
4859
|
+
:form_params => form_params,
|
4860
|
+
:body => post_body,
|
4861
|
+
:auth_names => auth_names,
|
4862
|
+
:return_type => 'Utilization')
|
4863
|
+
if @api_client.config.debugging
|
4864
|
+
@api_client.config.logger.debug "API called: UsersApi#put_routing_user_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4865
|
+
end
|
4866
|
+
return data, status_code, headers
|
4867
|
+
end
|
4868
|
+
|
4478
4869
|
# Update a user's CallForwarding
|
4479
4870
|
#
|
4480
4871
|
# @param user_id User ID
|