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
|
@@ -98,65 +98,6 @@ module Twilio
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
class VoicePageMetadata < PageMetadata
|
|
102
|
-
attr_reader :voice_page
|
|
103
|
-
|
|
104
|
-
def initialize(version, response, solution, limit)
|
|
105
|
-
super(version, response)
|
|
106
|
-
@voice_page = []
|
|
107
|
-
@limit = limit
|
|
108
|
-
key = get_key(response.body)
|
|
109
|
-
records = 0
|
|
110
|
-
while( limit != :unset && records < limit )
|
|
111
|
-
@voice_page << VoiceListResponse.new(version, @payload, key, limit - records)
|
|
112
|
-
@payload = self.next_page
|
|
113
|
-
break unless @payload
|
|
114
|
-
records += (@payload.body[key] || []).size
|
|
115
|
-
end
|
|
116
|
-
# Path Solution
|
|
117
|
-
@solution = solution
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
def each
|
|
121
|
-
@voice_page.each do |record|
|
|
122
|
-
yield record
|
|
123
|
-
end
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
def to_s
|
|
127
|
-
'<Twilio::REST::Pricing::V1PageMetadata>';
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
class VoiceListResponse < InstanceListResource
|
|
131
|
-
|
|
132
|
-
# @param [Array<VoiceInstance>] instance
|
|
133
|
-
# @param [Hash{String => Object}] headers
|
|
134
|
-
# @param [Integer] status_code
|
|
135
|
-
def initialize(version, payload, key, limit = :unset)
|
|
136
|
-
data_list = payload.body[key] || []
|
|
137
|
-
if limit != :unset
|
|
138
|
-
data_list = data_list[0, limit]
|
|
139
|
-
end
|
|
140
|
-
@voice = data_list.map do |data|
|
|
141
|
-
VoiceInstance.new(version, data)
|
|
142
|
-
end
|
|
143
|
-
@headers = payload.headers
|
|
144
|
-
@status_code = payload.status_code
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def voice
|
|
148
|
-
@voice
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
def headers
|
|
152
|
-
@headers
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def status_code
|
|
156
|
-
@status_code
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
101
|
class VoiceInstance < InstanceResource
|
|
161
102
|
##
|
|
162
103
|
# Initialize the VoiceInstance
|
|
@@ -206,65 +206,6 @@ module Twilio
|
|
|
206
206
|
end
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
-
class NumberPageMetadata < PageMetadata
|
|
210
|
-
attr_reader :number_page
|
|
211
|
-
|
|
212
|
-
def initialize(version, response, solution, limit)
|
|
213
|
-
super(version, response)
|
|
214
|
-
@number_page = []
|
|
215
|
-
@limit = limit
|
|
216
|
-
key = get_key(response.body)
|
|
217
|
-
records = 0
|
|
218
|
-
while( limit != :unset && records < limit )
|
|
219
|
-
@number_page << NumberListResponse.new(version, @payload, key, limit - records)
|
|
220
|
-
@payload = self.next_page
|
|
221
|
-
break unless @payload
|
|
222
|
-
records += (@payload.body[key] || []).size
|
|
223
|
-
end
|
|
224
|
-
# Path Solution
|
|
225
|
-
@solution = solution
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def each
|
|
229
|
-
@number_page.each do |record|
|
|
230
|
-
yield record
|
|
231
|
-
end
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def to_s
|
|
235
|
-
'<Twilio::REST::Pricing::V2PageMetadata>';
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
class NumberListResponse < InstanceListResource
|
|
239
|
-
|
|
240
|
-
# @param [Array<NumberInstance>] instance
|
|
241
|
-
# @param [Hash{String => Object}] headers
|
|
242
|
-
# @param [Integer] status_code
|
|
243
|
-
def initialize(version, payload, key, limit = :unset)
|
|
244
|
-
data_list = payload.body[key] || []
|
|
245
|
-
if limit != :unset
|
|
246
|
-
data_list = data_list[0, limit]
|
|
247
|
-
end
|
|
248
|
-
@number = data_list.map do |data|
|
|
249
|
-
NumberInstance.new(version, data)
|
|
250
|
-
end
|
|
251
|
-
@headers = payload.headers
|
|
252
|
-
@status_code = payload.status_code
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
def number
|
|
256
|
-
@number
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
def headers
|
|
260
|
-
@headers
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
def status_code
|
|
264
|
-
@status_code
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
209
|
class NumberInstance < InstanceResource
|
|
269
210
|
##
|
|
270
211
|
# Initialize the NumberInstance
|
|
@@ -208,65 +208,6 @@ module Twilio
|
|
|
208
208
|
end
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
class NumberPageMetadata < PageMetadata
|
|
212
|
-
attr_reader :number_page
|
|
213
|
-
|
|
214
|
-
def initialize(version, response, solution, limit)
|
|
215
|
-
super(version, response)
|
|
216
|
-
@number_page = []
|
|
217
|
-
@limit = limit
|
|
218
|
-
key = get_key(response.body)
|
|
219
|
-
records = 0
|
|
220
|
-
while( limit != :unset && records < limit )
|
|
221
|
-
@number_page << NumberListResponse.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
|
-
@number_page.each do |record|
|
|
232
|
-
yield record
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def to_s
|
|
237
|
-
'<Twilio::REST::Pricing::V2PageMetadata>';
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
class NumberListResponse < InstanceListResource
|
|
241
|
-
|
|
242
|
-
# @param [Array<NumberInstance>] 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
|
-
@number = data_list.map do |data|
|
|
251
|
-
NumberInstance.new(version, data)
|
|
252
|
-
end
|
|
253
|
-
@headers = payload.headers
|
|
254
|
-
@status_code = payload.status_code
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def number
|
|
258
|
-
@number
|
|
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 NumberInstance < InstanceResource
|
|
271
212
|
##
|
|
272
213
|
# Initialize the NumberInstance
|
|
@@ -98,65 +98,6 @@ module Twilio
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
class VoicePageMetadata < PageMetadata
|
|
102
|
-
attr_reader :voice_page
|
|
103
|
-
|
|
104
|
-
def initialize(version, response, solution, limit)
|
|
105
|
-
super(version, response)
|
|
106
|
-
@voice_page = []
|
|
107
|
-
@limit = limit
|
|
108
|
-
key = get_key(response.body)
|
|
109
|
-
records = 0
|
|
110
|
-
while( limit != :unset && records < limit )
|
|
111
|
-
@voice_page << VoiceListResponse.new(version, @payload, key, limit - records)
|
|
112
|
-
@payload = self.next_page
|
|
113
|
-
break unless @payload
|
|
114
|
-
records += (@payload.body[key] || []).size
|
|
115
|
-
end
|
|
116
|
-
# Path Solution
|
|
117
|
-
@solution = solution
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
def each
|
|
121
|
-
@voice_page.each do |record|
|
|
122
|
-
yield record
|
|
123
|
-
end
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
def to_s
|
|
127
|
-
'<Twilio::REST::Pricing::V2PageMetadata>';
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
class VoiceListResponse < InstanceListResource
|
|
131
|
-
|
|
132
|
-
# @param [Array<VoiceInstance>] instance
|
|
133
|
-
# @param [Hash{String => Object}] headers
|
|
134
|
-
# @param [Integer] status_code
|
|
135
|
-
def initialize(version, payload, key, limit = :unset)
|
|
136
|
-
data_list = payload.body[key] || []
|
|
137
|
-
if limit != :unset
|
|
138
|
-
data_list = data_list[0, limit]
|
|
139
|
-
end
|
|
140
|
-
@voice = data_list.map do |data|
|
|
141
|
-
VoiceInstance.new(version, data)
|
|
142
|
-
end
|
|
143
|
-
@headers = payload.headers
|
|
144
|
-
@status_code = payload.status_code
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def voice
|
|
148
|
-
@voice
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
def headers
|
|
152
|
-
@headers
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def status_code
|
|
156
|
-
@status_code
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
101
|
class VoiceInstance < InstanceResource
|
|
161
102
|
##
|
|
162
103
|
# Initialize the VoiceInstance
|
|
@@ -258,65 +258,6 @@ module Twilio
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
class PhoneNumberPageMetadata < PageMetadata
|
|
262
|
-
attr_reader :phone_number_page
|
|
263
|
-
|
|
264
|
-
def initialize(version, response, solution, limit)
|
|
265
|
-
super(version, response)
|
|
266
|
-
@phone_number_page = []
|
|
267
|
-
@limit = limit
|
|
268
|
-
key = get_key(response.body)
|
|
269
|
-
records = 0
|
|
270
|
-
while( limit != :unset && records < limit )
|
|
271
|
-
@phone_number_page << PhoneNumberListResponse.new(version, @payload, key, limit - records)
|
|
272
|
-
@payload = self.next_page
|
|
273
|
-
break unless @payload
|
|
274
|
-
records += (@payload.body[key] || []).size
|
|
275
|
-
end
|
|
276
|
-
# Path Solution
|
|
277
|
-
@solution = solution
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
def each
|
|
281
|
-
@phone_number_page.each do |record|
|
|
282
|
-
yield record
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def to_s
|
|
287
|
-
'<Twilio::REST::Routes::V2PageMetadata>';
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
class PhoneNumberListResponse < InstanceListResource
|
|
291
|
-
|
|
292
|
-
# @param [Array<PhoneNumberInstance>] instance
|
|
293
|
-
# @param [Hash{String => Object}] headers
|
|
294
|
-
# @param [Integer] status_code
|
|
295
|
-
def initialize(version, payload, key, limit = :unset)
|
|
296
|
-
data_list = payload.body[key] || []
|
|
297
|
-
if limit != :unset
|
|
298
|
-
data_list = data_list[0, limit]
|
|
299
|
-
end
|
|
300
|
-
@phone_number = data_list.map do |data|
|
|
301
|
-
PhoneNumberInstance.new(version, data)
|
|
302
|
-
end
|
|
303
|
-
@headers = payload.headers
|
|
304
|
-
@status_code = payload.status_code
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
def phone_number
|
|
308
|
-
@phone_number
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
def headers
|
|
312
|
-
@headers
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
def status_code
|
|
316
|
-
@status_code
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
261
|
class PhoneNumberInstance < InstanceResource
|
|
321
262
|
##
|
|
322
263
|
# Initialize the PhoneNumberInstance
|
|
@@ -258,65 +258,6 @@ module Twilio
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
class SipDomainPageMetadata < PageMetadata
|
|
262
|
-
attr_reader :sip_domain_page
|
|
263
|
-
|
|
264
|
-
def initialize(version, response, solution, limit)
|
|
265
|
-
super(version, response)
|
|
266
|
-
@sip_domain_page = []
|
|
267
|
-
@limit = limit
|
|
268
|
-
key = get_key(response.body)
|
|
269
|
-
records = 0
|
|
270
|
-
while( limit != :unset && records < limit )
|
|
271
|
-
@sip_domain_page << SipDomainListResponse.new(version, @payload, key, limit - records)
|
|
272
|
-
@payload = self.next_page
|
|
273
|
-
break unless @payload
|
|
274
|
-
records += (@payload.body[key] || []).size
|
|
275
|
-
end
|
|
276
|
-
# Path Solution
|
|
277
|
-
@solution = solution
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
def each
|
|
281
|
-
@sip_domain_page.each do |record|
|
|
282
|
-
yield record
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def to_s
|
|
287
|
-
'<Twilio::REST::Routes::V2PageMetadata>';
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
class SipDomainListResponse < InstanceListResource
|
|
291
|
-
|
|
292
|
-
# @param [Array<SipDomainInstance>] instance
|
|
293
|
-
# @param [Hash{String => Object}] headers
|
|
294
|
-
# @param [Integer] status_code
|
|
295
|
-
def initialize(version, payload, key, limit = :unset)
|
|
296
|
-
data_list = payload.body[key] || []
|
|
297
|
-
if limit != :unset
|
|
298
|
-
data_list = data_list[0, limit]
|
|
299
|
-
end
|
|
300
|
-
@sip_domain = data_list.map do |data|
|
|
301
|
-
SipDomainInstance.new(version, data)
|
|
302
|
-
end
|
|
303
|
-
@headers = payload.headers
|
|
304
|
-
@status_code = payload.status_code
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
def sip_domain
|
|
308
|
-
@sip_domain
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
def headers
|
|
312
|
-
@headers
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
def status_code
|
|
316
|
-
@status_code
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
261
|
class SipDomainInstance < InstanceResource
|
|
321
262
|
##
|
|
322
263
|
# Initialize the SipDomainInstance
|
|
@@ -258,65 +258,6 @@ module Twilio
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
class TrunkPageMetadata < PageMetadata
|
|
262
|
-
attr_reader :trunk_page
|
|
263
|
-
|
|
264
|
-
def initialize(version, response, solution, limit)
|
|
265
|
-
super(version, response)
|
|
266
|
-
@trunk_page = []
|
|
267
|
-
@limit = limit
|
|
268
|
-
key = get_key(response.body)
|
|
269
|
-
records = 0
|
|
270
|
-
while( limit != :unset && records < limit )
|
|
271
|
-
@trunk_page << TrunkListResponse.new(version, @payload, key, limit - records)
|
|
272
|
-
@payload = self.next_page
|
|
273
|
-
break unless @payload
|
|
274
|
-
records += (@payload.body[key] || []).size
|
|
275
|
-
end
|
|
276
|
-
# Path Solution
|
|
277
|
-
@solution = solution
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
def each
|
|
281
|
-
@trunk_page.each do |record|
|
|
282
|
-
yield record
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def to_s
|
|
287
|
-
'<Twilio::REST::Routes::V2PageMetadata>';
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
class TrunkListResponse < InstanceListResource
|
|
291
|
-
|
|
292
|
-
# @param [Array<TrunkInstance>] instance
|
|
293
|
-
# @param [Hash{String => Object}] headers
|
|
294
|
-
# @param [Integer] status_code
|
|
295
|
-
def initialize(version, payload, key, limit = :unset)
|
|
296
|
-
data_list = payload.body[key] || []
|
|
297
|
-
if limit != :unset
|
|
298
|
-
data_list = data_list[0, limit]
|
|
299
|
-
end
|
|
300
|
-
@trunk = data_list.map do |data|
|
|
301
|
-
TrunkInstance.new(version, data)
|
|
302
|
-
end
|
|
303
|
-
@headers = payload.headers
|
|
304
|
-
@status_code = payload.status_code
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
def trunk
|
|
308
|
-
@trunk
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
def headers
|
|
312
|
-
@headers
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
def status_code
|
|
316
|
-
@status_code
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
261
|
class TrunkInstance < InstanceResource
|
|
321
262
|
##
|
|
322
263
|
# Initialize the TrunkInstance
|
|
@@ -267,65 +267,6 @@ module Twilio
|
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
-
class PhoneNumberPageMetadata < PageMetadata
|
|
271
|
-
attr_reader :phone_number_page
|
|
272
|
-
|
|
273
|
-
def initialize(version, response, solution, limit)
|
|
274
|
-
super(version, response)
|
|
275
|
-
@phone_number_page = []
|
|
276
|
-
@limit = limit
|
|
277
|
-
key = get_key(response.body)
|
|
278
|
-
records = 0
|
|
279
|
-
while( limit != :unset && records < limit )
|
|
280
|
-
@phone_number_page << PhoneNumberListResponse.new(version, @payload, key, limit - records)
|
|
281
|
-
@payload = self.next_page
|
|
282
|
-
break unless @payload
|
|
283
|
-
records += (@payload.body[key] || []).size
|
|
284
|
-
end
|
|
285
|
-
# Path Solution
|
|
286
|
-
@solution = solution
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
def each
|
|
290
|
-
@phone_number_page.each do |record|
|
|
291
|
-
yield record
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
def to_s
|
|
296
|
-
'<Twilio::REST::Routes::V3PageMetadata>';
|
|
297
|
-
end
|
|
298
|
-
end
|
|
299
|
-
class PhoneNumberListResponse < InstanceListResource
|
|
300
|
-
|
|
301
|
-
# @param [Array<PhoneNumberInstance>] instance
|
|
302
|
-
# @param [Hash{String => Object}] headers
|
|
303
|
-
# @param [Integer] status_code
|
|
304
|
-
def initialize(version, payload, key, limit = :unset)
|
|
305
|
-
data_list = payload.body[key] || []
|
|
306
|
-
if limit != :unset
|
|
307
|
-
data_list = data_list[0, limit]
|
|
308
|
-
end
|
|
309
|
-
@phone_number = data_list.map do |data|
|
|
310
|
-
PhoneNumberInstance.new(version, data)
|
|
311
|
-
end
|
|
312
|
-
@headers = payload.headers
|
|
313
|
-
@status_code = payload.status_code
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def phone_number
|
|
317
|
-
@phone_number
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
def headers
|
|
321
|
-
@headers
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
def status_code
|
|
325
|
-
@status_code
|
|
326
|
-
end
|
|
327
|
-
end
|
|
328
|
-
|
|
329
270
|
class PhoneNumberInstance < InstanceResource
|
|
330
271
|
##
|
|
331
272
|
# Initialize the PhoneNumberInstance
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class BuildStatusPageMetadata < PageMetadata
|
|
204
|
-
attr_reader :build_status_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@build_status_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@build_status_page << BuildStatusListResponse.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
|
-
@build_status_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::Serverless::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class BuildStatusListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<BuildStatusInstance>] 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
|
-
@build_status = data_list.map do |data|
|
|
243
|
-
BuildStatusInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def build_status
|
|
250
|
-
@build_status
|
|
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 BuildStatusInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the BuildStatusInstance
|
|
@@ -204,65 +204,6 @@ module Twilio
|
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
206
|
|
|
207
|
-
class FunctionVersionContentPageMetadata < PageMetadata
|
|
208
|
-
attr_reader :function_version_content_page
|
|
209
|
-
|
|
210
|
-
def initialize(version, response, solution, limit)
|
|
211
|
-
super(version, response)
|
|
212
|
-
@function_version_content_page = []
|
|
213
|
-
@limit = limit
|
|
214
|
-
key = get_key(response.body)
|
|
215
|
-
records = 0
|
|
216
|
-
while( limit != :unset && records < limit )
|
|
217
|
-
@function_version_content_page << FunctionVersionContentListResponse.new(version, @payload, key, limit - records)
|
|
218
|
-
@payload = self.next_page
|
|
219
|
-
break unless @payload
|
|
220
|
-
records += (@payload.body[key] || []).size
|
|
221
|
-
end
|
|
222
|
-
# Path Solution
|
|
223
|
-
@solution = solution
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
def each
|
|
227
|
-
@function_version_content_page.each do |record|
|
|
228
|
-
yield record
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
def to_s
|
|
233
|
-
'<Twilio::REST::Serverless::V1PageMetadata>';
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
class FunctionVersionContentListResponse < InstanceListResource
|
|
237
|
-
|
|
238
|
-
# @param [Array<FunctionVersionContentInstance>] instance
|
|
239
|
-
# @param [Hash{String => Object}] headers
|
|
240
|
-
# @param [Integer] status_code
|
|
241
|
-
def initialize(version, payload, key, limit = :unset)
|
|
242
|
-
data_list = payload.body[key] || []
|
|
243
|
-
if limit != :unset
|
|
244
|
-
data_list = data_list[0, limit]
|
|
245
|
-
end
|
|
246
|
-
@function_version_content = data_list.map do |data|
|
|
247
|
-
FunctionVersionContentInstance.new(version, data)
|
|
248
|
-
end
|
|
249
|
-
@headers = payload.headers
|
|
250
|
-
@status_code = payload.status_code
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
def function_version_content
|
|
254
|
-
@function_version_content
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
def headers
|
|
258
|
-
@headers
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def status_code
|
|
262
|
-
@status_code
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
207
|
class FunctionVersionContentInstance < InstanceResource
|
|
267
208
|
##
|
|
268
209
|
# Initialize the FunctionVersionContentInstance
|