twilio-ruby 5.59.0 → 5.61.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/deploy.yml +65 -0
- data/.github/workflows/test.yml +52 -0
- data/.gitignore +3 -1
- data/.rubocop.yml +1 -1
- data/CHANGES.md +91 -0
- data/Makefile +3 -4
- data/README.md +4 -4
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +7 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +269 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +31 -6
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +353 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +43 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +416 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +16 -0
- data/lib/twilio-ruby/rest/supersim.rb +9 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -2
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +8 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +16 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +5 -5
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +9 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +23 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
- data/lib/twilio-ruby/twiml/voice_response.rb +613 -36
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +14 -4
- data/.travis.yml +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0744c60bf47ebe5674a6c2ea371fdda3ae937ef4
|
4
|
+
data.tar.gz: a8d42def7f349fb8a99c035f59c3436d8f969fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b62a9817b86b3f5e03c491072907cf359eff878d21b315f92848e9546a6f1f3664d29c1be464e17444bc15754af6079703f3e46d17f7845d9ed460ae9d8ff44
|
7
|
+
data.tar.gz: 5612432558411b78da25b0b6e1dfcb4edd51ed710c3562cb9174fe6e93bcdc0cd88e55aa02dc19a361534dcbe3e88a52d3ca64ed6032ac42af2045547e30d70e
|
@@ -0,0 +1,65 @@
|
|
1
|
+
name: Deploy
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
tags:
|
5
|
+
- '*'
|
6
|
+
workflow_dispatch:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
deploy:
|
10
|
+
name: Deploy to Rubygems
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout twilio-ruby
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
with:
|
16
|
+
fetch-depth: 0
|
17
|
+
|
18
|
+
- name: Login to Docker Hub
|
19
|
+
uses: docker/login-action@v1
|
20
|
+
with:
|
21
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
22
|
+
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
|
23
|
+
|
24
|
+
# The expression strips off the shortest match from the front of the string to yield just the tag name as the output
|
25
|
+
- name: Get tagged version
|
26
|
+
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
27
|
+
|
28
|
+
- name: Build and Push image
|
29
|
+
run: make docker-build && make docker-push
|
30
|
+
|
31
|
+
- name: Set up Ruby
|
32
|
+
uses: ruby/setup-ruby@v1
|
33
|
+
with:
|
34
|
+
ruby-version: 2.4
|
35
|
+
bundler-cache: true
|
36
|
+
|
37
|
+
- run: bundle install
|
38
|
+
- name: Publish to Rubygems
|
39
|
+
env:
|
40
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
|
41
|
+
run: |
|
42
|
+
mkdir -p $HOME/.gem
|
43
|
+
touch $HOME/.gem/credentials
|
44
|
+
chmod 0600 $HOME/.gem/credentials
|
45
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
46
|
+
gem build *.gemspec
|
47
|
+
gem push *.gem
|
48
|
+
|
49
|
+
notify-on-failure:
|
50
|
+
name: Slack notify on failure
|
51
|
+
if: ${{ failure() }}
|
52
|
+
needs: [deploy]
|
53
|
+
runs-on: ubuntu-latest
|
54
|
+
steps:
|
55
|
+
- uses: rtCamp/action-slack-notify@v2
|
56
|
+
env:
|
57
|
+
SLACK_COLOR: ${{ needs.deploy.status }}
|
58
|
+
SLACK_ICON_EMOJI: ':github:'
|
59
|
+
SLACK_MESSAGE: ${{ format('Failed to publish {1} to RubyGems{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
|
60
|
+
SLACK_TITLE: Deployment Failure
|
61
|
+
SLACK_USERNAME: GitHub Actions
|
62
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
63
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
64
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
65
|
+
MSG_MINIMAL: true
|
@@ -0,0 +1,52 @@
|
|
1
|
+
name: Tests
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ '*' ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ main ]
|
7
|
+
schedule:
|
8
|
+
# Run automatically at 8AM PST Monday-Friday
|
9
|
+
- cron: '0 15 * * 1-5'
|
10
|
+
workflow_dispatch:
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
name: Test
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
timeout-minutes: 20
|
17
|
+
strategy:
|
18
|
+
matrix:
|
19
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', ruby-head, jruby-9.2]
|
20
|
+
continue-on-error: ${{ matrix.ruby == 'ruby-head' }}
|
21
|
+
steps:
|
22
|
+
- name: Checkout twilio-ruby
|
23
|
+
uses: actions/checkout@v2
|
24
|
+
|
25
|
+
- name: Set up Ruby
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
|
31
|
+
- run: bundle install --with development
|
32
|
+
- run: bundle exec rake install
|
33
|
+
- name: Run Unit Tests
|
34
|
+
run: make test
|
35
|
+
|
36
|
+
notify-on-failure:
|
37
|
+
name: Slack notify on failure
|
38
|
+
if: ${{ failure() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
|
39
|
+
needs: [test]
|
40
|
+
runs-on: ubuntu-latest
|
41
|
+
steps:
|
42
|
+
- uses: rtCamp/action-slack-notify@v2
|
43
|
+
env:
|
44
|
+
SLACK_COLOR: ${{ needs.test.status }}
|
45
|
+
SLACK_ICON_EMOJI: ':github:'
|
46
|
+
SLACK_MESSAGE: ${{ format('Build {2} in {1} failed{3} {0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id, ':') }}
|
47
|
+
SLACK_TITLE: Build Failure
|
48
|
+
SLACK_USERNAME: GitHub Actions
|
49
|
+
SLACK_MSG_AUTHOR: twilio-dx
|
50
|
+
SLACK_FOOTER: Posted automatically using GitHub Actions
|
51
|
+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
52
|
+
MSG_MINIMAL: true
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,97 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2021-12-01] Version 5.61.2
|
5
|
+
---------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #579](https://github.com/twilio/twilio-ruby/pull/579): make ruby-head test optional. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
8
|
+
|
9
|
+
**Conversations**
|
10
|
+
- Add `Service Webhook Configuration` resource
|
11
|
+
|
12
|
+
**Flex**
|
13
|
+
- Adding `flex_insights_drilldown` and `flex_url` objects to Flex Configuration
|
14
|
+
|
15
|
+
**Messaging**
|
16
|
+
- Update us_app_to_person endpoints to remove beta feature flag based access
|
17
|
+
|
18
|
+
**Supersim**
|
19
|
+
- Add IP Commands resource
|
20
|
+
|
21
|
+
**Verify**
|
22
|
+
- Add optional `factor_friendly_name` parameter to the create access token endpoint.
|
23
|
+
|
24
|
+
**Video**
|
25
|
+
- Add maxParticipantDuration param to Rooms
|
26
|
+
|
27
|
+
**Twiml**
|
28
|
+
- Unrevert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
29
|
+
- Revert Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
30
|
+
|
31
|
+
|
32
|
+
[2021-11-17] Version 5.61.1
|
33
|
+
---------------------------
|
34
|
+
**Library - Chore**
|
35
|
+
- [PR #578](https://github.com/twilio/twilio-ruby/pull/578): remove yardoc files. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
36
|
+
|
37
|
+
**Library - Fix**
|
38
|
+
- [PR #576](https://github.com/twilio/twilio-ruby/pull/576): git log retrieval issues. Thanks to [@shwetha-manvinkurke](https://github.com/shwetha-manvinkurke)!
|
39
|
+
|
40
|
+
**Frontline**
|
41
|
+
- Added `is_available` to User's resource
|
42
|
+
|
43
|
+
**Messaging**
|
44
|
+
- Added GET vetting API
|
45
|
+
|
46
|
+
**Verify**
|
47
|
+
- Add `WHATSAPP` to the attempts API.
|
48
|
+
- Allow to update `config.notification_platform` from `none` to `apn` or `fcm` and viceversa for Verify Push
|
49
|
+
- Add `none` as a valid `config.notification_platform` value for Verify Push
|
50
|
+
|
51
|
+
**Twiml**
|
52
|
+
- Add supported SSML children to `<emphasis>`, `<lang>`, `<p>`, `<prosody>`, `<s>`, and `<w>`.
|
53
|
+
|
54
|
+
|
55
|
+
[2021-11-03] Version 5.61.0
|
56
|
+
---------------------------
|
57
|
+
**Library - Chore**
|
58
|
+
- [PR #575](https://github.com/twilio/twilio-ruby/pull/575): migrate from TravisCI to GitHub Actions. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
|
59
|
+
|
60
|
+
**Api**
|
61
|
+
- Updated `media_url` property to be treated as PII
|
62
|
+
|
63
|
+
**Messaging**
|
64
|
+
- Added a new enum for brand registration status named DELETED **(breaking change)**
|
65
|
+
- Add a new K12_EDUCATION use case in us_app_to_person_usecase api transaction
|
66
|
+
- Added a new enum for brand registration status named IN_REVIEW
|
67
|
+
|
68
|
+
**Serverless**
|
69
|
+
- Add node14 as a valid Build runtime
|
70
|
+
|
71
|
+
**Verify**
|
72
|
+
- Fix typos in Verify Push Factor documentation for the `config.notification_token` parameter.
|
73
|
+
- Added `TemplateCustomSubstitutions` on verification creation
|
74
|
+
- Make `TemplateSid` parameter public for Verification resource and `DefaultTemplateSid` parameter public for Service resource. **(breaking change)**
|
75
|
+
|
76
|
+
|
77
|
+
[2021-10-18] Version 5.60.0
|
78
|
+
---------------------------
|
79
|
+
**Library - Feature**
|
80
|
+
- [PR #574](https://github.com/twilio/twilio-ruby/pull/574): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
|
81
|
+
|
82
|
+
**Api**
|
83
|
+
- Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
|
84
|
+
- Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
|
85
|
+
|
86
|
+
**Messaging**
|
87
|
+
- Add PUT and List brand vettings api
|
88
|
+
- Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
|
89
|
+
- Add brand_feedback as optional field to BrandRegistrations
|
90
|
+
|
91
|
+
**Video**
|
92
|
+
- Add `AudioOnly` to create room
|
93
|
+
|
94
|
+
|
4
95
|
[2021-10-06] Version 5.59.0
|
5
96
|
---------------------------
|
6
97
|
**Library - Fix**
|
data/Makefile
CHANGED
@@ -10,7 +10,7 @@ test: lint
|
|
10
10
|
bundle exec rake spec
|
11
11
|
|
12
12
|
lint:
|
13
|
-
rubocop --cache true --parallel
|
13
|
+
bundle exec rubocop -d --cache true --parallel
|
14
14
|
|
15
15
|
docs:
|
16
16
|
yard doc --output-dir ./doc
|
@@ -22,12 +22,11 @@ authors:
|
|
22
22
|
API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
|
23
23
|
docker-build:
|
24
24
|
docker build -t twilio/twilio-ruby .
|
25
|
-
docker tag twilio/twilio-ruby twilio/twilio-ruby:${
|
25
|
+
docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
|
26
26
|
docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
|
27
27
|
docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
|
28
28
|
|
29
29
|
docker-push:
|
30
|
-
|
31
|
-
docker push twilio/twilio-ruby:${TRAVIS_TAG}
|
30
|
+
docker push twilio/twilio-ruby:${GITHUB_TAG}
|
32
31
|
docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
|
33
32
|
docker push twilio/twilio-ruby:latest
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# twilio-ruby
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Tests](https://github.com/twilio/twilio-ruby/actions/workflows/test.yml/badge.svg)][github-actions]
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
|
5
5
|
[![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
|
6
6
|
|
@@ -35,13 +35,13 @@ This library supports the following Ruby implementations:
|
|
35
35
|
To install using [Bundler][bundler] grab the latest stable version:
|
36
36
|
|
37
37
|
```ruby
|
38
|
-
gem 'twilio-ruby', '~> 5.
|
38
|
+
gem 'twilio-ruby', '~> 5.61.2'
|
39
39
|
```
|
40
40
|
|
41
41
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
42
42
|
|
43
43
|
```bash
|
44
|
-
gem install twilio-ruby -v 5.
|
44
|
+
gem install twilio-ruby -v 5.61.2
|
45
45
|
```
|
46
46
|
|
47
47
|
To build and install the development branch yourself from the latest source:
|
@@ -257,7 +257,7 @@ If you've instead found a bug in the library or would like new features added, g
|
|
257
257
|
[bundler]: https://bundler.io
|
258
258
|
[rubygems]: https://rubygems.org
|
259
259
|
[gem]: https://rubygems.org/gems/twilio
|
260
|
-
[
|
260
|
+
[github-actions]: https://github.com/twilio/twilio-ruby/actions/workflows/test.yml
|
261
261
|
[upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
|
262
262
|
[issues]: https://github.com/twilio/twilio-ruby/issues
|
263
263
|
[faraday]: https://github.com/lostisland/faraday
|
@@ -267,6 +267,19 @@ module Twilio
|
|
267
267
|
payload
|
268
268
|
end
|
269
269
|
end
|
270
|
+
|
271
|
+
class PlaybackGrant
|
272
|
+
include AccessTokenGrant
|
273
|
+
attr_accessor :grant
|
274
|
+
|
275
|
+
def _key
|
276
|
+
'player'
|
277
|
+
end
|
278
|
+
|
279
|
+
def _generate_payload
|
280
|
+
grant
|
281
|
+
end
|
282
|
+
end
|
270
283
|
end
|
271
284
|
end
|
272
285
|
end
|
@@ -144,9 +144,9 @@ module Twilio
|
|
144
144
|
# Calls Beta)
|
145
145
|
# @param [String] call_token A token string needed to invoke a forwarded call. A
|
146
146
|
# call_token is generated when an incoming call is received on a Twilio number.
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
147
|
+
# Pass an incoming call's call_token value to a forwarded call via the call_token
|
148
|
+
# parameter when creating a new call. A forwarded call should bear the same
|
149
|
+
# CallerID of the original incoming call.
|
150
150
|
# @param [String] recording_track The audio track to record for the call. Can be:
|
151
151
|
# `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the
|
152
152
|
# audio that is received by Twilio. `outbound` records the audio that is generated
|
@@ -331,6 +331,7 @@ module Twilio
|
|
331
331
|
'voice_url' => payload['voice_url'],
|
332
332
|
'emergency_status' => payload['emergency_status'],
|
333
333
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
334
|
+
'emergency_address_status' => payload['emergency_address_status'],
|
334
335
|
'bundle_sid' => payload['bundle_sid'],
|
335
336
|
'status' => payload['status'],
|
336
337
|
}
|
@@ -522,6 +523,12 @@ module Twilio
|
|
522
523
|
@properties['emergency_address_sid']
|
523
524
|
end
|
524
525
|
|
526
|
+
##
|
527
|
+
# @return [local.EmergencyAddressStatus] State of the emergency address configuration for the phone number
|
528
|
+
def emergency_address_status
|
529
|
+
@properties['emergency_address_status']
|
530
|
+
end
|
531
|
+
|
525
532
|
##
|
526
533
|
# @return [String] The SID of the Bundle resource associated with number
|
527
534
|
def bundle_sid
|
@@ -330,6 +330,7 @@ module Twilio
|
|
330
330
|
'voice_url' => payload['voice_url'],
|
331
331
|
'emergency_status' => payload['emergency_status'],
|
332
332
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
333
|
+
'emergency_address_status' => payload['emergency_address_status'],
|
333
334
|
'bundle_sid' => payload['bundle_sid'],
|
334
335
|
'status' => payload['status'],
|
335
336
|
}
|
@@ -521,6 +522,12 @@ module Twilio
|
|
521
522
|
@properties['emergency_address_sid']
|
522
523
|
end
|
523
524
|
|
525
|
+
##
|
526
|
+
# @return [mobile.EmergencyAddressStatus] State of the emergency address configuration for the phone number
|
527
|
+
def emergency_address_status
|
528
|
+
@properties['emergency_address_status']
|
529
|
+
end
|
530
|
+
|
524
531
|
##
|
525
532
|
# @return [String] The SID of the Bundle resource associated with number
|
526
533
|
def bundle_sid
|
@@ -330,6 +330,7 @@ module Twilio
|
|
330
330
|
'voice_url' => payload['voice_url'],
|
331
331
|
'emergency_status' => payload['emergency_status'],
|
332
332
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
333
|
+
'emergency_address_status' => payload['emergency_address_status'],
|
333
334
|
'bundle_sid' => payload['bundle_sid'],
|
334
335
|
'status' => payload['status'],
|
335
336
|
}
|
@@ -521,6 +522,12 @@ module Twilio
|
|
521
522
|
@properties['emergency_address_sid']
|
522
523
|
end
|
523
524
|
|
525
|
+
##
|
526
|
+
# @return [toll_free.EmergencyAddressStatus] State of the emergency address configuration for the phone number
|
527
|
+
def emergency_address_status
|
528
|
+
@properties['emergency_address_status']
|
529
|
+
end
|
530
|
+
|
524
531
|
##
|
525
532
|
# @return [String] The SID of the Bundle resource associated with number
|
526
533
|
def bundle_sid
|
@@ -550,6 +550,7 @@ module Twilio
|
|
550
550
|
'voice_url' => payload['voice_url'],
|
551
551
|
'emergency_status' => payload['emergency_status'],
|
552
552
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
553
|
+
'emergency_address_status' => payload['emergency_address_status'],
|
553
554
|
'bundle_sid' => payload['bundle_sid'],
|
554
555
|
'status' => payload['status'],
|
555
556
|
}
|
@@ -756,6 +757,12 @@ module Twilio
|
|
756
757
|
@properties['emergency_address_sid']
|
757
758
|
end
|
758
759
|
|
760
|
+
##
|
761
|
+
# @return [incoming_phone_number.EmergencyAddressStatus] State of the emergency address configuration for the phone number
|
762
|
+
def emergency_address_status
|
763
|
+
@properties['emergency_address_status']
|
764
|
+
end
|
765
|
+
|
759
766
|
##
|
760
767
|
# @return [String] The SID of the Bundle resource associated with number
|
761
768
|
def bundle_sid
|
@@ -41,6 +41,7 @@ module Twilio
|
|
41
41
|
@insights = nil
|
42
42
|
@ip_messaging = nil
|
43
43
|
@lookups = nil
|
44
|
+
@media = nil
|
44
45
|
@messaging = nil
|
45
46
|
@monitor = nil
|
46
47
|
@notify = nil
|
@@ -231,6 +232,12 @@ module Twilio
|
|
231
232
|
@lookups ||= Lookups.new self
|
232
233
|
end
|
233
234
|
|
235
|
+
##
|
236
|
+
# Access the Media Twilio Domain
|
237
|
+
def media
|
238
|
+
@media ||= Media.new self
|
239
|
+
end
|
240
|
+
|
234
241
|
##
|
235
242
|
# Access the Messaging Twilio Domain
|
236
243
|
def messaging
|