twilio-ruby 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +20 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country.rb +7 -7
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +24 -24
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +6 -6
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +11 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +18 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +12 -18
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +30 -30
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +24 -24
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +9 -9
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/call.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +31 -3
- data/lib/twilio-ruby/rest/insights/v1/conference.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +28 -2
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +196 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +224 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +49 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
- data/lib/twilio-ruby/rest/numbers_base.rb +6 -1
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +4 -4
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +3 -3
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +5 -5
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +3 -3
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -7
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +4 -4
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +3 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service.rb +7 -7
- data/lib/twilio-ruby/rest/video/v1/room/participant.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -2
- data/lib/twilio-ruby/rest.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
|
@@ -375,7 +375,7 @@ module Twilio
|
|
|
375
375
|
|
|
376
376
|
unless @channels
|
|
377
377
|
@channels = ChannelList.new(
|
|
378
|
-
@version, service_sid: @solution[:sid],
|
|
378
|
+
@version, service_sid: @solution[:sid], )
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
@channels
|
|
@@ -394,7 +394,7 @@ module Twilio
|
|
|
394
394
|
|
|
395
395
|
unless @roles
|
|
396
396
|
@roles = RoleList.new(
|
|
397
|
-
@version, service_sid: @solution[:sid],
|
|
397
|
+
@version, service_sid: @solution[:sid], )
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
@roles
|
|
@@ -413,7 +413,7 @@ module Twilio
|
|
|
413
413
|
|
|
414
414
|
unless @users
|
|
415
415
|
@users = UserList.new(
|
|
416
|
-
@version, service_sid: @solution[:sid],
|
|
416
|
+
@version, service_sid: @solution[:sid], )
|
|
417
417
|
end
|
|
418
418
|
|
|
419
419
|
@users
|
|
@@ -273,7 +273,7 @@ module Twilio
|
|
|
273
273
|
|
|
274
274
|
unless @webhooks
|
|
275
275
|
@webhooks = WebhookList.new(
|
|
276
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
276
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
@webhooks
|
|
@@ -292,7 +292,7 @@ module Twilio
|
|
|
292
292
|
|
|
293
293
|
unless @members
|
|
294
294
|
@members = MemberList.new(
|
|
295
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
295
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
296
296
|
end
|
|
297
297
|
|
|
298
298
|
@members
|
|
@@ -311,7 +311,7 @@ module Twilio
|
|
|
311
311
|
|
|
312
312
|
unless @messages
|
|
313
313
|
@messages = MessageList.new(
|
|
314
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
314
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
315
315
|
end
|
|
316
316
|
|
|
317
317
|
@messages
|
|
@@ -330,7 +330,7 @@ module Twilio
|
|
|
330
330
|
|
|
331
331
|
unless @invites
|
|
332
332
|
@invites = InviteList.new(
|
|
333
|
-
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid],
|
|
333
|
+
@version, service_sid: @solution[:service_sid], channel_sid: @solution[:sid], )
|
|
334
334
|
end
|
|
335
335
|
|
|
336
336
|
@invites
|
|
@@ -242,7 +242,7 @@ module Twilio
|
|
|
242
242
|
|
|
243
243
|
unless @user_channels
|
|
244
244
|
@user_channels = UserChannelList.new(
|
|
245
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
245
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
246
246
|
end
|
|
247
247
|
|
|
248
248
|
@user_channels
|
|
@@ -261,7 +261,7 @@ module Twilio
|
|
|
261
261
|
|
|
262
262
|
unless @user_bindings
|
|
263
263
|
@user_bindings = UserBindingList.new(
|
|
264
|
-
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid],
|
|
264
|
+
@version, service_sid: @solution[:service_sid], user_sid: @solution[:sid], )
|
|
265
265
|
end
|
|
266
266
|
|
|
267
267
|
@user_bindings
|
|
@@ -307,7 +307,7 @@ module Twilio
|
|
|
307
307
|
|
|
308
308
|
unless @bindings
|
|
309
309
|
@bindings = BindingList.new(
|
|
310
|
-
@version, service_sid: @solution[:sid],
|
|
310
|
+
@version, service_sid: @solution[:sid], )
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
@bindings
|
|
@@ -326,7 +326,7 @@ module Twilio
|
|
|
326
326
|
|
|
327
327
|
unless @channels
|
|
328
328
|
@channels = ChannelList.new(
|
|
329
|
-
@version, service_sid: @solution[:sid],
|
|
329
|
+
@version, service_sid: @solution[:sid], )
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
@channels
|
|
@@ -345,7 +345,7 @@ module Twilio
|
|
|
345
345
|
|
|
346
346
|
unless @roles
|
|
347
347
|
@roles = RoleList.new(
|
|
348
|
-
@version, service_sid: @solution[:sid],
|
|
348
|
+
@version, service_sid: @solution[:sid], )
|
|
349
349
|
end
|
|
350
350
|
|
|
351
351
|
@roles
|
|
@@ -364,7 +364,7 @@ module Twilio
|
|
|
364
364
|
|
|
365
365
|
unless @users
|
|
366
366
|
@users = UserList.new(
|
|
367
|
-
@version, service_sid: @solution[:sid],
|
|
367
|
+
@version, service_sid: @solution[:sid], )
|
|
368
368
|
end
|
|
369
369
|
|
|
370
370
|
@users
|
|
@@ -207,7 +207,7 @@ module Twilio
|
|
|
207
207
|
def brand_registration_otps
|
|
208
208
|
unless @brand_registration_otps
|
|
209
209
|
@brand_registration_otps = BrandRegistrationOtpList.new(
|
|
210
|
-
@version,
|
|
210
|
+
@version, brand_registration_sid: @solution[:sid], )
|
|
211
211
|
end
|
|
212
212
|
@brand_registration_otps
|
|
213
213
|
end
|
|
@@ -225,7 +225,7 @@ module Twilio
|
|
|
225
225
|
|
|
226
226
|
unless @brand_vettings
|
|
227
227
|
@brand_vettings = BrandVettingList.new(
|
|
228
|
-
@version, brand_sid: @solution[:sid],
|
|
228
|
+
@version, brand_sid: @solution[:sid], )
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
@brand_vettings
|
|
@@ -73,15 +73,21 @@ module Twilio
|
|
|
73
73
|
# Update the DomainConfigInstance
|
|
74
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.
|
|
75
75
|
# @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
|
|
76
|
+
# @param [Boolean] continue_on_failure Boolean field to set customer delivery preference when there is a failure in linkShortening service
|
|
77
|
+
# @param [Boolean] disable_https Customer's choice to send links with/without \\\"https://\\\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
|
|
76
78
|
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
|
77
79
|
def update(
|
|
78
80
|
fallback_url: :unset,
|
|
79
|
-
callback_url: :unset
|
|
81
|
+
callback_url: :unset,
|
|
82
|
+
continue_on_failure: :unset,
|
|
83
|
+
disable_https: :unset
|
|
80
84
|
)
|
|
81
85
|
|
|
82
86
|
data = Twilio::Values.of({
|
|
83
87
|
'FallbackUrl' => fallback_url,
|
|
84
88
|
'CallbackUrl' => callback_url,
|
|
89
|
+
'ContinueOnFailure' => continue_on_failure,
|
|
90
|
+
'DisableHttps' => disable_https,
|
|
85
91
|
})
|
|
86
92
|
|
|
87
93
|
payload = @version.update('POST', @uri, data: data)
|
|
@@ -155,9 +161,11 @@ module Twilio
|
|
|
155
161
|
'config_sid' => payload['config_sid'],
|
|
156
162
|
'fallback_url' => payload['fallback_url'],
|
|
157
163
|
'callback_url' => payload['callback_url'],
|
|
164
|
+
'continue_on_failure' => payload['continue_on_failure'],
|
|
158
165
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
159
166
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
160
167
|
'url' => payload['url'],
|
|
168
|
+
'disable_https' => payload['disable_https'],
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
# Context
|
|
@@ -200,6 +208,12 @@ module Twilio
|
|
|
200
208
|
@properties['callback_url']
|
|
201
209
|
end
|
|
202
210
|
|
|
211
|
+
##
|
|
212
|
+
# @return [Boolean] Boolean field to set customer delivery preference when there is a failure in linkShortening service
|
|
213
|
+
def continue_on_failure
|
|
214
|
+
@properties['continue_on_failure']
|
|
215
|
+
end
|
|
216
|
+
|
|
203
217
|
##
|
|
204
218
|
# @return [Time] Date this Domain Config was created.
|
|
205
219
|
def date_created
|
|
@@ -218,6 +232,12 @@ module Twilio
|
|
|
218
232
|
@properties['url']
|
|
219
233
|
end
|
|
220
234
|
|
|
235
|
+
##
|
|
236
|
+
# @return [Boolean] Customer's choice to send links with/without \"https://\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
|
|
237
|
+
def disable_https
|
|
238
|
+
@properties['disable_https']
|
|
239
|
+
end
|
|
240
|
+
|
|
221
241
|
##
|
|
222
242
|
# Fetch the DomainConfigInstance
|
|
223
243
|
# @return [DomainConfigInstance] Fetched DomainConfigInstance
|
|
@@ -230,15 +250,21 @@ module Twilio
|
|
|
230
250
|
# Update the DomainConfigInstance
|
|
231
251
|
# @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.
|
|
232
252
|
# @param [String] callback_url URL to receive click events to your webhook whenever the recipients click on the shortened links
|
|
253
|
+
# @param [Boolean] continue_on_failure Boolean field to set customer delivery preference when there is a failure in linkShortening service
|
|
254
|
+
# @param [Boolean] disable_https Customer's choice to send links with/without \\\"https://\\\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
|
|
233
255
|
# @return [DomainConfigInstance] Updated DomainConfigInstance
|
|
234
256
|
def update(
|
|
235
257
|
fallback_url: :unset,
|
|
236
|
-
callback_url: :unset
|
|
258
|
+
callback_url: :unset,
|
|
259
|
+
continue_on_failure: :unset,
|
|
260
|
+
disable_https: :unset
|
|
237
261
|
)
|
|
238
262
|
|
|
239
263
|
context.update(
|
|
240
264
|
fallback_url: fallback_url,
|
|
241
265
|
callback_url: callback_url,
|
|
266
|
+
continue_on_failure: continue_on_failure,
|
|
267
|
+
disable_https: disable_https,
|
|
242
268
|
)
|
|
243
269
|
end
|
|
244
270
|
|
|
@@ -133,6 +133,7 @@ module Twilio
|
|
|
133
133
|
'messaging_service_sid' => payload['messaging_service_sid'],
|
|
134
134
|
'fallback_url' => payload['fallback_url'],
|
|
135
135
|
'callback_url' => payload['callback_url'],
|
|
136
|
+
'continue_on_failure' => payload['continue_on_failure'],
|
|
136
137
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
137
138
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
138
139
|
'url' => payload['url'],
|
|
@@ -184,6 +185,12 @@ module Twilio
|
|
|
184
185
|
@properties['callback_url']
|
|
185
186
|
end
|
|
186
187
|
|
|
188
|
+
##
|
|
189
|
+
# @return [Boolean] Boolean field to set customer delivery preference when there is a failure in linkShortening service
|
|
190
|
+
def continue_on_failure
|
|
191
|
+
@properties['continue_on_failure']
|
|
192
|
+
end
|
|
193
|
+
|
|
187
194
|
##
|
|
188
195
|
# @return [Time] Date this Domain Config was created.
|
|
189
196
|
def date_created
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Messaging
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Messaging < MessagingBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class LinkshorteningMessagingServiceDomainAssociationList < ListResource
|
|
21
|
+
##
|
|
22
|
+
# Initialize the LinkshorteningMessagingServiceDomainAssociationList
|
|
23
|
+
# @param [Version] version Version that contains the resource
|
|
24
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationList] LinkshorteningMessagingServiceDomainAssociationList
|
|
25
|
+
def initialize(version)
|
|
26
|
+
super(version)
|
|
27
|
+
# Path Solution
|
|
28
|
+
@solution = { }
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Provide a user friendly representation
|
|
36
|
+
def to_s
|
|
37
|
+
'#<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationList>'
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
##
|
|
43
|
+
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
44
|
+
class LinkshorteningMessagingServiceDomainAssociationContext < InstanceContext
|
|
45
|
+
##
|
|
46
|
+
# Initialize the LinkshorteningMessagingServiceDomainAssociationContext
|
|
47
|
+
# @param [Version] version Version that contains the resource
|
|
48
|
+
# @param [String] messaging_service_sid Unique string used to identify the Messaging service that this domain should be associated with.
|
|
49
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationContext] LinkshorteningMessagingServiceDomainAssociationContext
|
|
50
|
+
def initialize(version, messaging_service_sid)
|
|
51
|
+
super(version)
|
|
52
|
+
|
|
53
|
+
# Path Solution
|
|
54
|
+
@solution = { messaging_service_sid: messaging_service_sid, }
|
|
55
|
+
@uri = "/LinkShortening/MessagingServices/#{@solution[:messaging_service_sid]}/Domain"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
##
|
|
60
|
+
# Fetch the LinkshorteningMessagingServiceDomainAssociationInstance
|
|
61
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationInstance] Fetched LinkshorteningMessagingServiceDomainAssociationInstance
|
|
62
|
+
def fetch
|
|
63
|
+
|
|
64
|
+
payload = @version.fetch('GET', @uri)
|
|
65
|
+
LinkshorteningMessagingServiceDomainAssociationInstance.new(
|
|
66
|
+
@version,
|
|
67
|
+
payload,
|
|
68
|
+
messaging_service_sid: @solution[:messaging_service_sid],
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
##
|
|
74
|
+
# Provide a user friendly representation
|
|
75
|
+
def to_s
|
|
76
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
77
|
+
"#<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationContext #{context}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
##
|
|
81
|
+
# Provide a detailed, user friendly representation
|
|
82
|
+
def inspect
|
|
83
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
|
84
|
+
"#<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationContext #{context}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
class LinkshorteningMessagingServiceDomainAssociationPage < Page
|
|
89
|
+
##
|
|
90
|
+
# Initialize the LinkshorteningMessagingServiceDomainAssociationPage
|
|
91
|
+
# @param [Version] version Version that contains the resource
|
|
92
|
+
# @param [Response] response Response from the API
|
|
93
|
+
# @param [Hash] solution Path solution for the resource
|
|
94
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationPage] LinkshorteningMessagingServiceDomainAssociationPage
|
|
95
|
+
def initialize(version, response, solution)
|
|
96
|
+
super(version, response)
|
|
97
|
+
|
|
98
|
+
# Path Solution
|
|
99
|
+
@solution = solution
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# Build an instance of LinkshorteningMessagingServiceDomainAssociationInstance
|
|
104
|
+
# @param [Hash] payload Payload response from the API
|
|
105
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationInstance] LinkshorteningMessagingServiceDomainAssociationInstance
|
|
106
|
+
def get_instance(payload)
|
|
107
|
+
LinkshorteningMessagingServiceDomainAssociationInstance.new(@version, payload)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
##
|
|
111
|
+
# Provide a user friendly representation
|
|
112
|
+
def to_s
|
|
113
|
+
'<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationPage>'
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
class LinkshorteningMessagingServiceDomainAssociationInstance < InstanceResource
|
|
117
|
+
##
|
|
118
|
+
# Initialize the LinkshorteningMessagingServiceDomainAssociationInstance
|
|
119
|
+
# @param [Version] version Version that contains the resource
|
|
120
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
121
|
+
# @param [String] account_sid The SID of the
|
|
122
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this LinkshorteningMessagingServiceDomainAssociation
|
|
123
|
+
# resource.
|
|
124
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
125
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationInstance] LinkshorteningMessagingServiceDomainAssociationInstance
|
|
126
|
+
def initialize(version, payload , messaging_service_sid: nil)
|
|
127
|
+
super(version)
|
|
128
|
+
|
|
129
|
+
# Marshaled Properties
|
|
130
|
+
@properties = {
|
|
131
|
+
'domain_sid' => payload['domain_sid'],
|
|
132
|
+
'messaging_service_sid' => payload['messaging_service_sid'],
|
|
133
|
+
'url' => payload['url'],
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
# Context
|
|
137
|
+
@instance_context = nil
|
|
138
|
+
@params = { 'messaging_service_sid' => messaging_service_sid || @properties['messaging_service_sid'] , }
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
##
|
|
142
|
+
# Generate an instance context for the instance, the context is capable of
|
|
143
|
+
# performing various actions. All instance actions are proxied to the context
|
|
144
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationContext] CallContext for this CallInstance
|
|
145
|
+
def context
|
|
146
|
+
unless @instance_context
|
|
147
|
+
@instance_context = LinkshorteningMessagingServiceDomainAssociationContext.new(@version , @params['messaging_service_sid'])
|
|
148
|
+
end
|
|
149
|
+
@instance_context
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
##
|
|
153
|
+
# @return [String] The unique string that we created to identify the Domain resource.
|
|
154
|
+
def domain_sid
|
|
155
|
+
@properties['domain_sid']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
##
|
|
159
|
+
# @return [String] The unique string that identifies the messaging service
|
|
160
|
+
def messaging_service_sid
|
|
161
|
+
@properties['messaging_service_sid']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
##
|
|
165
|
+
# @return [String]
|
|
166
|
+
def url
|
|
167
|
+
@properties['url']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
##
|
|
171
|
+
# Fetch the LinkshorteningMessagingServiceDomainAssociationInstance
|
|
172
|
+
# @return [LinkshorteningMessagingServiceDomainAssociationInstance] Fetched LinkshorteningMessagingServiceDomainAssociationInstance
|
|
173
|
+
def fetch
|
|
174
|
+
|
|
175
|
+
context.fetch
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
##
|
|
179
|
+
# Provide a user friendly representation
|
|
180
|
+
def to_s
|
|
181
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
182
|
+
"<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationInstance #{values}>"
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
##
|
|
186
|
+
# Provide a detailed, user friendly representation
|
|
187
|
+
def inspect
|
|
188
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
|
189
|
+
"<Twilio.Messaging.V1.LinkshorteningMessagingServiceDomainAssociationInstance #{values}>"
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
@@ -303,7 +303,7 @@ 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,
|
|
306
|
+
@version, messaging_service_sid: @solution[:sid], )
|
|
307
307
|
end
|
|
308
308
|
@us_app_to_person_usecases
|
|
309
309
|
end
|
|
@@ -321,7 +321,7 @@ module Twilio
|
|
|
321
321
|
|
|
322
322
|
unless @alpha_senders
|
|
323
323
|
@alpha_senders = AlphaSenderList.new(
|
|
324
|
-
@version, service_sid: @solution[:sid],
|
|
324
|
+
@version, service_sid: @solution[:sid], )
|
|
325
325
|
end
|
|
326
326
|
|
|
327
327
|
@alpha_senders
|
|
@@ -340,7 +340,7 @@ module Twilio
|
|
|
340
340
|
|
|
341
341
|
unless @short_codes
|
|
342
342
|
@short_codes = ShortCodeList.new(
|
|
343
|
-
@version, service_sid: @solution[:sid],
|
|
343
|
+
@version, service_sid: @solution[:sid], )
|
|
344
344
|
end
|
|
345
345
|
|
|
346
346
|
@short_codes
|
|
@@ -359,7 +359,7 @@ module Twilio
|
|
|
359
359
|
|
|
360
360
|
unless @us_app_to_person
|
|
361
361
|
@us_app_to_person = UsAppToPersonList.new(
|
|
362
|
-
@version,
|
|
362
|
+
@version, messaging_service_sid: @solution[:sid], )
|
|
363
363
|
end
|
|
364
364
|
|
|
365
365
|
@us_app_to_person
|
|
@@ -378,7 +378,7 @@ module Twilio
|
|
|
378
378
|
|
|
379
379
|
unless @phone_numbers
|
|
380
380
|
@phone_numbers = PhoneNumberList.new(
|
|
381
|
-
@version, service_sid: @solution[:sid],
|
|
381
|
+
@version, service_sid: @solution[:sid], )
|
|
382
382
|
end
|
|
383
383
|
|
|
384
384
|
@phone_numbers
|
|
@@ -28,6 +28,7 @@ module Twilio
|
|
|
28
28
|
@domain_config_messaging_service = nil
|
|
29
29
|
@external_campaign = nil
|
|
30
30
|
@linkshortening_messaging_service = nil
|
|
31
|
+
@linkshortening_messaging_service_domain_association = nil
|
|
31
32
|
@services = nil
|
|
32
33
|
@usecases = nil
|
|
33
34
|
end
|
|
@@ -135,6 +136,20 @@ module Twilio
|
|
|
135
136
|
end
|
|
136
137
|
end
|
|
137
138
|
##
|
|
139
|
+
# @param [String] messaging_service_sid Unique string used to identify the Messaging service that this domain should be associated with.
|
|
140
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationContext] if messagingServiceSid was passed.
|
|
141
|
+
# @return [Twilio::REST::Messaging::V1::LinkshorteningMessagingServiceDomainAssociationList]
|
|
142
|
+
def linkshortening_messaging_service_domain_association(messaging_service_sid=:unset)
|
|
143
|
+
if messaging_service_sid.nil?
|
|
144
|
+
raise ArgumentError, 'messaging_service_sid cannot be nil'
|
|
145
|
+
end
|
|
146
|
+
if messaging_service_sid == :unset
|
|
147
|
+
@linkshortening_messaging_service_domain_association ||= LinkshorteningMessagingServiceDomainAssociationList.new self
|
|
148
|
+
else
|
|
149
|
+
LinkshorteningMessagingServiceDomainAssociationContext.new(self, messaging_service_sid)
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
##
|
|
138
153
|
# @param [String] sid The SID of the Service resource to fetch.
|
|
139
154
|
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
|
|
140
155
|
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
|
@@ -196,7 +196,7 @@ module Twilio
|
|
|
196
196
|
|
|
197
197
|
unless @device_secrets
|
|
198
198
|
@device_secrets = DeviceSecretList.new(
|
|
199
|
-
@version, device_sid: @solution[:sid],
|
|
199
|
+
@version, device_sid: @solution[:sid], )
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
@device_secrets
|
|
@@ -215,7 +215,7 @@ module Twilio
|
|
|
215
215
|
|
|
216
216
|
unless @device_configs
|
|
217
217
|
@device_configs = DeviceConfigList.new(
|
|
218
|
-
@version, device_sid: @solution[:sid],
|
|
218
|
+
@version, device_sid: @solution[:sid], )
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
@device_configs
|
|
@@ -295,7 +295,7 @@ module Twilio
|
|
|
295
295
|
def notifications
|
|
296
296
|
unless @notifications
|
|
297
297
|
@notifications = NotificationList.new(
|
|
298
|
-
@version, service_sid: @solution[:sid],
|
|
298
|
+
@version, service_sid: @solution[:sid], )
|
|
299
299
|
end
|
|
300
300
|
@notifications
|
|
301
301
|
end
|
|
@@ -313,7 +313,7 @@ module Twilio
|
|
|
313
313
|
|
|
314
314
|
unless @bindings
|
|
315
315
|
@bindings = BindingList.new(
|
|
316
|
-
@version, service_sid: @solution[:sid],
|
|
316
|
+
@version, service_sid: @solution[:sid], )
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
@bindings
|