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
@@ -23,10 +23,7 @@ module Twilio
|
|
23
23
|
super(version)
|
24
24
|
|
25
25
|
# Path Solution
|
26
|
-
@solution = {
|
27
|
-
service_sid: service_sid,
|
28
|
-
map_sid: map_sid
|
29
|
-
}
|
26
|
+
@solution = {service_sid: service_sid, map_sid: map_sid}
|
30
27
|
@uri = "/Services/#{@solution[:service_sid]}/Maps/#{@solution[:map_sid]}/Items"
|
31
28
|
end
|
32
29
|
|
@@ -37,10 +34,7 @@ module Twilio
|
|
37
34
|
# @param [Hash] data The data
|
38
35
|
# @return [SyncMapItemInstance] Newly created SyncMapItemInstance
|
39
36
|
def create(key: nil, data: nil)
|
40
|
-
data = Twilio::Values.of({
|
41
|
-
'Key' => key,
|
42
|
-
'Data' => Twilio.serialize_object(data),
|
43
|
-
})
|
37
|
+
data = Twilio::Values.of({'Key' => key, 'Data' => Twilio.serialize_object(data),})
|
44
38
|
|
45
39
|
payload = @version.create(
|
46
40
|
'POST',
|
@@ -71,13 +65,7 @@ module Twilio
|
|
71
65
|
# efficient page size, i.e. min(limit, 1000)
|
72
66
|
# @return [Array] Array of up to limit results
|
73
67
|
def list(order: :unset, from: :unset, bounds: :unset, limit: nil, page_size: nil)
|
74
|
-
self.stream(
|
75
|
-
order: order,
|
76
|
-
from: from,
|
77
|
-
bounds: bounds,
|
78
|
-
limit: limit,
|
79
|
-
page_size: page_size
|
80
|
-
).entries
|
68
|
+
self.stream(order: order, from: from, bounds: bounds, limit: limit, page_size: page_size).entries
|
81
69
|
end
|
82
70
|
|
83
71
|
##
|
@@ -97,12 +85,7 @@ module Twilio
|
|
97
85
|
def stream(order: :unset, from: :unset, bounds: :unset, limit: nil, page_size: nil)
|
98
86
|
limits = @version.read_limits(limit, page_size)
|
99
87
|
|
100
|
-
page = self.page(
|
101
|
-
order: order,
|
102
|
-
from: from,
|
103
|
-
bounds: bounds,
|
104
|
-
page_size: limits[:page_size],
|
105
|
-
)
|
88
|
+
page = self.page(order: order, from: from, bounds: bounds, page_size: limits[:page_size],)
|
106
89
|
|
107
90
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
108
91
|
end
|
@@ -114,9 +97,7 @@ module Twilio
|
|
114
97
|
def each
|
115
98
|
limits = @version.read_limits
|
116
99
|
|
117
|
-
page = self.page(
|
118
|
-
page_size: limits[:page_size],
|
119
|
-
)
|
100
|
+
page = self.page(page_size: limits[:page_size],)
|
120
101
|
|
121
102
|
@version.stream(page,
|
122
103
|
limit: limits[:limit],
|
@@ -220,11 +201,7 @@ module Twilio
|
|
220
201
|
super(version)
|
221
202
|
|
222
203
|
# Path Solution
|
223
|
-
@solution = {
|
224
|
-
service_sid: service_sid,
|
225
|
-
map_sid: map_sid,
|
226
|
-
key: key,
|
227
|
-
}
|
204
|
+
@solution = {service_sid: service_sid, map_sid: map_sid, key: key,}
|
228
205
|
@uri = "/Services/#{@solution[:service_sid]}/Maps/#{@solution[:map_sid]}/Items/#{@solution[:key]}"
|
229
206
|
end
|
230
207
|
|
@@ -261,9 +238,7 @@ module Twilio
|
|
261
238
|
# @param [Hash] data The data
|
262
239
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
263
240
|
def update(data: nil)
|
264
|
-
data = Twilio::Values.of({
|
265
|
-
'Data' => Twilio.serialize_object(data),
|
266
|
-
})
|
241
|
+
data = Twilio::Values.of({'Data' => Twilio.serialize_object(data),})
|
267
242
|
|
268
243
|
payload = @version.update(
|
269
244
|
'POST',
|
@@ -318,11 +293,7 @@ module Twilio
|
|
318
293
|
|
319
294
|
# Context
|
320
295
|
@instance_context = nil
|
321
|
-
@params = {
|
322
|
-
'service_sid' => service_sid,
|
323
|
-
'map_sid' => map_sid,
|
324
|
-
'key' => key || @properties['key'],
|
325
|
-
}
|
296
|
+
@params = {'service_sid' => service_sid, 'map_sid' => map_sid, 'key' => key || @properties['key'],}
|
326
297
|
end
|
327
298
|
|
328
299
|
##
|
@@ -420,9 +391,7 @@ module Twilio
|
|
420
391
|
# @param [Hash] data The data
|
421
392
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
422
393
|
def update(data: nil)
|
423
|
-
context.update(
|
424
|
-
data: data,
|
425
|
-
)
|
394
|
+
context.update(data: data,)
|
426
395
|
end
|
427
396
|
|
428
397
|
##
|
@@ -25,10 +25,7 @@ module Twilio
|
|
25
25
|
super(version)
|
26
26
|
|
27
27
|
# Path Solution
|
28
|
-
@solution = {
|
29
|
-
service_sid: service_sid,
|
30
|
-
map_sid: map_sid
|
31
|
-
}
|
28
|
+
@solution = {service_sid: service_sid, map_sid: map_sid}
|
32
29
|
@uri = "/Services/#{@solution[:service_sid]}/Maps/#{@solution[:map_sid]}/Permissions"
|
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],
|
@@ -180,11 +170,7 @@ module Twilio
|
|
180
170
|
super(version)
|
181
171
|
|
182
172
|
# Path Solution
|
183
|
-
@solution = {
|
184
|
-
service_sid: service_sid,
|
185
|
-
map_sid: map_sid,
|
186
|
-
identity: identity,
|
187
|
-
}
|
173
|
+
@solution = {service_sid: service_sid, map_sid: map_sid, identity: identity,}
|
188
174
|
@uri = "/Services/#{@solution[:service_sid]}/Maps/#{@solution[:map_sid]}/Permissions/#{@solution[:identity]}"
|
189
175
|
end
|
190
176
|
|
@@ -226,11 +212,7 @@ module Twilio
|
|
226
212
|
# the Sync Map.
|
227
213
|
# @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
|
228
214
|
def update(read: nil, write: nil, manage: nil)
|
229
|
-
data = Twilio::Values.of({
|
230
|
-
'Read' => read,
|
231
|
-
'Write' => write,
|
232
|
-
'Manage' => manage,
|
233
|
-
})
|
215
|
+
data = Twilio::Values.of({'Read' => read, 'Write' => write, 'Manage' => manage,})
|
234
216
|
|
235
217
|
payload = @version.update(
|
236
218
|
'POST',
|
@@ -381,11 +363,7 @@ module Twilio
|
|
381
363
|
# the Sync Map.
|
382
364
|
# @return [SyncMapPermissionInstance] Updated SyncMapPermissionInstance
|
383
365
|
def update(read: nil, write: nil, manage: nil)
|
384
|
-
context.update(
|
385
|
-
read: read,
|
386
|
-
write: write,
|
387
|
-
manage: manage,
|
388
|
-
)
|
366
|
+
context.update(read: read, write: write, manage: manage,)
|
389
367
|
end
|
390
368
|
|
391
369
|
##
|
@@ -21,9 +21,7 @@ module Twilio
|
|
21
21
|
super(version)
|
22
22
|
|
23
23
|
# Path Solution
|
24
|
-
@solution = {
|
25
|
-
service_sid: service_sid
|
26
|
-
}
|
24
|
+
@solution = {service_sid: service_sid}
|
27
25
|
@uri = "/Services/#{@solution[:service_sid]}/Streams"
|
28
26
|
end
|
29
27
|
|
@@ -34,9 +32,7 @@ module Twilio
|
|
34
32
|
# Optional, up to 256 characters long.
|
35
33
|
# @return [SyncStreamInstance] Newly created SyncStreamInstance
|
36
34
|
def create(unique_name: :unset)
|
37
|
-
data = Twilio::Values.of({
|
38
|
-
'UniqueName' => unique_name,
|
39
|
-
})
|
35
|
+
data = Twilio::Values.of({'UniqueName' => unique_name,})
|
40
36
|
|
41
37
|
payload = @version.create(
|
42
38
|
'POST',
|
@@ -44,11 +40,7 @@ module Twilio
|
|
44
40
|
data: data
|
45
41
|
)
|
46
42
|
|
47
|
-
SyncStreamInstance.new(
|
48
|
-
@version,
|
49
|
-
payload,
|
50
|
-
service_sid: @solution[:service_sid],
|
51
|
-
)
|
43
|
+
SyncStreamInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
52
44
|
end
|
53
45
|
|
54
46
|
##
|
@@ -63,10 +55,7 @@ module Twilio
|
|
63
55
|
# efficient page size, i.e. min(limit, 1000)
|
64
56
|
# @return [Array] Array of up to limit results
|
65
57
|
def list(limit: nil, page_size: nil)
|
66
|
-
self.stream(
|
67
|
-
limit: limit,
|
68
|
-
page_size: page_size
|
69
|
-
).entries
|
58
|
+
self.stream(limit: limit, page_size: page_size).entries
|
70
59
|
end
|
71
60
|
|
72
61
|
##
|
@@ -83,9 +72,7 @@ module Twilio
|
|
83
72
|
def stream(limit: nil, page_size: nil)
|
84
73
|
limits = @version.read_limits(limit, page_size)
|
85
74
|
|
86
|
-
page = self.page(
|
87
|
-
page_size: limits[:page_size],
|
88
|
-
)
|
75
|
+
page = self.page(page_size: limits[:page_size],)
|
89
76
|
|
90
77
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
91
78
|
end
|
@@ -97,9 +84,7 @@ module Twilio
|
|
97
84
|
def each
|
98
85
|
limits = @version.read_limits
|
99
86
|
|
100
|
-
page = self.page(
|
101
|
-
page_size: limits[:page_size],
|
102
|
-
)
|
87
|
+
page = self.page(page_size: limits[:page_size],)
|
103
88
|
|
104
89
|
@version.stream(page,
|
105
90
|
limit: limits[:limit],
|
@@ -168,11 +153,7 @@ module Twilio
|
|
168
153
|
# @param [Hash] payload Payload response from the API
|
169
154
|
# @return [SyncStreamInstance] SyncStreamInstance
|
170
155
|
def get_instance(payload)
|
171
|
-
SyncStreamInstance.new(
|
172
|
-
@version,
|
173
|
-
payload,
|
174
|
-
service_sid: @solution[:service_sid],
|
175
|
-
)
|
156
|
+
SyncStreamInstance.new(@version, payload, service_sid: @solution[:service_sid],)
|
176
157
|
end
|
177
158
|
|
178
159
|
##
|
@@ -195,10 +176,7 @@ module Twilio
|
|
195
176
|
super(version)
|
196
177
|
|
197
178
|
# Path Solution
|
198
|
-
@solution = {
|
199
|
-
service_sid: service_sid,
|
200
|
-
sid: sid,
|
201
|
-
}
|
179
|
+
@solution = {service_sid: service_sid, sid: sid,}
|
202
180
|
@uri = "/Services/#{@solution[:service_sid]}/Streams/#{@solution[:sid]}"
|
203
181
|
|
204
182
|
# Dependents
|
@@ -217,12 +195,7 @@ module Twilio
|
|
217
195
|
params,
|
218
196
|
)
|
219
197
|
|
220
|
-
SyncStreamInstance.new(
|
221
|
-
@version,
|
222
|
-
payload,
|
223
|
-
service_sid: @solution[:service_sid],
|
224
|
-
sid: @solution[:sid],
|
225
|
-
)
|
198
|
+
SyncStreamInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid],)
|
226
199
|
end
|
227
200
|
|
228
201
|
##
|
@@ -284,10 +257,7 @@ module Twilio
|
|
284
257
|
|
285
258
|
# Context
|
286
259
|
@instance_context = nil
|
287
|
-
@params = {
|
288
|
-
'service_sid' => service_sid,
|
289
|
-
'sid' => sid || @properties['sid'],
|
290
|
-
}
|
260
|
+
@params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid'],}
|
291
261
|
end
|
292
262
|
|
293
263
|
##
|
@@ -296,11 +266,7 @@ module Twilio
|
|
296
266
|
# @return [SyncStreamContext] SyncStreamContext for this SyncStreamInstance
|
297
267
|
def context
|
298
268
|
unless @instance_context
|
299
|
-
@instance_context = SyncStreamContext.new(
|
300
|
-
@version,
|
301
|
-
@params['service_sid'],
|
302
|
-
@params['sid'],
|
303
|
-
)
|
269
|
+
@instance_context = SyncStreamContext.new(@version, @params['service_sid'], @params['sid'],)
|
304
270
|
end
|
305
271
|
@instance_context
|
306
272
|
end
|
@@ -23,10 +23,7 @@ module Twilio
|
|
23
23
|
super(version)
|
24
24
|
|
25
25
|
# Path Solution
|
26
|
-
@solution = {
|
27
|
-
service_sid: service_sid,
|
28
|
-
stream_sid: stream_sid
|
29
|
-
}
|
26
|
+
@solution = {service_sid: service_sid, stream_sid: stream_sid}
|
30
27
|
@uri = "/Services/#{@solution[:service_sid]}/Streams/#{@solution[:stream_sid]}/Messages"
|
31
28
|
end
|
32
29
|
|
@@ -37,9 +34,7 @@ module Twilio
|
|
37
34
|
# maximum size 4KB.
|
38
35
|
# @return [StreamMessageInstance] Newly created StreamMessageInstance
|
39
36
|
def create(data: nil)
|
40
|
-
data = Twilio::Values.of({
|
41
|
-
'Data' => Twilio.serialize_object(data),
|
42
|
-
})
|
37
|
+
data = Twilio::Values.of({'Data' => Twilio.serialize_object(data),})
|
43
38
|
|
44
39
|
payload = @version.create(
|
45
40
|
'POST',
|
@@ -112,10 +107,7 @@ module Twilio
|
|
112
107
|
super(version)
|
113
108
|
|
114
109
|
# Marshaled Properties
|
115
|
-
@properties = {
|
116
|
-
'sid' => payload['sid'],
|
117
|
-
'data' => payload['data'],
|
118
|
-
}
|
110
|
+
@properties = {'sid' => payload['sid'], 'data' => payload['data'],}
|
119
111
|
end
|
120
112
|
|
121
113
|
##
|
@@ -34,11 +34,7 @@ module Twilio
|
|
34
34
|
# efficient page size, i.e. min(limit, 1000)
|
35
35
|
# @return [Array] Array of up to limit results
|
36
36
|
def list(friendly_name: :unset, limit: nil, page_size: nil)
|
37
|
-
self.stream(
|
38
|
-
friendly_name: friendly_name,
|
39
|
-
limit: limit,
|
40
|
-
page_size: page_size
|
41
|
-
).entries
|
37
|
+
self.stream(friendly_name: friendly_name, limit: limit, page_size: page_size).entries
|
42
38
|
end
|
43
39
|
|
44
40
|
##
|
@@ -56,10 +52,7 @@ module Twilio
|
|
56
52
|
def stream(friendly_name: :unset, limit: nil, page_size: nil)
|
57
53
|
limits = @version.read_limits(limit, page_size)
|
58
54
|
|
59
|
-
page = self.page(
|
60
|
-
friendly_name: friendly_name,
|
61
|
-
page_size: limits[:page_size],
|
62
|
-
)
|
55
|
+
page = self.page(friendly_name: friendly_name, page_size: limits[:page_size],)
|
63
56
|
|
64
57
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
65
58
|
end
|
@@ -71,9 +64,7 @@ module Twilio
|
|
71
64
|
def each
|
72
65
|
limits = @version.read_limits
|
73
66
|
|
74
|
-
page = self.page(
|
75
|
-
page_size: limits[:page_size],
|
76
|
-
)
|
67
|
+
page = self.page(page_size: limits[:page_size],)
|
77
68
|
|
78
69
|
@version.stream(page,
|
79
70
|
limit: limits[:limit],
|
@@ -142,10 +133,7 @@ module Twilio
|
|
142
133
|
data: data
|
143
134
|
)
|
144
135
|
|
145
|
-
WorkspaceInstance.new(
|
146
|
-
@version,
|
147
|
-
payload,
|
148
|
-
)
|
136
|
+
WorkspaceInstance.new(@version, payload,)
|
149
137
|
end
|
150
138
|
|
151
139
|
##
|
@@ -174,10 +162,7 @@ module Twilio
|
|
174
162
|
# @param [Hash] payload Payload response from the API
|
175
163
|
# @return [WorkspaceInstance] WorkspaceInstance
|
176
164
|
def get_instance(payload)
|
177
|
-
WorkspaceInstance.new(
|
178
|
-
@version,
|
179
|
-
payload,
|
180
|
-
)
|
165
|
+
WorkspaceInstance.new(@version, payload,)
|
181
166
|
end
|
182
167
|
|
183
168
|
##
|
@@ -197,9 +182,7 @@ module Twilio
|
|
197
182
|
super(version)
|
198
183
|
|
199
184
|
# Path Solution
|
200
|
-
@solution = {
|
201
|
-
sid: sid,
|
202
|
-
}
|
185
|
+
@solution = {sid: sid,}
|
203
186
|
@uri = "/Workspaces/#{@solution[:sid]}"
|
204
187
|
|
205
188
|
# Dependents
|
@@ -227,11 +210,7 @@ module Twilio
|
|
227
210
|
params,
|
228
211
|
)
|
229
212
|
|
230
|
-
WorkspaceInstance.new(
|
231
|
-
@version,
|
232
|
-
payload,
|
233
|
-
sid: @solution[:sid],
|
234
|
-
)
|
213
|
+
WorkspaceInstance.new(@version, payload, sid: @solution[:sid],)
|
235
214
|
end
|
236
215
|
|
237
216
|
##
|
@@ -261,11 +240,7 @@ module Twilio
|
|
261
240
|
data: data,
|
262
241
|
)
|
263
242
|
|
264
|
-
WorkspaceInstance.new(
|
265
|
-
@version,
|
266
|
-
payload,
|
267
|
-
sid: @solution[:sid],
|
268
|
-
)
|
243
|
+
WorkspaceInstance.new(@version, payload, sid: @solution[:sid],)
|
269
244
|
end
|
270
245
|
|
271
246
|
##
|
@@ -283,18 +258,11 @@ module Twilio
|
|
283
258
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
284
259
|
|
285
260
|
if sid != :unset
|
286
|
-
return ActivityContext.new(
|
287
|
-
@version,
|
288
|
-
@solution[:sid],
|
289
|
-
sid,
|
290
|
-
)
|
261
|
+
return ActivityContext.new(@version, @solution[:sid], sid,)
|
291
262
|
end
|
292
263
|
|
293
264
|
unless @activities
|
294
|
-
@activities = ActivityList.new(
|
295
|
-
@version,
|
296
|
-
workspace_sid: @solution[:sid],
|
297
|
-
)
|
265
|
+
@activities = ActivityList.new(@version, workspace_sid: @solution[:sid],)
|
298
266
|
end
|
299
267
|
|
300
268
|
@activities
|
@@ -308,18 +276,11 @@ module Twilio
|
|
308
276
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
309
277
|
|
310
278
|
if sid != :unset
|
311
|
-
return EventContext.new(
|
312
|
-
@version,
|
313
|
-
@solution[:sid],
|
314
|
-
sid,
|
315
|
-
)
|
279
|
+
return EventContext.new(@version, @solution[:sid], sid,)
|
316
280
|
end
|
317
281
|
|
318
282
|
unless @events
|
319
|
-
@events = EventList.new(
|
320
|
-
@version,
|
321
|
-
workspace_sid: @solution[:sid],
|
322
|
-
)
|
283
|
+
@events = EventList.new(@version, workspace_sid: @solution[:sid],)
|
323
284
|
end
|
324
285
|
|
325
286
|
@events
|
@@ -333,18 +294,11 @@ module Twilio
|
|
333
294
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
334
295
|
|
335
296
|
if sid != :unset
|
336
|
-
return TaskContext.new(
|
337
|
-
@version,
|
338
|
-
@solution[:sid],
|
339
|
-
sid,
|
340
|
-
)
|
297
|
+
return TaskContext.new(@version, @solution[:sid], sid,)
|
341
298
|
end
|
342
299
|
|
343
300
|
unless @tasks
|
344
|
-
@tasks = TaskList.new(
|
345
|
-
@version,
|
346
|
-
workspace_sid: @solution[:sid],
|
347
|
-
)
|
301
|
+
@tasks = TaskList.new(@version, workspace_sid: @solution[:sid],)
|
348
302
|
end
|
349
303
|
|
350
304
|
@tasks
|
@@ -358,18 +312,11 @@ module Twilio
|
|
358
312
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
359
313
|
|
360
314
|
if sid != :unset
|
361
|
-
return TaskQueueContext.new(
|
362
|
-
@version,
|
363
|
-
@solution[:sid],
|
364
|
-
sid,
|
365
|
-
)
|
315
|
+
return TaskQueueContext.new(@version, @solution[:sid], sid,)
|
366
316
|
end
|
367
317
|
|
368
318
|
unless @task_queues
|
369
|
-
@task_queues = TaskQueueList.new(
|
370
|
-
@version,
|
371
|
-
workspace_sid: @solution[:sid],
|
372
|
-
)
|
319
|
+
@task_queues = TaskQueueList.new(@version, workspace_sid: @solution[:sid],)
|
373
320
|
end
|
374
321
|
|
375
322
|
@task_queues
|
@@ -383,18 +330,11 @@ module Twilio
|
|
383
330
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
384
331
|
|
385
332
|
if sid != :unset
|
386
|
-
return WorkerContext.new(
|
387
|
-
@version,
|
388
|
-
@solution[:sid],
|
389
|
-
sid,
|
390
|
-
)
|
333
|
+
return WorkerContext.new(@version, @solution[:sid], sid,)
|
391
334
|
end
|
392
335
|
|
393
336
|
unless @workers
|
394
|
-
@workers = WorkerList.new(
|
395
|
-
@version,
|
396
|
-
workspace_sid: @solution[:sid],
|
397
|
-
)
|
337
|
+
@workers = WorkerList.new(@version, workspace_sid: @solution[:sid],)
|
398
338
|
end
|
399
339
|
|
400
340
|
@workers
|
@@ -408,18 +348,11 @@ module Twilio
|
|
408
348
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
409
349
|
|
410
350
|
if sid != :unset
|
411
|
-
return WorkflowContext.new(
|
412
|
-
@version,
|
413
|
-
@solution[:sid],
|
414
|
-
sid,
|
415
|
-
)
|
351
|
+
return WorkflowContext.new(@version, @solution[:sid], sid,)
|
416
352
|
end
|
417
353
|
|
418
354
|
unless @workflows
|
419
|
-
@workflows = WorkflowList.new(
|
420
|
-
@version,
|
421
|
-
workspace_sid: @solution[:sid],
|
422
|
-
)
|
355
|
+
@workflows = WorkflowList.new(@version, workspace_sid: @solution[:sid],)
|
423
356
|
end
|
424
357
|
|
425
358
|
@workflows
|
@@ -430,10 +363,7 @@ module Twilio
|
|
430
363
|
# @return [WorkspaceStatisticsList]
|
431
364
|
# @return [WorkspaceStatisticsContext]
|
432
365
|
def statistics
|
433
|
-
WorkspaceStatisticsContext.new(
|
434
|
-
@version,
|
435
|
-
@solution[:sid],
|
436
|
-
)
|
366
|
+
WorkspaceStatisticsContext.new(@version, @solution[:sid],)
|
437
367
|
end
|
438
368
|
|
439
369
|
##
|
@@ -441,10 +371,7 @@ module Twilio
|
|
441
371
|
# @return [WorkspaceRealTimeStatisticsList]
|
442
372
|
# @return [WorkspaceRealTimeStatisticsContext]
|
443
373
|
def real_time_statistics
|
444
|
-
WorkspaceRealTimeStatisticsContext.new(
|
445
|
-
@version,
|
446
|
-
@solution[:sid],
|
447
|
-
)
|
374
|
+
WorkspaceRealTimeStatisticsContext.new(@version, @solution[:sid],)
|
448
375
|
end
|
449
376
|
|
450
377
|
##
|
@@ -452,10 +379,7 @@ module Twilio
|
|
452
379
|
# @return [WorkspaceCumulativeStatisticsList]
|
453
380
|
# @return [WorkspaceCumulativeStatisticsContext]
|
454
381
|
def cumulative_statistics
|
455
|
-
WorkspaceCumulativeStatisticsContext.new(
|
456
|
-
@version,
|
457
|
-
@solution[:sid],
|
458
|
-
)
|
382
|
+
WorkspaceCumulativeStatisticsContext.new(@version, @solution[:sid],)
|
459
383
|
end
|
460
384
|
|
461
385
|
##
|
@@ -466,18 +390,11 @@ module Twilio
|
|
466
390
|
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
467
391
|
|
468
392
|
if sid != :unset
|
469
|
-
return TaskChannelContext.new(
|
470
|
-
@version,
|
471
|
-
@solution[:sid],
|
472
|
-
sid,
|
473
|
-
)
|
393
|
+
return TaskChannelContext.new(@version, @solution[:sid], sid,)
|
474
394
|
end
|
475
395
|
|
476
396
|
unless @task_channels
|
477
|
-
@task_channels = TaskChannelList.new(
|
478
|
-
@version,
|
479
|
-
workspace_sid: @solution[:sid],
|
480
|
-
)
|
397
|
+
@task_channels = TaskChannelList.new(@version, workspace_sid: @solution[:sid],)
|
481
398
|
end
|
482
399
|
|
483
400
|
@task_channels
|
@@ -522,9 +439,7 @@ module Twilio
|
|
522
439
|
|
523
440
|
# Context
|
524
441
|
@instance_context = nil
|
525
|
-
@params = {
|
526
|
-
'sid' => sid || @properties['sid'],
|
527
|
-
}
|
442
|
+
@params = {'sid' => sid || @properties['sid'],}
|
528
443
|
end
|
529
444
|
|
530
445
|
##
|
@@ -533,10 +448,7 @@ module Twilio
|
|
533
448
|
# @return [WorkspaceContext] WorkspaceContext for this WorkspaceInstance
|
534
449
|
def context
|
535
450
|
unless @instance_context
|
536
|
-
@instance_context = WorkspaceContext.new(
|
537
|
-
@version,
|
538
|
-
@params['sid'],
|
539
|
-
)
|
451
|
+
@instance_context = WorkspaceContext.new(@version, @params['sid'],)
|
540
452
|
end
|
541
453
|
@instance_context
|
542
454
|
end
|