twilio-ruby 5.28.0 → 5.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +11 -6
  3. data/CHANGES.md +33 -0
  4. data/README.md +3 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -20
  6. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +7 -6
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +7 -6
  8. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +0 -14
  10. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
  11. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +6 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -6
  13. data/lib/twilio-ruby/rest/authy.rb +8 -8
  14. data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
  15. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +6 -3
  16. data/lib/twilio-ruby/rest/flex_api.rb +15 -15
  17. data/lib/twilio-ruby/rest/flex_api/v1.rb +20 -20
  18. data/lib/twilio-ruby/rest/messaging.rb +9 -9
  19. data/lib/twilio-ruby/rest/messaging/v1.rb +13 -13
  20. data/lib/twilio-ruby/rest/preview.rb +20 -20
  21. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +38 -0
  22. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +298 -0
  23. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +232 -0
  24. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  25. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +14 -14
  26. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +40 -5
  27. data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +7 -7
  28. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +51 -51
  29. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +10 -10
  30. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +96 -19
  31. data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
  32. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +8 -2
  33. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +10 -6
  34. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +10 -6
  35. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +271 -176
  36. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +282 -137
  37. data/lib/twilio-ruby/rest/video.rb +9 -9
  38. data/lib/twilio-ruby/rest/video/v1.rb +15 -15
  39. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -1
  40. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +9 -7
  41. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +3 -3
  42. data/lib/twilio-ruby/rest/wireless.rb +6 -6
  43. data/lib/twilio-ruby/rest/wireless/v1.rb +8 -8
  44. data/lib/twilio-ruby/rest/wireless/v1/command.rb +5 -4
  45. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -5
  46. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +114 -98
  47. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +4 -4
  48. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +16 -10
  49. data/lib/twilio-ruby/security/request_validator.rb +61 -8
  50. data/lib/twilio-ruby/version.rb +1 -1
  51. data/spec/integration/api/v2010/account/message_spec.rb +4 -4
  52. data/spec/integration/api/v2010/account/notification_spec.rb +0 -28
  53. data/spec/integration/conversations/v1/conversation/participant_spec.rb +27 -0
  54. data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +129 -0
  55. data/spec/integration/preview/bulk_exports/export/job_spec.rb +77 -0
  56. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +6 -1
  57. data/spec/integration/preview/trusted_comms/cps_spec.rb +1 -1
  58. data/spec/integration/preview/trusted_comms/current_call_spec.rb +10 -10
  59. data/spec/integration/preview/trusted_comms/device_spec.rb +1 -1
  60. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +15 -4
  61. data/spec/integration/wireless/v1/sim_spec.rb +84 -0
  62. data/spec/security/request_validator_spec.rb +41 -0
  63. metadata +9 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 486aaf4e71b9e38a32a027f43893b3c5098d3101
4
- data.tar.gz: 2e1fe06a188821f8d14986fdd001044d57cc9744
2
+ SHA256:
3
+ metadata.gz: 823cf1fc9cb2772927f2b02b9e2772a2a554743038cc3e64ebe61b7887edaec0
4
+ data.tar.gz: c5e0d12701240a1327d0ab16f843fa4daa060c6254d1bb0f707f04f1a39568bd
5
5
  SHA512:
6
- metadata.gz: 0ed662a67c01c89d9153639e96009dbd41e58cceabd0aaca7a6dede0e9b147cced8117db87846eed49defdc89f9934dc8fe208e8747bcbe63db97e7e7315a7b0
7
- data.tar.gz: fd2ddc21e809daef4c22373d75cbfb1f91606ee78d17dff9a8ec13986a56b97f1a94588bb59541db80f1b213a97784a603d7874dbebbd0f779fa054433c6530b
6
+ metadata.gz: 9ba643864523acc543eff047c6254a83354f883466c052cf95193c4d83f552e0a4a50393e559e488cf56e8c69b6eb9d7b6ea9180ff8f50064b66b405f6086d44
7
+ data.tar.gz: 2fd427e2e0b2a3237322a3c366dad641790bad79e44d4e36892cdd11f16d4c495720a7ba93e212ec6c9c207fdedf428f2aedf89c57847355d8f174b78d7d4d5e
@@ -20,9 +20,14 @@ matrix:
20
20
  fast_finish: true
21
21
 
22
22
  deploy:
23
- provider: script
24
- script: make docker-build && make docker-push
25
- skip_cleanup: true
26
- on:
27
- tags: true
28
- rvm: "2.4"
23
+ - provider: script
24
+ script: make docker-build && make docker-push
25
+ skip_cleanup: true
26
+ on:
27
+ tags: true
28
+ rvm: "2.4"
29
+ - provider: rubygems
30
+ api_key: $RUBYGEMS_APIKEY
31
+ on:
32
+ tags: true
33
+ rvm: "2.4"
data/CHANGES.md CHANGED
@@ -1,6 +1,39 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-10-30] Version 5.29.0
5
+ ---------------------------
6
+ **Library**
7
+ - [PR #481](https://github.com/twilio/twilio-ruby/pull/481): added request validation for urls with and without ports. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
8
+ - [PR #480](https://github.com/twilio/twilio-ruby/pull/480): Update resources after sorting. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
9
+ - [PR #479](https://github.com/twilio/twilio-ruby/pull/479): Auto-deploy via Travis CI upon tagged commit to master. Thanks to [@thinkingserious](https://github.com/thinkingserious)!
10
+
11
+ **Api**
12
+ - Add new usage categories to the public api `sms-messages-carrierfees` and `mms-messages-carrierfees`
13
+
14
+ **Conversations**
15
+ - Add ProjectedAddress to Conversations Participant resource
16
+
17
+ **Preview**
18
+ - Implemented different `Sid` for Current Calls (Verified by Twilio), instead of relying in `Call.Sid` from Voice API team **(breaking change)**
19
+
20
+ **Supersim**
21
+ - Add List endpoint to Commands resource for Super Sim Pilot
22
+ - Add UsageRecords resource for the Super Sim Pilot
23
+ - Add List endpoint to UsageRecords resource for the Super Sim Pilot
24
+ - Allow assigning a Sim to a Fleet by Fleet SID or Unique Name for Super SIM Pilot
25
+ - Add Update endpoint to Fleets resource for Super Sim Pilot
26
+ - Add Fetch endpoint to Commands resource for Super Sim Pilot
27
+ - Allow filtering the Sims resource List endpoint by Fleet
28
+ - Add List endpoint to Fleets resource for Super Sim Pilot
29
+
30
+ **Wireless**
31
+ - Added `account_sid` to Sim update parameters.
32
+
33
+ **Twiml**
34
+ - Add new locales and voices for `Say` from Polly
35
+
36
+
4
37
  [2019-10-16] Version 5.28.0
5
38
  ---------------------------
6
39
  **Library**
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Build Status](https://img.shields.io/travis/twilio/twilio-ruby.svg)][travis]
4
4
  [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
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)
5
6
 
6
7
  ## Documentation
7
8
 
@@ -29,13 +30,13 @@ in-line code documentation here in the library.
29
30
  To install using [Bundler][bundler] grab the latest stable version:
30
31
 
31
32
  ```ruby
32
- gem 'twilio-ruby', '~> 5.28.0'
33
+ gem 'twilio-ruby', '~> 5.29.0'
33
34
  ```
34
35
 
35
36
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
36
37
 
37
38
  ```bash
38
- gem install twilio-ruby -v 5.28.0
39
+ gem install twilio-ruby -v 5.29.0
39
40
  ```
40
41
 
41
42
  To build and install the development branch yourself from the latest source:
@@ -58,7 +58,7 @@ module Twilio
58
58
  # `completed`. If no event is specified, we send the `completed` status. If you
59
59
  # want to receive multiple events, specify each one in a separate
60
60
  # `status_callback_event` parameter. See the code sample for [monitoring call
61
- # progress](https://www.twilio.com/docs/voice/api/call?code-sample=code-create-a-call-and-specify-a-statuscallbackevent). If an `application_sid` is present, this parameter is ignored.
61
+ # progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored.
62
62
  # @param [String] status_callback_method The HTTP method we should use when
63
63
  # calling the `status_callback` URL. Can be: `GET` or `POST` and the default is
64
64
  # `POST`. If an `application_sid` parameter is present, this parameter is ignored.
@@ -78,9 +78,9 @@ module Twilio
78
78
  # seconds could result in an actual timeout closer to 15 seconds. You can set this
79
79
  # to a short time, such as `15` seconds, to hang up before reaching an answering
80
80
  # machine or voicemail.
81
- # @param [Boolean] record Set this parameter to `true` to record the phone call.
82
- # The `recording_url` will be sent to the `status_callback` URL. The default is
83
- # `false`.
81
+ # @param [Boolean] record Whether to record the call. Can be `true` to record the
82
+ # phone call, or `false` to not. The default is `false`. The `recording_url` is
83
+ # sent to the `status_callback` URL.
84
84
  # @param [String] recording_channels The number of channels in the final
85
85
  # recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both
86
86
  # legs of the call in a single channel of the recording file. `dual` records each
@@ -96,12 +96,12 @@ module Twilio
96
96
  # making a SIP call.
97
97
  # @param [String] sip_auth_password The password required to authenticate the user
98
98
  # account specified in `sip_auth_username`.
99
- # @param [String] machine_detection Detect if a human, answering machine, or fax
100
- # has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if
101
- # you would like us to return `AnsweredBy` as soon as the called party is
102
- # identified. Use `DetectMessageEnd`, if you would like to leave a message on an
103
- # answering machine. If `send_digits` is provided, this parameter is ignored. For
104
- # more information, see [Answering Machine
99
+ # @param [String] machine_detection Whether to detect if a human, answering
100
+ # machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`.
101
+ # Use `Enable` if you would like us to return `AnsweredBy` as soon as the called
102
+ # party is identified. Use `DetectMessageEnd`, if you would like to leave a
103
+ # message on an answering machine. If `send_digits` is provided, this parameter is
104
+ # ignored. For more information, see [Answering Machine
105
105
  # Detection](https://www.twilio.com/docs/voice/answering-machine-detection).
106
106
  # @param [String] machine_detection_timeout The number of seconds that we should
107
107
  # attempt to detect an answering machine before timing out and sending a voice
@@ -178,8 +178,8 @@ module Twilio
178
178
  # Lists CallInstance records from the API as a list.
179
179
  # Unlike stream(), this operation is eager and will load `limit` records into
180
180
  # memory before returning.
181
- # @param [String] to Only show calls to this phone number, SIP address, Client
182
- # identifier or SIM SID.
181
+ # @param [String] to Only show calls made to this phone number, SIP address,
182
+ # Client identifier or SIM SID.
183
183
  # @param [String] from Only include calls from this phone number, SIP address,
184
184
  # Client identifier or SIM SID.
185
185
  # @param [String] parent_call_sid Only include calls spawned by calls with this
@@ -221,8 +221,8 @@ module Twilio
221
221
  # Streams CallInstance records from the API as an Enumerable.
222
222
  # This operation lazily loads records as efficiently as possible until the limit
223
223
  # is reached.
224
- # @param [String] to Only show calls to this phone number, SIP address, Client
225
- # identifier or SIM SID.
224
+ # @param [String] to Only show calls made to this phone number, SIP address,
225
+ # Client identifier or SIM SID.
226
226
  # @param [String] from Only include calls from this phone number, SIP address,
227
227
  # Client identifier or SIM SID.
228
228
  # @param [String] parent_call_sid Only include calls spawned by calls with this
@@ -280,8 +280,8 @@ module Twilio
280
280
  ##
281
281
  # Retrieve a single page of CallInstance records from the API.
282
282
  # Request is executed immediately.
283
- # @param [String] to Only show calls to this phone number, SIP address, Client
284
- # identifier or SIM SID.
283
+ # @param [String] to Only show calls made to this phone number, SIP address,
284
+ # Client identifier or SIM SID.
285
285
  # @param [String] from Only include calls from this phone number, SIP address,
286
286
  # Client identifier or SIM SID.
287
287
  # @param [String] parent_call_sid Only include calls spawned by calls with this
@@ -395,8 +395,7 @@ module Twilio
395
395
  # @param [String] account_sid The SID of the
396
396
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the Call
397
397
  # resource(s) to fetch.
398
- # @param [String] sid The Twilio-provided string that uniquely identifies the Call
399
- # resource to fetch
398
+ # @param [String] sid The SID of the Call resource to fetch.
400
399
  # @return [CallContext] CallContext
401
400
  def initialize(version, account_sid, sid)
402
401
  super(version)
@@ -561,8 +560,7 @@ module Twilio
561
560
  # @param [String] account_sid The SID of the
562
561
  # [Account](https://www.twilio.com/docs/iam/api/account) that created this Call
563
562
  # resource.
564
- # @param [String] sid The Twilio-provided string that uniquely identifies the Call
565
- # resource to fetch
563
+ # @param [String] sid The SID of the Call resource to fetch.
566
564
  # @return [CallInstance] CallInstance
567
565
  def initialize(version, payload, account_sid: nil, sid: nil)
568
566
  super(version)
@@ -20,8 +20,8 @@ module Twilio
20
20
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the Call
21
21
  # Notification resource.
22
22
  # @param [String] call_sid The SID of the
23
- # [Call](https://www.twilio.com/docs/voice/api/call) the Call Notification
24
- # resource is associated with.
23
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call
24
+ # Notification resource is associated with.
25
25
  # @return [NotificationList] NotificationList
26
26
  def initialize(version, account_sid: nil, call_sid: nil)
27
27
  super(version)
@@ -196,8 +196,9 @@ module Twilio
196
196
  # @param [String] account_sid The SID of the
197
197
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the Call
198
198
  # Notification resource to fetch.
199
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
200
- # SID of the Call Notification resource to fetch.
199
+ # @param [String] call_sid The
200
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call
201
+ # Notification resource to fetch.
201
202
  # @param [String] sid The Twilio-provided string that uniquely identifies the Call
202
203
  # Notification resource to fetch.
203
204
  # @return [NotificationContext] NotificationContext
@@ -261,8 +262,8 @@ module Twilio
261
262
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the Call
262
263
  # Notification resource.
263
264
  # @param [String] call_sid The SID of the
264
- # [Call](https://www.twilio.com/docs/voice/api/call) the Call Notification
265
- # resource is associated with.
265
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call
266
+ # Notification resource is associated with.
266
267
  # @param [String] sid The Twilio-provided string that uniquely identifies the Call
267
268
  # Notification resource to fetch.
268
269
  # @return [NotificationInstance] NotificationInstance
@@ -20,8 +20,8 @@ module Twilio
20
20
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the
21
21
  # Recording resource.
22
22
  # @param [String] call_sid The SID of the
23
- # [Call](https://www.twilio.com/docs/voice/api/call) the Recording resource is
24
- # associated with.
23
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording
24
+ # resource is associated with.
25
25
  # @return [RecordingList] RecordingList
26
26
  def initialize(version, account_sid: nil, call_sid: nil)
27
27
  super(version)
@@ -231,8 +231,9 @@ module Twilio
231
231
  # @param [String] account_sid The SID of the
232
232
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the
233
233
  # Recording resource to fetch.
234
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
235
- # SID of the resource to fetch.
234
+ # @param [String] call_sid The
235
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource
236
+ # to fetch.
236
237
  # @param [String] sid The Twilio-provided string that uniquely identifies the
237
238
  # Recording resource to fetch.
238
239
  # @return [RecordingContext] RecordingContext
@@ -324,8 +325,8 @@ module Twilio
324
325
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the
325
326
  # Recording resource.
326
327
  # @param [String] call_sid The SID of the
327
- # [Call](https://www.twilio.com/docs/voice/api/call) the Recording resource is
328
- # associated with.
328
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording
329
+ # resource is associated with.
329
330
  # @param [String] sid The Twilio-provided string that uniquely identifies the
330
331
  # Recording resource to fetch.
331
332
  # @return [RecordingInstance] RecordingInstance
@@ -337,8 +337,9 @@ module Twilio
337
337
  # Participant resource to fetch.
338
338
  # @param [String] conference_sid The SID of the conference with the participant to
339
339
  # fetch.
340
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
341
- # SID of the resource to fetch.
340
+ # @param [String] call_sid The
341
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource
342
+ # to fetch.
342
343
  # @return [ParticipantContext] ParticipantContext
343
344
  def initialize(version, account_sid, conference_sid, call_sid)
344
345
  super(version)
@@ -468,8 +469,9 @@ module Twilio
468
469
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the
469
470
  # Participant resource.
470
471
  # @param [String] conference_sid The SID of the conference the participant is in.
471
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
472
- # SID of the resource to fetch.
472
+ # @param [String] call_sid The
473
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource
474
+ # to fetch.
473
475
  # @return [ParticipantInstance] ParticipantInstance
474
476
  def initialize(version, payload, account_sid: nil, conference_sid: nil, call_sid: nil)
475
477
  super(version)
@@ -218,13 +218,6 @@ module Twilio
218
218
  )
219
219
  end
220
220
 
221
- ##
222
- # Deletes the NotificationInstance
223
- # @return [Boolean] true if delete succeeds, false otherwise
224
- def delete
225
- @version.delete('delete', @uri)
226
- end
227
-
228
221
  ##
229
222
  # Provide a user friendly representation
230
223
  def to_s
@@ -400,13 +393,6 @@ module Twilio
400
393
  context.fetch
401
394
  end
402
395
 
403
- ##
404
- # Deletes the NotificationInstance
405
- # @return [Boolean] true if delete succeeds, false otherwise
406
- def delete
407
- context.delete
408
- end
409
-
410
396
  ##
411
397
  # Provide a user friendly representation
412
398
  def to_s
@@ -171,7 +171,7 @@ module Twilio
171
171
  # @param [Version] version Version that contains the resource
172
172
  # @param [String] account_sid The SID of the
173
173
  # [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue
174
- # resource(s) to fetch.
174
+ # resource to fetch.
175
175
  # @param [String] sid The Twilio-provided string that uniquely identifies the
176
176
  # Queue resource to fetch
177
177
  # @return [QueueContext] QueueContext
@@ -161,8 +161,9 @@ module Twilio
161
161
  # resource(s) to fetch.
162
162
  # @param [String] queue_sid The SID of the Queue in which to find the members to
163
163
  # fetch.
164
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
165
- # SID of the resource(s) to fetch.
164
+ # @param [String] call_sid The
165
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the
166
+ # resource(s) to fetch.
166
167
  # @return [MemberContext] MemberContext
167
168
  def initialize(version, account_sid, queue_sid, call_sid)
168
169
  super(version)
@@ -242,8 +243,9 @@ module Twilio
242
243
  # [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue
243
244
  # resource.
244
245
  # @param [String] queue_sid The SID of the Queue the member is in.
245
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
246
- # SID of the resource(s) to fetch.
246
+ # @param [String] call_sid The
247
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the
248
+ # resource(s) to fetch.
247
249
  # @return [MemberInstance] MemberInstance
248
250
  def initialize(version, payload, account_sid: nil, queue_sid: nil, call_sid: nil)
249
251
  super(version)
@@ -34,8 +34,9 @@ module Twilio
34
34
  # @param [Time] date_created_before Only include recordings that were created on this date
35
35
  # @param [Time] date_created Only include recordings that were created on this date
36
36
  # @param [Time] date_created_after Only include recordings that were created on this date
37
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
38
- # SID of the resources to read.
37
+ # @param [String] call_sid The
38
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources
39
+ # to read.
39
40
  # @param [String] conference_sid The Conference SID that identifies the conference
40
41
  # associated with the recording to read.
41
42
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -64,8 +65,9 @@ module Twilio
64
65
  # @param [Time] date_created_before Only include recordings that were created on this date
65
66
  # @param [Time] date_created Only include recordings that were created on this date
66
67
  # @param [Time] date_created_after Only include recordings that were created on this date
67
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
68
- # SID of the resources to read.
68
+ # @param [String] call_sid The
69
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources
70
+ # to read.
69
71
  # @param [String] conference_sid The Conference SID that identifies the conference
70
72
  # associated with the recording to read.
71
73
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -110,8 +112,9 @@ module Twilio
110
112
  # @param [Time] date_created_before Only include recordings that were created on this date
111
113
  # @param [Time] date_created Only include recordings that were created on this date
112
114
  # @param [Time] date_created_after Only include recordings that were created on this date
113
- # @param [String] call_sid The [Call](https://www.twilio.com/docs/voice/api/call)
114
- # SID of the resources to read.
115
+ # @param [String] call_sid The
116
+ # [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources
117
+ # to read.
115
118
  # @param [String] conference_sid The Conference SID that identifies the conference
116
119
  # associated with the recording to read.
117
120
  # @param [String] page_token PageToken provided by the API
@@ -28,14 +28,6 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
- ##
32
- # @param [String] sid A 34 character string that uniquely identifies this Service.
33
- # @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
34
- # @return [Twilio::REST::Authy::V1::ServiceList]
35
- def services(sid=:unset)
36
- self.v1.services(sid)
37
- end
38
-
39
31
  ##
40
32
  # @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
41
33
  # `form-sms` or `form-totp`.
@@ -45,6 +37,14 @@ module Twilio
45
37
  self.v1.forms(form_type)
46
38
  end
47
39
 
40
+ ##
41
+ # @param [String] sid A 34 character string that uniquely identifies this Service.
42
+ # @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
43
+ # @return [Twilio::REST::Authy::V1::ServiceList]
44
+ def services(sid=:unset)
45
+ self.v1.services(sid)
46
+ end
47
+
48
48
  ##
49
49
  # Provide a user friendly representation
50
50
  def to_s
@@ -15,22 +15,8 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
- @services = nil
19
18
  @forms = nil
20
- end
21
-
22
- ##
23
- # @param [String] sid A 34 character string that uniquely identifies this Service.
24
- # @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
25
- # @return [Twilio::REST::Authy::V1::ServiceList]
26
- def services(sid=:unset)
27
- if sid.nil?
28
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @services ||= ServiceList.new self
31
- else
32
- ServiceContext.new(self, sid)
33
- end
19
+ @services = nil
34
20
  end
35
21
 
36
22
  ##
@@ -48,6 +34,20 @@ module Twilio
48
34
  end
49
35
  end
50
36
 
37
+ ##
38
+ # @param [String] sid A 34 character string that uniquely identifies this Service.
39
+ # @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
40
+ # @return [Twilio::REST::Authy::V1::ServiceList]
41
+ def services(sid=:unset)
42
+ if sid.nil?
43
+ raise ArgumentError, 'sid cannot be nil'
44
+ elsif sid == :unset
45
+ @services ||= ServiceList.new self
46
+ else
47
+ ServiceContext.new(self, sid)
48
+ end
49
+ end
50
+
51
51
  ##
52
52
  # Provide a user friendly representation
53
53
  def to_s