twilio-ruby 5.4.2 → 5.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +3 -11
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +12 -44
- data/lib/twilio-ruby/rest/api/v2010/account.rb +52 -226
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -14
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +11 -50
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -67
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +8 -33
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +6 -26
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +4 -17
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -17
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +11 -48
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -23
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -43
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +11 -47
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -10
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +12 -49
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +13 -58
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -12
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -30
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +8 -30
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +16 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -27
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -42
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +5 -19
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -10
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +5 -19
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -49
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +8 -35
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +13 -51
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +8 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -60
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +6 -22
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +13 -51
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -26
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +4 -16
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +8 -31
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +5 -21
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +11 -43
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -11
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +9 -41
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -13
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/chat/v1/service.rb +17 -68
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +15 -73
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -29
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +8 -34
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +12 -53
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +10 -38
- data/lib/twilio-ruby/rest/chat/v2/service.rb +43 -68
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +344 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +14 -68
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +5 -21
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +5 -21
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +42 -53
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +361 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -46
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +9 -37
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +17 -68
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +15 -73
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -29
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +8 -34
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +12 -53
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +10 -38
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +43 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +344 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +14 -68
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +6 -25
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +5 -21
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +5 -21
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +13 -54
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +42 -53
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +361 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -14
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -30
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +16 -65
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +11 -45
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +6 -22
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -22
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +10 -38
- data/lib/twilio-ruby/rest/notify/v1/service.rb +16 -66
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -35
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -13
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +5 -18
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +12 -56
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +3 -12
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +5 -23
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +15 -58
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +4 -18
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +4 -17
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +6 -23
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -18
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -29
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +20 -81
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +13 -58
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +14 -60
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +11 -50
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +14 -62
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -38
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -31
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +10 -38
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +6 -21
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +13 -51
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +8 -27
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +17 -70
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +14 -70
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +3 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +3 -12
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +5 -19
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/preview/sync/service.rb +16 -65
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +15 -64
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +13 -57
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +8 -34
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +13 -57
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +9 -40
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -29
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -26
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +12 -46
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +8 -31
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +8 -31
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +4 -16
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +4 -16
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +6 -23
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +8 -29
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -19
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +17 -70
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +13 -64
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +3 -12
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +3 -12
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +5 -19
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +11 -45
- data/lib/twilio-ruby/rest/sync/v1/service.rb +18 -74
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +15 -64
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +13 -57
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -34
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +13 -57
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -40
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -29
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +11 -45
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +27 -115
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -56
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +7 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +10 -47
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +5 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +8 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +11 -48
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +3 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +17 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +5 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -27
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +14 -65
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +5 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +3 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +8 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -23
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +18 -74
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +11 -45
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +10 -39
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +11 -48
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +11 -45
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -22
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -46
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -30
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +9 -39
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +12 -46
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +9 -35
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +5 -22
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +4 -17
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +1 -3
- data/spec/integration/api/v2010/account/application_spec.rb +1 -3
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -6
- data/spec/integration/api/v2010/account/call_spec.rb +4 -11
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -4
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +1 -3
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +1 -3
- data/spec/integration/api/v2010/account/message_spec.rb +2 -6
- data/spec/integration/api/v2010/account/queue/member_spec.rb +1 -4
- data/spec/integration/api/v2010/account/queue_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +1 -4
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -6
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +1 -3
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +1 -4
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -6
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -3
- data/spec/integration/chat/v1/credential_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/member_spec.rb +1 -3
- data/spec/integration/chat/v1/service/channel/message_spec.rb +1 -3
- data/spec/integration/chat/v1/service/role_spec.rb +2 -8
- data/spec/integration/chat/v1/service/user_spec.rb +1 -3
- data/spec/integration/chat/v1/service_spec.rb +1 -3
- data/spec/integration/chat/v2/credential_spec.rb +1 -3
- data/spec/integration/chat/v2/service/binding_spec.rb +175 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +1 -3
- data/spec/integration/chat/v2/service/channel/member_spec.rb +1 -3
- data/spec/integration/chat/v2/service/role_spec.rb +2 -8
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +178 -0
- data/spec/integration/chat/v2/service/user_spec.rb +9 -7
- data/spec/integration/chat/v2/service_spec.rb +9 -7
- data/spec/integration/fax/v1/fax_spec.rb +1 -4
- data/spec/integration/ip_messaging/v1/credential_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -8
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +1 -3
- data/spec/integration/ip_messaging/v1/service_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/credential_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +175 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +1 -3
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -8
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +178 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +9 -7
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -7
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +1 -3
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +1 -3
- data/spec/integration/messaging/v1/service/short_code_spec.rb +1 -3
- data/spec/integration/messaging/v1/service_spec.rb +1 -3
- data/spec/integration/notify/v1/credential_spec.rb +1 -3
- data/spec/integration/notify/v1/service/binding_spec.rb +1 -5
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +1 -3
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +1 -4
- data/spec/integration/notify/v1/service/user_spec.rb +1 -3
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +1 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +1 -4
- data/spec/integration/preview/acc_security/service_spec.rb +1 -3
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +1 -3
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +1 -5
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +1 -3
- data/spec/integration/preview/proxy/service/short_code_spec.rb +1 -3
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +1 -5
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -6
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +1 -5
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -7
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +1 -5
- data/spec/integration/preview/wireless/command_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +1 -3
- data/spec/integration/proxy/v1/service/short_code_spec.rb +1 -3
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -6
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -7
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +1 -5
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +1 -4
- data/spec/integration/taskrouter/v1/workspace_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +1 -3
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +1 -3
- data/spec/integration/video/v1/room_spec.rb +1 -3
- data/spec/integration/wireless/v1/command_spec.rb +1 -3
- metadata +14 -2
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
@uri = "/Accounts/#{@solution[:account_sid]}/Conferences.json"
|
27
25
|
end
|
28
26
|
|
@@ -108,9 +106,7 @@ module Twilio
|
|
108
106
|
def each
|
109
107
|
limits = @version.read_limits
|
110
108
|
|
111
|
-
page = self.page(
|
112
|
-
page_size: limits[:page_size],
|
113
|
-
)
|
109
|
+
page = self.page(page_size: limits[:page_size],)
|
114
110
|
|
115
111
|
@version.stream(page,
|
116
112
|
limit: limits[:limit],
|
@@ -195,11 +191,7 @@ module Twilio
|
|
195
191
|
# @param [Hash] payload Payload response from the API
|
196
192
|
# @return [ConferenceInstance] ConferenceInstance
|
197
193
|
def get_instance(payload)
|
198
|
-
ConferenceInstance.new(
|
199
|
-
@version,
|
200
|
-
payload,
|
201
|
-
account_sid: @solution[:account_sid],
|
202
|
-
)
|
194
|
+
ConferenceInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
203
195
|
end
|
204
196
|
|
205
197
|
##
|
@@ -220,10 +212,7 @@ module Twilio
|
|
220
212
|
super(version)
|
221
213
|
|
222
214
|
# Path Solution
|
223
|
-
@solution = {
|
224
|
-
account_sid: account_sid,
|
225
|
-
sid: sid,
|
226
|
-
}
|
215
|
+
@solution = {account_sid: account_sid, sid: sid,}
|
227
216
|
@uri = "/Accounts/#{@solution[:account_sid]}/Conferences/#{@solution[:sid]}.json"
|
228
217
|
|
229
218
|
# Dependents
|
@@ -242,12 +231,7 @@ module Twilio
|
|
242
231
|
params,
|
243
232
|
)
|
244
233
|
|
245
|
-
ConferenceInstance.new(
|
246
|
-
@version,
|
247
|
-
payload,
|
248
|
-
account_sid: @solution[:account_sid],
|
249
|
-
sid: @solution[:sid],
|
250
|
-
)
|
234
|
+
ConferenceInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
|
251
235
|
end
|
252
236
|
|
253
237
|
##
|
@@ -255,9 +239,7 @@ module Twilio
|
|
255
239
|
# @param [conference.UpdateStatus] status The status
|
256
240
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
257
241
|
def update(status: :unset)
|
258
|
-
data = Twilio::Values.of({
|
259
|
-
'Status' => status,
|
260
|
-
})
|
242
|
+
data = Twilio::Values.of({'Status' => status,})
|
261
243
|
|
262
244
|
payload = @version.update(
|
263
245
|
'POST',
|
@@ -265,12 +247,7 @@ module Twilio
|
|
265
247
|
data: data,
|
266
248
|
)
|
267
249
|
|
268
|
-
ConferenceInstance.new(
|
269
|
-
@version,
|
270
|
-
payload,
|
271
|
-
account_sid: @solution[:account_sid],
|
272
|
-
sid: @solution[:sid],
|
273
|
-
)
|
250
|
+
ConferenceInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
|
274
251
|
end
|
275
252
|
|
276
253
|
##
|
@@ -281,12 +258,7 @@ module Twilio
|
|
281
258
|
raise ArgumentError, 'call_sid cannot be nil' if call_sid.nil?
|
282
259
|
|
283
260
|
if call_sid != :unset
|
284
|
-
return ParticipantContext.new(
|
285
|
-
@version,
|
286
|
-
@solution[:account_sid],
|
287
|
-
@solution[:sid],
|
288
|
-
call_sid,
|
289
|
-
)
|
261
|
+
return ParticipantContext.new(@version, @solution[:account_sid], @solution[:sid], call_sid,)
|
290
262
|
end
|
291
263
|
|
292
264
|
unless @participants
|
@@ -336,10 +308,7 @@ module Twilio
|
|
336
308
|
|
337
309
|
# Context
|
338
310
|
@instance_context = nil
|
339
|
-
@params = {
|
340
|
-
'account_sid' => account_sid,
|
341
|
-
'sid' => sid || @properties['sid'],
|
342
|
-
}
|
311
|
+
@params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
|
343
312
|
end
|
344
313
|
|
345
314
|
##
|
@@ -348,11 +317,7 @@ module Twilio
|
|
348
317
|
# @return [ConferenceContext] ConferenceContext for this ConferenceInstance
|
349
318
|
def context
|
350
319
|
unless @instance_context
|
351
|
-
@instance_context = ConferenceContext.new(
|
352
|
-
@version,
|
353
|
-
@params['account_sid'],
|
354
|
-
@params['sid'],
|
355
|
-
)
|
320
|
+
@instance_context = ConferenceContext.new(@version, @params['account_sid'], @params['sid'],)
|
356
321
|
end
|
357
322
|
@instance_context
|
358
323
|
end
|
@@ -429,9 +394,7 @@ module Twilio
|
|
429
394
|
# @param [conference.UpdateStatus] status The status
|
430
395
|
# @return [ConferenceInstance] Updated ConferenceInstance
|
431
396
|
def update(status: :unset)
|
432
|
-
context.update(
|
433
|
-
status: status,
|
434
|
-
)
|
397
|
+
context.update(status: status,)
|
435
398
|
end
|
436
399
|
|
437
400
|
##
|
@@ -23,10 +23,7 @@ module Twilio
|
|
23
23
|
super(version)
|
24
24
|
|
25
25
|
# Path Solution
|
26
|
-
@solution = {
|
27
|
-
account_sid: account_sid,
|
28
|
-
conference_sid: conference_sid
|
29
|
-
}
|
26
|
+
@solution = {account_sid: account_sid, conference_sid: conference_sid}
|
30
27
|
@uri = "/Accounts/#{@solution[:account_sid]}/Conferences/#{@solution[:conference_sid]}/Participants.json"
|
31
28
|
end
|
32
29
|
|
@@ -127,12 +124,7 @@ module Twilio
|
|
127
124
|
# efficient page size, i.e. min(limit, 1000)
|
128
125
|
# @return [Array] Array of up to limit results
|
129
126
|
def list(muted: :unset, hold: :unset, limit: nil, page_size: nil)
|
130
|
-
self.stream(
|
131
|
-
muted: muted,
|
132
|
-
hold: hold,
|
133
|
-
limit: limit,
|
134
|
-
page_size: page_size
|
135
|
-
).entries
|
127
|
+
self.stream(muted: muted, hold: hold, limit: limit, page_size: page_size).entries
|
136
128
|
end
|
137
129
|
|
138
130
|
##
|
@@ -151,11 +143,7 @@ module Twilio
|
|
151
143
|
def stream(muted: :unset, hold: :unset, limit: nil, page_size: nil)
|
152
144
|
limits = @version.read_limits(limit, page_size)
|
153
145
|
|
154
|
-
page = self.page(
|
155
|
-
muted: muted,
|
156
|
-
hold: hold,
|
157
|
-
page_size: limits[:page_size],
|
158
|
-
)
|
146
|
+
page = self.page(muted: muted, hold: hold, page_size: limits[:page_size],)
|
159
147
|
|
160
148
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
161
149
|
end
|
@@ -167,9 +155,7 @@ module Twilio
|
|
167
155
|
def each
|
168
156
|
limits = @version.read_limits
|
169
157
|
|
170
|
-
page = self.page(
|
171
|
-
page_size: limits[:page_size],
|
172
|
-
)
|
158
|
+
page = self.page(page_size: limits[:page_size],)
|
173
159
|
|
174
160
|
@version.stream(page,
|
175
161
|
limit: limits[:limit],
|
@@ -268,11 +254,7 @@ module Twilio
|
|
268
254
|
super(version)
|
269
255
|
|
270
256
|
# Path Solution
|
271
|
-
@solution = {
|
272
|
-
account_sid: account_sid,
|
273
|
-
conference_sid: conference_sid,
|
274
|
-
call_sid: call_sid,
|
275
|
-
}
|
257
|
+
@solution = {account_sid: account_sid, conference_sid: conference_sid, call_sid: call_sid,}
|
276
258
|
@uri = "/Accounts/#{@solution[:account_sid]}/Conferences/#{@solution[:conference_sid]}/Participants/#{@solution[:call_sid]}.json"
|
277
259
|
end
|
278
260
|
|
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
@uri = "/Accounts/#{@solution[:account_sid]}/ConnectApps.json"
|
27
25
|
end
|
28
26
|
|
@@ -38,10 +36,7 @@ module Twilio
|
|
38
36
|
# efficient page size, i.e. min(limit, 1000)
|
39
37
|
# @return [Array] Array of up to limit results
|
40
38
|
def list(limit: nil, page_size: nil)
|
41
|
-
self.stream(
|
42
|
-
limit: limit,
|
43
|
-
page_size: page_size
|
44
|
-
).entries
|
39
|
+
self.stream(limit: limit, page_size: page_size).entries
|
45
40
|
end
|
46
41
|
|
47
42
|
##
|
@@ -58,9 +53,7 @@ module Twilio
|
|
58
53
|
def stream(limit: nil, page_size: nil)
|
59
54
|
limits = @version.read_limits(limit, page_size)
|
60
55
|
|
61
|
-
page = self.page(
|
62
|
-
page_size: limits[:page_size],
|
63
|
-
)
|
56
|
+
page = self.page(page_size: limits[:page_size],)
|
64
57
|
|
65
58
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
66
59
|
end
|
@@ -72,9 +65,7 @@ module Twilio
|
|
72
65
|
def each
|
73
66
|
limits = @version.read_limits
|
74
67
|
|
75
|
-
page = self.page(
|
76
|
-
page_size: limits[:page_size],
|
77
|
-
)
|
68
|
+
page = self.page(page_size: limits[:page_size],)
|
78
69
|
|
79
70
|
@version.stream(page,
|
80
71
|
limit: limits[:limit],
|
@@ -141,11 +132,7 @@ module Twilio
|
|
141
132
|
# @param [Hash] payload Payload response from the API
|
142
133
|
# @return [ConnectAppInstance] ConnectAppInstance
|
143
134
|
def get_instance(payload)
|
144
|
-
ConnectAppInstance.new(
|
145
|
-
@version,
|
146
|
-
payload,
|
147
|
-
account_sid: @solution[:account_sid],
|
148
|
-
)
|
135
|
+
ConnectAppInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
149
136
|
end
|
150
137
|
|
151
138
|
##
|
@@ -166,10 +153,7 @@ module Twilio
|
|
166
153
|
super(version)
|
167
154
|
|
168
155
|
# Path Solution
|
169
|
-
@solution = {
|
170
|
-
account_sid: account_sid,
|
171
|
-
sid: sid,
|
172
|
-
}
|
156
|
+
@solution = {account_sid: account_sid, sid: sid,}
|
173
157
|
@uri = "/Accounts/#{@solution[:account_sid]}/ConnectApps/#{@solution[:sid]}.json"
|
174
158
|
end
|
175
159
|
|
@@ -185,12 +169,7 @@ module Twilio
|
|
185
169
|
params,
|
186
170
|
)
|
187
171
|
|
188
|
-
ConnectAppInstance.new(
|
189
|
-
@version,
|
190
|
-
payload,
|
191
|
-
account_sid: @solution[:account_sid],
|
192
|
-
sid: @solution[:sid],
|
193
|
-
)
|
172
|
+
ConnectAppInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
|
194
173
|
end
|
195
174
|
|
196
175
|
##
|
@@ -229,12 +208,7 @@ module Twilio
|
|
229
208
|
data: data,
|
230
209
|
)
|
231
210
|
|
232
|
-
ConnectAppInstance.new(
|
233
|
-
@version,
|
234
|
-
payload,
|
235
|
-
account_sid: @solution[:account_sid],
|
236
|
-
sid: @solution[:sid],
|
237
|
-
)
|
211
|
+
ConnectAppInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
|
238
212
|
end
|
239
213
|
|
240
214
|
##
|
@@ -274,10 +248,7 @@ module Twilio
|
|
274
248
|
|
275
249
|
# Context
|
276
250
|
@instance_context = nil
|
277
|
-
@params = {
|
278
|
-
'account_sid' => account_sid,
|
279
|
-
'sid' => sid || @properties['sid'],
|
280
|
-
}
|
251
|
+
@params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
|
281
252
|
end
|
282
253
|
|
283
254
|
##
|
@@ -286,11 +257,7 @@ module Twilio
|
|
286
257
|
# @return [ConnectAppContext] ConnectAppContext for this ConnectAppInstance
|
287
258
|
def context
|
288
259
|
unless @instance_context
|
289
|
-
@instance_context = ConnectAppContext.new(
|
290
|
-
@version,
|
291
|
-
@params['account_sid'],
|
292
|
-
@params['sid'],
|
293
|
-
)
|
260
|
+
@instance_context = ConnectAppContext.new(@version, @params['account_sid'], @params['sid'],)
|
294
261
|
end
|
295
262
|
@instance_context
|
296
263
|
end
|
@@ -20,9 +20,7 @@ module Twilio
|
|
20
20
|
super(version)
|
21
21
|
|
22
22
|
# Path Solution
|
23
|
-
@solution = {
|
24
|
-
account_sid: account_sid
|
25
|
-
}
|
23
|
+
@solution = {account_sid: account_sid}
|
26
24
|
@uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers.json"
|
27
25
|
|
28
26
|
# Components
|
@@ -97,9 +95,7 @@ module Twilio
|
|
97
95
|
def each
|
98
96
|
limits = @version.read_limits
|
99
97
|
|
100
|
-
page = self.page(
|
101
|
-
page_size: limits[:page_size],
|
102
|
-
)
|
98
|
+
page = self.page(page_size: limits[:page_size],)
|
103
99
|
|
104
100
|
@version.stream(page,
|
105
101
|
limit: limits[:limit],
|
@@ -241,11 +237,7 @@ module Twilio
|
|
241
237
|
data: data
|
242
238
|
)
|
243
239
|
|
244
|
-
IncomingPhoneNumberInstance.new(
|
245
|
-
@version,
|
246
|
-
payload,
|
247
|
-
account_sid: @solution[:account_sid],
|
248
|
-
)
|
240
|
+
IncomingPhoneNumberInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
249
241
|
end
|
250
242
|
|
251
243
|
##
|
@@ -253,10 +245,7 @@ module Twilio
|
|
253
245
|
# @return [LocalList]
|
254
246
|
# @return [LocalContext]
|
255
247
|
def local
|
256
|
-
@local ||= LocalList.new(
|
257
|
-
@version,
|
258
|
-
account_sid: @solution[:account_sid],
|
259
|
-
)
|
248
|
+
@local ||= LocalList.new(@version, account_sid: @solution[:account_sid],)
|
260
249
|
end
|
261
250
|
|
262
251
|
##
|
@@ -264,10 +253,7 @@ module Twilio
|
|
264
253
|
# @return [MobileList]
|
265
254
|
# @return [MobileContext]
|
266
255
|
def mobile
|
267
|
-
@mobile ||= MobileList.new(
|
268
|
-
@version,
|
269
|
-
account_sid: @solution[:account_sid],
|
270
|
-
)
|
256
|
+
@mobile ||= MobileList.new(@version, account_sid: @solution[:account_sid],)
|
271
257
|
end
|
272
258
|
|
273
259
|
##
|
@@ -275,10 +261,7 @@ module Twilio
|
|
275
261
|
# @return [TollFreeList]
|
276
262
|
# @return [TollFreeContext]
|
277
263
|
def toll_free
|
278
|
-
@toll_free ||= TollFreeList.new(
|
279
|
-
@version,
|
280
|
-
account_sid: @solution[:account_sid],
|
281
|
-
)
|
264
|
+
@toll_free ||= TollFreeList.new(@version, account_sid: @solution[:account_sid],)
|
282
265
|
end
|
283
266
|
|
284
267
|
##
|
@@ -307,11 +290,7 @@ module Twilio
|
|
307
290
|
# @param [Hash] payload Payload response from the API
|
308
291
|
# @return [IncomingPhoneNumberInstance] IncomingPhoneNumberInstance
|
309
292
|
def get_instance(payload)
|
310
|
-
IncomingPhoneNumberInstance.new(
|
311
|
-
@version,
|
312
|
-
payload,
|
313
|
-
account_sid: @solution[:account_sid],
|
314
|
-
)
|
293
|
+
IncomingPhoneNumberInstance.new(@version, payload, account_sid: @solution[:account_sid],)
|
315
294
|
end
|
316
295
|
|
317
296
|
##
|
@@ -333,10 +312,7 @@ module Twilio
|
|
333
312
|
super(version)
|
334
313
|
|
335
314
|
# Path Solution
|
336
|
-
@solution = {
|
337
|
-
account_sid: account_sid,
|
338
|
-
sid: sid,
|
339
|
-
}
|
315
|
+
@solution = {account_sid: account_sid, sid: sid,}
|
340
316
|
@uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers/#{@solution[:sid]}.json"
|
341
317
|
|
342
318
|
# Dependents
|
@@ -476,12 +452,7 @@ module Twilio
|
|
476
452
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
477
453
|
|
478
454
|
if sid != :unset
|
479
|
-
return AssignedAddOnContext.new(
|
480
|
-
@version,
|
481
|
-
@solution[:account_sid],
|
482
|
-
@solution[:sid],
|
483
|
-
sid,
|
484
|
-
)
|
455
|
+
return AssignedAddOnContext.new(@version, @solution[:account_sid], @solution[:sid], sid,)
|
485
456
|
end
|
486
457
|
|
487
458
|
unless @assigned_add_ons
|
@@ -552,10 +523,7 @@ module Twilio
|
|
552
523
|
|
553
524
|
# Context
|
554
525
|
@instance_context = nil
|
555
|
-
@params = {
|
556
|
-
'account_sid' => account_sid,
|
557
|
-
'sid' => sid || @properties['sid'],
|
558
|
-
}
|
526
|
+
@params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],}
|
559
527
|
end
|
560
528
|
|
561
529
|
##
|
@@ -564,11 +532,7 @@ module Twilio
|
|
564
532
|
# @return [IncomingPhoneNumberContext] IncomingPhoneNumberContext for this IncomingPhoneNumberInstance
|
565
533
|
def context
|
566
534
|
unless @instance_context
|
567
|
-
@instance_context = IncomingPhoneNumberContext.new(
|
568
|
-
@version,
|
569
|
-
@params['account_sid'],
|
570
|
-
@params['sid'],
|
571
|
-
)
|
535
|
+
@instance_context = IncomingPhoneNumberContext.new(@version, @params['account_sid'], @params['sid'],)
|
572
536
|
end
|
573
537
|
@instance_context
|
574
538
|
end
|
@@ -25,10 +25,7 @@ module Twilio
|
|
25
25
|
super(version)
|
26
26
|
|
27
27
|
# Path Solution
|
28
|
-
@solution = {
|
29
|
-
account_sid: account_sid,
|
30
|
-
resource_sid: resource_sid
|
31
|
-
}
|
28
|
+
@solution = {account_sid: account_sid, resource_sid: resource_sid}
|
32
29
|
@uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers/#{@solution[:resource_sid]}/AssignedAddOns.json"
|
33
30
|
end
|
34
31
|
|
@@ -44,10 +41,7 @@ module Twilio
|
|
44
41
|
# efficient page size, i.e. min(limit, 1000)
|
45
42
|
# @return [Array] Array of up to limit results
|
46
43
|
def list(limit: nil, page_size: nil)
|
47
|
-
self.stream(
|
48
|
-
limit: limit,
|
49
|
-
page_size: page_size
|
50
|
-
).entries
|
44
|
+
self.stream(limit: limit, page_size: page_size).entries
|
51
45
|
end
|
52
46
|
|
53
47
|
##
|
@@ -64,9 +58,7 @@ module Twilio
|
|
64
58
|
def stream(limit: nil, page_size: nil)
|
65
59
|
limits = @version.read_limits(limit, page_size)
|
66
60
|
|
67
|
-
page = self.page(
|
68
|
-
page_size: limits[:page_size],
|
69
|
-
)
|
61
|
+
page = self.page(page_size: limits[:page_size],)
|
70
62
|
|
71
63
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
72
64
|
end
|
@@ -78,9 +70,7 @@ module Twilio
|
|
78
70
|
def each
|
79
71
|
limits = @version.read_limits
|
80
72
|
|
81
|
-
page = self.page(
|
82
|
-
page_size: limits[:page_size],
|
83
|
-
)
|
73
|
+
page = self.page(page_size: limits[:page_size],)
|
84
74
|
|
85
75
|
@version.stream(page,
|
86
76
|
limit: limits[:limit],
|
@@ -128,9 +118,7 @@ module Twilio
|
|
128
118
|
# identifies the Add-on installation.
|
129
119
|
# @return [AssignedAddOnInstance] Newly created AssignedAddOnInstance
|
130
120
|
def create(installed_add_on_sid: nil)
|
131
|
-
data = Twilio::Values.of({
|
132
|
-
'InstalledAddOnSid' => installed_add_on_sid,
|
133
|
-
})
|
121
|
+
data = Twilio::Values.of({'InstalledAddOnSid' => installed_add_on_sid,})
|
134
122
|
|
135
123
|
payload = @version.create(
|
136
124
|
'POST',
|
@@ -204,11 +192,7 @@ module Twilio
|
|
204
192
|
super(version)
|
205
193
|
|
206
194
|
# Path Solution
|
207
|
-
@solution = {
|
208
|
-
account_sid: account_sid,
|
209
|
-
resource_sid: resource_sid,
|
210
|
-
sid: sid,
|
211
|
-
}
|
195
|
+
@solution = {account_sid: account_sid, resource_sid: resource_sid, sid: sid,}
|
212
196
|
@uri = "/Accounts/#{@solution[:account_sid]}/IncomingPhoneNumbers/#{@solution[:resource_sid]}/AssignedAddOns/#{@solution[:sid]}.json"
|
213
197
|
|
214
198
|
# Dependents
|