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
|
@@ -181,65 +181,6 @@ module Twilio
|
|
|
181
181
|
end
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
-
class NewFactorPageMetadata < PageMetadata
|
|
185
|
-
attr_reader :new_factor_page
|
|
186
|
-
|
|
187
|
-
def initialize(version, response, solution, limit)
|
|
188
|
-
super(version, response)
|
|
189
|
-
@new_factor_page = []
|
|
190
|
-
@limit = limit
|
|
191
|
-
key = get_key(response.body)
|
|
192
|
-
records = 0
|
|
193
|
-
while( limit != :unset && records < limit )
|
|
194
|
-
@new_factor_page << NewFactorListResponse.new(version, @payload, key, limit - records)
|
|
195
|
-
@payload = self.next_page
|
|
196
|
-
break unless @payload
|
|
197
|
-
records += (@payload.body[key] || []).size
|
|
198
|
-
end
|
|
199
|
-
# Path Solution
|
|
200
|
-
@solution = solution
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
def each
|
|
204
|
-
@new_factor_page.each do |record|
|
|
205
|
-
yield record
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def to_s
|
|
210
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
class NewFactorListResponse < InstanceListResource
|
|
214
|
-
|
|
215
|
-
# @param [Array<NewFactorInstance>] instance
|
|
216
|
-
# @param [Hash{String => Object}] headers
|
|
217
|
-
# @param [Integer] status_code
|
|
218
|
-
def initialize(version, payload, key, limit = :unset)
|
|
219
|
-
data_list = payload.body[key] || []
|
|
220
|
-
if limit != :unset
|
|
221
|
-
data_list = data_list[0, limit]
|
|
222
|
-
end
|
|
223
|
-
@new_factor = data_list.map do |data|
|
|
224
|
-
NewFactorInstance.new(version, data)
|
|
225
|
-
end
|
|
226
|
-
@headers = payload.headers
|
|
227
|
-
@status_code = payload.status_code
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
def new_factor
|
|
231
|
-
@new_factor
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
def headers
|
|
235
|
-
@headers
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
def status_code
|
|
239
|
-
@status_code
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
|
|
243
184
|
class NewFactorInstance < InstanceResource
|
|
244
185
|
##
|
|
245
186
|
# Initialize the NewFactorInstance
|
|
@@ -165,65 +165,6 @@ module Twilio
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
class NewVerifyFactorPageMetadata < PageMetadata
|
|
169
|
-
attr_reader :new_verify_factor_page
|
|
170
|
-
|
|
171
|
-
def initialize(version, response, solution, limit)
|
|
172
|
-
super(version, response)
|
|
173
|
-
@new_verify_factor_page = []
|
|
174
|
-
@limit = limit
|
|
175
|
-
key = get_key(response.body)
|
|
176
|
-
records = 0
|
|
177
|
-
while( limit != :unset && records < limit )
|
|
178
|
-
@new_verify_factor_page << NewVerifyFactorListResponse.new(version, @payload, key, limit - records)
|
|
179
|
-
@payload = self.next_page
|
|
180
|
-
break unless @payload
|
|
181
|
-
records += (@payload.body[key] || []).size
|
|
182
|
-
end
|
|
183
|
-
# Path Solution
|
|
184
|
-
@solution = solution
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def each
|
|
188
|
-
@new_verify_factor_page.each do |record|
|
|
189
|
-
yield record
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def to_s
|
|
194
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
class NewVerifyFactorListResponse < InstanceListResource
|
|
198
|
-
|
|
199
|
-
# @param [Array<NewVerifyFactorInstance>] instance
|
|
200
|
-
# @param [Hash{String => Object}] headers
|
|
201
|
-
# @param [Integer] status_code
|
|
202
|
-
def initialize(version, payload, key, limit = :unset)
|
|
203
|
-
data_list = payload.body[key] || []
|
|
204
|
-
if limit != :unset
|
|
205
|
-
data_list = data_list[0, limit]
|
|
206
|
-
end
|
|
207
|
-
@new_verify_factor = data_list.map do |data|
|
|
208
|
-
NewVerifyFactorInstance.new(version, data)
|
|
209
|
-
end
|
|
210
|
-
@headers = payload.headers
|
|
211
|
-
@status_code = payload.status_code
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
def new_verify_factor
|
|
215
|
-
@new_verify_factor
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
def headers
|
|
219
|
-
@headers
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def status_code
|
|
223
|
-
@status_code
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
168
|
class NewVerifyFactorInstance < InstanceResource
|
|
228
169
|
##
|
|
229
170
|
# Initialize the NewVerifyFactorInstance
|
|
@@ -47,8 +47,9 @@ module Twilio
|
|
|
47
47
|
# @param [Object] rate_limits The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
|
|
48
48
|
# @param [Object] channel_configuration [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
|
|
49
49
|
# @param [String] app_hash Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
50
|
-
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
|
50
|
+
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. If the `Templates` parameter is also provided, `Templates` takes precedence over this parameter.
|
|
51
51
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
|
52
|
+
# @param [String] templates A stringified JSON array of template entries, ordered by preference. Each entry is an object with the following fields: `sid` (string, required, matching `^HJ[0-9a-fA-F]{32}$`) — the SID of the message [template](https://www.twilio.com/docs/verify/api/templates) to apply; and `substitutions` (object, optional) — a key-value map in which the keys are the template's special variables and the values are their substitution values. The array may contain up to 10 entries. If provided, `Templates` takes precedence over `TemplateSid` and `TemplateCustomSubstitutions`.
|
|
52
53
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
|
53
54
|
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
|
54
55
|
# @param [RiskCheck] risk_check
|
|
@@ -69,6 +70,7 @@ module Twilio
|
|
|
69
70
|
app_hash: :unset,
|
|
70
71
|
template_sid: :unset,
|
|
71
72
|
template_custom_substitutions: :unset,
|
|
73
|
+
templates: :unset,
|
|
72
74
|
device_ip: :unset,
|
|
73
75
|
enable_sna_client_token: :unset,
|
|
74
76
|
risk_check: :unset,
|
|
@@ -90,6 +92,7 @@ module Twilio
|
|
|
90
92
|
'AppHash' => app_hash,
|
|
91
93
|
'TemplateSid' => template_sid,
|
|
92
94
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
|
95
|
+
'Templates' => templates,
|
|
93
96
|
'DeviceIp' => device_ip,
|
|
94
97
|
'EnableSnaClientToken' => enable_sna_client_token,
|
|
95
98
|
'RiskCheck' => risk_check,
|
|
@@ -124,8 +127,9 @@ module Twilio
|
|
|
124
127
|
# @param [Object] rate_limits The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
|
|
125
128
|
# @param [Object] channel_configuration [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
|
|
126
129
|
# @param [String] app_hash Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
|
127
|
-
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
|
130
|
+
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. If the `Templates` parameter is also provided, `Templates` takes precedence over this parameter.
|
|
128
131
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
|
132
|
+
# @param [String] templates A stringified JSON array of template entries, ordered by preference. Each entry is an object with the following fields: `sid` (string, required, matching `^HJ[0-9a-fA-F]{32}$`) — the SID of the message [template](https://www.twilio.com/docs/verify/api/templates) to apply; and `substitutions` (object, optional) — a key-value map in which the keys are the template's special variables and the values are their substitution values. The array may contain up to 10 entries. If provided, `Templates` takes precedence over `TemplateSid` and `TemplateCustomSubstitutions`.
|
|
129
133
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
|
130
134
|
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
|
131
135
|
# @param [RiskCheck] risk_check
|
|
@@ -146,6 +150,7 @@ module Twilio
|
|
|
146
150
|
app_hash: :unset,
|
|
147
151
|
template_sid: :unset,
|
|
148
152
|
template_custom_substitutions: :unset,
|
|
153
|
+
templates: :unset,
|
|
149
154
|
device_ip: :unset,
|
|
150
155
|
enable_sna_client_token: :unset,
|
|
151
156
|
risk_check: :unset,
|
|
@@ -167,6 +172,7 @@ module Twilio
|
|
|
167
172
|
'AppHash' => app_hash,
|
|
168
173
|
'TemplateSid' => template_sid,
|
|
169
174
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
|
175
|
+
'Templates' => templates,
|
|
170
176
|
'DeviceIp' => device_ip,
|
|
171
177
|
'EnableSnaClientToken' => enable_sna_client_token,
|
|
172
178
|
'RiskCheck' => risk_check,
|
|
@@ -419,65 +425,6 @@ module Twilio
|
|
|
419
425
|
end
|
|
420
426
|
end
|
|
421
427
|
|
|
422
|
-
class VerificationPageMetadata < PageMetadata
|
|
423
|
-
attr_reader :verification_page
|
|
424
|
-
|
|
425
|
-
def initialize(version, response, solution, limit)
|
|
426
|
-
super(version, response)
|
|
427
|
-
@verification_page = []
|
|
428
|
-
@limit = limit
|
|
429
|
-
key = get_key(response.body)
|
|
430
|
-
records = 0
|
|
431
|
-
while( limit != :unset && records < limit )
|
|
432
|
-
@verification_page << VerificationListResponse.new(version, @payload, key, limit - records)
|
|
433
|
-
@payload = self.next_page
|
|
434
|
-
break unless @payload
|
|
435
|
-
records += (@payload.body[key] || []).size
|
|
436
|
-
end
|
|
437
|
-
# Path Solution
|
|
438
|
-
@solution = solution
|
|
439
|
-
end
|
|
440
|
-
|
|
441
|
-
def each
|
|
442
|
-
@verification_page.each do |record|
|
|
443
|
-
yield record
|
|
444
|
-
end
|
|
445
|
-
end
|
|
446
|
-
|
|
447
|
-
def to_s
|
|
448
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
449
|
-
end
|
|
450
|
-
end
|
|
451
|
-
class VerificationListResponse < InstanceListResource
|
|
452
|
-
|
|
453
|
-
# @param [Array<VerificationInstance>] instance
|
|
454
|
-
# @param [Hash{String => Object}] headers
|
|
455
|
-
# @param [Integer] status_code
|
|
456
|
-
def initialize(version, payload, key, limit = :unset)
|
|
457
|
-
data_list = payload.body[key] || []
|
|
458
|
-
if limit != :unset
|
|
459
|
-
data_list = data_list[0, limit]
|
|
460
|
-
end
|
|
461
|
-
@verification = data_list.map do |data|
|
|
462
|
-
VerificationInstance.new(version, data)
|
|
463
|
-
end
|
|
464
|
-
@headers = payload.headers
|
|
465
|
-
@status_code = payload.status_code
|
|
466
|
-
end
|
|
467
|
-
|
|
468
|
-
def verification
|
|
469
|
-
@verification
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
def headers
|
|
473
|
-
@headers
|
|
474
|
-
end
|
|
475
|
-
|
|
476
|
-
def status_code
|
|
477
|
-
@status_code
|
|
478
|
-
end
|
|
479
|
-
end
|
|
480
|
-
|
|
481
428
|
class VerificationInstance < InstanceResource
|
|
482
429
|
##
|
|
483
430
|
# Initialize the VerificationInstance
|
|
@@ -160,65 +160,6 @@ module Twilio
|
|
|
160
160
|
end
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
class VerificationCheckPageMetadata < PageMetadata
|
|
164
|
-
attr_reader :verification_check_page
|
|
165
|
-
|
|
166
|
-
def initialize(version, response, solution, limit)
|
|
167
|
-
super(version, response)
|
|
168
|
-
@verification_check_page = []
|
|
169
|
-
@limit = limit
|
|
170
|
-
key = get_key(response.body)
|
|
171
|
-
records = 0
|
|
172
|
-
while( limit != :unset && records < limit )
|
|
173
|
-
@verification_check_page << VerificationCheckListResponse.new(version, @payload, key, limit - records)
|
|
174
|
-
@payload = self.next_page
|
|
175
|
-
break unless @payload
|
|
176
|
-
records += (@payload.body[key] || []).size
|
|
177
|
-
end
|
|
178
|
-
# Path Solution
|
|
179
|
-
@solution = solution
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
def each
|
|
183
|
-
@verification_check_page.each do |record|
|
|
184
|
-
yield record
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
def to_s
|
|
189
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
class VerificationCheckListResponse < InstanceListResource
|
|
193
|
-
|
|
194
|
-
# @param [Array<VerificationCheckInstance>] instance
|
|
195
|
-
# @param [Hash{String => Object}] headers
|
|
196
|
-
# @param [Integer] status_code
|
|
197
|
-
def initialize(version, payload, key, limit = :unset)
|
|
198
|
-
data_list = payload.body[key] || []
|
|
199
|
-
if limit != :unset
|
|
200
|
-
data_list = data_list[0, limit]
|
|
201
|
-
end
|
|
202
|
-
@verification_check = data_list.map do |data|
|
|
203
|
-
VerificationCheckInstance.new(version, data)
|
|
204
|
-
end
|
|
205
|
-
@headers = payload.headers
|
|
206
|
-
@status_code = payload.status_code
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def verification_check
|
|
210
|
-
@verification_check
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
def headers
|
|
214
|
-
@headers
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def status_code
|
|
218
|
-
@status_code
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
163
|
class VerificationCheckInstance < InstanceResource
|
|
223
164
|
##
|
|
224
165
|
# Initialize the VerificationCheckInstance
|
|
@@ -233,65 +233,6 @@ module Twilio
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
-
class VerificationAttemptsSummaryPageMetadata < PageMetadata
|
|
237
|
-
attr_reader :verification_attempts_summary_page
|
|
238
|
-
|
|
239
|
-
def initialize(version, response, solution, limit)
|
|
240
|
-
super(version, response)
|
|
241
|
-
@verification_attempts_summary_page = []
|
|
242
|
-
@limit = limit
|
|
243
|
-
key = get_key(response.body)
|
|
244
|
-
records = 0
|
|
245
|
-
while( limit != :unset && records < limit )
|
|
246
|
-
@verification_attempts_summary_page << VerificationAttemptsSummaryListResponse.new(version, @payload, key, limit - records)
|
|
247
|
-
@payload = self.next_page
|
|
248
|
-
break unless @payload
|
|
249
|
-
records += (@payload.body[key] || []).size
|
|
250
|
-
end
|
|
251
|
-
# Path Solution
|
|
252
|
-
@solution = solution
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
def each
|
|
256
|
-
@verification_attempts_summary_page.each do |record|
|
|
257
|
-
yield record
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
def to_s
|
|
262
|
-
'<Twilio::REST::Verify::V2PageMetadata>';
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
class VerificationAttemptsSummaryListResponse < InstanceListResource
|
|
266
|
-
|
|
267
|
-
# @param [Array<VerificationAttemptsSummaryInstance>] instance
|
|
268
|
-
# @param [Hash{String => Object}] headers
|
|
269
|
-
# @param [Integer] status_code
|
|
270
|
-
def initialize(version, payload, key, limit = :unset)
|
|
271
|
-
data_list = payload.body[key] || []
|
|
272
|
-
if limit != :unset
|
|
273
|
-
data_list = data_list[0, limit]
|
|
274
|
-
end
|
|
275
|
-
@verification_attempts_summary = data_list.map do |data|
|
|
276
|
-
VerificationAttemptsSummaryInstance.new(version, data)
|
|
277
|
-
end
|
|
278
|
-
@headers = payload.headers
|
|
279
|
-
@status_code = payload.status_code
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
def verification_attempts_summary
|
|
283
|
-
@verification_attempts_summary
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
def headers
|
|
287
|
-
@headers
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
def status_code
|
|
291
|
-
@status_code
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
236
|
class VerificationAttemptsSummaryInstance < InstanceResource
|
|
296
237
|
##
|
|
297
238
|
# Initialize the VerificationAttemptsSummaryInstance
|
|
@@ -277,65 +277,6 @@ module Twilio
|
|
|
277
277
|
end
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
class CompositionSettingsPageMetadata < PageMetadata
|
|
281
|
-
attr_reader :composition_settings_page
|
|
282
|
-
|
|
283
|
-
def initialize(version, response, solution, limit)
|
|
284
|
-
super(version, response)
|
|
285
|
-
@composition_settings_page = []
|
|
286
|
-
@limit = limit
|
|
287
|
-
key = get_key(response.body)
|
|
288
|
-
records = 0
|
|
289
|
-
while( limit != :unset && records < limit )
|
|
290
|
-
@composition_settings_page << CompositionSettingsListResponse.new(version, @payload, key, limit - records)
|
|
291
|
-
@payload = self.next_page
|
|
292
|
-
break unless @payload
|
|
293
|
-
records += (@payload.body[key] || []).size
|
|
294
|
-
end
|
|
295
|
-
# Path Solution
|
|
296
|
-
@solution = solution
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def each
|
|
300
|
-
@composition_settings_page.each do |record|
|
|
301
|
-
yield record
|
|
302
|
-
end
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
def to_s
|
|
306
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
class CompositionSettingsListResponse < InstanceListResource
|
|
310
|
-
|
|
311
|
-
# @param [Array<CompositionSettingsInstance>] instance
|
|
312
|
-
# @param [Hash{String => Object}] headers
|
|
313
|
-
# @param [Integer] status_code
|
|
314
|
-
def initialize(version, payload, key, limit = :unset)
|
|
315
|
-
data_list = payload.body[key] || []
|
|
316
|
-
if limit != :unset
|
|
317
|
-
data_list = data_list[0, limit]
|
|
318
|
-
end
|
|
319
|
-
@composition_settings = data_list.map do |data|
|
|
320
|
-
CompositionSettingsInstance.new(version, data)
|
|
321
|
-
end
|
|
322
|
-
@headers = payload.headers
|
|
323
|
-
@status_code = payload.status_code
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def composition_settings
|
|
327
|
-
@composition_settings
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def headers
|
|
331
|
-
@headers
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def status_code
|
|
335
|
-
@status_code
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
280
|
class CompositionSettingsInstance < InstanceResource
|
|
340
281
|
##
|
|
341
282
|
# Initialize the CompositionSettingsInstance
|
|
@@ -277,65 +277,6 @@ module Twilio
|
|
|
277
277
|
end
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
class RecordingSettingsPageMetadata < PageMetadata
|
|
281
|
-
attr_reader :recording_settings_page
|
|
282
|
-
|
|
283
|
-
def initialize(version, response, solution, limit)
|
|
284
|
-
super(version, response)
|
|
285
|
-
@recording_settings_page = []
|
|
286
|
-
@limit = limit
|
|
287
|
-
key = get_key(response.body)
|
|
288
|
-
records = 0
|
|
289
|
-
while( limit != :unset && records < limit )
|
|
290
|
-
@recording_settings_page << RecordingSettingsListResponse.new(version, @payload, key, limit - records)
|
|
291
|
-
@payload = self.next_page
|
|
292
|
-
break unless @payload
|
|
293
|
-
records += (@payload.body[key] || []).size
|
|
294
|
-
end
|
|
295
|
-
# Path Solution
|
|
296
|
-
@solution = solution
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
def each
|
|
300
|
-
@recording_settings_page.each do |record|
|
|
301
|
-
yield record
|
|
302
|
-
end
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
def to_s
|
|
306
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
class RecordingSettingsListResponse < InstanceListResource
|
|
310
|
-
|
|
311
|
-
# @param [Array<RecordingSettingsInstance>] instance
|
|
312
|
-
# @param [Hash{String => Object}] headers
|
|
313
|
-
# @param [Integer] status_code
|
|
314
|
-
def initialize(version, payload, key, limit = :unset)
|
|
315
|
-
data_list = payload.body[key] || []
|
|
316
|
-
if limit != :unset
|
|
317
|
-
data_list = data_list[0, limit]
|
|
318
|
-
end
|
|
319
|
-
@recording_settings = data_list.map do |data|
|
|
320
|
-
RecordingSettingsInstance.new(version, data)
|
|
321
|
-
end
|
|
322
|
-
@headers = payload.headers
|
|
323
|
-
@status_code = payload.status_code
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def recording_settings
|
|
327
|
-
@recording_settings
|
|
328
|
-
end
|
|
329
|
-
|
|
330
|
-
def headers
|
|
331
|
-
@headers
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
def status_code
|
|
335
|
-
@status_code
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
280
|
class RecordingSettingsInstance < InstanceResource
|
|
340
281
|
##
|
|
341
282
|
# Initialize the RecordingSettingsInstance
|
|
@@ -200,65 +200,6 @@ module Twilio
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
class AnonymizePageMetadata < PageMetadata
|
|
204
|
-
attr_reader :anonymize_page
|
|
205
|
-
|
|
206
|
-
def initialize(version, response, solution, limit)
|
|
207
|
-
super(version, response)
|
|
208
|
-
@anonymize_page = []
|
|
209
|
-
@limit = limit
|
|
210
|
-
key = get_key(response.body)
|
|
211
|
-
records = 0
|
|
212
|
-
while( limit != :unset && records < limit )
|
|
213
|
-
@anonymize_page << AnonymizeListResponse.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
|
-
@anonymize_page.each do |record|
|
|
224
|
-
yield record
|
|
225
|
-
end
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def to_s
|
|
229
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
class AnonymizeListResponse < InstanceListResource
|
|
233
|
-
|
|
234
|
-
# @param [Array<AnonymizeInstance>] 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
|
-
@anonymize = data_list.map do |data|
|
|
243
|
-
AnonymizeInstance.new(version, data)
|
|
244
|
-
end
|
|
245
|
-
@headers = payload.headers
|
|
246
|
-
@status_code = payload.status_code
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
def anonymize
|
|
250
|
-
@anonymize
|
|
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 AnonymizeInstance < InstanceResource
|
|
263
204
|
##
|
|
264
205
|
# Initialize the AnonymizeInstance
|
|
@@ -179,65 +179,6 @@ module Twilio
|
|
|
179
179
|
end
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
-
class SubscribeRulesPageMetadata < PageMetadata
|
|
183
|
-
attr_reader :subscribe_rules_page
|
|
184
|
-
|
|
185
|
-
def initialize(version, response, solution, limit)
|
|
186
|
-
super(version, response)
|
|
187
|
-
@subscribe_rules_page = []
|
|
188
|
-
@limit = limit
|
|
189
|
-
key = get_key(response.body)
|
|
190
|
-
records = 0
|
|
191
|
-
while( limit != :unset && records < limit )
|
|
192
|
-
@subscribe_rules_page << SubscribeRulesListResponse.new(version, @payload, key, limit - records)
|
|
193
|
-
@payload = self.next_page
|
|
194
|
-
break unless @payload
|
|
195
|
-
records += (@payload.body[key] || []).size
|
|
196
|
-
end
|
|
197
|
-
# Path Solution
|
|
198
|
-
@solution = solution
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def each
|
|
202
|
-
@subscribe_rules_page.each do |record|
|
|
203
|
-
yield record
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
def to_s
|
|
208
|
-
'<Twilio::REST::Video::V1PageMetadata>';
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
|
-
class SubscribeRulesListResponse < InstanceListResource
|
|
212
|
-
|
|
213
|
-
# @param [Array<SubscribeRulesInstance>] instance
|
|
214
|
-
# @param [Hash{String => Object}] headers
|
|
215
|
-
# @param [Integer] status_code
|
|
216
|
-
def initialize(version, payload, key, limit = :unset)
|
|
217
|
-
data_list = payload.body[key] || []
|
|
218
|
-
if limit != :unset
|
|
219
|
-
data_list = data_list[0, limit]
|
|
220
|
-
end
|
|
221
|
-
@subscribe_rules = data_list.map do |data|
|
|
222
|
-
SubscribeRulesInstance.new(version, data)
|
|
223
|
-
end
|
|
224
|
-
@headers = payload.headers
|
|
225
|
-
@status_code = payload.status_code
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def subscribe_rules
|
|
229
|
-
@subscribe_rules
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
def headers
|
|
233
|
-
@headers
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
def status_code
|
|
237
|
-
@status_code
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
182
|
class SubscribeRulesInstance < InstanceResource
|
|
242
183
|
##
|
|
243
184
|
# Initialize the SubscribeRulesInstance
|