twilio-ruby 7.11.1 → 7.11.3
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/.github/workflows/test-and-deploy.yml +13 -1
- data/CHANGES.md +417 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/githooks/pre-commit +11 -0
- 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/conversation.rb +101 -12
- 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/capacity.rb +161 -0
- data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +279 -0
- 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 +29 -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 +33 -60
- 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/data_mapping.rb +3 -3
- 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/memory/v1/store.rb +3 -3
- data/lib/twilio-ruby/rest/memory/v1/trait_group.rb +3 -3
- 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/factor.rb +1 -1
- 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 +1 -60
- 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/recording_account_default_configuration.rb +547 -0
- 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/v2.rb +6 -0
- data/lib/twilio-ruby/rest/voice/v3/transcription.rb +259 -50
- data/lib/twilio-ruby/twiml/voice_response.rb +12 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -4
- data/lib/twilio-ruby/rest/memory/v1/event.rb +0 -320
- data/lib/twilio-ruby/rest/numbers/v2/caller_id.rb +0 -515
|
@@ -124,65 +124,6 @@ module Twilio
|
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class RateLimitPageMetadata < PageMetadata
|
|
128
|
-
attr_reader :rate_limit_page
|
|
129
|
-
|
|
130
|
-
def initialize(version, response, solution, limit)
|
|
131
|
-
super(version, response)
|
|
132
|
-
@rate_limit_page = []
|
|
133
|
-
@limit = limit
|
|
134
|
-
key = get_key(response.body)
|
|
135
|
-
records = 0
|
|
136
|
-
while( limit != :unset && records < limit )
|
|
137
|
-
@rate_limit_page << RateLimitListResponse.new(version, @payload, key, limit - records)
|
|
138
|
-
@payload = self.next_page
|
|
139
|
-
break unless @payload
|
|
140
|
-
records += (@payload.body[key] || []).size
|
|
141
|
-
end
|
|
142
|
-
# Path Solution
|
|
143
|
-
@solution = solution
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
def each
|
|
147
|
-
@rate_limit_page.each do |record|
|
|
148
|
-
yield record
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def to_s
|
|
153
|
-
'<Twilio::REST::Lookups::V2PageMetadata>';
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
class RateLimitListResponse < InstanceListResource
|
|
157
|
-
|
|
158
|
-
# @param [Array<RateLimitInstance>] instance
|
|
159
|
-
# @param [Hash{String => Object}] headers
|
|
160
|
-
# @param [Integer] status_code
|
|
161
|
-
def initialize(version, payload, key, limit = :unset)
|
|
162
|
-
data_list = payload.body[key] || []
|
|
163
|
-
if limit != :unset
|
|
164
|
-
data_list = data_list[0, limit]
|
|
165
|
-
end
|
|
166
|
-
@rate_limit = data_list.map do |data|
|
|
167
|
-
RateLimitInstance.new(version, data)
|
|
168
|
-
end
|
|
169
|
-
@headers = payload.headers
|
|
170
|
-
@status_code = payload.status_code
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
def rate_limit
|
|
174
|
-
@rate_limit
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
def headers
|
|
178
|
-
@headers
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
def status_code
|
|
182
|
-
@status_code
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
|
|
186
127
|
class RateLimitInstance < InstanceResource
|
|
187
128
|
##
|
|
188
129
|
# Initialize the RateLimitInstance
|
|
@@ -137,65 +137,6 @@ module Twilio
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
class InstalledAddOnUsagePageMetadata < PageMetadata
|
|
141
|
-
attr_reader :installed_add_on_usage_page
|
|
142
|
-
|
|
143
|
-
def initialize(version, response, solution, limit)
|
|
144
|
-
super(version, response)
|
|
145
|
-
@installed_add_on_usage_page = []
|
|
146
|
-
@limit = limit
|
|
147
|
-
key = get_key(response.body)
|
|
148
|
-
records = 0
|
|
149
|
-
while( limit != :unset && records < limit )
|
|
150
|
-
@installed_add_on_usage_page << InstalledAddOnUsageListResponse.new(version, @payload, key, limit - records)
|
|
151
|
-
@payload = self.next_page
|
|
152
|
-
break unless @payload
|
|
153
|
-
records += (@payload.body[key] || []).size
|
|
154
|
-
end
|
|
155
|
-
# Path Solution
|
|
156
|
-
@solution = solution
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def each
|
|
160
|
-
@installed_add_on_usage_page.each do |record|
|
|
161
|
-
yield record
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def to_s
|
|
166
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
class InstalledAddOnUsageListResponse < InstanceListResource
|
|
170
|
-
|
|
171
|
-
# @param [Array<InstalledAddOnUsageInstance>] instance
|
|
172
|
-
# @param [Hash{String => Object}] headers
|
|
173
|
-
# @param [Integer] status_code
|
|
174
|
-
def initialize(version, payload, key, limit = :unset)
|
|
175
|
-
data_list = payload.body[key] || []
|
|
176
|
-
if limit != :unset
|
|
177
|
-
data_list = data_list[0, limit]
|
|
178
|
-
end
|
|
179
|
-
@installed_add_on_usage = data_list.map do |data|
|
|
180
|
-
InstalledAddOnUsageInstance.new(version, data)
|
|
181
|
-
end
|
|
182
|
-
@headers = payload.headers
|
|
183
|
-
@status_code = payload.status_code
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def installed_add_on_usage
|
|
187
|
-
@installed_add_on_usage
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def headers
|
|
191
|
-
@headers
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
def status_code
|
|
195
|
-
@status_code
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
140
|
class InstalledAddOnUsageInstance < InstanceResource
|
|
200
141
|
##
|
|
201
142
|
# Initialize the InstalledAddOnUsageInstance
|
|
@@ -174,65 +174,6 @@ module Twilio
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
class ModuleDataPageMetadata < PageMetadata
|
|
178
|
-
attr_reader :module_data_page
|
|
179
|
-
|
|
180
|
-
def initialize(version, response, solution, limit)
|
|
181
|
-
super(version, response)
|
|
182
|
-
@module_data_page = []
|
|
183
|
-
@limit = limit
|
|
184
|
-
key = get_key(response.body)
|
|
185
|
-
records = 0
|
|
186
|
-
while( limit != :unset && records < limit )
|
|
187
|
-
@module_data_page << ModuleDataListResponse.new(version, @payload, key, limit - records)
|
|
188
|
-
@payload = self.next_page
|
|
189
|
-
break unless @payload
|
|
190
|
-
records += (@payload.body[key] || []).size
|
|
191
|
-
end
|
|
192
|
-
# Path Solution
|
|
193
|
-
@solution = solution
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def each
|
|
197
|
-
@module_data_page.each do |record|
|
|
198
|
-
yield record
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
def to_s
|
|
203
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
class ModuleDataListResponse < InstanceListResource
|
|
207
|
-
|
|
208
|
-
# @param [Array<ModuleDataInstance>] instance
|
|
209
|
-
# @param [Hash{String => Object}] headers
|
|
210
|
-
# @param [Integer] status_code
|
|
211
|
-
def initialize(version, payload, key, limit = :unset)
|
|
212
|
-
data_list = payload.body[key] || []
|
|
213
|
-
if limit != :unset
|
|
214
|
-
data_list = data_list[0, limit]
|
|
215
|
-
end
|
|
216
|
-
@module_data = data_list.map do |data|
|
|
217
|
-
ModuleDataInstance.new(version, data)
|
|
218
|
-
end
|
|
219
|
-
@headers = payload.headers
|
|
220
|
-
@status_code = payload.status_code
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
def module_data
|
|
224
|
-
@module_data
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def headers
|
|
228
|
-
@headers
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def status_code
|
|
232
|
-
@status_code
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
177
|
class ModuleDataInstance < InstanceResource
|
|
237
178
|
##
|
|
238
179
|
# Initialize the ModuleDataInstance
|
|
@@ -288,65 +288,6 @@ module Twilio
|
|
|
288
288
|
end
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
class ModuleDataManagementPageMetadata < PageMetadata
|
|
292
|
-
attr_reader :module_data_management_page
|
|
293
|
-
|
|
294
|
-
def initialize(version, response, solution, limit)
|
|
295
|
-
super(version, response)
|
|
296
|
-
@module_data_management_page = []
|
|
297
|
-
@limit = limit
|
|
298
|
-
key = get_key(response.body)
|
|
299
|
-
records = 0
|
|
300
|
-
while( limit != :unset && records < limit )
|
|
301
|
-
@module_data_management_page << ModuleDataManagementListResponse.new(version, @payload, key, limit - records)
|
|
302
|
-
@payload = self.next_page
|
|
303
|
-
break unless @payload
|
|
304
|
-
records += (@payload.body[key] || []).size
|
|
305
|
-
end
|
|
306
|
-
# Path Solution
|
|
307
|
-
@solution = solution
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
def each
|
|
311
|
-
@module_data_management_page.each do |record|
|
|
312
|
-
yield record
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
def to_s
|
|
317
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
318
|
-
end
|
|
319
|
-
end
|
|
320
|
-
class ModuleDataManagementListResponse < InstanceListResource
|
|
321
|
-
|
|
322
|
-
# @param [Array<ModuleDataManagementInstance>] instance
|
|
323
|
-
# @param [Hash{String => Object}] headers
|
|
324
|
-
# @param [Integer] status_code
|
|
325
|
-
def initialize(version, payload, key, limit = :unset)
|
|
326
|
-
data_list = payload.body[key] || []
|
|
327
|
-
if limit != :unset
|
|
328
|
-
data_list = data_list[0, limit]
|
|
329
|
-
end
|
|
330
|
-
@module_data_management = data_list.map do |data|
|
|
331
|
-
ModuleDataManagementInstance.new(version, data)
|
|
332
|
-
end
|
|
333
|
-
@headers = payload.headers
|
|
334
|
-
@status_code = payload.status_code
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
def module_data_management
|
|
338
|
-
@module_data_management
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
def headers
|
|
342
|
-
@headers
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
def status_code
|
|
346
|
-
@status_code
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
|
-
|
|
350
291
|
class ModuleDataManagementInstance < InstanceResource
|
|
351
292
|
##
|
|
352
293
|
# Initialize the ModuleDataManagementInstance
|
|
@@ -130,65 +130,6 @@ module Twilio
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class ReferralConversionPageMetadata < PageMetadata
|
|
134
|
-
attr_reader :referral_conversion_page
|
|
135
|
-
|
|
136
|
-
def initialize(version, response, solution, limit)
|
|
137
|
-
super(version, response)
|
|
138
|
-
@referral_conversion_page = []
|
|
139
|
-
@limit = limit
|
|
140
|
-
key = get_key(response.body)
|
|
141
|
-
records = 0
|
|
142
|
-
while( limit != :unset && records < limit )
|
|
143
|
-
@referral_conversion_page << ReferralConversionListResponse.new(version, @payload, key, limit - records)
|
|
144
|
-
@payload = self.next_page
|
|
145
|
-
break unless @payload
|
|
146
|
-
records += (@payload.body[key] || []).size
|
|
147
|
-
end
|
|
148
|
-
# Path Solution
|
|
149
|
-
@solution = solution
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
def each
|
|
153
|
-
@referral_conversion_page.each do |record|
|
|
154
|
-
yield record
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
def to_s
|
|
159
|
-
'<Twilio::REST::Marketplace::V1PageMetadata>';
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
class ReferralConversionListResponse < InstanceListResource
|
|
163
|
-
|
|
164
|
-
# @param [Array<ReferralConversionInstance>] instance
|
|
165
|
-
# @param [Hash{String => Object}] headers
|
|
166
|
-
# @param [Integer] status_code
|
|
167
|
-
def initialize(version, payload, key, limit = :unset)
|
|
168
|
-
data_list = payload.body[key] || []
|
|
169
|
-
if limit != :unset
|
|
170
|
-
data_list = data_list[0, limit]
|
|
171
|
-
end
|
|
172
|
-
@referral_conversion = data_list.map do |data|
|
|
173
|
-
ReferralConversionInstance.new(version, data)
|
|
174
|
-
end
|
|
175
|
-
@headers = payload.headers
|
|
176
|
-
@status_code = payload.status_code
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
def referral_conversion
|
|
180
|
-
@referral_conversion
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
def headers
|
|
184
|
-
@headers
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def status_code
|
|
188
|
-
@status_code
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
133
|
class ReferralConversionInstance < InstanceResource
|
|
193
134
|
##
|
|
194
135
|
# Initialize the ReferralConversionInstance
|
|
@@ -147,65 +147,6 @@ module Twilio
|
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
-
class BulkPageMetadata < PageMetadata
|
|
151
|
-
attr_reader :bulk_page
|
|
152
|
-
|
|
153
|
-
def initialize(version, response, solution, limit)
|
|
154
|
-
super(version, response)
|
|
155
|
-
@bulk_page = []
|
|
156
|
-
@limit = limit
|
|
157
|
-
key = get_key(response.body)
|
|
158
|
-
records = 0
|
|
159
|
-
while( limit != :unset && records < limit )
|
|
160
|
-
@bulk_page << BulkListResponse.new(version, @payload, key, limit - records)
|
|
161
|
-
@payload = self.next_page
|
|
162
|
-
break unless @payload
|
|
163
|
-
records += (@payload.body[key] || []).size
|
|
164
|
-
end
|
|
165
|
-
# Path Solution
|
|
166
|
-
@solution = solution
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def each
|
|
170
|
-
@bulk_page.each do |record|
|
|
171
|
-
yield record
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
def to_s
|
|
176
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
class BulkListResponse < InstanceListResource
|
|
180
|
-
|
|
181
|
-
# @param [Array<BulkInstance>] instance
|
|
182
|
-
# @param [Hash{String => Object}] headers
|
|
183
|
-
# @param [Integer] status_code
|
|
184
|
-
def initialize(version, payload, key, limit = :unset)
|
|
185
|
-
data_list = payload.body[key] || []
|
|
186
|
-
if limit != :unset
|
|
187
|
-
data_list = data_list[0, limit]
|
|
188
|
-
end
|
|
189
|
-
@bulk = data_list.map do |data|
|
|
190
|
-
BulkInstance.new(version, data)
|
|
191
|
-
end
|
|
192
|
-
@headers = payload.headers
|
|
193
|
-
@status_code = payload.status_code
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
def bulk
|
|
197
|
-
@bulk
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
def headers
|
|
201
|
-
@headers
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
def status_code
|
|
205
|
-
@status_code
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
|
|
209
150
|
class BulkInstance < InstanceResource
|
|
210
151
|
##
|
|
211
152
|
# Initialize the BulkInstance
|
|
@@ -280,11 +280,10 @@ module Twilio
|
|
|
280
280
|
params = Twilio::Values.of({
|
|
281
281
|
'pageToken' => page_token,
|
|
282
282
|
'conversationId' => conversation_id,
|
|
283
|
-
'Accept-Encoding' => accept_encoding,
|
|
284
283
|
|
|
285
284
|
'PageSize' => limits[:page_size],
|
|
286
285
|
});
|
|
287
|
-
headers = Twilio::Values.of({})
|
|
286
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
288
287
|
|
|
289
288
|
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
290
289
|
|
|
@@ -321,10 +320,9 @@ module Twilio
|
|
|
321
320
|
params = Twilio::Values.of({
|
|
322
321
|
'pageToken' => page_token,
|
|
323
322
|
'conversationId' => conversation_id,
|
|
324
|
-
'Accept-Encoding' => accept_encoding,
|
|
325
323
|
'PageSize' => page_size,
|
|
326
324
|
})
|
|
327
|
-
headers = Twilio::Values.of({})
|
|
325
|
+
headers = Twilio::Values.of({ 'Accept-Encoding' => accept_encoding, })
|
|
328
326
|
|
|
329
327
|
|
|
330
328
|
|
|
@@ -470,7 +470,7 @@ module Twilio
|
|
|
470
470
|
# @return [DataMappingInstance] Patched DataMappingInstance
|
|
471
471
|
def patch(
|
|
472
472
|
if_match: :unset,
|
|
473
|
-
data_mapping_core:
|
|
473
|
+
data_mapping_core: nil
|
|
474
474
|
)
|
|
475
475
|
|
|
476
476
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
|
@@ -495,7 +495,7 @@ module Twilio
|
|
|
495
495
|
# @return [DataMappingInstance] Patchd DataMappingInstance
|
|
496
496
|
def patch_with_metadata(
|
|
497
497
|
if_match: :unset,
|
|
498
|
-
data_mapping_core:
|
|
498
|
+
data_mapping_core: nil
|
|
499
499
|
)
|
|
500
500
|
|
|
501
501
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'If-Match' => if_match, })
|
|
@@ -807,7 +807,7 @@ module Twilio
|
|
|
807
807
|
# @return [DataMappingInstance] Patched DataMappingInstance
|
|
808
808
|
def patch(
|
|
809
809
|
if_match: :unset,
|
|
810
|
-
data_mapping_core:
|
|
810
|
+
data_mapping_core: nil
|
|
811
811
|
)
|
|
812
812
|
|
|
813
813
|
context.patch(
|
|
@@ -197,27 +197,6 @@ module Twilio
|
|
|
197
197
|
result
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
##
|
|
201
|
-
# Lists IdentifierPageMetadata records from the API as a list.
|
|
202
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
203
|
-
# guarantees to never return more than limit. Default is no limit
|
|
204
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
|
205
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
|
206
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
207
|
-
# efficient page size, i.e. min(limit, 1000)
|
|
208
|
-
# @return [Array] Array of up to limit results
|
|
209
|
-
def list_with_metadata(limit: nil, page_size: nil)
|
|
210
|
-
limits = @version.read_limits(limit, page_size)
|
|
211
|
-
params = Twilio::Values.of({
|
|
212
|
-
|
|
213
|
-
'PageSize' => limits[:page_size],
|
|
214
|
-
});
|
|
215
|
-
headers = Twilio::Values.of({})
|
|
216
|
-
|
|
217
|
-
response = @version.page('GET', @uri, params: params, headers: headers)
|
|
218
|
-
|
|
219
|
-
IdentifierPageMetadata.new(@version, response, @solution, limits[:limit])
|
|
220
|
-
end
|
|
221
200
|
|
|
222
201
|
##
|
|
223
202
|
# When passed a block, yields IdentifierInstance records from the API.
|
|
@@ -541,65 +520,6 @@ module Twilio
|
|
|
541
520
|
end
|
|
542
521
|
end
|
|
543
522
|
|
|
544
|
-
class IdentifierPageMetadata < PageMetadata
|
|
545
|
-
attr_reader :identifier_page
|
|
546
|
-
|
|
547
|
-
def initialize(version, response, solution, limit)
|
|
548
|
-
super(version, response)
|
|
549
|
-
@identifier_page = []
|
|
550
|
-
@limit = limit
|
|
551
|
-
key = get_key(response.body)
|
|
552
|
-
records = 0
|
|
553
|
-
while( limit != :unset && records < limit )
|
|
554
|
-
@identifier_page << IdentifierListResponse.new(version, @payload, key, limit - records)
|
|
555
|
-
@payload = self.next_page
|
|
556
|
-
break unless @payload
|
|
557
|
-
records += (@payload.body[key] || []).size
|
|
558
|
-
end
|
|
559
|
-
# Path Solution
|
|
560
|
-
@solution = solution
|
|
561
|
-
end
|
|
562
|
-
|
|
563
|
-
def each
|
|
564
|
-
@identifier_page.each do |record|
|
|
565
|
-
yield record
|
|
566
|
-
end
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
def to_s
|
|
570
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
|
-
class IdentifierListResponse < InstanceListResource
|
|
574
|
-
|
|
575
|
-
# @param [Array<IdentifierInstance>] instance
|
|
576
|
-
# @param [Hash{String => Object}] headers
|
|
577
|
-
# @param [Integer] status_code
|
|
578
|
-
def initialize(version, payload, key, limit = :unset)
|
|
579
|
-
data_list = payload.body[key] || []
|
|
580
|
-
if limit != :unset
|
|
581
|
-
data_list = data_list[0, limit]
|
|
582
|
-
end
|
|
583
|
-
@identifier = data_list.map do |data|
|
|
584
|
-
IdentifierInstance.new(version, data)
|
|
585
|
-
end
|
|
586
|
-
@headers = payload.headers
|
|
587
|
-
@status_code = payload.status_code
|
|
588
|
-
end
|
|
589
|
-
|
|
590
|
-
def identifier
|
|
591
|
-
@identifier
|
|
592
|
-
end
|
|
593
|
-
|
|
594
|
-
def headers
|
|
595
|
-
@headers
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
def status_code
|
|
599
|
-
@status_code
|
|
600
|
-
end
|
|
601
|
-
end
|
|
602
|
-
|
|
603
523
|
class IdentifierInstance < InstanceResource
|
|
604
524
|
##
|
|
605
525
|
# Initialize the IdentifierInstance
|
|
@@ -187,65 +187,6 @@ module Twilio
|
|
|
187
187
|
end
|
|
188
188
|
end
|
|
189
189
|
|
|
190
|
-
class IdentityResolutionSettingPageMetadata < PageMetadata
|
|
191
|
-
attr_reader :identity_resolution_setting_page
|
|
192
|
-
|
|
193
|
-
def initialize(version, response, solution, limit)
|
|
194
|
-
super(version, response)
|
|
195
|
-
@identity_resolution_setting_page = []
|
|
196
|
-
@limit = limit
|
|
197
|
-
key = get_key(response.body)
|
|
198
|
-
records = 0
|
|
199
|
-
while( limit != :unset && records < limit )
|
|
200
|
-
@identity_resolution_setting_page << IdentityResolutionSettingListResponse.new(version, @payload, key, limit - records)
|
|
201
|
-
@payload = self.next_page
|
|
202
|
-
break unless @payload
|
|
203
|
-
records += (@payload.body[key] || []).size
|
|
204
|
-
end
|
|
205
|
-
# Path Solution
|
|
206
|
-
@solution = solution
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def each
|
|
210
|
-
@identity_resolution_setting_page.each do |record|
|
|
211
|
-
yield record
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
def to_s
|
|
216
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
class IdentityResolutionSettingListResponse < InstanceListResource
|
|
220
|
-
|
|
221
|
-
# @param [Array<IdentityResolutionSettingInstance>] instance
|
|
222
|
-
# @param [Hash{String => Object}] headers
|
|
223
|
-
# @param [Integer] status_code
|
|
224
|
-
def initialize(version, payload, key, limit = :unset)
|
|
225
|
-
data_list = payload.body[key] || []
|
|
226
|
-
if limit != :unset
|
|
227
|
-
data_list = data_list[0, limit]
|
|
228
|
-
end
|
|
229
|
-
@identity_resolution_setting = data_list.map do |data|
|
|
230
|
-
IdentityResolutionSettingInstance.new(version, data)
|
|
231
|
-
end
|
|
232
|
-
@headers = payload.headers
|
|
233
|
-
@status_code = payload.status_code
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def identity_resolution_setting
|
|
237
|
-
@identity_resolution_setting
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
def headers
|
|
241
|
-
@headers
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
def status_code
|
|
245
|
-
@status_code
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
190
|
class IdentityResolutionSettingInstance < InstanceResource
|
|
250
191
|
##
|
|
251
192
|
# Initialize the IdentityResolutionSettingInstance
|
|
@@ -137,65 +137,6 @@ module Twilio
|
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
class LookupPageMetadata < PageMetadata
|
|
141
|
-
attr_reader :lookup_page
|
|
142
|
-
|
|
143
|
-
def initialize(version, response, solution, limit)
|
|
144
|
-
super(version, response)
|
|
145
|
-
@lookup_page = []
|
|
146
|
-
@limit = limit
|
|
147
|
-
key = get_key(response.body)
|
|
148
|
-
records = 0
|
|
149
|
-
while( limit != :unset && records < limit )
|
|
150
|
-
@lookup_page << LookupListResponse.new(version, @payload, key, limit - records)
|
|
151
|
-
@payload = self.next_page
|
|
152
|
-
break unless @payload
|
|
153
|
-
records += (@payload.body[key] || []).size
|
|
154
|
-
end
|
|
155
|
-
# Path Solution
|
|
156
|
-
@solution = solution
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def each
|
|
160
|
-
@lookup_page.each do |record|
|
|
161
|
-
yield record
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def to_s
|
|
166
|
-
'<Twilio::REST::Memory::V1PageMetadata>';
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
class LookupListResponse < InstanceListResource
|
|
170
|
-
|
|
171
|
-
# @param [Array<LookupInstance>] instance
|
|
172
|
-
# @param [Hash{String => Object}] headers
|
|
173
|
-
# @param [Integer] status_code
|
|
174
|
-
def initialize(version, payload, key, limit = :unset)
|
|
175
|
-
data_list = payload.body[key] || []
|
|
176
|
-
if limit != :unset
|
|
177
|
-
data_list = data_list[0, limit]
|
|
178
|
-
end
|
|
179
|
-
@lookup = data_list.map do |data|
|
|
180
|
-
LookupInstance.new(version, data)
|
|
181
|
-
end
|
|
182
|
-
@headers = payload.headers
|
|
183
|
-
@status_code = payload.status_code
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
def lookup
|
|
187
|
-
@lookup
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
def headers
|
|
191
|
-
@headers
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
def status_code
|
|
195
|
-
@status_code
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
140
|
class LookupInstance < InstanceResource
|
|
200
141
|
##
|
|
201
142
|
# Initialize the LookupInstance
|