twilio-ruby 7.11.1 → 7.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +221 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +45 -2
- data/lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_calls.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_type_registrations.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +0 -59
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -59
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +0 -59
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation_with_participants.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/action.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +525 -0
- data/lib/twilio-ruby/rest/conversations/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/conversations/v2.rb +10 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +0 -59
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +12 -14
- data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +2 -4
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -59
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +0 -59
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/o_auth_app.rb +0 -59
- data/lib/twilio-ruby/rest/iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/call.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v1/setting.rb +0 -59
- data/lib/twilio-ruby/rest/insights/v2/inbound.rb +2 -261
- data/lib/twilio-ruby/rest/insights/v2/inbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/outbound.rb +18 -299
- data/lib/twilio-ruby/rest/insights/v2/outbound_report.rb +258 -0
- data/lib/twilio-ruby/rest/insights/v2/report.rb +27 -184
- data/lib/twilio-ruby/rest/insights/v2.rb +14 -4
- data/lib/twilio-ruby/rest/insights/v3/metadata.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query.rb +1 -60
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +654 -0
- data/lib/twilio-ruby/rest/insights/v3/result.rb +195 -0
- data/lib/twilio-ruby/rest/insights/v3.rb +17 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/operator_attachments.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -59
- data/lib/twilio-ruby/rest/intelligence/v3/rule_execution.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/operation.rb +0 -59
- data/lib/twilio-ruby/rest/knowledge/v2/search.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +0 -59
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +0 -59
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/bulk.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/identifier.rb +0 -80
- data/lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/lookup.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/observation.rb +2 -4
- data/lib/twilio-ruby/rest/memory/v1/operation.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/recall.rb +0 -59
- data/lib/twilio-ruby/rest/memory/v1/revision.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/deactivations.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/domain_validate_dn.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +2 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v1/usecase.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/domain_certs.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb +0 -59
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sender_id_registration.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v1/webhook.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +0 -59
- data/lib/twilio-ruby/rest/numbers/v2.rb +0 -16
- data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb +0 -59
- data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -61
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/authorize.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/v1/token.rb +0 -59
- data/lib/twilio-ruby/rest/preview_iam/versionless/organization.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +0 -59
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +0 -59
- data/lib/twilio-ruby/rest/routes/v3/phone_number.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -59
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_test_user.rb +0 -59
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +0 -59
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +0 -59
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_brand_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/a2p_campaign_registration_embedded_session.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products_provisional_copy.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb +3 -62
- data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -61
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +0 -59
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/anonymize.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/participant/subscribe_rules.rb +0 -59
- data/lib/twilio-ruby/rest/video/v1/room/recording_rules.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/account_default_configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration/default.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/configuration.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/recording.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/transcription.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v2/type.rb +0 -59
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -114,8 +114,8 @@ module Twilio
|
|
|
114
114
|
# Lists InsightsQuestionnairesInstance records from the API as a list.
|
|
115
115
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
116
116
|
# memory before returning.
|
|
117
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
118
117
|
# @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
|
|
118
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
119
119
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
120
120
|
# guarantees to never return more than limit. Default is no limit
|
|
121
121
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -123,10 +123,10 @@ module Twilio
|
|
|
123
123
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
124
124
|
# efficient page size, i.e. min(limit, 1000)
|
|
125
125
|
# @return [Array] Array of up to limit results
|
|
126
|
-
def list(
|
|
126
|
+
def list(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
127
127
|
self.stream(
|
|
128
|
-
authorization: authorization,
|
|
129
128
|
include_inactive: include_inactive,
|
|
129
|
+
authorization: authorization,
|
|
130
130
|
limit: limit,
|
|
131
131
|
page_size: page_size
|
|
132
132
|
).entries
|
|
@@ -136,8 +136,8 @@ module Twilio
|
|
|
136
136
|
# Streams Instance records from the API as an Enumerable.
|
|
137
137
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
138
138
|
# is reached.
|
|
139
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
140
139
|
# @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
|
|
140
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
141
141
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
142
142
|
# guarantees to never return more than limit. Default is no limit
|
|
143
143
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -145,12 +145,12 @@ module Twilio
|
|
|
145
145
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
146
146
|
# efficient page size, i.e. min(limit, 1000)
|
|
147
147
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
148
|
-
def stream(
|
|
148
|
+
def stream(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
149
149
|
limits = @version.read_limits(limit, page_size)
|
|
150
150
|
|
|
151
151
|
page = self.page(
|
|
152
|
-
authorization: authorization,
|
|
153
152
|
include_inactive: include_inactive,
|
|
153
|
+
authorization: authorization,
|
|
154
154
|
page_size: limits[:page_size], )
|
|
155
155
|
|
|
156
156
|
return [].each if page.nil?
|
|
@@ -162,8 +162,8 @@ module Twilio
|
|
|
162
162
|
|
|
163
163
|
##
|
|
164
164
|
# Lists InsightsQuestionnairesPageMetadata records from the API as a list.
|
|
165
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
166
165
|
# @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
|
|
166
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
167
167
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
168
168
|
# guarantees to never return more than limit. Default is no limit
|
|
169
169
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -171,15 +171,14 @@ module Twilio
|
|
|
171
171
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
172
172
|
# efficient page size, i.e. min(limit, 1000)
|
|
173
173
|
# @return [Array] Array of up to limit results
|
|
174
|
-
def list_with_metadata(
|
|
174
|
+
def list_with_metadata(include_inactive: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
175
175
|
limits = @version.read_limits(limit, page_size)
|
|
176
176
|
params = Twilio::Values.of({
|
|
177
|
-
'Authorization' => authorization,
|
|
178
177
|
'IncludeInactive' => include_inactive,
|
|
179
178
|
|
|
180
179
|
'PageSize' => limits[:page_size],
|
|
181
180
|
});
|
|
182
|
-
headers = Twilio::Values.of({})
|
|
181
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
183
182
|
|
|
184
183
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
185
184
|
|
|
@@ -207,21 +206,20 @@ module Twilio
|
|
|
207
206
|
##
|
|
208
207
|
# Retrieve a single page of InsightsQuestionnairesInstance records from the API.
|
|
209
208
|
# Request is executed immediately.
|
|
210
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
211
209
|
# @param [Boolean] include_inactive Flag indicating whether to include inactive questionnaires or not
|
|
210
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
212
211
|
# @param [String] page_token PageToken provided by the API
|
|
213
212
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
214
213
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
215
214
|
# @return [Page] Page of InsightsQuestionnairesInstance
|
|
216
|
-
def page(
|
|
215
|
+
def page(include_inactive: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
217
216
|
params = Twilio::Values.of({
|
|
218
|
-
'Authorization' => authorization,
|
|
219
217
|
'IncludeInactive' => include_inactive,
|
|
220
218
|
'PageToken' => page_token,
|
|
221
219
|
'Page' => page_number,
|
|
222
220
|
'PageSize' => page_size,
|
|
223
221
|
})
|
|
224
|
-
headers = Twilio::Values.of({})
|
|
222
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
225
223
|
|
|
226
224
|
|
|
227
225
|
|
|
@@ -151,11 +151,10 @@ module Twilio
|
|
|
151
151
|
def list_with_metadata(authorization: :unset, limit: nil, page_size: nil)
|
|
152
152
|
limits = @version.read_limits(limit, page_size)
|
|
153
153
|
params = Twilio::Values.of({
|
|
154
|
-
'Authorization' => authorization,
|
|
155
154
|
|
|
156
155
|
'PageSize' => limits[:page_size],
|
|
157
156
|
});
|
|
158
|
-
headers = Twilio::Values.of({})
|
|
157
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
159
158
|
|
|
160
159
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
161
160
|
|
|
@@ -190,12 +189,11 @@ module Twilio
|
|
|
190
189
|
# @return [Page] Page of InsightsQuestionnairesCategoryInstance
|
|
191
190
|
def page(authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
192
191
|
params = Twilio::Values.of({
|
|
193
|
-
'Authorization' => authorization,
|
|
194
192
|
'PageToken' => page_token,
|
|
195
193
|
'Page' => page_number,
|
|
196
194
|
'PageSize' => page_size,
|
|
197
195
|
})
|
|
198
|
-
headers = Twilio::Values.of({})
|
|
196
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
199
197
|
|
|
200
198
|
|
|
201
199
|
|
|
@@ -120,8 +120,8 @@ module Twilio
|
|
|
120
120
|
# Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
|
|
121
121
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
122
122
|
# memory before returning.
|
|
123
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
124
123
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
124
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
125
125
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
126
126
|
# guarantees to never return more than limit. Default is no limit
|
|
127
127
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -129,10 +129,10 @@ module Twilio
|
|
|
129
129
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
130
130
|
# efficient page size, i.e. min(limit, 1000)
|
|
131
131
|
# @return [Array] Array of up to limit results
|
|
132
|
-
def list(
|
|
132
|
+
def list(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
133
133
|
self.stream(
|
|
134
|
-
authorization: authorization,
|
|
135
134
|
category_sid: category_sid,
|
|
135
|
+
authorization: authorization,
|
|
136
136
|
limit: limit,
|
|
137
137
|
page_size: page_size
|
|
138
138
|
).entries
|
|
@@ -142,8 +142,8 @@ module Twilio
|
|
|
142
142
|
# Streams Instance records from the API as an Enumerable.
|
|
143
143
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
144
144
|
# is reached.
|
|
145
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
146
145
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
146
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
147
147
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
148
148
|
# guarantees to never return more than limit. Default is no limit
|
|
149
149
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -151,12 +151,12 @@ module Twilio
|
|
|
151
151
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
152
152
|
# efficient page size, i.e. min(limit, 1000)
|
|
153
153
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
154
|
-
def stream(
|
|
154
|
+
def stream(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
155
155
|
limits = @version.read_limits(limit, page_size)
|
|
156
156
|
|
|
157
157
|
page = self.page(
|
|
158
|
-
authorization: authorization,
|
|
159
158
|
category_sid: category_sid,
|
|
159
|
+
authorization: authorization,
|
|
160
160
|
page_size: limits[:page_size], )
|
|
161
161
|
|
|
162
162
|
return [].each if page.nil?
|
|
@@ -168,8 +168,8 @@ module Twilio
|
|
|
168
168
|
|
|
169
169
|
##
|
|
170
170
|
# Lists InsightsQuestionnairesQuestionPageMetadata records from the API as a list.
|
|
171
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
172
171
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
172
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
173
173
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
174
174
|
# guarantees to never return more than limit. Default is no limit
|
|
175
175
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -177,16 +177,15 @@ module Twilio
|
|
|
177
177
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
178
178
|
# efficient page size, i.e. min(limit, 1000)
|
|
179
179
|
# @return [Array] Array of up to limit results
|
|
180
|
-
def list_with_metadata(
|
|
180
|
+
def list_with_metadata(category_sid: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
181
181
|
limits = @version.read_limits(limit, page_size)
|
|
182
182
|
params = Twilio::Values.of({
|
|
183
|
-
'Authorization' => authorization,
|
|
184
183
|
|
|
185
184
|
'CategorySid' => Twilio.serialize_list(category_sid) { |e| e },
|
|
186
185
|
|
|
187
186
|
'PageSize' => limits[:page_size],
|
|
188
187
|
});
|
|
189
|
-
headers = Twilio::Values.of({})
|
|
188
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
190
189
|
|
|
191
190
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
192
191
|
|
|
@@ -214,22 +213,21 @@ module Twilio
|
|
|
214
213
|
##
|
|
215
214
|
# Retrieve a single page of InsightsQuestionnairesQuestionInstance records from the API.
|
|
216
215
|
# Request is executed immediately.
|
|
217
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
218
216
|
# @param [Array[String]] category_sid The list of category SIDs
|
|
217
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
219
218
|
# @param [String] page_token PageToken provided by the API
|
|
220
219
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
221
220
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
222
221
|
# @return [Page] Page of InsightsQuestionnairesQuestionInstance
|
|
223
|
-
def page(
|
|
222
|
+
def page(category_sid: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
224
223
|
params = Twilio::Values.of({
|
|
225
|
-
'Authorization' => authorization,
|
|
226
224
|
|
|
227
225
|
'CategorySid' => Twilio.serialize_list(category_sid) { |e| e },
|
|
228
226
|
'PageToken' => page_token,
|
|
229
227
|
'Page' => page_number,
|
|
230
228
|
'PageSize' => page_size,
|
|
231
229
|
})
|
|
232
|
-
headers = Twilio::Values.of({})
|
|
230
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
233
231
|
|
|
234
232
|
|
|
235
233
|
|
|
@@ -36,9 +36,9 @@ module Twilio
|
|
|
36
36
|
# Lists InsightsSegmentsInstance records from the API as a list.
|
|
37
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
38
38
|
# memory before returning.
|
|
39
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
40
39
|
# @param [String] segment_id To unique id of the segment
|
|
41
40
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
41
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
42
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
43
43
|
# guarantees to never return more than limit. Default is no limit
|
|
44
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -46,11 +46,11 @@ module Twilio
|
|
|
46
46
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
47
47
|
# efficient page size, i.e. min(limit, 1000)
|
|
48
48
|
# @return [Array] Array of up to limit results
|
|
49
|
-
def list(
|
|
49
|
+
def list(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
50
50
|
self.stream(
|
|
51
|
-
authorization: authorization,
|
|
52
51
|
segment_id: segment_id,
|
|
53
52
|
reservation_id: reservation_id,
|
|
53
|
+
authorization: authorization,
|
|
54
54
|
limit: limit,
|
|
55
55
|
page_size: page_size
|
|
56
56
|
).entries
|
|
@@ -60,9 +60,9 @@ module Twilio
|
|
|
60
60
|
# Streams Instance records from the API as an Enumerable.
|
|
61
61
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
62
62
|
# is reached.
|
|
63
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
64
63
|
# @param [String] segment_id To unique id of the segment
|
|
65
64
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
65
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
66
66
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
67
67
|
# guarantees to never return more than limit. Default is no limit
|
|
68
68
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -70,13 +70,13 @@ module Twilio
|
|
|
70
70
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
71
71
|
# efficient page size, i.e. min(limit, 1000)
|
|
72
72
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
73
|
-
def stream(
|
|
73
|
+
def stream(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
74
74
|
limits = @version.read_limits(limit, page_size)
|
|
75
75
|
|
|
76
76
|
page = self.page(
|
|
77
|
-
authorization: authorization,
|
|
78
77
|
segment_id: segment_id,
|
|
79
78
|
reservation_id: reservation_id,
|
|
79
|
+
authorization: authorization,
|
|
80
80
|
page_size: limits[:page_size], )
|
|
81
81
|
|
|
82
82
|
return [].each if page.nil?
|
|
@@ -88,9 +88,9 @@ module Twilio
|
|
|
88
88
|
|
|
89
89
|
##
|
|
90
90
|
# Lists InsightsSegmentsPageMetadata records from the API as a list.
|
|
91
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
92
91
|
# @param [String] segment_id To unique id of the segment
|
|
93
92
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
93
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
94
94
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
95
95
|
# guarantees to never return more than limit. Default is no limit
|
|
96
96
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -98,17 +98,16 @@ module Twilio
|
|
|
98
98
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
99
99
|
# efficient page size, i.e. min(limit, 1000)
|
|
100
100
|
# @return [Array] Array of up to limit results
|
|
101
|
-
def list_with_metadata(
|
|
101
|
+
def list_with_metadata(segment_id: :unset, reservation_id: :unset, authorization: :unset, limit: nil, page_size: nil)
|
|
102
102
|
limits = @version.read_limits(limit, page_size)
|
|
103
103
|
params = Twilio::Values.of({
|
|
104
|
-
'Authorization' => authorization,
|
|
105
104
|
'SegmentId' => segment_id,
|
|
106
105
|
|
|
107
106
|
'ReservationId' => Twilio.serialize_list(reservation_id) { |e| e },
|
|
108
107
|
|
|
109
108
|
'PageSize' => limits[:page_size],
|
|
110
109
|
});
|
|
111
|
-
headers = Twilio::Values.of({})
|
|
110
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
112
111
|
|
|
113
112
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
114
113
|
|
|
@@ -136,16 +135,15 @@ module Twilio
|
|
|
136
135
|
##
|
|
137
136
|
# Retrieve a single page of InsightsSegmentsInstance records from the API.
|
|
138
137
|
# Request is executed immediately.
|
|
139
|
-
# @param [String] authorization The Authorization HTTP request header
|
|
140
138
|
# @param [String] segment_id To unique id of the segment
|
|
141
139
|
# @param [Array[String]] reservation_id The list of reservation Ids
|
|
140
|
+
# @param [String] authorization The Authorization HTTP request header
|
|
142
141
|
# @param [String] page_token PageToken provided by the API
|
|
143
142
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
144
143
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
145
144
|
# @return [Page] Page of InsightsSegmentsInstance
|
|
146
|
-
def page(
|
|
145
|
+
def page(segment_id: :unset, reservation_id: :unset, authorization: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
147
146
|
params = Twilio::Values.of({
|
|
148
|
-
'Authorization' => authorization,
|
|
149
147
|
'SegmentId' => segment_id,
|
|
150
148
|
|
|
151
149
|
'ReservationId' => Twilio.serialize_list(reservation_id) { |e| e },
|
|
@@ -153,7 +151,7 @@ module Twilio
|
|
|
153
151
|
'Page' => page_number,
|
|
154
152
|
'PageSize' => page_size,
|
|
155
153
|
})
|
|
156
|
-
headers = Twilio::Values.of({})
|
|
154
|
+
headers = Twilio::Values.of({ 'Authorization' => authorization, })
|
|
157
155
|
|
|
158
156
|
|
|
159
157
|
|
|
@@ -197,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class InsightsSessionPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :insights_session_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@insights_session_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@insights_session_page << InsightsSessionListResponse.new(version, @payload, key, limit - records)
|
|
211
|
-
@payload = self.next_page
|
|
212
|
-
break unless @payload
|
|
213
|
-
records += (@payload.body[key] || []).size
|
|
214
|
-
end
|
|
215
|
-
# Path Solution
|
|
216
|
-
@solution = solution
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def each
|
|
220
|
-
@insights_session_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class InsightsSessionListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<InsightsSessionInstance>] instance
|
|
232
|
-
# @param [Hash{String => Object}] headers
|
|
233
|
-
# @param [Integer] status_code
|
|
234
|
-
def initialize(version, payload, key, limit = :unset)
|
|
235
|
-
data_list = payload.body[key] || []
|
|
236
|
-
if limit != :unset
|
|
237
|
-
data_list = data_list[0, limit]
|
|
238
|
-
end
|
|
239
|
-
@insights_session = data_list.map do |data|
|
|
240
|
-
InsightsSessionInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def insights_session
|
|
247
|
-
@insights_session
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def headers
|
|
251
|
-
@headers
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def status_code
|
|
255
|
-
@status_code
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
|
|
259
200
|
class InsightsSessionInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the InsightsSessionInstance
|
|
@@ -118,65 +118,6 @@ module Twilio
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class InsightsSettingsAnswerSetsPageMetadata < PageMetadata
|
|
122
|
-
attr_reader :insights_settings_answer_sets_page
|
|
123
|
-
|
|
124
|
-
def initialize(version, response, solution, limit)
|
|
125
|
-
super(version, response)
|
|
126
|
-
@insights_settings_answer_sets_page = []
|
|
127
|
-
@limit = limit
|
|
128
|
-
key = get_key(response.body)
|
|
129
|
-
records = 0
|
|
130
|
-
while( limit != :unset && records < limit )
|
|
131
|
-
@insights_settings_answer_sets_page << InsightsSettingsAnswerSetsListResponse.new(version, @payload, key, limit - records)
|
|
132
|
-
@payload = self.next_page
|
|
133
|
-
break unless @payload
|
|
134
|
-
records += (@payload.body[key] || []).size
|
|
135
|
-
end
|
|
136
|
-
# Path Solution
|
|
137
|
-
@solution = solution
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def each
|
|
141
|
-
@insights_settings_answer_sets_page.each do |record|
|
|
142
|
-
yield record
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def to_s
|
|
147
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
class InsightsSettingsAnswerSetsListResponse < InstanceListResource
|
|
151
|
-
|
|
152
|
-
# @param [Array<InsightsSettingsAnswerSetsInstance>] instance
|
|
153
|
-
# @param [Hash{String => Object}] headers
|
|
154
|
-
# @param [Integer] status_code
|
|
155
|
-
def initialize(version, payload, key, limit = :unset)
|
|
156
|
-
data_list = payload.body[key] || []
|
|
157
|
-
if limit != :unset
|
|
158
|
-
data_list = data_list[0, limit]
|
|
159
|
-
end
|
|
160
|
-
@insights_settings_answer_sets = data_list.map do |data|
|
|
161
|
-
InsightsSettingsAnswerSetsInstance.new(version, data)
|
|
162
|
-
end
|
|
163
|
-
@headers = payload.headers
|
|
164
|
-
@status_code = payload.status_code
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def insights_settings_answer_sets
|
|
168
|
-
@insights_settings_answer_sets
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def headers
|
|
172
|
-
@headers
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def status_code
|
|
176
|
-
@status_code
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
121
|
class InsightsSettingsAnswerSetsInstance < InstanceResource
|
|
181
122
|
##
|
|
182
123
|
# Initialize the InsightsSettingsAnswerSetsInstance
|
|
@@ -118,65 +118,6 @@ module Twilio
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class InsightsSettingsCommentPageMetadata < PageMetadata
|
|
122
|
-
attr_reader :insights_settings_comment_page
|
|
123
|
-
|
|
124
|
-
def initialize(version, response, solution, limit)
|
|
125
|
-
super(version, response)
|
|
126
|
-
@insights_settings_comment_page = []
|
|
127
|
-
@limit = limit
|
|
128
|
-
key = get_key(response.body)
|
|
129
|
-
records = 0
|
|
130
|
-
while( limit != :unset && records < limit )
|
|
131
|
-
@insights_settings_comment_page << InsightsSettingsCommentListResponse.new(version, @payload, key, limit - records)
|
|
132
|
-
@payload = self.next_page
|
|
133
|
-
break unless @payload
|
|
134
|
-
records += (@payload.body[key] || []).size
|
|
135
|
-
end
|
|
136
|
-
# Path Solution
|
|
137
|
-
@solution = solution
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
def each
|
|
141
|
-
@insights_settings_comment_page.each do |record|
|
|
142
|
-
yield record
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def to_s
|
|
147
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
class InsightsSettingsCommentListResponse < InstanceListResource
|
|
151
|
-
|
|
152
|
-
# @param [Array<InsightsSettingsCommentInstance>] instance
|
|
153
|
-
# @param [Hash{String => Object}] headers
|
|
154
|
-
# @param [Integer] status_code
|
|
155
|
-
def initialize(version, payload, key, limit = :unset)
|
|
156
|
-
data_list = payload.body[key] || []
|
|
157
|
-
if limit != :unset
|
|
158
|
-
data_list = data_list[0, limit]
|
|
159
|
-
end
|
|
160
|
-
@insights_settings_comment = data_list.map do |data|
|
|
161
|
-
InsightsSettingsCommentInstance.new(version, data)
|
|
162
|
-
end
|
|
163
|
-
@headers = payload.headers
|
|
164
|
-
@status_code = payload.status_code
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
def insights_settings_comment
|
|
168
|
-
@insights_settings_comment
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
def headers
|
|
172
|
-
@headers
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def status_code
|
|
176
|
-
@status_code
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
121
|
class InsightsSettingsCommentInstance < InstanceResource
|
|
181
122
|
##
|
|
182
123
|
# Initialize the InsightsSettingsCommentInstance
|
|
@@ -197,65 +197,6 @@ module Twilio
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
class InsightsUserRolesPageMetadata < PageMetadata
|
|
201
|
-
attr_reader :insights_user_roles_page
|
|
202
|
-
|
|
203
|
-
def initialize(version, response, solution, limit)
|
|
204
|
-
super(version, response)
|
|
205
|
-
@insights_user_roles_page = []
|
|
206
|
-
@limit = limit
|
|
207
|
-
key = get_key(response.body)
|
|
208
|
-
records = 0
|
|
209
|
-
while( limit != :unset && records < limit )
|
|
210
|
-
@insights_user_roles_page << InsightsUserRolesListResponse.new(version, @payload, key, limit - records)
|
|
211
|
-
@payload = self.next_page
|
|
212
|
-
break unless @payload
|
|
213
|
-
records += (@payload.body[key] || []).size
|
|
214
|
-
end
|
|
215
|
-
# Path Solution
|
|
216
|
-
@solution = solution
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def each
|
|
220
|
-
@insights_user_roles_page.each do |record|
|
|
221
|
-
yield record
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def to_s
|
|
226
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
class InsightsUserRolesListResponse < InstanceListResource
|
|
230
|
-
|
|
231
|
-
# @param [Array<InsightsUserRolesInstance>] instance
|
|
232
|
-
# @param [Hash{String => Object}] headers
|
|
233
|
-
# @param [Integer] status_code
|
|
234
|
-
def initialize(version, payload, key, limit = :unset)
|
|
235
|
-
data_list = payload.body[key] || []
|
|
236
|
-
if limit != :unset
|
|
237
|
-
data_list = data_list[0, limit]
|
|
238
|
-
end
|
|
239
|
-
@insights_user_roles = data_list.map do |data|
|
|
240
|
-
InsightsUserRolesInstance.new(version, data)
|
|
241
|
-
end
|
|
242
|
-
@headers = payload.headers
|
|
243
|
-
@status_code = payload.status_code
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
def insights_user_roles
|
|
247
|
-
@insights_user_roles
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
def headers
|
|
251
|
-
@headers
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def status_code
|
|
255
|
-
@status_code
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
|
|
259
200
|
class InsightsUserRolesInstance < InstanceResource
|
|
260
201
|
##
|
|
261
202
|
# Initialize the InsightsUserRolesInstance
|