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
@@ -26,7 +26,7 @@ module Twilio
26
26
  super(version)
27
27
  # Path Solution
28
28
  @solution = { }
29
- @uri = "/Insights/QM/Settings/AnswerSets"
29
+ @uri = "/Insights/QualityManagement/Settings/AnswerSets"
30
30
 
31
31
  end
32
32
  ##
@@ -26,7 +26,7 @@ module Twilio
26
26
  super(version)
27
27
  # Path Solution
28
28
  @solution = { }
29
- @uri = "/Insights/QM/Settings/CommentTags"
29
+ @uri = "/Insights/QualityManagement/Settings/CommentTags"
30
30
 
31
31
  end
32
32
  ##
@@ -189,13 +189,8 @@ module Twilio
189
189
  def invites
190
190
  unless @invites
191
191
  @invites = InteractionChannelInviteList.new(
192
- @version,
193
- interaction_sid: @solution[:interaction_sid],
194
- interaction_channel_sid: @solution[:sid]
195
-
196
- )
192
+ @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
197
193
  end
198
-
199
194
  @invites
200
195
  end
201
196
  ##
@@ -212,11 +207,7 @@ module Twilio
212
207
 
213
208
  unless @participants
214
209
  @participants = InteractionChannelParticipantList.new(
215
- @version,
216
- interaction_sid: @solution[:interaction_sid],
217
- interaction_channel_sid: @solution[:sid]
218
-
219
- )
210
+ @version, interaction_sid: @solution[:interaction_sid], channel_sid: @solution[:sid], )
220
211
  end
221
212
 
222
213
  @participants
@@ -104,10 +104,7 @@ module Twilio
104
104
 
105
105
  unless @channels
106
106
  @channels = InteractionChannelList.new(
107
- @version,
108
- interaction_sid: @solution[:sid]
109
-
110
- )
107
+ @version, interaction_sid: @solution[:sid], )
111
108
  end
112
109
 
113
110
  @channels
@@ -40,17 +40,17 @@ module Twilio
40
40
  end
41
41
 
42
42
  ##
43
- # @param [String] assessment_id The id of the assessment to be modified
44
- # @return [Twilio::REST::FlexApi::V1::AssessmentsContext] if assessmentId was passed.
43
+ # @param [String] assessment_sid The SID of the assessment to be modified
44
+ # @return [Twilio::REST::FlexApi::V1::AssessmentsContext] if assessmentSid was passed.
45
45
  # @return [Twilio::REST::FlexApi::V1::AssessmentsList]
46
- def assessments(assessment_id=:unset)
47
- if assessment_id.nil?
48
- raise ArgumentError, 'assessment_id cannot be nil'
46
+ def assessments(assessment_sid=:unset)
47
+ if assessment_sid.nil?
48
+ raise ArgumentError, 'assessment_sid cannot be nil'
49
49
  end
50
- if assessment_id == :unset
50
+ if assessment_sid == :unset
51
51
  @assessments ||= AssessmentsList.new self
52
52
  else
53
- AssessmentsContext.new(self, assessment_id)
53
+ AssessmentsContext.new(self, assessment_sid)
54
54
  end
55
55
  end
56
56
  ##
@@ -97,60 +97,51 @@ module Twilio
97
97
  @insights_conversations ||= InsightsConversationsList.new self
98
98
  end
99
99
  ##
100
- # @param [String] id The unique ID of the questionnaire
101
- # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesContext] if id was passed.
100
+ # @param [String] questionnaire_sid The SID of the questionnaire
101
+ # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesContext] if questionnaireSid was passed.
102
102
  # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesList]
103
- def insights_questionnaires(id=:unset)
104
- if id.nil?
105
- raise ArgumentError, 'id cannot be nil'
103
+ def insights_questionnaires(questionnaire_sid=:unset)
104
+ if questionnaire_sid.nil?
105
+ raise ArgumentError, 'questionnaire_sid cannot be nil'
106
106
  end
107
- if id == :unset
107
+ if questionnaire_sid == :unset
108
108
  @insights_questionnaires ||= InsightsQuestionnairesList.new self
109
109
  else
110
- InsightsQuestionnairesContext.new(self, id)
110
+ InsightsQuestionnairesContext.new(self, questionnaire_sid)
111
111
  end
112
112
  end
113
113
  ##
114
- # @param [String] category_id The ID of the category to be update
115
- # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesCategoryContext] if categoryId was passed.
114
+ # @param [String] category_sid The SID of the category to be updated
115
+ # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesCategoryContext] if categorySid was passed.
116
116
  # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesCategoryList]
117
- def insights_questionnaires_category(category_id=:unset)
118
- if category_id.nil?
119
- raise ArgumentError, 'category_id cannot be nil'
117
+ def insights_questionnaires_category(category_sid=:unset)
118
+ if category_sid.nil?
119
+ raise ArgumentError, 'category_sid cannot be nil'
120
120
  end
121
- if category_id == :unset
121
+ if category_sid == :unset
122
122
  @insights_questionnaires_category ||= InsightsQuestionnairesCategoryList.new self
123
123
  else
124
- InsightsQuestionnairesCategoryContext.new(self, category_id)
124
+ InsightsQuestionnairesCategoryContext.new(self, category_sid)
125
125
  end
126
126
  end
127
127
  ##
128
- # @param [String] question_id The unique ID of the question
129
- # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesQuestionContext] if questionId was passed.
128
+ # @param [String] question_sid The SID of the question
129
+ # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesQuestionContext] if questionSid was passed.
130
130
  # @return [Twilio::REST::FlexApi::V1::InsightsQuestionnairesQuestionList]
131
- def insights_questionnaires_question(question_id=:unset)
132
- if question_id.nil?
133
- raise ArgumentError, 'question_id cannot be nil'
131
+ def insights_questionnaires_question(question_sid=:unset)
132
+ if question_sid.nil?
133
+ raise ArgumentError, 'question_sid cannot be nil'
134
134
  end
135
- if question_id == :unset
135
+ if question_sid == :unset
136
136
  @insights_questionnaires_question ||= InsightsQuestionnairesQuestionList.new self
137
137
  else
138
- InsightsQuestionnairesQuestionContext.new(self, question_id)
138
+ InsightsQuestionnairesQuestionContext.new(self, question_sid)
139
139
  end
140
140
  end
141
141
  ##
142
- # @param [String] segment_id To unique id of the segment
143
- # @return [Twilio::REST::FlexApi::V1::InsightsSegmentsContext] if segmentId was passed.
144
142
  # @return [Twilio::REST::FlexApi::V1::InsightsSegmentsList]
145
- def insights_segments(segment_id=:unset)
146
- if segment_id.nil?
147
- raise ArgumentError, 'segment_id cannot be nil'
148
- end
149
- if segment_id == :unset
150
- @insights_segments ||= InsightsSegmentsList.new self
151
- else
152
- InsightsSegmentsContext.new(self, segment_id)
153
- end
143
+ def insights_segments
144
+ @insights_segments ||= InsightsSegmentsList.new self
154
145
  end
155
146
  ##
156
147
  # @return [Twilio::REST::FlexApi::V1::insightsSessionContext]
@@ -78,12 +78,8 @@ module Twilio
78
78
  def metrics
79
79
  unless @metrics
80
80
  @metrics = MetricList.new(
81
- @version,
82
- call_sid: @solution[:sid]
83
-
84
- )
81
+ @version, call_sid: @solution[:sid], )
85
82
  end
86
-
87
83
  @metrics
88
84
  end
89
85
  ##
@@ -93,12 +89,8 @@ module Twilio
93
89
  def events
94
90
  unless @events
95
91
  @events = EventList.new(
96
- @version,
97
- call_sid: @solution[:sid]
98
-
99
- )
92
+ @version, call_sid: @solution[:sid], )
100
93
  end
101
-
102
94
  @events
103
95
  end
104
96
  ##
@@ -237,10 +237,7 @@ module Twilio
237
237
 
238
238
  unless @conference_participants
239
239
  @conference_participants = ConferenceParticipantList.new(
240
- @version,
241
- conference_conference_sid: @solution[:conference_sid]
242
-
243
- )
240
+ @version, conference_sid: @solution[:conference_sid], )
244
241
  end
245
242
 
246
243
  @conference_participants
@@ -204,10 +204,7 @@ module Twilio
204
204
 
205
205
  unless @participants
206
206
  @participants = ParticipantList.new(
207
- @version,
208
- room_room_sid: @solution[:room_sid]
209
-
210
- )
207
+ @version, room_sid: @solution[:room_sid], )
211
208
  end
212
209
 
213
210
  @participants
@@ -244,11 +244,7 @@ module Twilio
244
244
 
245
245
  unless @members
246
246
  @members = MemberList.new(
247
- @version,
248
- service_sid: @solution[:service_sid],
249
- channel_sid: @solution[:sid]
250
-
251
- )
247
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
252
248
  end
253
249
 
254
250
  @members
@@ -267,11 +263,7 @@ module Twilio
267
263
 
268
264
  unless @messages
269
265
  @messages = MessageList.new(
270
- @version,
271
- service_sid: @solution[:service_sid],
272
- channel_sid: @solution[:sid]
273
-
274
- )
266
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
275
267
  end
276
268
 
277
269
  @messages
@@ -290,11 +282,7 @@ module Twilio
290
282
 
291
283
  unless @invites
292
284
  @invites = InviteList.new(
293
- @version,
294
- service_sid: @solution[:service_sid],
295
- channel_sid: @solution[:sid]
296
-
297
- )
285
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
298
286
  end
299
287
 
300
288
  @invites
@@ -228,13 +228,8 @@ module Twilio
228
228
  def user_channels
229
229
  unless @user_channels
230
230
  @user_channels = UserChannelList.new(
231
- @version,
232
- service_sid: @solution[:service_sid],
233
- user_sid: @solution[:sid]
234
-
235
- )
231
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
236
232
  end
237
-
238
233
  @user_channels
239
234
  end
240
235
 
@@ -375,10 +375,7 @@ module Twilio
375
375
 
376
376
  unless @channels
377
377
  @channels = ChannelList.new(
378
- @version,
379
- service_sid: @solution[:sid]
380
-
381
- )
378
+ @version, service_sid: @solution[:sid], )
382
379
  end
383
380
 
384
381
  @channels
@@ -397,10 +394,7 @@ module Twilio
397
394
 
398
395
  unless @roles
399
396
  @roles = RoleList.new(
400
- @version,
401
- service_sid: @solution[:sid]
402
-
403
- )
397
+ @version, service_sid: @solution[:sid], )
404
398
  end
405
399
 
406
400
  @roles
@@ -419,10 +413,7 @@ module Twilio
419
413
 
420
414
  unless @users
421
415
  @users = UserList.new(
422
- @version,
423
- service_sid: @solution[:sid]
424
-
425
- )
416
+ @version, service_sid: @solution[:sid], )
426
417
  end
427
418
 
428
419
  @users
@@ -273,11 +273,7 @@ module Twilio
273
273
 
274
274
  unless @webhooks
275
275
  @webhooks = WebhookList.new(
276
- @version,
277
- service_sid: @solution[:service_sid],
278
- channel_sid: @solution[:sid]
279
-
280
- )
276
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
281
277
  end
282
278
 
283
279
  @webhooks
@@ -296,11 +292,7 @@ module Twilio
296
292
 
297
293
  unless @members
298
294
  @members = MemberList.new(
299
- @version,
300
- service_sid: @solution[:service_sid],
301
- channel_sid: @solution[:sid]
302
-
303
- )
295
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
304
296
  end
305
297
 
306
298
  @members
@@ -319,11 +311,7 @@ module Twilio
319
311
 
320
312
  unless @messages
321
313
  @messages = MessageList.new(
322
- @version,
323
- service_sid: @solution[:service_sid],
324
- channel_sid: @solution[:sid]
325
-
326
- )
314
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
327
315
  end
328
316
 
329
317
  @messages
@@ -342,11 +330,7 @@ module Twilio
342
330
 
343
331
  unless @invites
344
332
  @invites = InviteList.new(
345
- @version,
346
- service_sid: @solution[:service_sid],
347
- channel_sid: @solution[:sid]
348
-
349
- )
333
+ @version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
350
334
  end
351
335
 
352
336
  @invites
@@ -242,11 +242,7 @@ module Twilio
242
242
 
243
243
  unless @user_channels
244
244
  @user_channels = UserChannelList.new(
245
- @version,
246
- service_sid: @solution[:service_sid],
247
- user_sid: @solution[:sid]
248
-
249
- )
245
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
250
246
  end
251
247
 
252
248
  @user_channels
@@ -265,11 +261,7 @@ module Twilio
265
261
 
266
262
  unless @user_bindings
267
263
  @user_bindings = UserBindingList.new(
268
- @version,
269
- service_sid: @solution[:service_sid],
270
- user_sid: @solution[:sid]
271
-
272
- )
264
+ @version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
273
265
  end
274
266
 
275
267
  @user_bindings
@@ -307,10 +307,7 @@ module Twilio
307
307
 
308
308
  unless @bindings
309
309
  @bindings = BindingList.new(
310
- @version,
311
- service_sid: @solution[:sid]
312
-
313
- )
310
+ @version, service_sid: @solution[:sid], )
314
311
  end
315
312
 
316
313
  @bindings
@@ -329,10 +326,7 @@ module Twilio
329
326
 
330
327
  unless @channels
331
328
  @channels = ChannelList.new(
332
- @version,
333
- service_sid: @solution[:sid]
334
-
335
- )
329
+ @version, service_sid: @solution[:sid], )
336
330
  end
337
331
 
338
332
  @channels
@@ -351,10 +345,7 @@ module Twilio
351
345
 
352
346
  unless @roles
353
347
  @roles = RoleList.new(
354
- @version,
355
- service_sid: @solution[:sid]
356
-
357
- )
348
+ @version, service_sid: @solution[:sid], )
358
349
  end
359
350
 
360
351
  @roles
@@ -373,10 +364,7 @@ module Twilio
373
364
 
374
365
  unless @users
375
366
  @users = UserList.new(
376
- @version,
377
- service_sid: @solution[:sid]
378
-
379
- )
367
+ @version, service_sid: @solution[:sid], )
380
368
  end
381
369
 
382
370
  @users
@@ -207,12 +207,8 @@ module Twilio
207
207
  def brand_registration_otps
208
208
  unless @brand_registration_otps
209
209
  @brand_registration_otps = BrandRegistrationOtpList.new(
210
- @version,
211
- brand_registration_sid: @solution[:sid]
212
-
213
- )
210
+ @version, brand_sid: @solution[:sid], brand_registration_sid: @solution[:sid], )
214
211
  end
215
-
216
212
  @brand_registration_otps
217
213
  end
218
214
  ##
@@ -229,10 +225,7 @@ module Twilio
229
225
 
230
226
  unless @brand_vettings
231
227
  @brand_vettings = BrandVettingList.new(
232
- @version,
233
- brand_registration_sid: @solution[:sid]
234
-
235
- )
228
+ @version, brand_sid: @solution[:sid], brand_registration_sid: @solution[:sid], )
236
229
  end
237
230
 
238
231
  @brand_vettings
@@ -71,23 +71,17 @@ module Twilio
71
71
 
72
72
  ##
73
73
  # Update the DomainConfigInstance
74
- # @param [Array[String]] messaging_service_sids A list of messagingServiceSids (with prefix MG)
75
74
  # @param [String] fallback_url Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
76
75
  # @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
77
- # @param [String] messaging_service_sids_action An action type for messaging_service_sids operation (ADD, DELETE, REPLACE)
78
76
  # @return [DomainConfigInstance] Updated DomainConfigInstance
79
77
  def update(
80
- messaging_service_sids: nil,
81
78
  fallback_url: :unset,
82
- callback_url: :unset,
83
- messaging_service_sids_action: :unset
79
+ callback_url: :unset
84
80
  )
85
81
 
86
82
  data = Twilio::Values.of({
87
- 'MessagingServiceSids' => Twilio.serialize_list(messaging_service_sids) { |e| e },
88
83
  'FallbackUrl' => fallback_url,
89
84
  'CallbackUrl' => callback_url,
90
- 'MessagingServiceSidsAction' => messaging_service_sids_action,
91
85
  })
92
86
 
93
87
  payload = @version.update('POST', @uri, data: data)
@@ -159,7 +153,6 @@ module Twilio
159
153
  @properties = {
160
154
  'domain_sid' => payload['domain_sid'],
161
155
  'config_sid' => payload['config_sid'],
162
- 'messaging_service_sids' => payload['messaging_service_sids'],
163
156
  'fallback_url' => payload['fallback_url'],
164
157
  'callback_url' => payload['callback_url'],
165
158
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
@@ -195,12 +188,6 @@ module Twilio
195
188
  @properties['config_sid']
196
189
  end
197
190
 
198
- ##
199
- # @return [Array<String>] A list of messagingServiceSids (with prefix MG).
200
- def messaging_service_sids
201
- @properties['messaging_service_sids']
202
- end
203
-
204
191
  ##
205
192
  # @return [String] Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
206
193
  def fallback_url
@@ -241,23 +228,17 @@ module Twilio
241
228
 
242
229
  ##
243
230
  # Update the DomainConfigInstance
244
- # @param [Array[String]] messaging_service_sids A list of messagingServiceSids (with prefix MG)
245
231
  # @param [String] fallback_url Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
246
232
  # @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
247
- # @param [String] messaging_service_sids_action An action type for messaging_service_sids operation (ADD, DELETE, REPLACE)
248
233
  # @return [DomainConfigInstance] Updated DomainConfigInstance
249
234
  def update(
250
- messaging_service_sids: nil,
251
235
  fallback_url: :unset,
252
- callback_url: :unset,
253
- messaging_service_sids_action: :unset
236
+ callback_url: :unset
254
237
  )
255
238
 
256
239
  context.update(
257
- messaging_service_sids: messaging_service_sids,
258
240
  fallback_url: fallback_url,
259
241
  callback_url: callback_url,
260
- messaging_service_sids_action: messaging_service_sids_action,
261
242
  )
262
243
  end
263
244