twilio-ruby 5.21.1 → 5.21.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/README.md +7 -4
  4. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +6 -4
  6. data/lib/twilio-ruby/rest/chat.rb +2 -2
  7. data/lib/twilio-ruby/rest/chat/v2.rb +4 -2
  8. data/lib/twilio-ruby/rest/chat/v2/credential.rb +50 -45
  9. data/lib/twilio-ruby/rest/chat/v2/service.rb +197 -146
  10. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +43 -30
  11. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +85 -77
  12. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +48 -46
  13. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +117 -113
  14. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +98 -96
  15. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +90 -36
  16. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +38 -25
  17. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +49 -51
  18. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +42 -34
  19. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +37 -31
  20. data/lib/twilio-ruby/rest/flex_api.rb +8 -0
  21. data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -0
  22. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +515 -0
  23. data/lib/twilio-ruby/rest/ip_messaging.rb +2 -2
  24. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +4 -2
  25. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +50 -45
  26. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +197 -146
  27. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +43 -30
  28. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +85 -77
  29. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +48 -46
  30. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +117 -113
  31. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +98 -96
  32. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +90 -36
  33. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +38 -25
  34. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +49 -51
  35. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +42 -34
  36. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +37 -31
  37. data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +1 -4
  38. data/lib/twilio-ruby/rest/voice/v1/voice_permission/settings.rb +207 -0
  39. data/lib/twilio-ruby/version.rb +1 -1
  40. data/spec/integration/flex_api/v1/flex_flow_spec.rb +255 -0
  41. data/spec/integration/voice/v1/voice_permission/settings_spec.rb +77 -0
  42. metadata +8 -2
@@ -15,9 +15,9 @@ module Twilio
15
15
  ##
16
16
  # Initialize the BindingList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] service_sid The unique id of the
19
- # [Service](https://www.twilio.com/docs/api/chat/rest/services) this binding
20
- # belongs to.
18
+ # @param [String] service_sid The SID of the
19
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
20
+ # associated with.
21
21
  # @return [BindingList] BindingList
22
22
  def initialize(version, service_sid: nil)
23
23
  super(version)
@@ -31,12 +31,15 @@ module Twilio
31
31
  # Lists BindingInstance records from the API as a list.
32
32
  # Unlike stream(), this operation is eager and will load `limit` records into
33
33
  # memory before returning.
34
- # @param [binding.BindingType] binding_type The push technology used for the
35
- # returned Bindings. Supported values are apn, gcm and fcm. See [push
34
+ # @param [binding.BindingType] binding_type The push technology used by the
35
+ # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
36
36
  # notification
37
37
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
38
38
  # for more information.
39
- # @param [String] identity The identity
39
+ # @param [String] identity The
40
+ # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
41
+ # resources to read. See [access
42
+ # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
40
43
  # @param [Integer] limit Upper limit for the number of records to return. stream()
41
44
  # guarantees to never return more than limit. Default is no limit
42
45
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -57,12 +60,15 @@ module Twilio
57
60
  # Streams BindingInstance records from the API as an Enumerable.
58
61
  # This operation lazily loads records as efficiently as possible until the limit
59
62
  # is reached.
60
- # @param [binding.BindingType] binding_type The push technology used for the
61
- # returned Bindings. Supported values are apn, gcm and fcm. See [push
63
+ # @param [binding.BindingType] binding_type The push technology used by the
64
+ # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
62
65
  # notification
63
66
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
64
67
  # for more information.
65
- # @param [String] identity The identity
68
+ # @param [String] identity The
69
+ # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
70
+ # resources to read. See [access
71
+ # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
66
72
  # @param [Integer] limit Upper limit for the number of records to return. stream()
67
73
  # guarantees to never return more than limit. Default is no limit.
68
74
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -95,12 +101,15 @@ module Twilio
95
101
  ##
96
102
  # Retrieve a single page of BindingInstance records from the API.
97
103
  # Request is executed immediately.
98
- # @param [binding.BindingType] binding_type The push technology used for the
99
- # returned Bindings. Supported values are apn, gcm and fcm. See [push
104
+ # @param [binding.BindingType] binding_type The push technology used by the
105
+ # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
100
106
  # notification
101
107
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
102
108
  # for more information.
103
- # @param [String] identity The identity
109
+ # @param [String] identity The
110
+ # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
111
+ # resources to read. See [access
112
+ # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
104
113
  # @param [String] page_token PageToken provided by the API
105
114
  # @param [Integer] page_number Page Number, this value is simply for client state
106
115
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -174,8 +183,11 @@ module Twilio
174
183
  ##
175
184
  # Initialize the BindingContext
176
185
  # @param [Version] version Version that contains the resource
177
- # @param [String] service_sid The service_sid
178
- # @param [String] sid The sid
186
+ # @param [String] service_sid The SID of the
187
+ # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
188
+ # from.
189
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
190
+ # Binding resource to fetch.
179
191
  # @return [BindingContext] BindingContext
180
192
  def initialize(version, service_sid, sid)
181
193
  super(version)
@@ -227,10 +239,11 @@ module Twilio
227
239
  # Initialize the BindingInstance
228
240
  # @param [Version] version Version that contains the resource
229
241
  # @param [Hash] payload payload that contains response from Twilio
230
- # @param [String] service_sid The unique id of the
231
- # [Service](https://www.twilio.com/docs/api/chat/rest/services) this binding
232
- # belongs to.
233
- # @param [String] sid The sid
242
+ # @param [String] service_sid The SID of the
243
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
244
+ # associated with.
245
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
246
+ # Binding resource to fetch.
234
247
  # @return [BindingInstance] BindingInstance
235
248
  def initialize(version, payload, service_sid: nil, sid: nil)
236
249
  super(version)
@@ -268,73 +281,73 @@ module Twilio
268
281
  end
269
282
 
270
283
  ##
271
- # @return [String] A 34 character string that uniquely identifies this resource.
284
+ # @return [String] The unique string that identifies the resource
272
285
  def sid
273
286
  @properties['sid']
274
287
  end
275
288
 
276
289
  ##
277
- # @return [String] The unique id of the Account responsible for this binding.
290
+ # @return [String] The SID of the Account that created the resource
278
291
  def account_sid
279
292
  @properties['account_sid']
280
293
  end
281
294
 
282
295
  ##
283
- # @return [String] The unique id of the Service this binding belongs to.
296
+ # @return [String] The SID of the Service that the resource is associated with
284
297
  def service_sid
285
298
  @properties['service_sid']
286
299
  end
287
300
 
288
301
  ##
289
- # @return [Time] The date that this resource was created.
302
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
290
303
  def date_created
291
304
  @properties['date_created']
292
305
  end
293
306
 
294
307
  ##
295
- # @return [Time] The date that this resource was last updated.
308
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
296
309
  def date_updated
297
310
  @properties['date_updated']
298
311
  end
299
312
 
300
313
  ##
301
- # @return [String] The unique endpoint identifier for this Binding.
314
+ # @return [String] The unique endpoint identifier for the Binding
302
315
  def endpoint
303
316
  @properties['endpoint']
304
317
  end
305
318
 
306
319
  ##
307
- # @return [String] A unique string identifier for the Binding for this User in this Service.
320
+ # @return [String] The string that identifies the resource's User
308
321
  def identity
309
322
  @properties['identity']
310
323
  end
311
324
 
312
325
  ##
313
- # @return [String] The unique id of the Credential for this binding.
326
+ # @return [String] The SID of the Credential for the binding
314
327
  def credential_sid
315
328
  @properties['credential_sid']
316
329
  end
317
330
 
318
331
  ##
319
- # @return [binding.BindingType] The push technology to use for this binding.
332
+ # @return [binding.BindingType] The push technology to use for the binding
320
333
  def binding_type
321
334
  @properties['binding_type']
322
335
  end
323
336
 
324
337
  ##
325
- # @return [String] List of message types for this binding.
338
+ # @return [String] The Programmable Chat message types the binding is subscribed to
326
339
  def message_types
327
340
  @properties['message_types']
328
341
  end
329
342
 
330
343
  ##
331
- # @return [String] An absolute URL for this binding.
344
+ # @return [String] The absolute URL of the Binding resource
332
345
  def url
333
346
  @properties['url']
334
347
  end
335
348
 
336
349
  ##
337
- # @return [String] Absolute URLs to access the Users for this Binding.
350
+ # @return [String] The absolute URLs of the Users for the Binding
338
351
  def links
339
352
  @properties['links']
340
353
  end
@@ -15,9 +15,9 @@ 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 unique id of the
19
- # [Service](https://www.twilio.com/docs/chat/api/services) this channel belongs
20
- # to.
18
+ # @param [String] service_sid The SID of the
19
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
20
+ # associated with.
21
21
  # @return [ChannelList] ChannelList
22
22
  def initialize(version, service_sid: nil)
23
23
  super(version)
@@ -30,26 +30,28 @@ module Twilio
30
30
  ##
31
31
  # Retrieve a single page of ChannelInstance records from the API.
32
32
  # Request is executed immediately.
33
- # @param [String] friendly_name A human-readable name for the Channel. Optional.
34
- # @param [String] unique_name A unique, addressable name for the Channel.
35
- # Optional.
36
- # @param [String] attributes An optional string metadata field you can use to
37
- # store any data you wish. The string value must contain structurally valid JSON
38
- # if specified. **Note** that if the attributes are not set "{}" will be
39
- # returned.
40
- # @param [channel.ChannelType] type The visibility of the channel - `public` or
41
- # `private`. Defaults to `public`.
42
- # @param [Time] date_created The optional ISO8601 time specifying the datetime the
43
- # Channel should be set as being created. Will be set to the current time by the
44
- # Chat service if not specified. Note that this should only be used in cases
45
- # where a a Channel is being recreated from a backup/separate source
46
- # @param [Time] date_updated The optional ISO8601 time specifying the datetime the
47
- # Channel should be set as having been last updated. Will be set to the `null` by
48
- # the Chat service if not specified. Note that this should only be used in cases
49
- # where a Channel is being recreated from a backup/separate source and where a
50
- # Message was previously updated.
51
- # @param [String] created_by Optional field to specify the Identity of the User
52
- # that created the Channel. Will be set to "system" if not specified.
33
+ # @param [String] friendly_name A descriptive string that you create to describe
34
+ # the new resource. It can be up to 64 characters long.
35
+ # @param [String] unique_name An application-defined string that uniquely
36
+ # identifies the resource. It can be used to address the resource in place of the
37
+ # resource's `sid` in the URL. This value must be 64 characters or less in length
38
+ # and be unique within the Service.
39
+ # @param [String] attributes A valid JSON string that contains
40
+ # application-specific data.
41
+ # @param [channel.ChannelType] type The visibility of the channel. Can be:
42
+ # `public` or `private` and defaults to `public`.
43
+ # @param [Time] date_created The date, specified in [ISO
44
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
45
+ # as the date it was created. The default is the current time set by the Chat
46
+ # service. Note that this should only be used in cases where a Channel is being
47
+ # recreated from a backup/separate source.
48
+ # @param [Time] date_updated The date, specified in [ISO
49
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
50
+ # as the date it was last updated. The default value is `null`. Note that this
51
+ # should only be used in cases where a Channel is being recreated from a
52
+ # backup/separate source and where a Message was previously updated.
53
+ # @param [String] created_by The `identity` of the User that created the channel.
54
+ # Default is: `system`.
53
55
  # @return [ChannelInstance] Newly created ChannelInstance
54
56
  def create(friendly_name: :unset, unique_name: :unset, attributes: :unset, type: :unset, date_created: :unset, date_updated: :unset, created_by: :unset)
55
57
  data = Twilio::Values.of({
@@ -75,8 +77,8 @@ module Twilio
75
77
  # Lists ChannelInstance records from the API as a list.
76
78
  # Unlike stream(), this operation is eager and will load `limit` records into
77
79
  # memory before returning.
78
- # @param [channel.ChannelType] type The visibility of the channel - `public` or
79
- # `private`. Defaults to `public`.
80
+ # @param [channel.ChannelType] type The visibility of the Channels to read. Can
81
+ # be: `public` or `private` and defaults to `public`.
80
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
81
83
  # guarantees to never return more than limit. Default is no limit
82
84
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -92,8 +94,8 @@ module Twilio
92
94
  # Streams ChannelInstance records from the API as an Enumerable.
93
95
  # This operation lazily loads records as efficiently as possible until the limit
94
96
  # is reached.
95
- # @param [channel.ChannelType] type The visibility of the channel - `public` or
96
- # `private`. Defaults to `public`.
97
+ # @param [channel.ChannelType] type The visibility of the Channels to read. Can
98
+ # be: `public` or `private` and defaults to `public`.
97
99
  # @param [Integer] limit Upper limit for the number of records to return. stream()
98
100
  # guarantees to never return more than limit. Default is no limit.
99
101
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -126,8 +128,8 @@ module Twilio
126
128
  ##
127
129
  # Retrieve a single page of ChannelInstance records from the API.
128
130
  # Request is executed immediately.
129
- # @param [channel.ChannelType] type The visibility of the channel - `public` or
130
- # `private`. Defaults to `public`.
131
+ # @param [channel.ChannelType] type The visibility of the Channels to read. Can
132
+ # be: `public` or `private` and defaults to `public`.
131
133
  # @param [String] page_token PageToken provided by the API
132
134
  # @param [Integer] page_number Page Number, this value is simply for client state
133
135
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -200,11 +202,11 @@ module Twilio
200
202
  ##
201
203
  # Initialize the ChannelContext
202
204
  # @param [Version] version Version that contains the resource
203
- # @param [String] service_sid Sid of the
204
- # [Service](https://www.twilio.com/docs/api/chat/rest/services) channel belongs
205
- # to.
206
- # @param [String] sid Key that uniquely defines the channel to fetch. Could be Sid
207
- # or UniqueName.
205
+ # @param [String] service_sid The SID of the
206
+ # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
207
+ # from.
208
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
209
+ # Channel resource to fetch.
208
210
  # @return [ChannelContext] ChannelContext
209
211
  def initialize(version, service_sid, sid)
210
212
  super(version)
@@ -244,19 +246,22 @@ module Twilio
244
246
 
245
247
  ##
246
248
  # Update the ChannelInstance
247
- # @param [String] friendly_name A human-readable name for the Channel. Optional.
248
- # @param [String] unique_name A unique, addressable name for the Channel.
249
- # Optional.
250
- # @param [String] attributes An optional string metadata field you can use to
251
- # store any data you wish. The string value must contain structurally valid JSON
252
- # if specified. **Note** that if the attributes are not set "{}" will be
253
- # returned.
254
- # @param [Time] date_created The optional ISO8601 time specifying the datetime the
255
- # Channel should be set as being created.
256
- # @param [Time] date_updated The optional ISO8601 time specifying the datetime the
257
- # Channel should be set as having been last updated.
258
- # @param [String] created_by Optional field to specify the Identity of the User
259
- # that created the Channel.
249
+ # @param [String] friendly_name A descriptive string that you create to describe
250
+ # the resource. It can be up to 64 characters long.
251
+ # @param [String] unique_name An application-defined string that uniquely
252
+ # identifies the resource. It can be used to address the resource in place of the
253
+ # resource's `sid` in the URL. This value must be 64 characters or less in length
254
+ # and be unique within the Service.
255
+ # @param [String] attributes A valid JSON string that contains
256
+ # application-specific data.
257
+ # @param [Time] date_created The date, specified in [ISO
258
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
259
+ # as the date it was created.
260
+ # @param [Time] date_updated The date, specified in [ISO
261
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
262
+ # as the date it was last updated.
263
+ # @param [String] created_by The `identity` of the User that created the channel.
264
+ # Default is: `system`.
260
265
  # @return [ChannelInstance] Updated ChannelInstance
261
266
  def update(friendly_name: :unset, unique_name: :unset, attributes: :unset, date_created: :unset, date_updated: :unset, created_by: :unset)
262
267
  data = Twilio::Values.of({
@@ -385,11 +390,11 @@ module Twilio
385
390
  # Initialize the ChannelInstance
386
391
  # @param [Version] version Version that contains the resource
387
392
  # @param [Hash] payload payload that contains response from Twilio
388
- # @param [String] service_sid The unique id of the
389
- # [Service](https://www.twilio.com/docs/chat/api/services) this channel belongs
390
- # to.
391
- # @param [String] sid Key that uniquely defines the channel to fetch. Could be Sid
392
- # or UniqueName.
393
+ # @param [String] service_sid The SID of the
394
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
395
+ # associated with.
396
+ # @param [String] sid The Twilio-provided string that uniquely identifies the
397
+ # Channel resource to fetch.
393
398
  # @return [ChannelInstance] ChannelInstance
394
399
  def initialize(version, payload, service_sid: nil, sid: nil)
395
400
  super(version)
@@ -429,61 +434,61 @@ module Twilio
429
434
  end
430
435
 
431
436
  ##
432
- # @return [String] A 34 character string that uniquely identifies this resource.
437
+ # @return [String] The unique string that identifies the resource
433
438
  def sid
434
439
  @properties['sid']
435
440
  end
436
441
 
437
442
  ##
438
- # @return [String] The unique id of the Account responsible for this channel.
443
+ # @return [String] The SID of the Account that created the resource
439
444
  def account_sid
440
445
  @properties['account_sid']
441
446
  end
442
447
 
443
448
  ##
444
- # @return [String] The unique id of the Service this channel belongs to.
449
+ # @return [String] The SID of the Service that the resource is associated with
445
450
  def service_sid
446
451
  @properties['service_sid']
447
452
  end
448
453
 
449
454
  ##
450
- # @return [String] The human-readable name of this channel.
455
+ # @return [String] The string that you assigned to describe the resource
451
456
  def friendly_name
452
457
  @properties['friendly_name']
453
458
  end
454
459
 
455
460
  ##
456
- # @return [String] The unique, addressable name of this channel.
461
+ # @return [String] An application-defined string that uniquely identifies the resource
457
462
  def unique_name
458
463
  @properties['unique_name']
459
464
  end
460
465
 
461
466
  ##
462
- # @return [String] An optional string metadata field you can use to store any data you wish.
467
+ # @return [String] The JSON string that stores application-specific data
463
468
  def attributes
464
469
  @properties['attributes']
465
470
  end
466
471
 
467
472
  ##
468
- # @return [channel.ChannelType] The visibility of this channel - either public or private
473
+ # @return [channel.ChannelType] The visibility of the channel. Can be: `public` or `private`
469
474
  def type
470
475
  @properties['type']
471
476
  end
472
477
 
473
478
  ##
474
- # @return [Time] The date that this resource was created.
479
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
475
480
  def date_created
476
481
  @properties['date_created']
477
482
  end
478
483
 
479
484
  ##
480
- # @return [Time] The date that this resource was last updated.
485
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
481
486
  def date_updated
482
487
  @properties['date_updated']
483
488
  end
484
489
 
485
490
  ##
486
- # @return [String] Identity of the channel's creator.
491
+ # @return [String] The identity of the User that created the channel
487
492
  def created_by
488
493
  @properties['created_by']
489
494
  end
@@ -501,13 +506,13 @@ module Twilio
501
506
  end
502
507
 
503
508
  ##
504
- # @return [String] An absolute URL for this channel.
509
+ # @return [String] The absolute URL of the Channel resource
505
510
  def url
506
511
  @properties['url']
507
512
  end
508
513
 
509
514
  ##
510
- # @return [String] Absolute URLs to access the Members, Messages , Invites and, if it exists the last Message for this Channel.
515
+ # @return [String] Absolute URLs to access the Members, Messages , Invites and, if it exists, the last Message for the Channel
511
516
  def links
512
517
  @properties['links']
513
518
  end
@@ -528,19 +533,22 @@ module Twilio
528
533
 
529
534
  ##
530
535
  # Update the ChannelInstance
531
- # @param [String] friendly_name A human-readable name for the Channel. Optional.
532
- # @param [String] unique_name A unique, addressable name for the Channel.
533
- # Optional.
534
- # @param [String] attributes An optional string metadata field you can use to
535
- # store any data you wish. The string value must contain structurally valid JSON
536
- # if specified. **Note** that if the attributes are not set "{}" will be
537
- # returned.
538
- # @param [Time] date_created The optional ISO8601 time specifying the datetime the
539
- # Channel should be set as being created.
540
- # @param [Time] date_updated The optional ISO8601 time specifying the datetime the
541
- # Channel should be set as having been last updated.
542
- # @param [String] created_by Optional field to specify the Identity of the User
543
- # that created the Channel.
536
+ # @param [String] friendly_name A descriptive string that you create to describe
537
+ # the resource. It can be up to 64 characters long.
538
+ # @param [String] unique_name An application-defined string that uniquely
539
+ # identifies the resource. It can be used to address the resource in place of the
540
+ # resource's `sid` in the URL. This value must be 64 characters or less in length
541
+ # and be unique within the Service.
542
+ # @param [String] attributes A valid JSON string that contains
543
+ # application-specific data.
544
+ # @param [Time] date_created The date, specified in [ISO
545
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
546
+ # as the date it was created.
547
+ # @param [Time] date_updated The date, specified in [ISO
548
+ # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
549
+ # as the date it was last updated.
550
+ # @param [String] created_by The `identity` of the User that created the channel.
551
+ # Default is: `system`.
544
552
  # @return [ChannelInstance] Updated ChannelInstance
545
553
  def update(friendly_name: :unset, unique_name: :unset, attributes: :unset, date_created: :unset, date_updated: :unset, created_by: :unset)
546
554
  context.update(