twilio-ruby 5.46.0 → 5.50.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/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
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Monitor::V1::AlertList]
|
26
26
|
def alerts(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@alerts ||= AlertList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
AlertContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -39,11 +40,12 @@ module Twilio
|
|
39
40
|
# @return [Twilio::REST::Monitor::V1::EventList]
|
40
41
|
def events(sid=:unset)
|
41
42
|
if sid.nil?
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
44
|
+
end
|
45
|
+
if sid == :unset
|
46
|
+
@events ||= EventList.new self
|
45
47
|
else
|
46
|
-
|
48
|
+
EventContext.new(self, sid)
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Notify::V1::CredentialList]
|
27
27
|
def credentials(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@credentials ||= CredentialList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
CredentialContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -41,11 +42,12 @@ module Twilio
|
|
41
42
|
# @return [Twilio::REST::Notify::V1::ServiceList]
|
42
43
|
def services(sid=:unset)
|
43
44
|
if sid.nil?
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
raise ArgumentError, 'sid cannot be nil'
|
46
|
+
end
|
47
|
+
if sid == :unset
|
48
|
+
@services ||= ServiceList.new self
|
47
49
|
else
|
48
|
-
|
50
|
+
ServiceContext.new(self, sid)
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
27
27
|
def exports(resource_type=:unset)
|
28
28
|
if resource_type.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'resource_type cannot be nil'
|
30
|
+
end
|
31
|
+
if resource_type == :unset
|
32
|
+
@exports ||= ExportList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
ExportContext.new(self, resource_type)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -41,11 +42,12 @@ module Twilio
|
|
41
42
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
42
43
|
def export_configuration(resource_type=:unset)
|
43
44
|
if resource_type.nil?
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
raise ArgumentError, 'resource_type cannot be nil'
|
46
|
+
end
|
47
|
+
if resource_type == :unset
|
48
|
+
@export_configuration ||= ExportConfigurationList.new self
|
47
49
|
else
|
48
|
-
|
50
|
+
ExportConfigurationContext.new(self, resource_type)
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Preview::DeployedDevices::FleetList]
|
26
26
|
def fleets(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@fleets ||= FleetList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
FleetContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList]
|
27
27
|
def authorization_documents(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@authorization_documents ||= AuthorizationDocumentList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
AuthorizationDocumentContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -41,11 +42,12 @@ module Twilio
|
|
41
42
|
# @return [Twilio::REST::Preview::HostedNumbers::HostedNumberOrderList]
|
42
43
|
def hosted_number_orders(sid=:unset)
|
43
44
|
if sid.nil?
|
44
|
-
|
45
|
-
|
46
|
-
|
45
|
+
raise ArgumentError, 'sid cannot be nil'
|
46
|
+
end
|
47
|
+
if sid == :unset
|
48
|
+
@hosted_number_orders ||= HostedNumberOrderList.new self
|
47
49
|
else
|
48
|
-
|
50
|
+
HostedNumberOrderContext.new(self, sid)
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
26
26
|
def available_add_ons(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
AvailableAddOnContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -39,11 +40,12 @@ module Twilio
|
|
39
40
|
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
|
40
41
|
def installed_add_ons(sid=:unset)
|
41
42
|
if sid.nil?
|
42
|
-
|
43
|
-
|
44
|
-
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
44
|
+
end
|
45
|
+
if sid == :unset
|
46
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
45
47
|
else
|
46
|
-
|
48
|
+
InstalledAddOnContext.new(self, sid)
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
@@ -24,11 +24,12 @@ module Twilio
|
|
24
24
|
# @return [Twilio::REST::Preview::Sync::ServiceList]
|
25
25
|
def services(sid=:unset)
|
26
26
|
if sid.nil?
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
raise ArgumentError, 'sid cannot be nil'
|
28
|
+
end
|
29
|
+
if sid == :unset
|
30
|
+
@services ||= ServiceList.new self
|
30
31
|
else
|
31
|
-
|
32
|
+
ServiceContext.new(self, sid)
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -189,12 +189,9 @@ module Twilio
|
|
189
189
|
|
190
190
|
##
|
191
191
|
# Delete the DocumentInstance
|
192
|
-
# @param [String] if_match The If-Match HTTP request header
|
193
192
|
# @return [Boolean] true if delete succeeds, false otherwise
|
194
|
-
def delete
|
195
|
-
|
196
|
-
|
197
|
-
@version.delete('DELETE', @uri, headers: headers)
|
193
|
+
def delete
|
194
|
+
@version.delete('DELETE', @uri)
|
198
195
|
end
|
199
196
|
|
200
197
|
##
|
@@ -367,10 +364,9 @@ module Twilio
|
|
367
364
|
|
368
365
|
##
|
369
366
|
# Delete the DocumentInstance
|
370
|
-
# @param [String] if_match The If-Match HTTP request header
|
371
367
|
# @return [Boolean] true if delete succeeds, false otherwise
|
372
|
-
def delete
|
373
|
-
context.delete
|
368
|
+
def delete
|
369
|
+
context.delete
|
374
370
|
end
|
375
371
|
|
376
372
|
##
|
@@ -27,11 +27,12 @@ module Twilio
|
|
27
27
|
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
|
28
28
|
def branded_channels(sid=:unset)
|
29
29
|
if sid.nil?
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
raise ArgumentError, 'sid cannot be nil'
|
31
|
+
end
|
32
|
+
if sid == :unset
|
33
|
+
@branded_channels ||= BrandedChannelList.new self
|
33
34
|
else
|
34
|
-
|
35
|
+
BrandedChannelContext.new(self, sid)
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Preview::Understand::AssistantList]
|
26
26
|
def assistants(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@assistants ||= AssistantList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
AssistantContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -26,11 +26,12 @@ module Twilio
|
|
26
26
|
# @return [Twilio::REST::Preview::Wireless::CommandList]
|
27
27
|
def commands(sid=:unset)
|
28
28
|
if sid.nil?
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
raise ArgumentError, 'sid cannot be nil'
|
30
|
+
end
|
31
|
+
if sid == :unset
|
32
|
+
@commands ||= CommandList.new self
|
32
33
|
else
|
33
|
-
|
34
|
+
CommandContext.new(self, sid)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -40,11 +41,12 @@ module Twilio
|
|
40
41
|
# @return [Twilio::REST::Preview::Wireless::RatePlanList]
|
41
42
|
def rate_plans(sid=:unset)
|
42
43
|
if sid.nil?
|
43
|
-
|
44
|
-
|
45
|
-
|
44
|
+
raise ArgumentError, 'sid cannot be nil'
|
45
|
+
end
|
46
|
+
if sid == :unset
|
47
|
+
@rate_plans ||= RatePlanList.new self
|
46
48
|
else
|
47
|
-
|
49
|
+
RatePlanContext.new(self, sid)
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|
@@ -54,11 +56,12 @@ module Twilio
|
|
54
56
|
# @return [Twilio::REST::Preview::Wireless::SimList]
|
55
57
|
def sims(sid=:unset)
|
56
58
|
if sid.nil?
|
57
|
-
|
58
|
-
|
59
|
-
|
59
|
+
raise ArgumentError, 'sid cannot be nil'
|
60
|
+
end
|
61
|
+
if sid == :unset
|
62
|
+
@sims ||= SimList.new self
|
60
63
|
else
|
61
|
-
|
64
|
+
SimContext.new(self, sid)
|
62
65
|
end
|
63
66
|
end
|
64
67
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Proxy::V1::ServiceList]
|
26
26
|
def services(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@services ||= ServiceList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
ServiceContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -24,11 +24,12 @@ module Twilio
|
|
24
24
|
# @return [Twilio::REST::Serverless::V1::ServiceList]
|
25
25
|
def services(sid=:unset)
|
26
26
|
if sid.nil?
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
raise ArgumentError, 'sid cannot be nil'
|
28
|
+
end
|
29
|
+
if sid == :unset
|
30
|
+
@services ||= ServiceList.new self
|
30
31
|
else
|
31
|
-
|
32
|
+
ServiceContext.new(self, sid)
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -117,12 +117,15 @@ module Twilio
|
|
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.
|
120
|
+
# @param [String] runtime The Runtime version that will be used to run the Build
|
121
|
+
# resource when it is deployed.
|
120
122
|
# @return [BuildInstance] Created BuildInstance
|
121
|
-
def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset)
|
123
|
+
def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset, runtime: :unset)
|
122
124
|
data = Twilio::Values.of({
|
123
125
|
'AssetVersions' => Twilio.serialize_list(asset_versions) { |e| e },
|
124
126
|
'FunctionVersions' => Twilio.serialize_list(function_versions) { |e| e },
|
125
127
|
'Dependencies' => dependencies,
|
128
|
+
'Runtime' => runtime,
|
126
129
|
})
|
127
130
|
|
128
131
|
payload = @version.create('POST', @uri, data: data)
|
@@ -251,6 +254,7 @@ module Twilio
|
|
251
254
|
'asset_versions' => payload['asset_versions'],
|
252
255
|
'function_versions' => payload['function_versions'],
|
253
256
|
'dependencies' => payload['dependencies'],
|
257
|
+
'runtime' => payload['runtime'],
|
254
258
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
255
259
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
256
260
|
'url' => payload['url'],
|
@@ -315,6 +319,12 @@ module Twilio
|
|
315
319
|
@properties['dependencies']
|
316
320
|
end
|
317
321
|
|
322
|
+
##
|
323
|
+
# @return [build.Runtime] The Runtime version that will be used to run the Build.
|
324
|
+
def runtime
|
325
|
+
@properties['runtime']
|
326
|
+
end
|
327
|
+
|
318
328
|
##
|
319
329
|
# @return [Time] The ISO 8601 date and time in GMT when the Build resource was created
|
320
330
|
def date_created
|
@@ -24,11 +24,12 @@ module Twilio
|
|
24
24
|
# @return [Twilio::REST::Studio::V1::FlowList]
|
25
25
|
def flows(sid=:unset)
|
26
26
|
if sid.nil?
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
raise ArgumentError, 'sid cannot be nil'
|
28
|
+
end
|
29
|
+
if sid == :unset
|
30
|
+
@flows ||= FlowList.new self
|
30
31
|
else
|
31
|
-
|
32
|
+
FlowContext.new(self, sid)
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -25,11 +25,12 @@ module Twilio
|
|
25
25
|
# @return [Twilio::REST::Studio::V2::FlowList]
|
26
26
|
def flows(sid=:unset)
|
27
27
|
if sid.nil?
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
raise ArgumentError, 'sid cannot be nil'
|
29
|
+
end
|
30
|
+
if sid == :unset
|
31
|
+
@flows ||= FlowList.new self
|
31
32
|
else
|
32
|
-
|
33
|
+
FlowContext.new(self, sid)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -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 FlowList < ListResource
|
16
14
|
##
|
17
15
|
# Initialize the FlowList
|
@@ -31,7 +29,7 @@ module Twilio
|
|
31
29
|
# @param [flow.Status] status The status of the Flow. Can be: `draft` or
|
32
30
|
# `published`.
|
33
31
|
# @param [Hash] definition JSON representation of flow definition.
|
34
|
-
# @param [String] commit_message Description
|
32
|
+
# @param [String] commit_message Description of change made in the revision.
|
35
33
|
# @return [FlowInstance] Created FlowInstance
|
36
34
|
def create(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
|
37
35
|
data = Twilio::Values.of({
|
@@ -133,8 +131,6 @@ module Twilio
|
|
133
131
|
end
|
134
132
|
end
|
135
133
|
|
136
|
-
##
|
137
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
138
134
|
class FlowPage < Page
|
139
135
|
##
|
140
136
|
# Initialize the FlowPage
|
@@ -164,8 +160,6 @@ module Twilio
|
|
164
160
|
end
|
165
161
|
end
|
166
162
|
|
167
|
-
##
|
168
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
169
163
|
class FlowContext < InstanceContext
|
170
164
|
##
|
171
165
|
# Initialize the FlowContext
|
@@ -191,7 +185,7 @@ module Twilio
|
|
191
185
|
# `published`.
|
192
186
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
193
187
|
# @param [Hash] definition JSON representation of flow definition.
|
194
|
-
# @param [String] commit_message Description
|
188
|
+
# @param [String] commit_message Description of change made in the revision.
|
195
189
|
# @return [FlowInstance] Updated FlowInstance
|
196
190
|
def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
|
197
191
|
data = Twilio::Values.of({
|
@@ -281,8 +275,6 @@ module Twilio
|
|
281
275
|
end
|
282
276
|
end
|
283
277
|
|
284
|
-
##
|
285
|
-
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
286
278
|
class FlowInstance < InstanceResource
|
287
279
|
##
|
288
280
|
# Initialize the FlowInstance
|
@@ -365,7 +357,7 @@ module Twilio
|
|
365
357
|
end
|
366
358
|
|
367
359
|
##
|
368
|
-
# @return [String] Description
|
360
|
+
# @return [String] Description of change made in the revision
|
369
361
|
def commit_message
|
370
362
|
@properties['commit_message']
|
371
363
|
end
|
@@ -424,7 +416,7 @@ module Twilio
|
|
424
416
|
# `published`.
|
425
417
|
# @param [String] friendly_name The string that you assigned to describe the Flow.
|
426
418
|
# @param [Hash] definition JSON representation of flow definition.
|
427
|
-
# @param [String] commit_message Description
|
419
|
+
# @param [String] commit_message Description of change made in the revision.
|
428
420
|
# @return [FlowInstance] Updated FlowInstance
|
429
421
|
def update(status: nil, friendly_name: :unset, definition: :unset, commit_message: :unset)
|
430
422
|
context.update(
|