twilio-ruby 5.9.0 → 5.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +36 -24
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +34 -25
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +30 -21
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +10 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +6 -7
  14. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +12 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -6
  18. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +10 -8
  19. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +10 -8
  20. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -9
  21. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +0 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +9 -6
  24. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +9 -3
  25. data/lib/twilio-ruby/rest/api/v2010/account.rb +13 -9
  26. data/lib/twilio-ruby/rest/chat/v1/credential.rb +42 -24
  27. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +38 -18
  28. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +60 -24
  29. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +28 -18
  30. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +33 -24
  31. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +26 -16
  32. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -2
  33. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +43 -24
  34. data/lib/twilio-ruby/rest/chat/v1/service.rb +74 -44
  35. data/lib/twilio-ruby/rest/chat/v2/credential.rb +61 -27
  36. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +41 -18
  37. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -25
  38. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +76 -37
  39. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +432 -0
  40. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +90 -35
  41. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +23 -16
  42. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -2
  43. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +43 -25
  44. data/lib/twilio-ruby/rest/chat/v2/service.rb +93 -53
  45. data/lib/twilio-ruby/rest/chat.rb +4 -2
  46. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +42 -24
  47. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +38 -18
  48. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +60 -24
  49. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +28 -18
  50. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +33 -24
  51. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +26 -16
  52. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -2
  53. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +43 -24
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +74 -44
  55. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +61 -27
  56. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +41 -18
  57. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -25
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +76 -37
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +432 -0
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +90 -35
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +23 -16
  62. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -2
  63. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +43 -25
  64. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +93 -53
  65. data/lib/twilio-ruby/rest/ip_messaging.rb +4 -2
  66. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +12 -11
  67. data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
  68. data/lib/twilio-ruby/rest/monitor.rb +1 -1
  69. data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -22
  70. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +59 -26
  71. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +104 -29
  72. data/lib/twilio-ruby/rest/notify/v1/service.rb +86 -48
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +2 -2
  74. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  75. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +22 -16
  76. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +21 -15
  77. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +17 -14
  78. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +36 -25
  79. data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +21 -15
  80. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +19 -13
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +42 -28
  82. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +39 -21
  83. data/lib/twilio-ruby/rest/preview.rb +10 -9
  84. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +5 -5
  85. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
  86. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +3 -3
  87. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
  88. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -13
  89. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +28 -22
  90. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -5
  91. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -14
  92. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +3 -3
  93. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +2 -2
  94. data/lib/twilio-ruby/rest/sync/v1/service.rb +24 -27
  95. data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
  96. data/lib/twilio-ruby/rest/video/v1/recording.rb +45 -31
  97. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
  98. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +18 -6
  99. data/lib/twilio-ruby/rest/video/v1.rb +13 -12
  100. data/lib/twilio-ruby/rest/video.rb +9 -8
  101. data/lib/twilio-ruby/rest/wireless/v1/command.rb +43 -33
  102. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +48 -35
  103. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +21 -23
  104. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -22
  105. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +121 -70
  106. data/lib/twilio-ruby/rest/wireless.rb +6 -3
  107. data/lib/twilio-ruby/version.rb +1 -1
  108. data/spec/integration/chat/v2/service/channel/webhook_spec.rb +307 -0
  109. data/spec/integration/chat/v2/service/channel_spec.rb +4 -0
  110. data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +307 -0
  111. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +4 -0
  112. metadata +9 -3
@@ -16,8 +16,12 @@ module Twilio
16
16
  ##
17
17
  # Initialize the MemberList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] service_sid The service_sid
20
- # @param [String] channel_sid The channel_sid
19
+ # @param [String] service_sid The unique id of the
20
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this member
21
+ # belongs to.
22
+ # @param [String] channel_sid The unique id of the
23
+ # [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels) for this
24
+ # member.
21
25
  # @return [MemberList] MemberList
22
26
  def initialize(version, service_sid: nil, channel_sid: nil)
23
27
  super(version)
@@ -30,8 +34,14 @@ module Twilio
30
34
  ##
31
35
  # Retrieve a single page of MemberInstance records from the API.
32
36
  # Request is executed immediately.
33
- # @param [String] identity The identity
34
- # @param [String] role_sid The role_sid
37
+ # @param [String] identity A unique string identifier for this
38
+ # [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this
39
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the
40
+ # [access
41
+ # tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
42
+ # @param [String] role_sid The
43
+ # [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this
44
+ # member.
35
45
  # @return [MemberInstance] Newly created MemberInstance
36
46
  def create(identity: nil, role_sid: :unset)
37
47
  data = Twilio::Values.of({'Identity' => identity, 'RoleSid' => role_sid, })
@@ -54,7 +64,11 @@ module Twilio
54
64
  # Lists MemberInstance records from the API as a list.
55
65
  # Unlike stream(), this operation is eager and will load `limit` records into
56
66
  # memory before returning.
57
- # @param [String] identity The identity
67
+ # @param [String] identity A unique string identifier for this
68
+ # [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this
69
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the
70
+ # [access
71
+ # tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
58
72
  # @param [Integer] limit Upper limit for the number of records to return. stream()
59
73
  # guarantees to never return more than limit. Default is no limit
60
74
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -70,7 +84,11 @@ module Twilio
70
84
  # Streams MemberInstance records from the API as an Enumerable.
71
85
  # This operation lazily loads records as efficiently as possible until the limit
72
86
  # is reached.
73
- # @param [String] identity The identity
87
+ # @param [String] identity A unique string identifier for this
88
+ # [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this
89
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the
90
+ # [access
91
+ # tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
74
92
  # @param [Integer] limit Upper limit for the number of records to return. stream()
75
93
  # guarantees to never return more than limit. Default is no limit.
76
94
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -103,7 +121,11 @@ module Twilio
103
121
  ##
104
122
  # Retrieve a single page of MemberInstance records from the API.
105
123
  # Request is executed immediately.
106
- # @param [String] identity The identity
124
+ # @param [String] identity A unique string identifier for this
125
+ # [User](https://www.twilio.com/docs/api/chat/rest/v1/users) in this
126
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services). See the
127
+ # [access
128
+ # tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens)[/docs/api/chat/guides/create-tokens] docs for more details.
107
129
  # @param [String] page_token PageToken provided by the API
108
130
  # @param [Integer] page_number Page Number, this value is simply for client state
109
131
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -223,8 +245,13 @@ module Twilio
223
245
 
224
246
  ##
225
247
  # Update the MemberInstance
226
- # @param [String] role_sid The role_sid
227
- # @param [String] last_consumed_message_index The last_consumed_message_index
248
+ # @param [String] role_sid The
249
+ # [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this
250
+ # member.
251
+ # @param [String] last_consumed_message_index An Integer representing index of the
252
+ # last [Message](https://www.twilio.com/docs/api/chat/rest/v1/messages) this
253
+ # Member has read within this
254
+ # [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels)
228
255
  # @return [MemberInstance] Updated MemberInstance
229
256
  def update(role_sid: :unset, last_consumed_message_index: :unset)
230
257
  data = Twilio::Values.of({
@@ -260,8 +287,12 @@ module Twilio
260
287
  # Initialize the MemberInstance
261
288
  # @param [Version] version Version that contains the resource
262
289
  # @param [Hash] payload payload that contains response from Twilio
263
- # @param [String] service_sid The service_sid
264
- # @param [String] channel_sid The channel_sid
290
+ # @param [String] service_sid The unique id of the
291
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this member
292
+ # belongs to.
293
+ # @param [String] channel_sid The unique id of the
294
+ # [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels) for this
295
+ # member.
265
296
  # @param [String] sid The sid
266
297
  # @return [MemberInstance] MemberInstance
267
298
  def initialize(version, payload, service_sid: nil, channel_sid: nil, sid: nil)
@@ -308,67 +339,67 @@ module Twilio
308
339
  end
309
340
 
310
341
  ##
311
- # @return [String] The sid
342
+ # @return [String] A 34 character string that uniquely identifies this resource.
312
343
  def sid
313
344
  @properties['sid']
314
345
  end
315
346
 
316
347
  ##
317
- # @return [String] The account_sid
348
+ # @return [String] The unique id of the Account responsible for this member.
318
349
  def account_sid
319
350
  @properties['account_sid']
320
351
  end
321
352
 
322
353
  ##
323
- # @return [String] The channel_sid
354
+ # @return [String] The unique id of the Channel for this member.
324
355
  def channel_sid
325
356
  @properties['channel_sid']
326
357
  end
327
358
 
328
359
  ##
329
- # @return [String] The service_sid
360
+ # @return [String] The unique id of the Service this member belongs to.
330
361
  def service_sid
331
362
  @properties['service_sid']
332
363
  end
333
364
 
334
365
  ##
335
- # @return [String] The identity
366
+ # @return [String] A unique string identifier for this User in this Service.
336
367
  def identity
337
368
  @properties['identity']
338
369
  end
339
370
 
340
371
  ##
341
- # @return [Time] The date_created
372
+ # @return [Time] The date that this resource was created.
342
373
  def date_created
343
374
  @properties['date_created']
344
375
  end
345
376
 
346
377
  ##
347
- # @return [Time] The date_updated
378
+ # @return [Time] The date that this resource was last updated.
348
379
  def date_updated
349
380
  @properties['date_updated']
350
381
  end
351
382
 
352
383
  ##
353
- # @return [String] The role_sid
384
+ # @return [String] The Role assigned to this member.
354
385
  def role_sid
355
386
  @properties['role_sid']
356
387
  end
357
388
 
358
389
  ##
359
- # @return [String] The last_consumed_message_index
390
+ # @return [String] An Integer representing index of the last Message this Member has read within this Channel
360
391
  def last_consumed_message_index
361
392
  @properties['last_consumed_message_index']
362
393
  end
363
394
 
364
395
  ##
365
- # @return [Time] The last_consumption_timestamp
396
+ # @return [Time] An ISO8601 based timestamp string representing the datetime of the last Message read event for this Member within this Channel
366
397
  def last_consumption_timestamp
367
398
  @properties['last_consumption_timestamp']
368
399
  end
369
400
 
370
401
  ##
371
- # @return [String] The url
402
+ # @return [String] An absolute URL for this member.
372
403
  def url
373
404
  @properties['url']
374
405
  end
@@ -389,8 +420,13 @@ module Twilio
389
420
 
390
421
  ##
391
422
  # Update the MemberInstance
392
- # @param [String] role_sid The role_sid
393
- # @param [String] last_consumed_message_index The last_consumed_message_index
423
+ # @param [String] role_sid The
424
+ # [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this
425
+ # member.
426
+ # @param [String] last_consumed_message_index An Integer representing index of the
427
+ # last [Message](https://www.twilio.com/docs/api/chat/rest/v1/messages) this
428
+ # Member has read within this
429
+ # [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channels)
394
430
  # @return [MemberInstance] Updated MemberInstance
395
431
  def update(role_sid: :unset, last_consumed_message_index: :unset)
396
432
  context.update(role_sid: role_sid, last_consumed_message_index: last_consumed_message_index, )
@@ -16,7 +16,9 @@ module Twilio
16
16
  ##
17
17
  # Initialize the MessageList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] service_sid The service_sid
19
+ # @param [String] service_sid The unique id of the
20
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this message
21
+ # belongs to.
20
22
  # @param [String] channel_sid The channel_sid
21
23
  # @return [MessageList] MessageList
22
24
  def initialize(version, service_sid: nil, channel_sid: nil)
@@ -224,8 +226,11 @@ module Twilio
224
226
 
225
227
  ##
226
228
  # Update the MessageInstance
227
- # @param [String] body The body
228
- # @param [String] attributes The attributes
229
+ # @param [String] body The new message body string. You can also send structured
230
+ # data by serializing it into a string.
231
+ # @param [String] attributes The new attributes metadata field you can use to
232
+ # store any data you wish. The string value must contain structurally valid JSON
233
+ # if specified.
229
234
  # @return [MessageInstance] Updated MessageInstance
230
235
  def update(body: :unset, attributes: :unset)
231
236
  data = Twilio::Values.of({'Body' => body, 'Attributes' => attributes, })
@@ -258,7 +263,9 @@ module Twilio
258
263
  # Initialize the MessageInstance
259
264
  # @param [Version] version Version that contains the resource
260
265
  # @param [Hash] payload payload that contains response from Twilio
261
- # @param [String] service_sid The service_sid
266
+ # @param [String] service_sid The unique id of the
267
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this message
268
+ # belongs to.
262
269
  # @param [String] channel_sid The channel_sid
263
270
  # @param [String] sid The sid
264
271
  # @return [MessageInstance] MessageInstance
@@ -308,31 +315,31 @@ module Twilio
308
315
  end
309
316
 
310
317
  ##
311
- # @return [String] The sid
318
+ # @return [String] A 34 character string that uniquely identifies this resource.
312
319
  def sid
313
320
  @properties['sid']
314
321
  end
315
322
 
316
323
  ##
317
- # @return [String] The account_sid
324
+ # @return [String] The unique id of the Account responsible for this message.
318
325
  def account_sid
319
326
  @properties['account_sid']
320
327
  end
321
328
 
322
329
  ##
323
- # @return [String] The attributes
330
+ # @return [String] An optional string metadata field you can use to store any data you wish.
324
331
  def attributes
325
332
  @properties['attributes']
326
333
  end
327
334
 
328
335
  ##
329
- # @return [String] The service_sid
336
+ # @return [String] The unique id of the Service this message belongs to.
330
337
  def service_sid
331
338
  @properties['service_sid']
332
339
  end
333
340
 
334
341
  ##
335
- # @return [String] The to
342
+ # @return [String] The unique id of the Channel this message was sent to.
336
343
  def to
337
344
  @properties['to']
338
345
  end
@@ -344,43 +351,43 @@ module Twilio
344
351
  end
345
352
 
346
353
  ##
347
- # @return [Time] The date_created
354
+ # @return [Time] The date that this resource was created.
348
355
  def date_created
349
356
  @properties['date_created']
350
357
  end
351
358
 
352
359
  ##
353
- # @return [Time] The date_updated
360
+ # @return [Time] The date that this resource was last updated.
354
361
  def date_updated
355
362
  @properties['date_updated']
356
363
  end
357
364
 
358
365
  ##
359
- # @return [Boolean] The was_edited
366
+ # @return [Boolean] true if the message has been updated since it was created.
360
367
  def was_edited
361
368
  @properties['was_edited']
362
369
  end
363
370
 
364
371
  ##
365
- # @return [String] The from
372
+ # @return [String] The identity of the message's author.
366
373
  def from
367
374
  @properties['from']
368
375
  end
369
376
 
370
377
  ##
371
- # @return [String] The body
378
+ # @return [String] The contents of the message.
372
379
  def body
373
380
  @properties['body']
374
381
  end
375
382
 
376
383
  ##
377
- # @return [String] The index
384
+ # @return [String] The index of the message within the Channel
378
385
  def index
379
386
  @properties['index']
380
387
  end
381
388
 
382
389
  ##
383
- # @return [String] The url
390
+ # @return [String] An absolute URL for this message.
384
391
  def url
385
392
  @properties['url']
386
393
  end
@@ -401,8 +408,11 @@ module Twilio
401
408
 
402
409
  ##
403
410
  # Update the MessageInstance
404
- # @param [String] body The body
405
- # @param [String] attributes The attributes
411
+ # @param [String] body The new message body string. You can also send structured
412
+ # data by serializing it into a string.
413
+ # @param [String] attributes The new attributes metadata field you can use to
414
+ # store any data you wish. The string value must contain structurally valid JSON
415
+ # if specified.
406
416
  # @return [MessageInstance] Updated MessageInstance
407
417
  def update(body: :unset, attributes: :unset)
408
418
  context.update(body: body, attributes: attributes, )
@@ -15,7 +15,8 @@ module Twilio
15
15
  ##
16
16
  # Initialize the ChannelList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] service_sid The service_sid
18
+ # @param [String] service_sid The unique id of the [Service][service] this channel
19
+ # belongs to.
19
20
  # @return [ChannelList] ChannelList
20
21
  def initialize(version, service_sid: nil)
21
22
  super(version)
@@ -28,10 +29,13 @@ module Twilio
28
29
  ##
29
30
  # Retrieve a single page of ChannelInstance records from the API.
30
31
  # Request is executed immediately.
31
- # @param [String] friendly_name The friendly_name
32
- # @param [String] unique_name The unique_name
33
- # @param [String] attributes The attributes
34
- # @param [channel.ChannelType] type The type
32
+ # @param [String] friendly_name A human-readable name for the Channel. Optional.
33
+ # @param [String] unique_name A unique, addressable name for the Channel.
34
+ # Optional.
35
+ # @param [String] attributes An optional metadata field you can use to store any
36
+ # data you wish. No processing or validation is done on this field.
37
+ # @param [channel.ChannelType] type The visibility of the channel - `public` or
38
+ # `private`. Defaults to `public`.
35
39
  # @return [ChannelInstance] Newly created ChannelInstance
36
40
  def create(friendly_name: :unset, unique_name: :unset, attributes: :unset, type: :unset)
37
41
  data = Twilio::Values.of({
@@ -216,9 +220,11 @@ module Twilio
216
220
 
217
221
  ##
218
222
  # Update the ChannelInstance
219
- # @param [String] friendly_name The friendly_name
220
- # @param [String] unique_name The unique_name
221
- # @param [String] attributes The attributes
223
+ # @param [String] friendly_name A human-readable name for the Channel. Optional.
224
+ # @param [String] unique_name A unique, addressable name for the Channel.
225
+ # Optional.
226
+ # @param [String] attributes An optional metadata field you can use to store any
227
+ # data you wish. No processing or validation is done on this field.
222
228
  # @return [ChannelInstance] Updated ChannelInstance
223
229
  def update(friendly_name: :unset, unique_name: :unset, attributes: :unset)
224
230
  data = Twilio::Values.of({
@@ -315,7 +321,8 @@ module Twilio
315
321
  # Initialize the ChannelInstance
316
322
  # @param [Version] version Version that contains the resource
317
323
  # @param [Hash] payload payload that contains response from Twilio
318
- # @param [String] service_sid The service_sid
324
+ # @param [String] service_sid The unique id of the [Service][service] this channel
325
+ # belongs to.
319
326
  # @param [String] sid The sid
320
327
  # @return [ChannelInstance] ChannelInstance
321
328
  def initialize(version, payload, service_sid: nil, sid: nil)
@@ -356,61 +363,61 @@ module Twilio
356
363
  end
357
364
 
358
365
  ##
359
- # @return [String] The sid
366
+ # @return [String] A 34 character string that uniquely identifies this resource.
360
367
  def sid
361
368
  @properties['sid']
362
369
  end
363
370
 
364
371
  ##
365
- # @return [String] The account_sid
372
+ # @return [String] The unique id of the [Account][/console] responsible for this channel.
366
373
  def account_sid
367
374
  @properties['account_sid']
368
375
  end
369
376
 
370
377
  ##
371
- # @return [String] The service_sid
378
+ # @return [String] The unique id of the [Service][service] this channel belongs to.
372
379
  def service_sid
373
380
  @properties['service_sid']
374
381
  end
375
382
 
376
383
  ##
377
- # @return [String] The friendly_name
384
+ # @return [String] The human-readable name of this channel.
378
385
  def friendly_name
379
386
  @properties['friendly_name']
380
387
  end
381
388
 
382
389
  ##
383
- # @return [String] The unique_name
390
+ # @return [String] The unique, addressable name of this channel.
384
391
  def unique_name
385
392
  @properties['unique_name']
386
393
  end
387
394
 
388
395
  ##
389
- # @return [String] The attributes
396
+ # @return [String] An optional string metadata field you can use to store any data you wish.
390
397
  def attributes
391
398
  @properties['attributes']
392
399
  end
393
400
 
394
401
  ##
395
- # @return [channel.ChannelType] The type
402
+ # @return [channel.ChannelType] The visibility of this channel - either public or private
396
403
  def type
397
404
  @properties['type']
398
405
  end
399
406
 
400
407
  ##
401
- # @return [Time] The date_created
408
+ # @return [Time] The date that this resource was created.
402
409
  def date_created
403
410
  @properties['date_created']
404
411
  end
405
412
 
406
413
  ##
407
- # @return [Time] The date_updated
414
+ # @return [Time] The date that this resource was last updated.
408
415
  def date_updated
409
416
  @properties['date_updated']
410
417
  end
411
418
 
412
419
  ##
413
- # @return [String] The created_by
420
+ # @return [String] Identity of the channel's creator.
414
421
  def created_by
415
422
  @properties['created_by']
416
423
  end
@@ -428,13 +435,13 @@ module Twilio
428
435
  end
429
436
 
430
437
  ##
431
- # @return [String] The url
438
+ # @return [String] An absolute URL for this channel.
432
439
  def url
433
440
  @properties['url']
434
441
  end
435
442
 
436
443
  ##
437
- # @return [String] The links
444
+ # @return [String] Absolute URLs to access the [Members][members] and [Messages][messages] for this channel.
438
445
  def links
439
446
  @properties['links']
440
447
  end
@@ -455,9 +462,11 @@ module Twilio
455
462
 
456
463
  ##
457
464
  # Update the ChannelInstance
458
- # @param [String] friendly_name The friendly_name
459
- # @param [String] unique_name The unique_name
460
- # @param [String] attributes The attributes
465
+ # @param [String] friendly_name A human-readable name for the Channel. Optional.
466
+ # @param [String] unique_name A unique, addressable name for the Channel.
467
+ # Optional.
468
+ # @param [String] attributes An optional metadata field you can use to store any
469
+ # data you wish. No processing or validation is done on this field.
461
470
  # @return [ChannelInstance] Updated ChannelInstance
462
471
  def update(friendly_name: :unset, unique_name: :unset, attributes: :unset)
463
472
  context.update(friendly_name: friendly_name, unique_name: unique_name, attributes: attributes, )