twilio-ruby 5.0.0.rc18 → 5.0.0.rc19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/lib/twilio-ruby/jwt/access_token.rb +25 -0
- data/lib/twilio-ruby/rest/accounts.rb +40 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +35 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +102 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +352 -0
- data/lib/twilio-ruby/rest/api.rb +30 -34
- data/lib/twilio-ruby/rest/api/v2010.rb +28 -32
- data/lib/twilio-ruby/rest/api/v2010/account.rb +132 -150
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +71 -55
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +58 -58
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +37 -37
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +45 -45
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +39 -39
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +39 -39
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +39 -39
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +102 -123
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +33 -33
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +38 -38
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +52 -52
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +42 -37
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +83 -40
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +131 -43
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +42 -42
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +172 -96
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +404 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +332 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +62 -57
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +62 -57
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +62 -57
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +37 -37
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +78 -85
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +19 -19
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +47 -57
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +46 -46
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +40 -40
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +50 -50
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +36 -36
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +101 -68
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +372 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +356 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +42 -42
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +43 -43
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +37 -37
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +27 -16
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +48 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +43 -43
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +65 -60
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +43 -38
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +43 -38
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +48 -48
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +44 -44
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +20 -20
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +42 -42
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +78 -82
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +45 -73
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +52 -52
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +18 -18
- data/lib/twilio-ruby/rest/chat.rb +16 -9
- data/lib/twilio-ruby/rest/chat/v1.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +53 -47
- data/lib/twilio-ruby/rest/chat/v1/service.rb +446 -69
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +114 -69
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +363 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +99 -44
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +76 -54
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +45 -45
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +101 -46
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +223 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +44 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +381 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +633 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +513 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +363 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +406 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +418 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +373 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +433 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +223 -0
- data/lib/twilio-ruby/rest/client.rb +91 -75
- data/lib/twilio-ruby/rest/fax.rb +40 -0
- data/lib/twilio-ruby/rest/fax/v1.rb +35 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +397 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +16 -9
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +53 -47
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +446 -69
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +114 -69
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +363 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +99 -44
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +76 -54
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +45 -45
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +101 -46
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +223 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +44 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +381 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +633 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +513 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +363 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +406 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +418 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +373 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +433 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +223 -0
- data/lib/twilio-ruby/rest/lookups.rb +6 -6
- data/lib/twilio-ruby/rest/lookups/v1.rb +3 -3
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +30 -25
- data/lib/twilio-ruby/rest/messaging.rb +40 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +35 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +524 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +331 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +336 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +336 -0
- data/lib/twilio-ruby/rest/monitor.rb +7 -7
- data/lib/twilio-ruby/rest/monitor/v1.rb +4 -4
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +57 -85
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +63 -81
- data/lib/twilio-ruby/rest/notify.rb +7 -7
- data/lib/twilio-ruby/rest/notify/v1.rb +4 -4
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +53 -47
- data/lib/twilio-ruby/rest/notify/v1/service.rb +148 -60
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +70 -86
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +47 -33
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +206 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +418 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +247 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +405 -0
- data/lib/twilio-ruby/rest/preview.rb +34 -19
- data/lib/twilio-ruby/rest/preview/marketplace.rb +44 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +310 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +284 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +411 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +322 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +3 -3
- data/lib/twilio-ruby/rest/preview/sync/service.rb +72 -61
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +85 -46
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +377 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +79 -47
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +46 -46
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +377 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +79 -47
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +46 -46
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +377 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +12 -12
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +68 -45
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +137 -73
- data/lib/twilio-ruby/rest/preview/wireless/{device.rb → sim.rb} +127 -150
- data/lib/twilio-ruby/rest/preview/wireless/{device → sim}/usage.rb +49 -49
- data/lib/twilio-ruby/rest/pricing.rb +8 -8
- data/lib/twilio-ruby/rest/pricing/v1.rb +5 -5
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +16 -16
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +33 -33
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +33 -38
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +18 -18
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +33 -33
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +26 -26
- data/lib/twilio-ruby/rest/taskrouter.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +103 -82
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +48 -43
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +114 -75
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +50 -40
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -35
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +110 -78
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +31 -30
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +24 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +50 -40
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +45 -45
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +28 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +28 -23
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +60 -50
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +29 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +34 -29
- data/lib/twilio-ruby/rest/trunking.rb +6 -6
- data/lib/twilio-ruby/rest/trunking/v1.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +67 -67
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +39 -39
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +39 -39
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +47 -47
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +58 -58
- data/lib/twilio-ruby/rest/video.rb +44 -0
- data/lib/twilio-ruby/rest/video/v1.rb +44 -0
- data/lib/twilio-ruby/rest/video/v1/recording.rb +341 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +411 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +226 -0
- data/spec/integration/accounts/v1/credential_spec.rb +10 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/address_spec.rb +32 -24
- data/spec/integration/api/v2010/account/application_spec.rb +24 -24
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +11 -11
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +11 -11
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +14 -14
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +14 -14
- data/spec/integration/api/v2010/account/call/notification_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call/recording_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call_spec.rb +24 -24
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +97 -25
- data/spec/integration/api/v2010/account/conference_spec.rb +56 -17
- data/spec/integration/api/v2010/account/connect_app_spec.rb +15 -15
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +135 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +223 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +12 -12
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +12 -12
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +12 -12
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +32 -24
- data/spec/integration/api/v2010/account/key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +25 -3
- data/spec/integration/api/v2010/account/message/media_spec.rb +15 -15
- data/spec/integration/api/v2010/account/message_spec.rb +34 -27
- data/spec/integration/api/v2010/account/new_key_spec.rb +5 -5
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +5 -5
- data/spec/integration/api/v2010/account/notification_spec.rb +15 -15
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue/member_spec.rb +15 -15
- data/spec/integration/api/v2010/account/queue_spec.rb +30 -27
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +175 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +166 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +15 -15
- data/spec/integration/api/v2010/account/recording_spec.rb +16 -16
- data/spec/integration/api/v2010/account/short_code_spec.rb +15 -15
- data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip_spec.rb +1 -1
- data/spec/integration/api/v2010/account/token_spec.rb +6 -6
- data/spec/integration/api/v2010/account/transcription_spec.rb +15 -15
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/record_spec.rb +7 -7
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +27 -27
- data/spec/integration/api/v2010/account/usage_spec.rb +1 -1
- data/spec/integration/api/v2010/account/validation_request_spec.rb +23 -3
- data/spec/integration/api/v2010/account_spec.rb +20 -24
- data/spec/integration/chat/v1/credential_spec.rb +31 -31
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +210 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +102 -31
- data/spec/integration/chat/v1/service/channel/message_spec.rb +210 -16
- data/spec/integration/chat/v1/service/channel_spec.rb +71 -55
- data/spec/integration/chat/v1/service/role_spec.rb +33 -33
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +92 -0
- data/spec/integration/chat/v1/service/user_spec.rb +57 -33
- data/spec/integration/chat/v1/service_spec.rb +142 -106
- data/spec/integration/chat/v2/credential_spec.rb +223 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +210 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +284 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +294 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +275 -0
- data/spec/integration/chat/v2/service/role_spec.rb +263 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +92 -0
- data/spec/integration/chat/v2/service/user_spec.rb +266 -0
- data/spec/integration/chat/v2/service_spec.rb +325 -0
- data/spec/integration/fax/v1/fax_spec.rb +231 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +31 -31
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +210 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +102 -31
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +210 -16
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +71 -55
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +33 -33
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +92 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +57 -33
- data/spec/integration/ip_messaging/v1/service_spec.rb +142 -106
- data/spec/integration/ip_messaging/v2/credential_spec.rb +223 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +210 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +284 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +294 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +275 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +263 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +92 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +266 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +325 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +5 -5
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +170 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +173 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +173 -0
- data/spec/integration/messaging/v1/service_spec.rb +243 -0
- data/spec/integration/monitor/v1/alert_spec.rb +57 -57
- data/spec/integration/monitor/v1/event_spec.rb +11 -11
- data/spec/integration/notify/v1/credential_spec.rb +23 -23
- data/spec/integration/notify/v1/service/binding_spec.rb +88 -71
- data/spec/integration/notify/v1/service/notification_spec.rb +7 -5
- data/spec/integration/notify/v1/service/segment_spec.rb +84 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +118 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +235 -0
- data/spec/integration/notify/v1/service/user_spec.rb +213 -0
- data/spec/integration/notify/v1/service_spec.rb +50 -30
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +121 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +142 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +164 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +252 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/document_spec.rb +179 -17
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +167 -11
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +143 -9
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +167 -11
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +206 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +143 -9
- data/spec/integration/preview/sync/service_spec.rb +171 -11
- data/spec/integration/preview/wireless/command_spec.rb +120 -9
- data/spec/integration/preview/wireless/rate_plan_spec.rb +228 -7
- data/spec/integration/preview/wireless/sim/usage_spec.rb +49 -0
- data/spec/integration/preview/wireless/sim_spec.rb +184 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +101 -5
- data/spec/integration/pricing/v1/messaging_spec.rb +1 -1
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +11 -11
- data/spec/integration/pricing/v1/phone_number_spec.rb +1 -1
- data/spec/integration/pricing/v1/voice/country_spec.rb +11 -11
- data/spec/integration/pricing/v1/voice/number_spec.rb +5 -5
- data/spec/integration/pricing/v1/voice_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +29 -33
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +11 -11
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +15 -15
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +11 -11
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +12 -10
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +17 -16
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +52 -36
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +101 -46
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +15 -15
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +15 -15
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +6 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +6 -5
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +39 -27
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +13 -11
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +47 -35
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +10 -8
- data/spec/integration/taskrouter/v1/workspace_spec.rb +28 -24
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +62 -62
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +19 -19
- data/spec/integration/trunking/v1/trunk_spec.rb +23 -23
- data/spec/integration/video/v1/recording_spec.rb +120 -0
- data/spec/integration/video/v1/room_spec.rb +225 -0
- data/spec/jwt/access_token_spec.rb +22 -0
- metadata +158 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +0 -287
- data/spec/integration/api/v2010/account/sandbox_spec.rb +0 -99
- data/spec/integration/preview/wireless/device/usage_spec.rb +0 -25
- data/spec/integration/preview/wireless/device_spec.rb +0 -72
@@ -2,7 +2,7 @@
|
|
2
2
|
# This code was generated by
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
5
|
+
# / /
|
6
6
|
|
7
7
|
module Twilio
|
8
8
|
module REST
|
@@ -11,29 +11,36 @@ module Twilio
|
|
11
11
|
# Initialize the IpMessaging Domain
|
12
12
|
def initialize(twilio)
|
13
13
|
super
|
14
|
-
|
14
|
+
|
15
15
|
@base_url = 'https://ip-messaging.twilio.com'
|
16
16
|
@host = 'ip-messaging.twilio.com'
|
17
17
|
@port = 443
|
18
|
-
|
18
|
+
|
19
19
|
# Versions
|
20
20
|
@v1 = nil
|
21
|
+
@v2 = nil
|
21
22
|
end
|
22
|
-
|
23
|
+
|
23
24
|
##
|
24
25
|
# Version v1 of ip_messaging
|
25
26
|
def v1
|
26
27
|
@v1 ||= V1.new self
|
27
28
|
end
|
28
|
-
|
29
|
+
|
30
|
+
##
|
31
|
+
# Version v2 of ip_messaging
|
32
|
+
def v2
|
33
|
+
@v2 ||= V2.new self
|
34
|
+
end
|
35
|
+
|
29
36
|
def credentials
|
30
|
-
self.
|
37
|
+
self.v2.credentials
|
31
38
|
end
|
32
|
-
|
39
|
+
|
33
40
|
def services
|
34
|
-
self.
|
41
|
+
self.v2.services
|
35
42
|
end
|
36
|
-
|
43
|
+
|
37
44
|
##
|
38
45
|
# Provide a user friendly representation
|
39
46
|
def to_s
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# This code was generated by
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
5
|
+
# / /
|
6
6
|
|
7
7
|
module Twilio
|
8
8
|
module REST
|
@@ -16,7 +16,7 @@ module Twilio
|
|
16
16
|
@credentials = nil
|
17
17
|
@services = nil
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def credentials(sid=:unset)
|
21
21
|
if sid == :unset
|
22
22
|
@credentials ||= CredentialList.new self
|
@@ -24,7 +24,7 @@ module Twilio
|
|
24
24
|
CredentialContext.new(self, sid)
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
def services(sid=:unset)
|
29
29
|
if sid == :unset
|
30
30
|
@services ||= ServiceList.new self
|
@@ -32,7 +32,7 @@ module Twilio
|
|
32
32
|
ServiceContext.new(self, sid)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
##
|
37
37
|
# Provide a user friendly representation
|
38
38
|
def to_s
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# This code was generated by
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
5
|
+
# / /
|
6
6
|
|
7
7
|
module Twilio
|
8
8
|
module REST
|
@@ -15,12 +15,12 @@ module Twilio
|
|
15
15
|
# @return [CredentialList] CredentialList
|
16
16
|
def initialize(version)
|
17
17
|
super(version)
|
18
|
-
|
18
|
+
|
19
19
|
# Path Solution
|
20
20
|
@solution = {}
|
21
21
|
@uri = "/Credentials"
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
##
|
25
25
|
# Lists CredentialInstance records from the API as a list.
|
26
26
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
@@ -38,7 +38,7 @@ module Twilio
|
|
38
38
|
page_size: page_size
|
39
39
|
).entries
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
##
|
43
43
|
# Streams CredentialInstance records from the API as an Enumerable.
|
44
44
|
# This operation lazily loads records as efficiently as possible until the limit
|
@@ -52,14 +52,14 @@ module Twilio
|
|
52
52
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
53
53
|
def stream(limit: nil, page_size: nil)
|
54
54
|
limits = @version.read_limits(limit, page_size)
|
55
|
-
|
55
|
+
|
56
56
|
page = self.page(
|
57
57
|
page_size: limits[:page_size],
|
58
58
|
)
|
59
|
-
|
59
|
+
|
60
60
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
##
|
64
64
|
# When passed a block, yields CredentialInstance records from the API.
|
65
65
|
# This operation lazily loads records as efficiently as possible until the limit
|
@@ -72,16 +72,16 @@ module Twilio
|
|
72
72
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
73
73
|
def each
|
74
74
|
limits = @version.read_limits
|
75
|
-
|
75
|
+
|
76
76
|
page = self.page(
|
77
77
|
page_size: limits[:page_size],
|
78
78
|
)
|
79
|
-
|
79
|
+
|
80
80
|
@version.stream(page,
|
81
81
|
limit: limits[:limit],
|
82
82
|
page_limit: limits[:page_limit]).each {|x| yield x}
|
83
83
|
end
|
84
|
-
|
84
|
+
|
85
85
|
##
|
86
86
|
# Retrieve a single page of CredentialInstance records from the API.
|
87
87
|
# Request is executed immediately.
|
@@ -102,7 +102,7 @@ module Twilio
|
|
102
102
|
)
|
103
103
|
return CredentialPage.new(@version, response, @solution)
|
104
104
|
end
|
105
|
-
|
105
|
+
|
106
106
|
##
|
107
107
|
# Retrieve a single page of CredentialInstance records from the API.
|
108
108
|
# Request is executed immediately.
|
@@ -112,8 +112,9 @@ module Twilio
|
|
112
112
|
# @param [String] private_key The private_key
|
113
113
|
# @param [Boolean] sandbox The sandbox
|
114
114
|
# @param [String] api_key The api_key
|
115
|
+
# @param [String] secret The secret
|
115
116
|
# @return [CredentialInstance] Newly created CredentialInstance
|
116
|
-
def create(type: nil, friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil)
|
117
|
+
def create(type: nil, friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil, secret: nil)
|
117
118
|
data = {
|
118
119
|
'Type' => type,
|
119
120
|
'FriendlyName' => friendly_name,
|
@@ -121,27 +122,28 @@ module Twilio
|
|
121
122
|
'PrivateKey' => private_key,
|
122
123
|
'Sandbox' => sandbox,
|
123
124
|
'ApiKey' => api_key,
|
125
|
+
'Secret' => secret,
|
124
126
|
}
|
125
|
-
|
127
|
+
|
126
128
|
payload = @version.create(
|
127
129
|
'POST',
|
128
130
|
@uri,
|
129
131
|
data: data
|
130
132
|
)
|
131
|
-
|
133
|
+
|
132
134
|
return CredentialInstance.new(
|
133
135
|
@version,
|
134
136
|
payload,
|
135
137
|
)
|
136
138
|
end
|
137
|
-
|
139
|
+
|
138
140
|
##
|
139
141
|
# Provide a user friendly representation
|
140
142
|
def to_s
|
141
143
|
'#<Twilio.IpMessaging.V1.CredentialList>'
|
142
144
|
end
|
143
145
|
end
|
144
|
-
|
146
|
+
|
145
147
|
class CredentialPage < Page
|
146
148
|
##
|
147
149
|
# Initialize the CredentialPage
|
@@ -151,11 +153,11 @@ module Twilio
|
|
151
153
|
# @return [CredentialPage] CredentialPage
|
152
154
|
def initialize(version, response, solution)
|
153
155
|
super(version, response)
|
154
|
-
|
156
|
+
|
155
157
|
# Path Solution
|
156
158
|
@solution = solution
|
157
159
|
end
|
158
|
-
|
160
|
+
|
159
161
|
##
|
160
162
|
# Build an instance of CredentialInstance
|
161
163
|
# @param [Hash] payload Payload response from the API
|
@@ -166,14 +168,14 @@ module Twilio
|
|
166
168
|
payload,
|
167
169
|
)
|
168
170
|
end
|
169
|
-
|
171
|
+
|
170
172
|
##
|
171
173
|
# Provide a user friendly representation
|
172
174
|
def to_s
|
173
175
|
'<Twilio.IpMessaging.V1.CredentialPage>'
|
174
176
|
end
|
175
177
|
end
|
176
|
-
|
178
|
+
|
177
179
|
class CredentialContext < InstanceContext
|
178
180
|
##
|
179
181
|
# Initialize the CredentialContext
|
@@ -182,33 +184,33 @@ module Twilio
|
|
182
184
|
# @return [CredentialContext] CredentialContext
|
183
185
|
def initialize(version, sid)
|
184
186
|
super(version)
|
185
|
-
|
187
|
+
|
186
188
|
# Path Solution
|
187
189
|
@solution = {
|
188
190
|
sid: sid,
|
189
191
|
}
|
190
192
|
@uri = "/Credentials/#{@solution[:sid]}"
|
191
193
|
end
|
192
|
-
|
194
|
+
|
193
195
|
##
|
194
196
|
# Fetch a CredentialInstance
|
195
197
|
# @return [CredentialInstance] Fetched CredentialInstance
|
196
198
|
def fetch
|
197
199
|
params = {}
|
198
|
-
|
200
|
+
|
199
201
|
payload = @version.fetch(
|
200
202
|
'GET',
|
201
203
|
@uri,
|
202
204
|
params,
|
203
205
|
)
|
204
|
-
|
206
|
+
|
205
207
|
return CredentialInstance.new(
|
206
208
|
@version,
|
207
209
|
payload,
|
208
210
|
sid: @solution[:sid],
|
209
211
|
)
|
210
212
|
end
|
211
|
-
|
213
|
+
|
212
214
|
##
|
213
215
|
# Update the CredentialInstance
|
214
216
|
# @param [String] friendly_name The friendly_name
|
@@ -216,36 +218,38 @@ module Twilio
|
|
216
218
|
# @param [String] private_key The private_key
|
217
219
|
# @param [Boolean] sandbox The sandbox
|
218
220
|
# @param [String] api_key The api_key
|
221
|
+
# @param [String] secret The secret
|
219
222
|
# @return [CredentialInstance] Updated CredentialInstance
|
220
|
-
def update(friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil)
|
223
|
+
def update(friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil, secret: nil)
|
221
224
|
data = {
|
222
225
|
'FriendlyName' => friendly_name,
|
223
226
|
'Certificate' => certificate,
|
224
227
|
'PrivateKey' => private_key,
|
225
228
|
'Sandbox' => sandbox,
|
226
229
|
'ApiKey' => api_key,
|
230
|
+
'Secret' => secret,
|
227
231
|
}
|
228
|
-
|
232
|
+
|
229
233
|
payload = @version.update(
|
230
234
|
'POST',
|
231
235
|
@uri,
|
232
236
|
data: data,
|
233
237
|
)
|
234
|
-
|
238
|
+
|
235
239
|
return CredentialInstance.new(
|
236
240
|
@version,
|
237
241
|
payload,
|
238
242
|
sid: @solution[:sid],
|
239
243
|
)
|
240
244
|
end
|
241
|
-
|
245
|
+
|
242
246
|
##
|
243
247
|
# Deletes the CredentialInstance
|
244
248
|
# @return [Boolean] true if delete succeeds, true otherwise
|
245
249
|
def delete
|
246
250
|
return @version.delete('delete', @uri)
|
247
251
|
end
|
248
|
-
|
252
|
+
|
249
253
|
##
|
250
254
|
# Provide a user friendly representation
|
251
255
|
def to_s
|
@@ -253,7 +257,7 @@ module Twilio
|
|
253
257
|
"#<Twilio.IpMessaging.V1.CredentialContext #{context}>"
|
254
258
|
end
|
255
259
|
end
|
256
|
-
|
260
|
+
|
257
261
|
class CredentialInstance < InstanceResource
|
258
262
|
##
|
259
263
|
# Initialize the CredentialInstance
|
@@ -263,7 +267,7 @@ module Twilio
|
|
263
267
|
# @return [CredentialInstance] CredentialInstance
|
264
268
|
def initialize(version, payload, sid: nil)
|
265
269
|
super(version)
|
266
|
-
|
270
|
+
|
267
271
|
# Marshaled Properties
|
268
272
|
@properties = {
|
269
273
|
'sid' => payload['sid'],
|
@@ -275,14 +279,14 @@ module Twilio
|
|
275
279
|
'date_updated' => Twilio.deserialize_iso8601(payload['date_updated']),
|
276
280
|
'url' => payload['url'],
|
277
281
|
}
|
278
|
-
|
282
|
+
|
279
283
|
# Context
|
280
284
|
@instance_context = nil
|
281
285
|
@params = {
|
282
286
|
'sid' => sid || @properties['sid'],
|
283
287
|
}
|
284
288
|
end
|
285
|
-
|
289
|
+
|
286
290
|
##
|
287
291
|
# Generate an instance context for the instance, the context is capable of
|
288
292
|
# performing various actions. All instance actions are proxied to the context
|
@@ -297,46 +301,46 @@ module Twilio
|
|
297
301
|
end
|
298
302
|
@instance_context
|
299
303
|
end
|
300
|
-
|
304
|
+
|
301
305
|
def sid
|
302
306
|
@properties['sid']
|
303
307
|
end
|
304
|
-
|
308
|
+
|
305
309
|
def account_sid
|
306
310
|
@properties['account_sid']
|
307
311
|
end
|
308
|
-
|
312
|
+
|
309
313
|
def friendly_name
|
310
314
|
@properties['friendly_name']
|
311
315
|
end
|
312
|
-
|
316
|
+
|
313
317
|
def type
|
314
318
|
@properties['type']
|
315
319
|
end
|
316
|
-
|
320
|
+
|
317
321
|
def sandbox
|
318
322
|
@properties['sandbox']
|
319
323
|
end
|
320
|
-
|
324
|
+
|
321
325
|
def date_created
|
322
326
|
@properties['date_created']
|
323
327
|
end
|
324
|
-
|
328
|
+
|
325
329
|
def date_updated
|
326
330
|
@properties['date_updated']
|
327
331
|
end
|
328
|
-
|
332
|
+
|
329
333
|
def url
|
330
334
|
@properties['url']
|
331
335
|
end
|
332
|
-
|
336
|
+
|
333
337
|
##
|
334
338
|
# Fetch a CredentialInstance
|
335
339
|
# @return [CredentialInstance] Fetched CredentialInstance
|
336
340
|
def fetch
|
337
341
|
context.fetch
|
338
342
|
end
|
339
|
-
|
343
|
+
|
340
344
|
##
|
341
345
|
# Update the CredentialInstance
|
342
346
|
# @param [String] friendly_name The friendly_name
|
@@ -344,24 +348,26 @@ module Twilio
|
|
344
348
|
# @param [String] private_key The private_key
|
345
349
|
# @param [Boolean] sandbox The sandbox
|
346
350
|
# @param [String] api_key The api_key
|
351
|
+
# @param [String] secret The secret
|
347
352
|
# @return [CredentialInstance] Updated CredentialInstance
|
348
|
-
def update(friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil)
|
353
|
+
def update(friendly_name: nil, certificate: nil, private_key: nil, sandbox: nil, api_key: nil, secret: nil)
|
349
354
|
context.update(
|
350
355
|
friendly_name: friendly_name,
|
351
356
|
certificate: certificate,
|
352
357
|
private_key: private_key,
|
353
358
|
sandbox: sandbox,
|
354
359
|
api_key: api_key,
|
360
|
+
secret: secret,
|
355
361
|
)
|
356
362
|
end
|
357
|
-
|
363
|
+
|
358
364
|
##
|
359
365
|
# Deletes the CredentialInstance
|
360
366
|
# @return [Boolean] true if delete succeeds, true otherwise
|
361
367
|
def delete
|
362
368
|
context.delete
|
363
369
|
end
|
364
|
-
|
370
|
+
|
365
371
|
##
|
366
372
|
# Provide a user friendly representation
|
367
373
|
def to_s
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# This code was generated by
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
-
# / /
|
5
|
+
# / /
|
6
6
|
|
7
7
|
module Twilio
|
8
8
|
module REST
|
@@ -15,12 +15,12 @@ module Twilio
|
|
15
15
|
# @return [ServiceList] ServiceList
|
16
16
|
def initialize(version)
|
17
17
|
super(version)
|
18
|
-
|
18
|
+
|
19
19
|
# Path Solution
|
20
20
|
@solution = {}
|
21
21
|
@uri = "/Services"
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
##
|
25
25
|
# Retrieve a single page of ServiceInstance records from the API.
|
26
26
|
# Request is executed immediately.
|
@@ -30,19 +30,19 @@ module Twilio
|
|
30
30
|
data = {
|
31
31
|
'FriendlyName' => friendly_name,
|
32
32
|
}
|
33
|
-
|
33
|
+
|
34
34
|
payload = @version.create(
|
35
35
|
'POST',
|
36
36
|
@uri,
|
37
37
|
data: data
|
38
38
|
)
|
39
|
-
|
39
|
+
|
40
40
|
return ServiceInstance.new(
|
41
41
|
@version,
|
42
42
|
payload,
|
43
43
|
)
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
##
|
47
47
|
# Lists ServiceInstance records from the API as a list.
|
48
48
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
@@ -60,7 +60,7 @@ module Twilio
|
|
60
60
|
page_size: page_size
|
61
61
|
).entries
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
##
|
65
65
|
# Streams ServiceInstance records from the API as an Enumerable.
|
66
66
|
# This operation lazily loads records as efficiently as possible until the limit
|
@@ -74,14 +74,14 @@ module Twilio
|
|
74
74
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
75
75
|
def stream(limit: nil, page_size: nil)
|
76
76
|
limits = @version.read_limits(limit, page_size)
|
77
|
-
|
77
|
+
|
78
78
|
page = self.page(
|
79
79
|
page_size: limits[:page_size],
|
80
80
|
)
|
81
|
-
|
81
|
+
|
82
82
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
83
83
|
end
|
84
|
-
|
84
|
+
|
85
85
|
##
|
86
86
|
# When passed a block, yields ServiceInstance records from the API.
|
87
87
|
# This operation lazily loads records as efficiently as possible until the limit
|
@@ -94,16 +94,16 @@ module Twilio
|
|
94
94
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
95
95
|
def each
|
96
96
|
limits = @version.read_limits
|
97
|
-
|
97
|
+
|
98
98
|
page = self.page(
|
99
99
|
page_size: limits[:page_size],
|
100
100
|
)
|
101
|
-
|
101
|
+
|
102
102
|
@version.stream(page,
|
103
103
|
limit: limits[:limit],
|
104
104
|
page_limit: limits[:page_limit]).each {|x| yield x}
|
105
105
|
end
|
106
|
-
|
106
|
+
|
107
107
|
##
|
108
108
|
# Retrieve a single page of ServiceInstance records from the API.
|
109
109
|
# Request is executed immediately.
|
@@ -124,14 +124,14 @@ module Twilio
|
|
124
124
|
)
|
125
125
|
return ServicePage.new(@version, response, @solution)
|
126
126
|
end
|
127
|
-
|
127
|
+
|
128
128
|
##
|
129
129
|
# Provide a user friendly representation
|
130
130
|
def to_s
|
131
131
|
'#<Twilio.IpMessaging.V1.ServiceList>'
|
132
132
|
end
|
133
133
|
end
|
134
|
-
|
134
|
+
|
135
135
|
class ServicePage < Page
|
136
136
|
##
|
137
137
|
# Initialize the ServicePage
|
@@ -141,11 +141,11 @@ module Twilio
|
|
141
141
|
# @return [ServicePage] ServicePage
|
142
142
|
def initialize(version, response, solution)
|
143
143
|
super(version, response)
|
144
|
-
|
144
|
+
|
145
145
|
# Path Solution
|
146
146
|
@solution = solution
|
147
147
|
end
|
148
|
-
|
148
|
+
|
149
149
|
##
|
150
150
|
# Build an instance of ServiceInstance
|
151
151
|
# @param [Hash] payload Payload response from the API
|
@@ -156,14 +156,14 @@ module Twilio
|
|
156
156
|
payload,
|
157
157
|
)
|
158
158
|
end
|
159
|
-
|
159
|
+
|
160
160
|
##
|
161
161
|
# Provide a user friendly representation
|
162
162
|
def to_s
|
163
163
|
'<Twilio.IpMessaging.V1.ServicePage>'
|
164
164
|
end
|
165
165
|
end
|
166
|
-
|
166
|
+
|
167
167
|
class ServiceContext < InstanceContext
|
168
168
|
##
|
169
169
|
# Initialize the ServiceContext
|
@@ -172,45 +172,45 @@ module Twilio
|
|
172
172
|
# @return [ServiceContext] ServiceContext
|
173
173
|
def initialize(version, sid)
|
174
174
|
super(version)
|
175
|
-
|
175
|
+
|
176
176
|
# Path Solution
|
177
177
|
@solution = {
|
178
178
|
sid: sid,
|
179
179
|
}
|
180
180
|
@uri = "/Services/#{@solution[:sid]}"
|
181
|
-
|
181
|
+
|
182
182
|
# Dependents
|
183
183
|
@channels = nil
|
184
184
|
@roles = nil
|
185
185
|
@users = nil
|
186
186
|
end
|
187
|
-
|
187
|
+
|
188
188
|
##
|
189
189
|
# Fetch a ServiceInstance
|
190
190
|
# @return [ServiceInstance] Fetched ServiceInstance
|
191
191
|
def fetch
|
192
192
|
params = {}
|
193
|
-
|
193
|
+
|
194
194
|
payload = @version.fetch(
|
195
195
|
'GET',
|
196
196
|
@uri,
|
197
197
|
params,
|
198
198
|
)
|
199
|
-
|
199
|
+
|
200
200
|
return ServiceInstance.new(
|
201
201
|
@version,
|
202
202
|
payload,
|
203
203
|
sid: @solution[:sid],
|
204
204
|
)
|
205
205
|
end
|
206
|
-
|
206
|
+
|
207
207
|
##
|
208
208
|
# Deletes the ServiceInstance
|
209
209
|
# @return [Boolean] true if delete succeeds, true otherwise
|
210
210
|
def delete
|
211
211
|
return @version.delete('delete', @uri)
|
212
212
|
end
|
213
|
-
|
213
|
+
|
214
214
|
##
|
215
215
|
# Update the ServiceInstance
|
216
216
|
# @param [String] friendly_name The friendly_name
|
@@ -219,35 +219,206 @@ module Twilio
|
|
219
219
|
# @param [String] default_channel_creator_role_sid The
|
220
220
|
# default_channel_creator_role_sid
|
221
221
|
# @param [Boolean] read_status_enabled The read_status_enabled
|
222
|
+
# @param [Boolean] reachability_enabled The reachability_enabled
|
222
223
|
# @param [String] typing_indicator_timeout The typing_indicator_timeout
|
223
224
|
# @param [String] consumption_report_interval The consumption_report_interval
|
224
|
-
# @param [
|
225
|
+
# @param [Boolean] notifications_new_message_enabled The
|
226
|
+
# notifications.new_message.enabled
|
227
|
+
# @param [String] notifications_new_message_template The
|
228
|
+
# notifications.new_message.template
|
229
|
+
# @param [Boolean] notifications_added_to_channel_enabled The
|
230
|
+
# notifications.added_to_channel.enabled
|
231
|
+
# @param [String] notifications_added_to_channel_template The
|
232
|
+
# notifications.added_to_channel.template
|
233
|
+
# @param [Boolean] notifications_removed_from_channel_enabled The
|
234
|
+
# notifications.removed_from_channel.enabled
|
235
|
+
# @param [String] notifications_removed_from_channel_template The
|
236
|
+
# notifications.removed_from_channel.template
|
237
|
+
# @param [Boolean] notifications_invited_to_channel_enabled The
|
238
|
+
# notifications.invited_to_channel.enabled
|
239
|
+
# @param [String] notifications_invited_to_channel_template The
|
240
|
+
# notifications.invited_to_channel.template
|
241
|
+
# @param [String] pre_webhook_url The pre_webhook_url
|
242
|
+
# @param [String] post_webhook_url The post_webhook_url
|
243
|
+
# @param [String] webhook_method The webhook_method
|
244
|
+
# @param [String] webhook_filters The webhook_filters
|
245
|
+
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
246
|
+
# @param [String] webhooks_on_message_send_method The
|
247
|
+
# webhooks.on_message_send.method
|
248
|
+
# @param [String] webhooks_on_message_send_format The
|
249
|
+
# webhooks.on_message_send.format
|
250
|
+
# @param [String] webhooks_on_message_update_url The
|
251
|
+
# webhooks.on_message_update.url
|
252
|
+
# @param [String] webhooks_on_message_update_method The
|
253
|
+
# webhooks.on_message_update.method
|
254
|
+
# @param [String] webhooks_on_message_update_format The
|
255
|
+
# webhooks.on_message_update.format
|
256
|
+
# @param [String] webhooks_on_message_remove_url The
|
257
|
+
# webhooks.on_message_remove.url
|
258
|
+
# @param [String] webhooks_on_message_remove_method The
|
259
|
+
# webhooks.on_message_remove.method
|
260
|
+
# @param [String] webhooks_on_message_remove_format The
|
261
|
+
# webhooks.on_message_remove.format
|
262
|
+
# @param [String] webhooks_on_channel_add_url The webhooks.on_channel_add.url
|
263
|
+
# @param [String] webhooks_on_channel_add_method The
|
264
|
+
# webhooks.on_channel_add.method
|
265
|
+
# @param [String] webhooks_on_channel_add_format The
|
266
|
+
# webhooks.on_channel_add.format
|
267
|
+
# @param [String] webhooks_on_channel_destroy_url The
|
268
|
+
# webhooks.on_channel_destroy.url
|
269
|
+
# @param [String] webhooks_on_channel_destroy_method The
|
270
|
+
# webhooks.on_channel_destroy.method
|
271
|
+
# @param [String] webhooks_on_channel_destroy_format The
|
272
|
+
# webhooks.on_channel_destroy.format
|
273
|
+
# @param [String] webhooks_on_channel_update_url The
|
274
|
+
# webhooks.on_channel_update.url
|
275
|
+
# @param [String] webhooks_on_channel_update_method The
|
276
|
+
# webhooks.on_channel_update.method
|
277
|
+
# @param [String] webhooks_on_channel_update_format The
|
278
|
+
# webhooks.on_channel_update.format
|
279
|
+
# @param [String] webhooks_on_member_add_url The webhooks.on_member_add.url
|
280
|
+
# @param [String] webhooks_on_member_add_method The webhooks.on_member_add.method
|
281
|
+
# @param [String] webhooks_on_member_add_format The webhooks.on_member_add.format
|
282
|
+
# @param [String] webhooks_on_member_remove_url The webhooks.on_member_remove.url
|
283
|
+
# @param [String] webhooks_on_member_remove_method The
|
284
|
+
# webhooks.on_member_remove.method
|
285
|
+
# @param [String] webhooks_on_member_remove_format The
|
286
|
+
# webhooks.on_member_remove.format
|
287
|
+
# @param [String] webhooks_on_message_sent_url The webhooks.on_message_sent.url
|
288
|
+
# @param [String] webhooks_on_message_sent_method The
|
289
|
+
# webhooks.on_message_sent.method
|
290
|
+
# @param [String] webhooks_on_message_sent_format The
|
291
|
+
# webhooks.on_message_sent.format
|
292
|
+
# @param [String] webhooks_on_message_updated_url The
|
293
|
+
# webhooks.on_message_updated.url
|
294
|
+
# @param [String] webhooks_on_message_updated_method The
|
295
|
+
# webhooks.on_message_updated.method
|
296
|
+
# @param [String] webhooks_on_message_updated_format The
|
297
|
+
# webhooks.on_message_updated.format
|
298
|
+
# @param [String] webhooks_on_message_removed_url The
|
299
|
+
# webhooks.on_message_removed.url
|
300
|
+
# @param [String] webhooks_on_message_removed_method The
|
301
|
+
# webhooks.on_message_removed.method
|
302
|
+
# @param [String] webhooks_on_message_removed_format The
|
303
|
+
# webhooks.on_message_removed.format
|
304
|
+
# @param [String] webhooks_on_channel_added_url The webhooks.on_channel_added.url
|
305
|
+
# @param [String] webhooks_on_channel_added_method The
|
306
|
+
# webhooks.on_channel_added.method
|
307
|
+
# @param [String] webhooks_on_channel_added_format The
|
308
|
+
# webhooks.on_channel_added.format
|
309
|
+
# @param [String] webhooks_on_channel_destroyed_url The
|
310
|
+
# webhooks.on_channel_destroyed.url
|
311
|
+
# @param [String] webhooks_on_channel_destroyed_method The
|
312
|
+
# webhooks.on_channel_destroyed.method
|
313
|
+
# @param [String] webhooks_on_channel_destroyed_format The
|
314
|
+
# webhooks.on_channel_destroyed.format
|
315
|
+
# @param [String] webhooks_on_channel_updated_url The
|
316
|
+
# webhooks.on_channel_updated.url
|
317
|
+
# @param [String] webhooks_on_channel_updated_method The
|
318
|
+
# webhooks.on_channel_updated.method
|
319
|
+
# @param [String] webhooks_on_channel_updated_format The
|
320
|
+
# webhooks.on_channel_updated.format
|
321
|
+
# @param [String] webhooks_on_member_added_url The webhooks.on_member_added.url
|
322
|
+
# @param [String] webhooks_on_member_added_method The
|
323
|
+
# webhooks.on_member_added.method
|
324
|
+
# @param [String] webhooks_on_member_added_format The
|
325
|
+
# webhooks.on_member_added.format
|
326
|
+
# @param [String] webhooks_on_member_removed_url The
|
327
|
+
# webhooks.on_member_removed.url
|
328
|
+
# @param [String] webhooks_on_member_removed_method The
|
329
|
+
# webhooks.on_member_removed.method
|
330
|
+
# @param [String] webhooks_on_member_removed_format The
|
331
|
+
# webhooks.on_member_removed.format
|
332
|
+
# @param [String] limits_channel_members The limits.channel_members
|
333
|
+
# @param [String] limits_user_channels The limits.user_channels
|
225
334
|
# @return [ServiceInstance] Updated ServiceInstance
|
226
|
-
def update(friendly_name: nil, default_service_role_sid: nil, default_channel_role_sid: nil, default_channel_creator_role_sid: nil, read_status_enabled: nil, typing_indicator_timeout: nil, consumption_report_interval: nil,
|
335
|
+
def update(friendly_name: nil, default_service_role_sid: nil, default_channel_role_sid: nil, default_channel_creator_role_sid: nil, read_status_enabled: nil, reachability_enabled: nil, typing_indicator_timeout: nil, consumption_report_interval: nil, notifications_new_message_enabled: nil, notifications_new_message_template: nil, notifications_added_to_channel_enabled: nil, notifications_added_to_channel_template: nil, notifications_removed_from_channel_enabled: nil, notifications_removed_from_channel_template: nil, notifications_invited_to_channel_enabled: nil, notifications_invited_to_channel_template: nil, pre_webhook_url: nil, post_webhook_url: nil, webhook_method: nil, webhook_filters: nil, webhooks_on_message_send_url: nil, webhooks_on_message_send_method: nil, webhooks_on_message_send_format: nil, webhooks_on_message_update_url: nil, webhooks_on_message_update_method: nil, webhooks_on_message_update_format: nil, webhooks_on_message_remove_url: nil, webhooks_on_message_remove_method: nil, webhooks_on_message_remove_format: nil, webhooks_on_channel_add_url: nil, webhooks_on_channel_add_method: nil, webhooks_on_channel_add_format: nil, webhooks_on_channel_destroy_url: nil, webhooks_on_channel_destroy_method: nil, webhooks_on_channel_destroy_format: nil, webhooks_on_channel_update_url: nil, webhooks_on_channel_update_method: nil, webhooks_on_channel_update_format: nil, webhooks_on_member_add_url: nil, webhooks_on_member_add_method: nil, webhooks_on_member_add_format: nil, webhooks_on_member_remove_url: nil, webhooks_on_member_remove_method: nil, webhooks_on_member_remove_format: nil, webhooks_on_message_sent_url: nil, webhooks_on_message_sent_method: nil, webhooks_on_message_sent_format: nil, webhooks_on_message_updated_url: nil, webhooks_on_message_updated_method: nil, webhooks_on_message_updated_format: nil, webhooks_on_message_removed_url: nil, webhooks_on_message_removed_method: nil, webhooks_on_message_removed_format: nil, webhooks_on_channel_added_url: nil, webhooks_on_channel_added_method: nil, webhooks_on_channel_added_format: nil, webhooks_on_channel_destroyed_url: nil, webhooks_on_channel_destroyed_method: nil, webhooks_on_channel_destroyed_format: nil, webhooks_on_channel_updated_url: nil, webhooks_on_channel_updated_method: nil, webhooks_on_channel_updated_format: nil, webhooks_on_member_added_url: nil, webhooks_on_member_added_method: nil, webhooks_on_member_added_format: nil, webhooks_on_member_removed_url: nil, webhooks_on_member_removed_method: nil, webhooks_on_member_removed_format: nil, limits_channel_members: nil, limits_user_channels: nil)
|
227
336
|
data = {
|
228
337
|
'FriendlyName' => friendly_name,
|
229
338
|
'DefaultServiceRoleSid' => default_service_role_sid,
|
230
339
|
'DefaultChannelRoleSid' => default_channel_role_sid,
|
231
340
|
'DefaultChannelCreatorRoleSid' => default_channel_creator_role_sid,
|
232
341
|
'ReadStatusEnabled' => read_status_enabled,
|
342
|
+
'ReachabilityEnabled' => reachability_enabled,
|
233
343
|
'TypingIndicatorTimeout' => typing_indicator_timeout,
|
234
344
|
'ConsumptionReportInterval' => consumption_report_interval,
|
235
|
-
'
|
345
|
+
'Notifications.NewMessage.Enabled' => notifications_new_message_enabled,
|
346
|
+
'Notifications.NewMessage.Template' => notifications_new_message_template,
|
347
|
+
'Notifications.AddedToChannel.Enabled' => notifications_added_to_channel_enabled,
|
348
|
+
'Notifications.AddedToChannel.Template' => notifications_added_to_channel_template,
|
349
|
+
'Notifications.RemovedFromChannel.Enabled' => notifications_removed_from_channel_enabled,
|
350
|
+
'Notifications.RemovedFromChannel.Template' => notifications_removed_from_channel_template,
|
351
|
+
'Notifications.InvitedToChannel.Enabled' => notifications_invited_to_channel_enabled,
|
352
|
+
'Notifications.InvitedToChannel.Template' => notifications_invited_to_channel_template,
|
353
|
+
'PreWebhookUrl' => pre_webhook_url,
|
354
|
+
'PostWebhookUrl' => post_webhook_url,
|
355
|
+
'WebhookMethod' => webhook_method,
|
356
|
+
'WebhookFilters' => webhook_filters,
|
357
|
+
'Webhooks.OnMessageSend.Url' => webhooks_on_message_send_url,
|
358
|
+
'Webhooks.OnMessageSend.Method' => webhooks_on_message_send_method,
|
359
|
+
'Webhooks.OnMessageSend.Format' => webhooks_on_message_send_format,
|
360
|
+
'Webhooks.OnMessageUpdate.Url' => webhooks_on_message_update_url,
|
361
|
+
'Webhooks.OnMessageUpdate.Method' => webhooks_on_message_update_method,
|
362
|
+
'Webhooks.OnMessageUpdate.Format' => webhooks_on_message_update_format,
|
363
|
+
'Webhooks.OnMessageRemove.Url' => webhooks_on_message_remove_url,
|
364
|
+
'Webhooks.OnMessageRemove.Method' => webhooks_on_message_remove_method,
|
365
|
+
'Webhooks.OnMessageRemove.Format' => webhooks_on_message_remove_format,
|
366
|
+
'Webhooks.OnChannelAdd.Url' => webhooks_on_channel_add_url,
|
367
|
+
'Webhooks.OnChannelAdd.Method' => webhooks_on_channel_add_method,
|
368
|
+
'Webhooks.OnChannelAdd.Format' => webhooks_on_channel_add_format,
|
369
|
+
'Webhooks.OnChannelDestroy.Url' => webhooks_on_channel_destroy_url,
|
370
|
+
'Webhooks.OnChannelDestroy.Method' => webhooks_on_channel_destroy_method,
|
371
|
+
'Webhooks.OnChannelDestroy.Format' => webhooks_on_channel_destroy_format,
|
372
|
+
'Webhooks.OnChannelUpdate.Url' => webhooks_on_channel_update_url,
|
373
|
+
'Webhooks.OnChannelUpdate.Method' => webhooks_on_channel_update_method,
|
374
|
+
'Webhooks.OnChannelUpdate.Format' => webhooks_on_channel_update_format,
|
375
|
+
'Webhooks.OnMemberAdd.Url' => webhooks_on_member_add_url,
|
376
|
+
'Webhooks.OnMemberAdd.Method' => webhooks_on_member_add_method,
|
377
|
+
'Webhooks.OnMemberAdd.Format' => webhooks_on_member_add_format,
|
378
|
+
'Webhooks.OnMemberRemove.Url' => webhooks_on_member_remove_url,
|
379
|
+
'Webhooks.OnMemberRemove.Method' => webhooks_on_member_remove_method,
|
380
|
+
'Webhooks.OnMemberRemove.Format' => webhooks_on_member_remove_format,
|
381
|
+
'Webhooks.OnMessageSent.Url' => webhooks_on_message_sent_url,
|
382
|
+
'Webhooks.OnMessageSent.Method' => webhooks_on_message_sent_method,
|
383
|
+
'Webhooks.OnMessageSent.Format' => webhooks_on_message_sent_format,
|
384
|
+
'Webhooks.OnMessageUpdated.Url' => webhooks_on_message_updated_url,
|
385
|
+
'Webhooks.OnMessageUpdated.Method' => webhooks_on_message_updated_method,
|
386
|
+
'Webhooks.OnMessageUpdated.Format' => webhooks_on_message_updated_format,
|
387
|
+
'Webhooks.OnMessageRemoved.Url' => webhooks_on_message_removed_url,
|
388
|
+
'Webhooks.OnMessageRemoved.Method' => webhooks_on_message_removed_method,
|
389
|
+
'Webhooks.OnMessageRemoved.Format' => webhooks_on_message_removed_format,
|
390
|
+
'Webhooks.OnChannelAdded.Url' => webhooks_on_channel_added_url,
|
391
|
+
'Webhooks.OnChannelAdded.Method' => webhooks_on_channel_added_method,
|
392
|
+
'Webhooks.OnChannelAdded.Format' => webhooks_on_channel_added_format,
|
393
|
+
'Webhooks.OnChannelDestroyed.Url' => webhooks_on_channel_destroyed_url,
|
394
|
+
'Webhooks.OnChannelDestroyed.Method' => webhooks_on_channel_destroyed_method,
|
395
|
+
'Webhooks.OnChannelDestroyed.Format' => webhooks_on_channel_destroyed_format,
|
396
|
+
'Webhooks.OnChannelUpdated.Url' => webhooks_on_channel_updated_url,
|
397
|
+
'Webhooks.OnChannelUpdated.Method' => webhooks_on_channel_updated_method,
|
398
|
+
'Webhooks.OnChannelUpdated.Format' => webhooks_on_channel_updated_format,
|
399
|
+
'Webhooks.OnMemberAdded.Url' => webhooks_on_member_added_url,
|
400
|
+
'Webhooks.OnMemberAdded.Method' => webhooks_on_member_added_method,
|
401
|
+
'Webhooks.OnMemberAdded.Format' => webhooks_on_member_added_format,
|
402
|
+
'Webhooks.OnMemberRemoved.Url' => webhooks_on_member_removed_url,
|
403
|
+
'Webhooks.OnMemberRemoved.Method' => webhooks_on_member_removed_method,
|
404
|
+
'Webhooks.OnMemberRemoved.Format' => webhooks_on_member_removed_format,
|
405
|
+
'Limits.ChannelMembers' => limits_channel_members,
|
406
|
+
'Limits.UserChannels' => limits_user_channels,
|
236
407
|
}
|
237
|
-
|
408
|
+
|
238
409
|
payload = @version.update(
|
239
410
|
'POST',
|
240
411
|
@uri,
|
241
412
|
data: data,
|
242
413
|
)
|
243
|
-
|
414
|
+
|
244
415
|
return ServiceInstance.new(
|
245
416
|
@version,
|
246
417
|
payload,
|
247
418
|
sid: @solution[:sid],
|
248
419
|
)
|
249
420
|
end
|
250
|
-
|
421
|
+
|
251
422
|
##
|
252
423
|
# Access the channels
|
253
424
|
# @return [ChannelList] ChannelList
|
@@ -259,17 +430,17 @@ module Twilio
|
|
259
430
|
sid,
|
260
431
|
)
|
261
432
|
end
|
262
|
-
|
433
|
+
|
263
434
|
unless @channels
|
264
435
|
@channels = ChannelList.new(
|
265
436
|
@version,
|
266
437
|
service_sid: @solution[:sid],
|
267
438
|
)
|
268
439
|
end
|
269
|
-
|
440
|
+
|
270
441
|
@channels
|
271
442
|
end
|
272
|
-
|
443
|
+
|
273
444
|
##
|
274
445
|
# Access the roles
|
275
446
|
# @return [RoleList] RoleList
|
@@ -281,17 +452,17 @@ module Twilio
|
|
281
452
|
sid,
|
282
453
|
)
|
283
454
|
end
|
284
|
-
|
455
|
+
|
285
456
|
unless @roles
|
286
457
|
@roles = RoleList.new(
|
287
458
|
@version,
|
288
459
|
service_sid: @solution[:sid],
|
289
460
|
)
|
290
461
|
end
|
291
|
-
|
462
|
+
|
292
463
|
@roles
|
293
464
|
end
|
294
|
-
|
465
|
+
|
295
466
|
##
|
296
467
|
# Access the users
|
297
468
|
# @return [UserList] UserList
|
@@ -303,17 +474,17 @@ module Twilio
|
|
303
474
|
sid,
|
304
475
|
)
|
305
476
|
end
|
306
|
-
|
477
|
+
|
307
478
|
unless @users
|
308
479
|
@users = UserList.new(
|
309
480
|
@version,
|
310
481
|
service_sid: @solution[:sid],
|
311
482
|
)
|
312
483
|
end
|
313
|
-
|
484
|
+
|
314
485
|
@users
|
315
486
|
end
|
316
|
-
|
487
|
+
|
317
488
|
##
|
318
489
|
# Provide a user friendly representation
|
319
490
|
def to_s
|
@@ -321,7 +492,7 @@ module Twilio
|
|
321
492
|
"#<Twilio.IpMessaging.V1.ServiceContext #{context}>"
|
322
493
|
end
|
323
494
|
end
|
324
|
-
|
495
|
+
|
325
496
|
class ServiceInstance < InstanceResource
|
326
497
|
##
|
327
498
|
# Initialize the ServiceInstance
|
@@ -331,7 +502,7 @@ module Twilio
|
|
331
502
|
# @return [ServiceInstance] ServiceInstance
|
332
503
|
def initialize(version, payload, sid: nil)
|
333
504
|
super(version)
|
334
|
-
|
505
|
+
|
335
506
|
# Marshaled Properties
|
336
507
|
@properties = {
|
337
508
|
'sid' => payload['sid'],
|
@@ -343,20 +514,27 @@ module Twilio
|
|
343
514
|
'default_channel_role_sid' => payload['default_channel_role_sid'],
|
344
515
|
'default_channel_creator_role_sid' => payload['default_channel_creator_role_sid'],
|
345
516
|
'read_status_enabled' => payload['read_status_enabled'],
|
517
|
+
'reachability_enabled' => payload['reachability_enabled'],
|
346
518
|
'typing_indicator_timeout' => payload['typing_indicator_timeout'].to_i,
|
347
519
|
'consumption_report_interval' => payload['consumption_report_interval'].to_i,
|
520
|
+
'limits' => payload['limits'],
|
348
521
|
'webhooks' => payload['webhooks'],
|
522
|
+
'pre_webhook_url' => payload['pre_webhook_url'],
|
523
|
+
'post_webhook_url' => payload['post_webhook_url'],
|
524
|
+
'webhook_method' => payload['webhook_method'],
|
525
|
+
'webhook_filters' => payload['webhook_filters'],
|
526
|
+
'notifications' => payload['notifications'],
|
349
527
|
'url' => payload['url'],
|
350
528
|
'links' => payload['links'],
|
351
529
|
}
|
352
|
-
|
530
|
+
|
353
531
|
# Context
|
354
532
|
@instance_context = nil
|
355
533
|
@params = {
|
356
534
|
'sid' => sid || @properties['sid'],
|
357
535
|
}
|
358
536
|
end
|
359
|
-
|
537
|
+
|
360
538
|
##
|
361
539
|
# Generate an instance context for the instance, the context is capable of
|
362
540
|
# performing various actions. All instance actions are proxied to the context
|
@@ -371,77 +549,105 @@ module Twilio
|
|
371
549
|
end
|
372
550
|
@instance_context
|
373
551
|
end
|
374
|
-
|
552
|
+
|
375
553
|
def sid
|
376
554
|
@properties['sid']
|
377
555
|
end
|
378
|
-
|
556
|
+
|
379
557
|
def account_sid
|
380
558
|
@properties['account_sid']
|
381
559
|
end
|
382
|
-
|
560
|
+
|
383
561
|
def friendly_name
|
384
562
|
@properties['friendly_name']
|
385
563
|
end
|
386
|
-
|
564
|
+
|
387
565
|
def date_created
|
388
566
|
@properties['date_created']
|
389
567
|
end
|
390
|
-
|
568
|
+
|
391
569
|
def date_updated
|
392
570
|
@properties['date_updated']
|
393
571
|
end
|
394
|
-
|
572
|
+
|
395
573
|
def default_service_role_sid
|
396
574
|
@properties['default_service_role_sid']
|
397
575
|
end
|
398
|
-
|
576
|
+
|
399
577
|
def default_channel_role_sid
|
400
578
|
@properties['default_channel_role_sid']
|
401
579
|
end
|
402
|
-
|
580
|
+
|
403
581
|
def default_channel_creator_role_sid
|
404
582
|
@properties['default_channel_creator_role_sid']
|
405
583
|
end
|
406
|
-
|
584
|
+
|
407
585
|
def read_status_enabled
|
408
586
|
@properties['read_status_enabled']
|
409
587
|
end
|
410
|
-
|
588
|
+
|
589
|
+
def reachability_enabled
|
590
|
+
@properties['reachability_enabled']
|
591
|
+
end
|
592
|
+
|
411
593
|
def typing_indicator_timeout
|
412
594
|
@properties['typing_indicator_timeout']
|
413
595
|
end
|
414
|
-
|
596
|
+
|
415
597
|
def consumption_report_interval
|
416
598
|
@properties['consumption_report_interval']
|
417
599
|
end
|
418
|
-
|
600
|
+
|
601
|
+
def limits
|
602
|
+
@properties['limits']
|
603
|
+
end
|
604
|
+
|
419
605
|
def webhooks
|
420
606
|
@properties['webhooks']
|
421
607
|
end
|
422
|
-
|
608
|
+
|
609
|
+
def pre_webhook_url
|
610
|
+
@properties['pre_webhook_url']
|
611
|
+
end
|
612
|
+
|
613
|
+
def post_webhook_url
|
614
|
+
@properties['post_webhook_url']
|
615
|
+
end
|
616
|
+
|
617
|
+
def webhook_method
|
618
|
+
@properties['webhook_method']
|
619
|
+
end
|
620
|
+
|
621
|
+
def webhook_filters
|
622
|
+
@properties['webhook_filters']
|
623
|
+
end
|
624
|
+
|
625
|
+
def notifications
|
626
|
+
@properties['notifications']
|
627
|
+
end
|
628
|
+
|
423
629
|
def url
|
424
630
|
@properties['url']
|
425
631
|
end
|
426
|
-
|
632
|
+
|
427
633
|
def links
|
428
634
|
@properties['links']
|
429
635
|
end
|
430
|
-
|
636
|
+
|
431
637
|
##
|
432
638
|
# Fetch a ServiceInstance
|
433
639
|
# @return [ServiceInstance] Fetched ServiceInstance
|
434
640
|
def fetch
|
435
641
|
context.fetch
|
436
642
|
end
|
437
|
-
|
643
|
+
|
438
644
|
##
|
439
645
|
# Deletes the ServiceInstance
|
440
646
|
# @return [Boolean] true if delete succeeds, true otherwise
|
441
647
|
def delete
|
442
648
|
context.delete
|
443
649
|
end
|
444
|
-
|
650
|
+
|
445
651
|
##
|
446
652
|
# Update the ServiceInstance
|
447
653
|
# @param [String] friendly_name The friendly_name
|
@@ -450,44 +656,215 @@ module Twilio
|
|
450
656
|
# @param [String] default_channel_creator_role_sid The
|
451
657
|
# default_channel_creator_role_sid
|
452
658
|
# @param [Boolean] read_status_enabled The read_status_enabled
|
659
|
+
# @param [Boolean] reachability_enabled The reachability_enabled
|
453
660
|
# @param [String] typing_indicator_timeout The typing_indicator_timeout
|
454
661
|
# @param [String] consumption_report_interval The consumption_report_interval
|
455
|
-
# @param [
|
662
|
+
# @param [Boolean] notifications_new_message_enabled The
|
663
|
+
# notifications.new_message.enabled
|
664
|
+
# @param [String] notifications_new_message_template The
|
665
|
+
# notifications.new_message.template
|
666
|
+
# @param [Boolean] notifications_added_to_channel_enabled The
|
667
|
+
# notifications.added_to_channel.enabled
|
668
|
+
# @param [String] notifications_added_to_channel_template The
|
669
|
+
# notifications.added_to_channel.template
|
670
|
+
# @param [Boolean] notifications_removed_from_channel_enabled The
|
671
|
+
# notifications.removed_from_channel.enabled
|
672
|
+
# @param [String] notifications_removed_from_channel_template The
|
673
|
+
# notifications.removed_from_channel.template
|
674
|
+
# @param [Boolean] notifications_invited_to_channel_enabled The
|
675
|
+
# notifications.invited_to_channel.enabled
|
676
|
+
# @param [String] notifications_invited_to_channel_template The
|
677
|
+
# notifications.invited_to_channel.template
|
678
|
+
# @param [String] pre_webhook_url The pre_webhook_url
|
679
|
+
# @param [String] post_webhook_url The post_webhook_url
|
680
|
+
# @param [String] webhook_method The webhook_method
|
681
|
+
# @param [String] webhook_filters The webhook_filters
|
682
|
+
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
683
|
+
# @param [String] webhooks_on_message_send_method The
|
684
|
+
# webhooks.on_message_send.method
|
685
|
+
# @param [String] webhooks_on_message_send_format The
|
686
|
+
# webhooks.on_message_send.format
|
687
|
+
# @param [String] webhooks_on_message_update_url The
|
688
|
+
# webhooks.on_message_update.url
|
689
|
+
# @param [String] webhooks_on_message_update_method The
|
690
|
+
# webhooks.on_message_update.method
|
691
|
+
# @param [String] webhooks_on_message_update_format The
|
692
|
+
# webhooks.on_message_update.format
|
693
|
+
# @param [String] webhooks_on_message_remove_url The
|
694
|
+
# webhooks.on_message_remove.url
|
695
|
+
# @param [String] webhooks_on_message_remove_method The
|
696
|
+
# webhooks.on_message_remove.method
|
697
|
+
# @param [String] webhooks_on_message_remove_format The
|
698
|
+
# webhooks.on_message_remove.format
|
699
|
+
# @param [String] webhooks_on_channel_add_url The webhooks.on_channel_add.url
|
700
|
+
# @param [String] webhooks_on_channel_add_method The
|
701
|
+
# webhooks.on_channel_add.method
|
702
|
+
# @param [String] webhooks_on_channel_add_format The
|
703
|
+
# webhooks.on_channel_add.format
|
704
|
+
# @param [String] webhooks_on_channel_destroy_url The
|
705
|
+
# webhooks.on_channel_destroy.url
|
706
|
+
# @param [String] webhooks_on_channel_destroy_method The
|
707
|
+
# webhooks.on_channel_destroy.method
|
708
|
+
# @param [String] webhooks_on_channel_destroy_format The
|
709
|
+
# webhooks.on_channel_destroy.format
|
710
|
+
# @param [String] webhooks_on_channel_update_url The
|
711
|
+
# webhooks.on_channel_update.url
|
712
|
+
# @param [String] webhooks_on_channel_update_method The
|
713
|
+
# webhooks.on_channel_update.method
|
714
|
+
# @param [String] webhooks_on_channel_update_format The
|
715
|
+
# webhooks.on_channel_update.format
|
716
|
+
# @param [String] webhooks_on_member_add_url The webhooks.on_member_add.url
|
717
|
+
# @param [String] webhooks_on_member_add_method The webhooks.on_member_add.method
|
718
|
+
# @param [String] webhooks_on_member_add_format The webhooks.on_member_add.format
|
719
|
+
# @param [String] webhooks_on_member_remove_url The webhooks.on_member_remove.url
|
720
|
+
# @param [String] webhooks_on_member_remove_method The
|
721
|
+
# webhooks.on_member_remove.method
|
722
|
+
# @param [String] webhooks_on_member_remove_format The
|
723
|
+
# webhooks.on_member_remove.format
|
724
|
+
# @param [String] webhooks_on_message_sent_url The webhooks.on_message_sent.url
|
725
|
+
# @param [String] webhooks_on_message_sent_method The
|
726
|
+
# webhooks.on_message_sent.method
|
727
|
+
# @param [String] webhooks_on_message_sent_format The
|
728
|
+
# webhooks.on_message_sent.format
|
729
|
+
# @param [String] webhooks_on_message_updated_url The
|
730
|
+
# webhooks.on_message_updated.url
|
731
|
+
# @param [String] webhooks_on_message_updated_method The
|
732
|
+
# webhooks.on_message_updated.method
|
733
|
+
# @param [String] webhooks_on_message_updated_format The
|
734
|
+
# webhooks.on_message_updated.format
|
735
|
+
# @param [String] webhooks_on_message_removed_url The
|
736
|
+
# webhooks.on_message_removed.url
|
737
|
+
# @param [String] webhooks_on_message_removed_method The
|
738
|
+
# webhooks.on_message_removed.method
|
739
|
+
# @param [String] webhooks_on_message_removed_format The
|
740
|
+
# webhooks.on_message_removed.format
|
741
|
+
# @param [String] webhooks_on_channel_added_url The webhooks.on_channel_added.url
|
742
|
+
# @param [String] webhooks_on_channel_added_method The
|
743
|
+
# webhooks.on_channel_added.method
|
744
|
+
# @param [String] webhooks_on_channel_added_format The
|
745
|
+
# webhooks.on_channel_added.format
|
746
|
+
# @param [String] webhooks_on_channel_destroyed_url The
|
747
|
+
# webhooks.on_channel_destroyed.url
|
748
|
+
# @param [String] webhooks_on_channel_destroyed_method The
|
749
|
+
# webhooks.on_channel_destroyed.method
|
750
|
+
# @param [String] webhooks_on_channel_destroyed_format The
|
751
|
+
# webhooks.on_channel_destroyed.format
|
752
|
+
# @param [String] webhooks_on_channel_updated_url The
|
753
|
+
# webhooks.on_channel_updated.url
|
754
|
+
# @param [String] webhooks_on_channel_updated_method The
|
755
|
+
# webhooks.on_channel_updated.method
|
756
|
+
# @param [String] webhooks_on_channel_updated_format The
|
757
|
+
# webhooks.on_channel_updated.format
|
758
|
+
# @param [String] webhooks_on_member_added_url The webhooks.on_member_added.url
|
759
|
+
# @param [String] webhooks_on_member_added_method The
|
760
|
+
# webhooks.on_member_added.method
|
761
|
+
# @param [String] webhooks_on_member_added_format The
|
762
|
+
# webhooks.on_member_added.format
|
763
|
+
# @param [String] webhooks_on_member_removed_url The
|
764
|
+
# webhooks.on_member_removed.url
|
765
|
+
# @param [String] webhooks_on_member_removed_method The
|
766
|
+
# webhooks.on_member_removed.method
|
767
|
+
# @param [String] webhooks_on_member_removed_format The
|
768
|
+
# webhooks.on_member_removed.format
|
769
|
+
# @param [String] limits_channel_members The limits.channel_members
|
770
|
+
# @param [String] limits_user_channels The limits.user_channels
|
456
771
|
# @return [ServiceInstance] Updated ServiceInstance
|
457
|
-
def update(friendly_name: nil, default_service_role_sid: nil, default_channel_role_sid: nil, default_channel_creator_role_sid: nil, read_status_enabled: nil, typing_indicator_timeout: nil, consumption_report_interval: nil,
|
772
|
+
def update(friendly_name: nil, default_service_role_sid: nil, default_channel_role_sid: nil, default_channel_creator_role_sid: nil, read_status_enabled: nil, reachability_enabled: nil, typing_indicator_timeout: nil, consumption_report_interval: nil, notifications_new_message_enabled: nil, notifications_new_message_template: nil, notifications_added_to_channel_enabled: nil, notifications_added_to_channel_template: nil, notifications_removed_from_channel_enabled: nil, notifications_removed_from_channel_template: nil, notifications_invited_to_channel_enabled: nil, notifications_invited_to_channel_template: nil, pre_webhook_url: nil, post_webhook_url: nil, webhook_method: nil, webhook_filters: nil, webhooks_on_message_send_url: nil, webhooks_on_message_send_method: nil, webhooks_on_message_send_format: nil, webhooks_on_message_update_url: nil, webhooks_on_message_update_method: nil, webhooks_on_message_update_format: nil, webhooks_on_message_remove_url: nil, webhooks_on_message_remove_method: nil, webhooks_on_message_remove_format: nil, webhooks_on_channel_add_url: nil, webhooks_on_channel_add_method: nil, webhooks_on_channel_add_format: nil, webhooks_on_channel_destroy_url: nil, webhooks_on_channel_destroy_method: nil, webhooks_on_channel_destroy_format: nil, webhooks_on_channel_update_url: nil, webhooks_on_channel_update_method: nil, webhooks_on_channel_update_format: nil, webhooks_on_member_add_url: nil, webhooks_on_member_add_method: nil, webhooks_on_member_add_format: nil, webhooks_on_member_remove_url: nil, webhooks_on_member_remove_method: nil, webhooks_on_member_remove_format: nil, webhooks_on_message_sent_url: nil, webhooks_on_message_sent_method: nil, webhooks_on_message_sent_format: nil, webhooks_on_message_updated_url: nil, webhooks_on_message_updated_method: nil, webhooks_on_message_updated_format: nil, webhooks_on_message_removed_url: nil, webhooks_on_message_removed_method: nil, webhooks_on_message_removed_format: nil, webhooks_on_channel_added_url: nil, webhooks_on_channel_added_method: nil, webhooks_on_channel_added_format: nil, webhooks_on_channel_destroyed_url: nil, webhooks_on_channel_destroyed_method: nil, webhooks_on_channel_destroyed_format: nil, webhooks_on_channel_updated_url: nil, webhooks_on_channel_updated_method: nil, webhooks_on_channel_updated_format: nil, webhooks_on_member_added_url: nil, webhooks_on_member_added_method: nil, webhooks_on_member_added_format: nil, webhooks_on_member_removed_url: nil, webhooks_on_member_removed_method: nil, webhooks_on_member_removed_format: nil, limits_channel_members: nil, limits_user_channels: nil)
|
458
773
|
context.update(
|
459
774
|
friendly_name: friendly_name,
|
460
775
|
default_service_role_sid: default_service_role_sid,
|
461
776
|
default_channel_role_sid: default_channel_role_sid,
|
462
777
|
default_channel_creator_role_sid: default_channel_creator_role_sid,
|
463
778
|
read_status_enabled: read_status_enabled,
|
779
|
+
reachability_enabled: reachability_enabled,
|
464
780
|
typing_indicator_timeout: typing_indicator_timeout,
|
465
781
|
consumption_report_interval: consumption_report_interval,
|
466
|
-
|
782
|
+
notifications_new_message_enabled: notifications_new_message_enabled,
|
783
|
+
notifications_new_message_template: notifications_new_message_template,
|
784
|
+
notifications_added_to_channel_enabled: notifications_added_to_channel_enabled,
|
785
|
+
notifications_added_to_channel_template: notifications_added_to_channel_template,
|
786
|
+
notifications_removed_from_channel_enabled: notifications_removed_from_channel_enabled,
|
787
|
+
notifications_removed_from_channel_template: notifications_removed_from_channel_template,
|
788
|
+
notifications_invited_to_channel_enabled: notifications_invited_to_channel_enabled,
|
789
|
+
notifications_invited_to_channel_template: notifications_invited_to_channel_template,
|
790
|
+
pre_webhook_url: pre_webhook_url,
|
791
|
+
post_webhook_url: post_webhook_url,
|
792
|
+
webhook_method: webhook_method,
|
793
|
+
webhook_filters: webhook_filters,
|
794
|
+
webhooks_on_message_send_url: webhooks_on_message_send_url,
|
795
|
+
webhooks_on_message_send_method: webhooks_on_message_send_method,
|
796
|
+
webhooks_on_message_send_format: webhooks_on_message_send_format,
|
797
|
+
webhooks_on_message_update_url: webhooks_on_message_update_url,
|
798
|
+
webhooks_on_message_update_method: webhooks_on_message_update_method,
|
799
|
+
webhooks_on_message_update_format: webhooks_on_message_update_format,
|
800
|
+
webhooks_on_message_remove_url: webhooks_on_message_remove_url,
|
801
|
+
webhooks_on_message_remove_method: webhooks_on_message_remove_method,
|
802
|
+
webhooks_on_message_remove_format: webhooks_on_message_remove_format,
|
803
|
+
webhooks_on_channel_add_url: webhooks_on_channel_add_url,
|
804
|
+
webhooks_on_channel_add_method: webhooks_on_channel_add_method,
|
805
|
+
webhooks_on_channel_add_format: webhooks_on_channel_add_format,
|
806
|
+
webhooks_on_channel_destroy_url: webhooks_on_channel_destroy_url,
|
807
|
+
webhooks_on_channel_destroy_method: webhooks_on_channel_destroy_method,
|
808
|
+
webhooks_on_channel_destroy_format: webhooks_on_channel_destroy_format,
|
809
|
+
webhooks_on_channel_update_url: webhooks_on_channel_update_url,
|
810
|
+
webhooks_on_channel_update_method: webhooks_on_channel_update_method,
|
811
|
+
webhooks_on_channel_update_format: webhooks_on_channel_update_format,
|
812
|
+
webhooks_on_member_add_url: webhooks_on_member_add_url,
|
813
|
+
webhooks_on_member_add_method: webhooks_on_member_add_method,
|
814
|
+
webhooks_on_member_add_format: webhooks_on_member_add_format,
|
815
|
+
webhooks_on_member_remove_url: webhooks_on_member_remove_url,
|
816
|
+
webhooks_on_member_remove_method: webhooks_on_member_remove_method,
|
817
|
+
webhooks_on_member_remove_format: webhooks_on_member_remove_format,
|
818
|
+
webhooks_on_message_sent_url: webhooks_on_message_sent_url,
|
819
|
+
webhooks_on_message_sent_method: webhooks_on_message_sent_method,
|
820
|
+
webhooks_on_message_sent_format: webhooks_on_message_sent_format,
|
821
|
+
webhooks_on_message_updated_url: webhooks_on_message_updated_url,
|
822
|
+
webhooks_on_message_updated_method: webhooks_on_message_updated_method,
|
823
|
+
webhooks_on_message_updated_format: webhooks_on_message_updated_format,
|
824
|
+
webhooks_on_message_removed_url: webhooks_on_message_removed_url,
|
825
|
+
webhooks_on_message_removed_method: webhooks_on_message_removed_method,
|
826
|
+
webhooks_on_message_removed_format: webhooks_on_message_removed_format,
|
827
|
+
webhooks_on_channel_added_url: webhooks_on_channel_added_url,
|
828
|
+
webhooks_on_channel_added_method: webhooks_on_channel_added_method,
|
829
|
+
webhooks_on_channel_added_format: webhooks_on_channel_added_format,
|
830
|
+
webhooks_on_channel_destroyed_url: webhooks_on_channel_destroyed_url,
|
831
|
+
webhooks_on_channel_destroyed_method: webhooks_on_channel_destroyed_method,
|
832
|
+
webhooks_on_channel_destroyed_format: webhooks_on_channel_destroyed_format,
|
833
|
+
webhooks_on_channel_updated_url: webhooks_on_channel_updated_url,
|
834
|
+
webhooks_on_channel_updated_method: webhooks_on_channel_updated_method,
|
835
|
+
webhooks_on_channel_updated_format: webhooks_on_channel_updated_format,
|
836
|
+
webhooks_on_member_added_url: webhooks_on_member_added_url,
|
837
|
+
webhooks_on_member_added_method: webhooks_on_member_added_method,
|
838
|
+
webhooks_on_member_added_format: webhooks_on_member_added_format,
|
839
|
+
webhooks_on_member_removed_url: webhooks_on_member_removed_url,
|
840
|
+
webhooks_on_member_removed_method: webhooks_on_member_removed_method,
|
841
|
+
webhooks_on_member_removed_format: webhooks_on_member_removed_format,
|
842
|
+
limits_channel_members: limits_channel_members,
|
843
|
+
limits_user_channels: limits_user_channels,
|
467
844
|
)
|
468
845
|
end
|
469
|
-
|
846
|
+
|
470
847
|
##
|
471
848
|
# Access the channels
|
472
849
|
# @return [channels] channels
|
473
850
|
def channels
|
474
851
|
context.channels
|
475
852
|
end
|
476
|
-
|
853
|
+
|
477
854
|
##
|
478
855
|
# Access the roles
|
479
856
|
# @return [roles] roles
|
480
857
|
def roles
|
481
858
|
context.roles
|
482
859
|
end
|
483
|
-
|
860
|
+
|
484
861
|
##
|
485
862
|
# Access the users
|
486
863
|
# @return [users] users
|
487
864
|
def users
|
488
865
|
context.users
|
489
866
|
end
|
490
|
-
|
867
|
+
|
491
868
|
##
|
492
869
|
# Provide a user friendly representation
|
493
870
|
def to_s
|