twilio-ruby 5.4.4 → 5.4.5
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 +12 -0
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/accounts/v1.rb +3 -9
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +19 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +338 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +51 -51
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +12 -12
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +14 -14
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v1/service.rb +16 -16
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +13 -13
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +10 -10
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service.rb +18 -18
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +12 -12
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +16 -16
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +13 -13
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +5 -5
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +10 -10
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +9 -9
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +18 -18
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +12 -12
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +11 -11
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -2
- data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +9 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +9 -9
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -6
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -6
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +9 -9
- data/lib/twilio-ruby/rest/notify/v1/service.rb +15 -15
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +3 -3
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +9 -9
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/preview.rb +15 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +1 -1
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +14 -14
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -6
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +3 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -7
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +1 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +19 -19
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +11 -11
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +12 -12
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +9 -9
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +12 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +9 -9
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +9 -11
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -2
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +9 -9
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +4 -4
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +12 -12
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +6 -6
- data/lib/twilio-ruby/rest/preview/proxy.rb +1 -1
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +16 -16
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +12 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +3 -3
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +9 -9
- data/lib/twilio-ruby/rest/preview/studio.rb +41 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +353 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +384 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +348 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service.rb +15 -15
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +11 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +6 -6
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +11 -11
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -7
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +5 -5
- data/lib/twilio-ruby/rest/preview/understand.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/service.rb +17 -17
- data/lib/twilio-ruby/rest/preview/understand/service/field_type.rb +13 -13
- data/lib/twilio-ruby/rest/preview/understand/service/field_type/field_value.rb +4 -4
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +16 -16
- data/lib/twilio-ruby/rest/preview/understand/service/intent/field.rb +4 -4
- data/lib/twilio-ruby/rest/preview/understand/service/intent/sample.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -12
- data/lib/twilio-ruby/rest/preview/understand/service/query.rb +10 -10
- data/lib/twilio-ruby/rest/preview/wireless.rb +3 -3
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -7
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +11 -11
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -8
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1.rb +9 -27
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -6
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -7
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
- data/lib/twilio-ruby/rest/proxy/v1.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +87 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -10
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +35 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +11 -40
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +3 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +10 -10
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +17 -17
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +13 -13
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +11 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -6
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +11 -11
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -7
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +5 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +26 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +9 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +16 -16
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +7 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/trunking/v1.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +17 -17
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +9 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +8 -8
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +9 -9
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +14 -14
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +8 -8
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +11 -11
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -9
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -3
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +224 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -1
- data/spec/integration/api/v2010/account/application_spec.rb +1 -1
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -2
- data/spec/integration/api/v2010/account/call_spec.rb +1 -1
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +1 -1
- data/spec/integration/api/v2010/account/message_spec.rb +2 -2
- data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -1
- data/spec/integration/api/v2010/account/queue_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -2
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -1
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -2
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
- data/spec/integration/chat/v1/credential_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -1
- data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -1
- data/spec/integration/chat/v1/service/role_spec.rb +1 -1
- data/spec/integration/chat/v1/service/user_spec.rb +1 -1
- data/spec/integration/chat/v1/service_spec.rb +1 -1
- data/spec/integration/chat/v2/credential_spec.rb +1 -1
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -1
- data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -1
- data/spec/integration/chat/v2/service/role_spec.rb +1 -1
- data/spec/integration/chat/v2/service/user_spec.rb +1 -1
- data/spec/integration/chat/v2/service_spec.rb +1 -1
- data/spec/integration/fax/v1/fax_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -1
- data/spec/integration/ip_messaging/v1/service_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +1 -1
- data/spec/integration/ip_messaging/v2/service_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -1
- data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -1
- data/spec/integration/messaging/v1/service_spec.rb +1 -1
- data/spec/integration/notify/v1/credential_spec.rb +1 -1
- data/spec/integration/notify/v1/service/binding_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -1
- data/spec/integration/notify/v1/service/user_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -1
- data/spec/integration/preview/acc_security/service_spec.rb +1 -1
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -1
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -1
- data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -1
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +96 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +171 -0
- data/spec/integration/preview/studio/flow_spec.rb +115 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -1
- data/spec/integration/preview/sync/service/document_spec.rb +1 -1
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -2
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -1
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -2
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -1
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +1 -1
- data/spec/integration/preview/understand/service/field_type_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent/field_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +1 -1
- data/spec/integration/preview/understand/service/intent_spec.rb +1 -1
- data/spec/integration/preview/understand/service/query_spec.rb +1 -1
- data/spec/integration/preview/wireless/command_spec.rb +1 -1
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +15 -7
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -4
- data/spec/integration/proxy/v1/service/session_spec.rb +3 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +13 -4
- data/spec/integration/proxy/v1/service_spec.rb +12 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/document_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -2
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -2
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -1
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -1
- data/spec/integration/video/v1/room_spec.rb +1 -1
- data/spec/integration/wireless/v1/command_spec.rb +1 -1
- metadata +16 -3
@@ -65,7 +65,7 @@ module Twilio
|
|
65
65
|
data: data
|
66
66
|
)
|
67
67
|
|
68
|
-
ServiceInstance.new(@version, payload
|
68
|
+
ServiceInstance.new(@version, payload)
|
69
69
|
end
|
70
70
|
|
71
71
|
##
|
@@ -99,7 +99,7 @@ module Twilio
|
|
99
99
|
def stream(friendly_name: :unset, limit: nil, page_size: nil)
|
100
100
|
limits = @version.read_limits(limit, page_size)
|
101
101
|
|
102
|
-
page = self.page(friendly_name: friendly_name, page_size: limits[:page_size]
|
102
|
+
page = self.page(friendly_name: friendly_name, page_size: limits[:page_size])
|
103
103
|
|
104
104
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
105
105
|
end
|
@@ -111,7 +111,7 @@ module Twilio
|
|
111
111
|
def each
|
112
112
|
limits = @version.read_limits
|
113
113
|
|
114
|
-
page = self.page(page_size: limits[:page_size]
|
114
|
+
page = self.page(page_size: limits[:page_size])
|
115
115
|
|
116
116
|
@version.stream(page,
|
117
117
|
limit: limits[:limit],
|
@@ -182,7 +182,7 @@ module Twilio
|
|
182
182
|
# @param [Hash] payload Payload response from the API
|
183
183
|
# @return [ServiceInstance] ServiceInstance
|
184
184
|
def get_instance(payload)
|
185
|
-
ServiceInstance.new(@version, payload
|
185
|
+
ServiceInstance.new(@version, payload)
|
186
186
|
end
|
187
187
|
|
188
188
|
##
|
@@ -204,7 +204,7 @@ module Twilio
|
|
204
204
|
super(version)
|
205
205
|
|
206
206
|
# Path Solution
|
207
|
-
@solution = {sid: sid
|
207
|
+
@solution = {sid: sid}
|
208
208
|
@uri = "/Services/#{@solution[:sid]}"
|
209
209
|
|
210
210
|
# Dependents
|
@@ -233,7 +233,7 @@ module Twilio
|
|
233
233
|
params,
|
234
234
|
)
|
235
235
|
|
236
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid]
|
236
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid])
|
237
237
|
end
|
238
238
|
|
239
239
|
##
|
@@ -277,7 +277,7 @@ module Twilio
|
|
277
277
|
data: data,
|
278
278
|
)
|
279
279
|
|
280
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid]
|
280
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid])
|
281
281
|
end
|
282
282
|
|
283
283
|
##
|
@@ -288,11 +288,11 @@ module Twilio
|
|
288
288
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
289
289
|
|
290
290
|
if sid != :unset
|
291
|
-
return BindingContext.new(@version, @solution[:sid], sid
|
291
|
+
return BindingContext.new(@version, @solution[:sid], sid)
|
292
292
|
end
|
293
293
|
|
294
294
|
unless @bindings
|
295
|
-
@bindings = BindingList.new(@version, service_sid: @solution[:sid]
|
295
|
+
@bindings = BindingList.new(@version, service_sid: @solution[:sid])
|
296
296
|
end
|
297
297
|
|
298
298
|
@bindings
|
@@ -304,7 +304,7 @@ module Twilio
|
|
304
304
|
# @return [NotificationContext]
|
305
305
|
def notifications
|
306
306
|
unless @notifications
|
307
|
-
@notifications = NotificationList.new(@version, service_sid: @solution[:sid]
|
307
|
+
@notifications = NotificationList.new(@version, service_sid: @solution[:sid])
|
308
308
|
end
|
309
309
|
|
310
310
|
@notifications
|
@@ -318,11 +318,11 @@ module Twilio
|
|
318
318
|
raise ArgumentError, 'identity cannot be nil' if identity.nil?
|
319
319
|
|
320
320
|
if identity != :unset
|
321
|
-
return UserContext.new(@version, @solution[:sid], identity
|
321
|
+
return UserContext.new(@version, @solution[:sid], identity)
|
322
322
|
end
|
323
323
|
|
324
324
|
unless @users
|
325
|
-
@users = UserList.new(@version, service_sid: @solution[:sid]
|
325
|
+
@users = UserList.new(@version, service_sid: @solution[:sid])
|
326
326
|
end
|
327
327
|
|
328
328
|
@users
|
@@ -334,7 +334,7 @@ module Twilio
|
|
334
334
|
# @return [SegmentContext]
|
335
335
|
def segments
|
336
336
|
unless @segments
|
337
|
-
@segments = SegmentList.new(@version, service_sid: @solution[:sid]
|
337
|
+
@segments = SegmentList.new(@version, service_sid: @solution[:sid])
|
338
338
|
end
|
339
339
|
|
340
340
|
@segments
|
@@ -384,7 +384,7 @@ module Twilio
|
|
384
384
|
|
385
385
|
# Context
|
386
386
|
@instance_context = nil
|
387
|
-
@params = {'sid' => sid || @properties['sid']
|
387
|
+
@params = {'sid' => sid || @properties['sid']}
|
388
388
|
end
|
389
389
|
|
390
390
|
##
|
@@ -393,7 +393,7 @@ module Twilio
|
|
393
393
|
# @return [ServiceContext] ServiceContext for this ServiceInstance
|
394
394
|
def context
|
395
395
|
unless @instance_context
|
396
|
-
@instance_context = ServiceContext.new(@version, @params['sid']
|
396
|
+
@instance_context = ServiceContext.new(@version, @params['sid'])
|
397
397
|
end
|
398
398
|
@instance_context
|
399
399
|
end
|
@@ -53,7 +53,7 @@ module Twilio
|
|
53
53
|
data: data
|
54
54
|
)
|
55
55
|
|
56
|
-
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
56
|
+
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
57
57
|
end
|
58
58
|
|
59
59
|
##
|
@@ -118,7 +118,7 @@ module Twilio
|
|
118
118
|
def each
|
119
119
|
limits = @version.read_limits
|
120
120
|
|
121
|
-
page = self.page(page_size: limits[:page_size]
|
121
|
+
page = self.page(page_size: limits[:page_size])
|
122
122
|
|
123
123
|
@version.stream(page,
|
124
124
|
limit: limits[:limit],
|
@@ -195,7 +195,7 @@ module Twilio
|
|
195
195
|
# @param [Hash] payload Payload response from the API
|
196
196
|
# @return [BindingInstance] BindingInstance
|
197
197
|
def get_instance(payload)
|
198
|
-
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
198
|
+
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
199
199
|
end
|
200
200
|
|
201
201
|
##
|
@@ -218,7 +218,7 @@ module Twilio
|
|
218
218
|
super(version)
|
219
219
|
|
220
220
|
# Path Solution
|
221
|
-
@solution = {service_sid: service_sid, sid: sid
|
221
|
+
@solution = {service_sid: service_sid, sid: sid}
|
222
222
|
@uri = "/Services/#{@solution[:service_sid]}/Bindings/#{@solution[:sid]}"
|
223
223
|
end
|
224
224
|
|
@@ -234,7 +234,7 @@ module Twilio
|
|
234
234
|
params,
|
235
235
|
)
|
236
236
|
|
237
|
-
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid]
|
237
|
+
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid])
|
238
238
|
end
|
239
239
|
|
240
240
|
##
|
@@ -285,7 +285,7 @@ module Twilio
|
|
285
285
|
|
286
286
|
# Context
|
287
287
|
@instance_context = nil
|
288
|
-
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']
|
288
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']}
|
289
289
|
end
|
290
290
|
|
291
291
|
##
|
@@ -294,7 +294,7 @@ module Twilio
|
|
294
294
|
# @return [BindingContext] BindingContext for this BindingInstance
|
295
295
|
def context
|
296
296
|
unless @instance_context
|
297
|
-
@instance_context = BindingContext.new(@version, @params['service_sid'], @params['sid']
|
297
|
+
@instance_context = BindingContext.new(@version, @params['service_sid'], @params['sid'])
|
298
298
|
end
|
299
299
|
@instance_context
|
300
300
|
end
|
@@ -73,7 +73,7 @@ module Twilio
|
|
73
73
|
data: data
|
74
74
|
)
|
75
75
|
|
76
|
-
NotificationInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
76
|
+
NotificationInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
77
77
|
end
|
78
78
|
|
79
79
|
##
|
@@ -104,7 +104,7 @@ module Twilio
|
|
104
104
|
# @param [Hash] payload Payload response from the API
|
105
105
|
# @return [NotificationInstance] NotificationInstance
|
106
106
|
def get_instance(payload)
|
107
|
-
NotificationInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
107
|
+
NotificationInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
108
108
|
end
|
109
109
|
|
110
110
|
##
|
@@ -54,7 +54,7 @@ module Twilio
|
|
54
54
|
def stream(limit: nil, page_size: nil)
|
55
55
|
limits = @version.read_limits(limit, page_size)
|
56
56
|
|
57
|
-
page = self.page(page_size: limits[:page_size]
|
57
|
+
page = self.page(page_size: limits[:page_size])
|
58
58
|
|
59
59
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
60
60
|
end
|
@@ -66,7 +66,7 @@ module Twilio
|
|
66
66
|
def each
|
67
67
|
limits = @version.read_limits
|
68
68
|
|
69
|
-
page = self.page(page_size: limits[:page_size]
|
69
|
+
page = self.page(page_size: limits[:page_size])
|
70
70
|
|
71
71
|
@version.stream(page,
|
72
72
|
limit: limits[:limit],
|
@@ -135,7 +135,7 @@ module Twilio
|
|
135
135
|
# @param [Hash] payload Payload response from the API
|
136
136
|
# @return [SegmentInstance] SegmentInstance
|
137
137
|
def get_instance(payload)
|
138
|
-
SegmentInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
138
|
+
SegmentInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
139
139
|
end
|
140
140
|
|
141
141
|
##
|
@@ -43,7 +43,7 @@ module Twilio
|
|
43
43
|
data: data
|
44
44
|
)
|
45
45
|
|
46
|
-
UserInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
46
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
47
47
|
end
|
48
48
|
|
49
49
|
##
|
@@ -79,7 +79,7 @@ module Twilio
|
|
79
79
|
def stream(identity: :unset, segment: :unset, limit: nil, page_size: nil)
|
80
80
|
limits = @version.read_limits(limit, page_size)
|
81
81
|
|
82
|
-
page = self.page(identity: identity, segment: segment, page_size: limits[:page_size]
|
82
|
+
page = self.page(identity: identity, segment: segment, page_size: limits[:page_size])
|
83
83
|
|
84
84
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
85
85
|
end
|
@@ -91,7 +91,7 @@ module Twilio
|
|
91
91
|
def each
|
92
92
|
limits = @version.read_limits
|
93
93
|
|
94
|
-
page = self.page(page_size: limits[:page_size]
|
94
|
+
page = self.page(page_size: limits[:page_size])
|
95
95
|
|
96
96
|
@version.stream(page,
|
97
97
|
limit: limits[:limit],
|
@@ -164,7 +164,7 @@ module Twilio
|
|
164
164
|
# @param [Hash] payload Payload response from the API
|
165
165
|
# @return [UserInstance] UserInstance
|
166
166
|
def get_instance(payload)
|
167
|
-
UserInstance.new(@version, payload, service_sid: @solution[:service_sid]
|
167
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid])
|
168
168
|
end
|
169
169
|
|
170
170
|
##
|
@@ -187,7 +187,7 @@ module Twilio
|
|
187
187
|
super(version)
|
188
188
|
|
189
189
|
# Path Solution
|
190
|
-
@solution = {service_sid: service_sid, identity: identity
|
190
|
+
@solution = {service_sid: service_sid, identity: identity}
|
191
191
|
@uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:identity]}"
|
192
192
|
|
193
193
|
# Dependents
|
@@ -230,7 +230,7 @@ module Twilio
|
|
230
230
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
231
231
|
|
232
232
|
if sid != :unset
|
233
|
-
return UserBindingContext.new(@version, @solution[:service_sid], @solution[:identity], sid
|
233
|
+
return UserBindingContext.new(@version, @solution[:service_sid], @solution[:identity], sid)
|
234
234
|
end
|
235
235
|
|
236
236
|
unless @bindings
|
@@ -252,7 +252,7 @@ module Twilio
|
|
252
252
|
raise ArgumentError, 'segment cannot be nil' if segment.nil?
|
253
253
|
|
254
254
|
if segment != :unset
|
255
|
-
return SegmentMembershipContext.new(@version, @solution[:service_sid], @solution[:identity], segment
|
255
|
+
return SegmentMembershipContext.new(@version, @solution[:service_sid], @solution[:identity], segment)
|
256
256
|
end
|
257
257
|
|
258
258
|
unless @segment_memberships
|
@@ -302,7 +302,7 @@ module Twilio
|
|
302
302
|
|
303
303
|
# Context
|
304
304
|
@instance_context = nil
|
305
|
-
@params = {'service_sid' => service_sid, 'identity' => identity || @properties['identity']
|
305
|
+
@params = {'service_sid' => service_sid, 'identity' => identity || @properties['identity']}
|
306
306
|
end
|
307
307
|
|
308
308
|
##
|
@@ -311,7 +311,7 @@ module Twilio
|
|
311
311
|
# @return [UserContext] UserContext for this UserInstance
|
312
312
|
def context
|
313
313
|
unless @instance_context
|
314
|
-
@instance_context = UserContext.new(@version, @params['service_sid'], @params['identity']
|
314
|
+
@instance_context = UserContext.new(@version, @params['service_sid'], @params['identity'])
|
315
315
|
end
|
316
316
|
@instance_context
|
317
317
|
end
|
@@ -33,7 +33,7 @@ module Twilio
|
|
33
33
|
# @param [String] segment The segment
|
34
34
|
# @return [SegmentMembershipInstance] Newly created SegmentMembershipInstance
|
35
35
|
def create(segment: nil)
|
36
|
-
data = Twilio::Values.of({'Segment' => segment
|
36
|
+
data = Twilio::Values.of({'Segment' => segment})
|
37
37
|
|
38
38
|
payload = @version.create(
|
39
39
|
'POST',
|
@@ -106,7 +106,7 @@ module Twilio
|
|
106
106
|
super(version)
|
107
107
|
|
108
108
|
# Path Solution
|
109
|
-
@solution = {service_sid: service_sid, identity: identity, segment: segment
|
109
|
+
@solution = {service_sid: service_sid, identity: identity, segment: segment}
|
110
110
|
@uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:identity]}/SegmentMemberships/#{@solution[:segment]}"
|
111
111
|
end
|
112
112
|
|
@@ -102,7 +102,7 @@ module Twilio
|
|
102
102
|
def stream(start_date: :unset, end_date: :unset, tag: :unset, limit: nil, page_size: nil)
|
103
103
|
limits = @version.read_limits(limit, page_size)
|
104
104
|
|
105
|
-
page = self.page(start_date: start_date, end_date: end_date, tag: tag, page_size: limits[:page_size]
|
105
|
+
page = self.page(start_date: start_date, end_date: end_date, tag: tag, page_size: limits[:page_size])
|
106
106
|
|
107
107
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
108
108
|
end
|
@@ -114,7 +114,7 @@ module Twilio
|
|
114
114
|
def each
|
115
115
|
limits = @version.read_limits
|
116
116
|
|
117
|
-
page = self.page(page_size: limits[:page_size]
|
117
|
+
page = self.page(page_size: limits[:page_size])
|
118
118
|
|
119
119
|
@version.stream(page,
|
120
120
|
limit: limits[:limit],
|
@@ -218,7 +218,7 @@ module Twilio
|
|
218
218
|
super(version)
|
219
219
|
|
220
220
|
# Path Solution
|
221
|
-
@solution = {service_sid: service_sid, identity: identity, sid: sid
|
221
|
+
@solution = {service_sid: service_sid, identity: identity, sid: sid}
|
222
222
|
@uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:identity]}/Bindings/#{@solution[:sid]}"
|
223
223
|
end
|
224
224
|
|
@@ -292,7 +292,7 @@ module Twilio
|
|
292
292
|
|
293
293
|
# Context
|
294
294
|
@instance_context = nil
|
295
|
-
@params = {'service_sid' => service_sid, 'identity' => identity, 'sid' => sid || @properties['sid']
|
295
|
+
@params = {'service_sid' => service_sid, 'identity' => identity, 'sid' => sid || @properties['sid']}
|
296
296
|
end
|
297
297
|
|
298
298
|
##
|
@@ -22,6 +22,7 @@ module Twilio
|
|
22
22
|
@hosted_numbers = nil
|
23
23
|
@marketplace = nil
|
24
24
|
@proxy = nil
|
25
|
+
@studio = nil
|
25
26
|
@acc_security = nil
|
26
27
|
@sync = nil
|
27
28
|
@understand = nil
|
@@ -58,6 +59,12 @@ module Twilio
|
|
58
59
|
@proxy ||= Proxy.new self
|
59
60
|
end
|
60
61
|
|
62
|
+
##
|
63
|
+
# Version studio of preview
|
64
|
+
def studio
|
65
|
+
@studio ||= Studio.new self
|
66
|
+
end
|
67
|
+
|
61
68
|
##
|
62
69
|
# Version acc_security of preview
|
63
70
|
def acc_security
|
@@ -150,6 +157,14 @@ module Twilio
|
|
150
157
|
self.understand.services(sid)
|
151
158
|
end
|
152
159
|
|
160
|
+
##
|
161
|
+
# @param [String] sid A 34 character string that uniquely identifies this Flow.
|
162
|
+
# @return [Twilio::REST::Preview::Studio::FlowInstance] if sid was passed.
|
163
|
+
# @return [Twilio::REST::Preview::Studio::FlowList]
|
164
|
+
def flows(sid=:unset)
|
165
|
+
self.studio.flows(sid)
|
166
|
+
end
|
167
|
+
|
153
168
|
##
|
154
169
|
# @param [String] sid The sid
|
155
170
|
# @return [Twilio::REST::Preview::Wireless::CommandInstance] if sid was passed.
|
@@ -18,7 +18,7 @@ module Twilio
|
|
18
18
|
|
19
19
|
##
|
20
20
|
# @param [String] sid The unique SID identifier of Verification Service Instance.
|
21
|
-
# @return [Twilio::REST::Preview::AccSecurity::
|
21
|
+
# @return [Twilio::REST::Preview::AccSecurity::ServiceContext] if sid was passed.
|
22
22
|
# @return [Twilio::REST::Preview::AccSecurity::ServiceList]
|
23
23
|
def services(sid=:unset)
|
24
24
|
if sid.nil?
|
@@ -31,7 +31,7 @@ module Twilio
|
|
31
31
|
# Must be an integer value between 4-10
|
32
32
|
# @return [ServiceInstance] Newly created ServiceInstance
|
33
33
|
def create(name: nil, code_length: :unset)
|
34
|
-
data = Twilio::Values.of({'Name' => name, 'CodeLength' => code_length
|
34
|
+
data = Twilio::Values.of({'Name' => name, 'CodeLength' => code_length})
|
35
35
|
|
36
36
|
payload = @version.create(
|
37
37
|
'POST',
|
@@ -39,7 +39,7 @@ module Twilio
|
|
39
39
|
data: data
|
40
40
|
)
|
41
41
|
|
42
|
-
ServiceInstance.new(@version, payload
|
42
|
+
ServiceInstance.new(@version, payload)
|
43
43
|
end
|
44
44
|
|
45
45
|
##
|
@@ -71,7 +71,7 @@ module Twilio
|
|
71
71
|
def stream(limit: nil, page_size: nil)
|
72
72
|
limits = @version.read_limits(limit, page_size)
|
73
73
|
|
74
|
-
page = self.page(page_size: limits[:page_size]
|
74
|
+
page = self.page(page_size: limits[:page_size])
|
75
75
|
|
76
76
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
77
77
|
end
|
@@ -83,7 +83,7 @@ module Twilio
|
|
83
83
|
def each
|
84
84
|
limits = @version.read_limits
|
85
85
|
|
86
|
-
page = self.page(page_size: limits[:page_size]
|
86
|
+
page = self.page(page_size: limits[:page_size])
|
87
87
|
|
88
88
|
@version.stream(page,
|
89
89
|
limit: limits[:limit],
|
@@ -152,7 +152,7 @@ module Twilio
|
|
152
152
|
# @param [Hash] payload Payload response from the API
|
153
153
|
# @return [ServiceInstance] ServiceInstance
|
154
154
|
def get_instance(payload)
|
155
|
-
ServiceInstance.new(@version, payload
|
155
|
+
ServiceInstance.new(@version, payload)
|
156
156
|
end
|
157
157
|
|
158
158
|
##
|
@@ -174,7 +174,7 @@ module Twilio
|
|
174
174
|
super(version)
|
175
175
|
|
176
176
|
# Path Solution
|
177
|
-
@solution = {sid: sid
|
177
|
+
@solution = {sid: sid}
|
178
178
|
@uri = "/Services/#{@solution[:sid]}"
|
179
179
|
|
180
180
|
# Dependents
|
@@ -194,7 +194,7 @@ module Twilio
|
|
194
194
|
params,
|
195
195
|
)
|
196
196
|
|
197
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid]
|
197
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid])
|
198
198
|
end
|
199
199
|
|
200
200
|
##
|
@@ -204,7 +204,7 @@ module Twilio
|
|
204
204
|
# Must be an integer value between 4-10
|
205
205
|
# @return [ServiceInstance] Updated ServiceInstance
|
206
206
|
def update(name: :unset, code_length: :unset)
|
207
|
-
data = Twilio::Values.of({'Name' => name, 'CodeLength' => code_length
|
207
|
+
data = Twilio::Values.of({'Name' => name, 'CodeLength' => code_length})
|
208
208
|
|
209
209
|
payload = @version.update(
|
210
210
|
'POST',
|
@@ -212,7 +212,7 @@ module Twilio
|
|
212
212
|
data: data,
|
213
213
|
)
|
214
214
|
|
215
|
-
ServiceInstance.new(@version, payload, sid: @solution[:sid]
|
215
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid])
|
216
216
|
end
|
217
217
|
|
218
218
|
##
|
@@ -221,7 +221,7 @@ module Twilio
|
|
221
221
|
# @return [VerificationContext]
|
222
222
|
def verifications
|
223
223
|
unless @verifications
|
224
|
-
@verifications = VerificationList.new(@version, service_sid: @solution[:sid]
|
224
|
+
@verifications = VerificationList.new(@version, service_sid: @solution[:sid])
|
225
225
|
end
|
226
226
|
|
227
227
|
@verifications
|
@@ -233,7 +233,7 @@ module Twilio
|
|
233
233
|
# @return [VerificationCheckContext]
|
234
234
|
def verification_checks
|
235
235
|
unless @verification_checks
|
236
|
-
@verification_checks = VerificationCheckList.new(@version, service_sid: @solution[:sid]
|
236
|
+
@verification_checks = VerificationCheckList.new(@version, service_sid: @solution[:sid])
|
237
237
|
end
|
238
238
|
|
239
239
|
@verification_checks
|
@@ -273,7 +273,7 @@ module Twilio
|
|
273
273
|
|
274
274
|
# Context
|
275
275
|
@instance_context = nil
|
276
|
-
@params = {'sid' => sid || @properties['sid']
|
276
|
+
@params = {'sid' => sid || @properties['sid']}
|
277
277
|
end
|
278
278
|
|
279
279
|
##
|
@@ -282,7 +282,7 @@ module Twilio
|
|
282
282
|
# @return [ServiceContext] ServiceContext for this ServiceInstance
|
283
283
|
def context
|
284
284
|
unless @instance_context
|
285
|
-
@instance_context = ServiceContext.new(@version, @params['sid']
|
285
|
+
@instance_context = ServiceContext.new(@version, @params['sid'])
|
286
286
|
end
|
287
287
|
@instance_context
|
288
288
|
end
|
@@ -349,7 +349,7 @@ module Twilio
|
|
349
349
|
# Must be an integer value between 4-10
|
350
350
|
# @return [ServiceInstance] Updated ServiceInstance
|
351
351
|
def update(name: :unset, code_length: :unset)
|
352
|
-
context.update(name: name, code_length: code_length
|
352
|
+
context.update(name: name, code_length: code_length)
|
353
353
|
end
|
354
354
|
|
355
355
|
##
|