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
data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_transfer.rb
CHANGED
|
@@ -305,65 +305,6 @@ module Twilio
|
|
|
305
305
|
end
|
|
306
306
|
end
|
|
307
307
|
|
|
308
|
-
class InteractionTransferPageMetadata < PageMetadata
|
|
309
|
-
attr_reader :interaction_transfer_page
|
|
310
|
-
|
|
311
|
-
def initialize(version, response, solution, limit)
|
|
312
|
-
super(version, response)
|
|
313
|
-
@interaction_transfer_page = []
|
|
314
|
-
@limit = limit
|
|
315
|
-
key = get_key(response.body)
|
|
316
|
-
records = 0
|
|
317
|
-
while( limit != :unset && records < limit )
|
|
318
|
-
@interaction_transfer_page << InteractionTransferListResponse.new(version, @payload, key, limit - records)
|
|
319
|
-
@payload = self.next_page
|
|
320
|
-
break unless @payload
|
|
321
|
-
records += (@payload.body[key] || []).size
|
|
322
|
-
end
|
|
323
|
-
# Path Solution
|
|
324
|
-
@solution = solution
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
def each
|
|
328
|
-
@interaction_transfer_page.each do |record|
|
|
329
|
-
yield record
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
def to_s
|
|
334
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
class InteractionTransferListResponse < InstanceListResource
|
|
338
|
-
|
|
339
|
-
# @param [Array<InteractionTransferInstance>] instance
|
|
340
|
-
# @param [Hash{String => Object}] headers
|
|
341
|
-
# @param [Integer] status_code
|
|
342
|
-
def initialize(version, payload, key, limit = :unset)
|
|
343
|
-
data_list = payload.body[key] || []
|
|
344
|
-
if limit != :unset
|
|
345
|
-
data_list = data_list[0, limit]
|
|
346
|
-
end
|
|
347
|
-
@interaction_transfer = data_list.map do |data|
|
|
348
|
-
InteractionTransferInstance.new(version, data)
|
|
349
|
-
end
|
|
350
|
-
@headers = payload.headers
|
|
351
|
-
@status_code = payload.status_code
|
|
352
|
-
end
|
|
353
|
-
|
|
354
|
-
def interaction_transfer
|
|
355
|
-
@interaction_transfer
|
|
356
|
-
end
|
|
357
|
-
|
|
358
|
-
def headers
|
|
359
|
-
@headers
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
def status_code
|
|
363
|
-
@status_code
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
308
|
class InteractionTransferInstance < InstanceResource
|
|
368
309
|
##
|
|
369
310
|
# Initialize the InteractionTransferInstance
|
|
@@ -346,65 +346,6 @@ module Twilio
|
|
|
346
346
|
end
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
-
class InteractionPageMetadata < PageMetadata
|
|
350
|
-
attr_reader :interaction_page
|
|
351
|
-
|
|
352
|
-
def initialize(version, response, solution, limit)
|
|
353
|
-
super(version, response)
|
|
354
|
-
@interaction_page = []
|
|
355
|
-
@limit = limit
|
|
356
|
-
key = get_key(response.body)
|
|
357
|
-
records = 0
|
|
358
|
-
while( limit != :unset && records < limit )
|
|
359
|
-
@interaction_page << InteractionListResponse.new(version, @payload, key, limit - records)
|
|
360
|
-
@payload = self.next_page
|
|
361
|
-
break unless @payload
|
|
362
|
-
records += (@payload.body[key] || []).size
|
|
363
|
-
end
|
|
364
|
-
# Path Solution
|
|
365
|
-
@solution = solution
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
def each
|
|
369
|
-
@interaction_page.each do |record|
|
|
370
|
-
yield record
|
|
371
|
-
end
|
|
372
|
-
end
|
|
373
|
-
|
|
374
|
-
def to_s
|
|
375
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
376
|
-
end
|
|
377
|
-
end
|
|
378
|
-
class InteractionListResponse < InstanceListResource
|
|
379
|
-
|
|
380
|
-
# @param [Array<InteractionInstance>] instance
|
|
381
|
-
# @param [Hash{String => Object}] headers
|
|
382
|
-
# @param [Integer] status_code
|
|
383
|
-
def initialize(version, payload, key, limit = :unset)
|
|
384
|
-
data_list = payload.body[key] || []
|
|
385
|
-
if limit != :unset
|
|
386
|
-
data_list = data_list[0, limit]
|
|
387
|
-
end
|
|
388
|
-
@interaction = data_list.map do |data|
|
|
389
|
-
InteractionInstance.new(version, data)
|
|
390
|
-
end
|
|
391
|
-
@headers = payload.headers
|
|
392
|
-
@status_code = payload.status_code
|
|
393
|
-
end
|
|
394
|
-
|
|
395
|
-
def interaction
|
|
396
|
-
@interaction
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
def headers
|
|
400
|
-
@headers
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
def status_code
|
|
404
|
-
@status_code
|
|
405
|
-
end
|
|
406
|
-
end
|
|
407
|
-
|
|
408
349
|
class InteractionInstance < InstanceResource
|
|
409
350
|
##
|
|
410
351
|
# Initialize the InteractionInstance
|
|
@@ -185,11 +185,10 @@ module Twilio
|
|
|
185
185
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
186
186
|
limits = @version.read_limits(limit, page_size)
|
|
187
187
|
params = Twilio::Values.of({
|
|
188
|
-
'Flex-Metadata' => flex_metadata,
|
|
189
188
|
|
|
190
189
|
'PageSize' => limits[:page_size],
|
|
191
190
|
});
|
|
192
|
-
headers = Twilio::Values.of({})
|
|
191
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
193
192
|
|
|
194
193
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
195
194
|
|
|
@@ -224,12 +223,11 @@ module Twilio
|
|
|
224
223
|
# @return [Page] Page of PluginVersionsInstance
|
|
225
224
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
226
225
|
params = Twilio::Values.of({
|
|
227
|
-
'Flex-Metadata' => flex_metadata,
|
|
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({ 'Flex-Metadata' => flex_metadata, })
|
|
233
231
|
|
|
234
232
|
|
|
235
233
|
|
|
@@ -163,11 +163,10 @@ module Twilio
|
|
|
163
163
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
164
164
|
limits = @version.read_limits(limit, page_size)
|
|
165
165
|
params = Twilio::Values.of({
|
|
166
|
-
'Flex-Metadata' => flex_metadata,
|
|
167
166
|
|
|
168
167
|
'PageSize' => limits[:page_size],
|
|
169
168
|
});
|
|
170
|
-
headers = Twilio::Values.of({})
|
|
169
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
171
170
|
|
|
172
171
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
173
172
|
|
|
@@ -202,12 +201,11 @@ module Twilio
|
|
|
202
201
|
# @return [Page] Page of PluginInstance
|
|
203
202
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
204
203
|
params = Twilio::Values.of({
|
|
205
|
-
'Flex-Metadata' => flex_metadata,
|
|
206
204
|
'PageToken' => page_token,
|
|
207
205
|
'Page' => page_number,
|
|
208
206
|
'PageSize' => page_size,
|
|
209
207
|
})
|
|
210
|
-
headers = Twilio::Values.of({})
|
|
208
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
211
209
|
|
|
212
210
|
|
|
213
211
|
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class PluginArchivePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :plugin_archive_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@plugin_archive_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@plugin_archive_page << PluginArchiveListResponse.new(version, @payload, key, limit - records)
|
|
214
|
-
@payload = self.next_page
|
|
215
|
-
break unless @payload
|
|
216
|
-
records += (@payload.body[key] || []).size
|
|
217
|
-
end
|
|
218
|
-
# Path Solution
|
|
219
|
-
@solution = solution
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def each
|
|
223
|
-
@plugin_archive_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class PluginArchiveListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<PluginArchiveInstance>] instance
|
|
235
|
-
# @param [Hash{String => Object}] headers
|
|
236
|
-
# @param [Integer] status_code
|
|
237
|
-
def initialize(version, payload, key, limit = :unset)
|
|
238
|
-
data_list = payload.body[key] || []
|
|
239
|
-
if limit != :unset
|
|
240
|
-
data_list = data_list[0, limit]
|
|
241
|
-
end
|
|
242
|
-
@plugin_archive = data_list.map do |data|
|
|
243
|
-
PluginArchiveInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def plugin_archive
|
|
250
|
-
@plugin_archive
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def headers
|
|
254
|
-
@headers
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def status_code
|
|
258
|
-
@status_code
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
203
|
class PluginArchiveInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the PluginArchiveInstance
|
|
@@ -93,11 +93,10 @@ module Twilio
|
|
|
93
93
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
94
94
|
limits = @version.read_limits(limit, page_size)
|
|
95
95
|
params = Twilio::Values.of({
|
|
96
|
-
'Flex-Metadata' => flex_metadata,
|
|
97
96
|
|
|
98
97
|
'PageSize' => limits[:page_size],
|
|
99
98
|
});
|
|
100
|
-
headers = Twilio::Values.of({})
|
|
99
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
101
100
|
|
|
102
101
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
103
102
|
|
|
@@ -132,12 +131,11 @@ module Twilio
|
|
|
132
131
|
# @return [Page] Page of ConfiguredPluginInstance
|
|
133
132
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
134
133
|
params = Twilio::Values.of({
|
|
135
|
-
'Flex-Metadata' => flex_metadata,
|
|
136
134
|
'PageToken' => page_token,
|
|
137
135
|
'Page' => page_number,
|
|
138
136
|
'PageSize' => page_size,
|
|
139
137
|
})
|
|
140
|
-
headers = Twilio::Values.of({})
|
|
138
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
141
139
|
|
|
142
140
|
|
|
143
141
|
|
|
@@ -163,11 +163,10 @@ module Twilio
|
|
|
163
163
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
164
164
|
limits = @version.read_limits(limit, page_size)
|
|
165
165
|
params = Twilio::Values.of({
|
|
166
|
-
'Flex-Metadata' => flex_metadata,
|
|
167
166
|
|
|
168
167
|
'PageSize' => limits[:page_size],
|
|
169
168
|
});
|
|
170
|
-
headers = Twilio::Values.of({})
|
|
169
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
171
170
|
|
|
172
171
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
173
172
|
|
|
@@ -202,12 +201,11 @@ module Twilio
|
|
|
202
201
|
# @return [Page] Page of PluginConfigurationInstance
|
|
203
202
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
204
203
|
params = Twilio::Values.of({
|
|
205
|
-
'Flex-Metadata' => flex_metadata,
|
|
206
204
|
'PageToken' => page_token,
|
|
207
205
|
'Page' => page_number,
|
|
208
206
|
'PageSize' => page_size,
|
|
209
207
|
})
|
|
210
|
-
headers = Twilio::Values.of({})
|
|
208
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
211
209
|
|
|
212
210
|
|
|
213
211
|
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class PluginConfigurationArchivePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :plugin_configuration_archive_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@plugin_configuration_archive_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@plugin_configuration_archive_page << PluginConfigurationArchiveListResponse.new(version, @payload, key, limit - records)
|
|
214
|
-
@payload = self.next_page
|
|
215
|
-
break unless @payload
|
|
216
|
-
records += (@payload.body[key] || []).size
|
|
217
|
-
end
|
|
218
|
-
# Path Solution
|
|
219
|
-
@solution = solution
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def each
|
|
223
|
-
@plugin_configuration_archive_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class PluginConfigurationArchiveListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<PluginConfigurationArchiveInstance>] instance
|
|
235
|
-
# @param [Hash{String => Object}] headers
|
|
236
|
-
# @param [Integer] status_code
|
|
237
|
-
def initialize(version, payload, key, limit = :unset)
|
|
238
|
-
data_list = payload.body[key] || []
|
|
239
|
-
if limit != :unset
|
|
240
|
-
data_list = data_list[0, limit]
|
|
241
|
-
end
|
|
242
|
-
@plugin_configuration_archive = data_list.map do |data|
|
|
243
|
-
PluginConfigurationArchiveInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def plugin_configuration_archive
|
|
250
|
-
@plugin_configuration_archive
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def headers
|
|
254
|
-
@headers
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def status_code
|
|
258
|
-
@status_code
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
203
|
class PluginConfigurationArchiveInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the PluginConfigurationArchiveInstance
|
|
@@ -151,11 +151,10 @@ module Twilio
|
|
|
151
151
|
def list_with_metadata(flex_metadata: :unset, limit: nil, page_size: nil)
|
|
152
152
|
limits = @version.read_limits(limit, page_size)
|
|
153
153
|
params = Twilio::Values.of({
|
|
154
|
-
'Flex-Metadata' => flex_metadata,
|
|
155
154
|
|
|
156
155
|
'PageSize' => limits[:page_size],
|
|
157
156
|
});
|
|
158
|
-
headers = Twilio::Values.of({})
|
|
157
|
+
headers = Twilio::Values.of({ 'Flex-Metadata' => flex_metadata, })
|
|
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 PluginReleaseInstance
|
|
191
190
|
def page(flex_metadata: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
192
191
|
params = Twilio::Values.of({
|
|
193
|
-
'Flex-Metadata' => flex_metadata,
|
|
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({ 'Flex-Metadata' => flex_metadata, })
|
|
199
197
|
|
|
200
198
|
|
|
201
199
|
|
|
@@ -203,65 +203,6 @@ module Twilio
|
|
|
203
203
|
end
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
class PluginVersionArchivePageMetadata < PageMetadata
|
|
207
|
-
attr_reader :plugin_version_archive_page
|
|
208
|
-
|
|
209
|
-
def initialize(version, response, solution, limit)
|
|
210
|
-
super(version, response)
|
|
211
|
-
@plugin_version_archive_page = []
|
|
212
|
-
@limit = limit
|
|
213
|
-
key = get_key(response.body)
|
|
214
|
-
records = 0
|
|
215
|
-
while( limit != :unset && records < limit )
|
|
216
|
-
@plugin_version_archive_page << PluginVersionArchiveListResponse.new(version, @payload, key, limit - records)
|
|
217
|
-
@payload = self.next_page
|
|
218
|
-
break unless @payload
|
|
219
|
-
records += (@payload.body[key] || []).size
|
|
220
|
-
end
|
|
221
|
-
# Path Solution
|
|
222
|
-
@solution = solution
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
def each
|
|
226
|
-
@plugin_version_archive_page.each do |record|
|
|
227
|
-
yield record
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def to_s
|
|
232
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
class PluginVersionArchiveListResponse < InstanceListResource
|
|
236
|
-
|
|
237
|
-
# @param [Array<PluginVersionArchiveInstance>] instance
|
|
238
|
-
# @param [Hash{String => Object}] headers
|
|
239
|
-
# @param [Integer] status_code
|
|
240
|
-
def initialize(version, payload, key, limit = :unset)
|
|
241
|
-
data_list = payload.body[key] || []
|
|
242
|
-
if limit != :unset
|
|
243
|
-
data_list = data_list[0, limit]
|
|
244
|
-
end
|
|
245
|
-
@plugin_version_archive = data_list.map do |data|
|
|
246
|
-
PluginVersionArchiveInstance.new(version, data)
|
|
247
|
-
end
|
|
248
|
-
@headers = payload.headers
|
|
249
|
-
@status_code = payload.status_code
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
def plugin_version_archive
|
|
253
|
-
@plugin_version_archive
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
def headers
|
|
257
|
-
@headers
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def status_code
|
|
261
|
-
@status_code
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
206
|
class PluginVersionArchiveInstance < InstanceResource
|
|
266
207
|
##
|
|
267
208
|
# Initialize the PluginVersionArchiveInstance
|
|
@@ -191,65 +191,6 @@ module Twilio
|
|
|
191
191
|
end
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
class ProvisioningStatusPageMetadata < PageMetadata
|
|
195
|
-
attr_reader :provisioning_status_page
|
|
196
|
-
|
|
197
|
-
def initialize(version, response, solution, limit)
|
|
198
|
-
super(version, response)
|
|
199
|
-
@provisioning_status_page = []
|
|
200
|
-
@limit = limit
|
|
201
|
-
key = get_key(response.body)
|
|
202
|
-
records = 0
|
|
203
|
-
while( limit != :unset && records < limit )
|
|
204
|
-
@provisioning_status_page << ProvisioningStatusListResponse.new(version, @payload, key, limit - records)
|
|
205
|
-
@payload = self.next_page
|
|
206
|
-
break unless @payload
|
|
207
|
-
records += (@payload.body[key] || []).size
|
|
208
|
-
end
|
|
209
|
-
# Path Solution
|
|
210
|
-
@solution = solution
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
def each
|
|
214
|
-
@provisioning_status_page.each do |record|
|
|
215
|
-
yield record
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
def to_s
|
|
220
|
-
'<Twilio::REST::FlexApi::V1PageMetadata>';
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
class ProvisioningStatusListResponse < InstanceListResource
|
|
224
|
-
|
|
225
|
-
# @param [Array<ProvisioningStatusInstance>] instance
|
|
226
|
-
# @param [Hash{String => Object}] headers
|
|
227
|
-
# @param [Integer] status_code
|
|
228
|
-
def initialize(version, payload, key, limit = :unset)
|
|
229
|
-
data_list = payload.body[key] || []
|
|
230
|
-
if limit != :unset
|
|
231
|
-
data_list = data_list[0, limit]
|
|
232
|
-
end
|
|
233
|
-
@provisioning_status = data_list.map do |data|
|
|
234
|
-
ProvisioningStatusInstance.new(version, data)
|
|
235
|
-
end
|
|
236
|
-
@headers = payload.headers
|
|
237
|
-
@status_code = payload.status_code
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def provisioning_status
|
|
241
|
-
@provisioning_status
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
def headers
|
|
245
|
-
@headers
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
def status_code
|
|
249
|
-
@status_code
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
|
|
253
194
|
class ProvisioningStatusInstance < InstanceResource
|
|
254
195
|
##
|
|
255
196
|
# Initialize the ProvisioningStatusInstance
|
|
@@ -269,65 +269,6 @@ module Twilio
|
|
|
269
269
|
end
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
-
class FlexUserPageMetadata < PageMetadata
|
|
273
|
-
attr_reader :flex_user_page
|
|
274
|
-
|
|
275
|
-
def initialize(version, response, solution, limit)
|
|
276
|
-
super(version, response)
|
|
277
|
-
@flex_user_page = []
|
|
278
|
-
@limit = limit
|
|
279
|
-
key = get_key(response.body)
|
|
280
|
-
records = 0
|
|
281
|
-
while( limit != :unset && records < limit )
|
|
282
|
-
@flex_user_page << FlexUserListResponse.new(version, @payload, key, limit - records)
|
|
283
|
-
@payload = self.next_page
|
|
284
|
-
break unless @payload
|
|
285
|
-
records += (@payload.body[key] || []).size
|
|
286
|
-
end
|
|
287
|
-
# Path Solution
|
|
288
|
-
@solution = solution
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
def each
|
|
292
|
-
@flex_user_page.each do |record|
|
|
293
|
-
yield record
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
def to_s
|
|
298
|
-
'<Twilio::REST::FlexApi::V2PageMetadata>';
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
class FlexUserListResponse < InstanceListResource
|
|
302
|
-
|
|
303
|
-
# @param [Array<FlexUserInstance>] instance
|
|
304
|
-
# @param [Hash{String => Object}] headers
|
|
305
|
-
# @param [Integer] status_code
|
|
306
|
-
def initialize(version, payload, key, limit = :unset)
|
|
307
|
-
data_list = payload.body[key] || []
|
|
308
|
-
if limit != :unset
|
|
309
|
-
data_list = data_list[0, limit]
|
|
310
|
-
end
|
|
311
|
-
@flex_user = data_list.map do |data|
|
|
312
|
-
FlexUserInstance.new(version, data)
|
|
313
|
-
end
|
|
314
|
-
@headers = payload.headers
|
|
315
|
-
@status_code = payload.status_code
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
def flex_user
|
|
319
|
-
@flex_user
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
def headers
|
|
323
|
-
@headers
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def status_code
|
|
327
|
-
@status_code
|
|
328
|
-
end
|
|
329
|
-
end
|
|
330
|
-
|
|
331
272
|
class FlexUserInstance < InstanceResource
|
|
332
273
|
##
|
|
333
274
|
# Initialize the FlexUserInstance
|
|
@@ -154,65 +154,6 @@ module Twilio
|
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class WebChannelsPageMetadata < PageMetadata
|
|
158
|
-
attr_reader :web_channels_page
|
|
159
|
-
|
|
160
|
-
def initialize(version, response, solution, limit)
|
|
161
|
-
super(version, response)
|
|
162
|
-
@web_channels_page = []
|
|
163
|
-
@limit = limit
|
|
164
|
-
key = get_key(response.body)
|
|
165
|
-
records = 0
|
|
166
|
-
while( limit != :unset && records < limit )
|
|
167
|
-
@web_channels_page << WebChannelsListResponse.new(version, @payload, key, limit - records)
|
|
168
|
-
@payload = self.next_page
|
|
169
|
-
break unless @payload
|
|
170
|
-
records += (@payload.body[key] || []).size
|
|
171
|
-
end
|
|
172
|
-
# Path Solution
|
|
173
|
-
@solution = solution
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
def each
|
|
177
|
-
@web_channels_page.each do |record|
|
|
178
|
-
yield record
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def to_s
|
|
183
|
-
'<Twilio::REST::FlexApi::V2PageMetadata>';
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
class WebChannelsListResponse < InstanceListResource
|
|
187
|
-
|
|
188
|
-
# @param [Array<WebChannelsInstance>] instance
|
|
189
|
-
# @param [Hash{String => Object}] headers
|
|
190
|
-
# @param [Integer] status_code
|
|
191
|
-
def initialize(version, payload, key, limit = :unset)
|
|
192
|
-
data_list = payload.body[key] || []
|
|
193
|
-
if limit != :unset
|
|
194
|
-
data_list = data_list[0, limit]
|
|
195
|
-
end
|
|
196
|
-
@web_channels = data_list.map do |data|
|
|
197
|
-
WebChannelsInstance.new(version, data)
|
|
198
|
-
end
|
|
199
|
-
@headers = payload.headers
|
|
200
|
-
@status_code = payload.status_code
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
def web_channels
|
|
204
|
-
@web_channels
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
def headers
|
|
208
|
-
@headers
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
def status_code
|
|
212
|
-
@status_code
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
157
|
class WebChannelsInstance < InstanceResource
|
|
217
158
|
##
|
|
218
159
|
# Initialize the WebChannelsInstance
|