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
@@ -167,9 +167,11 @@ module Twilio
|
|
167
167
|
##
|
168
168
|
# Initialize the IpAccessControlListContext
|
169
169
|
# @param [Version] version Version that contains the resource
|
170
|
-
# @param [String] account_sid The
|
171
|
-
#
|
172
|
-
# resource
|
170
|
+
# @param [String] account_sid The unique id of the
|
171
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
172
|
+
# resource.
|
173
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
174
|
+
# to fetch.
|
173
175
|
# @return [IpAccessControlListContext] IpAccessControlListContext
|
174
176
|
def initialize(version, account_sid, sid)
|
175
177
|
super(version)
|
@@ -268,8 +270,8 @@ module Twilio
|
|
268
270
|
# @param [Hash] payload payload that contains response from Twilio
|
269
271
|
# @param [String] account_sid A 34 character string that uniquely identifies this
|
270
272
|
# resource.
|
271
|
-
# @param [String] sid
|
272
|
-
#
|
273
|
+
# @param [String] sid A 34 character string that uniquely identifies the resource
|
274
|
+
# to fetch.
|
273
275
|
# @return [IpAccessControlListInstance] IpAccessControlListInstance
|
274
276
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
275
277
|
super(version)
|
@@ -332,7 +334,7 @@ module Twilio
|
|
332
334
|
end
|
333
335
|
|
334
336
|
##
|
335
|
-
# @return [String] The
|
337
|
+
# @return [String] The IP addresses associated with this resource.
|
336
338
|
def subresource_uris
|
337
339
|
@properties['subresource_uris']
|
338
340
|
end
|
@@ -17,9 +17,10 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the IpAddressList
|
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] ip_access_control_list_sid The
|
22
|
+
# @param [String] ip_access_control_list_sid The unique id of the
|
23
|
+
# IpAccessControlList resource that includes this resource.
|
23
24
|
# @return [IpAddressList] IpAddressList
|
24
25
|
def initialize(version, account_sid: nil, ip_access_control_list_sid: nil)
|
25
26
|
super(version)
|
@@ -114,9 +115,14 @@ module Twilio
|
|
114
115
|
##
|
115
116
|
# Retrieve a single page of IpAddressInstance records from the API.
|
116
117
|
# Request is executed immediately.
|
117
|
-
# @param [String] friendly_name
|
118
|
-
#
|
119
|
-
# @param [String]
|
118
|
+
# @param [String] friendly_name A human readable descriptive text for this
|
119
|
+
# resource, up to 64 characters long.
|
120
|
+
# @param [String] ip_address An IP address in dotted decimal notation from which
|
121
|
+
# you want to accept traffic. Any SIP requests from this IP address will be
|
122
|
+
# allowed by Twilio. IPv4 only supported today.
|
123
|
+
# @param [String] cidr_prefix_length An integer representing the length of the
|
124
|
+
# CIDR prefix to use with this IP address when accepting traffic. By default the
|
125
|
+
# entire IP address is used.
|
120
126
|
# @return [IpAddressInstance] Newly created IpAddressInstance
|
121
127
|
def create(friendly_name: nil, ip_address: nil, cidr_prefix_length: :unset)
|
122
128
|
data = Twilio::Values.of({
|
@@ -184,9 +190,13 @@ module Twilio
|
|
184
190
|
##
|
185
191
|
# Initialize the IpAddressContext
|
186
192
|
# @param [Version] version Version that contains the resource
|
187
|
-
# @param [String] account_sid The
|
188
|
-
#
|
189
|
-
#
|
193
|
+
# @param [String] account_sid The unique id of the
|
194
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
|
195
|
+
# resource.
|
196
|
+
# @param [String] ip_access_control_list_sid The IpAccessControlList Sid that
|
197
|
+
# identifies the IpAddress resources to fetch.
|
198
|
+
# @param [String] sid A 34 character string that uniquely identifies the IpAddress
|
199
|
+
# resource to fetch.
|
190
200
|
# @return [IpAddressContext] IpAddressContext
|
191
201
|
def initialize(version, account_sid, ip_access_control_list_sid, sid)
|
192
202
|
super(version)
|
@@ -223,9 +233,14 @@ module Twilio
|
|
223
233
|
|
224
234
|
##
|
225
235
|
# Update the IpAddressInstance
|
226
|
-
# @param [String] ip_address
|
227
|
-
#
|
228
|
-
#
|
236
|
+
# @param [String] ip_address An IP address in dotted decimal notation from which
|
237
|
+
# you want to accept traffic. Any SIP requests from this IP address will be
|
238
|
+
# allowed by Twilio. IPv4 only supported today.
|
239
|
+
# @param [String] friendly_name A human readable descriptive text for this
|
240
|
+
# resource, up to 64 characters long.
|
241
|
+
# @param [String] cidr_prefix_length An integer representing the length of the
|
242
|
+
# CIDR prefix to use with this IP address when accepting traffic. By default the
|
243
|
+
# entire IP address is used.
|
229
244
|
# @return [IpAddressInstance] Updated IpAddressInstance
|
230
245
|
def update(ip_address: :unset, friendly_name: :unset, cidr_prefix_length: :unset)
|
231
246
|
data = Twilio::Values.of({
|
@@ -269,10 +284,12 @@ module Twilio
|
|
269
284
|
# Initialize the IpAddressInstance
|
270
285
|
# @param [Version] version Version that contains the resource
|
271
286
|
# @param [Hash] payload payload that contains response from Twilio
|
272
|
-
# @param [String] account_sid The unique id of the Account that responsible for
|
287
|
+
# @param [String] account_sid The unique id of the Account that is responsible for
|
273
288
|
# this resource.
|
274
|
-
# @param [String] ip_access_control_list_sid The
|
275
|
-
#
|
289
|
+
# @param [String] ip_access_control_list_sid The unique id of the
|
290
|
+
# IpAccessControlList resource that includes this resource.
|
291
|
+
# @param [String] sid A 34 character string that uniquely identifies the IpAddress
|
292
|
+
# resource to fetch.
|
276
293
|
# @return [IpAddressInstance] IpAddressInstance
|
277
294
|
def initialize(version, payload, account_sid: nil, ip_access_control_list_sid: nil, sid: nil)
|
278
295
|
super(version)
|
@@ -322,7 +339,7 @@ module Twilio
|
|
322
339
|
end
|
323
340
|
|
324
341
|
##
|
325
|
-
# @return [String] The unique id of the Account that responsible for this resource.
|
342
|
+
# @return [String] The unique id of the Account that is responsible for this resource.
|
326
343
|
def account_sid
|
327
344
|
@properties['account_sid']
|
328
345
|
end
|
@@ -346,7 +363,7 @@ module Twilio
|
|
346
363
|
end
|
347
364
|
|
348
365
|
##
|
349
|
-
# @return [String] The
|
366
|
+
# @return [String] The unique id of the IpAccessControlList resource that includes this resource.
|
350
367
|
def ip_access_control_list_sid
|
351
368
|
@properties['ip_access_control_list_sid']
|
352
369
|
end
|
@@ -378,9 +395,14 @@ module Twilio
|
|
378
395
|
|
379
396
|
##
|
380
397
|
# Update the IpAddressInstance
|
381
|
-
# @param [String] ip_address
|
382
|
-
#
|
383
|
-
#
|
398
|
+
# @param [String] ip_address An IP address in dotted decimal notation from which
|
399
|
+
# you want to accept traffic. Any SIP requests from this IP address will be
|
400
|
+
# allowed by Twilio. IPv4 only supported today.
|
401
|
+
# @param [String] friendly_name A human readable descriptive text for this
|
402
|
+
# resource, up to 64 characters long.
|
403
|
+
# @param [String] cidr_prefix_length An integer representing the length of the
|
404
|
+
# CIDR prefix to use with this IP address when accepting traffic. By default the
|
405
|
+
# entire IP address is used.
|
384
406
|
# @return [IpAddressInstance] Updated IpAddressInstance
|
385
407
|
def update(ip_address: :unset, friendly_name: :unset, cidr_prefix_length: :unset)
|
386
408
|
context.update(
|
@@ -28,15 +28,6 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
-
##
|
32
|
-
# @param [form.FormTypes] type The Type of this Form. One of `form-app-push`,
|
33
|
-
# `form-sms` or `form-totp`.
|
34
|
-
# @return [Twilio::REST::Authy::V1::FormInstance] if type was passed.
|
35
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
36
|
-
def forms(type=:unset)
|
37
|
-
self.v1.forms(type)
|
38
|
-
end
|
39
|
-
|
40
31
|
##
|
41
32
|
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
42
33
|
# @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
|
@@ -45,6 +36,15 @@ module Twilio
|
|
45
36
|
self.v1.services(sid)
|
46
37
|
end
|
47
38
|
|
39
|
+
##
|
40
|
+
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
41
|
+
# `form-sms` or `form-totp`.
|
42
|
+
# @return [Twilio::REST::Authy::V1::FormInstance] if form_type was passed.
|
43
|
+
# @return [Twilio::REST::Authy::V1::FormList]
|
44
|
+
def forms(form_type=:unset)
|
45
|
+
self.v1.forms(form_type)
|
46
|
+
end
|
47
|
+
|
48
48
|
##
|
49
49
|
# Provide a user friendly representation
|
50
50
|
def to_s
|
@@ -15,23 +15,8 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@forms = nil
|
19
18
|
@services = nil
|
20
|
-
|
21
|
-
|
22
|
-
##
|
23
|
-
# @param [form.FormTypes] type The Type of this Form. One of `form-app-push`,
|
24
|
-
# `form-sms` or `form-totp`.
|
25
|
-
# @return [Twilio::REST::Authy::V1::FormContext] if type was passed.
|
26
|
-
# @return [Twilio::REST::Authy::V1::FormList]
|
27
|
-
def forms(type=:unset)
|
28
|
-
if type.nil?
|
29
|
-
raise ArgumentError, 'type cannot be nil'
|
30
|
-
elsif type == :unset
|
31
|
-
@forms ||= FormList.new self
|
32
|
-
else
|
33
|
-
FormContext.new(self, type)
|
34
|
-
end
|
19
|
+
@forms = nil
|
35
20
|
end
|
36
21
|
|
37
22
|
##
|
@@ -48,6 +33,21 @@ module Twilio
|
|
48
33
|
end
|
49
34
|
end
|
50
35
|
|
36
|
+
##
|
37
|
+
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
38
|
+
# `form-sms` or `form-totp`.
|
39
|
+
# @return [Twilio::REST::Authy::V1::FormContext] if form_type was passed.
|
40
|
+
# @return [Twilio::REST::Authy::V1::FormList]
|
41
|
+
def forms(form_type=:unset)
|
42
|
+
if form_type.nil?
|
43
|
+
raise ArgumentError, 'form_type cannot be nil'
|
44
|
+
elsif form_type == :unset
|
45
|
+
@forms ||= FormList.new self
|
46
|
+
else
|
47
|
+
FormContext.new(self, form_type)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
51
|
##
|
52
52
|
# Provide a user friendly representation
|
53
53
|
def to_s
|
@@ -68,15 +68,15 @@ module Twilio
|
|
68
68
|
##
|
69
69
|
# Initialize the FormContext
|
70
70
|
# @param [Version] version Version that contains the resource
|
71
|
-
# @param [form.FormTypes]
|
71
|
+
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
72
72
|
# `form-sms` or `form-totp`.
|
73
73
|
# @return [FormContext] FormContext
|
74
|
-
def initialize(version,
|
74
|
+
def initialize(version, form_type)
|
75
75
|
super(version)
|
76
76
|
|
77
77
|
# Path Solution
|
78
|
-
@solution = {
|
79
|
-
@uri = "/Forms/#{@solution[:
|
78
|
+
@solution = {form_type: form_type, }
|
79
|
+
@uri = "/Forms/#{@solution[:form_type]}"
|
80
80
|
end
|
81
81
|
|
82
82
|
##
|
@@ -91,7 +91,7 @@ module Twilio
|
|
91
91
|
params,
|
92
92
|
)
|
93
93
|
|
94
|
-
FormInstance.new(@version, payload,
|
94
|
+
FormInstance.new(@version, payload, form_type: @solution[:form_type], )
|
95
95
|
end
|
96
96
|
|
97
97
|
##
|
@@ -109,15 +109,15 @@ module Twilio
|
|
109
109
|
# Initialize the FormInstance
|
110
110
|
# @param [Version] version Version that contains the resource
|
111
111
|
# @param [Hash] payload payload that contains response from Twilio
|
112
|
-
# @param [form.FormTypes]
|
112
|
+
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
113
113
|
# `form-sms` or `form-totp`.
|
114
114
|
# @return [FormInstance] FormInstance
|
115
|
-
def initialize(version, payload,
|
115
|
+
def initialize(version, payload, form_type: nil)
|
116
116
|
super(version)
|
117
117
|
|
118
118
|
# Marshaled Properties
|
119
119
|
@properties = {
|
120
|
-
'
|
120
|
+
'form_type' => payload['form_type'],
|
121
121
|
'forms' => payload['forms'],
|
122
122
|
'form_meta' => payload['form_meta'],
|
123
123
|
'url' => payload['url'],
|
@@ -125,7 +125,7 @@ module Twilio
|
|
125
125
|
|
126
126
|
# Context
|
127
127
|
@instance_context = nil
|
128
|
-
@params = {'
|
128
|
+
@params = {'form_type' => form_type || @properties['form_type'], }
|
129
129
|
end
|
130
130
|
|
131
131
|
##
|
@@ -134,15 +134,15 @@ module Twilio
|
|
134
134
|
# @return [FormContext] FormContext for this FormInstance
|
135
135
|
def context
|
136
136
|
unless @instance_context
|
137
|
-
@instance_context = FormContext.new(@version, @params['
|
137
|
+
@instance_context = FormContext.new(@version, @params['form_type'], )
|
138
138
|
end
|
139
139
|
@instance_context
|
140
140
|
end
|
141
141
|
|
142
142
|
##
|
143
143
|
# @return [form.FormTypes] The Type of this Form
|
144
|
-
def
|
145
|
-
@properties['
|
144
|
+
def form_type
|
145
|
+
@properties['form_type']
|
146
146
|
end
|
147
147
|
|
148
148
|
##
|
@@ -37,11 +37,15 @@ module Twilio
|
|
37
37
|
# E.g. a phone number for `sms` factors. Required when creating a new Factor. This
|
38
38
|
# value is never returned because it can contain customer secrets.
|
39
39
|
# @param [String] friendly_name The friendly name of this Factor
|
40
|
-
# @param [factor.FactorTypes]
|
41
|
-
# `sms`, `totp`, etc.
|
40
|
+
# @param [factor.FactorTypes] factor_type The Type of this Factor. One of
|
41
|
+
# `app-push`, `sms`, `totp`, etc.
|
42
42
|
# @return [FactorInstance] Newly created FactorInstance
|
43
|
-
def create(binding: nil, friendly_name: nil,
|
44
|
-
data = Twilio::Values.of({
|
43
|
+
def create(binding: nil, friendly_name: nil, factor_type: nil)
|
44
|
+
data = Twilio::Values.of({
|
45
|
+
'Binding' => binding,
|
46
|
+
'FriendlyName' => friendly_name,
|
47
|
+
'FactorType' => factor_type,
|
48
|
+
})
|
45
49
|
|
46
50
|
payload = @version.create(
|
47
51
|
'POST',
|
@@ -318,7 +322,7 @@ module Twilio
|
|
318
322
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
319
323
|
'friendly_name' => payload['friendly_name'],
|
320
324
|
'status' => payload['status'],
|
321
|
-
'
|
325
|
+
'factor_type' => payload['factor_type'],
|
322
326
|
'url' => payload['url'],
|
323
327
|
'links' => payload['links'],
|
324
328
|
}
|
@@ -400,8 +404,8 @@ module Twilio
|
|
400
404
|
|
401
405
|
##
|
402
406
|
# @return [factor.FactorTypes] The Type of this Factor
|
403
|
-
def
|
404
|
-
@properties['
|
407
|
+
def factor_type
|
408
|
+
@properties['factor_type']
|
405
409
|
end
|
406
410
|
|
407
411
|
##
|
@@ -225,7 +225,7 @@ module Twilio
|
|
225
225
|
'responded_reason' => payload['responded_reason'],
|
226
226
|
'details' => payload['details'],
|
227
227
|
'hidden_details' => payload['hidden_details'],
|
228
|
-
'
|
228
|
+
'factor_type' => payload['factor_type'],
|
229
229
|
'url' => payload['url'],
|
230
230
|
}
|
231
231
|
|
@@ -341,9 +341,9 @@ module Twilio
|
|
341
341
|
end
|
342
342
|
|
343
343
|
##
|
344
|
-
# @return [challenge.FactorTypes] The Type of this Challenge
|
345
|
-
def
|
346
|
-
@properties['
|
344
|
+
# @return [challenge.FactorTypes] The Factor Type of this Challenge
|
345
|
+
def factor_type
|
346
|
+
@properties['factor_type']
|
347
347
|
end
|
348
348
|
|
349
349
|
##
|
@@ -120,14 +120,6 @@ module Twilio
|
|
120
120
|
self.hosted_numbers.hosted_number_orders(sid)
|
121
121
|
end
|
122
122
|
|
123
|
-
##
|
124
|
-
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
125
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
126
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
127
|
-
def available_add_ons(sid=:unset)
|
128
|
-
self.marketplace.available_add_ons(sid)
|
129
|
-
end
|
130
|
-
|
131
123
|
##
|
132
124
|
# @param [String] sid 34 character string that uniquely identifies the Add-on.
|
133
125
|
# This Sid can also be found in the Console on that specific Add-ons page as the
|
@@ -138,6 +130,14 @@ module Twilio
|
|
138
130
|
self.marketplace.installed_add_ons(sid)
|
139
131
|
end
|
140
132
|
|
133
|
+
##
|
134
|
+
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
135
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
136
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
137
|
+
def available_add_ons(sid=:unset)
|
138
|
+
self.marketplace.available_add_ons(sid)
|
139
|
+
end
|
140
|
+
|
141
141
|
##
|
142
142
|
# @param [String] sid The sid
|
143
143
|
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
@@ -15,37 +15,37 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'marketplace'
|
18
|
-
@available_add_ons = nil
|
19
18
|
@installed_add_ons = nil
|
19
|
+
@available_add_ons = nil
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] sid The
|
23
|
+
# @param [String] sid The Installed Add-on Sid that uniquely identifies this
|
24
24
|
# resource
|
25
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
26
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
27
|
-
def
|
25
|
+
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnContext] if sid was passed.
|
26
|
+
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
|
27
|
+
def installed_add_ons(sid=:unset)
|
28
28
|
if sid.nil?
|
29
29
|
raise ArgumentError, 'sid cannot be nil'
|
30
30
|
elsif sid == :unset
|
31
|
-
@
|
31
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
32
32
|
else
|
33
|
-
|
33
|
+
InstalledAddOnContext.new(self, sid)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
##
|
38
|
-
# @param [String] sid The
|
38
|
+
# @param [String] sid The Available Add-on Sid that uniquely identifies this
|
39
39
|
# resource
|
40
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
41
|
-
# @return [Twilio::REST::Preview::Marketplace::
|
42
|
-
def
|
40
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnContext] if sid was passed.
|
41
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
42
|
+
def available_add_ons(sid=:unset)
|
43
43
|
if sid.nil?
|
44
44
|
raise ArgumentError, 'sid cannot be nil'
|
45
45
|
elsif sid == :unset
|
46
|
-
@
|
46
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
47
47
|
else
|
48
|
-
|
48
|
+
AvailableAddOnContext.new(self, sid)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -32,8 +32,7 @@ module Twilio
|
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
33
33
|
# memory before returning.
|
34
34
|
# @param [String] unique_name The unique_name
|
35
|
-
# @param [session.Status] status The
|
36
|
-
# `closed`, `failed`, `unknown`.
|
35
|
+
# @param [session.Status] status The status
|
37
36
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
38
37
|
# guarantees to never return more than limit. Default is no limit
|
39
38
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -50,8 +49,7 @@ module Twilio
|
|
50
49
|
# This operation lazily loads records as efficiently as possible until the limit
|
51
50
|
# is reached.
|
52
51
|
# @param [String] unique_name The unique_name
|
53
|
-
# @param [session.Status] status The
|
54
|
-
# `closed`, `failed`, `unknown`.
|
52
|
+
# @param [session.Status] status The status
|
55
53
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
56
54
|
# guarantees to never return more than limit. Default is no limit.
|
57
55
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -85,8 +83,7 @@ module Twilio
|
|
85
83
|
# Retrieve a single page of SessionInstance records from the API.
|
86
84
|
# Request is executed immediately.
|
87
85
|
# @param [String] unique_name The unique_name
|
88
|
-
# @param [session.Status] status The
|
89
|
-
# `closed`, `failed`, `unknown`.
|
86
|
+
# @param [session.Status] status The status
|
90
87
|
# @param [String] page_token PageToken provided by the API
|
91
88
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
92
89
|
# @param [Integer] page_size Number of records to return, defaults to 50
|