twilio-ruby 5.45.1 → 5.46.0
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 +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +24 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +4 -4
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +6 -6
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +2 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -32
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +2 -2
|
@@ -343,7 +343,7 @@ module Twilio
|
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
##
|
|
346
|
-
# @return [String] A list of emails.
|
|
346
|
+
# @return [Array[String]] A list of emails.
|
|
347
347
|
def cc_emails
|
|
348
348
|
@properties['cc_emails']
|
|
349
349
|
end
|
|
@@ -379,7 +379,7 @@ module Twilio
|
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
##
|
|
382
|
-
# @return [String] List of IDs for ownership verification calls.
|
|
382
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
|
383
383
|
def verification_call_sids
|
|
384
384
|
@properties['verification_call_sids']
|
|
385
385
|
end
|
|
@@ -175,8 +175,8 @@ module Twilio
|
|
|
175
175
|
# @param [String] unique_name Optional. Provides a unique and addressable name to
|
|
176
176
|
# be assigned to this HostedNumberOrder, assigned by the developer, to be
|
|
177
177
|
# optionally used in addition to SID.
|
|
178
|
-
# @param [String] cc_emails Optional. A list of emails that the LOA
|
|
179
|
-
# this HostedNumberOrder will be carbon copied to.
|
|
178
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that the LOA
|
|
179
|
+
# document for this HostedNumberOrder will be carbon copied to.
|
|
180
180
|
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
|
181
181
|
# an SMS to the phone number. This will be copied onto the IncomingPhoneNumber
|
|
182
182
|
# resource.
|
|
@@ -315,8 +315,8 @@ module Twilio
|
|
|
315
315
|
# used in addition to SID.
|
|
316
316
|
# @param [String] email Email of the owner of this phone number that is being
|
|
317
317
|
# hosted.
|
|
318
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
|
319
|
-
# HostedNumberOrder will be carbon copied to.
|
|
318
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
|
319
|
+
# for this HostedNumberOrder will be carbon copied to.
|
|
320
320
|
# @param [hosted_number_order.Status] status User can only post to
|
|
321
321
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
|
322
322
|
# verification call or verification of ownership with a copy of a phone bill.
|
|
@@ -513,7 +513,7 @@ module Twilio
|
|
|
513
513
|
end
|
|
514
514
|
|
|
515
515
|
##
|
|
516
|
-
# @return [String] A list of emails.
|
|
516
|
+
# @return [Array[String]] A list of emails.
|
|
517
517
|
def cc_emails
|
|
518
518
|
@properties['cc_emails']
|
|
519
519
|
end
|
|
@@ -555,7 +555,7 @@ module Twilio
|
|
|
555
555
|
end
|
|
556
556
|
|
|
557
557
|
##
|
|
558
|
-
# @return [String] List of IDs for ownership verification calls.
|
|
558
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
|
559
559
|
def verification_call_sids
|
|
560
560
|
@properties['verification_call_sids']
|
|
561
561
|
end
|
|
@@ -583,8 +583,8 @@ module Twilio
|
|
|
583
583
|
# used in addition to SID.
|
|
584
584
|
# @param [String] email Email of the owner of this phone number that is being
|
|
585
585
|
# hosted.
|
|
586
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
|
587
|
-
# HostedNumberOrder will be carbon copied to.
|
|
586
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
|
587
|
+
# for this HostedNumberOrder will be carbon copied to.
|
|
588
588
|
# @param [hosted_number_order.Status] status User can only post to
|
|
589
589
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
|
590
590
|
# verification call or verification of ownership with a copy of a phone bill.
|
|
@@ -116,7 +116,7 @@ module Twilio
|
|
|
116
116
|
# @param [Boolean] voice_enabled The voice_enabled
|
|
117
117
|
# @param [Boolean] commands_enabled The commands_enabled
|
|
118
118
|
# @param [Boolean] national_roaming_enabled The national_roaming_enabled
|
|
119
|
-
# @param [String] international_roaming The international_roaming
|
|
119
|
+
# @param [Array[String]] international_roaming The international_roaming
|
|
120
120
|
# @return [RatePlanInstance] Created RatePlanInstance
|
|
121
121
|
def create(unique_name: :unset, friendly_name: :unset, data_enabled: :unset, data_limit: :unset, data_metering: :unset, messaging_enabled: :unset, voice_enabled: :unset, commands_enabled: :unset, national_roaming_enabled: :unset, international_roaming: :unset)
|
|
122
122
|
data = Twilio::Values.of({
|
|
@@ -342,7 +342,7 @@ module Twilio
|
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
##
|
|
345
|
-
# @return [String] The international_roaming
|
|
345
|
+
# @return [Array[String]] The international_roaming
|
|
346
346
|
def international_roaming
|
|
347
347
|
@properties['international_roaming']
|
|
348
348
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundSMSPrice records
|
|
234
|
+
# @return [Array[String]] The list of OutboundSMSPrice records
|
|
235
235
|
def outbound_sms_prices
|
|
236
236
|
@properties['outbound_sms_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundPrice records
|
|
241
241
|
def inbound_sms_prices
|
|
242
242
|
@properties['inbound_sms_prices']
|
|
243
243
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundPrefixPrice records
|
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPrice records
|
|
235
235
|
def outbound_prefix_prices
|
|
236
236
|
@properties['outbound_prefix_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
|
241
241
|
def inbound_call_prices
|
|
242
242
|
@properties['inbound_call_prices']
|
|
243
243
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundPrefixPriceWithOrigin records
|
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPriceWithOrigin records
|
|
235
235
|
def outbound_prefix_prices
|
|
236
236
|
@properties['outbound_prefix_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
|
241
241
|
def inbound_call_prices
|
|
242
242
|
@properties['inbound_call_prices']
|
|
243
243
|
end
|
|
@@ -172,7 +172,7 @@ module Twilio
|
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
##
|
|
175
|
-
# @return [String] The list of OutboundCallPriceWithOrigin records
|
|
175
|
+
# @return [Array[String]] The list of OutboundCallPriceWithOrigin records
|
|
176
176
|
def outbound_call_prices
|
|
177
177
|
@properties['outbound_call_prices']
|
|
178
178
|
end
|
|
@@ -125,7 +125,7 @@ module Twilio
|
|
|
125
125
|
# @param [session.Status] status The initial status of the Session. Can be:
|
|
126
126
|
# `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open`
|
|
127
127
|
# on create.
|
|
128
|
-
# @param [Hash] participants The Participant objects to include in the new
|
|
128
|
+
# @param [Array[Hash]] participants The Participant objects to include in the new
|
|
129
129
|
# session.
|
|
130
130
|
# @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
|
|
131
131
|
# the ProxyAllowParticipantConflict account flag, setting to true enables
|
|
@@ -37,7 +37,7 @@ module Twilio
|
|
|
37
37
|
##
|
|
38
38
|
# Create the MessageInteractionInstance
|
|
39
39
|
# @param [String] body The message to send to the participant
|
|
40
|
-
# @param [String] media_url Reserved. Not currently supported.
|
|
40
|
+
# @param [Array[String]] media_url Reserved. Not currently supported.
|
|
41
41
|
# @return [MessageInteractionInstance] Created MessageInteractionInstance
|
|
42
42
|
def create(body: :unset, media_url: :unset)
|
|
43
43
|
data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }, })
|
|
@@ -110,10 +110,10 @@ module Twilio
|
|
|
110
110
|
|
|
111
111
|
##
|
|
112
112
|
# Create the BuildInstance
|
|
113
|
-
# @param [String] asset_versions The list of Asset Version resource SIDs to
|
|
113
|
+
# @param [Array[String]] asset_versions The list of Asset Version resource SIDs to
|
|
114
114
|
# include in the Build.
|
|
115
|
-
# @param [String] function_versions The list of the Function Version
|
|
116
|
-
# to include in the Build.
|
|
115
|
+
# @param [Array[String]] function_versions The list of the Function Version
|
|
116
|
+
# resource SIDs to include in the Build.
|
|
117
117
|
# @param [String] dependencies A list of objects that describe the Dependencies
|
|
118
118
|
# included in the Build. Each object contains the `name` and `version` of the
|
|
119
119
|
# dependency.
|
|
@@ -298,19 +298,19 @@ module Twilio
|
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
##
|
|
301
|
-
# @return [Hash] The list of Asset Version resource SIDs that are included in the Build
|
|
301
|
+
# @return [Array[Hash]] The list of Asset Version resource SIDs that are included in the Build
|
|
302
302
|
def asset_versions
|
|
303
303
|
@properties['asset_versions']
|
|
304
304
|
end
|
|
305
305
|
|
|
306
306
|
##
|
|
307
|
-
# @return [Hash] The list of Function Version resource SIDs that are included in the Build
|
|
307
|
+
# @return [Array[Hash]] The list of Function Version resource SIDs that are included in the Build
|
|
308
308
|
def function_versions
|
|
309
309
|
@properties['function_versions']
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
##
|
|
313
|
-
# @return [Hash] A list of objects that describe the Dependencies included in the Build
|
|
313
|
+
# @return [Array[Hash]] A list of objects that describe the Dependencies included in the Build
|
|
314
314
|
def dependencies
|
|
315
315
|
@properties['dependencies']
|
|
316
316
|
end
|
|
@@ -377,13 +377,13 @@ module Twilio
|
|
|
377
377
|
end
|
|
378
378
|
|
|
379
379
|
##
|
|
380
|
-
# @return [Hash] List of error in the flow definition
|
|
380
|
+
# @return [Array[Hash]] List of error in the flow definition
|
|
381
381
|
def errors
|
|
382
382
|
@properties['errors']
|
|
383
383
|
end
|
|
384
384
|
|
|
385
385
|
##
|
|
386
|
-
# @return [Hash] List of warnings in the flow definition
|
|
386
|
+
# @return [Array[Hash]] List of warnings in the flow definition
|
|
387
387
|
def warnings
|
|
388
388
|
@properties['warnings']
|
|
389
389
|
end
|
|
@@ -91,7 +91,7 @@ module Twilio
|
|
|
91
91
|
|
|
92
92
|
##
|
|
93
93
|
# Update the FlowTestUserInstance
|
|
94
|
-
# @param [String] test_users The test_users
|
|
94
|
+
# @param [Array[String]] test_users The test_users
|
|
95
95
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
|
96
96
|
def update(test_users: nil)
|
|
97
97
|
data = Twilio::Values.of({'TestUsers' => Twilio.serialize_list(test_users) { |e| e }, })
|
|
@@ -158,7 +158,7 @@ module Twilio
|
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
##
|
|
161
|
-
# @return [String] The test_users
|
|
161
|
+
# @return [Array[String]] The test_users
|
|
162
162
|
def test_users
|
|
163
163
|
@properties['test_users']
|
|
164
164
|
end
|
|
@@ -178,7 +178,7 @@ module Twilio
|
|
|
178
178
|
|
|
179
179
|
##
|
|
180
180
|
# Update the FlowTestUserInstance
|
|
181
|
-
# @param [String] test_users The test_users
|
|
181
|
+
# @param [Array[String]] test_users The test_users
|
|
182
182
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
|
183
183
|
def update(test_users: nil)
|
|
184
184
|
context.update(test_users: test_users, )
|
|
@@ -30,8 +30,8 @@ module Twilio
|
|
|
30
30
|
# @param [String] unique_name An application-defined string that uniquely
|
|
31
31
|
# identifies the resource. It can be used in place of the resource's `sid` in the
|
|
32
32
|
# URL to address the resource.
|
|
33
|
-
# @param [String] networks List of Network SIDs that this Network Access
|
|
34
|
-
# will allow connections to.
|
|
33
|
+
# @param [Array[String]] networks List of Network SIDs that this Network Access
|
|
34
|
+
# Profile will allow connections to.
|
|
35
35
|
# @return [NetworkAccessProfileInstance] Created NetworkAccessProfileInstance
|
|
36
36
|
def create(unique_name: :unset, networks: :unset)
|
|
37
37
|
data = Twilio::Values.of({
|
|
@@ -34,7 +34,7 @@ module Twilio
|
|
|
34
34
|
# @param [String] unique_name An application-defined string that uniquely
|
|
35
35
|
# identifies the Sync Document
|
|
36
36
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
|
37
|
-
# object that the Sync Document stores. Can be up to
|
|
37
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
|
38
38
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
|
39
39
|
# is deleted (the Sync Document's time-to-live). Can be an integer from 0 to
|
|
40
40
|
# 31,536,000 (1 year). The default value is `0`, which means the Sync Document
|
|
@@ -58,9 +58,6 @@ module Twilio
|
|
|
58
58
|
# Lists DocumentInstance records from the API as a list.
|
|
59
59
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
60
60
|
# memory before returning.
|
|
61
|
-
# @param [document.HideExpiredType] hide_expired The default list of Sync
|
|
62
|
-
# Documents will show both active and expired items. It is possible to filter only
|
|
63
|
-
# the active ones by hiding the expired ones.
|
|
64
61
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
65
62
|
# guarantees to never return more than limit. Default is no limit
|
|
66
63
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -68,17 +65,14 @@ module Twilio
|
|
|
68
65
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
69
66
|
# efficient page size, i.e. min(limit, 1000)
|
|
70
67
|
# @return [Array] Array of up to limit results
|
|
71
|
-
def list(
|
|
72
|
-
self.stream(
|
|
68
|
+
def list(limit: nil, page_size: nil)
|
|
69
|
+
self.stream(limit: limit, page_size: page_size).entries
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
##
|
|
76
73
|
# Streams DocumentInstance records from the API as an Enumerable.
|
|
77
74
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
78
75
|
# is reached.
|
|
79
|
-
# @param [document.HideExpiredType] hide_expired The default list of Sync
|
|
80
|
-
# Documents will show both active and expired items. It is possible to filter only
|
|
81
|
-
# the active ones by hiding the expired ones.
|
|
82
76
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
83
77
|
# guarantees to never return more than limit. Default is no limit.
|
|
84
78
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -86,10 +80,10 @@ module Twilio
|
|
|
86
80
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
87
81
|
# efficient page size, i.e. min(limit, 1000)
|
|
88
82
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
89
|
-
def stream(
|
|
83
|
+
def stream(limit: nil, page_size: nil)
|
|
90
84
|
limits = @version.read_limits(limit, page_size)
|
|
91
85
|
|
|
92
|
-
page = self.page(
|
|
86
|
+
page = self.page(page_size: limits[:page_size], )
|
|
93
87
|
|
|
94
88
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
95
89
|
end
|
|
@@ -111,16 +105,12 @@ module Twilio
|
|
|
111
105
|
##
|
|
112
106
|
# Retrieve a single page of DocumentInstance records from the API.
|
|
113
107
|
# Request is executed immediately.
|
|
114
|
-
# @param [document.HideExpiredType] hide_expired The default list of Sync
|
|
115
|
-
# Documents will show both active and expired items. It is possible to filter only
|
|
116
|
-
# the active ones by hiding the expired ones.
|
|
117
108
|
# @param [String] page_token PageToken provided by the API
|
|
118
109
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
119
110
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
120
111
|
# @return [Page] Page of DocumentInstance
|
|
121
|
-
def page(
|
|
112
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
122
113
|
params = Twilio::Values.of({
|
|
123
|
-
'HideExpired' => hide_expired,
|
|
124
114
|
'PageToken' => page_token,
|
|
125
115
|
'Page' => page_number,
|
|
126
116
|
'PageSize' => page_size,
|
|
@@ -191,7 +181,8 @@ module Twilio
|
|
|
191
181
|
# @param [String] service_sid The SID of the {Sync
|
|
192
182
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Document
|
|
193
183
|
# resource to fetch.
|
|
194
|
-
# @param [String] sid The SID of the Document resource to fetch.
|
|
184
|
+
# @param [String] sid The SID of the Document resource to fetch. Can be the
|
|
185
|
+
# Document resource's `sid` or its `unique_name`.
|
|
195
186
|
# @return [DocumentContext] DocumentContext
|
|
196
187
|
def initialize(version, service_sid, sid)
|
|
197
188
|
super(version)
|
|
@@ -226,7 +217,7 @@ module Twilio
|
|
|
226
217
|
##
|
|
227
218
|
# Update the DocumentInstance
|
|
228
219
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
|
229
|
-
# object that the Sync Document stores. Can be up to
|
|
220
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
|
230
221
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
|
231
222
|
# is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
|
232
223
|
# default value is `0`, which means the Document resource does not expire. The
|
|
@@ -290,7 +281,8 @@ module Twilio
|
|
|
290
281
|
# @param [String] service_sid The SID of the {Sync
|
|
291
282
|
# Service}[https://www.twilio.com/docs/sync/api/service] the resource is
|
|
292
283
|
# associated with.
|
|
293
|
-
# @param [String] sid The SID of the Document resource to fetch.
|
|
284
|
+
# @param [String] sid The SID of the Document resource to fetch. Can be the
|
|
285
|
+
# Document resource's `sid` or its `unique_name`.
|
|
294
286
|
# @return [DocumentInstance] DocumentInstance
|
|
295
287
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
296
288
|
super(version)
|
|
@@ -417,7 +409,7 @@ module Twilio
|
|
|
417
409
|
##
|
|
418
410
|
# Update the DocumentInstance
|
|
419
411
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
|
420
|
-
# object that the Sync Document stores. Can be up to
|
|
412
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
|
421
413
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
|
422
414
|
# is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
|
423
415
|
# default value is `0`, which means the Document resource does not expire. The
|
|
@@ -59,9 +59,6 @@ module Twilio
|
|
|
59
59
|
# Lists SyncListInstance records from the API as a list.
|
|
60
60
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
61
61
|
# memory before returning.
|
|
62
|
-
# @param [sync_list.HideExpiredType] hide_expired The default list of Sync Lists
|
|
63
|
-
# will show both active and expired items. It is possible to filter only the
|
|
64
|
-
# active ones by hiding the expired ones.
|
|
65
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
66
63
|
# guarantees to never return more than limit. Default is no limit
|
|
67
64
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -69,17 +66,14 @@ module Twilio
|
|
|
69
66
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
70
67
|
# efficient page size, i.e. min(limit, 1000)
|
|
71
68
|
# @return [Array] Array of up to limit results
|
|
72
|
-
def list(
|
|
73
|
-
self.stream(
|
|
69
|
+
def list(limit: nil, page_size: nil)
|
|
70
|
+
self.stream(limit: limit, page_size: page_size).entries
|
|
74
71
|
end
|
|
75
72
|
|
|
76
73
|
##
|
|
77
74
|
# Streams SyncListInstance records from the API as an Enumerable.
|
|
78
75
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
79
76
|
# is reached.
|
|
80
|
-
# @param [sync_list.HideExpiredType] hide_expired The default list of Sync Lists
|
|
81
|
-
# will show both active and expired items. It is possible to filter only the
|
|
82
|
-
# active ones by hiding the expired ones.
|
|
83
77
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
84
78
|
# guarantees to never return more than limit. Default is no limit.
|
|
85
79
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -87,10 +81,10 @@ module Twilio
|
|
|
87
81
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
88
82
|
# efficient page size, i.e. min(limit, 1000)
|
|
89
83
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
90
|
-
def stream(
|
|
84
|
+
def stream(limit: nil, page_size: nil)
|
|
91
85
|
limits = @version.read_limits(limit, page_size)
|
|
92
86
|
|
|
93
|
-
page = self.page(
|
|
87
|
+
page = self.page(page_size: limits[:page_size], )
|
|
94
88
|
|
|
95
89
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
96
90
|
end
|
|
@@ -112,16 +106,12 @@ module Twilio
|
|
|
112
106
|
##
|
|
113
107
|
# Retrieve a single page of SyncListInstance records from the API.
|
|
114
108
|
# Request is executed immediately.
|
|
115
|
-
# @param [sync_list.HideExpiredType] hide_expired The default list of Sync Lists
|
|
116
|
-
# will show both active and expired items. It is possible to filter only the
|
|
117
|
-
# active ones by hiding the expired ones.
|
|
118
109
|
# @param [String] page_token PageToken provided by the API
|
|
119
110
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
120
111
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
121
112
|
# @return [Page] Page of SyncListInstance
|
|
122
|
-
def page(
|
|
113
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
|
123
114
|
params = Twilio::Values.of({
|
|
124
|
-
'HideExpired' => hide_expired,
|
|
125
115
|
'PageToken' => page_token,
|
|
126
116
|
'Page' => page_number,
|
|
127
117
|
'PageSize' => page_size,
|
|
@@ -192,7 +182,8 @@ module Twilio
|
|
|
192
182
|
# @param [String] service_sid The SID of the {Sync
|
|
193
183
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Sync List
|
|
194
184
|
# resource to fetch.
|
|
195
|
-
# @param [String] sid The SID of the Sync List resource to fetch.
|
|
185
|
+
# @param [String] sid The SID of the Sync List resource to fetch. Can be the Sync
|
|
186
|
+
# List resource's `sid` or its `unique_name`.
|
|
196
187
|
# @return [SyncListContext] SyncListContext
|
|
197
188
|
def initialize(version, service_sid, sid)
|
|
198
189
|
super(version)
|
|
@@ -309,7 +300,8 @@ module Twilio
|
|
|
309
300
|
# @param [String] service_sid The SID of the {Sync
|
|
310
301
|
# Service}[https://www.twilio.com/docs/sync/api/service] the resource is
|
|
311
302
|
# associated with.
|
|
312
|
-
# @param [String] sid The SID of the Sync List resource to fetch.
|
|
303
|
+
# @param [String] sid The SID of the Sync List resource to fetch. Can be the Sync
|
|
304
|
+
# List resource's `sid` or its `unique_name`.
|
|
313
305
|
# @return [SyncListInstance] SyncListInstance
|
|
314
306
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
315
307
|
super(version)
|