twilio-ruby 5.46.0 → 5.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +112 -0
- data/README.md +20 -6
- data/lib/twilio-ruby/rest/api.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +10 -8
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +14 -0
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +14 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
- data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
- data/lib/twilio-ruby/rest/client.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
- data/lib/twilio-ruby/rest/events/v1.rb +20 -16
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
- data/lib/twilio-ruby/rest/events/v1/sink.rb +6 -5
- data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +15 -8
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +133 -6
- data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
- data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/insights.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
- data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
- data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +10 -8
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
- data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
- data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
- data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
- data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +11 -1
- data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +4 -12
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -9
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/supersim.rb +9 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +41 -20
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +86 -13
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +371 -0
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +13 -32
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -23
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +38 -45
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -23
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +38 -47
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -23
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -6
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -8
- data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
- data/lib/twilio-ruby/rest/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
- data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
- data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +4 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
- data/lib/twilio-ruby/rest/video/v1.rb +20 -16
- data/lib/twilio-ruby/rest/video/v1/room.rb +4 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +0 -6
- data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
- data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
- data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +6 -2
- data/spec/integration/bulkexports/v1/export/job_spec.rb +3 -1
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +134 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +20 -0
- data/spec/integration/supersim/v1/sms_command_spec.rb +184 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +3 -1
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
- data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
- data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
- data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
- data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
- data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
- data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
- data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
- data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
- data/spec/integration/video/v1/room_spec.rb +39 -0
- metadata +52 -2
@@ -11,8 +11,6 @@ module Twilio
|
|
11
11
|
class Sync < Domain
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
16
14
|
class SyncMapList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the SyncMapList
|
@@ -36,11 +34,9 @@ module Twilio
|
|
36
34
|
# URL path to address the resource.
|
37
35
|
# @param [String] ttl An alias for `collection_ttl`. If both parameters are
|
38
36
|
# provided, this value is ignored.
|
39
|
-
# @param [String] collection_ttl How long, in
|
40
|
-
#
|
41
|
-
#
|
42
|
-
# will be deleted automatically after it expires, but there can be a delay between
|
43
|
-
# the expiration time and the resources's deletion.
|
37
|
+
# @param [String] collection_ttl How long, {in
|
38
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
39
|
+
# the Sync Map expires (time-to-live) and is deleted.
|
44
40
|
# @return [SyncMapInstance] Created SyncMapInstance
|
45
41
|
def create(unique_name: :unset, ttl: :unset, collection_ttl: :unset)
|
46
42
|
data = Twilio::Values.of({
|
@@ -141,8 +137,6 @@ module Twilio
|
|
141
137
|
end
|
142
138
|
end
|
143
139
|
|
144
|
-
##
|
145
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
146
140
|
class SyncMapPage < Page
|
147
141
|
##
|
148
142
|
# Initialize the SyncMapPage
|
@@ -172,8 +166,6 @@ module Twilio
|
|
172
166
|
end
|
173
167
|
end
|
174
168
|
|
175
|
-
##
|
176
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
177
169
|
class SyncMapContext < InstanceContext
|
178
170
|
##
|
179
171
|
# Initialize the SyncMapContext
|
@@ -216,11 +208,9 @@ module Twilio
|
|
216
208
|
# Update the SyncMapInstance
|
217
209
|
# @param [String] ttl An alias for `collection_ttl`. If both parameters are
|
218
210
|
# provided, this value is ignored.
|
219
|
-
# @param [String] collection_ttl How long, in
|
220
|
-
#
|
221
|
-
#
|
222
|
-
# will be deleted automatically after it expires, but there can be a delay between
|
223
|
-
# the expiration time and the resources's deletion.
|
211
|
+
# @param [String] collection_ttl How long, {in
|
212
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
213
|
+
# the Sync Map expires (time-to-live) and is deleted.
|
224
214
|
# @return [SyncMapInstance] Updated SyncMapInstance
|
225
215
|
def update(ttl: :unset, collection_ttl: :unset)
|
226
216
|
data = Twilio::Values.of({'Ttl' => ttl, 'CollectionTtl' => collection_ttl, })
|
@@ -289,8 +279,6 @@ module Twilio
|
|
289
279
|
end
|
290
280
|
end
|
291
281
|
|
292
|
-
##
|
293
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
294
282
|
class SyncMapInstance < InstanceResource
|
295
283
|
##
|
296
284
|
# Initialize the SyncMapInstance
|
@@ -420,11 +408,9 @@ module Twilio
|
|
420
408
|
# Update the SyncMapInstance
|
421
409
|
# @param [String] ttl An alias for `collection_ttl`. If both parameters are
|
422
410
|
# provided, this value is ignored.
|
423
|
-
# @param [String] collection_ttl How long, in
|
424
|
-
#
|
425
|
-
#
|
426
|
-
# will be deleted automatically after it expires, but there can be a delay between
|
427
|
-
# the expiration time and the resources's deletion.
|
411
|
+
# @param [String] collection_ttl How long, {in
|
412
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
413
|
+
# the Sync Map expires (time-to-live) and is deleted.
|
428
414
|
# @return [SyncMapInstance] Updated SyncMapInstance
|
429
415
|
def update(ttl: :unset, collection_ttl: :unset)
|
430
416
|
context.update(ttl: ttl, collection_ttl: collection_ttl, )
|
@@ -12,8 +12,6 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class SyncMapContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class SyncMapItemList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the SyncMapItemList
|
@@ -39,17 +37,12 @@ module Twilio
|
|
39
37
|
# object that the Map Item stores. Can be up to 16 KiB in length.
|
40
38
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
41
39
|
# this value is ignored.
|
42
|
-
# @param [String] item_ttl How long, in
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0
|
49
|
-
# to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
|
50
|
-
# Map does not expire. The Sync Map will be deleted automatically after it
|
51
|
-
# expires, but there can be a delay between the expiration time and the
|
52
|
-
# resources's deletion.
|
40
|
+
# @param [String] item_ttl How long, {in
|
41
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
42
|
+
# the Map Item expires (time-to-live) and is deleted.
|
43
|
+
# @param [String] collection_ttl How long, {in
|
44
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
45
|
+
# the Map Item's parent Sync Map expires (time-to-live) and is deleted.
|
53
46
|
# @return [SyncMapItemInstance] Created SyncMapItemInstance
|
54
47
|
def create(key: nil, data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
|
55
48
|
data = Twilio::Values.of({
|
@@ -193,8 +186,6 @@ module Twilio
|
|
193
186
|
end
|
194
187
|
end
|
195
188
|
|
196
|
-
##
|
197
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
198
189
|
class SyncMapItemPage < Page
|
199
190
|
##
|
200
191
|
# Initialize the SyncMapItemPage
|
@@ -229,8 +220,6 @@ module Twilio
|
|
229
220
|
end
|
230
221
|
end
|
231
222
|
|
232
|
-
##
|
233
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
234
223
|
class SyncMapItemContext < InstanceContext
|
235
224
|
##
|
236
225
|
# Initialize the SyncMapItemContext
|
@@ -267,7 +256,10 @@ module Twilio
|
|
267
256
|
|
268
257
|
##
|
269
258
|
# Delete the SyncMapItemInstance
|
270
|
-
# @param [String] if_match
|
259
|
+
# @param [String] if_match If provided, applies this mutation if (and only if) the
|
260
|
+
# “revision” field of this {map item] matches the provided value. This matches the
|
261
|
+
# semantics of (and is implemented with) the HTTP [If-Match
|
262
|
+
# header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
|
271
263
|
# @return [Boolean] true if delete succeeds, false otherwise
|
272
264
|
def delete(if_match: :unset)
|
273
265
|
headers = Twilio::Values.of({'If-Match' => if_match, })
|
@@ -281,19 +273,18 @@ module Twilio
|
|
281
273
|
# object that the Map Item stores. Can be up to 16 KiB in length.
|
282
274
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
283
275
|
# this value is ignored.
|
284
|
-
# @param [String] item_ttl How long, in
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
#
|
289
|
-
#
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
# @param [String] if_match The If-Match HTTP request header
|
276
|
+
# @param [String] item_ttl How long, {in
|
277
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
278
|
+
# the Map Item expires (time-to-live) and is deleted.
|
279
|
+
# @param [String] collection_ttl How long, {in
|
280
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
281
|
+
# the Map Item's parent Sync Map expires (time-to-live) and is deleted. This
|
282
|
+
# parameter can only be used when the Map Item's `data` or `ttl` is updated in the
|
283
|
+
# same request.
|
284
|
+
# @param [String] if_match If provided, applies this mutation if (and only if) the
|
285
|
+
# “revision” field of this {map item] matches the provided value. This matches the
|
286
|
+
# semantics of (and is implemented with) the HTTP [If-Match
|
287
|
+
# header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
|
297
288
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
298
289
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
|
299
290
|
data = Twilio::Values.of({
|
@@ -330,8 +321,6 @@ module Twilio
|
|
330
321
|
end
|
331
322
|
end
|
332
323
|
|
333
|
-
##
|
334
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
335
324
|
class SyncMapItemInstance < InstanceResource
|
336
325
|
##
|
337
326
|
# Initialize the SyncMapItemInstance
|
@@ -457,7 +446,10 @@ module Twilio
|
|
457
446
|
|
458
447
|
##
|
459
448
|
# Delete the SyncMapItemInstance
|
460
|
-
# @param [String] if_match
|
449
|
+
# @param [String] if_match If provided, applies this mutation if (and only if) the
|
450
|
+
# “revision” field of this {map item] matches the provided value. This matches the
|
451
|
+
# semantics of (and is implemented with) the HTTP [If-Match
|
452
|
+
# header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
|
461
453
|
# @return [Boolean] true if delete succeeds, false otherwise
|
462
454
|
def delete(if_match: :unset)
|
463
455
|
context.delete(if_match: if_match, )
|
@@ -469,19 +461,18 @@ module Twilio
|
|
469
461
|
# object that the Map Item stores. Can be up to 16 KiB in length.
|
470
462
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
471
463
|
# this value is ignored.
|
472
|
-
# @param [String] item_ttl How long, in
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
# @param [String] if_match The If-Match HTTP request header
|
464
|
+
# @param [String] item_ttl How long, {in
|
465
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
466
|
+
# the Map Item expires (time-to-live) and is deleted.
|
467
|
+
# @param [String] collection_ttl How long, {in
|
468
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
469
|
+
# the Map Item's parent Sync Map expires (time-to-live) and is deleted. This
|
470
|
+
# parameter can only be used when the Map Item's `data` or `ttl` is updated in the
|
471
|
+
# same request.
|
472
|
+
# @param [String] if_match If provided, applies this mutation if (and only if) the
|
473
|
+
# “revision” field of this {map item] matches the provided value. This matches the
|
474
|
+
# semantics of (and is implemented with) the HTTP [If-Match
|
475
|
+
# header}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match].
|
485
476
|
# @return [SyncMapItemInstance] Updated SyncMapItemInstance
|
486
477
|
def update(data: :unset, ttl: :unset, item_ttl: :unset, collection_ttl: :unset, if_match: :unset)
|
487
478
|
context.update(
|
@@ -12,8 +12,6 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class SyncMapContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class SyncMapPermissionList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the SyncMapPermissionList
|
@@ -118,8 +116,6 @@ module Twilio
|
|
118
116
|
end
|
119
117
|
end
|
120
118
|
|
121
|
-
##
|
122
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
123
119
|
class SyncMapPermissionPage < Page
|
124
120
|
##
|
125
121
|
# Initialize the SyncMapPermissionPage
|
@@ -154,8 +150,6 @@ module Twilio
|
|
154
150
|
end
|
155
151
|
end
|
156
152
|
|
157
|
-
##
|
158
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
159
153
|
class SyncMapPermissionContext < InstanceContext
|
160
154
|
##
|
161
155
|
# Initialize the SyncMapPermissionContext
|
@@ -236,8 +230,6 @@ module Twilio
|
|
236
230
|
end
|
237
231
|
end
|
238
232
|
|
239
|
-
##
|
240
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
241
233
|
class SyncMapPermissionInstance < InstanceResource
|
242
234
|
##
|
243
235
|
# Initialize the SyncMapPermissionInstance
|
@@ -11,8 +11,6 @@ module Twilio
|
|
11
11
|
class Sync < Domain
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
16
14
|
class SyncStreamList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the SyncStreamList
|
@@ -35,11 +33,9 @@ module Twilio
|
|
35
33
|
# identifies the resource. This value must be unique within its Service and it can
|
36
34
|
# be up to 320 characters long. The `unique_name` value can be used as an
|
37
35
|
# alternative to the `sid` in the URL path to address the resource.
|
38
|
-
# @param [String] ttl How long, in
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# deleted automatically after it expires, but there can be a delay between the
|
42
|
-
# expiration time and the resources's deletion.
|
36
|
+
# @param [String] ttl How long, {in
|
37
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
38
|
+
# the Stream expires and is deleted (time-to-live).
|
43
39
|
# @return [SyncStreamInstance] Created SyncStreamInstance
|
44
40
|
def create(unique_name: :unset, ttl: :unset)
|
45
41
|
data = Twilio::Values.of({'UniqueName' => unique_name, 'Ttl' => ttl, })
|
@@ -136,8 +132,6 @@ module Twilio
|
|
136
132
|
end
|
137
133
|
end
|
138
134
|
|
139
|
-
##
|
140
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
141
135
|
class SyncStreamPage < Page
|
142
136
|
##
|
143
137
|
# Initialize the SyncStreamPage
|
@@ -167,8 +161,6 @@ module Twilio
|
|
167
161
|
end
|
168
162
|
end
|
169
163
|
|
170
|
-
##
|
171
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
172
164
|
class SyncStreamContext < InstanceContext
|
173
165
|
##
|
174
166
|
# Initialize the SyncStreamContext
|
@@ -212,11 +204,9 @@ module Twilio
|
|
212
204
|
|
213
205
|
##
|
214
206
|
# Update the SyncStreamInstance
|
215
|
-
# @param [String] ttl How long, in
|
216
|
-
#
|
217
|
-
#
|
218
|
-
# deleted automatically after it expires, but there can be a delay between the
|
219
|
-
# expiration time and the resources's deletion.
|
207
|
+
# @param [String] ttl How long, {in
|
208
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
209
|
+
# the Stream expires and is deleted (time-to-live).
|
220
210
|
# @return [SyncStreamInstance] Updated SyncStreamInstance
|
221
211
|
def update(ttl: :unset)
|
222
212
|
data = Twilio::Values.of({'Ttl' => ttl, })
|
@@ -262,8 +252,6 @@ module Twilio
|
|
262
252
|
end
|
263
253
|
end
|
264
254
|
|
265
|
-
##
|
266
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
267
255
|
class SyncStreamInstance < InstanceResource
|
268
256
|
##
|
269
257
|
# Initialize the SyncStreamInstance
|
@@ -383,11 +371,9 @@ module Twilio
|
|
383
371
|
|
384
372
|
##
|
385
373
|
# Update the SyncStreamInstance
|
386
|
-
# @param [String] ttl How long, in
|
387
|
-
#
|
388
|
-
#
|
389
|
-
# deleted automatically after it expires, but there can be a delay between the
|
390
|
-
# expiration time and the resources's deletion.
|
374
|
+
# @param [String] ttl How long, {in
|
375
|
+
# seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
|
376
|
+
# the Stream expires and is deleted (time-to-live).
|
391
377
|
# @return [SyncStreamInstance] Updated SyncStreamInstance
|
392
378
|
def update(ttl: :unset)
|
393
379
|
context.update(ttl: ttl, )
|
@@ -12,8 +12,6 @@ module Twilio
|
|
12
12
|
class V1 < Version
|
13
13
|
class ServiceContext < InstanceContext
|
14
14
|
class SyncStreamContext < InstanceContext
|
15
|
-
##
|
16
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
17
15
|
class StreamMessageList < ListResource
|
18
16
|
##
|
19
17
|
# Initialize the StreamMessageList
|
@@ -57,8 +55,6 @@ module Twilio
|
|
57
55
|
end
|
58
56
|
end
|
59
57
|
|
60
|
-
##
|
61
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
62
58
|
class StreamMessagePage < Page
|
63
59
|
##
|
64
60
|
# Initialize the StreamMessagePage
|
@@ -93,8 +89,6 @@ module Twilio
|
|
93
89
|
end
|
94
90
|
end
|
95
91
|
|
96
|
-
##
|
97
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
98
92
|
class StreamMessageInstance < InstanceResource
|
99
93
|
##
|
100
94
|
# Initialize the StreamMessageInstance
|
@@ -24,11 +24,12 @@ module Twilio
|
|
24
24
|
# @return [Twilio::REST::Taskrouter::V1::WorkspaceList]
|
25
25
|
def workspaces(sid=:unset)
|
26
26
|
if sid.nil?
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
raise ArgumentError, 'sid cannot be nil'
|
28
|
+
end
|
29
|
+
if sid == :unset
|
30
|
+
@workspaces ||= WorkspaceList.new self
|
30
31
|
else
|
31
|
-
|
32
|
+
WorkspaceContext.new(self, sid)
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -223,10 +223,10 @@ module Twilio
|
|
223
223
|
|
224
224
|
##
|
225
225
|
# Create the TaskInstance
|
226
|
-
# @param [String] timeout The amount of time in seconds the new task
|
227
|
-
#
|
228
|
-
# is 24 hours (86,400 seconds). On timeout, the `task.canceled`
|
229
|
-
# with description `Task TTL Exceeded`.
|
226
|
+
# @param [String] timeout The amount of time in seconds the new task can live
|
227
|
+
# before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds).
|
228
|
+
# The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled`
|
229
|
+
# event will fire with description `Task TTL Exceeded`.
|
230
230
|
# @param [String] priority The priority to assign the new task and override the
|
231
231
|
# default. When supplied, the new Task will have this priority unless it matches a
|
232
232
|
# Workflow Target with a Priority set. When not supplied, the new Task will have
|
@@ -337,8 +337,9 @@ module Twilio
|
|
337
337
|
# @param [String] task_channel When MultiTasking is enabled, specify the
|
338
338
|
# TaskChannel with the task to update. Can be the TaskChannel's SID or its
|
339
339
|
# `unique_name`, such as `voice`, `sms`, or `default`.
|
340
|
+
# @param [String] if_match The If-Match HTTP request header
|
340
341
|
# @return [TaskInstance] Updated TaskInstance
|
341
|
-
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset)
|
342
|
+
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset, if_match: :unset)
|
342
343
|
data = Twilio::Values.of({
|
343
344
|
'Attributes' => attributes,
|
344
345
|
'AssignmentStatus' => assignment_status,
|
@@ -346,8 +347,9 @@ module Twilio
|
|
346
347
|
'Priority' => priority,
|
347
348
|
'TaskChannel' => task_channel,
|
348
349
|
})
|
350
|
+
headers = Twilio::Values.of({'If-Match' => if_match, })
|
349
351
|
|
350
|
-
payload = @version.update('POST', @uri, data: data)
|
352
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
351
353
|
|
352
354
|
TaskInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], sid: @solution[:sid], )
|
353
355
|
end
|
@@ -539,7 +541,7 @@ module Twilio
|
|
539
541
|
end
|
540
542
|
|
541
543
|
##
|
542
|
-
# @return [String] The amount of time in seconds that the Task
|
544
|
+
# @return [String] The amount of time in seconds that the Task can live before being assigned
|
543
545
|
def timeout
|
544
546
|
@properties['timeout']
|
545
547
|
end
|
@@ -598,14 +600,16 @@ module Twilio
|
|
598
600
|
# @param [String] task_channel When MultiTasking is enabled, specify the
|
599
601
|
# TaskChannel with the task to update. Can be the TaskChannel's SID or its
|
600
602
|
# `unique_name`, such as `voice`, `sms`, or `default`.
|
603
|
+
# @param [String] if_match The If-Match HTTP request header
|
601
604
|
# @return [TaskInstance] Updated TaskInstance
|
602
|
-
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset)
|
605
|
+
def update(attributes: :unset, assignment_status: :unset, reason: :unset, priority: :unset, task_channel: :unset, if_match: :unset)
|
603
606
|
context.update(
|
604
607
|
attributes: attributes,
|
605
608
|
assignment_status: assignment_status,
|
606
609
|
reason: reason,
|
607
610
|
priority: priority,
|
608
611
|
task_channel: task_channel,
|
612
|
+
if_match: if_match,
|
609
613
|
)
|
610
614
|
end
|
611
615
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Trunking::V1::TrunkList]
|
26
26
|
def trunks(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@trunks ||= TrunkList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
TrunkContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|