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.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +112 -0
  3. data/README.md +20 -6
  4. data/lib/twilio-ruby/rest/api.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
  9. data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
  10. data/lib/twilio-ruby/rest/bulkexports/v1.rb +10 -8
  11. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +14 -0
  12. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +14 -0
  13. data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
  14. data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
  15. data/lib/twilio-ruby/rest/client.rb +8 -1
  16. data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
  17. data/lib/twilio-ruby/rest/events/v1.rb +20 -16
  18. data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
  19. data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
  20. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
  21. data/lib/twilio-ruby/rest/events/v1/sink.rb +6 -5
  22. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
  23. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
  24. data/lib/twilio-ruby/rest/events/v1/subscription.rb +15 -8
  25. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +133 -6
  26. data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
  27. data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
  28. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  29. data/lib/twilio-ruby/rest/insights.rb +1 -1
  30. data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
  31. data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
  32. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
  33. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
  34. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
  35. data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
  36. data/lib/twilio-ruby/rest/messaging.rb +8 -0
  37. data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
  38. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  39. data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
  40. data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
  41. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +10 -8
  42. data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
  43. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
  44. data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
  45. data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
  46. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  47. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
  48. data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
  49. data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
  50. data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
  51. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  52. data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
  53. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +11 -1
  54. data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
  55. data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
  56. data/lib/twilio-ruby/rest/studio/v2/flow.rb +4 -12
  57. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  58. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  59. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  60. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  61. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -9
  62. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  63. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  64. data/lib/twilio-ruby/rest/supersim.rb +9 -0
  65. data/lib/twilio-ruby/rest/supersim/v1.rb +41 -20
  66. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  67. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +86 -13
  68. data/lib/twilio-ruby/rest/supersim/v1/network.rb +4 -4
  69. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +4 -4
  70. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +4 -4
  71. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  72. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +371 -0
  73. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  74. data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
  75. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  76. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +13 -32
  77. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  78. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -23
  79. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +38 -45
  80. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  81. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -23
  82. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +38 -47
  83. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +0 -8
  84. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -23
  85. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +0 -6
  86. data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
  87. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -8
  88. data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
  89. data/lib/twilio-ruby/rest/trusthub.rb +100 -0
  90. data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
  91. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
  92. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
  93. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
  94. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
  95. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
  96. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
  97. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
  98. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
  99. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
  100. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
  101. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
  102. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
  103. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
  104. data/lib/twilio-ruby/rest/verify.rb +9 -0
  105. data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
  106. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +4 -3
  107. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
  108. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
  109. data/lib/twilio-ruby/rest/video/v1.rb +20 -16
  110. data/lib/twilio-ruby/rest/video/v1/room.rb +4 -1
  111. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +0 -6
  112. data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
  113. data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
  114. data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
  115. data/lib/twilio-ruby/version.rb +1 -1
  116. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  117. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
  118. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  119. data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +6 -2
  120. data/spec/integration/bulkexports/v1/export/job_spec.rb +3 -1
  121. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +134 -0
  122. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  123. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  124. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  125. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  126. data/spec/integration/supersim/v1/fleet_spec.rb +20 -0
  127. data/spec/integration/supersim/v1/sms_command_spec.rb +184 -0
  128. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  129. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +3 -1
  130. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
  131. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
  132. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
  133. data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
  134. data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
  135. data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
  136. data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
  137. data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
  138. data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
  139. data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
  140. data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
  141. data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
  142. data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
  143. data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
  144. data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
  145. data/spec/integration/video/v1/room_spec.rb +39 -0
  146. 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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @alerts ||= AlertList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @alerts ||= AlertList.new self
31
32
  else
32
- AlertContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
43
- elsif sid == :unset
44
- @events ||= EventList.new self
43
+ raise ArgumentError, 'sid cannot be nil'
44
+ end
45
+ if sid == :unset
46
+ @events ||= EventList.new self
45
47
  else
46
- EventContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @credentials ||= CredentialList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @credentials ||= CredentialList.new self
32
33
  else
33
- CredentialContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
45
- elsif sid == :unset
46
- @services ||= ServiceList.new self
45
+ raise ArgumentError, 'sid cannot be nil'
46
+ end
47
+ if sid == :unset
48
+ @services ||= ServiceList.new self
47
49
  else
48
- ServiceContext.new(self, sid)
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
- raise ArgumentError, 'resource_type cannot be nil'
30
- elsif resource_type == :unset
31
- @exports ||= ExportList.new self
29
+ raise ArgumentError, 'resource_type cannot be nil'
30
+ end
31
+ if resource_type == :unset
32
+ @exports ||= ExportList.new self
32
33
  else
33
- ExportContext.new(self, resource_type)
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
- raise ArgumentError, 'resource_type cannot be nil'
45
- elsif resource_type == :unset
46
- @export_configuration ||= ExportConfigurationList.new self
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
- ExportConfigurationContext.new(self, resource_type)
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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @fleets ||= FleetList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @fleets ||= FleetList.new self
31
32
  else
32
- FleetContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @authorization_documents ||= AuthorizationDocumentList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @authorization_documents ||= AuthorizationDocumentList.new self
32
33
  else
33
- AuthorizationDocumentContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
45
- elsif sid == :unset
46
- @hosted_number_orders ||= HostedNumberOrderList.new self
45
+ raise ArgumentError, 'sid cannot be nil'
46
+ end
47
+ if sid == :unset
48
+ @hosted_number_orders ||= HostedNumberOrderList.new self
47
49
  else
48
- HostedNumberOrderContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @available_add_ons ||= AvailableAddOnList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @available_add_ons ||= AvailableAddOnList.new self
31
32
  else
32
- AvailableAddOnContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
43
- elsif sid == :unset
44
- @installed_add_ons ||= InstalledAddOnList.new self
43
+ raise ArgumentError, 'sid cannot be nil'
44
+ end
45
+ if sid == :unset
46
+ @installed_add_ons ||= InstalledAddOnList.new self
45
47
  else
46
- InstalledAddOnContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @services ||= ServiceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @services ||= ServiceList.new self
30
31
  else
31
- ServiceContext.new(self, sid)
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(if_match: :unset)
195
- headers = Twilio::Values.of({'If-Match' => if_match, })
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(if_match: :unset)
373
- context.delete(if_match: if_match, )
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
- raise ArgumentError, 'sid cannot be nil'
31
- elsif sid == :unset
32
- @branded_channels ||= BrandedChannelList.new self
30
+ raise ArgumentError, 'sid cannot be nil'
31
+ end
32
+ if sid == :unset
33
+ @branded_channels ||= BrandedChannelList.new self
33
34
  else
34
- BrandedChannelContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @assistants ||= AssistantList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @assistants ||= AssistantList.new self
31
32
  else
32
- AssistantContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @commands ||= CommandList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @commands ||= CommandList.new self
32
33
  else
33
- CommandContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
44
- elsif sid == :unset
45
- @rate_plans ||= RatePlanList.new self
44
+ raise ArgumentError, 'sid cannot be nil'
45
+ end
46
+ if sid == :unset
47
+ @rate_plans ||= RatePlanList.new self
46
48
  else
47
- RatePlanContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
58
- elsif sid == :unset
59
- @sims ||= SimList.new self
59
+ raise ArgumentError, 'sid cannot be nil'
60
+ end
61
+ if sid == :unset
62
+ @sims ||= SimList.new self
60
63
  else
61
- SimContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @services ||= ServiceList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @services ||= ServiceList.new self
31
32
  else
32
- ServiceContext.new(self, sid)
33
+ ServiceContext.new(self, sid)
33
34
  end
34
35
  end
35
36
 
@@ -378,7 +378,7 @@ module Twilio
378
378
  end
379
379
 
380
380
  ##
381
- # @return [String] The phone number of the Participant
381
+ # @return [String] The phone number or channel identifier of the Participant
382
382
  def identifier
383
383
  @properties['identifier']
384
384
  end
@@ -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
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @services ||= ServiceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @services ||= ServiceList.new self
30
31
  else
31
- ServiceContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @flows ||= FlowList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @flows ||= FlowList.new self
30
31
  else
31
- FlowContext.new(self, sid)
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
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @flows ||= FlowList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @flows ||= FlowList.new self
31
32
  else
32
- FlowContext.new(self, sid)
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 on change made in the revision.
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 on change made in the revision.
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 on change made in the revision
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 on change made in the revision.
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(