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
@@ -95,19 +95,19 @@ module Twilio
|
|
95
95
|
##
|
96
96
|
# Retrieve a single page of CompositionSettingsInstance records from the API.
|
97
97
|
# Request is executed immediately.
|
98
|
-
# @param [String] friendly_name
|
99
|
-
# the console
|
100
|
-
# @param [String] aws_credentials_sid SID of the
|
101
|
-
# @param [String] encryption_key_sid SID of the Public Key resource
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
# `compositions
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# `false`, all
|
109
|
-
# @param [Boolean] encryption_enabled
|
110
|
-
#
|
98
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
99
|
+
# the resource and show to the user in the console
|
100
|
+
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
|
101
|
+
# @param [String] encryption_key_sid The SID of the Public Key resource to use for
|
102
|
+
# encryption.
|
103
|
+
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
104
|
+
# should be stored. We only support DNS-compliant URLs like
|
105
|
+
# `http://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions`, where
|
106
|
+
# `compositions` is the path in which you want the compositions to be stored.
|
107
|
+
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
108
|
+
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
109
|
+
# @param [Boolean] encryption_enabled Whether all compositions should be stored in
|
110
|
+
# an encrypted form. The default is `false`.
|
111
111
|
# @return [CompositionSettingsInstance] Newly created CompositionSettingsInstance
|
112
112
|
def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset)
|
113
113
|
data = Twilio::Values.of({
|
@@ -183,49 +183,49 @@ module Twilio
|
|
183
183
|
end
|
184
184
|
|
185
185
|
##
|
186
|
-
# @return [String] The
|
186
|
+
# @return [String] The SID of the Account that created the resource
|
187
187
|
def account_sid
|
188
188
|
@properties['account_sid']
|
189
189
|
end
|
190
190
|
|
191
191
|
##
|
192
|
-
# @return [String]
|
192
|
+
# @return [String] The string that you assigned to describe the resource
|
193
193
|
def friendly_name
|
194
194
|
@properties['friendly_name']
|
195
195
|
end
|
196
196
|
|
197
197
|
##
|
198
|
-
# @return [String] SID of the
|
198
|
+
# @return [String] The SID of the stored Credential resource
|
199
199
|
def aws_credentials_sid
|
200
200
|
@properties['aws_credentials_sid']
|
201
201
|
end
|
202
202
|
|
203
203
|
##
|
204
|
-
# @return [String] URL of the S3 bucket where the compositions
|
204
|
+
# @return [String] The URL of the AWS S3 bucket where the compositions are stored
|
205
205
|
def aws_s3_url
|
206
206
|
@properties['aws_s3_url']
|
207
207
|
end
|
208
208
|
|
209
209
|
##
|
210
|
-
# @return [Boolean]
|
210
|
+
# @return [Boolean] Whether all compositions are written to the aws_s3_url
|
211
211
|
def aws_storage_enabled
|
212
212
|
@properties['aws_storage_enabled']
|
213
213
|
end
|
214
214
|
|
215
215
|
##
|
216
|
-
# @return [String] SID of the Public Key resource
|
216
|
+
# @return [String] The SID of the Public Key resource used for encryption
|
217
217
|
def encryption_key_sid
|
218
218
|
@properties['encryption_key_sid']
|
219
219
|
end
|
220
220
|
|
221
221
|
##
|
222
|
-
# @return [Boolean]
|
222
|
+
# @return [Boolean] Whether all compositions are stored in an encrypted form
|
223
223
|
def encryption_enabled
|
224
224
|
@properties['encryption_enabled']
|
225
225
|
end
|
226
226
|
|
227
227
|
##
|
228
|
-
# @return [String] The
|
228
|
+
# @return [String] The absolute URL of the resource
|
229
229
|
def url
|
230
230
|
@properties['url']
|
231
231
|
end
|
@@ -240,19 +240,19 @@ module Twilio
|
|
240
240
|
##
|
241
241
|
# Retrieve a single page of CompositionSettingsInstance records from the API.
|
242
242
|
# Request is executed immediately.
|
243
|
-
# @param [String] friendly_name
|
244
|
-
# the console
|
245
|
-
# @param [String] aws_credentials_sid SID of the
|
246
|
-
# @param [String] encryption_key_sid SID of the Public Key resource
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# `compositions
|
251
|
-
#
|
252
|
-
#
|
253
|
-
# `false`, all
|
254
|
-
# @param [Boolean] encryption_enabled
|
255
|
-
#
|
243
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
244
|
+
# the resource and show to the user in the console
|
245
|
+
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
|
246
|
+
# @param [String] encryption_key_sid The SID of the Public Key resource to use for
|
247
|
+
# encryption.
|
248
|
+
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
249
|
+
# should be stored. We only support DNS-compliant URLs like
|
250
|
+
# `http://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions`, where
|
251
|
+
# `compositions` is the path in which you want the compositions to be stored.
|
252
|
+
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
253
|
+
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
254
|
+
# @param [Boolean] encryption_enabled Whether all compositions should be stored in
|
255
|
+
# an encrypted form. The default is `false`.
|
256
256
|
# @return [CompositionSettingsInstance] Newly created CompositionSettingsInstance
|
257
257
|
def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset)
|
258
258
|
context.create(
|
@@ -27,18 +27,18 @@ module Twilio
|
|
27
27
|
# Lists RecordingInstance records from the API as a list.
|
28
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
29
|
# memory before returning.
|
30
|
-
# @param [recording.Status] status
|
31
|
-
#
|
32
|
-
#
|
33
|
-
# @param [String] grouping_sid
|
34
|
-
# which may include a
|
35
|
-
# @param [Time] date_created_after
|
36
|
-
# this
|
37
|
-
#
|
38
|
-
# @param [Time] date_created_before
|
39
|
-
#
|
40
|
-
# `YYYY-MM-DDThh:mm:ssZ`.
|
41
|
-
# @param [recording.Type] media_type
|
30
|
+
# @param [recording.Status] status Read only the recordings that have this status.
|
31
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
32
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
33
|
+
# @param [String] grouping_sid Read only recordings with this `grouping_sid`,
|
34
|
+
# which may include a `participant_sid` and/or a `room_sid`.
|
35
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
36
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time
|
37
|
+
# zone.
|
38
|
+
# @param [Time] date_created_before Read only recordings that started before this
|
39
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone,
|
40
|
+
# given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`.
|
41
|
+
# @param [recording.Type] media_type Read only recordings that have this media
|
42
42
|
# type. Can be either `audio` or `video`.
|
43
43
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
44
44
|
# guarantees to never return more than limit. Default is no limit
|
@@ -64,18 +64,18 @@ module Twilio
|
|
64
64
|
# Streams RecordingInstance records from the API as an Enumerable.
|
65
65
|
# This operation lazily loads records as efficiently as possible until the limit
|
66
66
|
# is reached.
|
67
|
-
# @param [recording.Status] status
|
68
|
-
#
|
69
|
-
#
|
70
|
-
# @param [String] grouping_sid
|
71
|
-
# which may include a
|
72
|
-
# @param [Time] date_created_after
|
73
|
-
# this
|
74
|
-
#
|
75
|
-
# @param [Time] date_created_before
|
76
|
-
#
|
77
|
-
# `YYYY-MM-DDThh:mm:ssZ`.
|
78
|
-
# @param [recording.Type] media_type
|
67
|
+
# @param [recording.Status] status Read only the recordings that have this status.
|
68
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
69
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
70
|
+
# @param [String] grouping_sid Read only recordings with this `grouping_sid`,
|
71
|
+
# which may include a `participant_sid` and/or a `room_sid`.
|
72
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
73
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time
|
74
|
+
# zone.
|
75
|
+
# @param [Time] date_created_before Read only recordings that started before this
|
76
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone,
|
77
|
+
# given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`.
|
78
|
+
# @param [recording.Type] media_type Read only recordings that have this media
|
79
79
|
# type. Can be either `audio` or `video`.
|
80
80
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
81
81
|
# guarantees to never return more than limit. Default is no limit.
|
@@ -117,18 +117,18 @@ module Twilio
|
|
117
117
|
##
|
118
118
|
# Retrieve a single page of RecordingInstance records from the API.
|
119
119
|
# Request is executed immediately.
|
120
|
-
# @param [recording.Status] status
|
121
|
-
#
|
122
|
-
#
|
123
|
-
# @param [String] grouping_sid
|
124
|
-
# which may include a
|
125
|
-
# @param [Time] date_created_after
|
126
|
-
# this
|
127
|
-
#
|
128
|
-
# @param [Time] date_created_before
|
129
|
-
#
|
130
|
-
# `YYYY-MM-DDThh:mm:ssZ`.
|
131
|
-
# @param [recording.Type] media_type
|
120
|
+
# @param [recording.Status] status Read only the recordings that have this status.
|
121
|
+
# Can be: `processing`, `completed`, or `deleted`.
|
122
|
+
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
123
|
+
# @param [String] grouping_sid Read only recordings with this `grouping_sid`,
|
124
|
+
# which may include a `participant_sid` and/or a `room_sid`.
|
125
|
+
# @param [Time] date_created_after Read only recordings that started on or after
|
126
|
+
# this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time
|
127
|
+
# zone.
|
128
|
+
# @param [Time] date_created_before Read only recordings that started before this
|
129
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone,
|
130
|
+
# given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`.
|
131
|
+
# @param [recording.Type] media_type Read only recordings that have this media
|
132
132
|
# type. Can be either `audio` or `video`.
|
133
133
|
# @param [String] page_token PageToken provided by the API
|
134
134
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -207,8 +207,7 @@ module Twilio
|
|
207
207
|
##
|
208
208
|
# Initialize the RecordingContext
|
209
209
|
# @param [Version] version Version that contains the resource
|
210
|
-
# @param [String] sid The
|
211
|
-
# fetch.
|
210
|
+
# @param [String] sid The SID of the Recording resource to fetch.
|
212
211
|
# @return [RecordingContext] RecordingContext
|
213
212
|
def initialize(version, sid)
|
214
213
|
super(version)
|
@@ -260,8 +259,7 @@ module Twilio
|
|
260
259
|
# Initialize the RecordingInstance
|
261
260
|
# @param [Version] version Version that contains the resource
|
262
261
|
# @param [Hash] payload payload that contains response from Twilio
|
263
|
-
# @param [String] sid The
|
264
|
-
# fetch.
|
262
|
+
# @param [String] sid The SID of the Recording resource to fetch.
|
265
263
|
# @return [RecordingInstance] RecordingInstance
|
266
264
|
def initialize(version, payload, sid: nil)
|
267
265
|
super(version)
|
@@ -302,91 +300,91 @@ module Twilio
|
|
302
300
|
end
|
303
301
|
|
304
302
|
##
|
305
|
-
# @return [String]
|
303
|
+
# @return [String] The SID of the Account that created the resource
|
306
304
|
def account_sid
|
307
305
|
@properties['account_sid']
|
308
306
|
end
|
309
307
|
|
310
308
|
##
|
311
|
-
# @return [recording.Status] The status of the
|
309
|
+
# @return [recording.Status] The status of the recording
|
312
310
|
def status
|
313
311
|
@properties['status']
|
314
312
|
end
|
315
313
|
|
316
314
|
##
|
317
|
-
# @return [Time]
|
315
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
318
316
|
def date_created
|
319
317
|
@properties['date_created']
|
320
318
|
end
|
321
319
|
|
322
320
|
##
|
323
|
-
# @return [String]
|
321
|
+
# @return [String] The unique string that identifies the resource
|
324
322
|
def sid
|
325
323
|
@properties['sid']
|
326
324
|
end
|
327
325
|
|
328
326
|
##
|
329
|
-
# @return [String]
|
327
|
+
# @return [String] The SID of the recording source
|
330
328
|
def source_sid
|
331
329
|
@properties['source_sid']
|
332
330
|
end
|
333
331
|
|
334
332
|
##
|
335
|
-
# @return [String]
|
333
|
+
# @return [String] The size of the recorded track, in bytes
|
336
334
|
def size
|
337
335
|
@properties['size']
|
338
336
|
end
|
339
337
|
|
340
338
|
##
|
341
|
-
# @return [String] The absolute URL
|
339
|
+
# @return [String] The absolute URL of the resource
|
342
340
|
def url
|
343
341
|
@properties['url']
|
344
342
|
end
|
345
343
|
|
346
344
|
##
|
347
|
-
# @return [recording.Type]
|
345
|
+
# @return [recording.Type] The recording's media type
|
348
346
|
def type
|
349
347
|
@properties['type']
|
350
348
|
end
|
351
349
|
|
352
350
|
##
|
353
|
-
# @return [String]
|
351
|
+
# @return [String] The duration of the recording in seconds
|
354
352
|
def duration
|
355
353
|
@properties['duration']
|
356
354
|
end
|
357
355
|
|
358
356
|
##
|
359
|
-
# @return [recording.Format] The file format for
|
357
|
+
# @return [recording.Format] The file format for the recording
|
360
358
|
def container_format
|
361
359
|
@properties['container_format']
|
362
360
|
end
|
363
361
|
|
364
362
|
##
|
365
|
-
# @return [recording.Codec] The codec used to encode the track
|
363
|
+
# @return [recording.Codec] The codec used to encode the track
|
366
364
|
def codec
|
367
365
|
@properties['codec']
|
368
366
|
end
|
369
367
|
|
370
368
|
##
|
371
|
-
# @return [Hash] A list of
|
369
|
+
# @return [Hash] A list of SIDs related to the recording
|
372
370
|
def grouping_sids
|
373
371
|
@properties['grouping_sids']
|
374
372
|
end
|
375
373
|
|
376
374
|
##
|
377
|
-
# @return [String] The name that was given to the source track of
|
375
|
+
# @return [String] The name that was given to the source track of the recording
|
378
376
|
def track_name
|
379
377
|
@properties['track_name']
|
380
378
|
end
|
381
379
|
|
382
380
|
##
|
383
|
-
# @return [String]
|
381
|
+
# @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
|
384
382
|
def offset
|
385
383
|
@properties['offset']
|
386
384
|
end
|
387
385
|
|
388
386
|
##
|
389
|
-
# @return [String] The
|
387
|
+
# @return [String] The URLs of related resources
|
390
388
|
def links
|
391
389
|
@properties['links']
|
392
390
|
end
|
@@ -95,19 +95,19 @@ module Twilio
|
|
95
95
|
##
|
96
96
|
# Retrieve a single page of RecordingSettingsInstance records from the API.
|
97
97
|
# Request is executed immediately.
|
98
|
-
# @param [String] friendly_name
|
99
|
-
# the console
|
100
|
-
# @param [String] aws_credentials_sid SID of the
|
101
|
-
# @param [String] encryption_key_sid SID of the Public Key resource
|
102
|
-
#
|
103
|
-
#
|
98
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
99
|
+
# the resource and be shown to users in the console
|
100
|
+
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
|
101
|
+
# @param [String] encryption_key_sid The SID of the Public Key resource to use for
|
102
|
+
# encryption.
|
103
|
+
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
104
|
+
# should be stored. We only support DNS-compliant URLs like
|
104
105
|
# `http://<my-bucket>.s3-<aws-region>.amazonaws.com/recordings`, where
|
105
|
-
# `recordings` is the path
|
106
|
-
# @param [Boolean] aws_storage_enabled
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
# Recordings will be stored encrypted. Dafault value is `false`
|
106
|
+
# `recordings` is the path in which you want the recordings to be stored.
|
107
|
+
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
108
|
+
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
109
|
+
# @param [Boolean] encryption_enabled Whether all recordings should be stored in
|
110
|
+
# an encrypted form. The default is `false`.
|
111
111
|
# @return [RecordingSettingsInstance] Newly created RecordingSettingsInstance
|
112
112
|
def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset)
|
113
113
|
data = Twilio::Values.of({
|
@@ -183,49 +183,49 @@ module Twilio
|
|
183
183
|
end
|
184
184
|
|
185
185
|
##
|
186
|
-
# @return [String] The
|
186
|
+
# @return [String] The SID of the Account that created the resource
|
187
187
|
def account_sid
|
188
188
|
@properties['account_sid']
|
189
189
|
end
|
190
190
|
|
191
191
|
##
|
192
|
-
# @return [String]
|
192
|
+
# @return [String] The string that you assigned to describe the resource
|
193
193
|
def friendly_name
|
194
194
|
@properties['friendly_name']
|
195
195
|
end
|
196
196
|
|
197
197
|
##
|
198
|
-
# @return [String] SID of the
|
198
|
+
# @return [String] The SID of the stored Credential resource
|
199
199
|
def aws_credentials_sid
|
200
200
|
@properties['aws_credentials_sid']
|
201
201
|
end
|
202
202
|
|
203
203
|
##
|
204
|
-
# @return [String] URL of the S3 bucket where the recordings
|
204
|
+
# @return [String] The URL of the AWS S3 bucket where the recordings are stored
|
205
205
|
def aws_s3_url
|
206
206
|
@properties['aws_s3_url']
|
207
207
|
end
|
208
208
|
|
209
209
|
##
|
210
|
-
# @return [Boolean]
|
210
|
+
# @return [Boolean] Whether all recordings are written to the aws_s3_url
|
211
211
|
def aws_storage_enabled
|
212
212
|
@properties['aws_storage_enabled']
|
213
213
|
end
|
214
214
|
|
215
215
|
##
|
216
|
-
# @return [String] SID of the Public Key resource
|
216
|
+
# @return [String] The SID of the Public Key resource used for encryption
|
217
217
|
def encryption_key_sid
|
218
218
|
@properties['encryption_key_sid']
|
219
219
|
end
|
220
220
|
|
221
221
|
##
|
222
|
-
# @return [Boolean]
|
222
|
+
# @return [Boolean] Whether all recordings are stored in an encrypted form
|
223
223
|
def encryption_enabled
|
224
224
|
@properties['encryption_enabled']
|
225
225
|
end
|
226
226
|
|
227
227
|
##
|
228
|
-
# @return [String] The
|
228
|
+
# @return [String] The absolute URL of the resource
|
229
229
|
def url
|
230
230
|
@properties['url']
|
231
231
|
end
|
@@ -240,19 +240,19 @@ module Twilio
|
|
240
240
|
##
|
241
241
|
# Retrieve a single page of RecordingSettingsInstance records from the API.
|
242
242
|
# Request is executed immediately.
|
243
|
-
# @param [String] friendly_name
|
244
|
-
# the console
|
245
|
-
# @param [String] aws_credentials_sid SID of the
|
246
|
-
# @param [String] encryption_key_sid SID of the Public Key resource
|
247
|
-
#
|
248
|
-
#
|
243
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
244
|
+
# the resource and be shown to users in the console
|
245
|
+
# @param [String] aws_credentials_sid The SID of the stored Credential resource.
|
246
|
+
# @param [String] encryption_key_sid The SID of the Public Key resource to use for
|
247
|
+
# encryption.
|
248
|
+
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the recordings
|
249
|
+
# should be stored. We only support DNS-compliant URLs like
|
249
250
|
# `http://<my-bucket>.s3-<aws-region>.amazonaws.com/recordings`, where
|
250
|
-
# `recordings` is the path
|
251
|
-
# @param [Boolean] aws_storage_enabled
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# Recordings will be stored encrypted. Dafault value is `false`
|
251
|
+
# `recordings` is the path in which you want the recordings to be stored.
|
252
|
+
# @param [Boolean] aws_storage_enabled Whether all recordings should be written to
|
253
|
+
# the `aws_s3_url`. When `false`, all recordings are stored in our cloud.
|
254
|
+
# @param [Boolean] encryption_enabled Whether all recordings should be stored in
|
255
|
+
# an encrypted form. The default is `false`.
|
256
256
|
# @return [RecordingSettingsInstance] Newly created RecordingSettingsInstance
|
257
257
|
def create(friendly_name: nil, aws_credentials_sid: :unset, encryption_key_sid: :unset, aws_s3_url: :unset, aws_storage_enabled: :unset, encryption_enabled: :unset)
|
258
258
|
context.create(
|