twilio-ruby 5.17.0 → 5.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +25 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +34 -22
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +32 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +5 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +11 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +45 -31
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +15 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +41 -19
- data/lib/twilio-ruby/rest/authy.rb +9 -9
- data/lib/twilio-ruby/rest/authy/v1.rb +16 -16
- data/lib/twilio-ruby/rest/authy/v1/form.rb +12 -12
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +11 -7
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +4 -4
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +28 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +80 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -2
- data/lib/twilio-ruby/rest/verify/v1/service.rb +51 -3
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/rest/wireless/v1.rb +4 -2
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +28 -6
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +27 -8
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +15 -11
- data/spec/integration/authy/v1/form_spec.rb +1 -1
- data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +5 -5
- data/spec/integration/authy/v1/service/entity/factor_spec.rb +7 -7
- data/spec/integration/messaging/v1/service_spec.rb +12 -4
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +191 -10
- data/spec/integration/verify/v1/service_spec.rb +12 -0
- data/spec/integration/wireless/v1/command_spec.rb +26 -0
- data/spec/integration/wireless/v1/sim_spec.rb +26 -0
- metadata +3 -3
@@ -56,8 +56,8 @@ module Twilio
|
|
56
56
|
|
57
57
|
##
|
58
58
|
# Access the ip_access_control_lists
|
59
|
-
# @param [String] sid
|
60
|
-
#
|
59
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
60
|
+
# to fetch.
|
61
61
|
# @return [IpAccessControlListList]
|
62
62
|
# @return [IpAccessControlListContext] if sid was passed.
|
63
63
|
def ip_access_control_lists(sid=:unset)
|
@@ -167,7 +167,8 @@ module Twilio
|
|
167
167
|
##
|
168
168
|
# Initialize the CredentialListContext
|
169
169
|
# @param [Version] version Version that contains the resource
|
170
|
-
# @param [String] account_sid The
|
170
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
171
|
+
# this resource.
|
171
172
|
# @param [String] sid The credential list Sid that uniquely identifies this
|
172
173
|
# resource
|
173
174
|
# @return [CredentialListContext] CredentialListContext
|
@@ -332,7 +333,7 @@ module Twilio
|
|
332
333
|
end
|
333
334
|
|
334
335
|
##
|
335
|
-
# @return [String] The
|
336
|
+
# @return [String] The list of credentials associated with this credential list.
|
336
337
|
def subresource_uris
|
337
338
|
@properties['subresource_uris']
|
338
339
|
end
|
@@ -17,9 +17,10 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the CredentialList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
20
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
21
21
|
# this resource.
|
22
|
-
# @param [String] credential_list_sid The
|
22
|
+
# @param [String] credential_list_sid The unique id that identifies the credential
|
23
|
+
# list that includes this credential.
|
23
24
|
# @return [CredentialList] CredentialList
|
24
25
|
def initialize(version, account_sid: nil, credential_list_sid: nil)
|
25
26
|
super(version)
|
@@ -183,9 +184,11 @@ module Twilio
|
|
183
184
|
##
|
184
185
|
# Initialize the CredentialContext
|
185
186
|
# @param [Version] version Version that contains the resource
|
186
|
-
# @param [String] account_sid The
|
187
|
-
#
|
188
|
-
# @param [String]
|
187
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
188
|
+
# this resource.
|
189
|
+
# @param [String] credential_list_sid The unique id that identifies the credential
|
190
|
+
# list that contains the desired credential.
|
191
|
+
# @param [String] sid The unique id that identifies the resource to fetch.
|
189
192
|
# @return [CredentialContext] CredentialContext
|
190
193
|
def initialize(version, account_sid, credential_list_sid, sid)
|
191
194
|
super(version)
|
@@ -260,10 +263,11 @@ module Twilio
|
|
260
263
|
# Initialize the CredentialInstance
|
261
264
|
# @param [Version] version Version that contains the resource
|
262
265
|
# @param [Hash] payload payload that contains response from Twilio
|
263
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
266
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
264
267
|
# this resource.
|
265
|
-
# @param [String] credential_list_sid The
|
266
|
-
#
|
268
|
+
# @param [String] credential_list_sid The unique id that identifies the credential
|
269
|
+
# list that includes this credential.
|
270
|
+
# @param [String] sid The unique id that identifies the resource to fetch.
|
267
271
|
# @return [CredentialInstance] CredentialInstance
|
268
272
|
def initialize(version, payload, account_sid: nil, credential_list_sid: nil, sid: nil)
|
269
273
|
super(version)
|
@@ -311,13 +315,13 @@ module Twilio
|
|
311
315
|
end
|
312
316
|
|
313
317
|
##
|
314
|
-
# @return [String] The unique id of the Account that responsible for this resource.
|
318
|
+
# @return [String] The unique id of the Account that is responsible for this resource.
|
315
319
|
def account_sid
|
316
320
|
@properties['account_sid']
|
317
321
|
end
|
318
322
|
|
319
323
|
##
|
320
|
-
# @return [String] The
|
324
|
+
# @return [String] The unique id that identifies the credential list that includes this credential
|
321
325
|
def credential_list_sid
|
322
326
|
@properties['credential_list_sid']
|
323
327
|
end
|
@@ -116,8 +116,6 @@ module Twilio
|
|
116
116
|
# you route your SIP traffic. Domain names can contain letters, digits, and "-".
|
117
117
|
# @param [String] friendly_name A human readable descriptive text, up to 64
|
118
118
|
# characters long.
|
119
|
-
# @param [String] auth_type The types of authentication you have mapped to your
|
120
|
-
# domain
|
121
119
|
# @param [String] voice_url The URL Twilio will request when this domain receives
|
122
120
|
# a call.
|
123
121
|
# @param [String] voice_method The HTTP method Twilio will use when requesting the
|
@@ -130,13 +128,13 @@ module Twilio
|
|
130
128
|
# pass status parameters (such as call ended) to your application.
|
131
129
|
# @param [String] voice_status_callback_method The HTTP method Twilio will use to
|
132
130
|
# make requests to the StatusCallback URL. Either `GET` or `POST`.
|
133
|
-
# @param [Boolean] sip_registration
|
131
|
+
# @param [Boolean] sip_registration This boolean can be enabled to allow SIP
|
132
|
+
# Endpoints to register with this domain to receive calls.
|
134
133
|
# @return [DomainInstance] Newly created DomainInstance
|
135
|
-
def create(domain_name: nil, friendly_name: :unset,
|
134
|
+
def create(domain_name: nil, friendly_name: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset)
|
136
135
|
data = Twilio::Values.of({
|
137
136
|
'DomainName' => domain_name,
|
138
137
|
'FriendlyName' => friendly_name,
|
139
|
-
'AuthType' => auth_type,
|
140
138
|
'VoiceUrl' => voice_url,
|
141
139
|
'VoiceMethod' => voice_method,
|
142
140
|
'VoiceFallbackUrl' => voice_fallback_url,
|
@@ -195,7 +193,9 @@ module Twilio
|
|
195
193
|
##
|
196
194
|
# Initialize the DomainContext
|
197
195
|
# @param [Version] version Version that contains the resource
|
198
|
-
# @param [String] account_sid The
|
196
|
+
# @param [String] account_sid The unique id of the
|
197
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
198
|
+
# resource.
|
199
199
|
# @param [String] sid The domain sid that uniquely identifies the resource
|
200
200
|
# @return [DomainContext] DomainContext
|
201
201
|
def initialize(version, account_sid, sid)
|
@@ -228,20 +228,26 @@ module Twilio
|
|
228
228
|
|
229
229
|
##
|
230
230
|
# Update the DomainInstance
|
231
|
-
# @param [String]
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
# @param [String] voice_fallback_url The
|
231
|
+
# @param [String] friendly_name A human readable descriptive text, up to 64
|
232
|
+
# characters long.
|
233
|
+
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
234
|
+
# requesting the VoiceFallbackUrl. Either `GET` or `POST`.
|
235
|
+
# @param [String] voice_fallback_url The URL that Twilio will request if an error
|
236
|
+
# occurs retrieving or executing the TwiML requested by VoiceUrl.
|
236
237
|
# @param [String] voice_method The HTTP method to use with the voice_url
|
237
|
-
# @param [String] voice_status_callback_method The
|
238
|
-
#
|
239
|
-
# @param [String]
|
240
|
-
#
|
238
|
+
# @param [String] voice_status_callback_method The HTTP method Twilio will use to
|
239
|
+
# make requests to the StatusCallback URL. Either `GET` or `POST`.
|
240
|
+
# @param [String] voice_status_callback_url The URL that Twilio will request to
|
241
|
+
# pass status parameters (such as call ended) to your application.
|
242
|
+
# @param [String] voice_url The URL Twilio will request when this domain receives
|
243
|
+
# a call.
|
244
|
+
# @param [Boolean] sip_registration This boolean can be enabled to allow SIP
|
245
|
+
# Endpoints to register with this domain to receive calls.
|
246
|
+
# @param [String] domain_name The unique address you reserve on Twilio to which
|
247
|
+
# you route your SIP traffic. Domain names can contain letters, digits, and "-".
|
241
248
|
# @return [DomainInstance] Updated DomainInstance
|
242
|
-
def update(
|
249
|
+
def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset)
|
243
250
|
data = Twilio::Values.of({
|
244
|
-
'AuthType' => auth_type,
|
245
251
|
'FriendlyName' => friendly_name,
|
246
252
|
'VoiceFallbackMethod' => voice_fallback_method,
|
247
253
|
'VoiceFallbackUrl' => voice_fallback_url,
|
@@ -250,6 +256,7 @@ module Twilio
|
|
250
256
|
'VoiceStatusCallbackUrl' => voice_status_callback_url,
|
251
257
|
'VoiceUrl' => voice_url,
|
252
258
|
'SipRegistration' => sip_registration,
|
259
|
+
'DomainName' => domain_name,
|
253
260
|
})
|
254
261
|
|
255
262
|
payload = @version.update(
|
@@ -391,7 +398,7 @@ module Twilio
|
|
391
398
|
end
|
392
399
|
|
393
400
|
##
|
394
|
-
# @return [String] The unique id of the account
|
401
|
+
# @return [String] The unique id of the account responsible for this domain
|
395
402
|
def account_sid
|
396
403
|
@properties['account_sid']
|
397
404
|
end
|
@@ -427,7 +434,7 @@ module Twilio
|
|
427
434
|
end
|
428
435
|
|
429
436
|
##
|
430
|
-
# @return [String] A user-specified, human-readable name for the
|
437
|
+
# @return [String] A user-specified, human-readable name for the domain.
|
431
438
|
def friendly_name
|
432
439
|
@properties['friendly_name']
|
433
440
|
end
|
@@ -481,7 +488,7 @@ module Twilio
|
|
481
488
|
end
|
482
489
|
|
483
490
|
##
|
484
|
-
# @return [String] The
|
491
|
+
# @return [String] The list mapping resources associated with this resource.
|
485
492
|
def subresource_uris
|
486
493
|
@properties['subresource_uris']
|
487
494
|
end
|
@@ -501,20 +508,26 @@ module Twilio
|
|
501
508
|
|
502
509
|
##
|
503
510
|
# Update the DomainInstance
|
504
|
-
# @param [String]
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
508
|
-
# @param [String] voice_fallback_url The
|
511
|
+
# @param [String] friendly_name A human readable descriptive text, up to 64
|
512
|
+
# characters long.
|
513
|
+
# @param [String] voice_fallback_method The HTTP method Twilio will use when
|
514
|
+
# requesting the VoiceFallbackUrl. Either `GET` or `POST`.
|
515
|
+
# @param [String] voice_fallback_url The URL that Twilio will request if an error
|
516
|
+
# occurs retrieving or executing the TwiML requested by VoiceUrl.
|
509
517
|
# @param [String] voice_method The HTTP method to use with the voice_url
|
510
|
-
# @param [String] voice_status_callback_method The
|
511
|
-
#
|
512
|
-
# @param [String]
|
513
|
-
#
|
518
|
+
# @param [String] voice_status_callback_method The HTTP method Twilio will use to
|
519
|
+
# make requests to the StatusCallback URL. Either `GET` or `POST`.
|
520
|
+
# @param [String] voice_status_callback_url The URL that Twilio will request to
|
521
|
+
# pass status parameters (such as call ended) to your application.
|
522
|
+
# @param [String] voice_url The URL Twilio will request when this domain receives
|
523
|
+
# a call.
|
524
|
+
# @param [Boolean] sip_registration This boolean can be enabled to allow SIP
|
525
|
+
# Endpoints to register with this domain to receive calls.
|
526
|
+
# @param [String] domain_name The unique address you reserve on Twilio to which
|
527
|
+
# you route your SIP traffic. Domain names can contain letters, digits, and "-".
|
514
528
|
# @return [DomainInstance] Updated DomainInstance
|
515
|
-
def update(
|
529
|
+
def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset)
|
516
530
|
context.update(
|
517
|
-
auth_type: auth_type,
|
518
531
|
friendly_name: friendly_name,
|
519
532
|
voice_fallback_method: voice_fallback_method,
|
520
533
|
voice_fallback_url: voice_fallback_url,
|
@@ -523,6 +536,7 @@ module Twilio
|
|
523
536
|
voice_status_callback_url: voice_status_callback_url,
|
524
537
|
voice_url: voice_url,
|
525
538
|
sip_registration: sip_registration,
|
539
|
+
domain_name: domain_name,
|
526
540
|
)
|
527
541
|
end
|
528
542
|
|
@@ -18,7 +18,8 @@ module Twilio
|
|
18
18
|
# Initialize the AuthTypesList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
20
|
# @param [String] account_sid The unique id of the
|
21
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
21
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
22
|
+
# domain.
|
22
23
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
23
24
|
# SIP domain in Twilio.
|
24
25
|
# @return [AuthTypesList] AuthTypesList
|
@@ -104,7 +105,8 @@ module Twilio
|
|
104
105
|
# @param [Version] version Version that contains the resource
|
105
106
|
# @param [Hash] payload payload that contains response from Twilio
|
106
107
|
# @param [String] account_sid The unique id of the
|
107
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
108
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
109
|
+
# domain.
|
108
110
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
109
111
|
# SIP domain in Twilio.
|
110
112
|
# @return [AuthTypesInstance] AuthTypesInstance
|
@@ -19,7 +19,8 @@ module Twilio
|
|
19
19
|
# Initialize the AuthTypeCallsList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
21
|
# @param [String] account_sid The unique id of the
|
22
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
22
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
23
|
+
# domain.
|
23
24
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
24
25
|
# SIP domain in Twilio.
|
25
26
|
# @return [AuthTypeCallsList] AuthTypeCallsList
|
@@ -131,7 +132,8 @@ module Twilio
|
|
131
132
|
# @param [Version] version Version that contains the resource
|
132
133
|
# @param [Hash] payload payload that contains response from Twilio
|
133
134
|
# @param [String] account_sid The unique id of the
|
134
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
135
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
136
|
+
# domain.
|
135
137
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
136
138
|
# SIP domain in Twilio.
|
137
139
|
# @return [AuthTypeCallsInstance] AuthTypeCallsInstance
|
@@ -20,7 +20,8 @@ module Twilio
|
|
20
20
|
# Initialize the AuthCallsCredentialListMappingList
|
21
21
|
# @param [Version] version Version that contains the resource
|
22
22
|
# @param [String] account_sid The unique id of the
|
23
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
23
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
24
|
+
# domain.
|
24
25
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
25
26
|
# SIP domain in Twilio.
|
26
27
|
# @return [AuthCallsCredentialListMappingList] AuthCallsCredentialListMappingList
|
@@ -237,7 +238,8 @@ module Twilio
|
|
237
238
|
# @param [Version] version Version that contains the resource
|
238
239
|
# @param [Hash] payload payload that contains response from Twilio
|
239
240
|
# @param [String] account_sid The unique id of the
|
240
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
241
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
242
|
+
# domain.
|
241
243
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
242
244
|
# SIP domain in Twilio.
|
243
245
|
# @param [String] sid The credential list Sid that uniquely identifies this
|
@@ -20,7 +20,8 @@ module Twilio
|
|
20
20
|
# Initialize the AuthCallsIpAccessControlListMappingList
|
21
21
|
# @param [Version] version Version that contains the resource
|
22
22
|
# @param [String] account_sid The unique id of the
|
23
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
23
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
24
|
+
# domain.
|
24
25
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
25
26
|
# SIP domain in Twilio.
|
26
27
|
# @return [AuthCallsIpAccessControlListMappingList] AuthCallsIpAccessControlListMappingList
|
@@ -237,7 +238,8 @@ module Twilio
|
|
237
238
|
# @param [Version] version Version that contains the resource
|
238
239
|
# @param [Hash] payload payload that contains response from Twilio
|
239
240
|
# @param [String] account_sid The unique id of the
|
240
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
241
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
242
|
+
# domain.
|
241
243
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
242
244
|
# SIP domain in Twilio.
|
243
245
|
# @param [String] sid The IP Access Control List Sid that uniquely identifies this
|
data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb
CHANGED
@@ -19,7 +19,8 @@ module Twilio
|
|
19
19
|
# Initialize the AuthTypeRegistrationsList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
21
|
# @param [String] account_sid The unique id of the
|
22
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
22
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
23
|
+
# domain.
|
23
24
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
24
25
|
# SIP domain in Twilio.
|
25
26
|
# @return [AuthTypeRegistrationsList] AuthTypeRegistrationsList
|
@@ -105,7 +106,8 @@ module Twilio
|
|
105
106
|
# @param [Version] version Version that contains the resource
|
106
107
|
# @param [Hash] payload payload that contains response from Twilio
|
107
108
|
# @param [String] account_sid The unique id of the
|
108
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
109
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
110
|
+
# domain.
|
109
111
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
110
112
|
# SIP domain in Twilio.
|
111
113
|
# @return [AuthTypeRegistrationsInstance] AuthTypeRegistrationsInstance
|
@@ -20,7 +20,8 @@ module Twilio
|
|
20
20
|
# Initialize the AuthRegistrationsCredentialListMappingList
|
21
21
|
# @param [Version] version Version that contains the resource
|
22
22
|
# @param [String] account_sid The unique id of the
|
23
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
23
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
24
|
+
# domain.
|
24
25
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
25
26
|
# SIP domain in Twilio.
|
26
27
|
# @return [AuthRegistrationsCredentialListMappingList] AuthRegistrationsCredentialListMappingList
|
@@ -237,7 +238,8 @@ module Twilio
|
|
237
238
|
# @param [Version] version Version that contains the resource
|
238
239
|
# @param [Hash] payload payload that contains response from Twilio
|
239
240
|
# @param [String] account_sid The unique id of the
|
240
|
-
# [Account](https://www.twilio.com/docs/api/rest/account)
|
241
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
242
|
+
# domain.
|
241
243
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
242
244
|
# SIP domain in Twilio.
|
243
245
|
# @param [String] sid The credential list Sid that uniquely identifies this
|
@@ -17,7 +17,7 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the CredentialListMappingList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
20
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
21
21
|
# this resource.
|
22
22
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
23
23
|
# SIP domain in Twilio.
|
@@ -33,7 +33,8 @@ module Twilio
|
|
33
33
|
##
|
34
34
|
# Retrieve a single page of CredentialListMappingInstance records from the API.
|
35
35
|
# Request is executed immediately.
|
36
|
-
# @param [String] credential_list_sid
|
36
|
+
# @param [String] credential_list_sid A 34 character string that uniquely
|
37
|
+
# identifies the CredentialList resource to map to the SIP domain.
|
37
38
|
# @return [CredentialListMappingInstance] Newly created CredentialListMappingInstance
|
38
39
|
def create(credential_list_sid: nil)
|
39
40
|
data = Twilio::Values.of({'CredentialListSid' => credential_list_sid, })
|
@@ -179,9 +180,13 @@ module Twilio
|
|
179
180
|
##
|
180
181
|
# Initialize the CredentialListMappingContext
|
181
182
|
# @param [Version] version Version that contains the resource
|
182
|
-
# @param [String] account_sid The
|
183
|
-
#
|
184
|
-
#
|
183
|
+
# @param [String] account_sid The unique id of the
|
184
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
185
|
+
# resource.
|
186
|
+
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
187
|
+
# SIP Domain that includes the resource to fetch.
|
188
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
189
|
+
# to fetch.
|
185
190
|
# @return [CredentialListMappingContext] CredentialListMappingContext
|
186
191
|
def initialize(version, account_sid, domain_sid, sid)
|
187
192
|
super(version)
|
@@ -232,11 +237,12 @@ module Twilio
|
|
232
237
|
# Initialize the CredentialListMappingInstance
|
233
238
|
# @param [Version] version Version that contains the resource
|
234
239
|
# @param [Hash] payload payload that contains response from Twilio
|
235
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
240
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
236
241
|
# this resource.
|
237
242
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
238
243
|
# SIP domain in Twilio.
|
239
|
-
# @param [String] sid
|
244
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
245
|
+
# to fetch.
|
240
246
|
# @return [CredentialListMappingInstance] CredentialListMappingInstance
|
241
247
|
def initialize(version, payload, account_sid: nil, domain_sid: nil, sid: nil)
|
242
248
|
super(version)
|
@@ -278,7 +284,7 @@ module Twilio
|
|
278
284
|
end
|
279
285
|
|
280
286
|
##
|
281
|
-
# @return [String] The unique id of the Account that responsible for this resource.
|
287
|
+
# @return [String] The unique id of the Account that is responsible for this resource.
|
282
288
|
def account_sid
|
283
289
|
@properties['account_sid']
|
284
290
|
end
|
@@ -314,7 +320,7 @@ module Twilio
|
|
314
320
|
end
|
315
321
|
|
316
322
|
##
|
317
|
-
# @return [String] The
|
323
|
+
# @return [String] The credentials associated with this resource.
|
318
324
|
def subresource_uris
|
319
325
|
@properties['subresource_uris']
|
320
326
|
end
|
@@ -17,7 +17,7 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the IpAccessControlListMappingList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
20
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
21
21
|
# this resource.
|
22
22
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
23
23
|
# SIP domain in Twilio.
|
@@ -33,7 +33,8 @@ module Twilio
|
|
33
33
|
##
|
34
34
|
# Retrieve a single page of IpAccessControlListMappingInstance records from the API.
|
35
35
|
# Request is executed immediately.
|
36
|
-
# @param [String] ip_access_control_list_sid The
|
36
|
+
# @param [String] ip_access_control_list_sid The unique id of the IP access
|
37
|
+
# control list to map to the SIP domain.
|
37
38
|
# @return [IpAccessControlListMappingInstance] Newly created IpAccessControlListMappingInstance
|
38
39
|
def create(ip_access_control_list_sid: nil)
|
39
40
|
data = Twilio::Values.of({'IpAccessControlListSid' => ip_access_control_list_sid, })
|
@@ -179,9 +180,12 @@ module Twilio
|
|
179
180
|
##
|
180
181
|
# Initialize the IpAccessControlListMappingContext
|
181
182
|
# @param [Version] version Version that contains the resource
|
182
|
-
# @param [String] account_sid The
|
183
|
-
#
|
184
|
-
# @param [String]
|
183
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
184
|
+
# this resource.
|
185
|
+
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
186
|
+
# SIP domain.
|
187
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
188
|
+
# to fetch.
|
185
189
|
# @return [IpAccessControlListMappingContext] IpAccessControlListMappingContext
|
186
190
|
def initialize(version, account_sid, domain_sid, sid)
|
187
191
|
super(version)
|
@@ -232,11 +236,12 @@ module Twilio
|
|
232
236
|
# Initialize the IpAccessControlListMappingInstance
|
233
237
|
# @param [Version] version Version that contains the resource
|
234
238
|
# @param [Hash] payload payload that contains response from Twilio
|
235
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
239
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
236
240
|
# this resource.
|
237
241
|
# @param [String] domain_sid A 34 character string that uniquely identifies the
|
238
242
|
# SIP domain in Twilio.
|
239
|
-
# @param [String] sid
|
243
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
244
|
+
# to fetch.
|
240
245
|
# @return [IpAccessControlListMappingInstance] IpAccessControlListMappingInstance
|
241
246
|
def initialize(version, payload, account_sid: nil, domain_sid: nil, sid: nil)
|
242
247
|
super(version)
|
@@ -278,7 +283,7 @@ module Twilio
|
|
278
283
|
end
|
279
284
|
|
280
285
|
##
|
281
|
-
# @return [String] The unique id of the Account that responsible for this resource.
|
286
|
+
# @return [String] The unique id of the Account that is responsible for this resource.
|
282
287
|
def account_sid
|
283
288
|
@properties['account_sid']
|
284
289
|
end
|
@@ -314,7 +319,7 @@ module Twilio
|
|
314
319
|
end
|
315
320
|
|
316
321
|
##
|
317
|
-
# @return [String] The
|
322
|
+
# @return [String] The list of IP addresses associated with this domain.
|
318
323
|
def subresource_uris
|
319
324
|
@properties['subresource_uris']
|
320
325
|
end
|