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
@@ -116,7 +116,7 @@ module PureCloud
|
|
116
116
|
|
117
117
|
# Custom attribute writer method checking allowed values (enum).
|
118
118
|
def dimension=(dimension)
|
119
|
-
allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "direction", "wrapUpCode", "
|
119
|
+
allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "purpose", "segmentId", "participantType", "segmentType", "howEnded", "disconnectType", "errorCode", "stationId", "edgeId", "dnis", "ani", "dialerCampaignId", "dialerContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime"]
|
120
120
|
if dimension && !allowed_values.include?(dimension)
|
121
121
|
fail "invalid value for 'dimension', must be one of #{allowed_values}"
|
122
122
|
end
|
@@ -12,12 +12,12 @@ module PureCloud
|
|
12
12
|
|
13
13
|
attr_accessor :self_uri
|
14
14
|
|
15
|
-
attr_accessor :next_uri
|
16
|
-
|
17
15
|
attr_accessor :first_uri
|
18
16
|
|
19
17
|
attr_accessor :previous_uri
|
20
18
|
|
19
|
+
attr_accessor :next_uri
|
20
|
+
|
21
21
|
attr_accessor :last_uri
|
22
22
|
|
23
23
|
attr_accessor :page_count
|
@@ -36,12 +36,12 @@ module PureCloud
|
|
36
36
|
|
37
37
|
:'self_uri' => :'selfUri',
|
38
38
|
|
39
|
-
:'next_uri' => :'nextUri',
|
40
|
-
|
41
39
|
:'first_uri' => :'firstUri',
|
42
40
|
|
43
41
|
:'previous_uri' => :'previousUri',
|
44
42
|
|
43
|
+
:'next_uri' => :'nextUri',
|
44
|
+
|
45
45
|
:'last_uri' => :'lastUri',
|
46
46
|
|
47
47
|
:'page_count' => :'pageCount'
|
@@ -57,9 +57,9 @@ module PureCloud
|
|
57
57
|
:'total' => :'Integer',
|
58
58
|
:'entities' => :'Array<Attribute>',
|
59
59
|
:'self_uri' => :'String',
|
60
|
-
:'next_uri' => :'String',
|
61
60
|
:'first_uri' => :'String',
|
62
61
|
:'previous_uri' => :'String',
|
62
|
+
:'next_uri' => :'String',
|
63
63
|
:'last_uri' => :'String',
|
64
64
|
:'page_count' => :'Integer'
|
65
65
|
|
@@ -95,10 +95,6 @@ module PureCloud
|
|
95
95
|
self.self_uri = attributes[:'selfUri']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes[:'nextUri']
|
99
|
-
self.next_uri = attributes[:'nextUri']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes[:'firstUri']
|
103
99
|
self.first_uri = attributes[:'firstUri']
|
104
100
|
end
|
@@ -107,6 +103,10 @@ module PureCloud
|
|
107
103
|
self.previous_uri = attributes[:'previousUri']
|
108
104
|
end
|
109
105
|
|
106
|
+
if attributes[:'nextUri']
|
107
|
+
self.next_uri = attributes[:'nextUri']
|
108
|
+
end
|
109
|
+
|
110
110
|
if attributes[:'lastUri']
|
111
111
|
self.last_uri = attributes[:'lastUri']
|
112
112
|
end
|
@@ -126,9 +126,9 @@ module PureCloud
|
|
126
126
|
total == o.total &&
|
127
127
|
entities == o.entities &&
|
128
128
|
self_uri == o.self_uri &&
|
129
|
-
next_uri == o.next_uri &&
|
130
129
|
first_uri == o.first_uri &&
|
131
130
|
previous_uri == o.previous_uri &&
|
131
|
+
next_uri == o.next_uri &&
|
132
132
|
last_uri == o.last_uri &&
|
133
133
|
page_count == o.page_count
|
134
134
|
end
|
@@ -140,7 +140,7 @@ module PureCloud
|
|
140
140
|
|
141
141
|
# Calculate hash code according to all attributes.
|
142
142
|
def hash
|
143
|
-
[page_size, page_number, total, entities, self_uri,
|
143
|
+
[page_size, page_number, total, entities, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
|
144
144
|
end
|
145
145
|
|
146
146
|
# build the object from hash
|
@@ -1,31 +1,25 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
class
|
5
|
-
|
4
|
+
class AuditEntity
|
5
|
+
attr_accessor :type
|
6
|
+
|
6
7
|
attr_accessor :id
|
7
8
|
|
8
9
|
attr_accessor :name
|
9
10
|
|
10
|
-
attr_accessor :user
|
11
|
-
|
12
|
-
attr_accessor :primary_source
|
13
|
-
|
14
|
-
# The URI for this object
|
15
11
|
attr_accessor :self_uri
|
16
12
|
|
17
13
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
14
|
def self.attribute_map
|
19
15
|
{
|
20
16
|
|
17
|
+
:'type' => :'type',
|
18
|
+
|
21
19
|
:'id' => :'id',
|
22
20
|
|
23
21
|
:'name' => :'name',
|
24
22
|
|
25
|
-
:'user' => :'user',
|
26
|
-
|
27
|
-
:'primary_source' => :'primarySource',
|
28
|
-
|
29
23
|
:'self_uri' => :'selfUri'
|
30
24
|
|
31
25
|
}
|
@@ -34,10 +28,9 @@ module PureCloud
|
|
34
28
|
# Attribute type mapping.
|
35
29
|
def self.swagger_types
|
36
30
|
{
|
31
|
+
:'type' => :'String',
|
37
32
|
:'id' => :'String',
|
38
33
|
:'name' => :'String',
|
39
|
-
:'user' => :'User',
|
40
|
-
:'primary_source' => :'String',
|
41
34
|
:'self_uri' => :'String'
|
42
35
|
|
43
36
|
}
|
@@ -50,6 +43,10 @@ module PureCloud
|
|
50
43
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
51
44
|
|
52
45
|
|
46
|
+
if attributes[:'type']
|
47
|
+
self.type = attributes[:'type']
|
48
|
+
end
|
49
|
+
|
53
50
|
if attributes[:'id']
|
54
51
|
self.id = attributes[:'id']
|
55
52
|
end
|
@@ -58,14 +55,6 @@ module PureCloud
|
|
58
55
|
self.name = attributes[:'name']
|
59
56
|
end
|
60
57
|
|
61
|
-
if attributes[:'user']
|
62
|
-
self.user = attributes[:'user']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes[:'primarySource']
|
66
|
-
self.primary_source = attributes[:'primarySource']
|
67
|
-
end
|
68
|
-
|
69
58
|
if attributes[:'selfUri']
|
70
59
|
self.self_uri = attributes[:'selfUri']
|
71
60
|
end
|
@@ -76,10 +65,9 @@ module PureCloud
|
|
76
65
|
def ==(o)
|
77
66
|
return true if self.equal?(o)
|
78
67
|
self.class == o.class &&
|
68
|
+
type == o.type &&
|
79
69
|
id == o.id &&
|
80
70
|
name == o.name &&
|
81
|
-
user == o.user &&
|
82
|
-
primary_source == o.primary_source &&
|
83
71
|
self_uri == o.self_uri
|
84
72
|
end
|
85
73
|
|
@@ -90,7 +78,7 @@ module PureCloud
|
|
90
78
|
|
91
79
|
# Calculate hash code according to all attributes.
|
92
80
|
def hash
|
93
|
-
[id, name,
|
81
|
+
[type, id, name, self_uri].hash
|
94
82
|
end
|
95
83
|
|
96
84
|
# build the object from hash
|
@@ -0,0 +1,178 @@
|
|
1
|
+
require 'date'
|
2
|
+
|
3
|
+
module PureCloud
|
4
|
+
class AuditFilter
|
5
|
+
attr_accessor :name
|
6
|
+
|
7
|
+
attr_accessor :type
|
8
|
+
|
9
|
+
attr_accessor :operator
|
10
|
+
|
11
|
+
attr_accessor :values
|
12
|
+
|
13
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
14
|
+
def self.attribute_map
|
15
|
+
{
|
16
|
+
|
17
|
+
:'name' => :'name',
|
18
|
+
|
19
|
+
:'type' => :'type',
|
20
|
+
|
21
|
+
:'operator' => :'operator',
|
22
|
+
|
23
|
+
:'values' => :'values'
|
24
|
+
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'name' => :'String',
|
32
|
+
:'type' => :'String',
|
33
|
+
:'operator' => :'String',
|
34
|
+
:'values' => :'Array<String>'
|
35
|
+
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
44
|
+
|
45
|
+
|
46
|
+
if attributes[:'name']
|
47
|
+
self.name = attributes[:'name']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes[:'type']
|
51
|
+
self.type = attributes[:'type']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'operator']
|
55
|
+
self.operator = attributes[:'operator']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'values']
|
59
|
+
if (value = attributes[:'values']).is_a?(Array)
|
60
|
+
self.values = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
# Check equality by comparing each attribute.
|
67
|
+
def ==(o)
|
68
|
+
return true if self.equal?(o)
|
69
|
+
self.class == o.class &&
|
70
|
+
name == o.name &&
|
71
|
+
type == o.type &&
|
72
|
+
operator == o.operator &&
|
73
|
+
values == o.values
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
def eql?(o)
|
78
|
+
self == o
|
79
|
+
end
|
80
|
+
|
81
|
+
# Calculate hash code according to all attributes.
|
82
|
+
def hash
|
83
|
+
[name, type, operator, values].hash
|
84
|
+
end
|
85
|
+
|
86
|
+
# build the object from hash
|
87
|
+
def build_from_hash(attributes)
|
88
|
+
return nil unless attributes.is_a?(Hash)
|
89
|
+
self.class.swagger_types.each_pair do |key, type|
|
90
|
+
if type =~ /^Array<(.*)>/i
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
93
|
+
else
|
94
|
+
#TODO show warning in debug mode
|
95
|
+
end
|
96
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
98
|
+
else
|
99
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
self
|
104
|
+
end
|
105
|
+
|
106
|
+
def _deserialize(type, value)
|
107
|
+
case type.to_sym
|
108
|
+
when :DateTime
|
109
|
+
DateTime.parse(value)
|
110
|
+
when :Date
|
111
|
+
Date.parse(value)
|
112
|
+
when :String
|
113
|
+
value.to_s
|
114
|
+
when :Integer
|
115
|
+
value.to_i
|
116
|
+
when :Float
|
117
|
+
value.to_f
|
118
|
+
when :BOOLEAN
|
119
|
+
if value =~ /^(true|t|yes|y|1)$/i
|
120
|
+
true
|
121
|
+
else
|
122
|
+
false
|
123
|
+
end
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
127
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
130
|
+
{}.tap do |hash|
|
131
|
+
value.each do |k, v|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
else # model
|
136
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
137
|
+
_model.build_from_hash(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
def to_s
|
142
|
+
to_hash.to_s
|
143
|
+
end
|
144
|
+
|
145
|
+
# to_body is an alias to to_body (backward compatibility))
|
146
|
+
def to_body
|
147
|
+
to_hash
|
148
|
+
end
|
149
|
+
|
150
|
+
# return the object in the form of hash
|
151
|
+
def to_hash
|
152
|
+
hash = {}
|
153
|
+
self.class.attribute_map.each_pair do |attr, param|
|
154
|
+
value = self.send(attr)
|
155
|
+
next if value.nil?
|
156
|
+
hash[param] = _to_hash(value)
|
157
|
+
end
|
158
|
+
hash
|
159
|
+
end
|
160
|
+
|
161
|
+
# Method to output non-array value in the form of hash
|
162
|
+
# For object, use to_hash. Otherwise, just return the value
|
163
|
+
def _to_hash(value)
|
164
|
+
if value.is_a?(Array)
|
165
|
+
value.compact.map{ |v| _to_hash(v) }
|
166
|
+
elsif value.is_a?(Hash)
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
169
|
+
end
|
170
|
+
elsif value.respond_to? :to_hash
|
171
|
+
value.to_hash
|
172
|
+
else
|
173
|
+
value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
end
|
178
|
+
end
|
@@ -77,7 +77,7 @@ module PureCloud
|
|
77
77
|
def self.swagger_types
|
78
78
|
{
|
79
79
|
:'id' => :'String',
|
80
|
-
:'user' => :'
|
80
|
+
:'user' => :'AuditUser',
|
81
81
|
:'correlation_id' => :'String',
|
82
82
|
:'transaction_id' => :'String',
|
83
83
|
:'transaction_initiator' => :'BOOLEAN',
|
@@ -90,7 +90,7 @@ module PureCloud
|
|
90
90
|
:'action_context' => :'String',
|
91
91
|
:'action' => :'String',
|
92
92
|
:'changes' => :'Array<Change>',
|
93
|
-
:'entity' => :'
|
93
|
+
:'entity' => :'AuditEntity',
|
94
94
|
:'service_context' => :'ServiceContext'
|
95
95
|
|
96
96
|
}
|
@@ -1,22 +1,22 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
class
|
5
|
-
attr_accessor :
|
4
|
+
class AuditUser
|
5
|
+
attr_accessor :id
|
6
6
|
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :name
|
8
8
|
|
9
|
-
attr_accessor :
|
9
|
+
attr_accessor :display
|
10
10
|
|
11
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
12
12
|
def self.attribute_map
|
13
13
|
{
|
14
14
|
|
15
|
-
:'
|
15
|
+
:'id' => :'id',
|
16
16
|
|
17
|
-
:'
|
17
|
+
:'name' => :'name',
|
18
18
|
|
19
|
-
:'
|
19
|
+
:'display' => :'display'
|
20
20
|
|
21
21
|
}
|
22
22
|
end
|
@@ -24,9 +24,9 @@ module PureCloud
|
|
24
24
|
# Attribute type mapping.
|
25
25
|
def self.swagger_types
|
26
26
|
{
|
27
|
+
:'id' => :'String',
|
27
28
|
:'name' => :'String',
|
28
|
-
:'
|
29
|
-
:'items' => :'Array<FacetItem>'
|
29
|
+
:'display' => :'String'
|
30
30
|
|
31
31
|
}
|
32
32
|
end
|
@@ -38,18 +38,16 @@ module PureCloud
|
|
38
38
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
39
39
|
|
40
40
|
|
41
|
-
if attributes[:'
|
42
|
-
self.
|
41
|
+
if attributes[:'id']
|
42
|
+
self.id = attributes[:'id']
|
43
43
|
end
|
44
44
|
|
45
|
-
if attributes[:'
|
46
|
-
self.
|
45
|
+
if attributes[:'name']
|
46
|
+
self.name = attributes[:'name']
|
47
47
|
end
|
48
48
|
|
49
|
-
if attributes[:'
|
50
|
-
|
51
|
-
self.items = value
|
52
|
-
end
|
49
|
+
if attributes[:'display']
|
50
|
+
self.display = attributes[:'display']
|
53
51
|
end
|
54
52
|
|
55
53
|
end
|
@@ -58,9 +56,9 @@ module PureCloud
|
|
58
56
|
def ==(o)
|
59
57
|
return true if self.equal?(o)
|
60
58
|
self.class == o.class &&
|
59
|
+
id == o.id &&
|
61
60
|
name == o.name &&
|
62
|
-
|
63
|
-
items == o.items
|
61
|
+
display == o.display
|
64
62
|
end
|
65
63
|
|
66
64
|
# @see the `==` method
|
@@ -70,7 +68,7 @@ module PureCloud
|
|
70
68
|
|
71
69
|
# Calculate hash code according to all attributes.
|
72
70
|
def hash
|
73
|
-
[
|
71
|
+
[id, name, display].hash
|
74
72
|
end
|
75
73
|
|
76
74
|
# build the object from hash
|