twilio-ruby 5.27.0 → 5.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
@@ -15,8 +15,7 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the ParticipantList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] room_sid
|
19
|
-
# identifies. this room
|
18
|
+
# @param [String] room_sid The SID of the participant's room.
|
20
19
|
# @return [ParticipantList] ParticipantList
|
21
20
|
def initialize(version, room_sid: nil)
|
22
21
|
super(version)
|
@@ -30,17 +29,16 @@ module Twilio
|
|
30
29
|
# Lists ParticipantInstance records from the API as a list.
|
31
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
32
31
|
# memory before returning.
|
33
|
-
# @param [participant.Status] status
|
34
|
-
#
|
35
|
-
# Rooms only `disconnected` Participants
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# @param [Time] date_created_before
|
42
|
-
# this date
|
43
|
-
# Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC).
|
32
|
+
# @param [participant.Status] status Read only the participants with this status.
|
33
|
+
# Can be: `connected` or `disconnected`. For `in-progress` Rooms the default
|
34
|
+
# Status is `connected`, for `completed` Rooms only `disconnected` Participants
|
35
|
+
# are returned.
|
36
|
+
# @param [String] identity Read only the Participants with this
|
37
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value.
|
38
|
+
# @param [Time] date_created_after Read only Participants that started after this
|
39
|
+
# date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
40
|
+
# @param [Time] date_created_before Read only Participants that started before
|
41
|
+
# this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
44
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
45
43
|
# guarantees to never return more than limit. Default is no limit
|
46
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -63,17 +61,16 @@ module Twilio
|
|
63
61
|
# Streams ParticipantInstance records from the API as an Enumerable.
|
64
62
|
# This operation lazily loads records as efficiently as possible until the limit
|
65
63
|
# is reached.
|
66
|
-
# @param [participant.Status] status
|
67
|
-
#
|
68
|
-
# Rooms only `disconnected` Participants
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
# @param [Time] date_created_before
|
75
|
-
# this date
|
76
|
-
# Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC).
|
64
|
+
# @param [participant.Status] status Read only the participants with this status.
|
65
|
+
# Can be: `connected` or `disconnected`. For `in-progress` Rooms the default
|
66
|
+
# Status is `connected`, for `completed` Rooms only `disconnected` Participants
|
67
|
+
# are returned.
|
68
|
+
# @param [String] identity Read only the Participants with this
|
69
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value.
|
70
|
+
# @param [Time] date_created_after Read only Participants that started after this
|
71
|
+
# date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
72
|
+
# @param [Time] date_created_before Read only Participants that started before
|
73
|
+
# this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
77
74
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
78
75
|
# guarantees to never return more than limit. Default is no limit.
|
79
76
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -112,17 +109,16 @@ module Twilio
|
|
112
109
|
##
|
113
110
|
# Retrieve a single page of ParticipantInstance records from the API.
|
114
111
|
# Request is executed immediately.
|
115
|
-
# @param [participant.Status] status
|
116
|
-
#
|
117
|
-
# Rooms only `disconnected` Participants
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
# @param [Time] date_created_before
|
124
|
-
# this date
|
125
|
-
# Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC).
|
112
|
+
# @param [participant.Status] status Read only the participants with this status.
|
113
|
+
# Can be: `connected` or `disconnected`. For `in-progress` Rooms the default
|
114
|
+
# Status is `connected`, for `completed` Rooms only `disconnected` Participants
|
115
|
+
# are returned.
|
116
|
+
# @param [String] identity Read only the Participants with this
|
117
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value.
|
118
|
+
# @param [Time] date_created_after Read only Participants that started after this
|
119
|
+
# date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
120
|
+
# @param [Time] date_created_before Read only Participants that started before
|
121
|
+
# this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.
|
126
122
|
# @param [String] page_token PageToken provided by the API
|
127
123
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
128
124
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -198,10 +194,9 @@ module Twilio
|
|
198
194
|
##
|
199
195
|
# Initialize the ParticipantContext
|
200
196
|
# @param [Version] version Version that contains the resource
|
201
|
-
# @param [String] room_sid
|
202
|
-
#
|
203
|
-
# @param [String] sid
|
204
|
-
# identifies this Participant.
|
197
|
+
# @param [String] room_sid The SID of the room with the Participant resource to
|
198
|
+
# fetch.
|
199
|
+
# @param [String] sid The SID of the RoomParticipant resource to fetch.
|
205
200
|
# @return [ParticipantContext] ParticipantContext
|
206
201
|
def initialize(version, room_sid, sid)
|
207
202
|
super(version)
|
@@ -233,7 +228,10 @@ module Twilio
|
|
233
228
|
|
234
229
|
##
|
235
230
|
# Update the ParticipantInstance
|
236
|
-
# @param [participant.Status] status
|
231
|
+
# @param [participant.Status] status The new status of the resource. Can be:
|
232
|
+
# `connected` or `disconnected`. For `in-progress` Rooms the default Status is
|
233
|
+
# `connected`, for `completed` Rooms only `disconnected` Participants are
|
234
|
+
# returned.
|
237
235
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
238
236
|
def update(status: :unset)
|
239
237
|
data = Twilio::Values.of({'Status' => status, })
|
@@ -327,10 +325,8 @@ module Twilio
|
|
327
325
|
# Initialize the ParticipantInstance
|
328
326
|
# @param [Version] version Version that contains the resource
|
329
327
|
# @param [Hash] payload payload that contains response from Twilio
|
330
|
-
# @param [String] room_sid
|
331
|
-
#
|
332
|
-
# @param [String] sid A system-generated 34-character string that uniquely
|
333
|
-
# identifies this Participant.
|
328
|
+
# @param [String] room_sid The SID of the participant's room.
|
329
|
+
# @param [String] sid The SID of the RoomParticipant resource to fetch.
|
334
330
|
# @return [ParticipantInstance] ParticipantInstance
|
335
331
|
def initialize(version, payload, room_sid: nil, sid: nil)
|
336
332
|
super(version)
|
@@ -368,73 +364,73 @@ module Twilio
|
|
368
364
|
end
|
369
365
|
|
370
366
|
##
|
371
|
-
# @return [String]
|
367
|
+
# @return [String] The unique string that identifies the resource
|
372
368
|
def sid
|
373
369
|
@properties['sid']
|
374
370
|
end
|
375
371
|
|
376
372
|
##
|
377
|
-
# @return [String]
|
373
|
+
# @return [String] The SID of the participant's room
|
378
374
|
def room_sid
|
379
375
|
@properties['room_sid']
|
380
376
|
end
|
381
377
|
|
382
378
|
##
|
383
|
-
# @return [String] The
|
379
|
+
# @return [String] The SID of the Account that created the resource
|
384
380
|
def account_sid
|
385
381
|
@properties['account_sid']
|
386
382
|
end
|
387
383
|
|
388
384
|
##
|
389
|
-
# @return [participant.Status]
|
385
|
+
# @return [participant.Status] The status of the Participant
|
390
386
|
def status
|
391
387
|
@properties['status']
|
392
388
|
end
|
393
389
|
|
394
390
|
##
|
395
|
-
# @return [String] The
|
391
|
+
# @return [String] The string that identifies the resource's User
|
396
392
|
def identity
|
397
393
|
@properties['identity']
|
398
394
|
end
|
399
395
|
|
400
396
|
##
|
401
|
-
# @return [Time] The
|
397
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
402
398
|
def date_created
|
403
399
|
@properties['date_created']
|
404
400
|
end
|
405
401
|
|
406
402
|
##
|
407
|
-
# @return [Time] The
|
403
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
408
404
|
def date_updated
|
409
405
|
@properties['date_updated']
|
410
406
|
end
|
411
407
|
|
412
408
|
##
|
413
|
-
# @return [Time] The time of
|
409
|
+
# @return [Time] The time of participant connected to the room in ISO 8601 format
|
414
410
|
def start_time
|
415
411
|
@properties['start_time']
|
416
412
|
end
|
417
413
|
|
418
414
|
##
|
419
|
-
# @return [Time] The time
|
415
|
+
# @return [Time] The time when the participant disconnected from the room in ISO 8601 format
|
420
416
|
def end_time
|
421
417
|
@properties['end_time']
|
422
418
|
end
|
423
419
|
|
424
420
|
##
|
425
|
-
# @return [String] Duration of time in seconds
|
421
|
+
# @return [String] Duration of time in seconds the participant was connected
|
426
422
|
def duration
|
427
423
|
@properties['duration']
|
428
424
|
end
|
429
425
|
|
430
426
|
##
|
431
|
-
# @return [String] The absolute URL
|
427
|
+
# @return [String] The absolute URL of the resource
|
432
428
|
def url
|
433
429
|
@properties['url']
|
434
430
|
end
|
435
431
|
|
436
432
|
##
|
437
|
-
# @return [String] The
|
433
|
+
# @return [String] The URLs of related resources
|
438
434
|
def links
|
439
435
|
@properties['links']
|
440
436
|
end
|
@@ -448,7 +444,10 @@ module Twilio
|
|
448
444
|
|
449
445
|
##
|
450
446
|
# Update the ParticipantInstance
|
451
|
-
# @param [participant.Status] status
|
447
|
+
# @param [participant.Status] status The new status of the resource. Can be:
|
448
|
+
# `connected` or `disconnected`. For `in-progress` Rooms the default Status is
|
449
|
+
# `connected`, for `completed` Rooms only `disconnected` Participants are
|
450
|
+
# returned.
|
452
451
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
453
452
|
def update(status: :unset)
|
454
453
|
context.update(status: status, )
|
data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb
CHANGED
@@ -16,9 +16,10 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the PublishedTrackList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] room_sid
|
20
|
-
#
|
21
|
-
#
|
19
|
+
# @param [String] room_sid The SID of the Room resource where the track is
|
20
|
+
# published.
|
21
|
+
# @param [String] participant_sid The SID of the Participant resource with the
|
22
|
+
# published track.
|
22
23
|
# @return [PublishedTrackList] PublishedTrackList
|
23
24
|
def initialize(version, room_sid: nil, participant_sid: nil)
|
24
25
|
super(version)
|
@@ -155,11 +156,12 @@ module Twilio
|
|
155
156
|
##
|
156
157
|
# Initialize the PublishedTrackContext
|
157
158
|
# @param [Version] version Version that contains the resource
|
158
|
-
# @param [String] room_sid
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
159
|
+
# @param [String] room_sid The SID of the Room resource where the Track resource
|
160
|
+
# to fetch is published.
|
161
|
+
# @param [String] participant_sid The SID of the Participant resource with the
|
162
|
+
# published track to fetch.
|
163
|
+
# @param [String] sid The SID of the RoomParticipantPublishedTrack resource to
|
164
|
+
# fetch.
|
163
165
|
# @return [PublishedTrackContext] PublishedTrackContext
|
164
166
|
def initialize(version, room_sid, participant_sid, sid)
|
165
167
|
super(version)
|
@@ -210,11 +212,12 @@ module Twilio
|
|
210
212
|
# Initialize the PublishedTrackInstance
|
211
213
|
# @param [Version] version Version that contains the resource
|
212
214
|
# @param [Hash] payload payload that contains response from Twilio
|
213
|
-
# @param [String] room_sid
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
215
|
+
# @param [String] room_sid The SID of the Room resource where the track is
|
216
|
+
# published.
|
217
|
+
# @param [String] participant_sid The SID of the Participant resource with the
|
218
|
+
# published track.
|
219
|
+
# @param [String] sid The SID of the RoomParticipantPublishedTrack resource to
|
220
|
+
# fetch.
|
218
221
|
# @return [PublishedTrackInstance] PublishedTrackInstance
|
219
222
|
def initialize(version, payload, room_sid: nil, participant_sid: nil, sid: nil)
|
220
223
|
super(version)
|
@@ -258,55 +261,55 @@ module Twilio
|
|
258
261
|
end
|
259
262
|
|
260
263
|
##
|
261
|
-
# @return [String]
|
264
|
+
# @return [String] The unique string that identifies the resource
|
262
265
|
def sid
|
263
266
|
@properties['sid']
|
264
267
|
end
|
265
268
|
|
266
269
|
##
|
267
|
-
# @return [String]
|
270
|
+
# @return [String] The SID of the Participant resource with the published track
|
268
271
|
def participant_sid
|
269
272
|
@properties['participant_sid']
|
270
273
|
end
|
271
274
|
|
272
275
|
##
|
273
|
-
# @return [String]
|
276
|
+
# @return [String] The SID of the Room resource where the track is published
|
274
277
|
def room_sid
|
275
278
|
@properties['room_sid']
|
276
279
|
end
|
277
280
|
|
278
281
|
##
|
279
|
-
# @return [String]
|
282
|
+
# @return [String] The track name
|
280
283
|
def name
|
281
284
|
@properties['name']
|
282
285
|
end
|
283
286
|
|
284
287
|
##
|
285
|
-
# @return [Time] The date
|
288
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
286
289
|
def date_created
|
287
290
|
@properties['date_created']
|
288
291
|
end
|
289
292
|
|
290
293
|
##
|
291
|
-
# @return [Time] The date
|
294
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
292
295
|
def date_updated
|
293
296
|
@properties['date_updated']
|
294
297
|
end
|
295
298
|
|
296
299
|
##
|
297
|
-
# @return [Boolean]
|
300
|
+
# @return [Boolean] Whether the track is enabled
|
298
301
|
def enabled
|
299
302
|
@properties['enabled']
|
300
303
|
end
|
301
304
|
|
302
305
|
##
|
303
|
-
# @return [published_track.Kind]
|
306
|
+
# @return [published_track.Kind] The track type
|
304
307
|
def kind
|
305
308
|
@properties['kind']
|
306
309
|
end
|
307
310
|
|
308
311
|
##
|
309
|
-
# @return [String] The absolute URL
|
312
|
+
# @return [String] The absolute URL of the resource
|
310
313
|
def url
|
311
314
|
@properties['url']
|
312
315
|
end
|
@@ -18,8 +18,8 @@ module Twilio
|
|
18
18
|
##
|
19
19
|
# Initialize the SubscribeRulesList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String] room_sid The
|
22
|
-
# @param [String] participant_sid The
|
21
|
+
# @param [String] room_sid The SID of the Room resource for the Subscribe Rules
|
22
|
+
# @param [String] participant_sid The SID of the Participant resource for the
|
23
23
|
# Subscribe Rules.
|
24
24
|
# @return [SubscribeRulesList] SubscribeRulesList
|
25
25
|
def initialize(version, room_sid: nil, participant_sid: nil)
|
@@ -52,7 +52,7 @@ module Twilio
|
|
52
52
|
|
53
53
|
##
|
54
54
|
# Update the SubscribeRulesInstance
|
55
|
-
# @param [Hash] rules A JSON-encoded array of
|
55
|
+
# @param [Hash] rules A JSON-encoded array of subscribe rules. See the [Specifying
|
56
56
|
# Subscribe
|
57
57
|
# Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr)
|
58
58
|
# section for further information.
|
@@ -124,8 +124,8 @@ module Twilio
|
|
124
124
|
# Initialize the SubscribeRulesInstance
|
125
125
|
# @param [Version] version Version that contains the resource
|
126
126
|
# @param [Hash] payload payload that contains response from Twilio
|
127
|
-
# @param [String] room_sid The
|
128
|
-
# @param [String] participant_sid The
|
127
|
+
# @param [String] room_sid The SID of the Room resource for the Subscribe Rules
|
128
|
+
# @param [String] participant_sid The SID of the Participant resource for the
|
129
129
|
# Subscribe Rules.
|
130
130
|
# @return [SubscribeRulesInstance] SubscribeRulesInstance
|
131
131
|
def initialize(version, payload, room_sid: nil, participant_sid: nil)
|
@@ -142,31 +142,31 @@ module Twilio
|
|
142
142
|
end
|
143
143
|
|
144
144
|
##
|
145
|
-
# @return [String] The
|
145
|
+
# @return [String] The SID of the Participant resource for the Subscribe Rules
|
146
146
|
def participant_sid
|
147
147
|
@properties['participant_sid']
|
148
148
|
end
|
149
149
|
|
150
150
|
##
|
151
|
-
# @return [String] The
|
151
|
+
# @return [String] The SID of the Room resource for the Subscribe Rules
|
152
152
|
def room_sid
|
153
153
|
@properties['room_sid']
|
154
154
|
end
|
155
155
|
|
156
156
|
##
|
157
|
-
# @return [String] A collection of Subscribe Rules to include or exclude matching
|
157
|
+
# @return [String] A collection of Subscribe Rules that describe how to include or exclude matching tracks
|
158
158
|
def rules
|
159
159
|
@properties['rules']
|
160
160
|
end
|
161
161
|
|
162
162
|
##
|
163
|
-
# @return [Time] The date
|
163
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
164
164
|
def date_created
|
165
165
|
@properties['date_created']
|
166
166
|
end
|
167
167
|
|
168
168
|
##
|
169
|
-
# @return [Time] The date
|
169
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
170
170
|
def date_updated
|
171
171
|
@properties['date_updated']
|
172
172
|
end
|
data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb
CHANGED
@@ -16,9 +16,9 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the SubscribedTrackList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] room_sid
|
20
|
-
# @param [String] participant_sid
|
21
|
-
#
|
19
|
+
# @param [String] room_sid The SID of the room where the track is published.
|
20
|
+
# @param [String] participant_sid The SID of the participant that subscribes to
|
21
|
+
# the track.
|
22
22
|
# @return [SubscribedTrackList] SubscribedTrackList
|
23
23
|
def initialize(version, room_sid: nil, participant_sid: nil)
|
24
24
|
super(version)
|
@@ -155,11 +155,12 @@ module Twilio
|
|
155
155
|
##
|
156
156
|
# Initialize the SubscribedTrackContext
|
157
157
|
# @param [Version] version Version that contains the resource
|
158
|
-
# @param [String] room_sid
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
158
|
+
# @param [String] room_sid The SID of the Room where the Track resource to fetch
|
159
|
+
# is subscribed.
|
160
|
+
# @param [String] participant_sid The SID of the participant that subscribes to
|
161
|
+
# the Track resource to fetch.
|
162
|
+
# @param [String] sid The SID of the RoomParticipantSubscribedTrack resource to
|
163
|
+
# fetch.
|
163
164
|
# @return [SubscribedTrackContext] SubscribedTrackContext
|
164
165
|
def initialize(version, room_sid, participant_sid, sid)
|
165
166
|
super(version)
|
@@ -210,11 +211,11 @@ module Twilio
|
|
210
211
|
# Initialize the SubscribedTrackInstance
|
211
212
|
# @param [Version] version Version that contains the resource
|
212
213
|
# @param [Hash] payload payload that contains response from Twilio
|
213
|
-
# @param [String] room_sid
|
214
|
-
# @param [String] participant_sid
|
215
|
-
#
|
216
|
-
# @param [String] sid
|
217
|
-
#
|
214
|
+
# @param [String] room_sid The SID of the room where the track is published.
|
215
|
+
# @param [String] participant_sid The SID of the participant that subscribes to
|
216
|
+
# the track.
|
217
|
+
# @param [String] sid The SID of the RoomParticipantSubscribedTrack resource to
|
218
|
+
# fetch.
|
218
219
|
# @return [SubscribedTrackInstance] SubscribedTrackInstance
|
219
220
|
def initialize(version, payload, room_sid: nil, participant_sid: nil, sid: nil)
|
220
221
|
super(version)
|
@@ -259,61 +260,61 @@ module Twilio
|
|
259
260
|
end
|
260
261
|
|
261
262
|
##
|
262
|
-
# @return [String]
|
263
|
+
# @return [String] The unique string that identifies the resource
|
263
264
|
def sid
|
264
265
|
@properties['sid']
|
265
266
|
end
|
266
267
|
|
267
268
|
##
|
268
|
-
# @return [String]
|
269
|
+
# @return [String] The SID of the participant that subscribes to the track
|
269
270
|
def participant_sid
|
270
271
|
@properties['participant_sid']
|
271
272
|
end
|
272
273
|
|
273
274
|
##
|
274
|
-
# @return [String]
|
275
|
+
# @return [String] The SID of the participant that publishes the track
|
275
276
|
def publisher_sid
|
276
277
|
@properties['publisher_sid']
|
277
278
|
end
|
278
279
|
|
279
280
|
##
|
280
|
-
# @return [String]
|
281
|
+
# @return [String] The SID of the room where the track is published
|
281
282
|
def room_sid
|
282
283
|
@properties['room_sid']
|
283
284
|
end
|
284
285
|
|
285
286
|
##
|
286
|
-
# @return [String]
|
287
|
+
# @return [String] The track name
|
287
288
|
def name
|
288
289
|
@properties['name']
|
289
290
|
end
|
290
291
|
|
291
292
|
##
|
292
|
-
# @return [Time] The date
|
293
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
293
294
|
def date_created
|
294
295
|
@properties['date_created']
|
295
296
|
end
|
296
297
|
|
297
298
|
##
|
298
|
-
# @return [Time] The date
|
299
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
299
300
|
def date_updated
|
300
301
|
@properties['date_updated']
|
301
302
|
end
|
302
303
|
|
303
304
|
##
|
304
|
-
# @return [Boolean]
|
305
|
+
# @return [Boolean] Whether the track is enabled
|
305
306
|
def enabled
|
306
307
|
@properties['enabled']
|
307
308
|
end
|
308
309
|
|
309
310
|
##
|
310
|
-
# @return [subscribed_track.Kind]
|
311
|
+
# @return [subscribed_track.Kind] The track type
|
311
312
|
def kind
|
312
313
|
@properties['kind']
|
313
314
|
end
|
314
315
|
|
315
316
|
##
|
316
|
-
# @return [String] The absolute URL
|
317
|
+
# @return [String] The absolute URL of the resource
|
317
318
|
def url
|
318
319
|
@properties['url']
|
319
320
|
end
|