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
@@ -21,10 +21,7 @@ module Twilio
|
|
21
21
|
super(version)
|
22
22
|
|
23
23
|
# Path Solution
|
24
|
-
@solution = {
|
25
|
-
service_sid: service_sid,
|
26
|
-
channel_sid: channel_sid
|
27
|
-
}
|
24
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid}
|
28
25
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Invites"
|
29
26
|
end
|
30
27
|
|
@@ -35,10 +32,7 @@ module Twilio
|
|
35
32
|
# @param [String] role_sid The role_sid
|
36
33
|
# @return [InviteInstance] Newly created InviteInstance
|
37
34
|
def create(identity: nil, role_sid: :unset)
|
38
|
-
data = Twilio::Values.of({
|
39
|
-
'Identity' => identity,
|
40
|
-
'RoleSid' => role_sid,
|
41
|
-
})
|
35
|
+
data = Twilio::Values.of({'Identity' => identity, 'RoleSid' => role_sid,})
|
42
36
|
|
43
37
|
payload = @version.create(
|
44
38
|
'POST',
|
@@ -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(identity: :unset, limit: nil, page_size: nil)
|
70
|
-
self.stream(
|
71
|
-
identity: identity,
|
72
|
-
limit: limit,
|
73
|
-
page_size: page_size
|
74
|
-
).entries
|
64
|
+
self.stream(identity: identity, limit: limit, page_size: page_size).entries
|
75
65
|
end
|
76
66
|
|
77
67
|
##
|
@@ -89,10 +79,7 @@ module Twilio
|
|
89
79
|
def stream(identity: :unset, limit: nil, page_size: nil)
|
90
80
|
limits = @version.read_limits(limit, page_size)
|
91
81
|
|
92
|
-
page = self.page(
|
93
|
-
identity: identity,
|
94
|
-
page_size: limits[:page_size],
|
95
|
-
)
|
82
|
+
page = self.page(identity: identity, 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],
|
@@ -202,11 +187,7 @@ module Twilio
|
|
202
187
|
super(version)
|
203
188
|
|
204
189
|
# Path Solution
|
205
|
-
@solution = {
|
206
|
-
service_sid: service_sid,
|
207
|
-
channel_sid: channel_sid,
|
208
|
-
sid: sid,
|
209
|
-
}
|
190
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid, sid: sid,}
|
210
191
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Invites/#{@solution[:sid]}"
|
211
192
|
end
|
212
193
|
|
@@ -21,10 +21,7 @@ module Twilio
|
|
21
21
|
super(version)
|
22
22
|
|
23
23
|
# Path Solution
|
24
|
-
@solution = {
|
25
|
-
service_sid: service_sid,
|
26
|
-
channel_sid: channel_sid
|
27
|
-
}
|
24
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid}
|
28
25
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Members"
|
29
26
|
end
|
30
27
|
|
@@ -75,11 +72,7 @@ module Twilio
|
|
75
72
|
# efficient page size, i.e. min(limit, 1000)
|
76
73
|
# @return [Array] Array of up to limit results
|
77
74
|
def list(identity: :unset, limit: nil, page_size: nil)
|
78
|
-
self.stream(
|
79
|
-
identity: identity,
|
80
|
-
limit: limit,
|
81
|
-
page_size: page_size
|
82
|
-
).entries
|
75
|
+
self.stream(identity: identity, limit: limit, page_size: page_size).entries
|
83
76
|
end
|
84
77
|
|
85
78
|
##
|
@@ -97,10 +90,7 @@ module Twilio
|
|
97
90
|
def stream(identity: :unset, limit: nil, page_size: nil)
|
98
91
|
limits = @version.read_limits(limit, page_size)
|
99
92
|
|
100
|
-
page = self.page(
|
101
|
-
identity: identity,
|
102
|
-
page_size: limits[:page_size],
|
103
|
-
)
|
93
|
+
page = self.page(identity: identity, page_size: limits[:page_size],)
|
104
94
|
|
105
95
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
106
96
|
end
|
@@ -112,9 +102,7 @@ module Twilio
|
|
112
102
|
def each
|
113
103
|
limits = @version.read_limits
|
114
104
|
|
115
|
-
page = self.page(
|
116
|
-
page_size: limits[:page_size],
|
117
|
-
)
|
105
|
+
page = self.page(page_size: limits[:page_size],)
|
118
106
|
|
119
107
|
@version.stream(page,
|
120
108
|
limit: limits[:limit],
|
@@ -210,11 +198,7 @@ module Twilio
|
|
210
198
|
super(version)
|
211
199
|
|
212
200
|
# Path Solution
|
213
|
-
@solution = {
|
214
|
-
service_sid: service_sid,
|
215
|
-
channel_sid: channel_sid,
|
216
|
-
sid: sid,
|
217
|
-
}
|
201
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid, sid: sid,}
|
218
202
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Members/#{@solution[:sid]}"
|
219
203
|
end
|
220
204
|
|
@@ -21,10 +21,7 @@ module Twilio
|
|
21
21
|
super(version)
|
22
22
|
|
23
23
|
# Path Solution
|
24
|
-
@solution = {
|
25
|
-
service_sid: service_sid,
|
26
|
-
channel_sid: channel_sid
|
27
|
-
}
|
24
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid}
|
28
25
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Messages"
|
29
26
|
end
|
30
27
|
|
@@ -77,11 +74,7 @@ module Twilio
|
|
77
74
|
# efficient page size, i.e. min(limit, 1000)
|
78
75
|
# @return [Array] Array of up to limit results
|
79
76
|
def list(order: :unset, limit: nil, page_size: nil)
|
80
|
-
self.stream(
|
81
|
-
order: order,
|
82
|
-
limit: limit,
|
83
|
-
page_size: page_size
|
84
|
-
).entries
|
77
|
+
self.stream(order: order, limit: limit, page_size: page_size).entries
|
85
78
|
end
|
86
79
|
|
87
80
|
##
|
@@ -99,10 +92,7 @@ module Twilio
|
|
99
92
|
def stream(order: :unset, limit: nil, page_size: nil)
|
100
93
|
limits = @version.read_limits(limit, page_size)
|
101
94
|
|
102
|
-
page = self.page(
|
103
|
-
order: order,
|
104
|
-
page_size: limits[:page_size],
|
105
|
-
)
|
95
|
+
page = self.page(order: order, page_size: limits[:page_size],)
|
106
96
|
|
107
97
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
108
98
|
end
|
@@ -114,9 +104,7 @@ module Twilio
|
|
114
104
|
def each
|
115
105
|
limits = @version.read_limits
|
116
106
|
|
117
|
-
page = self.page(
|
118
|
-
page_size: limits[:page_size],
|
119
|
-
)
|
107
|
+
page = self.page(page_size: limits[:page_size],)
|
120
108
|
|
121
109
|
@version.stream(page,
|
122
110
|
limit: limits[:limit],
|
@@ -212,11 +200,7 @@ module Twilio
|
|
212
200
|
super(version)
|
213
201
|
|
214
202
|
# Path Solution
|
215
|
-
@solution = {
|
216
|
-
service_sid: service_sid,
|
217
|
-
channel_sid: channel_sid,
|
218
|
-
sid: sid,
|
219
|
-
}
|
203
|
+
@solution = {service_sid: service_sid, channel_sid: channel_sid, sid: sid,}
|
220
204
|
@uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Messages/#{@solution[:sid]}"
|
221
205
|
end
|
222
206
|
|
@@ -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]}/Roles"
|
26
24
|
end
|
27
25
|
|
@@ -45,11 +43,7 @@ module Twilio
|
|
45
43
|
data: data
|
46
44
|
)
|
47
45
|
|
48
|
-
RoleInstance.new(
|
49
|
-
@version,
|
50
|
-
payload,
|
51
|
-
service_sid: @solution[:service_sid],
|
52
|
-
)
|
46
|
+
RoleInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
53
47
|
end
|
54
48
|
|
55
49
|
##
|
@@ -64,10 +58,7 @@ module Twilio
|
|
64
58
|
# efficient page size, i.e. min(limit, 1000)
|
65
59
|
# @return [Array] Array of up to limit results
|
66
60
|
def list(limit: nil, page_size: nil)
|
67
|
-
self.stream(
|
68
|
-
limit: limit,
|
69
|
-
page_size: page_size
|
70
|
-
).entries
|
61
|
+
self.stream(limit: limit, page_size: page_size).entries
|
71
62
|
end
|
72
63
|
|
73
64
|
##
|
@@ -84,9 +75,7 @@ module Twilio
|
|
84
75
|
def stream(limit: nil, page_size: nil)
|
85
76
|
limits = @version.read_limits(limit, page_size)
|
86
77
|
|
87
|
-
page = self.page(
|
88
|
-
page_size: limits[:page_size],
|
89
|
-
)
|
78
|
+
page = self.page(page_size: limits[:page_size],)
|
90
79
|
|
91
80
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
92
81
|
end
|
@@ -98,9 +87,7 @@ module Twilio
|
|
98
87
|
def each
|
99
88
|
limits = @version.read_limits
|
100
89
|
|
101
|
-
page = self.page(
|
102
|
-
page_size: limits[:page_size],
|
103
|
-
)
|
90
|
+
page = self.page(page_size: limits[:page_size],)
|
104
91
|
|
105
92
|
@version.stream(page,
|
106
93
|
limit: limits[:limit],
|
@@ -167,11 +154,7 @@ module Twilio
|
|
167
154
|
# @param [Hash] payload Payload response from the API
|
168
155
|
# @return [RoleInstance] RoleInstance
|
169
156
|
def get_instance(payload)
|
170
|
-
RoleInstance.new(
|
171
|
-
@version,
|
172
|
-
payload,
|
173
|
-
service_sid: @solution[:service_sid],
|
174
|
-
)
|
157
|
+
RoleInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
175
158
|
end
|
176
159
|
|
177
160
|
##
|
@@ -192,10 +175,7 @@ module Twilio
|
|
192
175
|
super(version)
|
193
176
|
|
194
177
|
# Path Solution
|
195
|
-
@solution = {
|
196
|
-
service_sid: service_sid,
|
197
|
-
sid: sid,
|
198
|
-
}
|
178
|
+
@solution = {service_sid: service_sid, sid: sid,}
|
199
179
|
@uri = "/Services/#{@solution[:service_sid]}/Roles/#{@solution[:sid]}"
|
200
180
|
end
|
201
181
|
|
@@ -211,12 +191,7 @@ module Twilio
|
|
211
191
|
params,
|
212
192
|
)
|
213
193
|
|
214
|
-
RoleInstance.new(
|
215
|
-
@version,
|
216
|
-
payload,
|
217
|
-
service_sid: @solution[:service_sid],
|
218
|
-
sid: @solution[:sid],
|
219
|
-
)
|
194
|
+
RoleInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
220
195
|
end
|
221
196
|
|
222
197
|
##
|
@@ -231,9 +206,7 @@ module Twilio
|
|
231
206
|
# @param [String] permission The permission
|
232
207
|
# @return [RoleInstance] Updated RoleInstance
|
233
208
|
def update(permission: nil)
|
234
|
-
data = Twilio::Values.of({
|
235
|
-
'Permission' => permission,
|
236
|
-
})
|
209
|
+
data = Twilio::Values.of({'Permission' => permission,})
|
237
210
|
|
238
211
|
payload = @version.update(
|
239
212
|
'POST',
|
@@ -241,12 +214,7 @@ module Twilio
|
|
241
214
|
data: data,
|
242
215
|
)
|
243
216
|
|
244
|
-
RoleInstance.new(
|
245
|
-
@version,
|
246
|
-
payload,
|
247
|
-
service_sid: @solution[:service_sid],
|
248
|
-
sid: @solution[:sid],
|
249
|
-
)
|
217
|
+
RoleInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
250
218
|
end
|
251
219
|
|
252
220
|
##
|
@@ -283,10 +251,7 @@ module Twilio
|
|
283
251
|
|
284
252
|
# Context
|
285
253
|
@instance_context = nil
|
286
|
-
@params = {
|
287
|
-
'service_sid' => service_sid,
|
288
|
-
'sid' => sid || @properties['sid'],
|
289
|
-
}
|
254
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid'],}
|
290
255
|
end
|
291
256
|
|
292
257
|
##
|
@@ -295,11 +260,7 @@ module Twilio
|
|
295
260
|
# @return [RoleContext] RoleContext for this RoleInstance
|
296
261
|
def context
|
297
262
|
unless @instance_context
|
298
|
-
@instance_context = RoleContext.new(
|
299
|
-
@version,
|
300
|
-
@params['service_sid'],
|
301
|
-
@params['sid'],
|
302
|
-
)
|
263
|
+
@instance_context = RoleContext.new(@version, @params['service_sid'], @params['sid'],)
|
303
264
|
end
|
304
265
|
@instance_context
|
305
266
|
end
|
@@ -377,9 +338,7 @@ module Twilio
|
|
377
338
|
# @param [String] permission The permission
|
378
339
|
# @return [RoleInstance] Updated RoleInstance
|
379
340
|
def update(permission: nil)
|
380
|
-
context.update(
|
381
|
-
permission: permission,
|
382
|
-
)
|
341
|
+
context.update(permission: permission,)
|
383
342
|
end
|
384
343
|
|
385
344
|
##
|
@@ -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]}/Users"
|
26
24
|
end
|
27
25
|
|
@@ -47,11 +45,7 @@ module Twilio
|
|
47
45
|
data: data
|
48
46
|
)
|
49
47
|
|
50
|
-
UserInstance.new(
|
51
|
-
@version,
|
52
|
-
payload,
|
53
|
-
service_sid: @solution[:service_sid],
|
54
|
-
)
|
48
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
55
49
|
end
|
56
50
|
|
57
51
|
##
|
@@ -66,10 +60,7 @@ module Twilio
|
|
66
60
|
# efficient page size, i.e. min(limit, 1000)
|
67
61
|
# @return [Array] Array of up to limit results
|
68
62
|
def list(limit: nil, page_size: nil)
|
69
|
-
self.stream(
|
70
|
-
limit: limit,
|
71
|
-
page_size: page_size
|
72
|
-
).entries
|
63
|
+
self.stream(limit: limit, page_size: page_size).entries
|
73
64
|
end
|
74
65
|
|
75
66
|
##
|
@@ -86,9 +77,7 @@ module Twilio
|
|
86
77
|
def stream(limit: nil, page_size: nil)
|
87
78
|
limits = @version.read_limits(limit, page_size)
|
88
79
|
|
89
|
-
page = self.page(
|
90
|
-
page_size: limits[:page_size],
|
91
|
-
)
|
80
|
+
page = self.page(page_size: limits[:page_size],)
|
92
81
|
|
93
82
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
94
83
|
end
|
@@ -100,9 +89,7 @@ module Twilio
|
|
100
89
|
def each
|
101
90
|
limits = @version.read_limits
|
102
91
|
|
103
|
-
page = self.page(
|
104
|
-
page_size: limits[:page_size],
|
105
|
-
)
|
92
|
+
page = self.page(page_size: limits[:page_size],)
|
106
93
|
|
107
94
|
@version.stream(page,
|
108
95
|
limit: limits[:limit],
|
@@ -169,11 +156,7 @@ module Twilio
|
|
169
156
|
# @param [Hash] payload Payload response from the API
|
170
157
|
# @return [UserInstance] UserInstance
|
171
158
|
def get_instance(payload)
|
172
|
-
UserInstance.new(
|
173
|
-
@version,
|
174
|
-
payload,
|
175
|
-
service_sid: @solution[:service_sid],
|
176
|
-
)
|
159
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
177
160
|
end
|
178
161
|
|
179
162
|
##
|
@@ -194,14 +177,12 @@ module Twilio
|
|
194
177
|
super(version)
|
195
178
|
|
196
179
|
# Path Solution
|
197
|
-
@solution = {
|
198
|
-
service_sid: service_sid,
|
199
|
-
sid: sid,
|
200
|
-
}
|
180
|
+
@solution = {service_sid: service_sid, sid: sid,}
|
201
181
|
@uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:sid]}"
|
202
182
|
|
203
183
|
# Dependents
|
204
184
|
@user_channels = nil
|
185
|
+
@user_bindings = nil
|
205
186
|
end
|
206
187
|
|
207
188
|
##
|
@@ -216,12 +197,7 @@ module Twilio
|
|
216
197
|
params,
|
217
198
|
)
|
218
199
|
|
219
|
-
UserInstance.new(
|
220
|
-
@version,
|
221
|
-
payload,
|
222
|
-
service_sid: @solution[:service_sid],
|
223
|
-
sid: @solution[:sid],
|
224
|
-
)
|
200
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
225
201
|
end
|
226
202
|
|
227
203
|
##
|
@@ -250,12 +226,7 @@ module Twilio
|
|
250
226
|
data: data,
|
251
227
|
)
|
252
228
|
|
253
|
-
UserInstance.new(
|
254
|
-
@version,
|
255
|
-
payload,
|
256
|
-
service_sid: @solution[:service_sid],
|
257
|
-
sid: @solution[:sid],
|
258
|
-
)
|
229
|
+
UserInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
259
230
|
end
|
260
231
|
|
261
232
|
##
|
@@ -274,6 +245,28 @@ module Twilio
|
|
274
245
|
@user_channels
|
275
246
|
end
|
276
247
|
|
248
|
+
##
|
249
|
+
# Access the user_bindings
|
250
|
+
# @return [UserBindingList]
|
251
|
+
# @return [UserBindingContext] if sid was passed.
|
252
|
+
def user_bindings(sid=:unset)
|
253
|
+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
254
|
+
|
255
|
+
if sid != :unset
|
256
|
+
return UserBindingContext.new(@version, @solution[:service_sid], @solution[:sid], sid,)
|
257
|
+
end
|
258
|
+
|
259
|
+
unless @user_bindings
|
260
|
+
@user_bindings = UserBindingList.new(
|
261
|
+
@version,
|
262
|
+
service_sid: @solution[:service_sid],
|
263
|
+
user_sid: @solution[:sid],
|
264
|
+
)
|
265
|
+
end
|
266
|
+
|
267
|
+
@user_bindings
|
268
|
+
end
|
269
|
+
|
277
270
|
##
|
278
271
|
# Provide a user friendly representation
|
279
272
|
def to_s
|
@@ -313,10 +306,7 @@ module Twilio
|
|
313
306
|
|
314
307
|
# Context
|
315
308
|
@instance_context = nil
|
316
|
-
@params = {
|
317
|
-
'service_sid' => service_sid,
|
318
|
-
'sid' => sid || @properties['sid'],
|
319
|
-
}
|
309
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid'],}
|
320
310
|
end
|
321
311
|
|
322
312
|
##
|
@@ -325,11 +315,7 @@ module Twilio
|
|
325
315
|
# @return [UserContext] UserContext for this UserInstance
|
326
316
|
def context
|
327
317
|
unless @instance_context
|
328
|
-
@instance_context = UserContext.new(
|
329
|
-
@version,
|
330
|
-
@params['service_sid'],
|
331
|
-
@params['sid'],
|
332
|
-
)
|
318
|
+
@instance_context = UserContext.new(@version, @params['service_sid'], @params['sid'],)
|
333
319
|
end
|
334
320
|
@instance_context
|
335
321
|
end
|
@@ -439,11 +425,7 @@ module Twilio
|
|
439
425
|
# @param [String] friendly_name The friendly_name
|
440
426
|
# @return [UserInstance] Updated UserInstance
|
441
427
|
def update(role_sid: :unset, attributes: :unset, friendly_name: :unset)
|
442
|
-
context.update(
|
443
|
-
role_sid: role_sid,
|
444
|
-
attributes: attributes,
|
445
|
-
friendly_name: friendly_name,
|
446
|
-
)
|
428
|
+
context.update(role_sid: role_sid, attributes: attributes, friendly_name: friendly_name,)
|
447
429
|
end
|
448
430
|
|
449
431
|
##
|
@@ -453,6 +435,13 @@ module Twilio
|
|
453
435
|
context.user_channels
|
454
436
|
end
|
455
437
|
|
438
|
+
##
|
439
|
+
# Access the user_bindings
|
440
|
+
# @return [user_bindings] user_bindings
|
441
|
+
def user_bindings
|
442
|
+
context.user_bindings
|
443
|
+
end
|
444
|
+
|
456
445
|
##
|
457
446
|
# Provide a user friendly representation
|
458
447
|
def to_s
|