purecloud 0.28.0 → 0.29.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config-ruby.json +1 -1
- data/lib/purecloud.rb +119 -110
- data/lib/purecloud/api/alerting_api.rb +609 -0
- data/lib/purecloud/api/analytics_api.rb +0 -618
- data/lib/purecloud/api/authorization_api.rb +32 -26
- data/lib/purecloud/api/callbacks_api.rb +5 -5
- data/lib/purecloud/api/calls_api.rb +5 -5
- data/lib/purecloud/api/chats_api.rb +5 -5
- data/lib/purecloud/api/configuration_api.rb +325 -4514
- data/lib/purecloud/api/conversations_api.rb +30 -157
- data/lib/purecloud/api/emails_api.rb +5 -5
- data/lib/purecloud/api/groups_api.rb +120 -0
- data/lib/purecloud/api/integrations_api.rb +6 -0
- data/lib/purecloud/api/integrations_workforce_management_api.rb +73 -0
- data/lib/purecloud/api/languages_api.rb +181 -0
- data/lib/purecloud/api/organization_api.rb +243 -0
- data/lib/purecloud/api/outbound_api.rb +13 -380
- data/lib/purecloud/api/presence_api.rb +20 -222
- data/lib/purecloud/api/quality_api.rb +30 -0
- data/lib/purecloud/api/recording_api.rb +12 -0
- data/lib/purecloud/api/routing_api.rb +211 -8
- data/lib/purecloud/api/scripts_api.rb +8 -2
- data/lib/purecloud/api/search_api.rb +315 -13
- data/lib/purecloud/api/socials_api.rb +5 -5
- data/lib/purecloud/api/telephony_providers_edge_api.rb +4594 -698
- data/lib/purecloud/api/users_api.rb +303 -44
- data/lib/purecloud/api/utilities_api.rb +0 -58
- data/lib/purecloud/api/videos_api.rb +5 -5
- data/lib/purecloud/models/address.rb +49 -51
- data/lib/purecloud/models/address_listing.rb +12 -12
- data/lib/purecloud/models/agent_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/{analytics_segment.rb → analytics_conversation_segment.rb} +8 -8
- data/lib/purecloud/models/analytics_query_predicate.rb +1 -1
- data/lib/purecloud/models/analytics_session.rb +1 -1
- data/lib/purecloud/models/attribute_entity_listing.rb +11 -11
- data/lib/purecloud/models/{primary_user_presence_source.rb → audit_entity.rb} +12 -24
- data/lib/purecloud/models/{facet.rb → audit_facet.rb} +1 -1
- data/lib/purecloud/models/audit_filter.rb +178 -0
- data/lib/purecloud/models/audit_message.rb +2 -2
- data/lib/purecloud/models/{facet_group.rb → audit_user.rb} +18 -20
- data/lib/purecloud/models/automate_queue_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/available_additional_service_listing.rb +11 -11
- data/lib/purecloud/models/available_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/{chat_search_item.rb → billing_address.rb} +37 -27
- data/lib/purecloud/models/calibration_entity_listing.rb +11 -11
- data/lib/purecloud/models/call.rb +16 -4
- data/lib/purecloud/models/call_conversation.rb +1 -1
- data/lib/purecloud/models/{chat_search_listing.rb → call_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{call_participant.rb → call_media_participant.rb} +1 -1
- data/lib/purecloud/models/callable_time.rb +1 -1
- data/lib/purecloud/models/callable_time_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/callback_conversation.rb +1 -1
- data/lib/purecloud/models/callback_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{callback_participant.rb → callback_media_participant.rb} +1 -1
- data/lib/purecloud/models/campaign.rb +219 -17
- data/lib/purecloud/models/campaign_entity_listing.rb +11 -11
- data/lib/purecloud/models/campaign_sequence_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facet_item.rb → campaign_time_slot.rb} +20 -20
- data/lib/purecloud/models/carrier_entity_listing.rb +11 -11
- data/lib/purecloud/models/certificate_authority_entity_listing.rb +11 -11
- data/lib/purecloud/models/change.rb +1 -1
- data/lib/purecloud/models/channel_entity_listing.rb +11 -11
- data/lib/purecloud/models/channel_topic_entity_listing.rb +11 -11
- data/lib/purecloud/models/chat_conversation.rb +1 -1
- data/lib/purecloud/models/{rule_entity_listing.rb → chat_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{chat_participant.rb → chat_media_participant.rb} +1 -1
- data/lib/purecloud/models/command_status_entity_listing.rb +11 -11
- data/lib/purecloud/models/common_audit_request.rb +2 -2
- data/lib/purecloud/models/{template.rb → composer_template.rb} +2 -2
- data/lib/purecloud/models/consumed_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/consuming_resources_entity_listing.rb +11 -11
- data/lib/purecloud/models/{client_transform_model.rb → contact_address.rb} +42 -36
- data/lib/purecloud/models/contact_list.rb +111 -1
- data/lib/purecloud/models/contact_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/contact_listing.rb +11 -11
- data/lib/purecloud/models/{dialer_disposition_call_command.rb → contact_phone_number_column.rb} +20 -20
- data/lib/purecloud/models/{facet_filter_item.rb → content_filter_item.rb} +1 -1
- data/lib/purecloud/models/{transform_progress.rb → conversation_chat.rb} +91 -82
- data/lib/purecloud/models/conversation_entity_listing.rb +11 -11
- data/lib/purecloud/models/create_share_request.rb +2 -2
- data/lib/purecloud/models/create_share_request_member.rb +1 -1
- data/lib/purecloud/models/customer_account.rb +1 -1
- data/lib/purecloud/models/deleted_resource_consumer_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_object_entity_listing.rb +11 -11
- data/lib/purecloud/models/dependency_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/{action.rb → dialer_action.rb} +1 -1
- data/lib/purecloud/models/dialer_audit_request.rb +2 -2
- data/lib/purecloud/models/{transform_model.rb → dialer_contact.rb} +42 -28
- data/lib/purecloud/models/{rule.rb → dialer_rule.rb} +2 -2
- data/lib/purecloud/models/did.rb +1 -1
- data/lib/purecloud/models/did_entity_listing.rb +11 -11
- data/lib/purecloud/models/did_pool.rb +1 -1
- data/lib/purecloud/models/did_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/{metric_threshold.rb → disconnect_reason.rb} +29 -19
- data/lib/purecloud/models/dnc_list_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_audit_entity_listing.rb +11 -11
- data/lib/purecloud/models/document_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_billing_period_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_certificate_authority.rb +1 -1
- data/lib/purecloud/models/domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +11 -11
- data/lib/purecloud/models/domain_entity_listing_query_result.rb +11 -11
- data/lib/purecloud/models/domain_invoice_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_logical_interface.rb +28 -2
- data/lib/purecloud/models/{dialer_place_call_command.rb → domain_role.rb} +16 -14
- data/lib/purecloud/models/domain_third_party_account_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_third_party_subscription_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_extended_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_international_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/domain_voice_rate_response_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge.rb +1 -1
- data/lib/purecloud/models/edge_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_group.rb +1 -1
- data/lib/purecloud/models/edge_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/edge_line.rb +1 -1
- data/lib/purecloud/models/edge_line_entity_listing.rb +11 -11
- data/lib/purecloud/models/email_conversation.rb +1 -1
- data/lib/purecloud/models/{user_presence_entity_listing.rb → email_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{email_participant.rb → email_media_participant.rb} +1 -1
- data/lib/purecloud/models/email_message.rb +56 -26
- data/lib/purecloud/models/email_message_listing.rb +11 -11
- data/lib/purecloud/models/encryption_key_entity_listing.rb +11 -11
- data/lib/purecloud/models/endpoint.rb +2 -2
- data/lib/purecloud/models/endpoint_entity_listing.rb +11 -11
- data/lib/purecloud/models/entity.rb +20 -10
- data/lib/purecloud/models/evaluation_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluation_form_entity_listing.rb +11 -11
- data/lib/purecloud/models/evaluator_activity_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension.rb +1 -1
- data/lib/purecloud/models/extension_entity_listing.rb +11 -11
- data/lib/purecloud/models/extension_pool.rb +1 -1
- data/lib/purecloud/models/extension_pool_entity_listing.rb +11 -11
- data/lib/purecloud/models/external_contact.rb +1 -1
- data/lib/purecloud/models/external_organization.rb +1 -1
- data/lib/purecloud/models/external_organization_listing.rb +11 -11
- data/lib/purecloud/models/fax_document_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_body.rb +1 -1
- data/lib/purecloud/models/flow_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_history_result_item_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_search_request.rb +222 -0
- data/lib/purecloud/models/flow_version_config_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/flow_version_entity_listing.rb +11 -11
- data/lib/purecloud/models/group.rb +42 -36
- data/lib/purecloud/models/group_entity_listing.rb +11 -11
- data/lib/purecloud/models/groups_search_response.rb +230 -0
- data/lib/purecloud/models/hardware_rate_listing.rb +11 -11
- data/lib/purecloud/models/health_check_info.rb +1 -31
- data/lib/purecloud/models/inbound_domain_entity_listing.rb +11 -11
- data/lib/purecloud/models/inbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/integration_type_entity_listing.rb +11 -11
- data/lib/purecloud/models/interaction_stats_alert.rb +373 -0
- data/lib/purecloud/models/interaction_stats_alert_container.rb +238 -0
- data/lib/purecloud/models/{alert.rb → interaction_stats_rule.rb} +111 -80
- data/lib/purecloud/models/interaction_stats_rule_container.rb +238 -0
- data/lib/purecloud/models/ivr.rb +1 -1
- data/lib/purecloud/models/ivr_entity_listing.rb +11 -11
- data/lib/purecloud/models/json_node.rb +395 -0
- data/lib/purecloud/models/json_node_search_response.rb +228 -0
- data/lib/purecloud/models/language_entity_listing.rb +11 -11
- data/lib/purecloud/models/library_entity_listing.rb +11 -11
- data/lib/purecloud/models/line.rb +2 -2
- data/lib/purecloud/models/line_base.rb +1 -1
- data/lib/purecloud/models/line_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/line_entity_listing.rb +11 -11
- data/lib/purecloud/models/{body_1.rb → line_properties.rb} +1 -1
- data/lib/purecloud/models/linked_entity_listing_flow_details.rb +11 -11
- data/lib/purecloud/models/linked_entity_listing_work_item_search_details.rb +11 -11
- data/lib/purecloud/models/location_entity_listing.rb +11 -11
- data/lib/purecloud/models/logical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/media_participant_request.rb +232 -0
- data/lib/purecloud/models/{inline_response_200.rb → member_entity.rb} +13 -3
- data/lib/purecloud/models/note_listing.rb +11 -11
- data/lib/purecloud/models/number_plan.rb +1 -1
- data/lib/purecloud/models/o_auth_client.rb +1 -1
- data/lib/purecloud/models/o_auth_client_entity_listing.rb +11 -11
- data/lib/purecloud/models/o_auth_provider_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization.rb +2 -22
- data/lib/purecloud/models/organization_presence_entity_listing.rb +11 -11
- data/lib/purecloud/models/organization_role_entity_listing.rb +11 -11
- data/lib/purecloud/models/orphan_recording_listing.rb +11 -11
- data/lib/purecloud/models/outbound_route.rb +1 -1
- data/lib/purecloud/models/outbound_route_entity_listing.rb +11 -11
- data/lib/purecloud/models/page.rb +2 -2
- data/lib/purecloud/models/participant.rb +1 -1
- data/lib/purecloud/models/participant_request.rb +7 -0
- data/lib/purecloud/models/payment_method_listing.rb +11 -11
- data/lib/purecloud/models/permission_collection_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone.rb +2 -2
- data/lib/purecloud/models/phone_base.rb +1 -1
- data/lib/purecloud/models/phone_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_entity_listing.rb +11 -11
- data/lib/purecloud/models/phone_meta_base_entity_listing.rb +11 -11
- data/lib/purecloud/models/physical_interface_entity_listing.rb +11 -11
- data/lib/purecloud/models/policy_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_asset.rb +25 -1
- data/lib/purecloud/models/prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/quality_audit_page.rb +11 -11
- data/lib/purecloud/models/query_request.rb +1 -1
- data/lib/purecloud/models/queue.rb +1 -1
- data/lib/purecloud/models/queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/queues_entity_listing.rb +11 -11
- data/lib/purecloud/models/quote_charge.rb +1 -1
- data/lib/purecloud/models/quote_listing.rb +11 -11
- data/lib/purecloud/models/recording.rb +13 -2
- data/lib/purecloud/models/{preview.rb → recording_email_message.rb} +72 -57
- data/lib/purecloud/models/relationship_listing.rb +11 -11
- data/lib/purecloud/models/report_meta_data_entity_listing.rb +11 -11
- data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +11 -11
- data/lib/purecloud/models/report_schedule.rb +1 -1
- data/lib/purecloud/models/report_schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/resource_permission_policy.rb +1 -11
- data/lib/purecloud/models/response.rb +84 -14
- data/lib/purecloud/models/response_entity_list.rb +11 -11
- data/lib/purecloud/models/response_entity_listing.rb +11 -11
- data/lib/purecloud/models/{filter.rb → response_filter.rb} +1 -1
- data/lib/purecloud/models/response_query_request.rb +1 -1
- data/lib/purecloud/models/response_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/rule_set.rb +1 -1
- data/lib/purecloud/models/rule_set_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule.rb +1 -1
- data/lib/purecloud/models/schedule_entity_listing.rb +11 -11
- data/lib/purecloud/models/schedule_group.rb +1 -1
- data/lib/purecloud/models/schedule_group_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/schema_reference_entity_listing.rb +11 -11
- data/lib/purecloud/models/script_entity_listing.rb +11 -11
- data/lib/purecloud/models/{occurrence.rb → search_aggregation.rb} +19 -9
- data/lib/purecloud/models/{conversation_historical_query_request_filter.rb → search_criteria.rb} +83 -24
- data/lib/purecloud/models/search_request.rb +73 -50
- data/lib/purecloud/models/security_profile_entity_listing.rb +11 -11
- data/lib/purecloud/models/service_entity_listing.rb +11 -11
- data/lib/purecloud/models/share_entity_listing.rb +11 -11
- data/lib/purecloud/models/{group_images.rb → shared_entity.rb} +8 -10
- data/lib/purecloud/models/site.rb +1 -1
- data/lib/purecloud/models/site_entity_listing.rb +11 -11
- data/lib/purecloud/models/skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/social_conversation.rb +1 -1
- data/lib/purecloud/models/social_conversation_entity_listing.rb +238 -0
- data/lib/purecloud/models/{social_participant.rb → social_media_participant.rb} +1 -1
- data/lib/purecloud/models/spreadsheet_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/station.rb +11 -1
- data/lib/purecloud/models/station_entity_listing.rb +11 -11
- data/lib/purecloud/models/{facets.rb → subscriber_response.rb} +16 -16
- data/lib/purecloud/models/system_prompt_asset.rb +25 -1
- data/lib/purecloud/models/system_prompt_asset_entity_listing.rb +11 -11
- data/lib/purecloud/models/system_prompt_entity_listing.rb +11 -11
- data/lib/purecloud/models/tag_value_entity_listing.rb +11 -11
- data/lib/purecloud/models/template_entity_listing.rb +12 -12
- data/lib/purecloud/models/text_table_transform_entity_listing.rb +11 -11
- data/lib/purecloud/models/time_slot.rb +3 -0
- data/lib/purecloud/models/time_zone_entity_listing.rb +11 -11
- data/lib/purecloud/models/trunk_base.rb +2 -2
- data/lib/purecloud/models/trunk_metabase_entity_listing.rb +11 -11
- data/lib/purecloud/models/unread_metric.rb +1 -0
- data/lib/purecloud/models/unread_status.rb +149 -0
- data/lib/purecloud/models/user.rb +7 -7
- data/lib/purecloud/models/user_action_category_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_action_metadata_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_authorization.rb +7 -37
- data/lib/purecloud/models/user_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_me.rb +375 -0
- data/lib/purecloud/models/user_presence.rb +14 -32
- data/lib/purecloud/models/user_queue.rb +1 -1
- data/lib/purecloud/models/user_queue_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_recording_entity_listing.rb +11 -11
- data/lib/purecloud/models/user_skill_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_entity_listing.rb +11 -11
- data/lib/purecloud/models/users_search_response.rb +230 -0
- data/lib/purecloud/models/validate_address_response.rb +1 -1
- data/lib/purecloud/models/video_conversation.rb +1 -1
- data/lib/purecloud/models/{alert_entity_listing.rb → video_conversation_entity_listing.rb} +13 -13
- data/lib/purecloud/models/{video_participant.rb → video_media_participant.rb} +1 -1
- data/lib/purecloud/models/voice_rate_international_entity_listing.rb +11 -11
- data/lib/purecloud/models/voice_xml_operation_entity_listing.rb +11 -11
- data/lib/purecloud/models/voicemail_message_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_entity_listing.rb +11 -11
- data/lib/purecloud/models/workspace_member_entity_listing.rb +11 -11
- data/lib/purecloud/models/wrapup_code_entity_listing.rb +11 -11
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -1
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +54 -45
- data/lib/purecloud/api/architect_api.rb +0 -3285
- data/lib/purecloud/models/chat_search_request.rb +0 -244
- data/lib/purecloud/models/conversation_historical_query_request_body.rb +0 -185
- data/lib/purecloud/models/conversation_query_response.rb +0 -366
- data/lib/purecloud/models/dialer_call.rb +0 -156
- data/lib/purecloud/models/penetration_rate.rb +0 -176
- data/lib/purecloud/models/penetration_rate_id.rb +0 -156
- data/lib/purecloud/models/progress_model.rb +0 -169
@@ -15,6 +15,8 @@ module PureCloud
|
|
15
15
|
# @option opts [Integer] :page_number The page number requested
|
16
16
|
# @option opts [String] :sort_by variable name requested to sort by
|
17
17
|
# @option opts [Array<String>] :expand variable name requested by expand list
|
18
|
+
# @option opts [String] :next_page next page token
|
19
|
+
# @option opts [String] :previous_page Previous page token
|
18
20
|
# @return [IntegrationTypeEntityListing]
|
19
21
|
def get_types(opts = {})
|
20
22
|
data, status_code, headers = get_types_with_http_info(opts)
|
@@ -28,6 +30,8 @@ module PureCloud
|
|
28
30
|
# @option opts [Integer] :page_number The page number requested
|
29
31
|
# @option opts [String] :sort_by variable name requested to sort by
|
30
32
|
# @option opts [Array<String>] :expand variable name requested by expand list
|
33
|
+
# @option opts [String] :next_page next page token
|
34
|
+
# @option opts [String] :previous_page Previous page token
|
31
35
|
# @return [Array<(IntegrationTypeEntityListing, Fixnum, Hash)>] IntegrationTypeEntityListing data, response status code and response headers
|
32
36
|
def get_types_with_http_info(opts = {})
|
33
37
|
if @api_client.config.debugging
|
@@ -43,6 +47,8 @@ module PureCloud
|
|
43
47
|
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
|
44
48
|
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
|
45
49
|
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
|
50
|
+
query_params[:'nextPage'] = opts[:'next_page'] if opts[:'next_page']
|
51
|
+
query_params[:'previousPage'] = opts[:'previous_page'] if opts[:'previous_page']
|
46
52
|
|
47
53
|
# header parameters
|
48
54
|
header_params = {}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module PureCloud
|
4
|
+
class IntegrationsWorkforceManagementApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Add a vendor connection
|
12
|
+
#
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [VendorConnectionRequest] :body
|
15
|
+
# @return [UserActionCategoryEntityListing]
|
16
|
+
def post_workforcemanagement_vendorconnection(opts = {})
|
17
|
+
data, status_code, headers = post_workforcemanagement_vendorconnection_with_http_info(opts)
|
18
|
+
return data
|
19
|
+
end
|
20
|
+
|
21
|
+
# Add a vendor connection
|
22
|
+
#
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [VendorConnectionRequest] :body
|
25
|
+
# @return [Array<(UserActionCategoryEntityListing, Fixnum, Hash)>] UserActionCategoryEntityListing data, response status code and response headers
|
26
|
+
def post_workforcemanagement_vendorconnection_with_http_info(opts = {})
|
27
|
+
if @api_client.config.debugging
|
28
|
+
@api_client.config.logger.debug "Calling API: IntegrationsWorkforceManagementApi#post_workforcemanagement_vendorconnection ..."
|
29
|
+
end
|
30
|
+
|
31
|
+
# resource path
|
32
|
+
path = "/api/v2/integrations/workforcemanagement/vendorconnection".sub('{format}','json')
|
33
|
+
|
34
|
+
# query parameters
|
35
|
+
query_params = {}
|
36
|
+
|
37
|
+
# header parameters
|
38
|
+
header_params = {}
|
39
|
+
|
40
|
+
# HTTP header 'Accept' (if needed)
|
41
|
+
_header_accept = ['application/json']
|
42
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
43
|
+
|
44
|
+
# HTTP header 'Content-Type'
|
45
|
+
_header_content_type = ['application/json']
|
46
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
47
|
+
|
48
|
+
# form parameters
|
49
|
+
form_params = {}
|
50
|
+
|
51
|
+
# http body (model)
|
52
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
53
|
+
|
54
|
+
|
55
|
+
auth_names = ['PureCloud Auth']
|
56
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => 'UserActionCategoryEntityListing')
|
63
|
+
if @api_client.config.debugging
|
64
|
+
@api_client.config.logger.debug "API called: IntegrationsWorkforceManagementApi#post_workforcemanagement_vendorconnection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
65
|
+
end
|
66
|
+
return data, status_code, headers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
@@ -77,6 +77,64 @@ module PureCloud
|
|
77
77
|
return data, status_code, headers
|
78
78
|
end
|
79
79
|
|
80
|
+
# Create Language
|
81
|
+
#
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [Language] :body Language
|
84
|
+
# @return [Language]
|
85
|
+
def post_languages(opts = {})
|
86
|
+
data, status_code, headers = post_languages_with_http_info(opts)
|
87
|
+
return data
|
88
|
+
end
|
89
|
+
|
90
|
+
# Create Language
|
91
|
+
#
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @option opts [Language] :body Language
|
94
|
+
# @return [Array<(Language, Fixnum, Hash)>] Language data, response status code and response headers
|
95
|
+
def post_languages_with_http_info(opts = {})
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug "Calling API: LanguagesApi#post_languages ..."
|
98
|
+
end
|
99
|
+
|
100
|
+
# resource path
|
101
|
+
path = "/api/v2/languages".sub('{format}','json')
|
102
|
+
|
103
|
+
# query parameters
|
104
|
+
query_params = {}
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = {}
|
108
|
+
|
109
|
+
# HTTP header 'Accept' (if needed)
|
110
|
+
_header_accept = ['application/json']
|
111
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
112
|
+
|
113
|
+
# HTTP header 'Content-Type'
|
114
|
+
_header_content_type = ['application/json']
|
115
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = {}
|
119
|
+
|
120
|
+
# http body (model)
|
121
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
122
|
+
|
123
|
+
|
124
|
+
auth_names = ['PureCloud Auth']
|
125
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
126
|
+
:header_params => header_params,
|
127
|
+
:query_params => query_params,
|
128
|
+
:form_params => form_params,
|
129
|
+
:body => post_body,
|
130
|
+
:auth_names => auth_names,
|
131
|
+
:return_type => 'Language')
|
132
|
+
if @api_client.config.debugging
|
133
|
+
@api_client.config.logger.debug "API called: LanguagesApi#post_languages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
end
|
135
|
+
return data, status_code, headers
|
136
|
+
end
|
137
|
+
|
80
138
|
# Get language
|
81
139
|
#
|
82
140
|
# @param language_id Language ID
|
@@ -137,6 +195,129 @@ module PureCloud
|
|
137
195
|
end
|
138
196
|
return data, status_code, headers
|
139
197
|
end
|
198
|
+
|
199
|
+
# Update Language
|
200
|
+
#
|
201
|
+
# @param language_id Language ID
|
202
|
+
# @param [Hash] opts the optional parameters
|
203
|
+
# @option opts [Language] :body Language
|
204
|
+
# @return [Language]
|
205
|
+
def put_language_id(language_id, opts = {})
|
206
|
+
data, status_code, headers = put_language_id_with_http_info(language_id, opts)
|
207
|
+
return data
|
208
|
+
end
|
209
|
+
|
210
|
+
# Update Language
|
211
|
+
#
|
212
|
+
# @param language_id Language ID
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @option opts [Language] :body Language
|
215
|
+
# @return [Array<(Language, Fixnum, Hash)>] Language data, response status code and response headers
|
216
|
+
def put_language_id_with_http_info(language_id, opts = {})
|
217
|
+
if @api_client.config.debugging
|
218
|
+
@api_client.config.logger.debug "Calling API: LanguagesApi#put_language_id ..."
|
219
|
+
end
|
220
|
+
|
221
|
+
# verify the required parameter 'language_id' is set
|
222
|
+
fail "Missing the required parameter 'language_id' when calling put_language_id" if language_id.nil?
|
223
|
+
|
224
|
+
# resource path
|
225
|
+
path = "/api/v2/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
|
226
|
+
|
227
|
+
# query parameters
|
228
|
+
query_params = {}
|
229
|
+
|
230
|
+
# header parameters
|
231
|
+
header_params = {}
|
232
|
+
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
_header_accept = ['application/json']
|
235
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
236
|
+
|
237
|
+
# HTTP header 'Content-Type'
|
238
|
+
_header_content_type = ['application/json']
|
239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
246
|
+
|
247
|
+
|
248
|
+
auth_names = ['PureCloud Auth']
|
249
|
+
data, status_code, headers = @api_client.call_api(:PUT, path,
|
250
|
+
:header_params => header_params,
|
251
|
+
:query_params => query_params,
|
252
|
+
:form_params => form_params,
|
253
|
+
:body => post_body,
|
254
|
+
:auth_names => auth_names,
|
255
|
+
:return_type => 'Language')
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug "API called: LanguagesApi#put_language_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
258
|
+
end
|
259
|
+
return data, status_code, headers
|
260
|
+
end
|
261
|
+
|
262
|
+
# Delete Language
|
263
|
+
#
|
264
|
+
# @param language_id Language ID
|
265
|
+
# @param [Hash] opts the optional parameters
|
266
|
+
# @return [nil]
|
267
|
+
def delete_language_id(language_id, opts = {})
|
268
|
+
delete_language_id_with_http_info(language_id, opts)
|
269
|
+
return nil
|
270
|
+
end
|
271
|
+
|
272
|
+
# Delete Language
|
273
|
+
#
|
274
|
+
# @param language_id Language ID
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
277
|
+
def delete_language_id_with_http_info(language_id, opts = {})
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "Calling API: LanguagesApi#delete_language_id ..."
|
280
|
+
end
|
281
|
+
|
282
|
+
# verify the required parameter 'language_id' is set
|
283
|
+
fail "Missing the required parameter 'language_id' when calling delete_language_id" if language_id.nil?
|
284
|
+
|
285
|
+
# resource path
|
286
|
+
path = "/api/v2/languages/{languageId}".sub('{format}','json').sub('{' + 'languageId' + '}', language_id.to_s)
|
287
|
+
|
288
|
+
# query parameters
|
289
|
+
query_params = {}
|
290
|
+
|
291
|
+
# header parameters
|
292
|
+
header_params = {}
|
293
|
+
|
294
|
+
# HTTP header 'Accept' (if needed)
|
295
|
+
_header_accept = ['application/json']
|
296
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
297
|
+
|
298
|
+
# HTTP header 'Content-Type'
|
299
|
+
_header_content_type = ['application/json']
|
300
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
301
|
+
|
302
|
+
# form parameters
|
303
|
+
form_params = {}
|
304
|
+
|
305
|
+
# http body (model)
|
306
|
+
post_body = nil
|
307
|
+
|
308
|
+
|
309
|
+
auth_names = ['PureCloud Auth']
|
310
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
311
|
+
:header_params => header_params,
|
312
|
+
:query_params => query_params,
|
313
|
+
:form_params => form_params,
|
314
|
+
:body => post_body,
|
315
|
+
:auth_names => auth_names)
|
316
|
+
if @api_client.config.debugging
|
317
|
+
@api_client.config.logger.debug "API called: LanguagesApi#delete_language_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
318
|
+
end
|
319
|
+
return data, status_code, headers
|
320
|
+
end
|
140
321
|
end
|
141
322
|
end
|
142
323
|
|
@@ -0,0 +1,243 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module PureCloud
|
4
|
+
class OrganizationApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Create an organization.
|
12
|
+
#
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [OrganizationCreate] :body Organization
|
15
|
+
# @return [Organization]
|
16
|
+
def post_organizations(opts = {})
|
17
|
+
data, status_code, headers = post_organizations_with_http_info(opts)
|
18
|
+
return data
|
19
|
+
end
|
20
|
+
|
21
|
+
# Create an organization.
|
22
|
+
#
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [OrganizationCreate] :body Organization
|
25
|
+
# @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
|
26
|
+
def post_organizations_with_http_info(opts = {})
|
27
|
+
if @api_client.config.debugging
|
28
|
+
@api_client.config.logger.debug "Calling API: OrganizationApi#post_organizations ..."
|
29
|
+
end
|
30
|
+
|
31
|
+
# resource path
|
32
|
+
path = "/api/v2/organizations".sub('{format}','json')
|
33
|
+
|
34
|
+
# query parameters
|
35
|
+
query_params = {}
|
36
|
+
|
37
|
+
# header parameters
|
38
|
+
header_params = {}
|
39
|
+
|
40
|
+
# HTTP header 'Accept' (if needed)
|
41
|
+
_header_accept = ['application/json']
|
42
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
43
|
+
|
44
|
+
# HTTP header 'Content-Type'
|
45
|
+
_header_content_type = ['application/json']
|
46
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
47
|
+
|
48
|
+
# form parameters
|
49
|
+
form_params = {}
|
50
|
+
|
51
|
+
# http body (model)
|
52
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
53
|
+
|
54
|
+
|
55
|
+
auth_names = ['PureCloud Auth']
|
56
|
+
data, status_code, headers = @api_client.call_api(:POST, path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => 'Organization')
|
63
|
+
if @api_client.config.debugging
|
64
|
+
@api_client.config.logger.debug "API called: OrganizationApi#post_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
65
|
+
end
|
66
|
+
return data, status_code, headers
|
67
|
+
end
|
68
|
+
|
69
|
+
# Get organization.
|
70
|
+
#
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Organization]
|
73
|
+
def get_me(opts = {})
|
74
|
+
data, status_code, headers = get_me_with_http_info(opts)
|
75
|
+
return data
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get organization.
|
79
|
+
#
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
|
82
|
+
def get_me_with_http_info(opts = {})
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug "Calling API: OrganizationApi#get_me ..."
|
85
|
+
end
|
86
|
+
|
87
|
+
# resource path
|
88
|
+
path = "/api/v2/organizations/me".sub('{format}','json')
|
89
|
+
|
90
|
+
# query parameters
|
91
|
+
query_params = {}
|
92
|
+
|
93
|
+
# header parameters
|
94
|
+
header_params = {}
|
95
|
+
|
96
|
+
# HTTP header 'Accept' (if needed)
|
97
|
+
_header_accept = ['application/json']
|
98
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
99
|
+
|
100
|
+
# HTTP header 'Content-Type'
|
101
|
+
_header_content_type = ['application/json']
|
102
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
103
|
+
|
104
|
+
# form parameters
|
105
|
+
form_params = {}
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
post_body = nil
|
109
|
+
|
110
|
+
|
111
|
+
auth_names = ['PureCloud Auth']
|
112
|
+
data, status_code, headers = @api_client.call_api(:GET, path,
|
113
|
+
:header_params => header_params,
|
114
|
+
:query_params => query_params,
|
115
|
+
:form_params => form_params,
|
116
|
+
:body => post_body,
|
117
|
+
:auth_names => auth_names,
|
118
|
+
:return_type => 'Organization')
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug "API called: OrganizationApi#get_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
121
|
+
end
|
122
|
+
return data, status_code, headers
|
123
|
+
end
|
124
|
+
|
125
|
+
# Update organization.
|
126
|
+
#
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Organization] :body Organization
|
129
|
+
# @return [Organization]
|
130
|
+
def put_me(opts = {})
|
131
|
+
data, status_code, headers = put_me_with_http_info(opts)
|
132
|
+
return data
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update organization.
|
136
|
+
#
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @option opts [Organization] :body Organization
|
139
|
+
# @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
|
140
|
+
def put_me_with_http_info(opts = {})
|
141
|
+
if @api_client.config.debugging
|
142
|
+
@api_client.config.logger.debug "Calling API: OrganizationApi#put_me ..."
|
143
|
+
end
|
144
|
+
|
145
|
+
# resource path
|
146
|
+
path = "/api/v2/organizations/me".sub('{format}','json')
|
147
|
+
|
148
|
+
# query parameters
|
149
|
+
query_params = {}
|
150
|
+
|
151
|
+
# header parameters
|
152
|
+
header_params = {}
|
153
|
+
|
154
|
+
# HTTP header 'Accept' (if needed)
|
155
|
+
_header_accept = ['application/json']
|
156
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
157
|
+
|
158
|
+
# HTTP header 'Content-Type'
|
159
|
+
_header_content_type = ['application/json']
|
160
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
161
|
+
|
162
|
+
# form parameters
|
163
|
+
form_params = {}
|
164
|
+
|
165
|
+
# http body (model)
|
166
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
167
|
+
|
168
|
+
|
169
|
+
auth_names = ['PureCloud Auth']
|
170
|
+
data, status_code, headers = @api_client.call_api(:PUT, path,
|
171
|
+
:header_params => header_params,
|
172
|
+
:query_params => query_params,
|
173
|
+
:form_params => form_params,
|
174
|
+
:body => post_body,
|
175
|
+
:auth_names => auth_names,
|
176
|
+
:return_type => 'Organization')
|
177
|
+
if @api_client.config.debugging
|
178
|
+
@api_client.config.logger.debug "API called: OrganizationApi#put_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
179
|
+
end
|
180
|
+
return data, status_code, headers
|
181
|
+
end
|
182
|
+
|
183
|
+
# Delete the organization.
|
184
|
+
#
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @return [String]
|
187
|
+
def delete_me(opts = {})
|
188
|
+
data, status_code, headers = delete_me_with_http_info(opts)
|
189
|
+
return data
|
190
|
+
end
|
191
|
+
|
192
|
+
# Delete the organization.
|
193
|
+
#
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
196
|
+
def delete_me_with_http_info(opts = {})
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug "Calling API: OrganizationApi#delete_me ..."
|
199
|
+
end
|
200
|
+
|
201
|
+
# resource path
|
202
|
+
path = "/api/v2/organizations/me".sub('{format}','json')
|
203
|
+
|
204
|
+
# query parameters
|
205
|
+
query_params = {}
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = {}
|
209
|
+
|
210
|
+
# HTTP header 'Accept' (if needed)
|
211
|
+
_header_accept = ['application/json']
|
212
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
213
|
+
|
214
|
+
# HTTP header 'Content-Type'
|
215
|
+
_header_content_type = ['application/json']
|
216
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
217
|
+
|
218
|
+
# form parameters
|
219
|
+
form_params = {}
|
220
|
+
|
221
|
+
# http body (model)
|
222
|
+
post_body = nil
|
223
|
+
|
224
|
+
|
225
|
+
auth_names = ['PureCloud Auth']
|
226
|
+
data, status_code, headers = @api_client.call_api(:DELETE, path,
|
227
|
+
:header_params => header_params,
|
228
|
+
:query_params => query_params,
|
229
|
+
:form_params => form_params,
|
230
|
+
:body => post_body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => 'String')
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug "API called: OrganizationApi#delete_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
235
|
+
end
|
236
|
+
return data, status_code, headers
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|