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
|
@@ -270,65 +270,6 @@ module Twilio
|
|
|
270
270
|
end
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
-
class UserPageMetadata < PageMetadata
|
|
274
|
-
attr_reader :user_page
|
|
275
|
-
|
|
276
|
-
def initialize(version, response, solution, limit)
|
|
277
|
-
super(version, response)
|
|
278
|
-
@user_page = []
|
|
279
|
-
@limit = limit
|
|
280
|
-
key = get_key(response.body)
|
|
281
|
-
records = 0
|
|
282
|
-
while( limit != :unset && records < limit )
|
|
283
|
-
@user_page << UserListResponse.new(version, @payload, key, limit - records)
|
|
284
|
-
@payload = self.next_page
|
|
285
|
-
break unless @payload
|
|
286
|
-
records += (@payload.body[key] || []).size
|
|
287
|
-
end
|
|
288
|
-
# Path Solution
|
|
289
|
-
@solution = solution
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
def each
|
|
293
|
-
@user_page.each do |record|
|
|
294
|
-
yield record
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
def to_s
|
|
299
|
-
'<Twilio::REST::FrontlineApi::V1PageMetadata>';
|
|
300
|
-
end
|
|
301
|
-
end
|
|
302
|
-
class UserListResponse < InstanceListResource
|
|
303
|
-
|
|
304
|
-
# @param [Array<UserInstance>] instance
|
|
305
|
-
# @param [Hash{String => Object}] headers
|
|
306
|
-
# @param [Integer] status_code
|
|
307
|
-
def initialize(version, payload, key, limit = :unset)
|
|
308
|
-
data_list = payload.body[key] || []
|
|
309
|
-
if limit != :unset
|
|
310
|
-
data_list = data_list[0, limit]
|
|
311
|
-
end
|
|
312
|
-
@user = data_list.map do |data|
|
|
313
|
-
UserInstance.new(version, data)
|
|
314
|
-
end
|
|
315
|
-
@headers = payload.headers
|
|
316
|
-
@status_code = payload.status_code
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
def user
|
|
320
|
-
@user
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
def headers
|
|
324
|
-
@headers
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def status_code
|
|
328
|
-
@status_code
|
|
329
|
-
end
|
|
330
|
-
end
|
|
331
|
-
|
|
332
273
|
class UserInstance < InstanceResource
|
|
333
274
|
##
|
|
334
275
|
# Initialize the UserInstance
|
|
@@ -290,65 +290,6 @@ module Twilio
|
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
class ApiKeyPageMetadata < PageMetadata
|
|
294
|
-
attr_reader :api_key_page
|
|
295
|
-
|
|
296
|
-
def initialize(version, response, solution, limit)
|
|
297
|
-
super(version, response)
|
|
298
|
-
@api_key_page = []
|
|
299
|
-
@limit = limit
|
|
300
|
-
key = get_key(response.body)
|
|
301
|
-
records = 0
|
|
302
|
-
while( limit != :unset && records < limit )
|
|
303
|
-
@api_key_page << ApiKeyListResponse.new(version, @payload, key, limit - records)
|
|
304
|
-
@payload = self.next_page
|
|
305
|
-
break unless @payload
|
|
306
|
-
records += (@payload.body[key] || []).size
|
|
307
|
-
end
|
|
308
|
-
# Path Solution
|
|
309
|
-
@solution = solution
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def each
|
|
313
|
-
@api_key_page.each do |record|
|
|
314
|
-
yield record
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def to_s
|
|
319
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
class ApiKeyListResponse < InstanceListResource
|
|
323
|
-
|
|
324
|
-
# @param [Array<ApiKeyInstance>] instance
|
|
325
|
-
# @param [Hash{String => Object}] headers
|
|
326
|
-
# @param [Integer] status_code
|
|
327
|
-
def initialize(version, payload, key, limit = :unset)
|
|
328
|
-
data_list = payload.body[key] || []
|
|
329
|
-
if limit != :unset
|
|
330
|
-
data_list = data_list[0, limit]
|
|
331
|
-
end
|
|
332
|
-
@api_key = data_list.map do |data|
|
|
333
|
-
ApiKeyInstance.new(version, data)
|
|
334
|
-
end
|
|
335
|
-
@headers = payload.headers
|
|
336
|
-
@status_code = payload.status_code
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def api_key
|
|
340
|
-
@api_key
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def headers
|
|
344
|
-
@headers
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def status_code
|
|
348
|
-
@status_code
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
|
|
352
293
|
class ApiKeyInstance < InstanceResource
|
|
353
294
|
##
|
|
354
295
|
# Initialize the ApiKeyInstance
|
|
@@ -144,65 +144,6 @@ module Twilio
|
|
|
144
144
|
end
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
class NewApiKeyPageMetadata < PageMetadata
|
|
148
|
-
attr_reader :new_api_key_page
|
|
149
|
-
|
|
150
|
-
def initialize(version, response, solution, limit)
|
|
151
|
-
super(version, response)
|
|
152
|
-
@new_api_key_page = []
|
|
153
|
-
@limit = limit
|
|
154
|
-
key = get_key(response.body)
|
|
155
|
-
records = 0
|
|
156
|
-
while( limit != :unset && records < limit )
|
|
157
|
-
@new_api_key_page << NewApiKeyListResponse.new(version, @payload, key, limit - records)
|
|
158
|
-
@payload = self.next_page
|
|
159
|
-
break unless @payload
|
|
160
|
-
records += (@payload.body[key] || []).size
|
|
161
|
-
end
|
|
162
|
-
# Path Solution
|
|
163
|
-
@solution = solution
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
def each
|
|
167
|
-
@new_api_key_page.each do |record|
|
|
168
|
-
yield record
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
def to_s
|
|
173
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
class NewApiKeyListResponse < InstanceListResource
|
|
177
|
-
|
|
178
|
-
# @param [Array<NewApiKeyInstance>] instance
|
|
179
|
-
# @param [Hash{String => Object}] headers
|
|
180
|
-
# @param [Integer] status_code
|
|
181
|
-
def initialize(version, payload, key, limit = :unset)
|
|
182
|
-
data_list = payload.body[key] || []
|
|
183
|
-
if limit != :unset
|
|
184
|
-
data_list = data_list[0, limit]
|
|
185
|
-
end
|
|
186
|
-
@new_api_key = data_list.map do |data|
|
|
187
|
-
NewApiKeyInstance.new(version, data)
|
|
188
|
-
end
|
|
189
|
-
@headers = payload.headers
|
|
190
|
-
@status_code = payload.status_code
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def new_api_key
|
|
194
|
-
@new_api_key
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
def headers
|
|
198
|
-
@headers
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def status_code
|
|
202
|
-
@status_code
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
|
|
206
147
|
class NewApiKeyInstance < InstanceResource
|
|
207
148
|
##
|
|
208
149
|
# Initialize the NewApiKeyInstance
|
|
@@ -428,65 +428,6 @@ module Twilio
|
|
|
428
428
|
end
|
|
429
429
|
end
|
|
430
430
|
|
|
431
|
-
class OAuthAppPageMetadata < PageMetadata
|
|
432
|
-
attr_reader :o_auth_app_page
|
|
433
|
-
|
|
434
|
-
def initialize(version, response, solution, limit)
|
|
435
|
-
super(version, response)
|
|
436
|
-
@o_auth_app_page = []
|
|
437
|
-
@limit = limit
|
|
438
|
-
key = get_key(response.body)
|
|
439
|
-
records = 0
|
|
440
|
-
while( limit != :unset && records < limit )
|
|
441
|
-
@o_auth_app_page << OAuthAppListResponse.new(version, @payload, key, limit - records)
|
|
442
|
-
@payload = self.next_page
|
|
443
|
-
break unless @payload
|
|
444
|
-
records += (@payload.body[key] || []).size
|
|
445
|
-
end
|
|
446
|
-
# Path Solution
|
|
447
|
-
@solution = solution
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
def each
|
|
451
|
-
@o_auth_app_page.each do |record|
|
|
452
|
-
yield record
|
|
453
|
-
end
|
|
454
|
-
end
|
|
455
|
-
|
|
456
|
-
def to_s
|
|
457
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
458
|
-
end
|
|
459
|
-
end
|
|
460
|
-
class OAuthAppListResponse < InstanceListResource
|
|
461
|
-
|
|
462
|
-
# @param [Array<OAuthAppInstance>] instance
|
|
463
|
-
# @param [Hash{String => Object}] headers
|
|
464
|
-
# @param [Integer] status_code
|
|
465
|
-
def initialize(version, payload, key, limit = :unset)
|
|
466
|
-
data_list = payload.body[key] || []
|
|
467
|
-
if limit != :unset
|
|
468
|
-
data_list = data_list[0, limit]
|
|
469
|
-
end
|
|
470
|
-
@o_auth_app = data_list.map do |data|
|
|
471
|
-
OAuthAppInstance.new(version, data)
|
|
472
|
-
end
|
|
473
|
-
@headers = payload.headers
|
|
474
|
-
@status_code = payload.status_code
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
def o_auth_app
|
|
478
|
-
@o_auth_app
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
def headers
|
|
482
|
-
@headers
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
def status_code
|
|
486
|
-
@status_code
|
|
487
|
-
end
|
|
488
|
-
end
|
|
489
|
-
|
|
490
431
|
class OAuthAppInstance < InstanceResource
|
|
491
432
|
##
|
|
492
433
|
# Initialize the OAuthAppInstance
|
|
@@ -168,65 +168,6 @@ module Twilio
|
|
|
168
168
|
end
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
class TokenPageMetadata < PageMetadata
|
|
172
|
-
attr_reader :token_page
|
|
173
|
-
|
|
174
|
-
def initialize(version, response, solution, limit)
|
|
175
|
-
super(version, response)
|
|
176
|
-
@token_page = []
|
|
177
|
-
@limit = limit
|
|
178
|
-
key = get_key(response.body)
|
|
179
|
-
records = 0
|
|
180
|
-
while( limit != :unset && records < limit )
|
|
181
|
-
@token_page << TokenListResponse.new(version, @payload, key, limit - records)
|
|
182
|
-
@payload = self.next_page
|
|
183
|
-
break unless @payload
|
|
184
|
-
records += (@payload.body[key] || []).size
|
|
185
|
-
end
|
|
186
|
-
# Path Solution
|
|
187
|
-
@solution = solution
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def each
|
|
191
|
-
@token_page.each do |record|
|
|
192
|
-
yield record
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def to_s
|
|
197
|
-
'<Twilio::REST::Iam::V1PageMetadata>';
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
class TokenListResponse < InstanceListResource
|
|
201
|
-
|
|
202
|
-
# @param [Array<TokenInstance>] instance
|
|
203
|
-
# @param [Hash{String => Object}] headers
|
|
204
|
-
# @param [Integer] status_code
|
|
205
|
-
def initialize(version, payload, key, limit = :unset)
|
|
206
|
-
data_list = payload.body[key] || []
|
|
207
|
-
if limit != :unset
|
|
208
|
-
data_list = data_list[0, limit]
|
|
209
|
-
end
|
|
210
|
-
@token = data_list.map do |data|
|
|
211
|
-
TokenInstance.new(version, data)
|
|
212
|
-
end
|
|
213
|
-
@headers = payload.headers
|
|
214
|
-
@status_code = payload.status_code
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def token
|
|
218
|
-
@token
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
def headers
|
|
222
|
-
@headers
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def status_code
|
|
226
|
-
@status_code
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
171
|
class TokenInstance < InstanceResource
|
|
231
172
|
##
|
|
232
173
|
# Initialize the TokenInstance
|
|
@@ -290,65 +290,6 @@ module Twilio
|
|
|
290
290
|
end
|
|
291
291
|
end
|
|
292
292
|
|
|
293
|
-
class AnnotationPageMetadata < PageMetadata
|
|
294
|
-
attr_reader :annotation_page
|
|
295
|
-
|
|
296
|
-
def initialize(version, response, solution, limit)
|
|
297
|
-
super(version, response)
|
|
298
|
-
@annotation_page = []
|
|
299
|
-
@limit = limit
|
|
300
|
-
key = get_key(response.body)
|
|
301
|
-
records = 0
|
|
302
|
-
while( limit != :unset && records < limit )
|
|
303
|
-
@annotation_page << AnnotationListResponse.new(version, @payload, key, limit - records)
|
|
304
|
-
@payload = self.next_page
|
|
305
|
-
break unless @payload
|
|
306
|
-
records += (@payload.body[key] || []).size
|
|
307
|
-
end
|
|
308
|
-
# Path Solution
|
|
309
|
-
@solution = solution
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def each
|
|
313
|
-
@annotation_page.each do |record|
|
|
314
|
-
yield record
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def to_s
|
|
319
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
320
|
-
end
|
|
321
|
-
end
|
|
322
|
-
class AnnotationListResponse < InstanceListResource
|
|
323
|
-
|
|
324
|
-
# @param [Array<AnnotationInstance>] instance
|
|
325
|
-
# @param [Hash{String => Object}] headers
|
|
326
|
-
# @param [Integer] status_code
|
|
327
|
-
def initialize(version, payload, key, limit = :unset)
|
|
328
|
-
data_list = payload.body[key] || []
|
|
329
|
-
if limit != :unset
|
|
330
|
-
data_list = data_list[0, limit]
|
|
331
|
-
end
|
|
332
|
-
@annotation = data_list.map do |data|
|
|
333
|
-
AnnotationInstance.new(version, data)
|
|
334
|
-
end
|
|
335
|
-
@headers = payload.headers
|
|
336
|
-
@status_code = payload.status_code
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def annotation
|
|
340
|
-
@annotation
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
def headers
|
|
344
|
-
@headers
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
def status_code
|
|
348
|
-
@status_code
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
|
|
352
293
|
class AnnotationInstance < InstanceResource
|
|
353
294
|
##
|
|
354
295
|
# Initialize the AnnotationInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class CallSummaryPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :call_summary_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@call_summary_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@call_summary_page << CallSummaryListResponse.new(version, @payload, key, limit - records)
|
|
222
|
-
@payload = self.next_page
|
|
223
|
-
break unless @payload
|
|
224
|
-
records += (@payload.body[key] || []).size
|
|
225
|
-
end
|
|
226
|
-
# Path Solution
|
|
227
|
-
@solution = solution
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def each
|
|
231
|
-
@call_summary_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class CallSummaryListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<CallSummaryInstance>] instance
|
|
243
|
-
# @param [Hash{String => Object}] headers
|
|
244
|
-
# @param [Integer] status_code
|
|
245
|
-
def initialize(version, payload, key, limit = :unset)
|
|
246
|
-
data_list = payload.body[key] || []
|
|
247
|
-
if limit != :unset
|
|
248
|
-
data_list = data_list[0, limit]
|
|
249
|
-
end
|
|
250
|
-
@call_summary = data_list.map do |data|
|
|
251
|
-
CallSummaryInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def call_summary
|
|
258
|
-
@call_summary
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def headers
|
|
262
|
-
@headers
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
def status_code
|
|
266
|
-
@status_code
|
|
267
|
-
end
|
|
268
|
-
end
|
|
269
|
-
|
|
270
211
|
class CallSummaryInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the CallSummaryInstance
|
|
@@ -240,65 +240,6 @@ module Twilio
|
|
|
240
240
|
end
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
class CallPageMetadata < PageMetadata
|
|
244
|
-
attr_reader :call_page
|
|
245
|
-
|
|
246
|
-
def initialize(version, response, solution, limit)
|
|
247
|
-
super(version, response)
|
|
248
|
-
@call_page = []
|
|
249
|
-
@limit = limit
|
|
250
|
-
key = get_key(response.body)
|
|
251
|
-
records = 0
|
|
252
|
-
while( limit != :unset && records < limit )
|
|
253
|
-
@call_page << CallListResponse.new(version, @payload, key, limit - records)
|
|
254
|
-
@payload = self.next_page
|
|
255
|
-
break unless @payload
|
|
256
|
-
records += (@payload.body[key] || []).size
|
|
257
|
-
end
|
|
258
|
-
# Path Solution
|
|
259
|
-
@solution = solution
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
def each
|
|
263
|
-
@call_page.each do |record|
|
|
264
|
-
yield record
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
def to_s
|
|
269
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
class CallListResponse < InstanceListResource
|
|
273
|
-
|
|
274
|
-
# @param [Array<CallInstance>] instance
|
|
275
|
-
# @param [Hash{String => Object}] headers
|
|
276
|
-
# @param [Integer] status_code
|
|
277
|
-
def initialize(version, payload, key, limit = :unset)
|
|
278
|
-
data_list = payload.body[key] || []
|
|
279
|
-
if limit != :unset
|
|
280
|
-
data_list = data_list[0, limit]
|
|
281
|
-
end
|
|
282
|
-
@call = data_list.map do |data|
|
|
283
|
-
CallInstance.new(version, data)
|
|
284
|
-
end
|
|
285
|
-
@headers = payload.headers
|
|
286
|
-
@status_code = payload.status_code
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def call
|
|
290
|
-
@call
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def headers
|
|
294
|
-
@headers
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def status_code
|
|
298
|
-
@status_code
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
243
|
class CallInstance < InstanceResource
|
|
303
244
|
##
|
|
304
245
|
# Initialize the CallInstance
|
|
@@ -271,65 +271,6 @@ module Twilio
|
|
|
271
271
|
end
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
-
class SettingPageMetadata < PageMetadata
|
|
275
|
-
attr_reader :setting_page
|
|
276
|
-
|
|
277
|
-
def initialize(version, response, solution, limit)
|
|
278
|
-
super(version, response)
|
|
279
|
-
@setting_page = []
|
|
280
|
-
@limit = limit
|
|
281
|
-
key = get_key(response.body)
|
|
282
|
-
records = 0
|
|
283
|
-
while( limit != :unset && records < limit )
|
|
284
|
-
@setting_page << SettingListResponse.new(version, @payload, key, limit - records)
|
|
285
|
-
@payload = self.next_page
|
|
286
|
-
break unless @payload
|
|
287
|
-
records += (@payload.body[key] || []).size
|
|
288
|
-
end
|
|
289
|
-
# Path Solution
|
|
290
|
-
@solution = solution
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def each
|
|
294
|
-
@setting_page.each do |record|
|
|
295
|
-
yield record
|
|
296
|
-
end
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def to_s
|
|
300
|
-
'<Twilio::REST::Insights::V1PageMetadata>';
|
|
301
|
-
end
|
|
302
|
-
end
|
|
303
|
-
class SettingListResponse < InstanceListResource
|
|
304
|
-
|
|
305
|
-
# @param [Array<SettingInstance>] instance
|
|
306
|
-
# @param [Hash{String => Object}] headers
|
|
307
|
-
# @param [Integer] status_code
|
|
308
|
-
def initialize(version, payload, key, limit = :unset)
|
|
309
|
-
data_list = payload.body[key] || []
|
|
310
|
-
if limit != :unset
|
|
311
|
-
data_list = data_list[0, limit]
|
|
312
|
-
end
|
|
313
|
-
@setting = data_list.map do |data|
|
|
314
|
-
SettingInstance.new(version, data)
|
|
315
|
-
end
|
|
316
|
-
@headers = payload.headers
|
|
317
|
-
@status_code = payload.status_code
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
def setting
|
|
321
|
-
@setting
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def headers
|
|
325
|
-
@headers
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
def status_code
|
|
329
|
-
@status_code
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
274
|
class SettingInstance < InstanceResource
|
|
334
275
|
##
|
|
335
276
|
# Initialize the SettingInstance
|