twilio-ruby 5.27.0 → 5.27.1
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.
- 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
|
@@ -26,30 +26,38 @@ module Twilio
|
|
|
26
26
|
##
|
|
27
27
|
# Retrieve a single page of RoomInstance records from the API.
|
|
28
28
|
# Request is executed immediately.
|
|
29
|
-
# @param [Boolean] enable_turn Deprecated.
|
|
30
|
-
# TURN service](https://www.twilio.com/stun-turn). TURN service is used
|
|
31
|
-
# direct peer-to-peer media connections cannot be established due to firewall
|
|
32
|
-
# restrictions. This setting only applies to
|
|
33
|
-
# @param [room.RoomType] type
|
|
34
|
-
# or `group`.
|
|
35
|
-
# @param [String] unique_name
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
29
|
+
# @param [Boolean] enable_turn Deprecated. Whether to enable [Twilio's Network
|
|
30
|
+
# Traversal TURN service](https://www.twilio.com/stun-turn). TURN service is used
|
|
31
|
+
# when direct peer-to-peer media connections cannot be established due to firewall
|
|
32
|
+
# restrictions. This setting only applies to rooms with type `peer-to-peer`.
|
|
33
|
+
# @param [room.RoomType] type The type of room. Can be: `peer-to-peer`,
|
|
34
|
+
# `group-small`, or `group`. The default value is `group`.
|
|
35
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
36
|
+
# identifies the resource. It can be used as a `room_sid` in place of the
|
|
37
|
+
# resource's `sid` in the URL to address the resource. This value is unique for
|
|
38
|
+
# `in-progress` rooms. SDK clients can use this name to connect to the room. REST
|
|
39
|
+
# API clients can use this name in place of the Room SID to interact with the room
|
|
40
|
+
# as long as the room is `in-progress`.
|
|
41
|
+
# @param [String] status_callback The URL we should call using the
|
|
42
|
+
# `status_callback_method` to send status information to your application on every
|
|
43
|
+
# room event. See [Status
|
|
44
|
+
# Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more
|
|
45
|
+
# info.
|
|
46
|
+
# @param [String] status_callback_method The HTTP method we should use to call
|
|
47
|
+
# `status_callback`. Can be `POST` or `GET`.
|
|
48
|
+
# @param [String] max_participants The maximum number of concurrent Participants
|
|
49
|
+
# allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small
|
|
50
|
+
# Group rooms can have up to 4 Participants. Group rooms can have up to 50
|
|
51
|
+
# Participants.
|
|
52
|
+
# @param [Boolean] record_participants_on_connect Whether to start recording when
|
|
53
|
+
# Participants connect. ***This feature is not available in `peer-to-peer`
|
|
54
|
+
# rooms.***
|
|
55
|
+
# @param [room.VideoCodec] video_codecs An array of the video codecs that are
|
|
56
|
+
# supported when publishing a track in the room. Can be: `VP8` and `H264`.
|
|
57
|
+
# ***This feature is not available in `peer-to-peer` rooms***
|
|
58
|
+
# @param [String] media_region The region for the media server in Group Rooms.
|
|
59
|
+
# Can be: one of the [available Media
|
|
60
|
+
# Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.***
|
|
53
61
|
# @return [RoomInstance] Newly created RoomInstance
|
|
54
62
|
def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset)
|
|
55
63
|
data = Twilio::Values.of({
|
|
@@ -77,12 +85,12 @@ module Twilio
|
|
|
77
85
|
# Lists RoomInstance records from the API as a list.
|
|
78
86
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
79
87
|
# memory before returning.
|
|
80
|
-
# @param [room.RoomStatus] status
|
|
81
|
-
# `in-progress` (default)
|
|
82
|
-
# @param [String] unique_name
|
|
83
|
-
# @param [Time] date_created_after
|
|
88
|
+
# @param [room.RoomStatus] status Read only the rooms with this status. Can be:
|
|
89
|
+
# `in-progress` (default) or `completed`
|
|
90
|
+
# @param [String] unique_name Read only rooms with the this `unique_name`.
|
|
91
|
+
# @param [Time] date_created_after Read only rooms that started on or after this
|
|
84
92
|
# date, given as `YYYY-MM-DD`.
|
|
85
|
-
# @param [Time] date_created_before
|
|
93
|
+
# @param [Time] date_created_before Read only rooms that started before this date,
|
|
86
94
|
# given as `YYYY-MM-DD`.
|
|
87
95
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
88
96
|
# guarantees to never return more than limit. Default is no limit
|
|
@@ -106,12 +114,12 @@ module Twilio
|
|
|
106
114
|
# Streams RoomInstance records from the API as an Enumerable.
|
|
107
115
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
108
116
|
# is reached.
|
|
109
|
-
# @param [room.RoomStatus] status
|
|
110
|
-
# `in-progress` (default)
|
|
111
|
-
# @param [String] unique_name
|
|
112
|
-
# @param [Time] date_created_after
|
|
117
|
+
# @param [room.RoomStatus] status Read only the rooms with this status. Can be:
|
|
118
|
+
# `in-progress` (default) or `completed`
|
|
119
|
+
# @param [String] unique_name Read only rooms with the this `unique_name`.
|
|
120
|
+
# @param [Time] date_created_after Read only rooms that started on or after this
|
|
113
121
|
# date, given as `YYYY-MM-DD`.
|
|
114
|
-
# @param [Time] date_created_before
|
|
122
|
+
# @param [Time] date_created_before Read only rooms that started before this date,
|
|
115
123
|
# given as `YYYY-MM-DD`.
|
|
116
124
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
117
125
|
# guarantees to never return more than limit. Default is no limit.
|
|
@@ -151,12 +159,12 @@ module Twilio
|
|
|
151
159
|
##
|
|
152
160
|
# Retrieve a single page of RoomInstance records from the API.
|
|
153
161
|
# Request is executed immediately.
|
|
154
|
-
# @param [room.RoomStatus] status
|
|
155
|
-
# `in-progress` (default)
|
|
156
|
-
# @param [String] unique_name
|
|
157
|
-
# @param [Time] date_created_after
|
|
162
|
+
# @param [room.RoomStatus] status Read only the rooms with this status. Can be:
|
|
163
|
+
# `in-progress` (default) or `completed`
|
|
164
|
+
# @param [String] unique_name Read only rooms with the this `unique_name`.
|
|
165
|
+
# @param [Time] date_created_after Read only rooms that started on or after this
|
|
158
166
|
# date, given as `YYYY-MM-DD`.
|
|
159
|
-
# @param [Time] date_created_before
|
|
167
|
+
# @param [Time] date_created_before Read only rooms that started before this date,
|
|
160
168
|
# given as `YYYY-MM-DD`.
|
|
161
169
|
# @param [String] page_token PageToken provided by the API
|
|
162
170
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
@@ -233,7 +241,7 @@ module Twilio
|
|
|
233
241
|
##
|
|
234
242
|
# Initialize the RoomContext
|
|
235
243
|
# @param [Version] version Version that contains the resource
|
|
236
|
-
# @param [String] sid The
|
|
244
|
+
# @param [String] sid The SID of the Room resource to fetch.
|
|
237
245
|
# @return [RoomContext] RoomContext
|
|
238
246
|
def initialize(version, sid)
|
|
239
247
|
super(version)
|
|
@@ -264,7 +272,8 @@ module Twilio
|
|
|
264
272
|
|
|
265
273
|
##
|
|
266
274
|
# Update the RoomInstance
|
|
267
|
-
# @param [room.RoomStatus] status
|
|
275
|
+
# @param [room.RoomStatus] status The new status of the resource. Set to
|
|
276
|
+
# `completed` to end the room.
|
|
268
277
|
# @return [RoomInstance] Updated RoomInstance
|
|
269
278
|
def update(status: nil)
|
|
270
279
|
data = Twilio::Values.of({'Status' => status, })
|
|
@@ -334,7 +343,7 @@ module Twilio
|
|
|
334
343
|
# Initialize the RoomInstance
|
|
335
344
|
# @param [Version] version Version that contains the resource
|
|
336
345
|
# @param [Hash] payload payload that contains response from Twilio
|
|
337
|
-
# @param [String] sid The
|
|
346
|
+
# @param [String] sid The SID of the Room resource to fetch.
|
|
338
347
|
# @return [RoomInstance] RoomInstance
|
|
339
348
|
def initialize(version, payload, sid: nil)
|
|
340
349
|
super(version)
|
|
@@ -378,109 +387,109 @@ module Twilio
|
|
|
378
387
|
end
|
|
379
388
|
|
|
380
389
|
##
|
|
381
|
-
# @return [String]
|
|
390
|
+
# @return [String] The unique string that identifies the resource
|
|
382
391
|
def sid
|
|
383
392
|
@properties['sid']
|
|
384
393
|
end
|
|
385
394
|
|
|
386
395
|
##
|
|
387
|
-
# @return [room.RoomStatus]
|
|
396
|
+
# @return [room.RoomStatus] The status of the room
|
|
388
397
|
def status
|
|
389
398
|
@properties['status']
|
|
390
399
|
end
|
|
391
400
|
|
|
392
401
|
##
|
|
393
|
-
# @return [Time] The
|
|
402
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
394
403
|
def date_created
|
|
395
404
|
@properties['date_created']
|
|
396
405
|
end
|
|
397
406
|
|
|
398
407
|
##
|
|
399
|
-
# @return [Time] The
|
|
408
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
|
400
409
|
def date_updated
|
|
401
410
|
@properties['date_updated']
|
|
402
411
|
end
|
|
403
412
|
|
|
404
413
|
##
|
|
405
|
-
# @return [String] The
|
|
414
|
+
# @return [String] The SID of the Account that created the resource
|
|
406
415
|
def account_sid
|
|
407
416
|
@properties['account_sid']
|
|
408
417
|
end
|
|
409
418
|
|
|
410
419
|
##
|
|
411
|
-
# @return [Boolean] Enable Twilio's Network Traversal TURN service
|
|
420
|
+
# @return [Boolean] Enable Twilio's Network Traversal TURN service
|
|
412
421
|
def enable_turn
|
|
413
422
|
@properties['enable_turn']
|
|
414
423
|
end
|
|
415
424
|
|
|
416
425
|
##
|
|
417
|
-
# @return [String]
|
|
426
|
+
# @return [String] An application-defined string that uniquely identifies the resource
|
|
418
427
|
def unique_name
|
|
419
428
|
@properties['unique_name']
|
|
420
429
|
end
|
|
421
430
|
|
|
422
431
|
##
|
|
423
|
-
# @return [String]
|
|
432
|
+
# @return [String] The URL to send status information to your application
|
|
424
433
|
def status_callback
|
|
425
434
|
@properties['status_callback']
|
|
426
435
|
end
|
|
427
436
|
|
|
428
437
|
##
|
|
429
|
-
# @return [String] HTTP method
|
|
438
|
+
# @return [String] The HTTP method we use to call status_callback
|
|
430
439
|
def status_callback_method
|
|
431
440
|
@properties['status_callback_method']
|
|
432
441
|
end
|
|
433
442
|
|
|
434
443
|
##
|
|
435
|
-
# @return [Time] The end time of the
|
|
444
|
+
# @return [Time] The UTC end time of the room in UTC ISO 8601 format
|
|
436
445
|
def end_time
|
|
437
446
|
@properties['end_time']
|
|
438
447
|
end
|
|
439
448
|
|
|
440
449
|
##
|
|
441
|
-
# @return [String] The duration of the
|
|
450
|
+
# @return [String] The duration of the room in seconds
|
|
442
451
|
def duration
|
|
443
452
|
@properties['duration']
|
|
444
453
|
end
|
|
445
454
|
|
|
446
455
|
##
|
|
447
|
-
# @return [room.RoomType]
|
|
456
|
+
# @return [room.RoomType] The type of room
|
|
448
457
|
def type
|
|
449
458
|
@properties['type']
|
|
450
459
|
end
|
|
451
460
|
|
|
452
461
|
##
|
|
453
|
-
# @return [String]
|
|
462
|
+
# @return [String] The maximum number of concurrent Participants allowed in the room
|
|
454
463
|
def max_participants
|
|
455
464
|
@properties['max_participants']
|
|
456
465
|
end
|
|
457
466
|
|
|
458
467
|
##
|
|
459
|
-
# @return [Boolean]
|
|
468
|
+
# @return [Boolean] Whether to start recording when Participants connect
|
|
460
469
|
def record_participants_on_connect
|
|
461
470
|
@properties['record_participants_on_connect']
|
|
462
471
|
end
|
|
463
472
|
|
|
464
473
|
##
|
|
465
|
-
# @return [room.VideoCodec]
|
|
474
|
+
# @return [room.VideoCodec] An array of the video codecs that are supported when publishing a track in the room
|
|
466
475
|
def video_codecs
|
|
467
476
|
@properties['video_codecs']
|
|
468
477
|
end
|
|
469
478
|
|
|
470
479
|
##
|
|
471
|
-
# @return [String]
|
|
480
|
+
# @return [String] The region for the media server in Group Rooms
|
|
472
481
|
def media_region
|
|
473
482
|
@properties['media_region']
|
|
474
483
|
end
|
|
475
484
|
|
|
476
485
|
##
|
|
477
|
-
# @return [String] The absolute URL
|
|
486
|
+
# @return [String] The absolute URL of the resource
|
|
478
487
|
def url
|
|
479
488
|
@properties['url']
|
|
480
489
|
end
|
|
481
490
|
|
|
482
491
|
##
|
|
483
|
-
# @return [String] The
|
|
492
|
+
# @return [String] The URLs of related resources
|
|
484
493
|
def links
|
|
485
494
|
@properties['links']
|
|
486
495
|
end
|
|
@@ -494,7 +503,8 @@ module Twilio
|
|
|
494
503
|
|
|
495
504
|
##
|
|
496
505
|
# Update the RoomInstance
|
|
497
|
-
# @param [room.RoomStatus] status
|
|
506
|
+
# @param [room.RoomStatus] status The new status of the resource. Set to
|
|
507
|
+
# `completed` to end the room.
|
|
498
508
|
# @return [RoomInstance] Updated RoomInstance
|
|
499
509
|
def update(status: nil)
|
|
500
510
|
context.update(status: status, )
|
|
@@ -15,7 +15,8 @@ module Twilio
|
|
|
15
15
|
##
|
|
16
16
|
# Initialize the RoomRecordingList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] room_sid The
|
|
18
|
+
# @param [String] room_sid The SID of the Room resource the recording is
|
|
19
|
+
# associated with.
|
|
19
20
|
# @return [RoomRecordingList] RoomRecordingList
|
|
20
21
|
def initialize(version, room_sid: nil)
|
|
21
22
|
super(version)
|
|
@@ -29,10 +30,13 @@ module Twilio
|
|
|
29
30
|
# Lists RoomRecordingInstance records from the API as a list.
|
|
30
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
31
32
|
# memory before returning.
|
|
32
|
-
# @param [room_recording.Status] status
|
|
33
|
-
#
|
|
34
|
-
# @param [
|
|
35
|
-
# @param [Time]
|
|
33
|
+
# @param [room_recording.Status] status Read only the recordings with this status.
|
|
34
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
|
35
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
|
36
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
|
37
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
38
|
+
# @param [Time] date_created_before Read only Recordings that started before this
|
|
39
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
36
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
37
41
|
# guarantees to never return more than limit. Default is no limit
|
|
38
42
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -55,10 +59,13 @@ module Twilio
|
|
|
55
59
|
# Streams RoomRecordingInstance records from the API as an Enumerable.
|
|
56
60
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
57
61
|
# is reached.
|
|
58
|
-
# @param [room_recording.Status] status
|
|
59
|
-
#
|
|
60
|
-
# @param [
|
|
61
|
-
# @param [Time]
|
|
62
|
+
# @param [room_recording.Status] status Read only the recordings with this status.
|
|
63
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
|
64
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
|
65
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
|
66
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
67
|
+
# @param [Time] date_created_before Read only Recordings that started before this
|
|
68
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
62
69
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
63
70
|
# guarantees to never return more than limit. Default is no limit.
|
|
64
71
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -97,10 +104,13 @@ module Twilio
|
|
|
97
104
|
##
|
|
98
105
|
# Retrieve a single page of RoomRecordingInstance records from the API.
|
|
99
106
|
# Request is executed immediately.
|
|
100
|
-
# @param [room_recording.Status] status
|
|
101
|
-
#
|
|
102
|
-
# @param [
|
|
103
|
-
# @param [Time]
|
|
107
|
+
# @param [room_recording.Status] status Read only the recordings with this status.
|
|
108
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
|
109
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
|
110
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
|
111
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
112
|
+
# @param [Time] date_created_before Read only Recordings that started before this
|
|
113
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
|
|
104
114
|
# @param [String] page_token PageToken provided by the API
|
|
105
115
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
106
116
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -176,8 +186,9 @@ module Twilio
|
|
|
176
186
|
##
|
|
177
187
|
# Initialize the RoomRecordingContext
|
|
178
188
|
# @param [Version] version Version that contains the resource
|
|
179
|
-
# @param [String] room_sid The
|
|
180
|
-
#
|
|
189
|
+
# @param [String] room_sid The SID of the Room resource with the recording to
|
|
190
|
+
# fetch.
|
|
191
|
+
# @param [String] sid The SID of the RoomRecording resource to fetch.
|
|
181
192
|
# @return [RoomRecordingContext] RoomRecordingContext
|
|
182
193
|
def initialize(version, room_sid, sid)
|
|
183
194
|
super(version)
|
|
@@ -229,8 +240,9 @@ module Twilio
|
|
|
229
240
|
# Initialize the RoomRecordingInstance
|
|
230
241
|
# @param [Version] version Version that contains the resource
|
|
231
242
|
# @param [Hash] payload payload that contains response from Twilio
|
|
232
|
-
# @param [String] room_sid The
|
|
233
|
-
#
|
|
243
|
+
# @param [String] room_sid The SID of the Room resource the recording is
|
|
244
|
+
# associated with.
|
|
245
|
+
# @param [String] sid The SID of the RoomRecording resource to fetch.
|
|
234
246
|
# @return [RoomRecordingInstance] RoomRecordingInstance
|
|
235
247
|
def initialize(version, payload, room_sid: nil, sid: nil)
|
|
236
248
|
super(version)
|
|
@@ -272,97 +284,97 @@ module Twilio
|
|
|
272
284
|
end
|
|
273
285
|
|
|
274
286
|
##
|
|
275
|
-
# @return [String] The
|
|
287
|
+
# @return [String] The SID of the Account that created the resource
|
|
276
288
|
def account_sid
|
|
277
289
|
@properties['account_sid']
|
|
278
290
|
end
|
|
279
291
|
|
|
280
292
|
##
|
|
281
|
-
# @return [room_recording.Status] The status
|
|
293
|
+
# @return [room_recording.Status] The status of the recording
|
|
282
294
|
def status
|
|
283
295
|
@properties['status']
|
|
284
296
|
end
|
|
285
297
|
|
|
286
298
|
##
|
|
287
|
-
# @return [Time] The
|
|
299
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
|
288
300
|
def date_created
|
|
289
301
|
@properties['date_created']
|
|
290
302
|
end
|
|
291
303
|
|
|
292
304
|
##
|
|
293
|
-
# @return [String] The
|
|
305
|
+
# @return [String] The unique string that identifies the resource
|
|
294
306
|
def sid
|
|
295
307
|
@properties['sid']
|
|
296
308
|
end
|
|
297
309
|
|
|
298
310
|
##
|
|
299
|
-
# @return [String] The
|
|
311
|
+
# @return [String] The SID of the recording source
|
|
300
312
|
def source_sid
|
|
301
313
|
@properties['source_sid']
|
|
302
314
|
end
|
|
303
315
|
|
|
304
316
|
##
|
|
305
|
-
# @return [String] The size
|
|
317
|
+
# @return [String] The size of the recorded track in bytes
|
|
306
318
|
def size
|
|
307
319
|
@properties['size']
|
|
308
320
|
end
|
|
309
321
|
|
|
310
322
|
##
|
|
311
|
-
# @return [String] The
|
|
323
|
+
# @return [String] The absolute URL of the resource
|
|
312
324
|
def url
|
|
313
325
|
@properties['url']
|
|
314
326
|
end
|
|
315
327
|
|
|
316
328
|
##
|
|
317
|
-
# @return [room_recording.Type] The type
|
|
329
|
+
# @return [room_recording.Type] The recording's media type
|
|
318
330
|
def type
|
|
319
331
|
@properties['type']
|
|
320
332
|
end
|
|
321
333
|
|
|
322
334
|
##
|
|
323
|
-
# @return [String] The duration
|
|
335
|
+
# @return [String] The duration of the recording in seconds
|
|
324
336
|
def duration
|
|
325
337
|
@properties['duration']
|
|
326
338
|
end
|
|
327
339
|
|
|
328
340
|
##
|
|
329
|
-
# @return [room_recording.Format] The
|
|
341
|
+
# @return [room_recording.Format] The file format for the recording
|
|
330
342
|
def container_format
|
|
331
343
|
@properties['container_format']
|
|
332
344
|
end
|
|
333
345
|
|
|
334
346
|
##
|
|
335
|
-
# @return [room_recording.Codec] The codec
|
|
347
|
+
# @return [room_recording.Codec] The codec used for the recording
|
|
336
348
|
def codec
|
|
337
349
|
@properties['codec']
|
|
338
350
|
end
|
|
339
351
|
|
|
340
352
|
##
|
|
341
|
-
# @return [Hash]
|
|
353
|
+
# @return [Hash] A list of SIDs related to the Recording
|
|
342
354
|
def grouping_sids
|
|
343
355
|
@properties['grouping_sids']
|
|
344
356
|
end
|
|
345
357
|
|
|
346
358
|
##
|
|
347
|
-
# @return [String] The
|
|
359
|
+
# @return [String] The name that was given to the source track of the recording
|
|
348
360
|
def track_name
|
|
349
361
|
@properties['track_name']
|
|
350
362
|
end
|
|
351
363
|
|
|
352
364
|
##
|
|
353
|
-
# @return [String] The
|
|
365
|
+
# @return [String] The number of milliseconds between a point in time that is common to all rooms in a group and when the source room of the recording started
|
|
354
366
|
def offset
|
|
355
367
|
@properties['offset']
|
|
356
368
|
end
|
|
357
369
|
|
|
358
370
|
##
|
|
359
|
-
# @return [String] The
|
|
371
|
+
# @return [String] The SID of the Room resource the recording is associated with
|
|
360
372
|
def room_sid
|
|
361
373
|
@properties['room_sid']
|
|
362
374
|
end
|
|
363
375
|
|
|
364
376
|
##
|
|
365
|
-
# @return [String] The
|
|
377
|
+
# @return [String] The URLs of related resources
|
|
366
378
|
def links
|
|
367
379
|
@properties['links']
|
|
368
380
|
end
|