twilio-ruby 5.45.0 → 5.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +104 -0
- data/LICENSE +1 -1
- data/README.md +16 -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 +12 -12
- 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 +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +15 -15
- 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/client.rb +7 -0
- 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/participant.rb +32 -2
- 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/configuration.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
- 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/conversations/v1/service/user.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
- data/lib/twilio-ruby/rest/flex_api.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- 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.rb +8 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- 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/sync/service/document.rb +4 -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 +17 -7
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- 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 +2 -10
- 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/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
- 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 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
- 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 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
- 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/trusthub.rb +100 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +139 -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 +15 -0
- 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/verify/v2/verification_attempt.rb +329 -0
- 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/twiml/voice_response.rb +17 -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/conversations/v1/conversation/participant_spec.rb +30 -10
- data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
- data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
- data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
- data/spec/integration/conversations/v1/user_spec.rb +9 -4
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -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 +8 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- 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/verification_attempt_spec.rb +146 -0
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +49 -2
@@ -13,8 +13,6 @@ module Twilio
|
|
13
13
|
class FlowContext < InstanceContext
|
14
14
|
class ExecutionContext < InstanceContext
|
15
15
|
class ExecutionStepContext < InstanceContext
|
16
|
-
##
|
17
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
18
16
|
class ExecutionStepContextList < ListResource
|
19
17
|
##
|
20
18
|
# Initialize the ExecutionStepContextList
|
@@ -38,8 +36,6 @@ module Twilio
|
|
38
36
|
end
|
39
37
|
end
|
40
38
|
|
41
|
-
##
|
42
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
43
39
|
class ExecutionStepContextPage < Page
|
44
40
|
##
|
45
41
|
# Initialize the ExecutionStepContextPage
|
@@ -75,8 +71,6 @@ module Twilio
|
|
75
71
|
end
|
76
72
|
end
|
77
73
|
|
78
|
-
##
|
79
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
80
74
|
class ExecutionStepContextContext < InstanceContext
|
81
75
|
##
|
82
76
|
# Initialize the ExecutionStepContextContext
|
@@ -124,8 +118,6 @@ module Twilio
|
|
124
118
|
end
|
125
119
|
end
|
126
120
|
|
127
|
-
##
|
128
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
129
121
|
class ExecutionStepContextInstance < InstanceResource
|
130
122
|
##
|
131
123
|
# Initialize the ExecutionStepContextInstance
|
@@ -11,8 +11,6 @@ module Twilio
|
|
11
11
|
class Studio < Domain
|
12
12
|
class V2 < Version
|
13
13
|
class FlowContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
16
14
|
class FlowRevisionList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the FlowRevisionList
|
@@ -115,8 +113,6 @@ module Twilio
|
|
115
113
|
end
|
116
114
|
end
|
117
115
|
|
118
|
-
##
|
119
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
120
116
|
class FlowRevisionPage < Page
|
121
117
|
##
|
122
118
|
# Initialize the FlowRevisionPage
|
@@ -146,8 +142,6 @@ module Twilio
|
|
146
142
|
end
|
147
143
|
end
|
148
144
|
|
149
|
-
##
|
150
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
151
145
|
class FlowRevisionContext < InstanceContext
|
152
146
|
##
|
153
147
|
# Initialize the FlowRevisionContext
|
@@ -188,8 +182,6 @@ module Twilio
|
|
188
182
|
end
|
189
183
|
end
|
190
184
|
|
191
|
-
##
|
192
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
193
185
|
class FlowRevisionInstance < InstanceResource
|
194
186
|
##
|
195
187
|
# Initialize the FlowRevisionInstance
|
@@ -272,7 +264,7 @@ module Twilio
|
|
272
264
|
end
|
273
265
|
|
274
266
|
##
|
275
|
-
# @return [String] Description
|
267
|
+
# @return [String] Description of change made in the revision
|
276
268
|
def commit_message
|
277
269
|
@properties['commit_message']
|
278
270
|
end
|
@@ -284,7 +276,7 @@ module Twilio
|
|
284
276
|
end
|
285
277
|
|
286
278
|
##
|
287
|
-
# @return [Hash] List of error in the flow definition
|
279
|
+
# @return [Array[Hash]] List of error in the flow definition
|
288
280
|
def errors
|
289
281
|
@properties['errors']
|
290
282
|
end
|
@@ -11,13 +11,11 @@ module Twilio
|
|
11
11
|
class Studio < Domain
|
12
12
|
class V2 < Version
|
13
13
|
class FlowContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
16
14
|
class FlowTestUserList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the FlowTestUserList
|
19
17
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] sid
|
18
|
+
# @param [String] sid Unique identifier of the flow.
|
21
19
|
# @return [FlowTestUserList] FlowTestUserList
|
22
20
|
def initialize(version, sid: nil)
|
23
21
|
super(version)
|
@@ -33,8 +31,6 @@ module Twilio
|
|
33
31
|
end
|
34
32
|
end
|
35
33
|
|
36
|
-
##
|
37
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
38
34
|
class FlowTestUserPage < Page
|
39
35
|
##
|
40
36
|
# Initialize the FlowTestUserPage
|
@@ -64,13 +60,11 @@ module Twilio
|
|
64
60
|
end
|
65
61
|
end
|
66
62
|
|
67
|
-
##
|
68
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
69
63
|
class FlowTestUserContext < InstanceContext
|
70
64
|
##
|
71
65
|
# Initialize the FlowTestUserContext
|
72
66
|
# @param [Version] version Version that contains the resource
|
73
|
-
# @param [String] sid
|
67
|
+
# @param [String] sid Unique identifier of the flow.
|
74
68
|
# @return [FlowTestUserContext] FlowTestUserContext
|
75
69
|
def initialize(version, sid)
|
76
70
|
super(version)
|
@@ -91,7 +85,8 @@ module Twilio
|
|
91
85
|
|
92
86
|
##
|
93
87
|
# Update the FlowTestUserInstance
|
94
|
-
# @param [String] test_users
|
88
|
+
# @param [Array[String]] test_users List of test user identities that can test
|
89
|
+
# draft versions of the flow.
|
95
90
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
96
91
|
def update(test_users: nil)
|
97
92
|
data = Twilio::Values.of({'TestUsers' => Twilio.serialize_list(test_users) { |e| e }, })
|
@@ -116,14 +111,12 @@ module Twilio
|
|
116
111
|
end
|
117
112
|
end
|
118
113
|
|
119
|
-
##
|
120
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
121
114
|
class FlowTestUserInstance < InstanceResource
|
122
115
|
##
|
123
116
|
# Initialize the FlowTestUserInstance
|
124
117
|
# @param [Version] version Version that contains the resource
|
125
118
|
# @param [Hash] payload payload that contains response from Twilio
|
126
|
-
# @param [String] sid
|
119
|
+
# @param [String] sid Unique identifier of the flow.
|
127
120
|
# @return [FlowTestUserInstance] FlowTestUserInstance
|
128
121
|
def initialize(version, payload, sid: nil)
|
129
122
|
super(version)
|
@@ -152,19 +145,19 @@ module Twilio
|
|
152
145
|
end
|
153
146
|
|
154
147
|
##
|
155
|
-
# @return [String]
|
148
|
+
# @return [String] Unique identifier of the flow.
|
156
149
|
def sid
|
157
150
|
@properties['sid']
|
158
151
|
end
|
159
152
|
|
160
153
|
##
|
161
|
-
# @return [String]
|
154
|
+
# @return [Array[String]] List of test user identities that can test draft versions of the flow.
|
162
155
|
def test_users
|
163
156
|
@properties['test_users']
|
164
157
|
end
|
165
158
|
|
166
159
|
##
|
167
|
-
# @return [String] The
|
160
|
+
# @return [String] The URL of this resource.
|
168
161
|
def url
|
169
162
|
@properties['url']
|
170
163
|
end
|
@@ -178,7 +171,8 @@ module Twilio
|
|
178
171
|
|
179
172
|
##
|
180
173
|
# Update the FlowTestUserInstance
|
181
|
-
# @param [String] test_users
|
174
|
+
# @param [Array[String]] test_users List of test user identities that can test
|
175
|
+
# draft versions of the flow.
|
182
176
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
183
177
|
def update(test_users: nil)
|
184
178
|
context.update(test_users: test_users, )
|
@@ -10,8 +10,6 @@ module Twilio
|
|
10
10
|
module REST
|
11
11
|
class Studio < Domain
|
12
12
|
class V2 < Version
|
13
|
-
##
|
14
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
13
|
class FlowValidateList < ListResource
|
16
14
|
##
|
17
15
|
# Initialize the FlowValidateList
|
@@ -27,10 +25,11 @@ module Twilio
|
|
27
25
|
|
28
26
|
##
|
29
27
|
# Update the FlowValidateInstance
|
30
|
-
# @param [String] friendly_name The
|
31
|
-
# @param [flow_validate.Status] status The status
|
32
|
-
#
|
33
|
-
# @param [
|
28
|
+
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
29
|
+
# @param [flow_validate.Status] status The status of the Flow. Can be: `draft` or
|
30
|
+
# `published`.
|
31
|
+
# @param [Hash] definition JSON representation of flow definition.
|
32
|
+
# @param [String] commit_message Description of change made in the revision.
|
34
33
|
# @return [FlowValidateInstance] Updated FlowValidateInstance
|
35
34
|
def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
|
36
35
|
data = Twilio::Values.of({
|
@@ -52,8 +51,6 @@ module Twilio
|
|
52
51
|
end
|
53
52
|
end
|
54
53
|
|
55
|
-
##
|
56
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
57
54
|
class FlowValidatePage < Page
|
58
55
|
##
|
59
56
|
# Initialize the FlowValidatePage
|
@@ -83,8 +80,6 @@ module Twilio
|
|
83
80
|
end
|
84
81
|
end
|
85
82
|
|
86
|
-
##
|
87
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
88
83
|
class FlowValidateInstance < InstanceResource
|
89
84
|
##
|
90
85
|
# Initialize the FlowValidateInstance
|
@@ -99,7 +94,7 @@ module Twilio
|
|
99
94
|
end
|
100
95
|
|
101
96
|
##
|
102
|
-
# @return [Boolean]
|
97
|
+
# @return [Boolean] Boolean if the flow definition is valid
|
103
98
|
def valid
|
104
99
|
@properties['valid']
|
105
100
|
end
|
@@ -11,7 +11,7 @@ module Twilio
|
|
11
11
|
class Supersim < Domain
|
12
12
|
class V1 < Version
|
13
13
|
##
|
14
|
-
# PLEASE NOTE that this class contains
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
15
|
class CommandList < ListResource
|
16
16
|
##
|
17
17
|
# Initialize the CommandList
|
@@ -176,7 +176,7 @@ module Twilio
|
|
176
176
|
end
|
177
177
|
|
178
178
|
##
|
179
|
-
# PLEASE NOTE that this class contains
|
179
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
180
180
|
class CommandPage < Page
|
181
181
|
##
|
182
182
|
# Initialize the CommandPage
|
@@ -207,7 +207,7 @@ module Twilio
|
|
207
207
|
end
|
208
208
|
|
209
209
|
##
|
210
|
-
# PLEASE NOTE that this class contains
|
210
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
211
211
|
class CommandContext < InstanceContext
|
212
212
|
##
|
213
213
|
# Initialize the CommandContext
|
@@ -247,7 +247,7 @@ module Twilio
|
|
247
247
|
end
|
248
248
|
|
249
249
|
##
|
250
|
-
# PLEASE NOTE that this class contains
|
250
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
251
251
|
class CommandInstance < InstanceResource
|
252
252
|
##
|
253
253
|
# Initialize the CommandInstance
|
@@ -11,7 +11,7 @@ module Twilio
|
|
11
11
|
class Supersim < Domain
|
12
12
|
class V1 < Version
|
13
13
|
##
|
14
|
-
# PLEASE NOTE that this class contains
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
15
|
class FleetList < ListResource
|
16
16
|
##
|
17
17
|
# Initialize the FleetList
|
@@ -42,10 +42,10 @@ module Twilio
|
|
42
42
|
# @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
|
43
43
|
# of sending and receiving machine-to-machine SMS via Commands. Defaults to
|
44
44
|
# `true`.
|
45
|
-
# @param [String] commands_url The URL that will receive a webhook when a
|
46
|
-
# the Fleet
|
47
|
-
# respond with an HTTP status code in the 200 range; any
|
48
|
-
# ignored.
|
45
|
+
# @param [String] commands_url The URL that will receive a webhook when a Super
|
46
|
+
# SIM in the Fleet is used to send an SMS from your device to the Commands number.
|
47
|
+
# Your server should respond with an HTTP status code in the 200 range; any
|
48
|
+
# response body will be ignored.
|
49
49
|
# @param [String] commands_method A string representing the HTTP method to use
|
50
50
|
# when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
|
51
51
|
# to `POST`.
|
@@ -168,7 +168,7 @@ module Twilio
|
|
168
168
|
end
|
169
169
|
|
170
170
|
##
|
171
|
-
# PLEASE NOTE that this class contains
|
171
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
172
172
|
class FleetPage < Page
|
173
173
|
##
|
174
174
|
# Initialize the FleetPage
|
@@ -199,7 +199,7 @@ module Twilio
|
|
199
199
|
end
|
200
200
|
|
201
201
|
##
|
202
|
-
# PLEASE NOTE that this class contains
|
202
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
203
203
|
class FleetContext < InstanceContext
|
204
204
|
##
|
205
205
|
# Initialize the FleetContext
|
@@ -231,11 +231,20 @@ module Twilio
|
|
231
231
|
# @param [String] network_access_profile The SID or unique name of the Network
|
232
232
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
233
233
|
# connect to.
|
234
|
+
# @param [String] commands_url The URL that will receive a webhook when a Super
|
235
|
+
# SIM in the Fleet is used to send an SMS from your device to the Commands number.
|
236
|
+
# Your server should respond with an HTTP status code in the 200 range; any
|
237
|
+
# response body will be ignored.
|
238
|
+
# @param [String] commands_method A string representing the HTTP method to use
|
239
|
+
# when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
|
240
|
+
# to `POST`.
|
234
241
|
# @return [FleetInstance] Updated FleetInstance
|
235
|
-
def update(unique_name: :unset, network_access_profile: :unset)
|
242
|
+
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
|
236
243
|
data = Twilio::Values.of({
|
237
244
|
'UniqueName' => unique_name,
|
238
245
|
'NetworkAccessProfile' => network_access_profile,
|
246
|
+
'CommandsUrl' => commands_url,
|
247
|
+
'CommandsMethod' => commands_method,
|
239
248
|
})
|
240
249
|
|
241
250
|
payload = @version.update('POST', @uri, data: data)
|
@@ -259,7 +268,7 @@ module Twilio
|
|
259
268
|
end
|
260
269
|
|
261
270
|
##
|
262
|
-
# PLEASE NOTE that this class contains
|
271
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
263
272
|
class FleetInstance < InstanceResource
|
264
273
|
##
|
265
274
|
# Initialize the FleetInstance
|
@@ -364,7 +373,7 @@ module Twilio
|
|
364
373
|
end
|
365
374
|
|
366
375
|
##
|
367
|
-
# @return [String] The URL that will receive a webhook when a SIM in the Fleet
|
376
|
+
# @return [String] The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the Commands number
|
368
377
|
def commands_url
|
369
378
|
@properties['commands_url']
|
370
379
|
end
|
@@ -396,9 +405,21 @@ module Twilio
|
|
396
405
|
# @param [String] network_access_profile The SID or unique name of the Network
|
397
406
|
# Access Profile that will control which cellular networks the Fleet's SIMs can
|
398
407
|
# connect to.
|
408
|
+
# @param [String] commands_url The URL that will receive a webhook when a Super
|
409
|
+
# SIM in the Fleet is used to send an SMS from your device to the Commands number.
|
410
|
+
# Your server should respond with an HTTP status code in the 200 range; any
|
411
|
+
# response body will be ignored.
|
412
|
+
# @param [String] commands_method A string representing the HTTP method to use
|
413
|
+
# when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
|
414
|
+
# to `POST`.
|
399
415
|
# @return [FleetInstance] Updated FleetInstance
|
400
|
-
def update(unique_name: :unset, network_access_profile: :unset)
|
401
|
-
context.update(
|
416
|
+
def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
|
417
|
+
context.update(
|
418
|
+
unique_name: unique_name,
|
419
|
+
network_access_profile: network_access_profile,
|
420
|
+
commands_url: commands_url,
|
421
|
+
commands_method: commands_method,
|
422
|
+
)
|
402
423
|
end
|
403
424
|
|
404
425
|
##
|
@@ -11,7 +11,7 @@ module Twilio
|
|
11
11
|
class Supersim < Domain
|
12
12
|
class V1 < Version
|
13
13
|
##
|
14
|
-
# PLEASE NOTE that this class contains
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
15
|
class NetworkList < ListResource
|
16
16
|
##
|
17
17
|
# Initialize the NetworkList
|
@@ -143,7 +143,7 @@ module Twilio
|
|
143
143
|
end
|
144
144
|
|
145
145
|
##
|
146
|
-
# PLEASE NOTE that this class contains
|
146
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
147
147
|
class NetworkPage < Page
|
148
148
|
##
|
149
149
|
# Initialize the NetworkPage
|
@@ -174,7 +174,7 @@ module Twilio
|
|
174
174
|
end
|
175
175
|
|
176
176
|
##
|
177
|
-
# PLEASE NOTE that this class contains
|
177
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
178
178
|
class NetworkContext < InstanceContext
|
179
179
|
##
|
180
180
|
# Initialize the NetworkContext
|
@@ -214,7 +214,7 @@ module Twilio
|
|
214
214
|
end
|
215
215
|
|
216
216
|
##
|
217
|
-
# PLEASE NOTE that this class contains
|
217
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
218
218
|
class NetworkInstance < InstanceResource
|
219
219
|
##
|
220
220
|
# Initialize the NetworkInstance
|
@@ -275,7 +275,7 @@ module Twilio
|
|
275
275
|
end
|
276
276
|
|
277
277
|
##
|
278
|
-
# @return [Hash] The MCC/MNCs included in the Network resource
|
278
|
+
# @return [Array[Hash]] The MCC/MNCs included in the Network resource
|
279
279
|
def identifiers
|
280
280
|
@properties['identifiers']
|
281
281
|
end
|
@@ -11,7 +11,7 @@ module Twilio
|
|
11
11
|
class Supersim < Domain
|
12
12
|
class V1 < Version
|
13
13
|
##
|
14
|
-
# PLEASE NOTE that this class contains
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
15
15
|
class NetworkAccessProfileList < ListResource
|
16
16
|
##
|
17
17
|
# Initialize the NetworkAccessProfileList
|
@@ -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({
|
@@ -132,7 +132,7 @@ module Twilio
|
|
132
132
|
end
|
133
133
|
|
134
134
|
##
|
135
|
-
# PLEASE NOTE that this class contains
|
135
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
136
136
|
class NetworkAccessProfilePage < Page
|
137
137
|
##
|
138
138
|
# Initialize the NetworkAccessProfilePage
|
@@ -163,7 +163,7 @@ module Twilio
|
|
163
163
|
end
|
164
164
|
|
165
165
|
##
|
166
|
-
# PLEASE NOTE that this class contains
|
166
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
167
167
|
class NetworkAccessProfileContext < InstanceContext
|
168
168
|
##
|
169
169
|
# Initialize the NetworkAccessProfileContext
|
@@ -239,7 +239,7 @@ module Twilio
|
|
239
239
|
end
|
240
240
|
|
241
241
|
##
|
242
|
-
# PLEASE NOTE that this class contains
|
242
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
243
243
|
class NetworkAccessProfileInstance < InstanceResource
|
244
244
|
##
|
245
245
|
# Initialize the NetworkAccessProfileInstance
|