twilio-ruby 5.0.0.alpha1 → 5.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +11 -2
- data/AUTHORS.md +32 -46
- data/CHANGES.md +1 -124
- data/Gemfile +2 -2
- data/LICENSE.md +12 -12
- data/Makefile +2 -15
- data/README.md +37 -29
- data/Rakefile +0 -54
- data/examples/examples.rb +57 -46
- data/examples/{print_call_log.rb → print-call-log.rb} +7 -7
- data/lib/rack/twilio_webhook_authentication.rb +6 -5
- data/lib/twilio-ruby.rb +16 -17
- data/lib/twilio-ruby/compatibility/v2010/account/call/feedback.rb +15 -0
- data/lib/twilio-ruby/compatibility/v2010/account/queue/member.rb +23 -0
- data/lib/twilio-ruby/framework/domain.rb +2 -2
- data/lib/twilio-ruby/framework/exception.rb +14 -0
- data/lib/twilio-ruby/framework/helper.rb +1 -1
- data/lib/twilio-ruby/framework/page.rb +30 -28
- data/lib/twilio-ruby/framework/resource.rb +2 -2
- data/lib/twilio-ruby/framework/serialize.rb +7 -58
- data/lib/twilio-ruby/framework/twilio_response.rb +1 -1
- data/lib/twilio-ruby/framework/version.rb +48 -43
- data/lib/twilio-ruby/http/http_client.rb +8 -8
- data/lib/twilio-ruby/rest/api.rb +33 -141
- data/lib/twilio-ruby/rest/api/v2010.rb +31 -50
- data/lib/twilio-ruby/rest/api/v2010/account.rb +239 -389
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +122 -145
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +56 -76
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +127 -144
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +83 -85
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +97 -92
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +77 -142
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +77 -142
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +77 -142
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +184 -232
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +84 -73
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +80 -85
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +115 -126
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +99 -114
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +112 -150
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +109 -228
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +98 -101
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +164 -287
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +90 -152
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +90 -152
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +90 -152
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +138 -195
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +100 -90
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +106 -118
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +105 -96
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +117 -119
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +95 -84
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +103 -194
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +93 -100
- data/lib/twilio-ruby/rest/api/v2010/account/sandbox.rb +304 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +30 -42
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +113 -111
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +115 -104
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +133 -159
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +96 -94
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +96 -94
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +114 -111
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +113 -108
- data/lib/twilio-ruby/rest/api/v2010/account/sms.rb +140 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sms/short_code.rb +431 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sms/sms_message.rb +467 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +34 -41
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +90 -98
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +24 -21
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +118 -139
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +62 -106
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +124 -130
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +31 -35
- data/lib/twilio-ruby/rest/client.rb +88 -249
- data/lib/twilio-ruby/rest/{accounts.rb → conversations.rb} +14 -16
- data/lib/twilio-ruby/rest/conversations/v1.rb +35 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +270 -0
- data/lib/twilio-ruby/rest/{notify/v1/service/segment.rb → conversations/v1/conversation/completed.rb} +101 -101
- data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → conversations/v1/conversation/in_progress.rb} +109 -95
- data/lib/twilio-ruby/rest/{messaging/v1/service/phone_number.rb → conversations/v1/conversation/participant.rb} +171 -178
- data/lib/twilio-ruby/rest/ip_messaging.rb +11 -26
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +7 -19
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +112 -113
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +131 -542
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +132 -194
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +103 -159
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +102 -183
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +112 -107
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +113 -186
- data/lib/twilio-ruby/rest/lookups.rb +8 -12
- data/lib/twilio-ruby/rest/lookups/v1.rb +7 -13
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +54 -71
- data/lib/twilio-ruby/rest/monitor.rb +11 -19
- data/lib/twilio-ruby/rest/monitor/v1.rb +7 -19
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +133 -121
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +127 -116
- data/lib/twilio-ruby/rest/pricing.rb +11 -17
- data/lib/twilio-ruby/rest/pricing/v1.rb +9 -21
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +23 -27
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +74 -71
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +23 -27
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +79 -69
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +27 -33
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +74 -71
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +52 -47
- data/lib/twilio-ruby/rest/taskrouter.rb +8 -12
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +153 -260
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +114 -115
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +101 -105
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +139 -216
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +106 -194
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +145 -187
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +65 -57
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -62
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +135 -217
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +60 -54
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +56 -52
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +123 -140
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +61 -57
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +72 -52
- data/lib/twilio-ruby/rest/trunking.rb +8 -12
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -11
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +134 -157
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +93 -89
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +93 -89
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +111 -114
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +112 -146
- data/lib/twilio-ruby/task_router.rb +0 -0
- data/lib/twilio-ruby/task_router/capability.rb +87 -0
- data/lib/twilio-ruby/twiml/response.rb +16 -0
- data/lib/twilio-ruby/util.rb +1 -1
- data/lib/twilio-ruby/util/access_token.rb +70 -0
- data/lib/twilio-ruby/util/capability.rb +64 -0
- data/lib/twilio-ruby/util/client_config.rb +29 -0
- data/lib/twilio-ruby/{security → util}/request_validator.rb +4 -21
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/holodeck/holodeck.rb +6 -6
- data/spec/holodeck/hologram.rb +1 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +8 -8
- data/spec/integration/api/v2010/account/address_spec.rb +29 -37
- data/spec/integration/api/v2010/account/application_spec.rb +29 -29
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +13 -13
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +8 -9
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +8 -9
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +8 -9
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +13 -13
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +17 -17
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +19 -19
- data/spec/integration/api/v2010/account/call/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call/recording_spec.rb +20 -32
- data/spec/integration/api/v2010/account/call_spec.rb +29 -29
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +35 -107
- data/spec/integration/api/v2010/account/conference_spec.rb +19 -58
- data/spec/integration/api/v2010/account/connect_app_spec.rb +18 -18
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +14 -16
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +14 -16
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +14 -16
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +29 -41
- data/spec/integration/api/v2010/account/message/media_spec.rb +18 -18
- data/spec/integration/api/v2010/account/message_spec.rb +35 -41
- data/spec/integration/api/v2010/account/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +23 -23
- data/spec/integration/api/v2010/account/queue/member_spec.rb +18 -18
- data/spec/integration/api/v2010/account/queue_spec.rb +32 -35
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording_spec.rb +21 -42
- data/spec/integration/api/v2010/account/sandbox_spec.rb +99 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +36 -32
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +24 -24
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +36 -32
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip_spec.rb +1 -1
- data/spec/integration/api/v2010/account/{short_code_spec.rb → sms/short_code_spec.rb} +25 -18
- data/spec/integration/api/v2010/account/sms/sms_message_spec.rb +275 -0
- data/spec/integration/{accounts/v1/credential_spec.rb → api/v2010/account/sms_spec.rb} +2 -2
- data/spec/integration/api/v2010/account/token_spec.rb +7 -7
- data/spec/integration/api/v2010/account/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/record_spec.rb +8 -8
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +32 -32
- data/spec/integration/api/v2010/account/usage_spec.rb +1 -1
- data/spec/integration/api/v2010/account/validation_request_spec.rb +4 -24
- data/spec/integration/api/v2010/account_spec.rb +28 -24
- data/spec/integration/conversations/v1/conversation/completed_spec.rb +89 -0
- data/spec/integration/conversations/v1/conversation/in_progress_spec.rb +89 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +174 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +49 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +24 -155
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +13 -217
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +10 -241
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +23 -205
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +19 -184
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +24 -194
- data/spec/integration/ip_messaging/v1/service_spec.rb +17 -229
- data/spec/integration/lookups/v1/phone_number_spec.rb +6 -17
- data/spec/integration/monitor/v1/alert_spec.rb +60 -60
- data/spec/integration/monitor/v1/event_spec.rb +13 -13
- data/spec/integration/pricing/v1/messaging/country_spec.rb +7 -103
- data/spec/integration/pricing/v1/messaging_spec.rb +1 -1
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +13 -13
- data/spec/integration/pricing/v1/phone_number_spec.rb +1 -1
- data/spec/integration/pricing/v1/voice/country_spec.rb +13 -13
- data/spec/integration/pricing/v1/voice/number_spec.rb +6 -6
- data/spec/integration/pricing/v1/voice_spec.rb +1 -1
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +38 -34
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +13 -13
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +24 -21
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +11 -13
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +17 -18
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +41 -57
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +50 -113
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +6 -7
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +6 -7
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +68 -96
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +12 -14
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +43 -54
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +9 -11
- data/spec/integration/taskrouter/v1/workspace_spec.rb +51 -71
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +24 -24
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +66 -66
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk_spec.rb +28 -28
- data/spec/rack/twilio_webhook_authentication_spec.rb +23 -19
- data/spec/spec_helper.rb +2 -2
- data/spec/support/fakeweb.rb +1 -1
- data/spec/task_router_spec.rb +114 -0
- data/spec/util/access_token_spec.rb +103 -0
- data/spec/util/capability_spec.rb +186 -0
- data/spec/util/client_config_spec.rb +21 -0
- data/spec/{security → util}/request_validator_spec.rb +5 -5
- data/twilio-ruby.gemspec +8 -12
- metadata +90 -416
- data/.rubocop.yml +0 -21
- data/.rubocop_todo.yml +0 -187
- data/VERSIONS.md +0 -64
- data/lib/twilio-ruby/framework/error.rb +0 -30
- data/lib/twilio-ruby/framework/values.rb +0 -7
- data/lib/twilio-ruby/jwt/access_token.rb +0 -232
- data/lib/twilio-ruby/jwt/client_capability.rb +0 -102
- data/lib/twilio-ruby/jwt/jwt.rb +0 -50
- data/lib/twilio-ruby/jwt/task_router.rb +0 -174
- data/lib/twilio-ruby/rest/accounts/v1.rb +0 -39
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +0 -105
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +0 -370
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -431
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -350
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +0 -336
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +0 -165
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +0 -153
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +0 -153
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +0 -397
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +0 -378
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +0 -430
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +0 -336
- data/lib/twilio-ruby/rest/chat.rb +0 -59
- data/lib/twilio-ruby/rest/chat/v1.rb +0 -56
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +0 -403
- data/lib/twilio-ruby/rest/chat/v1/service.rb +0 -935
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +0 -554
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +0 -386
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +0 -431
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +0 -447
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +0 -396
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +0 -467
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +0 -244
- data/lib/twilio-ruby/rest/chat/v2.rb +0 -56
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +0 -403
- data/lib/twilio-ruby/rest/chat/v2/service.rb +0 -688
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +0 -554
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +0 -386
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +0 -431
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +0 -447
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +0 -396
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +0 -467
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +0 -244
- data/lib/twilio-ruby/rest/fax.rb +0 -44
- data/lib/twilio-ruby/rest/fax/v1.rb +0 -41
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -541
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +0 -326
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +0 -386
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +0 -244
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +0 -56
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +0 -403
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +0 -688
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +0 -554
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +0 -386
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +0 -431
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +0 -447
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +0 -396
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +0 -467
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +0 -244
- data/lib/twilio-ruby/rest/messaging.rb +0 -44
- data/lib/twilio-ruby/rest/messaging/v1.rb +0 -41
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -637
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -352
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -359
- data/lib/twilio-ruby/rest/notify.rb +0 -52
- data/lib/twilio-ruby/rest/notify/v1.rb +0 -56
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -403
- data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -639
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -430
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +0 -288
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +0 -445
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +0 -254
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +0 -434
- data/lib/twilio-ruby/rest/preview.rb +0 -145
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -56
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -203
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -243
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +0 -42
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -557
- data/lib/twilio-ruby/rest/preview/marketplace.rb +0 -58
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -333
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -301
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -440
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -341
- data/lib/twilio-ruby/rest/preview/proxy.rb +0 -41
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +0 -500
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +0 -359
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +0 -536
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +0 -429
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +0 -506
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +0 -452
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +0 -359
- data/lib/twilio-ruby/rest/preview/sync.rb +0 -41
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -504
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -445
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -395
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -438
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -430
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -395
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -438
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -432
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -395
- data/lib/twilio-ruby/rest/preview/wireless.rb +0 -71
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -382
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -435
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -544
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -236
- data/lib/twilio-ruby/rest/sync.rb +0 -44
- data/lib/twilio-ruby/rest/sync/v1.rb +0 -41
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -504
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +0 -445
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -395
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +0 -438
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +0 -430
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -395
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +0 -438
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +0 -432
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -395
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +0 -315
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +0 -461
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +0 -406
- data/lib/twilio-ruby/rest/video.rb +0 -52
- data/lib/twilio-ruby/rest/video/v1.rb +0 -56
- data/lib/twilio-ruby/rest/video/v1/recording.rb +0 -382
- data/lib/twilio-ruby/rest/video/v1/room.rb +0 -485
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +0 -381
- data/lib/twilio-ruby/rest/wireless.rb +0 -60
- data/lib/twilio-ruby/rest/wireless/v1.rb +0 -71
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +0 -367
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +0 -452
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +0 -548
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +0 -235
- data/lib/twilio-ruby/twiml/messaging_response.rb +0 -141
- data/lib/twilio-ruby/twiml/twiml.rb +0 -69
- data/lib/twilio-ruby/twiml/voice_response.rb +0 -916
- data/spec/framework/serialize_spec.rb +0 -59
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +0 -226
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -135
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -223
- data/spec/integration/api/v2010/account/key_spec.rb +0 -178
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +0 -48
- data/spec/integration/api/v2010/account/new_key_spec.rb +0 -45
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +0 -45
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +0 -175
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +0 -166
- data/spec/integration/api/v2010/account/signing_key_spec.rb +0 -178
- data/spec/integration/chat/v1/credential_spec.rb +0 -223
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +0 -210
- data/spec/integration/chat/v1/service/channel/member_spec.rb +0 -284
- data/spec/integration/chat/v1/service/channel/message_spec.rb +0 -294
- data/spec/integration/chat/v1/service/channel_spec.rb +0 -275
- data/spec/integration/chat/v1/service/role_spec.rb +0 -263
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +0 -92
- data/spec/integration/chat/v1/service/user_spec.rb +0 -266
- data/spec/integration/chat/v1/service_spec.rb +0 -299
- data/spec/integration/chat/v2/credential_spec.rb +0 -223
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +0 -210
- data/spec/integration/chat/v2/service/channel/member_spec.rb +0 -284
- data/spec/integration/chat/v2/service/channel/message_spec.rb +0 -294
- data/spec/integration/chat/v2/service/channel_spec.rb +0 -275
- data/spec/integration/chat/v2/service/role_spec.rb +0 -263
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +0 -92
- data/spec/integration/chat/v2/service/user_spec.rb +0 -266
- data/spec/integration/chat/v2/service_spec.rb +0 -325
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -126
- data/spec/integration/fax/v1/fax_spec.rb +0 -272
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +0 -210
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +0 -92
- data/spec/integration/ip_messaging/v2/credential_spec.rb +0 -223
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +0 -210
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +0 -284
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +0 -294
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +0 -275
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +0 -263
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +0 -92
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +0 -266
- data/spec/integration/ip_messaging/v2/service_spec.rb +0 -325
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -170
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -201
- data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -173
- data/spec/integration/messaging/v1/service_spec.rb +0 -263
- data/spec/integration/notify/v1/credential_spec.rb +0 -223
- data/spec/integration/notify/v1/service/binding_spec.rb +0 -227
- data/spec/integration/notify/v1/service/notification_spec.rb +0 -97
- data/spec/integration/notify/v1/service/segment_spec.rb +0 -84
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +0 -118
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +0 -269
- data/spec/integration/notify/v1/service/user_spec.rb +0 -213
- data/spec/integration/notify/v1/service_spec.rb +0 -280
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -56
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -79
- data/spec/integration/preview/bulk_exports/export_spec.rb +0 -43
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -280
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -121
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -142
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -164
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -252
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +0 -173
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +0 -104
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +0 -164
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +0 -226
- data/spec/integration/preview/proxy/service/session_spec.rb +0 -216
- data/spec/integration/preview/proxy/service/short_code_spec.rb +0 -173
- data/spec/integration/preview/proxy/service_spec.rb +0 -200
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/document_spec.rb +0 -254
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -207
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -207
- data/spec/integration/preview/sync/service_spec.rb +0 -244
- data/spec/integration/preview/wireless/command_spec.rb +0 -169
- data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -260
- data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -49
- data/spec/integration/preview/wireless/sim_spec.rb +0 -208
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/document_spec.rb +0 -254
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +0 -256
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -207
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +0 -257
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -206
- data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -207
- data/spec/integration/sync/v1/service_spec.rb +0 -244
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +0 -127
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +0 -192
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -201
- data/spec/integration/video/v1/recording_spec.rb +0 -165
- data/spec/integration/video/v1/room/recording_spec.rb +0 -146
- data/spec/integration/video/v1/room_spec.rb +0 -237
- data/spec/integration/wireless/v1/command_spec.rb +0 -166
- data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -268
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -65
- data/spec/integration/wireless/v1/sim_spec.rb +0 -208
- data/spec/jwt/access_token_spec.rb +0 -130
- data/spec/jwt/client_capability_spec.rb +0 -104
- data/spec/jwt/task_router_spec.rb +0 -172
- data/spec/twiml/messaging_response_spec.rb +0 -90
- data/spec/twiml/voice_response_spec.rb +0 -474
|
@@ -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,25 @@ module Twilio
|
|
|
11
11
|
# Initialize the Trunking Domain
|
|
12
12
|
def initialize(twilio)
|
|
13
13
|
super
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
@base_url = 'https://trunking.twilio.com'
|
|
16
16
|
@host = 'trunking.twilio.com'
|
|
17
17
|
@port = 443
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
# Versions
|
|
20
20
|
@v1 = nil
|
|
21
21
|
end
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
##
|
|
24
24
|
# Version v1 of trunking
|
|
25
25
|
def v1
|
|
26
26
|
@v1 ||= V1.new self
|
|
27
27
|
end
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# @return [Twilio::REST::Trunking::V1::TrunkInstance] if sid was passed.
|
|
32
|
-
# @return [Twilio::REST::Trunking::V1::TrunkList]
|
|
33
|
-
def trunks(sid=:unset)
|
|
34
|
-
self.v1.trunks(sid)
|
|
28
|
+
|
|
29
|
+
def trunks
|
|
30
|
+
self.v1.trunks
|
|
35
31
|
end
|
|
36
|
-
|
|
32
|
+
|
|
37
33
|
##
|
|
38
34
|
# Provide a user friendly representation
|
|
39
35
|
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,25 +15,19 @@ module Twilio
|
|
|
15
15
|
@version = 'v1'
|
|
16
16
|
@trunks = nil
|
|
17
17
|
end
|
|
18
|
-
|
|
19
|
-
##
|
|
20
|
-
# @param [String] sid The sid
|
|
21
|
-
# @return [Twilio::REST::Trunking::V1::TrunkInstance] if sid was passed.
|
|
22
|
-
# @return [Twilio::REST::Trunking::V1::TrunkList]
|
|
18
|
+
|
|
23
19
|
def trunks(sid=:unset)
|
|
24
|
-
if sid
|
|
25
|
-
raise ArgumentError, 'sid cannot be nil'
|
|
26
|
-
elsif sid == :unset
|
|
20
|
+
if sid == :unset
|
|
27
21
|
@trunks ||= TrunkList.new self
|
|
28
22
|
else
|
|
29
23
|
TrunkContext.new(self, sid)
|
|
30
24
|
end
|
|
31
25
|
end
|
|
32
|
-
|
|
26
|
+
|
|
33
27
|
##
|
|
34
28
|
# Provide a user friendly representation
|
|
35
29
|
def to_s
|
|
36
|
-
|
|
30
|
+
#<Twilio::REST::Trunking::V1>
|
|
37
31
|
end
|
|
38
32
|
end
|
|
39
33
|
end
|
|
@@ -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
|
|
@@ -12,15 +12,16 @@ module Twilio
|
|
|
12
12
|
##
|
|
13
13
|
# Initialize the TrunkList
|
|
14
14
|
# @param [Version] version Version that contains the resource
|
|
15
|
+
|
|
15
16
|
# @return [TrunkList] TrunkList
|
|
16
17
|
def initialize(version)
|
|
17
18
|
super(version)
|
|
18
|
-
|
|
19
|
+
|
|
19
20
|
# Path Solution
|
|
20
21
|
@solution = {}
|
|
21
22
|
@uri = "/Trunks"
|
|
22
23
|
end
|
|
23
|
-
|
|
24
|
+
|
|
24
25
|
##
|
|
25
26
|
# Retrieve a single page of TrunkInstance records from the API.
|
|
26
27
|
# Request is executed immediately.
|
|
@@ -30,29 +31,30 @@ module Twilio
|
|
|
30
31
|
# @param [String] disaster_recovery_method The disaster_recovery_method
|
|
31
32
|
# @param [String] recording The recording
|
|
32
33
|
# @param [Boolean] secure The secure
|
|
34
|
+
|
|
33
35
|
# @return [TrunkInstance] Newly created TrunkInstance
|
|
34
|
-
def create(friendly_name:
|
|
35
|
-
data =
|
|
36
|
+
def create(friendly_name: nil, domain_name: nil, disaster_recovery_url: nil, disaster_recovery_method: nil, recording: nil, secure: nil)
|
|
37
|
+
data = {
|
|
36
38
|
'FriendlyName' => friendly_name,
|
|
37
39
|
'DomainName' => domain_name,
|
|
38
40
|
'DisasterRecoveryUrl' => disaster_recovery_url,
|
|
39
41
|
'DisasterRecoveryMethod' => disaster_recovery_method,
|
|
40
42
|
'Recording' => recording,
|
|
41
43
|
'Secure' => secure,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
+
}
|
|
45
|
+
|
|
44
46
|
payload = @version.create(
|
|
45
47
|
'POST',
|
|
46
48
|
@uri,
|
|
47
49
|
data: data
|
|
48
50
|
)
|
|
49
|
-
|
|
50
|
-
TrunkInstance.new(
|
|
51
|
+
|
|
52
|
+
return TrunkInstance.new(
|
|
51
53
|
@version,
|
|
52
54
|
payload,
|
|
53
55
|
)
|
|
54
56
|
end
|
|
55
|
-
|
|
57
|
+
|
|
56
58
|
##
|
|
57
59
|
# Lists TrunkInstance records from the API as a list.
|
|
58
60
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
@@ -63,6 +65,7 @@ module Twilio
|
|
|
63
65
|
# the default value of 50 records. If no page_size is defined
|
|
64
66
|
# but a limit is defined, stream() will attempt to read the
|
|
65
67
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
68
|
+
|
|
66
69
|
# @return [Array] Array of up to limit results
|
|
67
70
|
def list(limit: nil, page_size: nil)
|
|
68
71
|
self.stream(
|
|
@@ -70,7 +73,7 @@ module Twilio
|
|
|
70
73
|
page_size: page_size
|
|
71
74
|
).entries
|
|
72
75
|
end
|
|
73
|
-
|
|
76
|
+
|
|
74
77
|
##
|
|
75
78
|
# Streams TrunkInstance records from the API as an Enumerable.
|
|
76
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
@@ -81,154 +84,164 @@ module Twilio
|
|
|
81
84
|
# the default value of 50 records. If no page_size is defined
|
|
82
85
|
# but a limit is defined, stream() will attempt to read the
|
|
83
86
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
87
|
+
|
|
84
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
85
89
|
def stream(limit: nil, page_size: nil)
|
|
86
90
|
limits = @version.read_limits(limit, page_size)
|
|
87
|
-
|
|
91
|
+
|
|
88
92
|
page = self.page(
|
|
89
|
-
page_size: limits[
|
|
93
|
+
page_size: limits['page_size'],
|
|
90
94
|
)
|
|
91
|
-
|
|
92
|
-
@version.stream(page, limit: limits[
|
|
95
|
+
|
|
96
|
+
@version.stream(page, limit: limits['limit'], page_limit: limits['page_limit'])
|
|
93
97
|
end
|
|
94
|
-
|
|
98
|
+
|
|
95
99
|
##
|
|
96
100
|
# When passed a block, yields TrunkInstance records from the API.
|
|
97
101
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
98
102
|
# is reached.
|
|
103
|
+
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
104
|
+
# guarantees to never return more than limit. Default is no limit
|
|
105
|
+
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
|
106
|
+
# the default value of 50 records. If no page_size is defined
|
|
107
|
+
# but a limit is defined, stream() will attempt to read the
|
|
108
|
+
# limit with the most efficient page size, i.e. min(limit, 1000)
|
|
99
109
|
def each
|
|
100
110
|
limits = @version.read_limits
|
|
101
|
-
|
|
111
|
+
|
|
102
112
|
page = self.page(
|
|
103
|
-
page_size: limits[
|
|
113
|
+
page_size: limits['page_size'],
|
|
104
114
|
)
|
|
105
|
-
|
|
115
|
+
|
|
106
116
|
@version.stream(page,
|
|
107
|
-
limit: limits[
|
|
108
|
-
page_limit: limits[
|
|
117
|
+
limit: limits['limit'],
|
|
118
|
+
page_limit: limits['page_limit']).each {|x| yield x}
|
|
109
119
|
end
|
|
110
|
-
|
|
120
|
+
|
|
111
121
|
##
|
|
112
122
|
# Retrieve a single page of TrunkInstance records from the API.
|
|
113
123
|
# Request is executed immediately.
|
|
114
124
|
# @param [String] page_token PageToken provided by the API
|
|
115
125
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
116
126
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
127
|
+
|
|
117
128
|
# @return [Page] Page of TrunkInstance
|
|
118
|
-
def page(page_token:
|
|
119
|
-
params =
|
|
129
|
+
def page(page_token: nil, page_number: nil, page_size: nil)
|
|
130
|
+
params = {
|
|
120
131
|
'PageToken' => page_token,
|
|
121
132
|
'Page' => page_number,
|
|
122
133
|
'PageSize' => page_size,
|
|
123
|
-
}
|
|
134
|
+
}
|
|
124
135
|
response = @version.page(
|
|
125
136
|
'GET',
|
|
126
137
|
@uri,
|
|
127
138
|
params
|
|
128
139
|
)
|
|
129
|
-
TrunkPage.new(@version, response, @solution)
|
|
140
|
+
return TrunkPage.new(@version, response, @solution)
|
|
130
141
|
end
|
|
131
|
-
|
|
142
|
+
|
|
132
143
|
##
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
|
|
136
|
-
# @return [
|
|
137
|
-
def
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
144
|
+
# Constructs a TrunkContext
|
|
145
|
+
# @param [String] sid The sid
|
|
146
|
+
|
|
147
|
+
# @return [TrunkContext] TrunkContext
|
|
148
|
+
def get(sid)
|
|
149
|
+
TrunkContext.new(
|
|
150
|
+
@version,
|
|
151
|
+
sid: sid,
|
|
141
152
|
)
|
|
142
|
-
TrunkPage.new(@version, response, @solution)
|
|
143
153
|
end
|
|
144
|
-
|
|
154
|
+
|
|
145
155
|
##
|
|
146
156
|
# Provide a user friendly representation
|
|
147
157
|
def to_s
|
|
148
158
|
'#<Twilio.Trunking.V1.TrunkList>'
|
|
149
159
|
end
|
|
150
160
|
end
|
|
151
|
-
|
|
161
|
+
|
|
152
162
|
class TrunkPage < Page
|
|
153
163
|
##
|
|
154
164
|
# Initialize the TrunkPage
|
|
155
165
|
# @param [Version] version Version that contains the resource
|
|
156
166
|
# @param [Response] response Response from the API
|
|
157
167
|
# @param [Hash] solution Path solution for the resource
|
|
168
|
+
|
|
158
169
|
# @return [TrunkPage] TrunkPage
|
|
159
170
|
def initialize(version, response, solution)
|
|
160
171
|
super(version, response)
|
|
161
|
-
|
|
172
|
+
|
|
162
173
|
# Path Solution
|
|
163
174
|
@solution = solution
|
|
164
175
|
end
|
|
165
|
-
|
|
176
|
+
|
|
166
177
|
##
|
|
167
178
|
# Build an instance of TrunkInstance
|
|
168
179
|
# @param [Hash] payload Payload response from the API
|
|
180
|
+
|
|
169
181
|
# @return [TrunkInstance] TrunkInstance
|
|
170
182
|
def get_instance(payload)
|
|
171
|
-
TrunkInstance.new(
|
|
183
|
+
return TrunkInstance.new(
|
|
172
184
|
@version,
|
|
173
185
|
payload,
|
|
174
186
|
)
|
|
175
187
|
end
|
|
176
|
-
|
|
188
|
+
|
|
177
189
|
##
|
|
178
190
|
# Provide a user friendly representation
|
|
179
191
|
def to_s
|
|
180
192
|
'<Twilio.Trunking.V1.TrunkPage>'
|
|
181
193
|
end
|
|
182
194
|
end
|
|
183
|
-
|
|
195
|
+
|
|
184
196
|
class TrunkContext < InstanceContext
|
|
185
197
|
##
|
|
186
198
|
# Initialize the TrunkContext
|
|
187
199
|
# @param [Version] version Version that contains the resource
|
|
188
200
|
# @param [String] sid The sid
|
|
201
|
+
|
|
189
202
|
# @return [TrunkContext] TrunkContext
|
|
190
203
|
def initialize(version, sid)
|
|
191
204
|
super(version)
|
|
192
|
-
|
|
205
|
+
|
|
193
206
|
# Path Solution
|
|
194
207
|
@solution = {
|
|
195
208
|
sid: sid,
|
|
196
209
|
}
|
|
197
210
|
@uri = "/Trunks/#{@solution[:sid]}"
|
|
198
|
-
|
|
211
|
+
|
|
199
212
|
# Dependents
|
|
200
213
|
@origination_urls = nil
|
|
201
214
|
@credentials_lists = nil
|
|
202
215
|
@ip_access_control_lists = nil
|
|
203
216
|
@phone_numbers = nil
|
|
204
217
|
end
|
|
205
|
-
|
|
218
|
+
|
|
206
219
|
##
|
|
207
220
|
# Fetch a TrunkInstance
|
|
208
221
|
# @return [TrunkInstance] Fetched TrunkInstance
|
|
209
222
|
def fetch
|
|
210
|
-
params =
|
|
211
|
-
|
|
223
|
+
params = {}
|
|
224
|
+
|
|
212
225
|
payload = @version.fetch(
|
|
213
226
|
'GET',
|
|
214
227
|
@uri,
|
|
215
228
|
params,
|
|
216
229
|
)
|
|
217
|
-
|
|
218
|
-
TrunkInstance.new(
|
|
230
|
+
|
|
231
|
+
return TrunkInstance.new(
|
|
219
232
|
@version,
|
|
220
233
|
payload,
|
|
221
|
-
sid: @solution[
|
|
234
|
+
sid: @solution['sid'],
|
|
222
235
|
)
|
|
223
236
|
end
|
|
224
|
-
|
|
237
|
+
|
|
225
238
|
##
|
|
226
239
|
# Deletes the TrunkInstance
|
|
227
240
|
# @return [Boolean] true if delete succeeds, true otherwise
|
|
228
241
|
def delete
|
|
229
|
-
@version.delete('delete', @uri)
|
|
242
|
+
return @version.delete('delete', @uri)
|
|
230
243
|
end
|
|
231
|
-
|
|
244
|
+
|
|
232
245
|
##
|
|
233
246
|
# Update the TrunkInstance
|
|
234
247
|
# @param [String] friendly_name The friendly_name
|
|
@@ -237,37 +250,35 @@ module Twilio
|
|
|
237
250
|
# @param [String] disaster_recovery_method The disaster_recovery_method
|
|
238
251
|
# @param [String] recording The recording
|
|
239
252
|
# @param [Boolean] secure The secure
|
|
253
|
+
|
|
240
254
|
# @return [TrunkInstance] Updated TrunkInstance
|
|
241
|
-
def update(friendly_name:
|
|
242
|
-
data =
|
|
255
|
+
def update(friendly_name: nil, domain_name: nil, disaster_recovery_url: nil, disaster_recovery_method: nil, recording: nil, secure: nil)
|
|
256
|
+
data = {
|
|
243
257
|
'FriendlyName' => friendly_name,
|
|
244
258
|
'DomainName' => domain_name,
|
|
245
259
|
'DisasterRecoveryUrl' => disaster_recovery_url,
|
|
246
260
|
'DisasterRecoveryMethod' => disaster_recovery_method,
|
|
247
261
|
'Recording' => recording,
|
|
248
262
|
'Secure' => secure,
|
|
249
|
-
}
|
|
250
|
-
|
|
263
|
+
}
|
|
264
|
+
|
|
251
265
|
payload = @version.update(
|
|
252
266
|
'POST',
|
|
253
267
|
@uri,
|
|
254
268
|
data: data,
|
|
255
269
|
)
|
|
256
|
-
|
|
257
|
-
TrunkInstance.new(
|
|
270
|
+
|
|
271
|
+
return TrunkInstance.new(
|
|
258
272
|
@version,
|
|
259
273
|
payload,
|
|
260
|
-
sid: @solution[
|
|
274
|
+
sid: @solution['sid'],
|
|
261
275
|
)
|
|
262
276
|
end
|
|
263
|
-
|
|
277
|
+
|
|
264
278
|
##
|
|
265
279
|
# Access the origination_urls
|
|
266
|
-
# @return [OriginationUrlList]
|
|
267
|
-
# @return [OriginationUrlContext] if sid was passed.
|
|
280
|
+
# @return [OriginationUrlList] OriginationUrlList
|
|
268
281
|
def origination_urls(sid=:unset)
|
|
269
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
270
|
-
|
|
271
282
|
if sid != :unset
|
|
272
283
|
return OriginationUrlContext.new(
|
|
273
284
|
@version,
|
|
@@ -275,24 +286,21 @@ module Twilio
|
|
|
275
286
|
sid,
|
|
276
287
|
)
|
|
277
288
|
end
|
|
278
|
-
|
|
289
|
+
|
|
279
290
|
unless @origination_urls
|
|
280
291
|
@origination_urls = OriginationUrlList.new(
|
|
281
292
|
@version,
|
|
282
293
|
trunk_sid: @solution[:sid],
|
|
283
294
|
)
|
|
284
295
|
end
|
|
285
|
-
|
|
296
|
+
|
|
286
297
|
@origination_urls
|
|
287
298
|
end
|
|
288
|
-
|
|
299
|
+
|
|
289
300
|
##
|
|
290
301
|
# Access the credentials_lists
|
|
291
|
-
# @return [CredentialListList]
|
|
292
|
-
# @return [CredentialListContext] if sid was passed.
|
|
302
|
+
# @return [CredentialListList] CredentialListList
|
|
293
303
|
def credentials_lists(sid=:unset)
|
|
294
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
295
|
-
|
|
296
304
|
if sid != :unset
|
|
297
305
|
return CredentialListContext.new(
|
|
298
306
|
@version,
|
|
@@ -300,24 +308,21 @@ module Twilio
|
|
|
300
308
|
sid,
|
|
301
309
|
)
|
|
302
310
|
end
|
|
303
|
-
|
|
311
|
+
|
|
304
312
|
unless @credentials_lists
|
|
305
313
|
@credentials_lists = CredentialListList.new(
|
|
306
314
|
@version,
|
|
307
315
|
trunk_sid: @solution[:sid],
|
|
308
316
|
)
|
|
309
317
|
end
|
|
310
|
-
|
|
318
|
+
|
|
311
319
|
@credentials_lists
|
|
312
320
|
end
|
|
313
|
-
|
|
321
|
+
|
|
314
322
|
##
|
|
315
323
|
# Access the ip_access_control_lists
|
|
316
|
-
# @return [IpAccessControlListList]
|
|
317
|
-
# @return [IpAccessControlListContext] if sid was passed.
|
|
324
|
+
# @return [IpAccessControlListList] IpAccessControlListList
|
|
318
325
|
def ip_access_control_lists(sid=:unset)
|
|
319
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
320
|
-
|
|
321
326
|
if sid != :unset
|
|
322
327
|
return IpAccessControlListContext.new(
|
|
323
328
|
@version,
|
|
@@ -325,24 +330,21 @@ module Twilio
|
|
|
325
330
|
sid,
|
|
326
331
|
)
|
|
327
332
|
end
|
|
328
|
-
|
|
333
|
+
|
|
329
334
|
unless @ip_access_control_lists
|
|
330
335
|
@ip_access_control_lists = IpAccessControlListList.new(
|
|
331
336
|
@version,
|
|
332
337
|
trunk_sid: @solution[:sid],
|
|
333
338
|
)
|
|
334
339
|
end
|
|
335
|
-
|
|
340
|
+
|
|
336
341
|
@ip_access_control_lists
|
|
337
342
|
end
|
|
338
|
-
|
|
343
|
+
|
|
339
344
|
##
|
|
340
345
|
# Access the phone_numbers
|
|
341
|
-
# @return [PhoneNumberList]
|
|
342
|
-
# @return [PhoneNumberContext] if sid was passed.
|
|
346
|
+
# @return [PhoneNumberList] PhoneNumberList
|
|
343
347
|
def phone_numbers(sid=:unset)
|
|
344
|
-
raise ArgumentError, 'sid cannot be nil' if sid.nil?
|
|
345
|
-
|
|
346
348
|
if sid != :unset
|
|
347
349
|
return PhoneNumberContext.new(
|
|
348
350
|
@version,
|
|
@@ -350,17 +352,17 @@ module Twilio
|
|
|
350
352
|
sid,
|
|
351
353
|
)
|
|
352
354
|
end
|
|
353
|
-
|
|
355
|
+
|
|
354
356
|
unless @phone_numbers
|
|
355
357
|
@phone_numbers = PhoneNumberList.new(
|
|
356
358
|
@version,
|
|
357
359
|
trunk_sid: @solution[:sid],
|
|
358
360
|
)
|
|
359
361
|
end
|
|
360
|
-
|
|
362
|
+
|
|
361
363
|
@phone_numbers
|
|
362
364
|
end
|
|
363
|
-
|
|
365
|
+
|
|
364
366
|
##
|
|
365
367
|
# Provide a user friendly representation
|
|
366
368
|
def to_s
|
|
@@ -368,17 +370,18 @@ module Twilio
|
|
|
368
370
|
"#<Twilio.Trunking.V1.TrunkContext #{context}>"
|
|
369
371
|
end
|
|
370
372
|
end
|
|
371
|
-
|
|
373
|
+
|
|
372
374
|
class TrunkInstance < InstanceResource
|
|
373
375
|
##
|
|
374
376
|
# Initialize the TrunkInstance
|
|
375
377
|
# @param [Version] version Version that contains the resource
|
|
376
378
|
# @param [Hash] payload payload that contains response from Twilio
|
|
377
379
|
# @param [String] sid The sid
|
|
380
|
+
|
|
378
381
|
# @return [TrunkInstance] TrunkInstance
|
|
379
382
|
def initialize(version, payload, sid: nil)
|
|
380
383
|
super(version)
|
|
381
|
-
|
|
384
|
+
|
|
382
385
|
# Marshaled Properties
|
|
383
386
|
@properties = {
|
|
384
387
|
'account_sid' => payload['account_sid'],
|
|
@@ -390,23 +393,25 @@ module Twilio
|
|
|
390
393
|
'recording' => payload['recording'],
|
|
391
394
|
'auth_type' => payload['auth_type'],
|
|
392
395
|
'auth_type_set' => payload['auth_type_set'],
|
|
393
|
-
'date_created' => Twilio.
|
|
394
|
-
'date_updated' => Twilio.
|
|
396
|
+
'date_created' => Twilio.deserialize_iso8601(payload['date_created']),
|
|
397
|
+
'date_updated' => Twilio.deserialize_iso8601(payload['date_updated']),
|
|
395
398
|
'sid' => payload['sid'],
|
|
396
399
|
'url' => payload['url'],
|
|
397
400
|
'links' => payload['links'],
|
|
398
401
|
}
|
|
399
|
-
|
|
402
|
+
|
|
400
403
|
# Context
|
|
401
404
|
@instance_context = nil
|
|
402
405
|
@params = {
|
|
403
406
|
'sid' => sid || @properties['sid'],
|
|
404
407
|
}
|
|
405
408
|
end
|
|
406
|
-
|
|
409
|
+
|
|
407
410
|
##
|
|
408
411
|
# Generate an instance context for the instance, the context is capable of
|
|
409
412
|
# performing various actions. All instance actions are proxied to the context
|
|
413
|
+
# @param [Version] version Version that contains the resource
|
|
414
|
+
|
|
410
415
|
# @return [TrunkContext] TrunkContext for this TrunkInstance
|
|
411
416
|
def context
|
|
412
417
|
unless @instance_context
|
|
@@ -417,105 +422,77 @@ module Twilio
|
|
|
417
422
|
end
|
|
418
423
|
@instance_context
|
|
419
424
|
end
|
|
420
|
-
|
|
421
|
-
##
|
|
422
|
-
# @return [String] The account_sid
|
|
425
|
+
|
|
423
426
|
def account_sid
|
|
424
427
|
@properties['account_sid']
|
|
425
428
|
end
|
|
426
|
-
|
|
427
|
-
##
|
|
428
|
-
# @return [String] The domain_name
|
|
429
|
+
|
|
429
430
|
def domain_name
|
|
430
431
|
@properties['domain_name']
|
|
431
432
|
end
|
|
432
|
-
|
|
433
|
-
##
|
|
434
|
-
# @return [String] The disaster_recovery_method
|
|
433
|
+
|
|
435
434
|
def disaster_recovery_method
|
|
436
435
|
@properties['disaster_recovery_method']
|
|
437
436
|
end
|
|
438
|
-
|
|
439
|
-
##
|
|
440
|
-
# @return [String] The disaster_recovery_url
|
|
437
|
+
|
|
441
438
|
def disaster_recovery_url
|
|
442
439
|
@properties['disaster_recovery_url']
|
|
443
440
|
end
|
|
444
|
-
|
|
445
|
-
##
|
|
446
|
-
# @return [String] The friendly_name
|
|
441
|
+
|
|
447
442
|
def friendly_name
|
|
448
443
|
@properties['friendly_name']
|
|
449
444
|
end
|
|
450
|
-
|
|
451
|
-
##
|
|
452
|
-
# @return [Boolean] The secure
|
|
445
|
+
|
|
453
446
|
def secure
|
|
454
447
|
@properties['secure']
|
|
455
448
|
end
|
|
456
|
-
|
|
457
|
-
##
|
|
458
|
-
# @return [Hash] The recording
|
|
449
|
+
|
|
459
450
|
def recording
|
|
460
451
|
@properties['recording']
|
|
461
452
|
end
|
|
462
|
-
|
|
463
|
-
##
|
|
464
|
-
# @return [String] The auth_type
|
|
453
|
+
|
|
465
454
|
def auth_type
|
|
466
455
|
@properties['auth_type']
|
|
467
456
|
end
|
|
468
|
-
|
|
469
|
-
##
|
|
470
|
-
# @return [String] The auth_type_set
|
|
457
|
+
|
|
471
458
|
def auth_type_set
|
|
472
459
|
@properties['auth_type_set']
|
|
473
460
|
end
|
|
474
|
-
|
|
475
|
-
##
|
|
476
|
-
# @return [Time] The date_created
|
|
461
|
+
|
|
477
462
|
def date_created
|
|
478
463
|
@properties['date_created']
|
|
479
464
|
end
|
|
480
|
-
|
|
481
|
-
##
|
|
482
|
-
# @return [Time] The date_updated
|
|
465
|
+
|
|
483
466
|
def date_updated
|
|
484
467
|
@properties['date_updated']
|
|
485
468
|
end
|
|
486
|
-
|
|
487
|
-
##
|
|
488
|
-
# @return [String] The sid
|
|
469
|
+
|
|
489
470
|
def sid
|
|
490
471
|
@properties['sid']
|
|
491
472
|
end
|
|
492
|
-
|
|
493
|
-
##
|
|
494
|
-
# @return [String] The url
|
|
473
|
+
|
|
495
474
|
def url
|
|
496
475
|
@properties['url']
|
|
497
476
|
end
|
|
498
|
-
|
|
499
|
-
##
|
|
500
|
-
# @return [String] The links
|
|
477
|
+
|
|
501
478
|
def links
|
|
502
479
|
@properties['links']
|
|
503
480
|
end
|
|
504
|
-
|
|
481
|
+
|
|
505
482
|
##
|
|
506
483
|
# Fetch a TrunkInstance
|
|
507
484
|
# @return [TrunkInstance] Fetched TrunkInstance
|
|
508
485
|
def fetch
|
|
509
|
-
context.fetch
|
|
486
|
+
@context.fetch()
|
|
510
487
|
end
|
|
511
|
-
|
|
488
|
+
|
|
512
489
|
##
|
|
513
490
|
# Deletes the TrunkInstance
|
|
514
491
|
# @return [Boolean] true if delete succeeds, true otherwise
|
|
515
492
|
def delete
|
|
516
|
-
context.delete
|
|
493
|
+
@context.delete()
|
|
517
494
|
end
|
|
518
|
-
|
|
495
|
+
|
|
519
496
|
##
|
|
520
497
|
# Update the TrunkInstance
|
|
521
498
|
# @param [String] friendly_name The friendly_name
|
|
@@ -524,10 +501,10 @@ module Twilio
|
|
|
524
501
|
# @param [String] disaster_recovery_method The disaster_recovery_method
|
|
525
502
|
# @param [String] recording The recording
|
|
526
503
|
# @param [Boolean] secure The secure
|
|
504
|
+
|
|
527
505
|
# @return [TrunkInstance] Updated TrunkInstance
|
|
528
|
-
def update(friendly_name:
|
|
529
|
-
context.update(
|
|
530
|
-
friendly_name: friendly_name,
|
|
506
|
+
def update(friendly_name: nil, domain_name: nil, disaster_recovery_url: nil, disaster_recovery_method: nil, recording: nil, secure: nil)
|
|
507
|
+
@context.update(
|
|
531
508
|
domain_name: domain_name,
|
|
532
509
|
disaster_recovery_url: disaster_recovery_url,
|
|
533
510
|
disaster_recovery_method: disaster_recovery_method,
|
|
@@ -535,40 +512,40 @@ module Twilio
|
|
|
535
512
|
secure: secure,
|
|
536
513
|
)
|
|
537
514
|
end
|
|
538
|
-
|
|
515
|
+
|
|
539
516
|
##
|
|
540
517
|
# Access the origination_urls
|
|
541
518
|
# @return [origination_urls] origination_urls
|
|
542
519
|
def origination_urls
|
|
543
|
-
context.origination_urls
|
|
520
|
+
@context.origination_urls
|
|
544
521
|
end
|
|
545
|
-
|
|
522
|
+
|
|
546
523
|
##
|
|
547
524
|
# Access the credentials_lists
|
|
548
525
|
# @return [credentials_lists] credentials_lists
|
|
549
526
|
def credentials_lists
|
|
550
|
-
context.credentials_lists
|
|
527
|
+
@context.credentials_lists
|
|
551
528
|
end
|
|
552
|
-
|
|
529
|
+
|
|
553
530
|
##
|
|
554
531
|
# Access the ip_access_control_lists
|
|
555
532
|
# @return [ip_access_control_lists] ip_access_control_lists
|
|
556
533
|
def ip_access_control_lists
|
|
557
|
-
context.ip_access_control_lists
|
|
534
|
+
@context.ip_access_control_lists
|
|
558
535
|
end
|
|
559
|
-
|
|
536
|
+
|
|
560
537
|
##
|
|
561
538
|
# Access the phone_numbers
|
|
562
539
|
# @return [phone_numbers] phone_numbers
|
|
563
540
|
def phone_numbers
|
|
564
|
-
context.phone_numbers
|
|
541
|
+
@context.phone_numbers
|
|
565
542
|
end
|
|
566
|
-
|
|
543
|
+
|
|
567
544
|
##
|
|
568
545
|
# Provide a user friendly representation
|
|
569
546
|
def to_s
|
|
570
|
-
|
|
571
|
-
"<Twilio.Trunking.V1.TrunkInstance #{
|
|
547
|
+
context = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
548
|
+
"<Twilio.Trunking.V1.TrunkInstance #{context}>"
|
|
572
549
|
end
|
|
573
550
|
end
|
|
574
551
|
end
|