twilio-ruby 6.0.0.pre.rc.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +92 -40
  3. data/CONTRIBUTING.md +10 -8
  4. data/README.md +128 -46
  5. data/UPGRADE.md +7 -4
  6. data/advanced-examples/custom-http-client.md +170 -0
  7. data/lib/twilio-ruby/jwt/access_token.rb +0 -59
  8. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -6
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -42
  10. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -42
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -10
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -6
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -11
  15. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -6
  17. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -10
  18. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -5
  19. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -16
  20. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -5
  21. data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -103
  22. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -5
  23. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -10
  24. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -24
  25. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -9
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -15
  27. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -6
  28. data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -12
  29. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -20
  30. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -10
  31. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -16
  32. data/lib/twilio-ruby/rest/client.rb +16 -15
  33. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -5
  34. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -36
  35. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -6
  36. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -39
  37. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -5
  38. data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -21
  39. data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -4
  40. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -4
  41. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -10
  42. data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -4
  43. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +20 -20
  44. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +5 -5
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +23 -23
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +13 -13
  47. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +31 -31
  48. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +13 -86
  49. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +1 -1
  50. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +1 -1
  51. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -11
  52. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -4
  53. data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -39
  54. data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -10
  55. data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -4
  56. data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -4
  57. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -15
  58. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -6
  59. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -12
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -20
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -10
  62. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -16
  63. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -9
  64. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +2 -21
  65. data/lib/twilio-ruby/rest/messaging/v1/service.rb +31 -47
  66. data/lib/twilio-ruby/rest/messaging/v1.rb +0 -15
  67. data/lib/twilio-ruby/rest/messaging.rb +1 -1
  68. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -8
  69. data/lib/twilio-ruby/rest/microvisor.rb +2 -1
  70. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -9
  71. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -18
  72. data/lib/twilio-ruby/rest/oauth.rb +1 -1
  73. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -16
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -5
  75. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -4
  76. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -4
  77. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -5
  78. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -10
  79. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -10
  80. data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -12
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -5
  82. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -10
  83. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -20
  84. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -6
  85. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -10
  86. data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -12
  87. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -5
  88. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -15
  89. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -5
  90. data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -16
  91. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -5
  92. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -5
  93. data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -8
  94. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -5
  95. data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -8
  96. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -4
  97. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -10
  98. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -5
  99. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -10
  100. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -10
  101. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -6
  102. data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -16
  103. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -5
  104. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -10
  105. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -28
  106. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -16
  107. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -12
  108. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -12
  109. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -7
  110. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -16
  111. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -5
  112. data/lib/twilio-ruby/rest/verify/v2/service.rb +11 -33
  113. data/lib/twilio-ruby/rest/verify/v2/template.rb +5 -5
  114. data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -16
  115. data/lib/twilio-ruby/rest/video/v1/room.rb +3 -13
  116. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -4
  117. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -5
  118. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -10
  119. data/lib/twilio-ruby/version.rb +1 -1
  120. data/twilio-ruby.gemspec +1 -1
  121. metadata +9 -9
  122. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -730
@@ -205,10 +205,10 @@ module Twilio
205
205
 
206
206
  # Dependents
207
207
  @us_app_to_person_usecases = nil
208
+ @alpha_senders = nil
208
209
  @short_codes = nil
209
210
  @us_app_to_person = nil
210
211
  @phone_numbers = nil
211
- @alpha_senders = nil
212
212
  end
213
213
  ##
214
214
  # Delete the ServiceInstance
@@ -303,15 +303,30 @@ module Twilio
303
303
  def us_app_to_person_usecases
304
304
  unless @us_app_to_person_usecases
305
305
  @us_app_to_person_usecases = UsAppToPersonUsecaseList.new(
306
- @version,
307
- service_sid: @solution[:sid]
308
-
309
- )
306
+ @version, service_sid: @solution[:sid], messaging_service_sid: @solution[:sid], )
310
307
  end
311
-
312
308
  @us_app_to_person_usecases
313
309
  end
314
310
  ##
311
+ # Access the alpha_senders
312
+ # @return [AlphaSenderList]
313
+ # @return [AlphaSenderContext] if sid was passed.
314
+ def alpha_senders(sid=:unset)
315
+
316
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
317
+
318
+ if sid != :unset
319
+ return AlphaSenderContext.new(@version, @solution[:sid],sid )
320
+ end
321
+
322
+ unless @alpha_senders
323
+ @alpha_senders = AlphaSenderList.new(
324
+ @version, service_sid: @solution[:sid], messaging_service_sid: @solution[:sid], )
325
+ end
326
+
327
+ @alpha_senders
328
+ end
329
+ ##
315
330
  # Access the short_codes
316
331
  # @return [ShortCodeList]
317
332
  # @return [ShortCodeContext] if sid was passed.
@@ -325,10 +340,7 @@ module Twilio
325
340
 
326
341
  unless @short_codes
327
342
  @short_codes = ShortCodeList.new(
328
- @version,
329
- service_sid: @solution[:sid]
330
-
331
- )
343
+ @version, service_sid: @solution[:sid], messaging_service_sid: @solution[:sid], )
332
344
  end
333
345
 
334
346
  @short_codes
@@ -347,10 +359,7 @@ module Twilio
347
359
 
348
360
  unless @us_app_to_person
349
361
  @us_app_to_person = UsAppToPersonList.new(
350
- @version,
351
- service_sid: @solution[:sid]
352
-
353
- )
362
+ @version, service_sid: @solution[:sid], messaging_service_sid: @solution[:sid], )
354
363
  end
355
364
 
356
365
  @us_app_to_person
@@ -369,36 +378,11 @@ module Twilio
369
378
 
370
379
  unless @phone_numbers
371
380
  @phone_numbers = PhoneNumberList.new(
372
- @version,
373
- service_sid: @solution[:sid]
374
-
375
- )
381
+ @version, service_sid: @solution[:sid], messaging_service_sid: @solution[:sid], )
376
382
  end
377
383
 
378
384
  @phone_numbers
379
385
  end
380
- ##
381
- # Access the alpha_senders
382
- # @return [AlphaSenderList]
383
- # @return [AlphaSenderContext] if sid was passed.
384
- def alpha_senders(sid=:unset)
385
-
386
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
387
-
388
- if sid != :unset
389
- return AlphaSenderContext.new(@version, @solution[:sid],sid )
390
- end
391
-
392
- unless @alpha_senders
393
- @alpha_senders = AlphaSenderList.new(
394
- @version,
395
- service_sid: @solution[:sid]
396
-
397
- )
398
- end
399
-
400
- @alpha_senders
401
- end
402
386
 
403
387
  ##
404
388
  # Provide a user friendly representation
@@ -718,6 +702,13 @@ module Twilio
718
702
  context.us_app_to_person_usecases
719
703
  end
720
704
 
705
+ ##
706
+ # Access the alpha_senders
707
+ # @return [alpha_senders] alpha_senders
708
+ def alpha_senders
709
+ context.alpha_senders
710
+ end
711
+
721
712
  ##
722
713
  # Access the short_codes
723
714
  # @return [short_codes] short_codes
@@ -739,13 +730,6 @@ module Twilio
739
730
  context.phone_numbers
740
731
  end
741
732
 
742
- ##
743
- # Access the alpha_senders
744
- # @return [alpha_senders] alpha_senders
745
- def alpha_senders
746
- context.alpha_senders
747
- end
748
-
749
733
  ##
750
734
  # Provide a user friendly representation
751
735
  def to_s
@@ -29,7 +29,6 @@ module Twilio
29
29
  @external_campaign = nil
30
30
  @linkshortening_messaging_service = nil
31
31
  @services = nil
32
- @tollfree_verifications = nil
33
32
  @usecases = nil
34
33
  end
35
34
 
@@ -150,20 +149,6 @@ module Twilio
150
149
  end
151
150
  end
152
151
  ##
153
- # @param [String] sid The unique string to identify Tollfree Verification.
154
- # @return [Twilio::REST::Messaging::V1::TollfreeVerificationContext] if sid was passed.
155
- # @return [Twilio::REST::Messaging::V1::TollfreeVerificationList]
156
- def tollfree_verifications(sid=:unset)
157
- if sid.nil?
158
- raise ArgumentError, 'sid cannot be nil'
159
- end
160
- if sid == :unset
161
- @tollfree_verifications ||= TollfreeVerificationList.new self
162
- else
163
- TollfreeVerificationContext.new(self, sid)
164
- end
165
- end
166
- ##
167
152
  # @return [Twilio::REST::Messaging::V1::UsecaseList]
168
153
  def usecases
169
154
  @usecases ||= UsecaseList.new self
@@ -71,4 +71,4 @@ module Twilio
71
71
  end
72
72
  end
73
73
  end
74
- end
74
+ end
@@ -196,10 +196,7 @@ module Twilio
196
196
 
197
197
  unless @device_secrets
198
198
  @device_secrets = DeviceSecretList.new(
199
- @version,
200
- device_sid: @solution[:sid]
201
-
202
- )
199
+ @version, device_sid: @solution[:sid], )
203
200
  end
204
201
 
205
202
  @device_secrets
@@ -218,10 +215,7 @@ module Twilio
218
215
 
219
216
  unless @device_configs
220
217
  @device_configs = DeviceConfigList.new(
221
- @version,
222
- device_sid: @solution[:sid]
223
-
224
- )
218
+ @version, device_sid: @solution[:sid], )
225
219
  end
226
220
 
227
221
  @device_configs
@@ -1,6 +1,7 @@
1
1
  module Twilio
2
2
  module REST
3
3
  class Microvisor < MicrovisorBase
4
+
4
5
  ##
5
6
  # @param [String] sid A 34-character string that uniquely identifies this App.
6
7
  # @return [Twilio::REST::Microvisor::V1::AppInstance] if sid was passed.
@@ -20,4 +21,4 @@ module Twilio
20
21
  end
21
22
  end
22
23
  end
23
- end
24
+ end
@@ -295,12 +295,8 @@ module Twilio
295
295
  def notifications
296
296
  unless @notifications
297
297
  @notifications = NotificationList.new(
298
- @version,
299
- service_sid: @solution[:sid]
300
-
301
- )
298
+ @version, service_sid: @solution[:sid], )
302
299
  end
303
-
304
300
  @notifications
305
301
  end
306
302
  ##
@@ -317,10 +313,7 @@ module Twilio
317
313
 
318
314
  unless @bindings
319
315
  @bindings = BindingList.new(
320
- @version,
321
- service_sid: @solution[:sid]
322
-
323
- )
316
+ @version, service_sid: @solution[:sid], )
324
317
  end
325
318
 
326
319
  @bindings
@@ -316,12 +316,8 @@ module Twilio
316
316
  def bundle_copies
317
317
  unless @bundle_copies
318
318
  @bundle_copies = BundleCopyList.new(
319
- @version,
320
- bundle_sid: @solution[:sid]
321
-
322
- )
319
+ @version, bundle_sid: @solution[:sid], )
323
320
  end
324
-
325
321
  @bundle_copies
326
322
  end
327
323
  ##
@@ -331,12 +327,8 @@ module Twilio
331
327
  def replace_items
332
328
  unless @replace_items
333
329
  @replace_items = ReplaceItemsList.new(
334
- @version,
335
- bundle_sid: @solution[:sid]
336
-
337
- )
330
+ @version, bundle_sid: @solution[:sid], )
338
331
  end
339
-
340
332
  @replace_items
341
333
  end
342
334
  ##
@@ -353,10 +345,7 @@ module Twilio
353
345
 
354
346
  unless @item_assignments
355
347
  @item_assignments = ItemAssignmentList.new(
356
- @version,
357
- bundle_sid: @solution[:sid]
358
-
359
- )
348
+ @version, bundle_sid: @solution[:sid], )
360
349
  end
361
350
 
362
351
  @item_assignments
@@ -375,10 +364,7 @@ module Twilio
375
364
 
376
365
  unless @evaluations
377
366
  @evaluations = EvaluationList.new(
378
- @version,
379
- bundle_sid: @solution[:sid]
380
-
381
- )
367
+ @version, bundle_sid: @solution[:sid], )
382
368
  end
383
369
 
384
370
  @evaluations
@@ -30,4 +30,4 @@ module Twilio
30
30
  end
31
31
  end
32
32
  end
33
- end
33
+ end
@@ -222,10 +222,7 @@ module Twilio
222
222
 
223
223
  unless @devices
224
224
  @devices = DeviceList.new(
225
- @version,
226
- fleet_sid: @solution[:sid]
227
-
228
- )
225
+ @version, fleet_sid: @solution[:sid], )
229
226
  end
230
227
 
231
228
  @devices
@@ -244,10 +241,7 @@ module Twilio
244
241
 
245
242
  unless @keys
246
243
  @keys = KeyList.new(
247
- @version,
248
- fleet_sid: @solution[:sid]
249
-
250
- )
244
+ @version, fleet_sid: @solution[:sid], )
251
245
  end
252
246
 
253
247
  @keys
@@ -266,10 +260,7 @@ module Twilio
266
260
 
267
261
  unless @deployments
268
262
  @deployments = DeploymentList.new(
269
- @version,
270
- fleet_sid: @solution[:sid]
271
-
272
- )
263
+ @version, fleet_sid: @solution[:sid], )
273
264
  end
274
265
 
275
266
  @deployments
@@ -288,10 +279,7 @@ module Twilio
288
279
 
289
280
  unless @certificates
290
281
  @certificates = CertificateList.new(
291
- @version,
292
- fleet_sid: @solution[:sid]
293
-
294
- )
282
+ @version, fleet_sid: @solution[:sid], )
295
283
  end
296
284
 
297
285
  @certificates
@@ -248,12 +248,8 @@ module Twilio
248
248
  def dependent_hosted_number_orders
249
249
  unless @dependent_hosted_number_orders
250
250
  @dependent_hosted_number_orders = DependentHostedNumberOrderList.new(
251
- @version,
252
- authorization_document_sid: @solution[:sid]
253
-
254
- )
251
+ @version, signing_document_sid: @solution[:sid], )
255
252
  end
256
-
257
253
  @dependent_hosted_number_orders
258
254
  end
259
255
 
@@ -169,10 +169,7 @@ module Twilio
169
169
 
170
170
  unless @extensions
171
171
  @extensions = AvailableAddOnExtensionList.new(
172
- @version,
173
- available_add_on_sid: @solution[:sid]
174
-
175
- )
172
+ @version, available_add_on_sid: @solution[:sid], )
176
173
  end
177
174
 
178
175
  @extensions
@@ -228,10 +228,7 @@ module Twilio
228
228
 
229
229
  unless @extensions
230
230
  @extensions = InstalledAddOnExtensionList.new(
231
- @version,
232
- installed_add_on_sid: @solution[:sid]
233
-
234
- )
231
+ @version, installed_add_on_sid: @solution[:sid], )
235
232
  end
236
233
 
237
234
  @extensions
@@ -228,11 +228,7 @@ module Twilio
228
228
 
229
229
  unless @document_permissions
230
230
  @document_permissions = DocumentPermissionList.new(
231
- @version,
232
- service_sid: @solution[:service_sid],
233
- document_sid: @solution[:sid]
234
-
235
- )
231
+ @version, service_sid: @solution[:service_sid], document_sid: @solution[:sid], )
236
232
  end
237
233
 
238
234
  @document_permissions
@@ -202,11 +202,7 @@ module Twilio
202
202
 
203
203
  unless @sync_list_permissions
204
204
  @sync_list_permissions = SyncListPermissionList.new(
205
- @version,
206
- service_sid: @solution[:service_sid],
207
- sync_list_sid: @solution[:sid]
208
-
209
- )
205
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
210
206
  end
211
207
 
212
208
  @sync_list_permissions
@@ -225,11 +221,7 @@ module Twilio
225
221
 
226
222
  unless @sync_list_items
227
223
  @sync_list_items = SyncListItemList.new(
228
- @version,
229
- service_sid: @solution[:service_sid],
230
- sync_list_sid: @solution[:sid]
231
-
232
- )
224
+ @version, service_sid: @solution[:service_sid], list_sid: @solution[:sid], )
233
225
  end
234
226
 
235
227
  @sync_list_items
@@ -202,11 +202,7 @@ module Twilio
202
202
 
203
203
  unless @sync_map_items
204
204
  @sync_map_items = SyncMapItemList.new(
205
- @version,
206
- service_sid: @solution[:service_sid],
207
- sync_map_sid: @solution[:sid]
208
-
209
- )
205
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
210
206
  end
211
207
 
212
208
  @sync_map_items
@@ -225,11 +221,7 @@ module Twilio
225
221
 
226
222
  unless @sync_map_permissions
227
223
  @sync_map_permissions = SyncMapPermissionList.new(
228
- @version,
229
- service_sid: @solution[:service_sid],
230
- sync_map_sid: @solution[:sid]
231
-
232
- )
224
+ @version, service_sid: @solution[:service_sid], map_sid: @solution[:sid], )
233
225
  end
234
226
 
235
227
  @sync_map_permissions
@@ -236,10 +236,7 @@ module Twilio
236
236
 
237
237
  unless @sync_lists
238
238
  @sync_lists = SyncListList.new(
239
- @version,
240
- service_sid: @solution[:sid]
241
-
242
- )
239
+ @version, service_sid: @solution[:sid], )
243
240
  end
244
241
 
245
242
  @sync_lists
@@ -258,10 +255,7 @@ module Twilio
258
255
 
259
256
  unless @sync_maps
260
257
  @sync_maps = SyncMapList.new(
261
- @version,
262
- service_sid: @solution[:sid]
263
-
264
- )
258
+ @version, service_sid: @solution[:sid], )
265
259
  end
266
260
 
267
261
  @sync_maps
@@ -280,10 +274,7 @@ module Twilio
280
274
 
281
275
  unless @documents
282
276
  @documents = DocumentList.new(
283
- @version,
284
- service_sid: @solution[:sid]
285
-
286
- )
277
+ @version, service_sid: @solution[:sid], )
287
278
  end
288
279
 
289
280
  @documents
@@ -228,11 +228,7 @@ module Twilio
228
228
 
229
229
  unless @field_values
230
230
  @field_values = FieldValueList.new(
231
- @version,
232
- assistant_sid: @solution[:assistant_sid],
233
- field_type_sid: @solution[:sid]
234
-
235
- )
231
+ @version, assistant_sid: @solution[:assistant_sid], field_type_sid: @solution[:sid], )
236
232
  end
237
233
 
238
234
  @field_values
@@ -265,11 +265,7 @@ module Twilio
265
265
 
266
266
  unless @samples
267
267
  @samples = SampleList.new(
268
- @version,
269
- assistant_sid: @solution[:assistant_sid],
270
- task_sid: @solution[:sid]
271
-
272
- )
268
+ @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
273
269
  end
274
270
 
275
271
  @samples
@@ -288,11 +284,7 @@ module Twilio
288
284
 
289
285
  unless @fields
290
286
  @fields = FieldList.new(
291
- @version,
292
- assistant_sid: @solution[:assistant_sid],
293
- task_sid: @solution[:sid]
294
-
295
- )
287
+ @version, assistant_sid: @solution[:assistant_sid], task_sid: @solution[:sid], )
296
288
  end
297
289
 
298
290
  @fields
@@ -265,10 +265,7 @@ module Twilio
265
265
 
266
266
  unless @field_types
267
267
  @field_types = FieldTypeList.new(
268
- @version,
269
- assistant_sid: @solution[:sid]
270
-
271
- )
268
+ @version, assistant_sid: @solution[:sid], )
272
269
  end
273
270
 
274
271
  @field_types
@@ -297,10 +294,7 @@ module Twilio
297
294
 
298
295
  unless @tasks
299
296
  @tasks = TaskList.new(
300
- @version,
301
- assistant_sid: @solution[:sid]
302
-
303
- )
297
+ @version, assistant_sid: @solution[:sid], )
304
298
  end
305
299
 
306
300
  @tasks
@@ -319,10 +313,7 @@ module Twilio
319
313
 
320
314
  unless @dialogues
321
315
  @dialogues = DialogueList.new(
322
- @version,
323
- assistant_sid: @solution[:sid]
324
-
325
- )
316
+ @version, assistant_sid: @solution[:sid], )
326
317
  end
327
318
 
328
319
  @dialogues
@@ -351,10 +342,7 @@ module Twilio
351
342
 
352
343
  unless @model_builds
353
344
  @model_builds = ModelBuildList.new(
354
- @version,
355
- assistant_sid: @solution[:sid]
356
-
357
- )
345
+ @version, assistant_sid: @solution[:sid], )
358
346
  end
359
347
 
360
348
  @model_builds
@@ -383,10 +371,7 @@ module Twilio
383
371
 
384
372
  unless @queries
385
373
  @queries = QueryList.new(
386
- @version,
387
- assistant_sid: @solution[:sid]
388
-
389
- )
374
+ @version, assistant_sid: @solution[:sid], )
390
375
  end
391
376
 
392
377
  @queries
@@ -214,12 +214,7 @@ module Twilio
214
214
 
215
215
  unless @message_interactions
216
216
  @message_interactions = MessageInteractionList.new(
217
- @version,
218
- service_sid: @solution[:service_sid],
219
- session_sid: @solution[:session_sid],
220
- participant_sid: @solution[:sid]
221
-
222
- )
217
+ @version, service_sid: @solution[:service_sid], session_sid: @solution[:session_sid], participant_sid: @solution[:sid], )
223
218
  end
224
219
 
225
220
  @message_interactions
@@ -244,11 +244,7 @@ module Twilio
244
244
 
245
245
  unless @interactions
246
246
  @interactions = InteractionList.new(
247
- @version,
248
- service_sid: @solution[:service_sid],
249
- session_sid: @solution[:sid]
250
-
251
- )
247
+ @version, service_sid: @solution[:service_sid], session_sid: @solution[:sid], )
252
248
  end
253
249
 
254
250
  @interactions
@@ -267,11 +263,7 @@ module Twilio
267
263
 
268
264
  unless @participants
269
265
  @participants = ParticipantList.new(
270
- @version,
271
- service_sid: @solution[:service_sid],
272
- session_sid: @solution[:sid]
273
-
274
- )
266
+ @version, service_sid: @solution[:service_sid], session_sid: @solution[:sid], )
275
267
  end
276
268
 
277
269
  @participants
@@ -260,10 +260,7 @@ module Twilio
260
260
 
261
261
  unless @sessions
262
262
  @sessions = SessionList.new(
263
- @version,
264
- service_sid: @solution[:sid]
265
-
266
- )
263
+ @version, service_sid: @solution[:sid], )
267
264
  end
268
265
 
269
266
  @sessions
@@ -282,10 +279,7 @@ module Twilio
282
279
 
283
280
  unless @short_codes
284
281
  @short_codes = ShortCodeList.new(
285
- @version,
286
- service_sid: @solution[:sid]
287
-
288
- )
282
+ @version, service_sid: @solution[:sid], )
289
283
  end
290
284
 
291
285
  @short_codes
@@ -304,10 +298,7 @@ module Twilio
304
298
 
305
299
  unless @phone_numbers
306
300
  @phone_numbers = PhoneNumberList.new(
307
- @version,
308
- service_sid: @solution[:sid]
309
-
310
- )
301
+ @version, service_sid: @solution[:sid], )
311
302
  end
312
303
 
313
304
  @phone_numbers