twilio-ruby 5.46.0 → 5.50.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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 ExecutionList < ListResource
17
15
  ##
18
16
  # Initialize the ExecutionList
@@ -169,8 +167,6 @@ module Twilio
169
167
  end
170
168
  end
171
169
 
172
- ##
173
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
174
170
  class ExecutionPage < Page
175
171
  ##
176
172
  # Initialize the ExecutionPage
@@ -200,8 +196,6 @@ module Twilio
200
196
  end
201
197
  end
202
198
 
203
- ##
204
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
205
199
  class ExecutionContext < InstanceContext
206
200
  ##
207
201
  # Initialize the ExecutionContext
@@ -296,8 +290,6 @@ module Twilio
296
290
  end
297
291
  end
298
292
 
299
- ##
300
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
301
293
  class ExecutionInstance < InstanceResource
302
294
  ##
303
295
  # Initialize the ExecutionInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionContextList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionContextList
@@ -35,8 +33,6 @@ module Twilio
35
33
  end
36
34
  end
37
35
 
38
- ##
39
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
40
36
  class ExecutionContextPage < Page
41
37
  ##
42
38
  # Initialize the ExecutionContextPage
@@ -71,8 +67,6 @@ module Twilio
71
67
  end
72
68
  end
73
69
 
74
- ##
75
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
76
70
  class ExecutionContextContext < InstanceContext
77
71
  ##
78
72
  # Initialize the ExecutionContextContext
@@ -118,8 +112,6 @@ module Twilio
118
112
  end
119
113
  end
120
114
 
121
- ##
122
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
123
115
  class ExecutionContextInstance < InstanceResource
124
116
  ##
125
117
  # Initialize the ExecutionContextInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class FlowContext < InstanceContext
14
14
  class ExecutionContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ExecutionStepList < ListResource
18
16
  ##
19
17
  # Initialize the ExecutionStepList
@@ -116,8 +114,6 @@ module Twilio
116
114
  end
117
115
  end
118
116
 
119
- ##
120
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
121
117
  class ExecutionStepPage < Page
122
118
  ##
123
119
  # Initialize the ExecutionStepPage
@@ -152,8 +148,6 @@ module Twilio
152
148
  end
153
149
  end
154
150
 
155
- ##
156
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
157
151
  class ExecutionStepContext < InstanceContext
158
152
  ##
159
153
  # Initialize the ExecutionStepContext
@@ -217,8 +211,6 @@ module Twilio
217
211
  end
218
212
  end
219
213
 
220
- ##
221
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
222
214
  class ExecutionStepInstance < InstanceResource
223
215
  ##
224
216
  # Initialize the ExecutionStepInstance
@@ -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 on change made in the revision
267
+ # @return [String] Description of change made in the revision
276
268
  def commit_message
277
269
  @properties['commit_message']
278
270
  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 The 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 The 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 [Array[String]] test_users The 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 The 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] The sid
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 [Array[String]] The test_users
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 url
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 [Array[String]] test_users The 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 friendly_name
31
- # @param [flow_validate.Status] status The status
32
- # @param [Hash] definition The definition
33
- # @param [String] commit_message The commit_message
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] The valid
97
+ # @return [Boolean] Boolean if the flow definition is valid
103
98
  def valid
104
99
  @properties['valid']
105
100
  end
@@ -72,6 +72,15 @@ module Twilio
72
72
  self.v1.sims(sid)
73
73
  end
74
74
 
75
+ ##
76
+ # @param [String] sid The unique string that we created to identify the SMS
77
+ # Command resource.
78
+ # @return [Twilio::REST::Supersim::V1::SmsCommandInstance] if sid was passed.
79
+ # @return [Twilio::REST::Supersim::V1::SmsCommandList]
80
+ def sms_commands(sid=:unset)
81
+ self.v1.sms_commands(sid)
82
+ end
83
+
75
84
  ##
76
85
  # @return [Twilio::REST::Supersim::V1::UsageRecordInstance]
77
86
  def usage_records
@@ -20,6 +20,7 @@ module Twilio
20
20
  @networks = nil
21
21
  @network_access_profiles = nil
22
22
  @sims = nil
23
+ @sms_commands = nil
23
24
  @usage_records = nil
24
25
  end
25
26
 
@@ -29,11 +30,12 @@ module Twilio
29
30
  # @return [Twilio::REST::Supersim::V1::CommandList]
30
31
  def commands(sid=:unset)
31
32
  if sid.nil?
32
- raise ArgumentError, 'sid cannot be nil'
33
- elsif sid == :unset
34
- @commands ||= CommandList.new self
33
+ raise ArgumentError, 'sid cannot be nil'
34
+ end
35
+ if sid == :unset
36
+ @commands ||= CommandList.new self
35
37
  else
36
- CommandContext.new(self, sid)
38
+ CommandContext.new(self, sid)
37
39
  end
38
40
  end
39
41
 
@@ -43,11 +45,12 @@ module Twilio
43
45
  # @return [Twilio::REST::Supersim::V1::FleetList]
44
46
  def fleets(sid=:unset)
45
47
  if sid.nil?
46
- raise ArgumentError, 'sid cannot be nil'
47
- elsif sid == :unset
48
- @fleets ||= FleetList.new self
48
+ raise ArgumentError, 'sid cannot be nil'
49
+ end
50
+ if sid == :unset
51
+ @fleets ||= FleetList.new self
49
52
  else
50
- FleetContext.new(self, sid)
53
+ FleetContext.new(self, sid)
51
54
  end
52
55
  end
53
56
 
@@ -57,11 +60,12 @@ module Twilio
57
60
  # @return [Twilio::REST::Supersim::V1::NetworkList]
58
61
  def networks(sid=:unset)
59
62
  if sid.nil?
60
- raise ArgumentError, 'sid cannot be nil'
61
- elsif sid == :unset
62
- @networks ||= NetworkList.new self
63
+ raise ArgumentError, 'sid cannot be nil'
64
+ end
65
+ if sid == :unset
66
+ @networks ||= NetworkList.new self
63
67
  else
64
- NetworkContext.new(self, sid)
68
+ NetworkContext.new(self, sid)
65
69
  end
66
70
  end
67
71
 
@@ -71,11 +75,12 @@ module Twilio
71
75
  # @return [Twilio::REST::Supersim::V1::NetworkAccessProfileList]
72
76
  def network_access_profiles(sid=:unset)
73
77
  if sid.nil?
74
- raise ArgumentError, 'sid cannot be nil'
75
- elsif sid == :unset
76
- @network_access_profiles ||= NetworkAccessProfileList.new self
78
+ raise ArgumentError, 'sid cannot be nil'
79
+ end
80
+ if sid == :unset
81
+ @network_access_profiles ||= NetworkAccessProfileList.new self
77
82
  else
78
- NetworkAccessProfileContext.new(self, sid)
83
+ NetworkAccessProfileContext.new(self, sid)
79
84
  end
80
85
  end
81
86
 
@@ -85,11 +90,27 @@ module Twilio
85
90
  # @return [Twilio::REST::Supersim::V1::SimList]
86
91
  def sims(sid=:unset)
87
92
  if sid.nil?
88
- raise ArgumentError, 'sid cannot be nil'
89
- elsif sid == :unset
90
- @sims ||= SimList.new self
93
+ raise ArgumentError, 'sid cannot be nil'
94
+ end
95
+ if sid == :unset
96
+ @sims ||= SimList.new self
97
+ else
98
+ SimContext.new(self, sid)
99
+ end
100
+ end
101
+
102
+ ##
103
+ # @param [String] sid The SID of the SMS Command resource to fetch.
104
+ # @return [Twilio::REST::Supersim::V1::SmsCommandContext] if sid was passed.
105
+ # @return [Twilio::REST::Supersim::V1::SmsCommandList]
106
+ def sms_commands(sid=:unset)
107
+ if sid.nil?
108
+ raise ArgumentError, 'sid cannot be nil'
109
+ end
110
+ if sid == :unset
111
+ @sms_commands ||= SmsCommandList.new self
91
112
  else
92
- SimContext.new(self, sid)
113
+ SmsCommandContext.new(self, sid)
93
114
  end
94
115
  end
95
116