=begin
PureCloud Platform API

With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.

OpenAPI spec version: v2
Contact: DeveloperEvangelists@genesys.com
Generated by: https://github.com/swagger-api/swagger-codegen.git

License: ININ
http://www.inin.com

Terms of Service: https://developer.mypurecloud.com/tos

=end

# Common files
require 'purecloudclient_v2a/api_client'
require 'purecloudclient_v2a/api_error'
require 'purecloudclient_v2a/version'
require 'purecloudclient_v2a/configuration'

# Models
require 'purecloudclient_v2a/models/adfs'
require 'purecloudclient_v2a/models/action'
require 'purecloudclient_v2a/models/action_config'
require 'purecloudclient_v2a/models/action_contract'
require 'purecloudclient_v2a/models/action_contract_input'
require 'purecloudclient_v2a/models/action_entity_listing'
require 'purecloudclient_v2a/models/action_input'
require 'purecloudclient_v2a/models/action_output'
require 'purecloudclient_v2a/models/actions'
require 'purecloudclient_v2a/models/active_alert_count'
require 'purecloudclient_v2a/models/activity_code'
require 'purecloudclient_v2a/models/activity_code_container'
require 'purecloudclient_v2a/models/acw_settings'
require 'purecloudclient_v2a/models/address'
require 'purecloudclient_v2a/models/addressable_entity_user'
require 'purecloudclient_v2a/models/addressable_license_definition'
require 'purecloudclient_v2a/models/adherence_settings'
require 'purecloudclient_v2a/models/adjacents'
require 'purecloudclient_v2a/models/agent'
require 'purecloudclient_v2a/models/agent_activity'
require 'purecloudclient_v2a/models/agent_activity_entity_listing'
require 'purecloudclient_v2a/models/agent_activity_notification'
require 'purecloudclient_v2a/models/agent_activity_notification_organization_presence'
require 'purecloudclient_v2a/models/agent_activity_notification_out_of_office'
require 'purecloudclient_v2a/models/agent_activity_notification_presence'
require 'purecloudclient_v2a/models/agent_activity_notification_presence_presence_definition'
require 'purecloudclient_v2a/models/agent_activity_notification_routing_status'
require 'purecloudclient_v2a/models/agent_evaluator_activity'
require 'purecloudclient_v2a/models/agent_management_unit_reference'
require 'purecloudclient_v2a/models/aggregate_data_container'
require 'purecloudclient_v2a/models/aggregate_metric_data'
require 'purecloudclient_v2a/models/aggregate_query_response'
require 'purecloudclient_v2a/models/aggregate_view_data'
require 'purecloudclient_v2a/models/aggregation_query'
require 'purecloudclient_v2a/models/aggregation_range'
require 'purecloudclient_v2a/models/aggregation_result'
require 'purecloudclient_v2a/models/aggregation_result_entry'
require 'purecloudclient_v2a/models/analytics_conversation'
require 'purecloudclient_v2a/models/analytics_conversation_query_response'
require 'purecloudclient_v2a/models/analytics_conversation_segment'
require 'purecloudclient_v2a/models/analytics_evaluation'
require 'purecloudclient_v2a/models/analytics_participant'
require 'purecloudclient_v2a/models/analytics_property'
require 'purecloudclient_v2a/models/analytics_query_aggregation'
require 'purecloudclient_v2a/models/analytics_query_clause'
require 'purecloudclient_v2a/models/analytics_query_filter'
require 'purecloudclient_v2a/models/analytics_query_predicate'
require 'purecloudclient_v2a/models/analytics_routing_status_record'
require 'purecloudclient_v2a/models/analytics_session'
require 'purecloudclient_v2a/models/analytics_user_detail'
require 'purecloudclient_v2a/models/analytics_user_details_query_response'
require 'purecloudclient_v2a/models/analytics_user_presence_record'
require 'purecloudclient_v2a/models/analytics_view'
require 'purecloudclient_v2a/models/annotation'
require 'purecloudclient_v2a/models/answer_option'
require 'purecloudclient_v2a/models/archive_retention'
require 'purecloudclient_v2a/models/asg_info_response'
require 'purecloudclient_v2a/models/attachment'
require 'purecloudclient_v2a/models/attempt_limits'
require 'purecloudclient_v2a/models/attempt_limits_entity_listing'
require 'purecloudclient_v2a/models/attempt_limits_notification'
require 'purecloudclient_v2a/models/attempt_limits_notification_recall_entries'
require 'purecloudclient_v2a/models/attempt_limits_notification_recall_entry'
require 'purecloudclient_v2a/models/attribute'
require 'purecloudclient_v2a/models/attribute_entity_listing'
require 'purecloudclient_v2a/models/attribute_filter_item'
require 'purecloudclient_v2a/models/attribute_query_request'
require 'purecloudclient_v2a/models/audit_change'
require 'purecloudclient_v2a/models/audit_entity'
require 'purecloudclient_v2a/models/audit_entity_reference'
require 'purecloudclient_v2a/models/audit_facet'
require 'purecloudclient_v2a/models/audit_filter'
require 'purecloudclient_v2a/models/audit_message'
require 'purecloudclient_v2a/models/audit_query_response'
require 'purecloudclient_v2a/models/audit_search_result'
require 'purecloudclient_v2a/models/audit_user'
require 'purecloudclient_v2a/models/available_language_list'
require 'purecloudclient_v2a/models/available_topic'
require 'purecloudclient_v2a/models/available_topic_entity_listing'
require 'purecloudclient_v2a/models/available_translations'
require 'purecloudclient_v2a/models/billing_usage'
require 'purecloudclient_v2a/models/billing_usage_report'
require 'purecloudclient_v2a/models/billing_usage_resource'
require 'purecloudclient_v2a/models/bullseye'
require 'purecloudclient_v2a/models/calibration'
require 'purecloudclient_v2a/models/calibration_assignment'
require 'purecloudclient_v2a/models/calibration_create'
require 'purecloudclient_v2a/models/calibration_entity_listing'
require 'purecloudclient_v2a/models/call'
require 'purecloudclient_v2a/models/call_basic'
require 'purecloudclient_v2a/models/call_command'
require 'purecloudclient_v2a/models/call_conversation'
require 'purecloudclient_v2a/models/call_conversation_entity_listing'
require 'purecloudclient_v2a/models/call_conversation_notification'
require 'purecloudclient_v2a/models/call_conversation_notification_call_media_participant'
require 'purecloudclient_v2a/models/call_conversation_notification_detail'
require 'purecloudclient_v2a/models/call_conversation_notification_error_body'
require 'purecloudclient_v2a/models/call_conversation_notification_error_info'
require 'purecloudclient_v2a/models/call_conversation_notification_fax_status'
require 'purecloudclient_v2a/models/call_conversation_notification_participants'
require 'purecloudclient_v2a/models/call_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/call_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/call_forwarding'
require 'purecloudclient_v2a/models/call_history_conversation'
require 'purecloudclient_v2a/models/call_history_conversation_entity_listing'
require 'purecloudclient_v2a/models/call_history_participant'
require 'purecloudclient_v2a/models/call_media_participant'
require 'purecloudclient_v2a/models/call_media_policy'
require 'purecloudclient_v2a/models/call_media_policy_conditions'
require 'purecloudclient_v2a/models/call_record'
require 'purecloudclient_v2a/models/call_route'
require 'purecloudclient_v2a/models/call_target'
require 'purecloudclient_v2a/models/callable_contacts_diagnostic'
require 'purecloudclient_v2a/models/callable_time'
require 'purecloudclient_v2a/models/callable_time_set'
require 'purecloudclient_v2a/models/callable_time_set_entity_listing'
require 'purecloudclient_v2a/models/callable_time_set_notification'
require 'purecloudclient_v2a/models/callable_time_set_notification_callable_time'
require 'purecloudclient_v2a/models/callable_time_set_notification_callable_times'
require 'purecloudclient_v2a/models/callable_time_set_notification_time_slot'
require 'purecloudclient_v2a/models/callable_time_set_notification_time_slots'
require 'purecloudclient_v2a/models/callback'
require 'purecloudclient_v2a/models/callback_basic'
require 'purecloudclient_v2a/models/callback_conversation'
require 'purecloudclient_v2a/models/callback_conversation_entity_listing'
require 'purecloudclient_v2a/models/callback_conversation_notification'
require 'purecloudclient_v2a/models/callback_conversation_notification_callback_media_participant'
require 'purecloudclient_v2a/models/callback_conversation_notification_detail'
require 'purecloudclient_v2a/models/callback_conversation_notification_dialer_preview'
require 'purecloudclient_v2a/models/callback_conversation_notification_error_body'
require 'purecloudclient_v2a/models/callback_conversation_notification_error_info'
require 'purecloudclient_v2a/models/callback_conversation_notification_error_info_details'
require 'purecloudclient_v2a/models/callback_conversation_notification_participants'
require 'purecloudclient_v2a/models/callback_conversation_notification_phone_number_column'
require 'purecloudclient_v2a/models/callback_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/callback_conversation_notification_voicemail'
require 'purecloudclient_v2a/models/callback_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/callback_identifier'
require 'purecloudclient_v2a/models/callback_media_participant'
require 'purecloudclient_v2a/models/campaign'
require 'purecloudclient_v2a/models/campaign_diagnostics'
require 'purecloudclient_v2a/models/campaign_entity_listing'
require 'purecloudclient_v2a/models/campaign_interaction'
require 'purecloudclient_v2a/models/campaign_interactions'
require 'purecloudclient_v2a/models/campaign_notification'
require 'purecloudclient_v2a/models/campaign_notification_contact_sort'
require 'purecloudclient_v2a/models/campaign_notification_errors'
require 'purecloudclient_v2a/models/campaign_notification_phone_column'
require 'purecloudclient_v2a/models/campaign_notification_phone_columns'
require 'purecloudclient_v2a/models/campaign_notification_rest_error_detail'
require 'purecloudclient_v2a/models/campaign_notification_uri_reference'
require 'purecloudclient_v2a/models/campaign_progress'
require 'purecloudclient_v2a/models/campaign_progress_notification'
require 'purecloudclient_v2a/models/campaign_progress_notification_uri_reference'
require 'purecloudclient_v2a/models/campaign_rule'
require 'purecloudclient_v2a/models/campaign_rule_action'
require 'purecloudclient_v2a/models/campaign_rule_action_entities'
require 'purecloudclient_v2a/models/campaign_rule_condition'
require 'purecloudclient_v2a/models/campaign_rule_entities'
require 'purecloudclient_v2a/models/campaign_rule_entity_listing'
require 'purecloudclient_v2a/models/campaign_rule_notification'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_action'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_action_entities'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_actions'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_condition'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_conditions'
require 'purecloudclient_v2a/models/campaign_rule_notification_campaign_rule_entities'
require 'purecloudclient_v2a/models/campaign_rule_notification_uri_reference'
require 'purecloudclient_v2a/models/campaign_rule_parameters'
require 'purecloudclient_v2a/models/campaign_schedule'
require 'purecloudclient_v2a/models/campaign_schedule_notification'
require 'purecloudclient_v2a/models/campaign_schedule_notification_intervals'
require 'purecloudclient_v2a/models/campaign_schedule_notification_schedule_interval'
require 'purecloudclient_v2a/models/campaign_schedule_notification_uri_reference'
require 'purecloudclient_v2a/models/campaign_sequence'
require 'purecloudclient_v2a/models/campaign_sequence_entity_listing'
require 'purecloudclient_v2a/models/campaign_sequence_notification'
require 'purecloudclient_v2a/models/campaign_sequence_notification_uri_reference'
require 'purecloudclient_v2a/models/campaign_stats'
require 'purecloudclient_v2a/models/campaign_time_slot'
require 'purecloudclient_v2a/models/category'
require 'purecloudclient_v2a/models/category_entity_listing'
require 'purecloudclient_v2a/models/certificate'
require 'purecloudclient_v2a/models/certificate_authority_entity_listing'
require 'purecloudclient_v2a/models/certificate_details'
require 'purecloudclient_v2a/models/change'
require 'purecloudclient_v2a/models/channel'
require 'purecloudclient_v2a/models/channel_entity_listing'
require 'purecloudclient_v2a/models/channel_topic'
require 'purecloudclient_v2a/models/channel_topic_entity_listing'
require 'purecloudclient_v2a/models/chat'
require 'purecloudclient_v2a/models/chat_conversation'
require 'purecloudclient_v2a/models/chat_conversation_entity_listing'
require 'purecloudclient_v2a/models/chat_conversation_notification'
require 'purecloudclient_v2a/models/chat_conversation_notification_chat_media_participant'
require 'purecloudclient_v2a/models/chat_conversation_notification_detail'
require 'purecloudclient_v2a/models/chat_conversation_notification_error_body'
require 'purecloudclient_v2a/models/chat_conversation_notification_error_info'
require 'purecloudclient_v2a/models/chat_conversation_notification_participants'
require 'purecloudclient_v2a/models/chat_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/chat_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/chat_media_participant'
require 'purecloudclient_v2a/models/chat_media_policy'
require 'purecloudclient_v2a/models/chat_media_policy_conditions'
require 'purecloudclient_v2a/models/chat_message'
require 'purecloudclient_v2a/models/chat_message_user'
require 'purecloudclient_v2a/models/cobrowse_conversation'
require 'purecloudclient_v2a/models/cobrowse_conversation_entity_listing'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_cobrowse_media_participant'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_detail'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_error_body'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_error_info'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_participants'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/cobrowse_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/cobrowse_media_participant'
require 'purecloudclient_v2a/models/cobrowsesession'
require 'purecloudclient_v2a/models/command_status'
require 'purecloudclient_v2a/models/command_status_entity_listing'
require 'purecloudclient_v2a/models/condition'
require 'purecloudclient_v2a/models/connect_rate'
require 'purecloudclient_v2a/models/consult_transfer'
require 'purecloudclient_v2a/models/consult_transfer_response'
require 'purecloudclient_v2a/models/consult_transfer_update'
require 'purecloudclient_v2a/models/consumed_resources_entity_listing'
require 'purecloudclient_v2a/models/consuming_resources_entity_listing'
require 'purecloudclient_v2a/models/contact'
require 'purecloudclient_v2a/models/contact_address'
require 'purecloudclient_v2a/models/contact_callback_request'
require 'purecloudclient_v2a/models/contact_list'
require 'purecloudclient_v2a/models/contact_list_entity_listing'
require 'purecloudclient_v2a/models/contact_list_filter'
require 'purecloudclient_v2a/models/contact_list_filter_clause'
require 'purecloudclient_v2a/models/contact_list_filter_entity_listing'
require 'purecloudclient_v2a/models/contact_list_filter_notification'
require 'purecloudclient_v2a/models/contact_list_filter_notification_clauses'
require 'purecloudclient_v2a/models/contact_list_filter_notification_filter_clause'
require 'purecloudclient_v2a/models/contact_list_filter_notification_filter_predicate'
require 'purecloudclient_v2a/models/contact_list_filter_notification_predicates'
require 'purecloudclient_v2a/models/contact_list_filter_notification_range'
require 'purecloudclient_v2a/models/contact_list_filter_notification_uri_reference'
require 'purecloudclient_v2a/models/contact_list_filter_predicate'
require 'purecloudclient_v2a/models/contact_list_filter_range'
require 'purecloudclient_v2a/models/contact_list_notification'
require 'purecloudclient_v2a/models/contact_list_notification_contact_phone_number_column'
require 'purecloudclient_v2a/models/contact_list_notification_import_status'
require 'purecloudclient_v2a/models/contact_list_notification_phone_columns'
require 'purecloudclient_v2a/models/contact_list_notification_uri_reference'
require 'purecloudclient_v2a/models/contact_listing'
require 'purecloudclient_v2a/models/contact_phone_number_column'
require 'purecloudclient_v2a/models/contact_sort'
require 'purecloudclient_v2a/models/content_attribute_filter_item'
require 'purecloudclient_v2a/models/content_facet_filter_item'
require 'purecloudclient_v2a/models/content_filter_item'
require 'purecloudclient_v2a/models/content_query_request'
require 'purecloudclient_v2a/models/content_sort_item'
require 'purecloudclient_v2a/models/conversation'
require 'purecloudclient_v2a/models/conversation_association'
require 'purecloudclient_v2a/models/conversation_basic'
require 'purecloudclient_v2a/models/conversation_chat'
require 'purecloudclient_v2a/models/conversation_entity_listing'
require 'purecloudclient_v2a/models/conversation_notification'
require 'purecloudclient_v2a/models/conversation_notification_address'
require 'purecloudclient_v2a/models/conversation_notification_call'
require 'purecloudclient_v2a/models/conversation_notification_callback'
require 'purecloudclient_v2a/models/conversation_notification_callbacks'
require 'purecloudclient_v2a/models/conversation_notification_calls'
require 'purecloudclient_v2a/models/conversation_notification_chat'
require 'purecloudclient_v2a/models/conversation_notification_chats'
require 'purecloudclient_v2a/models/conversation_notification_cobrowse'
require 'purecloudclient_v2a/models/conversation_notification_cobrowsesessions'
require 'purecloudclient_v2a/models/conversation_notification_dialer_preview'
require 'purecloudclient_v2a/models/conversation_notification_disconnect_reason'
require 'purecloudclient_v2a/models/conversation_notification_disconnect_reasons'
require 'purecloudclient_v2a/models/conversation_notification_email'
require 'purecloudclient_v2a/models/conversation_notification_emails'
require 'purecloudclient_v2a/models/conversation_notification_error_details'
require 'purecloudclient_v2a/models/conversation_notification_error_info'
require 'purecloudclient_v2a/models/conversation_notification_fax_status'
require 'purecloudclient_v2a/models/conversation_notification_message'
require 'purecloudclient_v2a/models/conversation_notification_message_details'
require 'purecloudclient_v2a/models/conversation_notification_messages'
require 'purecloudclient_v2a/models/conversation_notification_messages_1'
require 'purecloudclient_v2a/models/conversation_notification_participant'
require 'purecloudclient_v2a/models/conversation_notification_participants'
require 'purecloudclient_v2a/models/conversation_notification_phone_number_column'
require 'purecloudclient_v2a/models/conversation_notification_screenshare'
require 'purecloudclient_v2a/models/conversation_notification_screenshares'
require 'purecloudclient_v2a/models/conversation_notification_self'
require 'purecloudclient_v2a/models/conversation_notification_social_expression'
require 'purecloudclient_v2a/models/conversation_notification_social_expressions'
require 'purecloudclient_v2a/models/conversation_notification_video'
require 'purecloudclient_v2a/models/conversation_notification_videos'
require 'purecloudclient_v2a/models/conversation_notification_voicemail'
require 'purecloudclient_v2a/models/conversation_notification_wrapup'
require 'purecloudclient_v2a/models/conversation_query'
require 'purecloudclient_v2a/models/copy_voicemail_message'
require 'purecloudclient_v2a/models/cover_sheet'
require 'purecloudclient_v2a/models/create_asg_request'
require 'purecloudclient_v2a/models/create_call_request'
require 'purecloudclient_v2a/models/create_call_response'
require 'purecloudclient_v2a/models/create_callback_command'
require 'purecloudclient_v2a/models/create_callback_on_conversation_command'
require 'purecloudclient_v2a/models/create_callback_response'
require 'purecloudclient_v2a/models/create_email_request'
require 'purecloudclient_v2a/models/create_queue_request'
require 'purecloudclient_v2a/models/create_secure_session'
require 'purecloudclient_v2a/models/create_share_request'
require 'purecloudclient_v2a/models/create_share_request_member'
require 'purecloudclient_v2a/models/create_share_response'
require 'purecloudclient_v2a/models/create_user'
require 'purecloudclient_v2a/models/create_web_chat_request'
require 'purecloudclient_v2a/models/current_user_schedule_request_body'
require 'purecloudclient_v2a/models/customer_interaction_center'
require 'purecloudclient_v2a/models/did'
require 'purecloudclient_v2a/models/did_entity_listing'
require 'purecloudclient_v2a/models/did_pool'
require 'purecloudclient_v2a/models/did_pool_entity_listing'
require 'purecloudclient_v2a/models/default_greeting_list'
require 'purecloudclient_v2a/models/delete_retention'
require 'purecloudclient_v2a/models/dependency'
require 'purecloudclient_v2a/models/dependency_object'
require 'purecloudclient_v2a/models/dependency_object_entity_listing'
require 'purecloudclient_v2a/models/dependency_status'
require 'purecloudclient_v2a/models/dependency_tracking_build_notification_notification'
require 'purecloudclient_v2a/models/dependency_tracking_build_notification_notification_home_organization'
require 'purecloudclient_v2a/models/dependency_tracking_build_notification_notification_user'
require 'purecloudclient_v2a/models/dependency_tracking_build_notification_notification_user_home_org'
require 'purecloudclient_v2a/models/dependency_type'
require 'purecloudclient_v2a/models/dependency_type_entity_listing'
require 'purecloudclient_v2a/models/destination'
require 'purecloudclient_v2a/models/detail'
require 'purecloudclient_v2a/models/dialer_action'
require 'purecloudclient_v2a/models/dialer_audit_request'
require 'purecloudclient_v2a/models/dialer_contact'
require 'purecloudclient_v2a/models/dialer_event_entity_listing'
require 'purecloudclient_v2a/models/dialer_preview'
require 'purecloudclient_v2a/models/dialer_rule'
require 'purecloudclient_v2a/models/digit_length'
require 'purecloudclient_v2a/models/digits'
require 'purecloudclient_v2a/models/directory_user_devices_listing'
require 'purecloudclient_v2a/models/disconnect_reason'
require 'purecloudclient_v2a/models/dnc_list'
require 'purecloudclient_v2a/models/dnc_list_create'
require 'purecloudclient_v2a/models/dnc_list_entity_listing'
require 'purecloudclient_v2a/models/dnc_list_notification'
require 'purecloudclient_v2a/models/dnc_list_notification_import_status'
require 'purecloudclient_v2a/models/document'
require 'purecloudclient_v2a/models/document_attribute'
require 'purecloudclient_v2a/models/document_audit'
require 'purecloudclient_v2a/models/document_audit_entity_listing'
require 'purecloudclient_v2a/models/document_data_v2_notification'
require 'purecloudclient_v2a/models/document_data_v2_notification_created_by'
require 'purecloudclient_v2a/models/document_data_v2_notification_lock_data'
require 'purecloudclient_v2a/models/document_data_v2_notification_lock_info'
require 'purecloudclient_v2a/models/document_data_v2_notification_user_data'
require 'purecloudclient_v2a/models/document_data_v2_notification_workspace'
require 'purecloudclient_v2a/models/document_data_v2_notification_workspace_data'
require 'purecloudclient_v2a/models/document_entity_listing'
require 'purecloudclient_v2a/models/document_thumbnail'
require 'purecloudclient_v2a/models/document_update'
require 'purecloudclient_v2a/models/document_upload'
require 'purecloudclient_v2a/models/documentation_result'
require 'purecloudclient_v2a/models/documentation_search_criteria'
require 'purecloudclient_v2a/models/documentation_search_request'
require 'purecloudclient_v2a/models/documentation_search_response'
require 'purecloudclient_v2a/models/domain_capabilities'
require 'purecloudclient_v2a/models/domain_certificate_authority'
require 'purecloudclient_v2a/models/domain_edge_software_update_dto'
require 'purecloudclient_v2a/models/domain_edge_software_version_dto'
require 'purecloudclient_v2a/models/domain_edge_software_version_dto_entity_listing'
require 'purecloudclient_v2a/models/domain_entity'
require 'purecloudclient_v2a/models/domain_entity_listing'
require 'purecloudclient_v2a/models/domain_entity_listing_evaluation_form'
require 'purecloudclient_v2a/models/domain_entity_listing_query_result'
require 'purecloudclient_v2a/models/domain_logical_interface'
require 'purecloudclient_v2a/models/domain_network_address'
require 'purecloudclient_v2a/models/domain_network_command_response'
require 'purecloudclient_v2a/models/domain_network_route'
require 'purecloudclient_v2a/models/domain_org_role_difference'
require 'purecloudclient_v2a/models/domain_organization_product'
require 'purecloudclient_v2a/models/domain_organization_role'
require 'purecloudclient_v2a/models/domain_organization_role_create'
require 'purecloudclient_v2a/models/domain_organization_role_update'
require 'purecloudclient_v2a/models/domain_permission'
require 'purecloudclient_v2a/models/domain_permission_collection'
require 'purecloudclient_v2a/models/domain_permission_policy'
require 'purecloudclient_v2a/models/domain_physical_capabilities'
require 'purecloudclient_v2a/models/domain_physical_interface'
require 'purecloudclient_v2a/models/domain_resource_condition_node'
require 'purecloudclient_v2a/models/domain_resource_condition_value'
require 'purecloudclient_v2a/models/domain_role'
require 'purecloudclient_v2a/models/domain_schema_reference'
require 'purecloudclient_v2a/models/download_response'
require 'purecloudclient_v2a/models/draft_validation_result'
require 'purecloudclient_v2a/models/duration_condition'
require 'purecloudclient_v2a/models/edge'
require 'purecloudclient_v2a/models/edge_auto_update_config'
require 'purecloudclient_v2a/models/edge_entity_listing'
require 'purecloudclient_v2a/models/edge_group'
require 'purecloudclient_v2a/models/edge_group_entity_listing'
require 'purecloudclient_v2a/models/edge_interface'
require 'purecloudclient_v2a/models/edge_line'
require 'purecloudclient_v2a/models/edge_line_entity_listing'
require 'purecloudclient_v2a/models/edge_logs_job'
require 'purecloudclient_v2a/models/edge_logs_job_file'
require 'purecloudclient_v2a/models/edge_logs_job_request'
require 'purecloudclient_v2a/models/edge_logs_job_response'
require 'purecloudclient_v2a/models/edge_logs_job_upload_request'
require 'purecloudclient_v2a/models/edge_metrics'
require 'purecloudclient_v2a/models/edge_metrics_disk'
require 'purecloudclient_v2a/models/edge_metrics_memory'
require 'purecloudclient_v2a/models/edge_metrics_network'
require 'purecloudclient_v2a/models/edge_metrics_processor'
require 'purecloudclient_v2a/models/edge_metrics_subsystem'
require 'purecloudclient_v2a/models/edge_reboot_parameters'
require 'purecloudclient_v2a/models/edge_service_state_request'
require 'purecloudclient_v2a/models/edge_trunk_base'
require 'purecloudclient_v2a/models/edge_version_information'
require 'purecloudclient_v2a/models/edge_version_report'
require 'purecloudclient_v2a/models/email'
require 'purecloudclient_v2a/models/email_address'
require 'purecloudclient_v2a/models/email_attachment'
require 'purecloudclient_v2a/models/email_conversation'
require 'purecloudclient_v2a/models/email_conversation_entity_listing'
require 'purecloudclient_v2a/models/email_conversation_notification'
require 'purecloudclient_v2a/models/email_conversation_notification_detail'
require 'purecloudclient_v2a/models/email_conversation_notification_email_media_participant'
require 'purecloudclient_v2a/models/email_conversation_notification_error_body'
require 'purecloudclient_v2a/models/email_conversation_notification_error_info'
require 'purecloudclient_v2a/models/email_conversation_notification_participants'
require 'purecloudclient_v2a/models/email_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/email_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/email_media_participant'
require 'purecloudclient_v2a/models/email_media_policy'
require 'purecloudclient_v2a/models/email_media_policy_conditions'
require 'purecloudclient_v2a/models/email_message'
require 'purecloudclient_v2a/models/email_message_listing'
require 'purecloudclient_v2a/models/email_setup'
require 'purecloudclient_v2a/models/empty'
require 'purecloudclient_v2a/models/encryption_key'
require 'purecloudclient_v2a/models/encryption_key_entity_listing'
require 'purecloudclient_v2a/models/endpoint'
require 'purecloudclient_v2a/models/endpoint_entity_listing'
require 'purecloudclient_v2a/models/entity'
require 'purecloudclient_v2a/models/entry'
require 'purecloudclient_v2a/models/error_body'
require 'purecloudclient_v2a/models/error_details'
require 'purecloudclient_v2a/models/estimated_wait_time_predictions'
require 'purecloudclient_v2a/models/evaluation'
require 'purecloudclient_v2a/models/evaluation_assignment'
require 'purecloudclient_v2a/models/evaluation_entity_listing'
require 'purecloudclient_v2a/models/evaluation_form'
require 'purecloudclient_v2a/models/evaluation_form_and_scoring_set'
require 'purecloudclient_v2a/models/evaluation_form_entity_listing'
require 'purecloudclient_v2a/models/evaluation_scoring_set'
require 'purecloudclient_v2a/models/evaluator_activity'
require 'purecloudclient_v2a/models/evaluator_activity_entity_listing'
require 'purecloudclient_v2a/models/event_log'
require 'purecloudclient_v2a/models/event_message'
require 'purecloudclient_v2a/models/expansion_criterium'
require 'purecloudclient_v2a/models/export_uri'
require 'purecloudclient_v2a/models/export_uri_notification'
require 'purecloudclient_v2a/models/extension'
require 'purecloudclient_v2a/models/extension_entity_listing'
require 'purecloudclient_v2a/models/extension_pool'
require 'purecloudclient_v2a/models/extension_pool_entity_listing'
require 'purecloudclient_v2a/models/external_contact'
require 'purecloudclient_v2a/models/external_data_source'
require 'purecloudclient_v2a/models/external_organization'
require 'purecloudclient_v2a/models/external_organization_listing'
require 'purecloudclient_v2a/models/facet'
require 'purecloudclient_v2a/models/facet_entry'
require 'purecloudclient_v2a/models/facet_info'
require 'purecloudclient_v2a/models/facet_key_attribute'
require 'purecloudclient_v2a/models/facet_statistics'
require 'purecloudclient_v2a/models/facet_term'
require 'purecloudclient_v2a/models/failed_object'
require 'purecloudclient_v2a/models/fax_data_v2_notification'
require 'purecloudclient_v2a/models/fax_data_v2_notification_lock_data'
require 'purecloudclient_v2a/models/fax_data_v2_notification_lock_info'
require 'purecloudclient_v2a/models/fax_data_v2_notification_user_data'
require 'purecloudclient_v2a/models/fax_data_v2_notification_workspace_data'
require 'purecloudclient_v2a/models/fax_document'
require 'purecloudclient_v2a/models/fax_document_entity_listing'
require 'purecloudclient_v2a/models/fax_send_request'
require 'purecloudclient_v2a/models/fax_send_response'
require 'purecloudclient_v2a/models/fax_status'
require 'purecloudclient_v2a/models/fax_summary'
require 'purecloudclient_v2a/models/feature_state'
require 'purecloudclient_v2a/models/field_config'
require 'purecloudclient_v2a/models/field_configs'
require 'purecloudclient_v2a/models/field_list'
require 'purecloudclient_v2a/models/filter'
require 'purecloudclient_v2a/models/filter_preview_response'
require 'purecloudclient_v2a/models/flow'
require 'purecloudclient_v2a/models/flow_entity_listing'
require 'purecloudclient_v2a/models/flow_notification_notification'
require 'purecloudclient_v2a/models/flow_notification_notification_architect_operation'
require 'purecloudclient_v2a/models/flow_notification_notification_error_detail'
require 'purecloudclient_v2a/models/flow_notification_notification_error_message_params'
require 'purecloudclient_v2a/models/flow_notification_notification_flow_version'
require 'purecloudclient_v2a/models/flow_notification_notification_home_organization'
require 'purecloudclient_v2a/models/flow_notification_notification_user'
require 'purecloudclient_v2a/models/flow_version'
require 'purecloudclient_v2a/models/flow_version_entity_listing'
require 'purecloudclient_v2a/models/g_suite'
require 'purecloudclient_v2a/models/geolocation'
require 'purecloudclient_v2a/models/geolocation_notification'
require 'purecloudclient_v2a/models/geolocation_settings'
require 'purecloudclient_v2a/models/greeting'
require 'purecloudclient_v2a/models/greeting_audio_file'
require 'purecloudclient_v2a/models/greeting_listing'
require 'purecloudclient_v2a/models/greeting_media_info'
require 'purecloudclient_v2a/models/greeting_notification'
require 'purecloudclient_v2a/models/greeting_notification_greeting_audio_file'
require 'purecloudclient_v2a/models/greeting_notification_greeting_owner'
require 'purecloudclient_v2a/models/greeting_owner'
require 'purecloudclient_v2a/models/group'
require 'purecloudclient_v2a/models/group_contact'
require 'purecloudclient_v2a/models/group_entity_listing'
require 'purecloudclient_v2a/models/group_members_update'
require 'purecloudclient_v2a/models/group_profile'
require 'purecloudclient_v2a/models/group_search_criteria'
require 'purecloudclient_v2a/models/group_search_request'
require 'purecloudclient_v2a/models/group_update'
require 'purecloudclient_v2a/models/groups_search_response'
require 'purecloudclient_v2a/models/heart_beat_alert_notification'
require 'purecloudclient_v2a/models/heart_beat_alert_notification_notification_user'
require 'purecloudclient_v2a/models/heart_beat_alert_notification_notification_users'
require 'purecloudclient_v2a/models/heart_beat_rule_notification'
require 'purecloudclient_v2a/models/heart_beat_rule_notification_notification_user'
require 'purecloudclient_v2a/models/history_listing'
require 'purecloudclient_v2a/models/ivr'
require 'purecloudclient_v2a/models/ivr_entity_listing'
require 'purecloudclient_v2a/models/identity_now'
require 'purecloudclient_v2a/models/import_script_status_response'
require 'purecloudclient_v2a/models/import_status'
require 'purecloudclient_v2a/models/import_status_notification'
require 'purecloudclient_v2a/models/inbound_domain'
require 'purecloudclient_v2a/models/inbound_domain_entity_listing'
require 'purecloudclient_v2a/models/inbound_message_request'
require 'purecloudclient_v2a/models/inbound_route'
require 'purecloudclient_v2a/models/inbound_route_entity_listing'
require 'purecloudclient_v2a/models/initiate_screen_recording'
require 'purecloudclient_v2a/models/instance_info'
require 'purecloudclient_v2a/models/interaction_stat_alert_notification'
require 'purecloudclient_v2a/models/interaction_stat_alert_notification_notification_user'
require 'purecloudclient_v2a/models/interaction_stat_rule_notification'
require 'purecloudclient_v2a/models/interaction_stat_rule_notification_notification_user'
require 'purecloudclient_v2a/models/interaction_stats_alert'
require 'purecloudclient_v2a/models/interaction_stats_alert_container'
require 'purecloudclient_v2a/models/interaction_stats_rule'
require 'purecloudclient_v2a/models/interaction_stats_rule_container'
require 'purecloudclient_v2a/models/intraday_data_group'
require 'purecloudclient_v2a/models/intraday_data_update_notification'
require 'purecloudclient_v2a/models/intraday_data_update_notification_forecast_data_per_interval'
require 'purecloudclient_v2a/models/intraday_data_update_notification_historical_agent_data_per_interval'
require 'purecloudclient_v2a/models/intraday_data_update_notification_historical_queue_data_per_interval'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_data_group'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_data_groupings'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_forecast_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_historical_agent_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_historical_queue_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_metric'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_performance_prediction_agent_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_performance_prediction_queue_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_intraday_schedule_data'
require 'purecloudclient_v2a/models/intraday_data_update_notification_metrics'
require 'purecloudclient_v2a/models/intraday_data_update_notification_performance_prediction_agent_data_per_interval'
require 'purecloudclient_v2a/models/intraday_data_update_notification_performance_prediction_queue_data_per_interval'
require 'purecloudclient_v2a/models/intraday_data_update_notification_schedule_data_per_interval'
require 'purecloudclient_v2a/models/intraday_forecast_data'
require 'purecloudclient_v2a/models/intraday_historical_agent_data'
require 'purecloudclient_v2a/models/intraday_historical_queue_data'
require 'purecloudclient_v2a/models/intraday_metric'
require 'purecloudclient_v2a/models/intraday_performance_prediction_agent_data'
require 'purecloudclient_v2a/models/intraday_performance_prediction_queue_data'
require 'purecloudclient_v2a/models/intraday_query_data_command'
require 'purecloudclient_v2a/models/intraday_queue'
require 'purecloudclient_v2a/models/intraday_response'
require 'purecloudclient_v2a/models/intraday_schedule_data'
require 'purecloudclient_v2a/models/json_node'
require 'purecloudclient_v2a/models/json_node_search_response'
require 'purecloudclient_v2a/models/json_schema_document'
require 'purecloudclient_v2a/models/key_rotation_schedule'
require 'purecloudclient_v2a/models/keyword'
require 'purecloudclient_v2a/models/keyword_set'
require 'purecloudclient_v2a/models/keyword_set_entity_listing'
require 'purecloudclient_v2a/models/language'
require 'purecloudclient_v2a/models/language_entity_listing'
require 'purecloudclient_v2a/models/library'
require 'purecloudclient_v2a/models/library_entity_listing'
require 'purecloudclient_v2a/models/license_assignment_request'
require 'purecloudclient_v2a/models/license_batch_assignment_request'
require 'purecloudclient_v2a/models/license_definition'
require 'purecloudclient_v2a/models/license_org_toggle'
require 'purecloudclient_v2a/models/license_organization'
require 'purecloudclient_v2a/models/license_update_status'
require 'purecloudclient_v2a/models/license_user'
require 'purecloudclient_v2a/models/line'
require 'purecloudclient_v2a/models/line_base'
require 'purecloudclient_v2a/models/line_base_entity_listing'
require 'purecloudclient_v2a/models/line_entity_listing'
require 'purecloudclient_v2a/models/line_status'
require 'purecloudclient_v2a/models/local_encryption_configuration'
require 'purecloudclient_v2a/models/local_encryption_configuration_listing'
require 'purecloudclient_v2a/models/local_encryption_key_request'
require 'purecloudclient_v2a/models/location'
require 'purecloudclient_v2a/models/location_address'
require 'purecloudclient_v2a/models/location_definition'
require 'purecloudclient_v2a/models/location_emergency_number'
require 'purecloudclient_v2a/models/location_entity_listing'
require 'purecloudclient_v2a/models/location_search_criteria'
require 'purecloudclient_v2a/models/location_search_request'
require 'purecloudclient_v2a/models/locations_search_response'
require 'purecloudclient_v2a/models/lock_info'
require 'purecloudclient_v2a/models/logical_interface_entity_listing'
require 'purecloudclient_v2a/models/management_unit'
require 'purecloudclient_v2a/models/management_unit_listing'
require 'purecloudclient_v2a/models/management_unit_reference'
require 'purecloudclient_v2a/models/management_unit_settings'
require 'purecloudclient_v2a/models/max_participants'
require 'purecloudclient_v2a/models/media_participant_request'
require 'purecloudclient_v2a/models/media_policies'
require 'purecloudclient_v2a/models/media_result'
require 'purecloudclient_v2a/models/media_setting'
require 'purecloudclient_v2a/models/media_summary'
require 'purecloudclient_v2a/models/media_summary_detail'
require 'purecloudclient_v2a/models/media_transcription'
require 'purecloudclient_v2a/models/member_entity'
require 'purecloudclient_v2a/models/message'
require 'purecloudclient_v2a/models/message_conversation_notification'
require 'purecloudclient_v2a/models/message_conversation_notification_detail'
require 'purecloudclient_v2a/models/message_conversation_notification_error_body'
require 'purecloudclient_v2a/models/message_conversation_notification_error_info'
require 'purecloudclient_v2a/models/message_conversation_notification_message_details'
require 'purecloudclient_v2a/models/message_conversation_notification_message_media_participant'
require 'purecloudclient_v2a/models/message_conversation_notification_messages'
require 'purecloudclient_v2a/models/message_conversation_notification_participants'
require 'purecloudclient_v2a/models/message_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/message_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/message_details'
require 'purecloudclient_v2a/models/message_media_policy'
require 'purecloudclient_v2a/models/message_media_policy_conditions'
require 'purecloudclient_v2a/models/meta_data'
require 'purecloudclient_v2a/models/metabase'
require 'purecloudclient_v2a/models/metered_evaluation_assignment'
require 'purecloudclient_v2a/models/named_entity'
require 'purecloudclient_v2a/models/note'
require 'purecloudclient_v2a/models/note_listing'
require 'purecloudclient_v2a/models/number'
require 'purecloudclient_v2a/models/number_plan'
require 'purecloudclient_v2a/models/numeric_range'
require 'purecloudclient_v2a/models/o_auth_client'
require 'purecloudclient_v2a/models/o_auth_client_entity_listing'
require 'purecloudclient_v2a/models/o_auth_client_listing'
require 'purecloudclient_v2a/models/o_auth_provider'
require 'purecloudclient_v2a/models/o_auth_provider_entity_listing'
require 'purecloudclient_v2a/models/observation_data_container'
require 'purecloudclient_v2a/models/observation_query'
require 'purecloudclient_v2a/models/observation_query_response'
require 'purecloudclient_v2a/models/okta'
require 'purecloudclient_v2a/models/one_login'
require 'purecloudclient_v2a/models/operation'
require 'purecloudclient_v2a/models/org_media_utilization'
require 'purecloudclient_v2a/models/org_o_auth_client'
require 'purecloudclient_v2a/models/org_user'
require 'purecloudclient_v2a/models/organization'
require 'purecloudclient_v2a/models/organization_features'
require 'purecloudclient_v2a/models/organization_presence'
require 'purecloudclient_v2a/models/organization_presence_entity_listing'
require 'purecloudclient_v2a/models/organization_product_entity_listing'
require 'purecloudclient_v2a/models/organization_role_entity_listing'
require 'purecloudclient_v2a/models/orphan_recording'
require 'purecloudclient_v2a/models/orphan_recording_listing'
require 'purecloudclient_v2a/models/orphan_update_request'
require 'purecloudclient_v2a/models/out_of_office'
require 'purecloudclient_v2a/models/out_of_office_notification'
require 'purecloudclient_v2a/models/out_of_office_notification_user'
require 'purecloudclient_v2a/models/outbound_route'
require 'purecloudclient_v2a/models/outbound_route_base'
require 'purecloudclient_v2a/models/outbound_route_base_entity_listing'
require 'purecloudclient_v2a/models/outbound_route_entity_listing'
require 'purecloudclient_v2a/models/outbound_settings'
require 'purecloudclient_v2a/models/outbound_settings_notification'
require 'purecloudclient_v2a/models/pin_configuration'
require 'purecloudclient_v2a/models/page'
require 'purecloudclient_v2a/models/paging_spec'
require 'purecloudclient_v2a/models/parameter'
require 'purecloudclient_v2a/models/parsed_certificate'
require 'purecloudclient_v2a/models/participant'
require 'purecloudclient_v2a/models/participant_attributes'
require 'purecloudclient_v2a/models/participant_basic'
require 'purecloudclient_v2a/models/permission_collection_entity_listing'
require 'purecloudclient_v2a/models/permissions'
require 'purecloudclient_v2a/models/phone'
require 'purecloudclient_v2a/models/phone_base'
require 'purecloudclient_v2a/models/phone_base_entity_listing'
require 'purecloudclient_v2a/models/phone_capabilities'
require 'purecloudclient_v2a/models/phone_column'
require 'purecloudclient_v2a/models/phone_entity_listing'
require 'purecloudclient_v2a/models/phone_meta_base_entity_listing'
require 'purecloudclient_v2a/models/phone_number'
require 'purecloudclient_v2a/models/phone_number_column'
require 'purecloudclient_v2a/models/phone_number_status'
require 'purecloudclient_v2a/models/phone_status'
require 'purecloudclient_v2a/models/phones_reboot'
require 'purecloudclient_v2a/models/physical_interface_entity_listing'
require 'purecloudclient_v2a/models/ping_identity'
require 'purecloudclient_v2a/models/policy'
require 'purecloudclient_v2a/models/policy_actions'
require 'purecloudclient_v2a/models/policy_conditions'
require 'purecloudclient_v2a/models/policy_create'
require 'purecloudclient_v2a/models/policy_entity_listing'
require 'purecloudclient_v2a/models/policy_error_message'
require 'purecloudclient_v2a/models/policy_errors'
require 'purecloudclient_v2a/models/post_action_input'
require 'purecloudclient_v2a/models/post_input_contract'
require 'purecloudclient_v2a/models/post_output_contract'
require 'purecloudclient_v2a/models/prediction_results'
require 'purecloudclient_v2a/models/presence_definition'
require 'purecloudclient_v2a/models/presence_query_response'
require 'purecloudclient_v2a/models/prompt'
require 'purecloudclient_v2a/models/prompt_asset'
require 'purecloudclient_v2a/models/prompt_asset_create'
require 'purecloudclient_v2a/models/prompt_asset_entity_listing'
require 'purecloudclient_v2a/models/prompt_entity_listing'
require 'purecloudclient_v2a/models/prompt_notification_notification'
require 'purecloudclient_v2a/models/prompt_notification_notification_architect_operation'
require 'purecloudclient_v2a/models/prompt_notification_notification_current_operation'
require 'purecloudclient_v2a/models/prompt_notification_notification_current_operation_error_details'
require 'purecloudclient_v2a/models/prompt_notification_notification_current_operation_error_message_params'
require 'purecloudclient_v2a/models/prompt_notification_notification_error_detail'
require 'purecloudclient_v2a/models/prompt_notification_notification_error_message_params'
require 'purecloudclient_v2a/models/prompt_notification_notification_home_organization'
require 'purecloudclient_v2a/models/prompt_notification_notification_user'
require 'purecloudclient_v2a/models/prompt_resource_notification_notification'
require 'purecloudclient_v2a/models/property_index_request'
require 'purecloudclient_v2a/models/provision_info'
require 'purecloudclient_v2a/models/publish_draft_input'
require 'purecloudclient_v2a/models/pure_cloud'
require 'purecloudclient_v2a/models/qualifier_mapping_observation_query_response'
require 'purecloudclient_v2a/models/quality_audit'
require 'purecloudclient_v2a/models/quality_audit_page'
require 'purecloudclient_v2a/models/query_facet_info'
require 'purecloudclient_v2a/models/query_request'
require 'purecloudclient_v2a/models/query_result'
require 'purecloudclient_v2a/models/query_results'
require 'purecloudclient_v2a/models/question'
require 'purecloudclient_v2a/models/question_group'
require 'purecloudclient_v2a/models/question_group_score'
require 'purecloudclient_v2a/models/question_score'
require 'purecloudclient_v2a/models/queue'
require 'purecloudclient_v2a/models/queue_email_address'
require 'purecloudclient_v2a/models/queue_entity_listing'
require 'purecloudclient_v2a/models/queue_member'
require 'purecloudclient_v2a/models/queue_member_entity_listing'
require 'purecloudclient_v2a/models/queue_member_notification'
require 'purecloudclient_v2a/models/queue_utilization_diagnostic'
require 'purecloudclient_v2a/models/reaction'
require 'purecloudclient_v2a/models/recall_entry'
require 'purecloudclient_v2a/models/recording'
require 'purecloudclient_v2a/models/recording_data_v2_notification'
require 'purecloudclient_v2a/models/recording_data_v2_notification_conversation_data'
require 'purecloudclient_v2a/models/recording_data_v2_notification_lock_data'
require 'purecloudclient_v2a/models/recording_data_v2_notification_lock_info'
require 'purecloudclient_v2a/models/recording_data_v2_notification_user_data'
require 'purecloudclient_v2a/models/recording_data_v2_notification_workspace_data'
require 'purecloudclient_v2a/models/recording_email_message'
require 'purecloudclient_v2a/models/recording_settings'
require 'purecloudclient_v2a/models/relationship'
require 'purecloudclient_v2a/models/relationship_listing'
require 'purecloudclient_v2a/models/replace_request'
require 'purecloudclient_v2a/models/replace_response'
require 'purecloudclient_v2a/models/report_meta_data'
require 'purecloudclient_v2a/models/report_meta_data_entity_listing'
require 'purecloudclient_v2a/models/report_run_entry'
require 'purecloudclient_v2a/models/report_run_entry_entity_domain_listing'
require 'purecloudclient_v2a/models/report_schedule'
require 'purecloudclient_v2a/models/report_schedule_entity_listing'
require 'purecloudclient_v2a/models/request_config'
require 'purecloudclient_v2a/models/resource_condition_node'
require 'purecloudclient_v2a/models/resource_condition_value'
require 'purecloudclient_v2a/models/resource_permission_policy'
require 'purecloudclient_v2a/models/response'
require 'purecloudclient_v2a/models/response_config'
require 'purecloudclient_v2a/models/response_entity_list'
require 'purecloudclient_v2a/models/response_entity_listing'
require 'purecloudclient_v2a/models/response_filter'
require 'purecloudclient_v2a/models/response_query_request'
require 'purecloudclient_v2a/models/response_query_results'
require 'purecloudclient_v2a/models/response_set'
require 'purecloudclient_v2a/models/response_set_entity_listing'
require 'purecloudclient_v2a/models/response_set_notification'
require 'purecloudclient_v2a/models/response_set_notification_reaction'
require 'purecloudclient_v2a/models/response_set_notification_responses'
require 'purecloudclient_v2a/models/response_substitution'
require 'purecloudclient_v2a/models/response_text'
require 'purecloudclient_v2a/models/rest_error_detail'
require 'purecloudclient_v2a/models/retention_duration'
require 'purecloudclient_v2a/models/reverse_whitepages_lookup_result'
require 'purecloudclient_v2a/models/ring'
require 'purecloudclient_v2a/models/routing_data'
require 'purecloudclient_v2a/models/routing_skill'
require 'purecloudclient_v2a/models/routing_status'
require 'purecloudclient_v2a/models/rule_set'
require 'purecloudclient_v2a/models/rule_set_diagnostic'
require 'purecloudclient_v2a/models/rule_set_entity_listing'
require 'purecloudclient_v2a/models/rule_set_notification'
require 'purecloudclient_v2a/models/rule_set_notification_action'
require 'purecloudclient_v2a/models/rule_set_notification_actions'
require 'purecloudclient_v2a/models/rule_set_notification_condition'
require 'purecloudclient_v2a/models/rule_set_notification_conditions'
require 'purecloudclient_v2a/models/rule_set_notification_rule'
require 'purecloudclient_v2a/models/rule_set_notification_rules'
require 'purecloudclient_v2a/models/rule_set_notification_uri_reference'
require 'purecloudclient_v2a/models/run_now_response'
require 'purecloudclient_v2a/models/salesforce'
require 'purecloudclient_v2a/models/schedule'
require 'purecloudclient_v2a/models/schedule_entity_listing'
require 'purecloudclient_v2a/models/schedule_group'
require 'purecloudclient_v2a/models/schedule_group_entity_listing'
require 'purecloudclient_v2a/models/schedule_interval'
require 'purecloudclient_v2a/models/scheduling_settings'
require 'purecloudclient_v2a/models/schema_category'
require 'purecloudclient_v2a/models/schema_category_entity_listing'
require 'purecloudclient_v2a/models/schema_reference_entity_listing'
require 'purecloudclient_v2a/models/screen_recording_session'
require 'purecloudclient_v2a/models/screen_recording_session_listing'
require 'purecloudclient_v2a/models/screen_recording_session_request'
require 'purecloudclient_v2a/models/screen_share_conversation_notification'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_detail'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_error_body'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_error_info'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_participants'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_screen_share_media_participant'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/screen_share_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/screenshare'
require 'purecloudclient_v2a/models/script'
require 'purecloudclient_v2a/models/script_entity_listing'
require 'purecloudclient_v2a/models/search_aggregation'
require 'purecloudclient_v2a/models/search_criteria'
require 'purecloudclient_v2a/models/search_request'
require 'purecloudclient_v2a/models/search_sort'
require 'purecloudclient_v2a/models/section'
require 'purecloudclient_v2a/models/secure_session'
require 'purecloudclient_v2a/models/secure_session_entity_listing'
require 'purecloudclient_v2a/models/security_profile'
require 'purecloudclient_v2a/models/security_profile_entity_listing'
require 'purecloudclient_v2a/models/segment'
require 'purecloudclient_v2a/models/sequence_schedule'
require 'purecloudclient_v2a/models/sequence_schedule_notification'
require 'purecloudclient_v2a/models/sequence_schedule_notification_schedule_interval'
require 'purecloudclient_v2a/models/sequence_schedule_notification_uri_reference'
require 'purecloudclient_v2a/models/server_date'
require 'purecloudclient_v2a/models/service_context'
require 'purecloudclient_v2a/models/service_level'
require 'purecloudclient_v2a/models/set_uui_data_request'
require 'purecloudclient_v2a/models/share'
require 'purecloudclient_v2a/models/share_entity_listing'
require 'purecloudclient_v2a/models/shared_entity'
require 'purecloudclient_v2a/models/shared_response'
require 'purecloudclient_v2a/models/short_term_forecasting_settings'
require 'purecloudclient_v2a/models/signed_data'
require 'purecloudclient_v2a/models/site'
require 'purecloudclient_v2a/models/site_entity_listing'
require 'purecloudclient_v2a/models/skill_entity_listing'
require 'purecloudclient_v2a/models/skills_to_remove'
require 'purecloudclient_v2a/models/social_conversation_notification'
require 'purecloudclient_v2a/models/social_conversation_notification_detail'
require 'purecloudclient_v2a/models/social_conversation_notification_error_body'
require 'purecloudclient_v2a/models/social_conversation_notification_error_info'
require 'purecloudclient_v2a/models/social_conversation_notification_participants'
require 'purecloudclient_v2a/models/social_conversation_notification_social_media_participant'
require 'purecloudclient_v2a/models/social_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/social_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/social_expression'
require 'purecloudclient_v2a/models/sort_item'
require 'purecloudclient_v2a/models/station'
require 'purecloudclient_v2a/models/station_entity_listing'
require 'purecloudclient_v2a/models/statistical_response'
require 'purecloudclient_v2a/models/statistical_summary'
require 'purecloudclient_v2a/models/stats_notification_notification'
require 'purecloudclient_v2a/models/stats_notification_notification_data'
require 'purecloudclient_v2a/models/stats_notification_notification_datum'
require 'purecloudclient_v2a/models/stats_notification_notification_metric'
require 'purecloudclient_v2a/models/stats_notification_notification_metrics'
require 'purecloudclient_v2a/models/street_address'
require 'purecloudclient_v2a/models/subscriber_response'
require 'purecloudclient_v2a/models/suggest_search_criteria'
require 'purecloudclient_v2a/models/suggest_search_request'
require 'purecloudclient_v2a/models/system_presence'
require 'purecloudclient_v2a/models/system_prompt'
require 'purecloudclient_v2a/models/system_prompt_asset'
require 'purecloudclient_v2a/models/system_prompt_asset_entity_listing'
require 'purecloudclient_v2a/models/system_prompt_entity_listing'
require 'purecloudclient_v2a/models/system_prompt_resource_notification_notification'
require 'purecloudclient_v2a/models/tag_query_request'
require 'purecloudclient_v2a/models/tag_value'
require 'purecloudclient_v2a/models/tag_value_entity_listing'
require 'purecloudclient_v2a/models/term_attribute'
require 'purecloudclient_v2a/models/test_execution_operation_result'
require 'purecloudclient_v2a/models/test_execution_result'
require 'purecloudclient_v2a/models/ticker'
require 'purecloudclient_v2a/models/time_allowed'
require 'purecloudclient_v2a/models/time_interval'
require 'purecloudclient_v2a/models/time_off_request'
require 'purecloudclient_v2a/models/time_off_request_list'
require 'purecloudclient_v2a/models/time_off_request_patch'
require 'purecloudclient_v2a/models/time_off_request_settings'
require 'purecloudclient_v2a/models/time_off_request_update_notification'
require 'purecloudclient_v2a/models/time_off_request_update_notification_user'
require 'purecloudclient_v2a/models/time_slot'
require 'purecloudclient_v2a/models/time_zone'
require 'purecloudclient_v2a/models/time_zone_entity_listing'
require 'purecloudclient_v2a/models/token_info'
require 'purecloudclient_v2a/models/transfer_request'
require 'purecloudclient_v2a/models/trunk'
require 'purecloudclient_v2a/models/trunk_base'
require 'purecloudclient_v2a/models/trunk_base_assignment'
require 'purecloudclient_v2a/models/trunk_base_entity_listing'
require 'purecloudclient_v2a/models/trunk_connected_status'
require 'purecloudclient_v2a/models/trunk_entity_listing'
require 'purecloudclient_v2a/models/trunk_error_info'
require 'purecloudclient_v2a/models/trunk_error_info_details'
require 'purecloudclient_v2a/models/trunk_metabase_entity_listing'
require 'purecloudclient_v2a/models/trunk_metrics'
require 'purecloudclient_v2a/models/trunk_metrics_calls'
require 'purecloudclient_v2a/models/trunk_metrics_network_type_ip'
require 'purecloudclient_v2a/models/trunk_metrics_options'
require 'purecloudclient_v2a/models/trunk_metrics_qo_s'
require 'purecloudclient_v2a/models/trunk_metrics_registers'
require 'purecloudclient_v2a/models/trunk_recording_enabled_count'
require 'purecloudclient_v2a/models/trust_create'
require 'purecloudclient_v2a/models/trust_entity_listing'
require 'purecloudclient_v2a/models/trust_request'
require 'purecloudclient_v2a/models/trust_request_create'
require 'purecloudclient_v2a/models/trust_user'
require 'purecloudclient_v2a/models/trust_user_create'
require 'purecloudclient_v2a/models/trust_user_details'
require 'purecloudclient_v2a/models/trust_user_entity_listing'
require 'purecloudclient_v2a/models/trustee'
require 'purecloudclient_v2a/models/trustee_audit_query_request'
require 'purecloudclient_v2a/models/trustor'
require 'purecloudclient_v2a/models/trustor_audit_query_request'
require 'purecloudclient_v2a/models/trustor_entity_listing'
require 'purecloudclient_v2a/models/twitter_id'
require 'purecloudclient_v2a/models/unread_metric'
require 'purecloudclient_v2a/models/unread_status'
require 'purecloudclient_v2a/models/update_action_input'
require 'purecloudclient_v2a/models/update_draft_input'
require 'purecloudclient_v2a/models/update_user'
require 'purecloudclient_v2a/models/uri_reference'
require 'purecloudclient_v2a/models/usage'
require 'purecloudclient_v2a/models/usage_item'
require 'purecloudclient_v2a/models/user'
require 'purecloudclient_v2a/models/user_agent_info'
require 'purecloudclient_v2a/models/user_authorization'
require 'purecloudclient_v2a/models/user_conversation_summary'
require 'purecloudclient_v2a/models/user_conversation_summary_notification'
require 'purecloudclient_v2a/models/user_conversation_summary_notification_call'
require 'purecloudclient_v2a/models/user_conversation_summary_notification_call_contact_center'
require 'purecloudclient_v2a/models/user_conversation_summary_notification_media_summary'
require 'purecloudclient_v2a/models/user_conversation_summary_notification_media_summary_detail'
require 'purecloudclient_v2a/models/user_details_query'
require 'purecloudclient_v2a/models/user_device'
require 'purecloudclient_v2a/models/user_entity_listing'
require 'purecloudclient_v2a/models/user_expands'
require 'purecloudclient_v2a/models/user_image'
require 'purecloudclient_v2a/models/user_list_schedule_request_body'
require 'purecloudclient_v2a/models/user_me'
require 'purecloudclient_v2a/models/user_param'
require 'purecloudclient_v2a/models/user_presence'
require 'purecloudclient_v2a/models/user_presence_notification'
require 'purecloudclient_v2a/models/user_presence_notification_organization_presence'
require 'purecloudclient_v2a/models/user_profile'
require 'purecloudclient_v2a/models/user_profile_entity_listing'
require 'purecloudclient_v2a/models/user_queue'
require 'purecloudclient_v2a/models/user_queue_entity_listing'
require 'purecloudclient_v2a/models/user_recording'
require 'purecloudclient_v2a/models/user_recording_entity_listing'
require 'purecloudclient_v2a/models/user_reference'
require 'purecloudclient_v2a/models/user_routing_skill'
require 'purecloudclient_v2a/models/user_routing_skill_post'
require 'purecloudclient_v2a/models/user_routing_status_notification'
require 'purecloudclient_v2a/models/user_routing_status_notification_error_info'
require 'purecloudclient_v2a/models/user_routing_status_notification_error_info_user_params'
require 'purecloudclient_v2a/models/user_routing_status_notification_routing_status'
require 'purecloudclient_v2a/models/user_routing_status_notification_user_param'
require 'purecloudclient_v2a/models/user_schedule'
require 'purecloudclient_v2a/models/user_schedule_activity'
require 'purecloudclient_v2a/models/user_schedule_adherence'
require 'purecloudclient_v2a/models/user_schedule_adherence_update_notification'
require 'purecloudclient_v2a/models/user_schedule_adherence_update_notification_user'
require 'purecloudclient_v2a/models/user_schedule_container'
require 'purecloudclient_v2a/models/user_schedule_full_day_time_off_marker'
require 'purecloudclient_v2a/models/user_schedule_shift'
require 'purecloudclient_v2a/models/user_search_criteria'
require 'purecloudclient_v2a/models/user_search_request'
require 'purecloudclient_v2a/models/user_skill_entity_listing'
require 'purecloudclient_v2a/models/user_station'
require 'purecloudclient_v2a/models/user_stations'
require 'purecloudclient_v2a/models/user_stations_notification'
require 'purecloudclient_v2a/models/user_stations_notification_associated_station'
require 'purecloudclient_v2a/models/user_stations_notification_user'
require 'purecloudclient_v2a/models/user_stations_notification_user_station'
require 'purecloudclient_v2a/models/users_search_response'
require 'purecloudclient_v2a/models/utilization'
require 'purecloudclient_v2a/models/validate_address_request'
require 'purecloudclient_v2a/models/validate_address_response'
require 'purecloudclient_v2a/models/video'
require 'purecloudclient_v2a/models/video_conversation_notification'
require 'purecloudclient_v2a/models/video_conversation_notification_detail'
require 'purecloudclient_v2a/models/video_conversation_notification_error_body'
require 'purecloudclient_v2a/models/video_conversation_notification_error_info'
require 'purecloudclient_v2a/models/video_conversation_notification_participants'
require 'purecloudclient_v2a/models/video_conversation_notification_uri_reference'
require 'purecloudclient_v2a/models/video_conversation_notification_video_media_participant'
require 'purecloudclient_v2a/models/video_conversation_notification_wrapup'
require 'purecloudclient_v2a/models/visibility_condition'
require 'purecloudclient_v2a/models/vm_pairing_info'
require 'purecloudclient_v2a/models/voicemail'
require 'purecloudclient_v2a/models/voicemail_copy_record'
require 'purecloudclient_v2a/models/voicemail_group_policy'
require 'purecloudclient_v2a/models/voicemail_mailbox_info'
require 'purecloudclient_v2a/models/voicemail_media_info'
require 'purecloudclient_v2a/models/voicemail_message'
require 'purecloudclient_v2a/models/voicemail_message_entity_listing'
require 'purecloudclient_v2a/models/voicemail_message_notification'
require 'purecloudclient_v2a/models/voicemail_organization_policy'
require 'purecloudclient_v2a/models/voicemail_retention_policy'
require 'purecloudclient_v2a/models/voicemail_search_criteria'
require 'purecloudclient_v2a/models/voicemail_search_request'
require 'purecloudclient_v2a/models/voicemail_user_policy'
require 'purecloudclient_v2a/models/voicemails_search_response'
require 'purecloudclient_v2a/models/wfm_historical_adherence_calculations_complete_notice_notification'
require 'purecloudclient_v2a/models/wfm_historical_adherence_query'
require 'purecloudclient_v2a/models/wfm_historical_adherence_response'
require 'purecloudclient_v2a/models/wfm_intraday_queue_listing'
require 'purecloudclient_v2a/models/wfm_user_entity_listing'
require 'purecloudclient_v2a/models/workspace'
require 'purecloudclient_v2a/models/workspace_create'
require 'purecloudclient_v2a/models/workspace_entity_listing'
require 'purecloudclient_v2a/models/workspace_member'
require 'purecloudclient_v2a/models/workspace_member_entity_listing'
require 'purecloudclient_v2a/models/workspace_summary'
require 'purecloudclient_v2a/models/wrap_up_code_mapping'
require 'purecloudclient_v2a/models/wrap_up_code_mapping_notification'
require 'purecloudclient_v2a/models/wrapup'
require 'purecloudclient_v2a/models/wrapup_code'
require 'purecloudclient_v2a/models/wrapup_code_entity_listing'

# APIs
require 'purecloudclient_v2a/api/alerting_api'
require 'purecloudclient_v2a/api/analytics_api'
require 'purecloudclient_v2a/api/architect_api'
require 'purecloudclient_v2a/api/attributes_api'
require 'purecloudclient_v2a/api/authorization_api'
require 'purecloudclient_v2a/api/billing_api'
require 'purecloudclient_v2a/api/content_management_api'
require 'purecloudclient_v2a/api/conversations_api'
require 'purecloudclient_v2a/api/external_contacts_api'
require 'purecloudclient_v2a/api/fax_api'
require 'purecloudclient_v2a/api/geolocation_api'
require 'purecloudclient_v2a/api/greetings_api'
require 'purecloudclient_v2a/api/groups_api'
require 'purecloudclient_v2a/api/identity_provider_api'
require 'purecloudclient_v2a/api/integrations_api'
require 'purecloudclient_v2a/api/languages_api'
require 'purecloudclient_v2a/api/license_api'
require 'purecloudclient_v2a/api/locations_api'
require 'purecloudclient_v2a/api/mobile_devices_api'
require 'purecloudclient_v2a/api/notifications_api'
require 'purecloudclient_v2a/api/o_auth_api'
require 'purecloudclient_v2a/api/organization_api'
require 'purecloudclient_v2a/api/organization_authorization_api'
require 'purecloudclient_v2a/api/outbound_api'
require 'purecloudclient_v2a/api/presence_api'
require 'purecloudclient_v2a/api/quality_api'
require 'purecloudclient_v2a/api/recording_api'
require 'purecloudclient_v2a/api/response_management_api'
require 'purecloudclient_v2a/api/routing_api'
require 'purecloudclient_v2a/api/scripts_api'
require 'purecloudclient_v2a/api/search_api'
require 'purecloudclient_v2a/api/signed_data_api'
require 'purecloudclient_v2a/api/stations_api'
require 'purecloudclient_v2a/api/suggest_api'
require 'purecloudclient_v2a/api/telephony_providers_edge_api'
require 'purecloudclient_v2a/api/tokens_api'
require 'purecloudclient_v2a/api/user_recordings_api'
require 'purecloudclient_v2a/api/users_api'
require 'purecloudclient_v2a/api/utilities_api'
require 'purecloudclient_v2a/api/voicemail_api'
require 'purecloudclient_v2a/api/workforce_management_api'

module PureCloud
  class << self
    # Customize default settings for the SDK using block.
    #   PureCloud.configure do |config|
    #     config.username = "xxx"
    #     config.password = "xxx"
    #   end
    # If no block given, return the default Configuration object.
    def configure
      if block_given?
        yield(Configuration.default)
      else
        Configuration.default
      end
    end
  end
end
require 'rest_client'
require 'json'
require 'base64'

module PureCloud
  class << self
    # Authenticates to PureCloud using the client credientals OAuth grant.
    #
    # @param client_id OAuth client id
    # @param client_secret OAuth client secret
    # @param environment PureCloud environment (mypurecloud.com, mypurecloud.ie, mypurecloud.com.au, etc)
    def authenticate_with_client_credentials(client_id, client_secret, environment = nil)
      environment ||= "mypurecloud.com"
      self.configure.host = 'api.' + environment;

      basic = Base64.strict_encode64("#{client_id}:#{client_secret}")

      tokenData = JSON.parse RestClient.post("https://login.#{environment}/token",
                              {:grant_type => 'client_credentials'},
                              :Authorization => "Basic " + basic,
                              'content-type'=> 'application/x-www-form-urlencoded',
                              :accept => :json)
      self.configure.access_token = tokenData["access_token"]
    end

    # Retrieves an Access token given an authorization code (authorization code grant)
    #
    # @param auth_code Authorization code from the OAuth redirec
    # @param client_id OAuth client id
    # @param client_secret OAuth client secret
    # @param client_secret OAuth redirect URI
    # @param environment (Optional) PureCloud environment (mypurecloud.com, mypurecloud.ie, mypurecloud.com.au, etc)
    def get_access_token_from_auth_code(auth_code, client_id, client_secret, redirect_uri, environment = nil)
      environment ||= "mypurecloud.com"

      tokenFormData = {
        "grant_type" => "authorization_code",
        "code" => auth_code,
        "redirect_uri" => redirect_uri
      }

      tokenResponse =JSON.parse RestClient.post "https://#{client_id}:#{client_secret}@login.#{environment}/token", tokenFormData

      return tokenResponse['access_token'];
    end
  end
end

