twilio-ruby 5.22.3 → 5.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +27 -0
  3. data/README.md +2 -4
  4. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +14 -0
  5. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
  6. data/lib/twilio-ruby/rest/chat/v1.rb +4 -2
  7. data/lib/twilio-ruby/rest/chat/v1/credential.rb +68 -47
  8. data/lib/twilio-ruby/rest/chat/v1/service.rb +311 -320
  9. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +59 -41
  10. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +52 -40
  11. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +71 -64
  12. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +58 -40
  13. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +39 -29
  14. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +51 -48
  15. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +16 -12
  16. data/lib/twilio-ruby/rest/insights/v1/summary.rb +13 -4
  17. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +4 -2
  18. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +68 -47
  19. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +311 -320
  20. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +59 -41
  21. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +52 -40
  22. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +71 -64
  23. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +58 -40
  24. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +39 -29
  25. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +51 -48
  26. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +16 -12
  27. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  28. data/lib/twilio-ruby/rest/preview.rb +25 -0
  29. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +49 -0
  30. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +217 -0
  31. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +146 -0
  32. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +169 -0
  33. data/lib/twilio-ruby/rest/serverless/v1.rb +2 -1
  34. data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -2
  35. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +30 -9
  36. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  37. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +39 -6
  38. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +191 -0
  39. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +133 -99
  40. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -3
  41. data/lib/twilio-ruby/version.rb +1 -1
  42. data/spec/integration/api/v2010/account/conference_spec.rb +86 -2
  43. data/spec/integration/api/v2010/account/connect_app_spec.rb +28 -6
  44. data/spec/integration/api/v2010/account/queue/member_spec.rb +4 -4
  45. data/spec/integration/insights/v1/summary_spec.rb +1 -0
  46. data/spec/integration/preview/trusted_comms/current_call_spec.rb +46 -0
  47. data/spec/integration/preview/trusted_comms/device_spec.rb +45 -0
  48. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +48 -0
  49. data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +6 -0
  50. data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +92 -0
  51. data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +31 -68
  52. data/spec/integration/video/v1/room/room_participant_spec.rb +6 -3
  53. data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
  54. metadata +15 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d639836f21bae04c5205a8b0a99d1545dce717efbea5b25567d7cef1ff8c980
4
- data.tar.gz: 497313815c3e98bf887191968f2365e0317cbb55f191fa79ba1e233a4f3023a1
3
+ metadata.gz: 302b8c62d4b15972648c5590f46a0487ec3d4f7a41ea7229df0f2381adce2f2c
4
+ data.tar.gz: 49c054dda1413d81134eb310e1d36302494c47bb3698ed9c7c38607905c349d4
5
5
  SHA512:
6
- metadata.gz: 5d324c4749daa9df57750028092228afb327f17be5dbfcf6d8e2d810518a197315827a0e8d153b1c251ad5f77b57482c646db20ce2ba06357b18efea4f31d82d
7
- data.tar.gz: d4718ce1aabd0309209d0b79db1d7013ead39bc1967e2b82bf16c271d721ab053d1734961204e46519543d92a6c58224190751a3361403e4a411aac81b132f87
6
+ metadata.gz: 3c2eb8e9e3b0828cae7e96bfc6e09f64e7eeb6200b7661da78d64ac23f5f12fbc16520958c4694a59f262349e5b6e86cdae56243f820d0b959a6c93d93be5fd1
7
+ data.tar.gz: 668777dcaa7ea9845152e1dd0748e86752ddf3a81a800771db5542b841a348af5d85ec0fbed878e075666102b6a74314621e261fd5d4dbb3cd3fc4a16fd5870d
data/CHANGES.md CHANGED
@@ -1,6 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-05-15] Version 5.23.0
5
+ ----------------------------
6
+ **Api**
7
+ - Make `method` optional for queue members update
8
+
9
+ **Chat**
10
+ - Removed `webhook.*.format` update parameters in Service resource from public library visibility in v1 **(breaking change)**
11
+
12
+ **Insights**
13
+ - Added client metrics as sdk_edge to summary.
14
+ - Added optional query param processing_state.
15
+
16
+ **Numbers**
17
+ - Add addtional metadata fields on a Document
18
+ - Add status callback fields and parameters
19
+
20
+ **Taskrouter**
21
+ - Added `channel_optimized_routing` attribute to task-channel endpoint
22
+
23
+ **Video**
24
+ - [Rooms] Add Video Subscription API
25
+
26
+ **Wireless**
27
+ - Added `imei` to Data Session resource.
28
+ - Remove `imeisv` from Data Session resource. **(breaking change)**
29
+
30
+
4
31
  [2019-05-01] Version 5.22.3
5
32
  ----------------------------
6
33
  **Serverless**
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Build Status](http://img.shields.io/travis/twilio/twilio-ruby.svg)][travis]
4
4
  [![Gem Version](http://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
- [![Code Quality](http://img.shields.io/codeclimate/github/twilio/twilio-ruby.svg)][codeclimate]
6
5
 
7
6
  A module for using the Twilio REST API and generating valid [TwiML](http://www.twilio.com/docs/api/twiml/ "TwiML - Twilio Markup Language"). [Click here to read the full documentation.][documentation]
8
7
 
@@ -27,13 +26,13 @@ in-line code documentation here in the library.
27
26
  To install using [Bundler][bundler] grab the latest stable version:
28
27
 
29
28
  ```ruby
30
- gem 'twilio-ruby', '~> 5.22.3'
29
+ gem 'twilio-ruby', '~> 5.23.0'
31
30
  ```
32
31
 
33
32
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
34
33
 
35
34
  ```bash
36
- gem install twilio-ruby -v 5.22.3
35
+ gem install twilio-ruby -v 5.23.0
37
36
  ```
38
37
 
39
38
  To build and install the development branch yourself from the latest source:
@@ -194,7 +193,6 @@ implementations:
194
193
  [rubygems]: http://rubygems.org
195
194
  [gem]: https://rubygems.org/gems/twilio
196
195
  [travis]: http://travis-ci.org/twilio/twilio-ruby
197
- [codeclimate]: https://codeclimate.com/github/twilio/twilio-ruby
198
196
  [upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
199
197
  [issues]: https://github.com/twilio/twilio-ruby/issues
200
198
  [faraday]: https://github.com/lostisland/faraday
@@ -227,6 +227,13 @@ module Twilio
227
227
  )
228
228
  end
229
229
 
230
+ ##
231
+ # Deletes the ConnectAppInstance
232
+ # @return [Boolean] true if delete succeeds, true otherwise
233
+ def delete
234
+ @version.delete('delete', @uri)
235
+ end
236
+
230
237
  ##
231
238
  # Provide a user friendly representation
232
239
  def to_s
@@ -391,6 +398,13 @@ module Twilio
391
398
  )
392
399
  end
393
400
 
401
+ ##
402
+ # Deletes the ConnectAppInstance
403
+ # @return [Boolean] true if delete succeeds, true otherwise
404
+ def delete
405
+ context.delete
406
+ end
407
+
394
408
  ##
395
409
  # Provide a user friendly representation
396
410
  def to_s
@@ -200,7 +200,7 @@ module Twilio
200
200
  # `POST` and the default is `POST`. `POST` sends the data as encoded form data and
201
201
  # `GET` sends the data as query parameters.
202
202
  # @return [MemberInstance] Updated MemberInstance
203
- def update(url: nil, method: nil)
203
+ def update(url: nil, method: :unset)
204
204
  data = Twilio::Values.of({'Url' => url, 'Method' => method, })
205
205
 
206
206
  payload = @version.update(
@@ -333,7 +333,7 @@ module Twilio
333
333
  # `POST` and the default is `POST`. `POST` sends the data as encoded form data and
334
334
  # `GET` sends the data as query parameters.
335
335
  # @return [MemberInstance] Updated MemberInstance
336
- def update(url: nil, method: nil)
336
+ def update(url: nil, method: :unset)
337
337
  context.update(url: url, method: method, )
338
338
  end
339
339
 
@@ -20,7 +20,8 @@ module Twilio
20
20
  end
21
21
 
22
22
  ##
23
- # @param [String] sid The sid
23
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
24
+ # Credential resource to fetch.
24
25
  # @return [Twilio::REST::Chat::V1::CredentialContext] if sid was passed.
25
26
  # @return [Twilio::REST::Chat::V1::CredentialList]
26
27
  def credentials(sid=:unset)
@@ -34,7 +35,8 @@ module Twilio
34
35
  end
35
36
 
36
37
  ##
37
- # @param [String] sid The sid
38
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
39
+ # Service resource to fetch.
38
40
  # @return [Twilio::REST::Chat::V1::ServiceContext] if sid was passed.
39
41
  # @return [Twilio::REST::Chat::V1::ServiceList]
40
42
  def services(sid=:unset)
@@ -108,19 +108,26 @@ module Twilio
108
108
  ##
109
109
  # Retrieve a single page of CredentialInstance records from the API.
110
110
  # Request is executed immediately.
111
- # @param [credential.PushService] type Credential type, one of "gcm" or "apn"
112
- # @param [String] friendly_name Friendly name for stored credential
113
- # @param [String] certificate [APN only] URL encoded representation of the
114
- # certificate, e.g. `-----BEGIN
115
- # CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
116
- # @param [String] private_key [APN only] URL encoded representation of the private
117
- # key, e.g. `-----BEGIN RSA PRIVATE
118
- # KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
119
- # @param [Boolean] sandbox [APN only] use this credential for sending to
120
- # production or sandbox APNs (string `true` or `false`)
121
- # @param [String] api_key [GCM only] This is the "API key" for project from Google
122
- # Developer console for your GCM Service application credential
123
- # @param [String] secret The secret
111
+ # @param [credential.PushService] type The type of push-notification service the
112
+ # credential is for. Can be: `gcm`, `fcm`, or `apn`.
113
+ # @param [String] friendly_name A descriptive string that you create to describe
114
+ # the new resource. It can be up to 64 characters long.
115
+ # @param [String] certificate [APN only] The URL encoded representation of the
116
+ # certificate. For example,
117
+ # `-----BEGIN CERTIFICATE-----
118
+ # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
119
+ # -----END CERTIFICATE-----`
120
+ # @param [String] private_key [APN only] The URL encoded representation of the
121
+ # private key. For example,
122
+ # `-----BEGIN RSA PRIVATE KEY-----
123
+ # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
124
+ # -----END RSA PRIVATE KEY-----`
125
+ # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
126
+ # APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
127
+ # @param [String] api_key [GCM only] The API key for the project that was obtained
128
+ # from the Google Developer console for your GCM Service application credential.
129
+ # @param [String] secret [FCM only] The **Server key** of your project from the
130
+ # Firebase console, found under Settings / Cloud messaging.
124
131
  # @return [CredentialInstance] Newly created CredentialInstance
125
132
  def create(type: nil, friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
126
133
  data = Twilio::Values.of({
@@ -182,7 +189,8 @@ module Twilio
182
189
  ##
183
190
  # Initialize the CredentialContext
184
191
  # @param [Version] version Version that contains the resource
185
- # @param [String] sid The sid
192
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
193
+ # Credential resource to fetch.
186
194
  # @return [CredentialContext] CredentialContext
187
195
  def initialize(version, sid)
188
196
  super(version)
@@ -209,18 +217,24 @@ module Twilio
209
217
 
210
218
  ##
211
219
  # Update the CredentialInstance
212
- # @param [String] friendly_name Friendly name for stored credential
213
- # @param [String] certificate [APN only] URL encoded representation of the
214
- # certificate, e.g. `-----BEGIN
215
- # CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
216
- # @param [String] private_key [APN only] URL encoded representation of the private
217
- # key, e.g. `-----BEGIN RSA PRIVATE
218
- # KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
219
- # @param [Boolean] sandbox [APN only] use this credential for sending to
220
- # production or sandbox APNs (string `true` or `false`)
221
- # @param [String] api_key [GCM only] This is the "API key" for project from Google
222
- # Developer console for your GCM Service application credential
223
- # @param [String] secret The secret
220
+ # @param [String] friendly_name A descriptive string that you create to describe
221
+ # the resource. It can be up to 64 characters long.
222
+ # @param [String] certificate [APN only] The URL encoded representation of the
223
+ # certificate. For example,
224
+ # `-----BEGIN CERTIFICATE-----
225
+ # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
226
+ # -----END CERTIFICATE-----`
227
+ # @param [String] private_key [APN only] The URL encoded representation of the
228
+ # private key. For example,
229
+ # `-----BEGIN RSA PRIVATE KEY-----
230
+ # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
231
+ # -----END RSA PRIVATE KEY-----`
232
+ # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
233
+ # APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
234
+ # @param [String] api_key [GCM only] The API key for the project that was obtained
235
+ # from the Google Developer console for your GCM Service application credential.
236
+ # @param [String] secret [FCM only] The **Server key** of your project from the
237
+ # Firebase console, found under Settings / Cloud messaging.
224
238
  # @return [CredentialInstance] Updated CredentialInstance
225
239
  def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
226
240
  data = Twilio::Values.of({
@@ -268,7 +282,8 @@ module Twilio
268
282
  # Initialize the CredentialInstance
269
283
  # @param [Version] version Version that contains the resource
270
284
  # @param [Hash] payload payload that contains response from Twilio
271
- # @param [String] sid The sid
285
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
286
+ # Credential resource to fetch.
272
287
  # @return [CredentialInstance] CredentialInstance
273
288
  def initialize(version, payload, sid: nil)
274
289
  super(version)
@@ -302,49 +317,49 @@ module Twilio
302
317
  end
303
318
 
304
319
  ##
305
- # @return [String] A 34 character string that uniquely identifies this resource.
320
+ # @return [String] The unique string that identifies the resource
306
321
  def sid
307
322
  @properties['sid']
308
323
  end
309
324
 
310
325
  ##
311
- # @return [String] The unique id of the Account[/console] responsible for this resource.
326
+ # @return [String] The SID of the Account that created the resource
312
327
  def account_sid
313
328
  @properties['account_sid']
314
329
  end
315
330
 
316
331
  ##
317
- # @return [String] The human-readable name of this resource.
332
+ # @return [String] The string that you assigned to describe the resource
318
333
  def friendly_name
319
334
  @properties['friendly_name']
320
335
  end
321
336
 
322
337
  ##
323
- # @return [credential.PushService] Indicates which push notifications service this credential is for - either gcm or apn
338
+ # @return [credential.PushService] The type of push-notification service the credential is for
324
339
  def type
325
340
  @properties['type']
326
341
  end
327
342
 
328
343
  ##
329
- # @return [String] [APN only] true when this resource should use the sandbox APN service.
344
+ # @return [String] [APN only] Whether to send the credential to sandbox APNs
330
345
  def sandbox
331
346
  @properties['sandbox']
332
347
  end
333
348
 
334
349
  ##
335
- # @return [Time] The date that this resource was created.
350
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
336
351
  def date_created
337
352
  @properties['date_created']
338
353
  end
339
354
 
340
355
  ##
341
- # @return [Time] The date that this resource was last updated.
356
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
342
357
  def date_updated
343
358
  @properties['date_updated']
344
359
  end
345
360
 
346
361
  ##
347
- # @return [String] An absolute URL for this credential resource.
362
+ # @return [String] The absolute URL of the Credential resource
348
363
  def url
349
364
  @properties['url']
350
365
  end
@@ -358,18 +373,24 @@ module Twilio
358
373
 
359
374
  ##
360
375
  # Update the CredentialInstance
361
- # @param [String] friendly_name Friendly name for stored credential
362
- # @param [String] certificate [APN only] URL encoded representation of the
363
- # certificate, e.g. `-----BEGIN
364
- # CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----`
365
- # @param [String] private_key [APN only] URL encoded representation of the private
366
- # key, e.g. `-----BEGIN RSA PRIVATE
367
- # KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\n.-----END RSA PRIVATE KEY-----`
368
- # @param [Boolean] sandbox [APN only] use this credential for sending to
369
- # production or sandbox APNs (string `true` or `false`)
370
- # @param [String] api_key [GCM only] This is the "API key" for project from Google
371
- # Developer console for your GCM Service application credential
372
- # @param [String] secret The secret
376
+ # @param [String] friendly_name A descriptive string that you create to describe
377
+ # the resource. It can be up to 64 characters long.
378
+ # @param [String] certificate [APN only] The URL encoded representation of the
379
+ # certificate. For example,
380
+ # `-----BEGIN CERTIFICATE-----
381
+ # MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==
382
+ # -----END CERTIFICATE-----`
383
+ # @param [String] private_key [APN only] The URL encoded representation of the
384
+ # private key. For example,
385
+ # `-----BEGIN RSA PRIVATE KEY-----
386
+ # MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR.
387
+ # -----END RSA PRIVATE KEY-----`
388
+ # @param [Boolean] sandbox [APN only] Whether to send the credential to sandbox
389
+ # APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
390
+ # @param [String] api_key [GCM only] The API key for the project that was obtained
391
+ # from the Google Developer console for your GCM Service application credential.
392
+ # @param [String] secret [FCM only] The **Server key** of your project from the
393
+ # Firebase console, found under Settings / Cloud messaging.
373
394
  # @return [CredentialInstance] Updated CredentialInstance
374
395
  def update(friendly_name: :unset, certificate: :unset, private_key: :unset, sandbox: :unset, api_key: :unset, secret: :unset)
375
396
  context.update(
@@ -26,7 +26,8 @@ module Twilio
26
26
  ##
27
27
  # Retrieve a single page of ServiceInstance records from the API.
28
28
  # Request is executed immediately.
29
- # @param [String] friendly_name Human-readable name for this service instance
29
+ # @param [String] friendly_name A descriptive string that you create to describe
30
+ # the resource. It can be up to 64 characters long.
30
31
  # @return [ServiceInstance] Newly created ServiceInstance
31
32
  def create(friendly_name: nil)
32
33
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -162,7 +163,8 @@ module Twilio
162
163
  ##
163
164
  # Initialize the ServiceContext
164
165
  # @param [Version] version Version that contains the resource
165
- # @param [String] sid The sid
166
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
167
+ # Service resource to fetch.
166
168
  # @return [ServiceContext] ServiceContext
167
169
  def initialize(version, sid)
168
170
  super(version)
@@ -201,141 +203,151 @@ module Twilio
201
203
 
202
204
  ##
203
205
  # Update the ServiceInstance
204
- # @param [String] friendly_name Human-readable name for this service instance
205
- # @param [String] default_service_role_sid The default_service_role_sid
206
- # @param [String] default_channel_role_sid Channel role assigned on channel join
207
- # (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for
208
- # the details)
209
- # @param [String] default_channel_creator_role_sid Channel role assigned to
210
- # creator of channel when joining for first time
211
- # @param [Boolean] read_status_enabled `true` if the member read status feature is
212
- # enabled, `false` if not. Defaults to `true`.
213
- # @param [Boolean] reachability_enabled `true` if the reachability feature should
214
- # be enabled. Defaults to `false`
215
- # @param [String] typing_indicator_timeout ISO 8601 duration indicating the
216
- # timeout after "started typing" event when client should assume that user is not
217
- # typing anymore even if no "ended typing" message received
218
- # @param [String] consumption_report_interval ISO 8601 duration indicating the
219
- # interval between consumption reports sent from client endpoints.
220
- # @param [Boolean] notifications_new_message_enabled The
221
- # notifications.new_message.enabled
222
- # @param [String] notifications_new_message_template The
223
- # notifications.new_message.template
224
- # @param [Boolean] notifications_added_to_channel_enabled The
225
- # notifications.added_to_channel.enabled
226
- # @param [String] notifications_added_to_channel_template The
227
- # notifications.added_to_channel.template
228
- # @param [Boolean] notifications_removed_from_channel_enabled The
229
- # notifications.removed_from_channel.enabled
230
- # @param [String] notifications_removed_from_channel_template The
231
- # notifications.removed_from_channel.template
232
- # @param [Boolean] notifications_invited_to_channel_enabled The
233
- # notifications.invited_to_channel.enabled
234
- # @param [String] notifications_invited_to_channel_template The
235
- # notifications.invited_to_channel.template
236
- # @param [String] pre_webhook_url The webhook URL for PRE-Event webhooks. See
237
- # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
238
- # details.
239
- # @param [String] post_webhook_url The webhook URL for POST-Event webhooks. See
240
- # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
241
- # details.
242
- # @param [String] webhook_method The webhook request format to use. Must be POST
243
- # or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for
244
- # more details.
206
+ # @param [String] friendly_name A descriptive string that you create to describe
207
+ # the resource. It can be up to 64 characters long.
208
+ # @param [String] default_service_role_sid The service role assigned to users when
209
+ # they are added to the service. See the [Roles
210
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
211
+ # @param [String] default_channel_role_sid The channel role assigned to users when
212
+ # they are added to a channel. See the [Roles
213
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
214
+ # @param [String] default_channel_creator_role_sid The channel role assigned to a
215
+ # channel creator when they join a new channel. See the [Roles
216
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
217
+ # @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
218
+ # Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
219
+ # default is `true`.
220
+ # @param [Boolean] reachability_enabled Whether to enable the [Reachability
221
+ # Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this
222
+ # Service instance. The default is `false`.
223
+ # @param [String] typing_indicator_timeout How long in seconds after a `started
224
+ # typing` event until clients should assume that user is no longer typing, even if
225
+ # no `ended typing` message was received. The default is 5 seconds.
226
+ # @param [String] consumption_report_interval DEPRECATED. The interval in seconds
227
+ # between consumption reports submission batches from client endpoints.
228
+ # @param [Boolean] notifications_new_message_enabled Whether to send a
229
+ # notification when a new message is added to a channel. Can be: `true` or `false`
230
+ # and the default is `false`.
231
+ # @param [String] notifications_new_message_template The template to use to create
232
+ # the notification text displayed when a new message is added to a channel and
233
+ # `notifications.new_message.enabled` is `true`.
234
+ # @param [Boolean] notifications_added_to_channel_enabled Whether to send a
235
+ # notification when a member is added to a channel. Can be: `true` or `false` and
236
+ # the default is `false`.
237
+ # @param [String] notifications_added_to_channel_template The template to use to
238
+ # create the notification text displayed when a member is added to a channel and
239
+ # `notifications.added_to_channel.enabled` is `true`.
240
+ # @param [Boolean] notifications_removed_from_channel_enabled Whether to send a
241
+ # notification to a user when they are removed from a channel. Can be: `true` or
242
+ # `false` and the default is `false`.
243
+ # @param [String] notifications_removed_from_channel_template The template to use
244
+ # to create the notification text displayed to a user when they are removed from a
245
+ # channel and `notifications.removed_from_channel.enabled` is `true`.
246
+ # @param [Boolean] notifications_invited_to_channel_enabled Whether to send a
247
+ # notification when a user is invited to a channel. Can be: `true` or `false` and
248
+ # the default is `false`.
249
+ # @param [String] notifications_invited_to_channel_template The template to use to
250
+ # create the notification text displayed when a user is invited to a channel and
251
+ # `notifications.invited_to_channel.enabled` is `true`.
252
+ # @param [String] pre_webhook_url The URL for pre-event webhooks, which are called
253
+ # by using the `webhook_method`. See [Webhook
254
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
255
+ # @param [String] post_webhook_url The URL for post-event webhooks, which are
256
+ # called by using the `webhook_method`. See [Webhook
257
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
258
+ # @param [String] webhook_method The HTTP method to use for calls to the
259
+ # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
260
+ # the default is `POST`. See [Webhook
261
+ # Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
245
262
  # @param [String] webhook_filters The list of WebHook events that are enabled for
246
263
  # this Service instance. See [Webhook
247
- # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
248
- # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
249
- # @param [String] webhooks_on_message_send_method The
250
- # webhooks.on_message_send.method
251
- # @param [String] webhooks_on_message_send_format The
252
- # webhooks.on_message_send.format
253
- # @param [String] webhooks_on_message_update_url The
254
- # webhooks.on_message_update.url
255
- # @param [String] webhooks_on_message_update_method The
256
- # webhooks.on_message_update.method
257
- # @param [String] webhooks_on_message_update_format The
258
- # webhooks.on_message_update.format
259
- # @param [String] webhooks_on_message_remove_url The
260
- # webhooks.on_message_remove.url
261
- # @param [String] webhooks_on_message_remove_method The
262
- # webhooks.on_message_remove.method
263
- # @param [String] webhooks_on_message_remove_format The
264
- # webhooks.on_message_remove.format
265
- # @param [String] webhooks_on_channel_add_url The webhooks.on_channel_add.url
266
- # @param [String] webhooks_on_channel_add_method The
267
- # webhooks.on_channel_add.method
268
- # @param [String] webhooks_on_channel_add_format The
269
- # webhooks.on_channel_add.format
270
- # @param [String] webhooks_on_channel_destroy_url The
271
- # webhooks.on_channel_destroy.url
272
- # @param [String] webhooks_on_channel_destroy_method The
273
- # webhooks.on_channel_destroy.method
274
- # @param [String] webhooks_on_channel_destroy_format The
275
- # webhooks.on_channel_destroy.format
276
- # @param [String] webhooks_on_channel_update_url The
277
- # webhooks.on_channel_update.url
278
- # @param [String] webhooks_on_channel_update_method The
279
- # webhooks.on_channel_update.method
280
- # @param [String] webhooks_on_channel_update_format The
281
- # webhooks.on_channel_update.format
282
- # @param [String] webhooks_on_member_add_url The webhooks.on_member_add.url
283
- # @param [String] webhooks_on_member_add_method The webhooks.on_member_add.method
284
- # @param [String] webhooks_on_member_add_format The webhooks.on_member_add.format
285
- # @param [String] webhooks_on_member_remove_url The webhooks.on_member_remove.url
286
- # @param [String] webhooks_on_member_remove_method The
287
- # webhooks.on_member_remove.method
288
- # @param [String] webhooks_on_member_remove_format The
289
- # webhooks.on_member_remove.format
290
- # @param [String] webhooks_on_message_sent_url The webhooks.on_message_sent.url
291
- # @param [String] webhooks_on_message_sent_method The
292
- # webhooks.on_message_sent.method
293
- # @param [String] webhooks_on_message_sent_format The
294
- # webhooks.on_message_sent.format
295
- # @param [String] webhooks_on_message_updated_url The
296
- # webhooks.on_message_updated.url
297
- # @param [String] webhooks_on_message_updated_method The
298
- # webhooks.on_message_updated.method
299
- # @param [String] webhooks_on_message_updated_format The
300
- # webhooks.on_message_updated.format
301
- # @param [String] webhooks_on_message_removed_url The
302
- # webhooks.on_message_removed.url
303
- # @param [String] webhooks_on_message_removed_method The
304
- # webhooks.on_message_removed.method
305
- # @param [String] webhooks_on_message_removed_format The
306
- # webhooks.on_message_removed.format
307
- # @param [String] webhooks_on_channel_added_url The webhooks.on_channel_added.url
308
- # @param [String] webhooks_on_channel_added_method The
309
- # webhooks.on_channel_added.method
310
- # @param [String] webhooks_on_channel_added_format The
311
- # webhooks.on_channel_added.format
312
- # @param [String] webhooks_on_channel_destroyed_url The
313
- # webhooks.on_channel_destroyed.url
314
- # @param [String] webhooks_on_channel_destroyed_method The
315
- # webhooks.on_channel_destroyed.method
316
- # @param [String] webhooks_on_channel_destroyed_format The
317
- # webhooks.on_channel_destroyed.format
318
- # @param [String] webhooks_on_channel_updated_url The
319
- # webhooks.on_channel_updated.url
320
- # @param [String] webhooks_on_channel_updated_method The
321
- # webhooks.on_channel_updated.method
322
- # @param [String] webhooks_on_channel_updated_format The
323
- # webhooks.on_channel_updated.format
324
- # @param [String] webhooks_on_member_added_url The webhooks.on_member_added.url
325
- # @param [String] webhooks_on_member_added_method The
326
- # webhooks.on_member_added.method
327
- # @param [String] webhooks_on_member_added_format The
328
- # webhooks.on_member_added.format
329
- # @param [String] webhooks_on_member_removed_url The
330
- # webhooks.on_member_removed.url
331
- # @param [String] webhooks_on_member_removed_method The
332
- # webhooks.on_member_removed.method
333
- # @param [String] webhooks_on_member_removed_format The
334
- # webhooks.on_member_removed.format
335
- # @param [String] limits_channel_members The limits.channel_members
336
- # @param [String] limits_user_channels The limits.user_channels
264
+ # Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
265
+ # @param [String] webhooks_on_message_send_url The URL of the webhook to call in
266
+ # response to the `on_message_send` event using the
267
+ # `webhooks.on_message_send.method` HTTP method.
268
+ # @param [String] webhooks_on_message_send_method The HTTP method to use when
269
+ # calling the `webhooks.on_message_send.url`.
270
+ # @param [String] webhooks_on_message_update_url The URL of the webhook to call in
271
+ # response to the `on_message_update` event using the
272
+ # `webhooks.on_message_update.method` HTTP method.
273
+ # @param [String] webhooks_on_message_update_method The HTTP method to use when
274
+ # calling the `webhooks.on_message_update.url`.
275
+ # @param [String] webhooks_on_message_remove_url The URL of the webhook to call in
276
+ # response to the `on_message_remove` event using the
277
+ # `webhooks.on_message_remove.method` HTTP method.
278
+ # @param [String] webhooks_on_message_remove_method The HTTP method to use when
279
+ # calling the `webhooks.on_message_remove.url`.
280
+ # @param [String] webhooks_on_channel_add_url The URL of the webhook to call in
281
+ # response to the `on_channel_add` event using the
282
+ # `webhooks.on_channel_add.method` HTTP method.
283
+ # @param [String] webhooks_on_channel_add_method The HTTP method to use when
284
+ # calling the `webhooks.on_channel_add.url`.
285
+ # @param [String] webhooks_on_channel_destroy_url The URL of the webhook to call
286
+ # in response to the `on_channel_destroy` event using the
287
+ # `webhooks.on_channel_destroy.method` HTTP method.
288
+ # @param [String] webhooks_on_channel_destroy_method The HTTP method to use when
289
+ # calling the `webhooks.on_channel_destroy.url`.
290
+ # @param [String] webhooks_on_channel_update_url The URL of the webhook to call in
291
+ # response to the `on_channel_update` event using the
292
+ # `webhooks.on_channel_update.method` HTTP method.
293
+ # @param [String] webhooks_on_channel_update_method The HTTP method to use when
294
+ # calling the `webhooks.on_channel_update.url`.
295
+ # @param [String] webhooks_on_member_add_url The URL of the webhook to call in
296
+ # response to the `on_member_add` event using the `webhooks.on_member_add.method`
297
+ # HTTP method.
298
+ # @param [String] webhooks_on_member_add_method The HTTP method to use when
299
+ # calling the `webhooks.on_member_add.url`.
300
+ # @param [String] webhooks_on_member_remove_url The URL of the webhook to call in
301
+ # response to the `on_member_remove` event using the
302
+ # `webhooks.on_member_remove.method` HTTP method.
303
+ # @param [String] webhooks_on_member_remove_method The HTTP method to use when
304
+ # calling the `webhooks.on_member_remove.url`.
305
+ # @param [String] webhooks_on_message_sent_url The URL of the webhook to call in
306
+ # response to the `on_message_sent` event using the
307
+ # `webhooks.on_message_sent.method` HTTP method.
308
+ # @param [String] webhooks_on_message_sent_method The URL of the webhook to call
309
+ # in response to the `on_message_sent` event`.
310
+ # @param [String] webhooks_on_message_updated_url The URL of the webhook to call
311
+ # in response to the `on_message_updated` event using the
312
+ # `webhooks.on_message_updated.method` HTTP method.
313
+ # @param [String] webhooks_on_message_updated_method The HTTP method to use when
314
+ # calling the `webhooks.on_message_updated.url`.
315
+ # @param [String] webhooks_on_message_removed_url The URL of the webhook to call
316
+ # in response to the `on_message_removed` event using the
317
+ # `webhooks.on_message_removed.method` HTTP method.
318
+ # @param [String] webhooks_on_message_removed_method The HTTP method to use when
319
+ # calling the `webhooks.on_message_removed.url`.
320
+ # @param [String] webhooks_on_channel_added_url The URL of the webhook to call in
321
+ # response to the `on_channel_added` event using the
322
+ # `webhooks.on_channel_added.method` HTTP method.
323
+ # @param [String] webhooks_on_channel_added_method The URL of the webhook to call
324
+ # in response to the `on_channel_added` event`.
325
+ # @param [String] webhooks_on_channel_destroyed_url The URL of the webhook to call
326
+ # in response to the `on_channel_added` event using the
327
+ # `webhooks.on_channel_destroyed.method` HTTP method.
328
+ # @param [String] webhooks_on_channel_destroyed_method The HTTP method to use when
329
+ # calling the `webhooks.on_channel_destroyed.url`.
330
+ # @param [String] webhooks_on_channel_updated_url The URL of the webhook to call
331
+ # in response to the `on_channel_updated` event using the
332
+ # `webhooks.on_channel_updated.method` HTTP method.
333
+ # @param [String] webhooks_on_channel_updated_method The HTTP method to use when
334
+ # calling the `webhooks.on_channel_updated.url`.
335
+ # @param [String] webhooks_on_member_added_url The URL of the webhook to call in
336
+ # response to the `on_channel_updated` event using the
337
+ # `webhooks.on_channel_updated.method` HTTP method.
338
+ # @param [String] webhooks_on_member_added_method The HTTP method to use when
339
+ # calling the `webhooks.on_channel_updated.url`.
340
+ # @param [String] webhooks_on_member_removed_url The URL of the webhook to call in
341
+ # response to the `on_member_removed` event using the
342
+ # `webhooks.on_member_removed.method` HTTP method.
343
+ # @param [String] webhooks_on_member_removed_method The HTTP method to use when
344
+ # calling the `webhooks.on_member_removed.url`.
345
+ # @param [String] limits_channel_members The maximum number of Members that can be
346
+ # added to Channels within this Service. Can be up to 1,000.
347
+ # @param [String] limits_user_channels The maximum number of Channels Users can be
348
+ # a Member of within this Service. Can be up to 1,000.
337
349
  # @return [ServiceInstance] Updated ServiceInstance
338
- def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_send_format: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_update_format: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_message_remove_format: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_add_format: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_destroy_format: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_channel_update_format: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_add_format: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_member_remove_format: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_sent_format: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_updated_format: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_message_removed_format: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_added_format: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_destroyed_format: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_channel_updated_format: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_added_format: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, webhooks_on_member_removed_format: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
350
+ def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
339
351
  data = Twilio::Values.of({
340
352
  'FriendlyName' => friendly_name,
341
353
  'DefaultServiceRoleSid' => default_service_role_sid,
@@ -359,52 +371,36 @@ module Twilio
359
371
  'WebhookFilters' => Twilio.serialize_list(webhook_filters) { |e| e },
360
372
  'Webhooks.OnMessageSend.Url' => webhooks_on_message_send_url,
361
373
  'Webhooks.OnMessageSend.Method' => webhooks_on_message_send_method,
362
- 'Webhooks.OnMessageSend.Format' => webhooks_on_message_send_format,
363
374
  'Webhooks.OnMessageUpdate.Url' => webhooks_on_message_update_url,
364
375
  'Webhooks.OnMessageUpdate.Method' => webhooks_on_message_update_method,
365
- 'Webhooks.OnMessageUpdate.Format' => webhooks_on_message_update_format,
366
376
  'Webhooks.OnMessageRemove.Url' => webhooks_on_message_remove_url,
367
377
  'Webhooks.OnMessageRemove.Method' => webhooks_on_message_remove_method,
368
- 'Webhooks.OnMessageRemove.Format' => webhooks_on_message_remove_format,
369
378
  'Webhooks.OnChannelAdd.Url' => webhooks_on_channel_add_url,
370
379
  'Webhooks.OnChannelAdd.Method' => webhooks_on_channel_add_method,
371
- 'Webhooks.OnChannelAdd.Format' => webhooks_on_channel_add_format,
372
380
  'Webhooks.OnChannelDestroy.Url' => webhooks_on_channel_destroy_url,
373
381
  'Webhooks.OnChannelDestroy.Method' => webhooks_on_channel_destroy_method,
374
- 'Webhooks.OnChannelDestroy.Format' => webhooks_on_channel_destroy_format,
375
382
  'Webhooks.OnChannelUpdate.Url' => webhooks_on_channel_update_url,
376
383
  'Webhooks.OnChannelUpdate.Method' => webhooks_on_channel_update_method,
377
- 'Webhooks.OnChannelUpdate.Format' => webhooks_on_channel_update_format,
378
384
  'Webhooks.OnMemberAdd.Url' => webhooks_on_member_add_url,
379
385
  'Webhooks.OnMemberAdd.Method' => webhooks_on_member_add_method,
380
- 'Webhooks.OnMemberAdd.Format' => webhooks_on_member_add_format,
381
386
  'Webhooks.OnMemberRemove.Url' => webhooks_on_member_remove_url,
382
387
  'Webhooks.OnMemberRemove.Method' => webhooks_on_member_remove_method,
383
- 'Webhooks.OnMemberRemove.Format' => webhooks_on_member_remove_format,
384
388
  'Webhooks.OnMessageSent.Url' => webhooks_on_message_sent_url,
385
389
  'Webhooks.OnMessageSent.Method' => webhooks_on_message_sent_method,
386
- 'Webhooks.OnMessageSent.Format' => webhooks_on_message_sent_format,
387
390
  'Webhooks.OnMessageUpdated.Url' => webhooks_on_message_updated_url,
388
391
  'Webhooks.OnMessageUpdated.Method' => webhooks_on_message_updated_method,
389
- 'Webhooks.OnMessageUpdated.Format' => webhooks_on_message_updated_format,
390
392
  'Webhooks.OnMessageRemoved.Url' => webhooks_on_message_removed_url,
391
393
  'Webhooks.OnMessageRemoved.Method' => webhooks_on_message_removed_method,
392
- 'Webhooks.OnMessageRemoved.Format' => webhooks_on_message_removed_format,
393
394
  'Webhooks.OnChannelAdded.Url' => webhooks_on_channel_added_url,
394
395
  'Webhooks.OnChannelAdded.Method' => webhooks_on_channel_added_method,
395
- 'Webhooks.OnChannelAdded.Format' => webhooks_on_channel_added_format,
396
396
  'Webhooks.OnChannelDestroyed.Url' => webhooks_on_channel_destroyed_url,
397
397
  'Webhooks.OnChannelDestroyed.Method' => webhooks_on_channel_destroyed_method,
398
- 'Webhooks.OnChannelDestroyed.Format' => webhooks_on_channel_destroyed_format,
399
398
  'Webhooks.OnChannelUpdated.Url' => webhooks_on_channel_updated_url,
400
399
  'Webhooks.OnChannelUpdated.Method' => webhooks_on_channel_updated_method,
401
- 'Webhooks.OnChannelUpdated.Format' => webhooks_on_channel_updated_format,
402
400
  'Webhooks.OnMemberAdded.Url' => webhooks_on_member_added_url,
403
401
  'Webhooks.OnMemberAdded.Method' => webhooks_on_member_added_method,
404
- 'Webhooks.OnMemberAdded.Format' => webhooks_on_member_added_format,
405
402
  'Webhooks.OnMemberRemoved.Url' => webhooks_on_member_removed_url,
406
403
  'Webhooks.OnMemberRemoved.Method' => webhooks_on_member_removed_method,
407
- 'Webhooks.OnMemberRemoved.Format' => webhooks_on_member_removed_format,
408
404
  'Limits.ChannelMembers' => limits_channel_members,
409
405
  'Limits.UserChannels' => limits_user_channels,
410
406
  })
@@ -492,7 +488,8 @@ module Twilio
492
488
  # Initialize the ServiceInstance
493
489
  # @param [Version] version Version that contains the resource
494
490
  # @param [Hash] payload payload that contains response from Twilio
495
- # @param [String] sid The sid
491
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
492
+ # Service resource to fetch.
496
493
  # @return [ServiceInstance] ServiceInstance
497
494
  def initialize(version, payload, sid: nil)
498
495
  super(version)
@@ -539,127 +536,127 @@ module Twilio
539
536
  end
540
537
 
541
538
  ##
542
- # @return [String] A 34 character string that uniquely identifies this resource.
539
+ # @return [String] The unique string that identifies the resource
543
540
  def sid
544
541
  @properties['sid']
545
542
  end
546
543
 
547
544
  ##
548
- # @return [String] The unique id of the Account responsible for this service.
545
+ # @return [String] The SID of the Account that created the resource
549
546
  def account_sid
550
547
  @properties['account_sid']
551
548
  end
552
549
 
553
550
  ##
554
- # @return [String] The human-readable name of this service.
551
+ # @return [String] The string that you assigned to describe the resource
555
552
  def friendly_name
556
553
  @properties['friendly_name']
557
554
  end
558
555
 
559
556
  ##
560
- # @return [Time] The date that this resource was created
557
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
561
558
  def date_created
562
559
  @properties['date_created']
563
560
  end
564
561
 
565
562
  ##
566
- # @return [Time] The date that this resource was last updated
563
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
567
564
  def date_updated
568
565
  @properties['date_updated']
569
566
  end
570
567
 
571
568
  ##
572
- # @return [String] The service role assigned to users when they are added to the service.
569
+ # @return [String] The service role assigned to users when they are added to the service
573
570
  def default_service_role_sid
574
571
  @properties['default_service_role_sid']
575
572
  end
576
573
 
577
574
  ##
578
- # @return [String] The channel role assigned to users when they are added to a channel.
575
+ # @return [String] The channel role assigned to users when they are added to a channel
579
576
  def default_channel_role_sid
580
577
  @properties['default_channel_role_sid']
581
578
  end
582
579
 
583
580
  ##
584
- # @return [String] The channel role assigned to a channel creator when joining a new channel.
581
+ # @return [String] The channel role assigned to a channel creator when they join a new channel
585
582
  def default_channel_creator_role_sid
586
583
  @properties['default_channel_creator_role_sid']
587
584
  end
588
585
 
589
586
  ##
590
- # @return [Boolean] Enable the Message Consumption Horizon feature.
587
+ # @return [Boolean] Whether the Message Consumption Horizon feature is enabled
591
588
  def read_status_enabled
592
589
  @properties['read_status_enabled']
593
590
  end
594
591
 
595
592
  ##
596
- # @return [Boolean] Indicates whether the the Reachability feature is enabled for this Service instance.
593
+ # @return [Boolean] Whether the Reachability Indicator feature is enabled for this Service instance
597
594
  def reachability_enabled
598
595
  @properties['reachability_enabled']
599
596
  end
600
597
 
601
598
  ##
602
- # @return [String] The amount of time after a "started typing" event when clients should assume that user is no longer typing, even if no "ended typing" message was received.
599
+ # @return [String] How long in seconds to wait before assuming the user is no longer typing
603
600
  def typing_indicator_timeout
604
601
  @properties['typing_indicator_timeout']
605
602
  end
606
603
 
607
604
  ##
608
- # @return [String] The interval between consumption reports submission batches from client endpoints.
605
+ # @return [String] DEPRECATED
609
606
  def consumption_report_interval
610
607
  @properties['consumption_report_interval']
611
608
  end
612
609
 
613
610
  ##
614
- # @return [Hash] The limits
611
+ # @return [Hash] An object that describes the limits of the service instance
615
612
  def limits
616
613
  @properties['limits']
617
614
  end
618
615
 
619
616
  ##
620
- # @return [Hash] The webhooks
617
+ # @return [Hash] An object that contains information about the webhooks configured for this service
621
618
  def webhooks
622
619
  @properties['webhooks']
623
620
  end
624
621
 
625
622
  ##
626
- # @return [String] The webhook URL for PRE-Event webhooks.
623
+ # @return [String] The webhook URL for pre-event webhooks
627
624
  def pre_webhook_url
628
625
  @properties['pre_webhook_url']
629
626
  end
630
627
 
631
628
  ##
632
- # @return [String] The webhook URL for POST-Event webhooks.
629
+ # @return [String] The URL for post-event webhooks
633
630
  def post_webhook_url
634
631
  @properties['post_webhook_url']
635
632
  end
636
633
 
637
634
  ##
638
- # @return [String] The webhook request format to use.
635
+ # @return [String] The HTTP method to use for both PRE and POST webhooks
639
636
  def webhook_method
640
637
  @properties['webhook_method']
641
638
  end
642
639
 
643
640
  ##
644
- # @return [String] The list of WebHook events that are enabled for this Service instance.
641
+ # @return [String] The list of WebHook events that are enabled for this Service instance
645
642
  def webhook_filters
646
643
  @properties['webhook_filters']
647
644
  end
648
645
 
649
646
  ##
650
- # @return [Hash] Notification configuration for the Service instance.
647
+ # @return [Hash] The notification configuration for the Service instance
651
648
  def notifications
652
649
  @properties['notifications']
653
650
  end
654
651
 
655
652
  ##
656
- # @return [String] An absolute URL for this service.
653
+ # @return [String] The absolute URL of the Service resource
657
654
  def url
658
655
  @properties['url']
659
656
  end
660
657
 
661
658
  ##
662
- # @return [String] URLs to access the Channels, Roles, and Users for this service.
659
+ # @return [String] The absolute URLs of the Service's Channels, Roles, and Users
663
660
  def links
664
661
  @properties['links']
665
662
  end
@@ -680,141 +677,151 @@ module Twilio
680
677
 
681
678
  ##
682
679
  # Update the ServiceInstance
683
- # @param [String] friendly_name Human-readable name for this service instance
684
- # @param [String] default_service_role_sid The default_service_role_sid
685
- # @param [String] default_channel_role_sid Channel role assigned on channel join
686
- # (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for
687
- # the details)
688
- # @param [String] default_channel_creator_role_sid Channel role assigned to
689
- # creator of channel when joining for first time
690
- # @param [Boolean] read_status_enabled `true` if the member read status feature is
691
- # enabled, `false` if not. Defaults to `true`.
692
- # @param [Boolean] reachability_enabled `true` if the reachability feature should
693
- # be enabled. Defaults to `false`
694
- # @param [String] typing_indicator_timeout ISO 8601 duration indicating the
695
- # timeout after "started typing" event when client should assume that user is not
696
- # typing anymore even if no "ended typing" message received
697
- # @param [String] consumption_report_interval ISO 8601 duration indicating the
698
- # interval between consumption reports sent from client endpoints.
699
- # @param [Boolean] notifications_new_message_enabled The
700
- # notifications.new_message.enabled
701
- # @param [String] notifications_new_message_template The
702
- # notifications.new_message.template
703
- # @param [Boolean] notifications_added_to_channel_enabled The
704
- # notifications.added_to_channel.enabled
705
- # @param [String] notifications_added_to_channel_template The
706
- # notifications.added_to_channel.template
707
- # @param [Boolean] notifications_removed_from_channel_enabled The
708
- # notifications.removed_from_channel.enabled
709
- # @param [String] notifications_removed_from_channel_template The
710
- # notifications.removed_from_channel.template
711
- # @param [Boolean] notifications_invited_to_channel_enabled The
712
- # notifications.invited_to_channel.enabled
713
- # @param [String] notifications_invited_to_channel_template The
714
- # notifications.invited_to_channel.template
715
- # @param [String] pre_webhook_url The webhook URL for PRE-Event webhooks. See
716
- # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
717
- # details.
718
- # @param [String] post_webhook_url The webhook URL for POST-Event webhooks. See
719
- # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
720
- # details.
721
- # @param [String] webhook_method The webhook request format to use. Must be POST
722
- # or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for
723
- # more details.
680
+ # @param [String] friendly_name A descriptive string that you create to describe
681
+ # the resource. It can be up to 64 characters long.
682
+ # @param [String] default_service_role_sid The service role assigned to users when
683
+ # they are added to the service. See the [Roles
684
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
685
+ # @param [String] default_channel_role_sid The channel role assigned to users when
686
+ # they are added to a channel. See the [Roles
687
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
688
+ # @param [String] default_channel_creator_role_sid The channel role assigned to a
689
+ # channel creator when they join a new channel. See the [Roles
690
+ # endpoint](https://www.twilio.com/docs/chat/api/roles) for more details.
691
+ # @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
692
+ # Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
693
+ # default is `true`.
694
+ # @param [Boolean] reachability_enabled Whether to enable the [Reachability
695
+ # Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this
696
+ # Service instance. The default is `false`.
697
+ # @param [String] typing_indicator_timeout How long in seconds after a `started
698
+ # typing` event until clients should assume that user is no longer typing, even if
699
+ # no `ended typing` message was received. The default is 5 seconds.
700
+ # @param [String] consumption_report_interval DEPRECATED. The interval in seconds
701
+ # between consumption reports submission batches from client endpoints.
702
+ # @param [Boolean] notifications_new_message_enabled Whether to send a
703
+ # notification when a new message is added to a channel. Can be: `true` or `false`
704
+ # and the default is `false`.
705
+ # @param [String] notifications_new_message_template The template to use to create
706
+ # the notification text displayed when a new message is added to a channel and
707
+ # `notifications.new_message.enabled` is `true`.
708
+ # @param [Boolean] notifications_added_to_channel_enabled Whether to send a
709
+ # notification when a member is added to a channel. Can be: `true` or `false` and
710
+ # the default is `false`.
711
+ # @param [String] notifications_added_to_channel_template The template to use to
712
+ # create the notification text displayed when a member is added to a channel and
713
+ # `notifications.added_to_channel.enabled` is `true`.
714
+ # @param [Boolean] notifications_removed_from_channel_enabled Whether to send a
715
+ # notification to a user when they are removed from a channel. Can be: `true` or
716
+ # `false` and the default is `false`.
717
+ # @param [String] notifications_removed_from_channel_template The template to use
718
+ # to create the notification text displayed to a user when they are removed from a
719
+ # channel and `notifications.removed_from_channel.enabled` is `true`.
720
+ # @param [Boolean] notifications_invited_to_channel_enabled Whether to send a
721
+ # notification when a user is invited to a channel. Can be: `true` or `false` and
722
+ # the default is `false`.
723
+ # @param [String] notifications_invited_to_channel_template The template to use to
724
+ # create the notification text displayed when a user is invited to a channel and
725
+ # `notifications.invited_to_channel.enabled` is `true`.
726
+ # @param [String] pre_webhook_url The URL for pre-event webhooks, which are called
727
+ # by using the `webhook_method`. See [Webhook
728
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
729
+ # @param [String] post_webhook_url The URL for post-event webhooks, which are
730
+ # called by using the `webhook_method`. See [Webhook
731
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
732
+ # @param [String] webhook_method The HTTP method to use for calls to the
733
+ # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
734
+ # the default is `POST`. See [Webhook
735
+ # Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
724
736
  # @param [String] webhook_filters The list of WebHook events that are enabled for
725
737
  # this Service instance. See [Webhook
726
- # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
727
- # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
728
- # @param [String] webhooks_on_message_send_method The
729
- # webhooks.on_message_send.method
730
- # @param [String] webhooks_on_message_send_format The
731
- # webhooks.on_message_send.format
732
- # @param [String] webhooks_on_message_update_url The
733
- # webhooks.on_message_update.url
734
- # @param [String] webhooks_on_message_update_method The
735
- # webhooks.on_message_update.method
736
- # @param [String] webhooks_on_message_update_format The
737
- # webhooks.on_message_update.format
738
- # @param [String] webhooks_on_message_remove_url The
739
- # webhooks.on_message_remove.url
740
- # @param [String] webhooks_on_message_remove_method The
741
- # webhooks.on_message_remove.method
742
- # @param [String] webhooks_on_message_remove_format The
743
- # webhooks.on_message_remove.format
744
- # @param [String] webhooks_on_channel_add_url The webhooks.on_channel_add.url
745
- # @param [String] webhooks_on_channel_add_method The
746
- # webhooks.on_channel_add.method
747
- # @param [String] webhooks_on_channel_add_format The
748
- # webhooks.on_channel_add.format
749
- # @param [String] webhooks_on_channel_destroy_url The
750
- # webhooks.on_channel_destroy.url
751
- # @param [String] webhooks_on_channel_destroy_method The
752
- # webhooks.on_channel_destroy.method
753
- # @param [String] webhooks_on_channel_destroy_format The
754
- # webhooks.on_channel_destroy.format
755
- # @param [String] webhooks_on_channel_update_url The
756
- # webhooks.on_channel_update.url
757
- # @param [String] webhooks_on_channel_update_method The
758
- # webhooks.on_channel_update.method
759
- # @param [String] webhooks_on_channel_update_format The
760
- # webhooks.on_channel_update.format
761
- # @param [String] webhooks_on_member_add_url The webhooks.on_member_add.url
762
- # @param [String] webhooks_on_member_add_method The webhooks.on_member_add.method
763
- # @param [String] webhooks_on_member_add_format The webhooks.on_member_add.format
764
- # @param [String] webhooks_on_member_remove_url The webhooks.on_member_remove.url
765
- # @param [String] webhooks_on_member_remove_method The
766
- # webhooks.on_member_remove.method
767
- # @param [String] webhooks_on_member_remove_format The
768
- # webhooks.on_member_remove.format
769
- # @param [String] webhooks_on_message_sent_url The webhooks.on_message_sent.url
770
- # @param [String] webhooks_on_message_sent_method The
771
- # webhooks.on_message_sent.method
772
- # @param [String] webhooks_on_message_sent_format The
773
- # webhooks.on_message_sent.format
774
- # @param [String] webhooks_on_message_updated_url The
775
- # webhooks.on_message_updated.url
776
- # @param [String] webhooks_on_message_updated_method The
777
- # webhooks.on_message_updated.method
778
- # @param [String] webhooks_on_message_updated_format The
779
- # webhooks.on_message_updated.format
780
- # @param [String] webhooks_on_message_removed_url The
781
- # webhooks.on_message_removed.url
782
- # @param [String] webhooks_on_message_removed_method The
783
- # webhooks.on_message_removed.method
784
- # @param [String] webhooks_on_message_removed_format The
785
- # webhooks.on_message_removed.format
786
- # @param [String] webhooks_on_channel_added_url The webhooks.on_channel_added.url
787
- # @param [String] webhooks_on_channel_added_method The
788
- # webhooks.on_channel_added.method
789
- # @param [String] webhooks_on_channel_added_format The
790
- # webhooks.on_channel_added.format
791
- # @param [String] webhooks_on_channel_destroyed_url The
792
- # webhooks.on_channel_destroyed.url
793
- # @param [String] webhooks_on_channel_destroyed_method The
794
- # webhooks.on_channel_destroyed.method
795
- # @param [String] webhooks_on_channel_destroyed_format The
796
- # webhooks.on_channel_destroyed.format
797
- # @param [String] webhooks_on_channel_updated_url The
798
- # webhooks.on_channel_updated.url
799
- # @param [String] webhooks_on_channel_updated_method The
800
- # webhooks.on_channel_updated.method
801
- # @param [String] webhooks_on_channel_updated_format The
802
- # webhooks.on_channel_updated.format
803
- # @param [String] webhooks_on_member_added_url The webhooks.on_member_added.url
804
- # @param [String] webhooks_on_member_added_method The
805
- # webhooks.on_member_added.method
806
- # @param [String] webhooks_on_member_added_format The
807
- # webhooks.on_member_added.format
808
- # @param [String] webhooks_on_member_removed_url The
809
- # webhooks.on_member_removed.url
810
- # @param [String] webhooks_on_member_removed_method The
811
- # webhooks.on_member_removed.method
812
- # @param [String] webhooks_on_member_removed_format The
813
- # webhooks.on_member_removed.format
814
- # @param [String] limits_channel_members The limits.channel_members
815
- # @param [String] limits_user_channels The limits.user_channels
738
+ # Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
739
+ # @param [String] webhooks_on_message_send_url The URL of the webhook to call in
740
+ # response to the `on_message_send` event using the
741
+ # `webhooks.on_message_send.method` HTTP method.
742
+ # @param [String] webhooks_on_message_send_method The HTTP method to use when
743
+ # calling the `webhooks.on_message_send.url`.
744
+ # @param [String] webhooks_on_message_update_url The URL of the webhook to call in
745
+ # response to the `on_message_update` event using the
746
+ # `webhooks.on_message_update.method` HTTP method.
747
+ # @param [String] webhooks_on_message_update_method The HTTP method to use when
748
+ # calling the `webhooks.on_message_update.url`.
749
+ # @param [String] webhooks_on_message_remove_url The URL of the webhook to call in
750
+ # response to the `on_message_remove` event using the
751
+ # `webhooks.on_message_remove.method` HTTP method.
752
+ # @param [String] webhooks_on_message_remove_method The HTTP method to use when
753
+ # calling the `webhooks.on_message_remove.url`.
754
+ # @param [String] webhooks_on_channel_add_url The URL of the webhook to call in
755
+ # response to the `on_channel_add` event using the
756
+ # `webhooks.on_channel_add.method` HTTP method.
757
+ # @param [String] webhooks_on_channel_add_method The HTTP method to use when
758
+ # calling the `webhooks.on_channel_add.url`.
759
+ # @param [String] webhooks_on_channel_destroy_url The URL of the webhook to call
760
+ # in response to the `on_channel_destroy` event using the
761
+ # `webhooks.on_channel_destroy.method` HTTP method.
762
+ # @param [String] webhooks_on_channel_destroy_method The HTTP method to use when
763
+ # calling the `webhooks.on_channel_destroy.url`.
764
+ # @param [String] webhooks_on_channel_update_url The URL of the webhook to call in
765
+ # response to the `on_channel_update` event using the
766
+ # `webhooks.on_channel_update.method` HTTP method.
767
+ # @param [String] webhooks_on_channel_update_method The HTTP method to use when
768
+ # calling the `webhooks.on_channel_update.url`.
769
+ # @param [String] webhooks_on_member_add_url The URL of the webhook to call in
770
+ # response to the `on_member_add` event using the `webhooks.on_member_add.method`
771
+ # HTTP method.
772
+ # @param [String] webhooks_on_member_add_method The HTTP method to use when
773
+ # calling the `webhooks.on_member_add.url`.
774
+ # @param [String] webhooks_on_member_remove_url The URL of the webhook to call in
775
+ # response to the `on_member_remove` event using the
776
+ # `webhooks.on_member_remove.method` HTTP method.
777
+ # @param [String] webhooks_on_member_remove_method The HTTP method to use when
778
+ # calling the `webhooks.on_member_remove.url`.
779
+ # @param [String] webhooks_on_message_sent_url The URL of the webhook to call in
780
+ # response to the `on_message_sent` event using the
781
+ # `webhooks.on_message_sent.method` HTTP method.
782
+ # @param [String] webhooks_on_message_sent_method The URL of the webhook to call
783
+ # in response to the `on_message_sent` event`.
784
+ # @param [String] webhooks_on_message_updated_url The URL of the webhook to call
785
+ # in response to the `on_message_updated` event using the
786
+ # `webhooks.on_message_updated.method` HTTP method.
787
+ # @param [String] webhooks_on_message_updated_method The HTTP method to use when
788
+ # calling the `webhooks.on_message_updated.url`.
789
+ # @param [String] webhooks_on_message_removed_url The URL of the webhook to call
790
+ # in response to the `on_message_removed` event using the
791
+ # `webhooks.on_message_removed.method` HTTP method.
792
+ # @param [String] webhooks_on_message_removed_method The HTTP method to use when
793
+ # calling the `webhooks.on_message_removed.url`.
794
+ # @param [String] webhooks_on_channel_added_url The URL of the webhook to call in
795
+ # response to the `on_channel_added` event using the
796
+ # `webhooks.on_channel_added.method` HTTP method.
797
+ # @param [String] webhooks_on_channel_added_method The URL of the webhook to call
798
+ # in response to the `on_channel_added` event`.
799
+ # @param [String] webhooks_on_channel_destroyed_url The URL of the webhook to call
800
+ # in response to the `on_channel_added` event using the
801
+ # `webhooks.on_channel_destroyed.method` HTTP method.
802
+ # @param [String] webhooks_on_channel_destroyed_method The HTTP method to use when
803
+ # calling the `webhooks.on_channel_destroyed.url`.
804
+ # @param [String] webhooks_on_channel_updated_url The URL of the webhook to call
805
+ # in response to the `on_channel_updated` event using the
806
+ # `webhooks.on_channel_updated.method` HTTP method.
807
+ # @param [String] webhooks_on_channel_updated_method The HTTP method to use when
808
+ # calling the `webhooks.on_channel_updated.url`.
809
+ # @param [String] webhooks_on_member_added_url The URL of the webhook to call in
810
+ # response to the `on_channel_updated` event using the
811
+ # `webhooks.on_channel_updated.method` HTTP method.
812
+ # @param [String] webhooks_on_member_added_method The HTTP method to use when
813
+ # calling the `webhooks.on_channel_updated.url`.
814
+ # @param [String] webhooks_on_member_removed_url The URL of the webhook to call in
815
+ # response to the `on_member_removed` event using the
816
+ # `webhooks.on_member_removed.method` HTTP method.
817
+ # @param [String] webhooks_on_member_removed_method The HTTP method to use when
818
+ # calling the `webhooks.on_member_removed.url`.
819
+ # @param [String] limits_channel_members The maximum number of Members that can be
820
+ # added to Channels within this Service. Can be up to 1,000.
821
+ # @param [String] limits_user_channels The maximum number of Channels Users can be
822
+ # a Member of within this Service. Can be up to 1,000.
816
823
  # @return [ServiceInstance] Updated ServiceInstance
817
- def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_send_format: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_update_format: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_message_remove_format: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_add_format: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_destroy_format: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_channel_update_format: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_add_format: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_member_remove_format: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_sent_format: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_updated_format: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_message_removed_format: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_added_format: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_destroyed_format: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_channel_updated_format: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_added_format: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, webhooks_on_member_removed_format: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
824
+ def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, webhooks_on_message_send_url: :unset, webhooks_on_message_send_method: :unset, webhooks_on_message_update_url: :unset, webhooks_on_message_update_method: :unset, webhooks_on_message_remove_url: :unset, webhooks_on_message_remove_method: :unset, webhooks_on_channel_add_url: :unset, webhooks_on_channel_add_method: :unset, webhooks_on_channel_destroy_url: :unset, webhooks_on_channel_destroy_method: :unset, webhooks_on_channel_update_url: :unset, webhooks_on_channel_update_method: :unset, webhooks_on_member_add_url: :unset, webhooks_on_member_add_method: :unset, webhooks_on_member_remove_url: :unset, webhooks_on_member_remove_method: :unset, webhooks_on_message_sent_url: :unset, webhooks_on_message_sent_method: :unset, webhooks_on_message_updated_url: :unset, webhooks_on_message_updated_method: :unset, webhooks_on_message_removed_url: :unset, webhooks_on_message_removed_method: :unset, webhooks_on_channel_added_url: :unset, webhooks_on_channel_added_method: :unset, webhooks_on_channel_destroyed_url: :unset, webhooks_on_channel_destroyed_method: :unset, webhooks_on_channel_updated_url: :unset, webhooks_on_channel_updated_method: :unset, webhooks_on_member_added_url: :unset, webhooks_on_member_added_method: :unset, webhooks_on_member_removed_url: :unset, webhooks_on_member_removed_method: :unset, limits_channel_members: :unset, limits_user_channels: :unset)
818
825
  context.update(
819
826
  friendly_name: friendly_name,
820
827
  default_service_role_sid: default_service_role_sid,
@@ -838,52 +845,36 @@ module Twilio
838
845
  webhook_filters: webhook_filters,
839
846
  webhooks_on_message_send_url: webhooks_on_message_send_url,
840
847
  webhooks_on_message_send_method: webhooks_on_message_send_method,
841
- webhooks_on_message_send_format: webhooks_on_message_send_format,
842
848
  webhooks_on_message_update_url: webhooks_on_message_update_url,
843
849
  webhooks_on_message_update_method: webhooks_on_message_update_method,
844
- webhooks_on_message_update_format: webhooks_on_message_update_format,
845
850
  webhooks_on_message_remove_url: webhooks_on_message_remove_url,
846
851
  webhooks_on_message_remove_method: webhooks_on_message_remove_method,
847
- webhooks_on_message_remove_format: webhooks_on_message_remove_format,
848
852
  webhooks_on_channel_add_url: webhooks_on_channel_add_url,
849
853
  webhooks_on_channel_add_method: webhooks_on_channel_add_method,
850
- webhooks_on_channel_add_format: webhooks_on_channel_add_format,
851
854
  webhooks_on_channel_destroy_url: webhooks_on_channel_destroy_url,
852
855
  webhooks_on_channel_destroy_method: webhooks_on_channel_destroy_method,
853
- webhooks_on_channel_destroy_format: webhooks_on_channel_destroy_format,
854
856
  webhooks_on_channel_update_url: webhooks_on_channel_update_url,
855
857
  webhooks_on_channel_update_method: webhooks_on_channel_update_method,
856
- webhooks_on_channel_update_format: webhooks_on_channel_update_format,
857
858
  webhooks_on_member_add_url: webhooks_on_member_add_url,
858
859
  webhooks_on_member_add_method: webhooks_on_member_add_method,
859
- webhooks_on_member_add_format: webhooks_on_member_add_format,
860
860
  webhooks_on_member_remove_url: webhooks_on_member_remove_url,
861
861
  webhooks_on_member_remove_method: webhooks_on_member_remove_method,
862
- webhooks_on_member_remove_format: webhooks_on_member_remove_format,
863
862
  webhooks_on_message_sent_url: webhooks_on_message_sent_url,
864
863
  webhooks_on_message_sent_method: webhooks_on_message_sent_method,
865
- webhooks_on_message_sent_format: webhooks_on_message_sent_format,
866
864
  webhooks_on_message_updated_url: webhooks_on_message_updated_url,
867
865
  webhooks_on_message_updated_method: webhooks_on_message_updated_method,
868
- webhooks_on_message_updated_format: webhooks_on_message_updated_format,
869
866
  webhooks_on_message_removed_url: webhooks_on_message_removed_url,
870
867
  webhooks_on_message_removed_method: webhooks_on_message_removed_method,
871
- webhooks_on_message_removed_format: webhooks_on_message_removed_format,
872
868
  webhooks_on_channel_added_url: webhooks_on_channel_added_url,
873
869
  webhooks_on_channel_added_method: webhooks_on_channel_added_method,
874
- webhooks_on_channel_added_format: webhooks_on_channel_added_format,
875
870
  webhooks_on_channel_destroyed_url: webhooks_on_channel_destroyed_url,
876
871
  webhooks_on_channel_destroyed_method: webhooks_on_channel_destroyed_method,
877
- webhooks_on_channel_destroyed_format: webhooks_on_channel_destroyed_format,
878
872
  webhooks_on_channel_updated_url: webhooks_on_channel_updated_url,
879
873
  webhooks_on_channel_updated_method: webhooks_on_channel_updated_method,
880
- webhooks_on_channel_updated_format: webhooks_on_channel_updated_format,
881
874
  webhooks_on_member_added_url: webhooks_on_member_added_url,
882
875
  webhooks_on_member_added_method: webhooks_on_member_added_method,
883
- webhooks_on_member_added_format: webhooks_on_member_added_format,
884
876
  webhooks_on_member_removed_url: webhooks_on_member_removed_url,
885
877
  webhooks_on_member_removed_method: webhooks_on_member_removed_method,
886
- webhooks_on_member_removed_format: webhooks_on_member_removed_format,
887
878
  limits_channel_members: limits_channel_members,
888
879
  limits_user_channels: limits_user_channels,
889
880
  )