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
@@ -22,9 +22,7 @@ module Twilio
|
|
22
22
|
super(version)
|
23
23
|
|
24
24
|
# Path Solution
|
25
|
-
@solution = {
|
26
|
-
fax_sid: fax_sid
|
27
|
-
}
|
25
|
+
@solution = {fax_sid: fax_sid}
|
28
26
|
@uri = "/Faxes/#{@solution[:fax_sid]}/Media"
|
29
27
|
end
|
30
28
|
|
@@ -40,10 +38,7 @@ module Twilio
|
|
40
38
|
# efficient page size, i.e. min(limit, 1000)
|
41
39
|
# @return [Array] Array of up to limit results
|
42
40
|
def list(limit: nil, page_size: nil)
|
43
|
-
self.stream(
|
44
|
-
limit: limit,
|
45
|
-
page_size: page_size
|
46
|
-
).entries
|
41
|
+
self.stream(limit: limit, page_size: page_size).entries
|
47
42
|
end
|
48
43
|
|
49
44
|
##
|
@@ -60,9 +55,7 @@ module Twilio
|
|
60
55
|
def stream(limit: nil, page_size: nil)
|
61
56
|
limits = @version.read_limits(limit, page_size)
|
62
57
|
|
63
|
-
page = self.page(
|
64
|
-
page_size: limits[:page_size],
|
65
|
-
)
|
58
|
+
page = self.page(page_size: limits[:page_size],)
|
66
59
|
|
67
60
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
68
61
|
end
|
@@ -74,9 +67,7 @@ module Twilio
|
|
74
67
|
def each
|
75
68
|
limits = @version.read_limits
|
76
69
|
|
77
|
-
page = self.page(
|
78
|
-
page_size: limits[:page_size],
|
79
|
-
)
|
70
|
+
page = self.page(page_size: limits[:page_size],)
|
80
71
|
|
81
72
|
@version.stream(page,
|
82
73
|
limit: limits[:limit],
|
@@ -145,11 +136,7 @@ module Twilio
|
|
145
136
|
# @param [Hash] payload Payload response from the API
|
146
137
|
# @return [FaxMediaInstance] FaxMediaInstance
|
147
138
|
def get_instance(payload)
|
148
|
-
FaxMediaInstance.new(
|
149
|
-
@version,
|
150
|
-
payload,
|
151
|
-
fax_sid: @solution[:fax_sid],
|
152
|
-
)
|
139
|
+
FaxMediaInstance.new(@version, payload, fax_sid: @solution[:fax_sid],)
|
153
140
|
end
|
154
141
|
|
155
142
|
##
|
@@ -173,10 +160,7 @@ module Twilio
|
|
173
160
|
super(version)
|
174
161
|
|
175
162
|
# Path Solution
|
176
|
-
@solution = {
|
177
|
-
fax_sid: fax_sid,
|
178
|
-
sid: sid,
|
179
|
-
}
|
163
|
+
@solution = {fax_sid: fax_sid, sid: sid,}
|
180
164
|
@uri = "/Faxes/#{@solution[:fax_sid]}/Media/#{@solution[:sid]}"
|
181
165
|
end
|
182
166
|
|
@@ -192,12 +176,7 @@ module Twilio
|
|
192
176
|
params,
|
193
177
|
)
|
194
178
|
|
195
|
-
FaxMediaInstance.new(
|
196
|
-
@version,
|
197
|
-
payload,
|
198
|
-
fax_sid: @solution[:fax_sid],
|
199
|
-
sid: @solution[:sid],
|
200
|
-
)
|
179
|
+
FaxMediaInstance.new(@version, payload, fax_sid: @solution[:fax_sid], sid: @solution[:sid],)
|
201
180
|
end
|
202
181
|
|
203
182
|
##
|
@@ -243,10 +222,7 @@ module Twilio
|
|
243
222
|
|
244
223
|
# Context
|
245
224
|
@instance_context = nil
|
246
|
-
@params = {
|
247
|
-
'fax_sid' => fax_sid,
|
248
|
-
'sid' => sid || @properties['sid'],
|
249
|
-
}
|
225
|
+
@params = {'fax_sid' => fax_sid, 'sid' => sid || @properties['sid'],}
|
250
226
|
end
|
251
227
|
|
252
228
|
##
|
@@ -255,11 +231,7 @@ module Twilio
|
|
255
231
|
# @return [FaxMediaContext] FaxMediaContext for this FaxMediaInstance
|
256
232
|
def context
|
257
233
|
unless @instance_context
|
258
|
-
@instance_context = FaxMediaContext.new(
|
259
|
-
@version,
|
260
|
-
@params['fax_sid'],
|
261
|
-
@params['sid'],
|
262
|
-
)
|
234
|
+
@instance_context = FaxMediaContext.new(@version, @params['fax_sid'], @params['sid'],)
|
263
235
|
end
|
264
236
|
@instance_context
|
265
237
|
end
|
@@ -33,10 +33,7 @@ module Twilio
|
|
33
33
|
# efficient page size, i.e. min(limit, 1000)
|
34
34
|
# @return [Array] Array of up to limit results
|
35
35
|
def list(limit: nil, page_size: nil)
|
36
|
-
self.stream(
|
37
|
-
limit: limit,
|
38
|
-
page_size: page_size
|
39
|
-
).entries
|
36
|
+
self.stream(limit: limit, page_size: page_size).entries
|
40
37
|
end
|
41
38
|
|
42
39
|
##
|
@@ -53,9 +50,7 @@ module Twilio
|
|
53
50
|
def stream(limit: nil, page_size: nil)
|
54
51
|
limits = @version.read_limits(limit, page_size)
|
55
52
|
|
56
|
-
page = self.page(
|
57
|
-
page_size: limits[:page_size],
|
58
|
-
)
|
53
|
+
page = self.page(page_size: limits[:page_size],)
|
59
54
|
|
60
55
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
61
56
|
end
|
@@ -67,9 +62,7 @@ module Twilio
|
|
67
62
|
def each
|
68
63
|
limits = @version.read_limits
|
69
64
|
|
70
|
-
page = self.page(
|
71
|
-
page_size: limits[:page_size],
|
72
|
-
)
|
65
|
+
page = self.page(page_size: limits[:page_size],)
|
73
66
|
|
74
67
|
@version.stream(page,
|
75
68
|
limit: limits[:limit],
|
@@ -138,10 +131,7 @@ module Twilio
|
|
138
131
|
data: data
|
139
132
|
)
|
140
133
|
|
141
|
-
CredentialInstance.new(
|
142
|
-
@version,
|
143
|
-
payload,
|
144
|
-
)
|
134
|
+
CredentialInstance.new(@version, payload,)
|
145
135
|
end
|
146
136
|
|
147
137
|
##
|
@@ -170,10 +160,7 @@ module Twilio
|
|
170
160
|
# @param [Hash] payload Payload response from the API
|
171
161
|
# @return [CredentialInstance] CredentialInstance
|
172
162
|
def get_instance(payload)
|
173
|
-
CredentialInstance.new(
|
174
|
-
@version,
|
175
|
-
payload,
|
176
|
-
)
|
163
|
+
CredentialInstance.new(@version, payload,)
|
177
164
|
end
|
178
165
|
|
179
166
|
##
|
@@ -193,9 +180,7 @@ module Twilio
|
|
193
180
|
super(version)
|
194
181
|
|
195
182
|
# Path Solution
|
196
|
-
@solution = {
|
197
|
-
sid: sid,
|
198
|
-
}
|
183
|
+
@solution = {sid: sid,}
|
199
184
|
@uri = "/Credentials/#{@solution[:sid]}"
|
200
185
|
end
|
201
186
|
|
@@ -211,11 +196,7 @@ module Twilio
|
|
211
196
|
params,
|
212
197
|
)
|
213
198
|
|
214
|
-
CredentialInstance.new(
|
215
|
-
@version,
|
216
|
-
payload,
|
217
|
-
sid: @solution[:sid],
|
218
|
-
)
|
199
|
+
CredentialInstance.new(@version, payload, sid: @solution[:sid],)
|
219
200
|
end
|
220
201
|
|
221
202
|
##
|
@@ -243,11 +224,7 @@ module Twilio
|
|
243
224
|
data: data,
|
244
225
|
)
|
245
226
|
|
246
|
-
CredentialInstance.new(
|
247
|
-
@version,
|
248
|
-
payload,
|
249
|
-
sid: @solution[:sid],
|
250
|
-
)
|
227
|
+
CredentialInstance.new(@version, payload, sid: @solution[:sid],)
|
251
228
|
end
|
252
229
|
|
253
230
|
##
|
@@ -289,9 +266,7 @@ module Twilio
|
|
289
266
|
|
290
267
|
# Context
|
291
268
|
@instance_context = nil
|
292
|
-
@params = {
|
293
|
-
'sid' => sid || @properties['sid'],
|
294
|
-
}
|
269
|
+
@params = {'sid' => sid || @properties['sid'],}
|
295
270
|
end
|
296
271
|
|
297
272
|
##
|
@@ -300,10 +275,7 @@ module Twilio
|
|
300
275
|
# @return [CredentialContext] CredentialContext for this CredentialInstance
|
301
276
|
def context
|
302
277
|
unless @instance_context
|
303
|
-
@instance_context = CredentialContext.new(
|
304
|
-
@version,
|
305
|
-
@params['sid'],
|
306
|
-
)
|
278
|
+
@instance_context = CredentialContext.new(@version, @params['sid'],)
|
307
279
|
end
|
308
280
|
@instance_context
|
309
281
|
end
|
@@ -27,9 +27,7 @@ module Twilio
|
|
27
27
|
# @param [String] friendly_name The friendly_name
|
28
28
|
# @return [ServiceInstance] Newly created ServiceInstance
|
29
29
|
def create(friendly_name: nil)
|
30
|
-
data = Twilio::Values.of({
|
31
|
-
'FriendlyName' => friendly_name,
|
32
|
-
})
|
30
|
+
data = Twilio::Values.of({'FriendlyName' => friendly_name,})
|
33
31
|
|
34
32
|
payload = @version.create(
|
35
33
|
'POST',
|
@@ -37,10 +35,7 @@ module Twilio
|
|
37
35
|
data: data
|
38
36
|
)
|
39
37
|
|
40
|
-
ServiceInstance.new(
|
41
|
-
@version,
|
42
|
-
payload,
|
43
|
-
)
|
38
|
+
ServiceInstance.new(@version, payload,)
|
44
39
|
end
|
45
40
|
|
46
41
|
##
|
@@ -55,10 +50,7 @@ module Twilio
|
|
55
50
|
# efficient page size, i.e. min(limit, 1000)
|
56
51
|
# @return [Array] Array of up to limit results
|
57
52
|
def list(limit: nil, page_size: nil)
|
58
|
-
self.stream(
|
59
|
-
limit: limit,
|
60
|
-
page_size: page_size
|
61
|
-
).entries
|
53
|
+
self.stream(limit: limit, page_size: page_size).entries
|
62
54
|
end
|
63
55
|
|
64
56
|
##
|
@@ -75,9 +67,7 @@ module Twilio
|
|
75
67
|
def stream(limit: nil, page_size: nil)
|
76
68
|
limits = @version.read_limits(limit, page_size)
|
77
69
|
|
78
|
-
page = self.page(
|
79
|
-
page_size: limits[:page_size],
|
80
|
-
)
|
70
|
+
page = self.page(page_size: limits[:page_size],)
|
81
71
|
|
82
72
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
83
73
|
end
|
@@ -89,9 +79,7 @@ module Twilio
|
|
89
79
|
def each
|
90
80
|
limits = @version.read_limits
|
91
81
|
|
92
|
-
page = self.page(
|
93
|
-
page_size: limits[:page_size],
|
94
|
-
)
|
82
|
+
page = self.page(page_size: limits[:page_size],)
|
95
83
|
|
96
84
|
@version.stream(page,
|
97
85
|
limit: limits[:limit],
|
@@ -158,10 +146,7 @@ module Twilio
|
|
158
146
|
# @param [Hash] payload Payload response from the API
|
159
147
|
# @return [ServiceInstance] ServiceInstance
|
160
148
|
def get_instance(payload)
|
161
|
-
ServiceInstance.new(
|
162
|
-
@version,
|
163
|
-
payload,
|
164
|
-
)
|
149
|
+
ServiceInstance.new(@version, payload,)
|
165
150
|
end
|
166
151
|
|
167
152
|
##
|
@@ -181,9 +166,7 @@ module Twilio
|
|
181
166
|
super(version)
|
182
167
|
|
183
168
|
# Path Solution
|
184
|
-
@solution = {
|
185
|
-
sid: sid,
|
186
|
-
}
|
169
|
+
@solution = {sid: sid,}
|
187
170
|
@uri = "/Services/#{@solution[:sid]}"
|
188
171
|
|
189
172
|
# Dependents
|
@@ -204,11 +187,7 @@ module Twilio
|
|
204
187
|
params,
|
205
188
|
)
|
206
189
|
|
207
|
-
ServiceInstance.new(
|
208
|
-
@version,
|
209
|
-
payload,
|
210
|
-
sid: @solution[:sid],
|
211
|
-
)
|
190
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid],)
|
212
191
|
end
|
213
192
|
|
214
193
|
##
|
@@ -419,11 +398,7 @@ module Twilio
|
|
419
398
|
data: data,
|
420
399
|
)
|
421
400
|
|
422
|
-
ServiceInstance.new(
|
423
|
-
@version,
|
424
|
-
payload,
|
425
|
-
sid: @solution[:sid],
|
426
|
-
)
|
401
|
+
ServiceInstance.new(@version, payload, sid: @solution[:sid],)
|
427
402
|
end
|
428
403
|
|
429
404
|
##
|
@@ -434,18 +409,11 @@ module Twilio
|
|
434
409
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
435
410
|
|
436
411
|
if sid != :unset
|
437
|
-
return ChannelContext.new(
|
438
|
-
@version,
|
439
|
-
@solution[:sid],
|
440
|
-
sid,
|
441
|
-
)
|
412
|
+
return ChannelContext.new(@version, @solution[:sid], sid,)
|
442
413
|
end
|
443
414
|
|
444
415
|
unless @channels
|
445
|
-
@channels = ChannelList.new(
|
446
|
-
@version,
|
447
|
-
service_sid: @solution[:sid],
|
448
|
-
)
|
416
|
+
@channels = ChannelList.new(@version, service_sid: @solution[:sid],)
|
449
417
|
end
|
450
418
|
|
451
419
|
@channels
|
@@ -459,18 +427,11 @@ module Twilio
|
|
459
427
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
460
428
|
|
461
429
|
if sid != :unset
|
462
|
-
return RoleContext.new(
|
463
|
-
@version,
|
464
|
-
@solution[:sid],
|
465
|
-
sid,
|
466
|
-
)
|
430
|
+
return RoleContext.new(@version, @solution[:sid], sid,)
|
467
431
|
end
|
468
432
|
|
469
433
|
unless @roles
|
470
|
-
@roles = RoleList.new(
|
471
|
-
@version,
|
472
|
-
service_sid: @solution[:sid],
|
473
|
-
)
|
434
|
+
@roles = RoleList.new(@version, service_sid: @solution[:sid],)
|
474
435
|
end
|
475
436
|
|
476
437
|
@roles
|
@@ -484,18 +445,11 @@ module Twilio
|
|
484
445
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
485
446
|
|
486
447
|
if sid != :unset
|
487
|
-
return UserContext.new(
|
488
|
-
@version,
|
489
|
-
@solution[:sid],
|
490
|
-
sid,
|
491
|
-
)
|
448
|
+
return UserContext.new(@version, @solution[:sid], sid,)
|
492
449
|
end
|
493
450
|
|
494
451
|
unless @users
|
495
|
-
@users = UserList.new(
|
496
|
-
@version,
|
497
|
-
service_sid: @solution[:sid],
|
498
|
-
)
|
452
|
+
@users = UserList.new(@version, service_sid: @solution[:sid],)
|
499
453
|
end
|
500
454
|
|
501
455
|
@users
|
@@ -546,9 +500,7 @@ module Twilio
|
|
546
500
|
|
547
501
|
# Context
|
548
502
|
@instance_context = nil
|
549
|
-
@params = {
|
550
|
-
'sid' => sid || @properties['sid'],
|
551
|
-
}
|
503
|
+
@params = {'sid' => sid || @properties['sid'],}
|
552
504
|
end
|
553
505
|
|
554
506
|
##
|
@@ -557,10 +509,7 @@ module Twilio
|
|
557
509
|
# @return [ServiceContext] ServiceContext for this ServiceInstance
|
558
510
|
def context
|
559
511
|
unless @instance_context
|
560
|
-
@instance_context = ServiceContext.new(
|
561
|
-
@version,
|
562
|
-
@params['sid'],
|
563
|
-
)
|
512
|
+
@instance_context = ServiceContext.new(@version, @params['sid'],)
|
564
513
|
end
|
565
514
|
@instance_context
|
566
515
|
end
|
@@ -19,9 +19,7 @@ module Twilio
|
|
19
19
|
super(version)
|
20
20
|
|
21
21
|
# Path Solution
|
22
|
-
@solution = {
|
23
|
-
service_sid: service_sid
|
24
|
-
}
|
22
|
+
@solution = {service_sid: service_sid}
|
25
23
|
@uri = "/Services/#{@solution[:service_sid]}/Channels"
|
26
24
|
end
|
27
25
|
|
@@ -47,11 +45,7 @@ module Twilio
|
|
47
45
|
data: data
|
48
46
|
)
|
49
47
|
|
50
|
-
ChannelInstance.new(
|
51
|
-
@version,
|
52
|
-
payload,
|
53
|
-
service_sid: @solution[:service_sid],
|
54
|
-
)
|
48
|
+
ChannelInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
55
49
|
end
|
56
50
|
|
57
51
|
##
|
@@ -67,11 +61,7 @@ module Twilio
|
|
67
61
|
# efficient page size, i.e. min(limit, 1000)
|
68
62
|
# @return [Array] Array of up to limit results
|
69
63
|
def list(type: :unset, limit: nil, page_size: nil)
|
70
|
-
self.stream(
|
71
|
-
type: type,
|
72
|
-
limit: limit,
|
73
|
-
page_size: page_size
|
74
|
-
).entries
|
64
|
+
self.stream(type: type, limit: limit, page_size: page_size).entries
|
75
65
|
end
|
76
66
|
|
77
67
|
##
|
@@ -89,10 +79,7 @@ module Twilio
|
|
89
79
|
def stream(type: :unset, limit: nil, page_size: nil)
|
90
80
|
limits = @version.read_limits(limit, page_size)
|
91
81
|
|
92
|
-
page = self.page(
|
93
|
-
type: type,
|
94
|
-
page_size: limits[:page_size],
|
95
|
-
)
|
82
|
+
page = self.page(type: type, page_size: limits[:page_size],)
|
96
83
|
|
97
84
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
98
85
|
end
|
@@ -104,9 +91,7 @@ module Twilio
|
|
104
91
|
def each
|
105
92
|
limits = @version.read_limits
|
106
93
|
|
107
|
-
page = self.page(
|
108
|
-
page_size: limits[:page_size],
|
109
|
-
)
|
94
|
+
page = self.page(page_size: limits[:page_size],)
|
110
95
|
|
111
96
|
@version.stream(page,
|
112
97
|
limit: limits[:limit],
|
@@ -175,11 +160,7 @@ module Twilio
|
|
175
160
|
# @param [Hash] payload Payload response from the API
|
176
161
|
# @return [ChannelInstance] ChannelInstance
|
177
162
|
def get_instance(payload)
|
178
|
-
ChannelInstance.new(
|
179
|
-
@version,
|
180
|
-
payload,
|
181
|
-
service_sid: @solution[:service_sid],
|
182
|
-
)
|
163
|
+
ChannelInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
183
164
|
end
|
184
165
|
|
185
166
|
##
|
@@ -200,10 +181,7 @@ module Twilio
|
|
200
181
|
super(version)
|
201
182
|
|
202
183
|
# Path Solution
|
203
|
-
@solution = {
|
204
|
-
service_sid: service_sid,
|
205
|
-
sid: sid,
|
206
|
-
}
|
184
|
+
@solution = {service_sid: service_sid, sid: sid,}
|
207
185
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:sid]}"
|
208
186
|
|
209
187
|
# Dependents
|
@@ -224,12 +202,7 @@ module Twilio
|
|
224
202
|
params,
|
225
203
|
)
|
226
204
|
|
227
|
-
ChannelInstance.new(
|
228
|
-
@version,
|
229
|
-
payload,
|
230
|
-
service_sid: @solution[:service_sid],
|
231
|
-
sid: @solution[:sid],
|
232
|
-
)
|
205
|
+
ChannelInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
233
206
|
end
|
234
207
|
|
235
208
|
##
|
@@ -258,12 +231,7 @@ module Twilio
|
|
258
231
|
data: data,
|
259
232
|
)
|
260
233
|
|
261
|
-
ChannelInstance.new(
|
262
|
-
@version,
|
263
|
-
payload,
|
264
|
-
service_sid: @solution[:service_sid],
|
265
|
-
sid: @solution[:sid],
|
266
|
-
)
|
234
|
+
ChannelInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
267
235
|
end
|
268
236
|
|
269
237
|
##
|
@@ -274,12 +242,7 @@ module Twilio
|
|
274
242
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
275
243
|
|
276
244
|
if sid != :unset
|
277
|
-
return MemberContext.new(
|
278
|
-
@version,
|
279
|
-
@solution[:service_sid],
|
280
|
-
@solution[:sid],
|
281
|
-
sid,
|
282
|
-
)
|
245
|
+
return MemberContext.new(@version, @solution[:service_sid], @solution[:sid], sid,)
|
283
246
|
end
|
284
247
|
|
285
248
|
unless @members
|
@@ -301,12 +264,7 @@ module Twilio
|
|
301
264
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
302
265
|
|
303
266
|
if sid != :unset
|
304
|
-
return MessageContext.new(
|
305
|
-
@version,
|
306
|
-
@solution[:service_sid],
|
307
|
-
@solution[:sid],
|
308
|
-
sid,
|
309
|
-
)
|
267
|
+
return MessageContext.new(@version, @solution[:service_sid], @solution[:sid], sid,)
|
310
268
|
end
|
311
269
|
|
312
270
|
unless @messages
|
@@ -328,12 +286,7 @@ module Twilio
|
|
328
286
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
329
287
|
|
330
288
|
if sid != :unset
|
331
|
-
return InviteContext.new(
|
332
|
-
@version,
|
333
|
-
@solution[:service_sid],
|
334
|
-
@solution[:sid],
|
335
|
-
sid,
|
336
|
-
)
|
289
|
+
return InviteContext.new(@version, @solution[:service_sid], @solution[:sid], sid,)
|
337
290
|
end
|
338
291
|
|
339
292
|
unless @invites
|
@@ -386,10 +339,7 @@ module Twilio
|
|
386
339
|
|
387
340
|
# Context
|
388
341
|
@instance_context = nil
|
389
|
-
@params = {
|
390
|
-
'service_sid' => service_sid,
|
391
|
-
'sid' => sid || @properties['sid'],
|
392
|
-
}
|
342
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid'],}
|
393
343
|
end
|
394
344
|
|
395
345
|
##
|
@@ -398,11 +348,7 @@ module Twilio
|
|
398
348
|
# @return [ChannelContext] ChannelContext for this ChannelInstance
|
399
349
|
def context
|
400
350
|
unless @instance_context
|
401
|
-
@instance_context = ChannelContext.new(
|
402
|
-
@version,
|
403
|
-
@params['service_sid'],
|
404
|
-
@params['sid'],
|
405
|
-
)
|
351
|
+
@instance_context = ChannelContext.new(@version, @params['service_sid'], @params['sid'],)
|
406
352
|
end
|
407
353
|
@instance_context
|
408
354
|
end
|
@@ -512,11 +458,7 @@ module Twilio
|
|
512
458
|
# @param [String] attributes The attributes
|
513
459
|
# @return [ChannelInstance] Updated ChannelInstance
|
514
460
|
def update(friendly_name: :unset, unique_name: :unset, attributes: :unset)
|
515
|
-
context.update(
|
516
|
-
friendly_name: friendly_name,
|
517
|
-
unique_name: unique_name,
|
518
|
-
attributes: attributes,
|
519
|
-
)
|
461
|
+
context.update(friendly_name: friendly_name, unique_name: unique_name, attributes: attributes,)
|
520
462
|
end
|
521
463
|
|
522
464
|
##
|