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.
- checksums.yaml +4 -4
- data/CHANGES.md +13 -0
- data/README.md +7 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +6 -4
- data/lib/twilio-ruby/rest/chat.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +4 -2
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +50 -45
- data/lib/twilio-ruby/rest/chat/v2/service.rb +197 -146
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +43 -30
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +85 -77
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +48 -46
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +117 -113
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +98 -96
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +90 -36
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +38 -25
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +49 -51
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +42 -34
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +37 -31
- data/lib/twilio-ruby/rest/flex_api.rb +8 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +515 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +4 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +50 -45
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +197 -146
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +43 -30
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +85 -77
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +48 -46
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +117 -113
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +98 -96
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +90 -36
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +38 -25
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +49 -51
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +42 -34
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +37 -31
- data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +1 -4
- data/lib/twilio-ruby/rest/voice/v1/voice_permission/settings.rb +207 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/flex_api/v1/flex_flow_spec.rb +255 -0
- data/spec/integration/voice/v1/voice_permission/settings_spec.rb +77 -0
- metadata +8 -2
@@ -15,8 +15,9 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the RoleList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] service_sid The
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/
|
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.
|
20
21
|
# @return [RoleList] RoleList
|
21
22
|
def initialize(version, service_sid: nil)
|
22
23
|
super(version)
|
@@ -29,12 +30,15 @@ module Twilio
|
|
29
30
|
##
|
30
31
|
# Retrieve a single page of RoleInstance records from the API.
|
31
32
|
# Request is executed immediately.
|
32
|
-
# @param [String] friendly_name
|
33
|
-
#
|
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 [role.RoleType] type The type of role. Can be: `channel` for
|
34
36
|
# [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment`
|
35
|
-
# for [Service](https://www.twilio.com/docs/
|
36
|
-
# @param [String] permission
|
37
|
-
#
|
37
|
+
# for [Service](https://www.twilio.com/docs/chat/api/services) roles.
|
38
|
+
# @param [String] permission A permission that you grant to the new role. Only one
|
39
|
+
# permission can be granted per parameter. To assign more than one permission,
|
40
|
+
# repeat this parameter for each permission value. The values for this parameter
|
41
|
+
# depend on the role's `type` and are described in the documentation.
|
38
42
|
# @return [RoleInstance] Newly created RoleInstance
|
39
43
|
def create(friendly_name: nil, type: nil, permission: nil)
|
40
44
|
data = Twilio::Values.of({
|
@@ -174,8 +178,11 @@ module Twilio
|
|
174
178
|
##
|
175
179
|
# Initialize the RoleContext
|
176
180
|
# @param [Version] version Version that contains the resource
|
177
|
-
# @param [String] service_sid The
|
178
|
-
#
|
181
|
+
# @param [String] service_sid The SID of the
|
182
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
|
183
|
+
# from.
|
184
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the Role
|
185
|
+
# resource to fetch.
|
179
186
|
# @return [RoleContext] RoleContext
|
180
187
|
def initialize(version, service_sid, sid)
|
181
188
|
super(version)
|
@@ -209,8 +216,10 @@ module Twilio
|
|
209
216
|
|
210
217
|
##
|
211
218
|
# Update the RoleInstance
|
212
|
-
# @param [String] permission
|
213
|
-
#
|
219
|
+
# @param [String] permission A permission that you grant to the role. Only one
|
220
|
+
# permission can be granted per parameter. To assign more than one permission,
|
221
|
+
# repeat this parameter for each permission value. The values for this parameter
|
222
|
+
# depend on the role's `type` and are described in the documentation.
|
214
223
|
# @return [RoleInstance] Updated RoleInstance
|
215
224
|
def update(permission: nil)
|
216
225
|
data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, })
|
@@ -244,9 +253,11 @@ module Twilio
|
|
244
253
|
# Initialize the RoleInstance
|
245
254
|
# @param [Version] version Version that contains the resource
|
246
255
|
# @param [Hash] payload payload that contains response from Twilio
|
247
|
-
# @param [String] service_sid The
|
248
|
-
# [Service](https://www.twilio.com/docs/chat/
|
249
|
-
#
|
256
|
+
# @param [String] service_sid The SID of the
|
257
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
258
|
+
# associated with.
|
259
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the Role
|
260
|
+
# resource to fetch.
|
250
261
|
# @return [RoleInstance] RoleInstance
|
251
262
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
252
263
|
super(version)
|
@@ -281,55 +292,55 @@ module Twilio
|
|
281
292
|
end
|
282
293
|
|
283
294
|
##
|
284
|
-
# @return [String]
|
295
|
+
# @return [String] The unique string that identifies the resource
|
285
296
|
def sid
|
286
297
|
@properties['sid']
|
287
298
|
end
|
288
299
|
|
289
300
|
##
|
290
|
-
# @return [String] The
|
301
|
+
# @return [String] The SID of the Account that created the resource
|
291
302
|
def account_sid
|
292
303
|
@properties['account_sid']
|
293
304
|
end
|
294
305
|
|
295
306
|
##
|
296
|
-
# @return [String] The
|
307
|
+
# @return [String] The SID of the Service that the resource is associated with
|
297
308
|
def service_sid
|
298
309
|
@properties['service_sid']
|
299
310
|
end
|
300
311
|
|
301
312
|
##
|
302
|
-
# @return [String] The
|
313
|
+
# @return [String] The string that you assigned to describe the resource
|
303
314
|
def friendly_name
|
304
315
|
@properties['friendly_name']
|
305
316
|
end
|
306
317
|
|
307
318
|
##
|
308
|
-
# @return [role.RoleType]
|
319
|
+
# @return [role.RoleType] The type of role
|
309
320
|
def type
|
310
321
|
@properties['type']
|
311
322
|
end
|
312
323
|
|
313
324
|
##
|
314
|
-
# @return [String]
|
325
|
+
# @return [String] An array of the permissions the role has been granted
|
315
326
|
def permissions
|
316
327
|
@properties['permissions']
|
317
328
|
end
|
318
329
|
|
319
330
|
##
|
320
|
-
# @return [Time] The date
|
331
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
321
332
|
def date_created
|
322
333
|
@properties['date_created']
|
323
334
|
end
|
324
335
|
|
325
336
|
##
|
326
|
-
# @return [Time] The date
|
337
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
327
338
|
def date_updated
|
328
339
|
@properties['date_updated']
|
329
340
|
end
|
330
341
|
|
331
342
|
##
|
332
|
-
# @return [String]
|
343
|
+
# @return [String] The absolute URL of the Role resource
|
333
344
|
def url
|
334
345
|
@properties['url']
|
335
346
|
end
|
@@ -350,8 +361,10 @@ module Twilio
|
|
350
361
|
|
351
362
|
##
|
352
363
|
# Update the RoleInstance
|
353
|
-
# @param [String] permission
|
354
|
-
#
|
364
|
+
# @param [String] permission A permission that you grant to the role. Only one
|
365
|
+
# permission can be granted per parameter. To assign more than one permission,
|
366
|
+
# repeat this parameter for each permission value. The values for this parameter
|
367
|
+
# depend on the role's `type` and are described in the documentation.
|
355
368
|
# @return [RoleInstance] Updated RoleInstance
|
356
369
|
def update(permission: nil)
|
357
370
|
context.update(permission: permission, )
|
@@ -15,9 +15,9 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the UserList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] service_sid The
|
19
|
-
# [Service](https://www.twilio.com/docs/
|
20
|
-
#
|
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 [UserList] UserList
|
22
22
|
def initialize(version, service_sid: nil)
|
23
23
|
super(version)
|
@@ -30,16 +30,16 @@ module Twilio
|
|
30
30
|
##
|
31
31
|
# Retrieve a single page of UserInstance records from the API.
|
32
32
|
# Request is executed immediately.
|
33
|
-
# @param [String] identity
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# @param [String] friendly_name
|
42
|
-
#
|
33
|
+
# @param [String] identity The `identity` value that uniquely identifies the new
|
34
|
+
# resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
|
35
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services). This value is often a
|
36
|
+
# username or email address. See the Identity documentation for more details.
|
37
|
+
# @param [String] role_sid The SID of the
|
38
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) assigned to the new User.
|
39
|
+
# @param [String] attributes A valid JSON string that contains
|
40
|
+
# application-specific data.
|
41
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
42
|
+
# the new resource. This value is often used for display purposes.
|
43
43
|
# @return [UserInstance] Newly created UserInstance
|
44
44
|
def create(identity: nil, role_sid: :unset, attributes: :unset, friendly_name: :unset)
|
45
45
|
data = Twilio::Values.of({
|
@@ -180,11 +180,11 @@ module Twilio
|
|
180
180
|
##
|
181
181
|
# Initialize the UserContext
|
182
182
|
# @param [Version] version Version that contains the resource
|
183
|
-
# @param [String] service_sid
|
184
|
-
# [Service](https://www.twilio.com/docs/
|
185
|
-
#
|
186
|
-
# @param [String] sid
|
187
|
-
#
|
183
|
+
# @param [String] service_sid The SID of the
|
184
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
|
185
|
+
# from.
|
186
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the User
|
187
|
+
# resource to fetch.
|
188
188
|
# @return [UserContext] UserContext
|
189
189
|
def initialize(version, service_sid, sid)
|
190
190
|
super(version)
|
@@ -222,13 +222,12 @@ module Twilio
|
|
222
222
|
|
223
223
|
##
|
224
224
|
# Update the UserInstance
|
225
|
-
# @param [String] role_sid The
|
226
|
-
# user.
|
227
|
-
# @param [String] attributes
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
# user. Often used for display purposes.
|
225
|
+
# @param [String] role_sid The SID of the
|
226
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) assigned to this user.
|
227
|
+
# @param [String] attributes A valid JSON string that contains
|
228
|
+
# application-specific data.
|
229
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
230
|
+
# the resource. It is often used for display purposes.
|
232
231
|
# @return [UserInstance] Updated UserInstance
|
233
232
|
def update(role_sid: :unset, attributes: :unset, friendly_name: :unset)
|
234
233
|
data = Twilio::Values.of({
|
@@ -310,11 +309,11 @@ module Twilio
|
|
310
309
|
# Initialize the UserInstance
|
311
310
|
# @param [Version] version Version that contains the resource
|
312
311
|
# @param [Hash] payload payload that contains response from Twilio
|
313
|
-
# @param [String] service_sid The
|
314
|
-
# [Service](https://www.twilio.com/docs/
|
315
|
-
#
|
316
|
-
# @param [String] sid
|
317
|
-
#
|
312
|
+
# @param [String] service_sid The SID of the
|
313
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
314
|
+
# associated with.
|
315
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the User
|
316
|
+
# resource to fetch.
|
318
317
|
# @return [UserInstance] UserInstance
|
319
318
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
320
319
|
super(version)
|
@@ -354,85 +353,85 @@ module Twilio
|
|
354
353
|
end
|
355
354
|
|
356
355
|
##
|
357
|
-
# @return [String]
|
356
|
+
# @return [String] The unique string that identifies the resource
|
358
357
|
def sid
|
359
358
|
@properties['sid']
|
360
359
|
end
|
361
360
|
|
362
361
|
##
|
363
|
-
# @return [String] The
|
362
|
+
# @return [String] The SID of the Account that created the resource
|
364
363
|
def account_sid
|
365
364
|
@properties['account_sid']
|
366
365
|
end
|
367
366
|
|
368
367
|
##
|
369
|
-
# @return [String] The
|
368
|
+
# @return [String] The SID of the Service that the resource is associated with
|
370
369
|
def service_sid
|
371
370
|
@properties['service_sid']
|
372
371
|
end
|
373
372
|
|
374
373
|
##
|
375
|
-
# @return [String]
|
374
|
+
# @return [String] The JSON string that stores application-specific data
|
376
375
|
def attributes
|
377
376
|
@properties['attributes']
|
378
377
|
end
|
379
378
|
|
380
379
|
##
|
381
|
-
# @return [String] The
|
380
|
+
# @return [String] The string that you assigned to describe the resource
|
382
381
|
def friendly_name
|
383
382
|
@properties['friendly_name']
|
384
383
|
end
|
385
384
|
|
386
385
|
##
|
387
|
-
# @return [String] The
|
386
|
+
# @return [String] The SID of the assigned to the user
|
388
387
|
def role_sid
|
389
388
|
@properties['role_sid']
|
390
389
|
end
|
391
390
|
|
392
391
|
##
|
393
|
-
# @return [String]
|
392
|
+
# @return [String] The string that identifies the resource's User
|
394
393
|
def identity
|
395
394
|
@properties['identity']
|
396
395
|
end
|
397
396
|
|
398
397
|
##
|
399
|
-
# @return [Boolean]
|
398
|
+
# @return [Boolean] Whether the User is actively connected to the Service instance and online
|
400
399
|
def is_online
|
401
400
|
@properties['is_online']
|
402
401
|
end
|
403
402
|
|
404
403
|
##
|
405
|
-
# @return [Boolean]
|
404
|
+
# @return [Boolean] Whether the User has a potentially valid Push Notification registration for the Service instance
|
406
405
|
def is_notifiable
|
407
406
|
@properties['is_notifiable']
|
408
407
|
end
|
409
408
|
|
410
409
|
##
|
411
|
-
# @return [Time] The date
|
410
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
412
411
|
def date_created
|
413
412
|
@properties['date_created']
|
414
413
|
end
|
415
414
|
|
416
415
|
##
|
417
|
-
# @return [Time] The date
|
416
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
418
417
|
def date_updated
|
419
418
|
@properties['date_updated']
|
420
419
|
end
|
421
420
|
|
422
421
|
##
|
423
|
-
# @return [String] The number of Channels this User is a Member of
|
422
|
+
# @return [String] The number of Channels this User is a Member of
|
424
423
|
def joined_channels_count
|
425
424
|
@properties['joined_channels_count']
|
426
425
|
end
|
427
426
|
|
428
427
|
##
|
429
|
-
# @return [String] The
|
428
|
+
# @return [String] The absolute URLs of the Channel and Binding resources related to the user
|
430
429
|
def links
|
431
430
|
@properties['links']
|
432
431
|
end
|
433
432
|
|
434
433
|
##
|
435
|
-
# @return [String]
|
434
|
+
# @return [String] The absolute URL of the User resource
|
436
435
|
def url
|
437
436
|
@properties['url']
|
438
437
|
end
|
@@ -453,13 +452,12 @@ module Twilio
|
|
453
452
|
|
454
453
|
##
|
455
454
|
# Update the UserInstance
|
456
|
-
# @param [String] role_sid The
|
457
|
-
# user.
|
458
|
-
# @param [String] attributes
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
# user. Often used for display purposes.
|
455
|
+
# @param [String] role_sid The SID of the
|
456
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) assigned to this user.
|
457
|
+
# @param [String] attributes A valid JSON string that contains
|
458
|
+
# application-specific data.
|
459
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
460
|
+
# the resource. It is often used for display purposes.
|
463
461
|
# @return [UserInstance] Updated UserInstance
|
464
462
|
def update(role_sid: :unset, attributes: :unset, friendly_name: :unset)
|
465
463
|
context.update(role_sid: role_sid, attributes: attributes, friendly_name: friendly_name, )
|
@@ -16,12 +16,12 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the UserBindingList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] service_sid The
|
20
|
-
# [Service](https://www.twilio.com/docs/
|
21
|
-
#
|
22
|
-
# @param [String] user_sid The
|
23
|
-
# [User](https://www.twilio.com/docs/
|
24
|
-
#
|
19
|
+
# @param [String] service_sid The SID of the
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
21
|
+
# associated with.
|
22
|
+
# @param [String] user_sid The SID of the
|
23
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
|
24
|
+
# notification
|
25
25
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
26
26
|
# for more information.
|
27
27
|
# @return [UserBindingList] UserBindingList
|
@@ -37,8 +37,8 @@ module Twilio
|
|
37
37
|
# Lists UserBindingInstance records from the API as a list.
|
38
38
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
39
39
|
# memory before returning.
|
40
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
41
|
-
#
|
40
|
+
# @param [user_binding.BindingType] binding_type The push technology used by the
|
41
|
+
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
42
42
|
# notification
|
43
43
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
44
44
|
# for more information.
|
@@ -57,8 +57,8 @@ module Twilio
|
|
57
57
|
# Streams UserBindingInstance records from the API as an Enumerable.
|
58
58
|
# This operation lazily loads records as efficiently as possible until the limit
|
59
59
|
# is reached.
|
60
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
61
|
-
#
|
60
|
+
# @param [user_binding.BindingType] binding_type The push technology used by the
|
61
|
+
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
62
62
|
# notification
|
63
63
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
64
64
|
# for more information.
|
@@ -94,8 +94,8 @@ module Twilio
|
|
94
94
|
##
|
95
95
|
# Retrieve a single page of UserBindingInstance records from the API.
|
96
96
|
# Request is executed immediately.
|
97
|
-
# @param [user_binding.BindingType] binding_type The push technology used
|
98
|
-
#
|
97
|
+
# @param [user_binding.BindingType] binding_type The push technology used by the
|
98
|
+
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
99
99
|
# notification
|
100
100
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
101
101
|
# for more information.
|
@@ -176,9 +176,16 @@ module Twilio
|
|
176
176
|
##
|
177
177
|
# Initialize the UserBindingContext
|
178
178
|
# @param [Version] version Version that contains the resource
|
179
|
-
# @param [String] service_sid The
|
180
|
-
#
|
181
|
-
#
|
179
|
+
# @param [String] service_sid The SID of the
|
180
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
|
181
|
+
# from.
|
182
|
+
# @param [String] user_sid The SID of the
|
183
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
|
184
|
+
# notification
|
185
|
+
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
186
|
+
# for more information.
|
187
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the User
|
188
|
+
# Binding resource to fetch.
|
182
189
|
# @return [UserBindingContext] UserBindingContext
|
183
190
|
def initialize(version, service_sid, user_sid, sid)
|
184
191
|
super(version)
|
@@ -236,15 +243,16 @@ module Twilio
|
|
236
243
|
# Initialize the UserBindingInstance
|
237
244
|
# @param [Version] version Version that contains the resource
|
238
245
|
# @param [Hash] payload payload that contains response from Twilio
|
239
|
-
# @param [String] service_sid The
|
240
|
-
# [Service](https://www.twilio.com/docs/
|
241
|
-
#
|
242
|
-
# @param [String] user_sid The
|
243
|
-
# [User](https://www.twilio.com/docs/
|
244
|
-
#
|
246
|
+
# @param [String] service_sid The SID of the
|
247
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
248
|
+
# associated with.
|
249
|
+
# @param [String] user_sid The SID of the
|
250
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) for the binding. See [push
|
251
|
+
# notification
|
245
252
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
246
253
|
# for more information.
|
247
|
-
# @param [String] sid The
|
254
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the User
|
255
|
+
# Binding resource to fetch.
|
248
256
|
# @return [UserBindingInstance] UserBindingInstance
|
249
257
|
def initialize(version, payload, service_sid: nil, user_sid: nil, sid: nil)
|
250
258
|
super(version)
|
@@ -287,73 +295,73 @@ module Twilio
|
|
287
295
|
end
|
288
296
|
|
289
297
|
##
|
290
|
-
# @return [String]
|
298
|
+
# @return [String] The unique string that identifies the resource
|
291
299
|
def sid
|
292
300
|
@properties['sid']
|
293
301
|
end
|
294
302
|
|
295
303
|
##
|
296
|
-
# @return [String] The
|
304
|
+
# @return [String] The SID of the Account that created the resource
|
297
305
|
def account_sid
|
298
306
|
@properties['account_sid']
|
299
307
|
end
|
300
308
|
|
301
309
|
##
|
302
|
-
# @return [String] The
|
310
|
+
# @return [String] The SID of the Service that the resource is associated with
|
303
311
|
def service_sid
|
304
312
|
@properties['service_sid']
|
305
313
|
end
|
306
314
|
|
307
315
|
##
|
308
|
-
# @return [Time] The date
|
316
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was created
|
309
317
|
def date_created
|
310
318
|
@properties['date_created']
|
311
319
|
end
|
312
320
|
|
313
321
|
##
|
314
|
-
# @return [Time] The date
|
322
|
+
# @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
|
315
323
|
def date_updated
|
316
324
|
@properties['date_updated']
|
317
325
|
end
|
318
326
|
|
319
327
|
##
|
320
|
-
# @return [String] The unique endpoint identifier for
|
328
|
+
# @return [String] The unique endpoint identifier for the User Binding
|
321
329
|
def endpoint
|
322
330
|
@properties['endpoint']
|
323
331
|
end
|
324
332
|
|
325
333
|
##
|
326
|
-
# @return [String]
|
334
|
+
# @return [String] The string that identifies the resource's User
|
327
335
|
def identity
|
328
336
|
@properties['identity']
|
329
337
|
end
|
330
338
|
|
331
339
|
##
|
332
|
-
# @return [String] The
|
340
|
+
# @return [String] The SID of the User for the binding
|
333
341
|
def user_sid
|
334
342
|
@properties['user_sid']
|
335
343
|
end
|
336
344
|
|
337
345
|
##
|
338
|
-
# @return [String] The
|
346
|
+
# @return [String] The SID of the Credential for the binding
|
339
347
|
def credential_sid
|
340
348
|
@properties['credential_sid']
|
341
349
|
end
|
342
350
|
|
343
351
|
##
|
344
|
-
# @return [user_binding.BindingType] The push technology to use for
|
352
|
+
# @return [user_binding.BindingType] The push technology to use for the binding
|
345
353
|
def binding_type
|
346
354
|
@properties['binding_type']
|
347
355
|
end
|
348
356
|
|
349
357
|
##
|
350
|
-
# @return [String]
|
358
|
+
# @return [String] The Programmable Chat message types the binding is subscribed to
|
351
359
|
def message_types
|
352
360
|
@properties['message_types']
|
353
361
|
end
|
354
362
|
|
355
363
|
##
|
356
|
-
# @return [String]
|
364
|
+
# @return [String] The absolute URL of the User Binding resource
|
357
365
|
def url
|
358
366
|
@properties['url']
|
359
367
|
end
|