twilio-ruby 5.25.1 → 5.25.2
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 +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/authy.rb +8 -8
- data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1.rb +7 -7
- data/lib/twilio-ruby/rest/insights/v1/summary.rb +7 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/messaging.rb +8 -8
- data/lib/twilio-ruby/rest/messaging/v1.rb +14 -14
- data/lib/twilio-ruby/rest/preview.rb +23 -17
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +18 -11
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +205 -0
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +14 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +14 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -33
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +14 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +14 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +14 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -33
- data/lib/twilio-ruby/rest/verify/v2/service.rb +6 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +1 -1
- 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.rb +6 -6
- data/lib/twilio-ruby/rest/wireless/v1.rb +7 -7
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +1 -1
- data/spec/integration/insights/v1/summary_spec.rb +1 -0
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +53 -0
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +0 -49
- data/spec/integration/serverless/v1/service/asset_spec.rb +28 -0
- data/spec/integration/serverless/v1/service/environment/variable_spec.rb +30 -0
- data/spec/integration/serverless/v1/service/environment_spec.rb +28 -0
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +0 -49
- data/spec/integration/serverless/v1/service/function_spec.rb +28 -0
- data/spec/integration/serverless/v1/service_spec.rb +26 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7446c84d3fdaed8c3eb92e246ecabcb0c86e5976724a89dfd3aceb351fa6fb3
|
4
|
+
data.tar.gz: f2375e0fe848ef5cec994d4deaf5c574b26d713bf2d14b3cbe39f0e21e94d336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30136b3f112902c4fd00f4bee84fddab76b2fbd73d24b82cfb4b0d12e9fb2dd3236be819d9227f0e3b6073ff0625111df62c161305fcb2a8c2f823d605f5125a
|
7
|
+
data.tar.gz: aec7f152ab3c8a5ee3f4068e7d426b0662b7ad7db0da10c4f1205309aa2f4485d4c7940190ad62d2e46f9dedfaac98179513fcddac07a32214de6b1ee2015b51
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2019-07-24] Version 5.25.2
|
5
|
+
----------------------------
|
6
|
+
**Insights**
|
7
|
+
- Added `properties` to summary.
|
8
|
+
|
9
|
+
**Preview**
|
10
|
+
- Added endpoint to brand a call without initiating it, so it can be initiated manually by the Customer
|
11
|
+
|
12
|
+
**Twiml**
|
13
|
+
- Update `<Conference>` recording events **(breaking change)**
|
14
|
+
|
15
|
+
|
4
16
|
[2019-07-10] Version 5.25.1
|
5
17
|
----------------------------
|
6
18
|
**Api**
|
data/README.md
CHANGED
@@ -26,13 +26,13 @@ in-line code documentation here in the library.
|
|
26
26
|
To install using [Bundler][bundler] grab the latest stable version:
|
27
27
|
|
28
28
|
```ruby
|
29
|
-
gem 'twilio-ruby', '~> 5.25.
|
29
|
+
gem 'twilio-ruby', '~> 5.25.2'
|
30
30
|
```
|
31
31
|
|
32
32
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
33
33
|
|
34
34
|
```bash
|
35
|
-
gem install twilio-ruby -v 5.25.
|
35
|
+
gem install twilio-ruby -v 5.25.2
|
36
36
|
```
|
37
37
|
|
38
38
|
To build and install the development branch yourself from the latest source:
|
@@ -28,14 +28,6 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
-
##
|
32
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
33
|
-
# @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
|
34
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
35
|
-
def services(sid=:unset)
|
36
|
-
self.v1.services(sid)
|
37
|
-
end
|
38
|
-
|
39
31
|
##
|
40
32
|
# @param [form.FormTypes] form_type The Type of this Form. One of `form-app-push`,
|
41
33
|
# `form-sms` or `form-totp`.
|
@@ -45,6 +37,14 @@ module Twilio
|
|
45
37
|
self.v1.forms(form_type)
|
46
38
|
end
|
47
39
|
|
40
|
+
##
|
41
|
+
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
42
|
+
# @return [Twilio::REST::Authy::V1::ServiceInstance] if sid was passed.
|
43
|
+
# @return [Twilio::REST::Authy::V1::ServiceList]
|
44
|
+
def services(sid=:unset)
|
45
|
+
self.v1.services(sid)
|
46
|
+
end
|
47
|
+
|
48
48
|
##
|
49
49
|
# Provide a user friendly representation
|
50
50
|
def to_s
|
@@ -15,22 +15,8 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@services = nil
|
19
18
|
@forms = nil
|
20
|
-
|
21
|
-
|
22
|
-
##
|
23
|
-
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
24
|
-
# @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
|
25
|
-
# @return [Twilio::REST::Authy::V1::ServiceList]
|
26
|
-
def services(sid=:unset)
|
27
|
-
if sid.nil?
|
28
|
-
raise ArgumentError, 'sid cannot be nil'
|
29
|
-
elsif sid == :unset
|
30
|
-
@services ||= ServiceList.new self
|
31
|
-
else
|
32
|
-
ServiceContext.new(self, sid)
|
33
|
-
end
|
19
|
+
@services = nil
|
34
20
|
end
|
35
21
|
|
36
22
|
##
|
@@ -48,6 +34,20 @@ module Twilio
|
|
48
34
|
end
|
49
35
|
end
|
50
36
|
|
37
|
+
##
|
38
|
+
# @param [String] sid A 34 character string that uniquely identifies this Service.
|
39
|
+
# @return [Twilio::REST::Authy::V1::ServiceContext] if sid was passed.
|
40
|
+
# @return [Twilio::REST::Authy::V1::ServiceList]
|
41
|
+
def services(sid=:unset)
|
42
|
+
if sid.nil?
|
43
|
+
raise ArgumentError, 'sid cannot be nil'
|
44
|
+
elsif sid == :unset
|
45
|
+
@services ||= ServiceList.new self
|
46
|
+
else
|
47
|
+
ServiceContext.new(self, sid)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
51
|
##
|
52
52
|
# Provide a user friendly representation
|
53
53
|
def to_s
|
@@ -247,11 +247,11 @@ module Twilio
|
|
247
247
|
##
|
248
248
|
# Update the ChannelInstance
|
249
249
|
# @param [String] friendly_name A descriptive string that you create to describe
|
250
|
-
# the resource. It can be up to
|
250
|
+
# the resource. It can be up to 256 characters long.
|
251
251
|
# @param [String] unique_name An application-defined string that uniquely
|
252
252
|
# identifies the resource. It can be used to address the resource in place of the
|
253
|
-
# resource's `sid` in the URL. This value must be
|
254
|
-
# and
|
253
|
+
# resource's `sid` in the URL. This value must be 256 characters or less in length
|
254
|
+
# and unique within the Service.
|
255
255
|
# @param [String] attributes A valid JSON string that contains
|
256
256
|
# application-specific data.
|
257
257
|
# @param [Time] date_created The date, specified in [ISO
|
@@ -534,11 +534,11 @@ module Twilio
|
|
534
534
|
##
|
535
535
|
# Update the ChannelInstance
|
536
536
|
# @param [String] friendly_name A descriptive string that you create to describe
|
537
|
-
# the resource. It can be up to
|
537
|
+
# the resource. It can be up to 256 characters long.
|
538
538
|
# @param [String] unique_name An application-defined string that uniquely
|
539
539
|
# identifies the resource. It can be used to address the resource in place of the
|
540
|
-
# resource's `sid` in the URL. This value must be
|
541
|
-
# and
|
540
|
+
# resource's `sid` in the URL. This value must be 256 characters or less in length
|
541
|
+
# and unique within the Service.
|
542
542
|
# @param [String] attributes A valid JSON string that contains
|
543
543
|
# application-specific data.
|
544
544
|
# @param [Time] date_created The date, specified in [ISO
|
@@ -28,6 +28,12 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @return [Twilio::REST::Flex_api::V1::ConfigurationInstance]
|
33
|
+
def configuration
|
34
|
+
self.v1.configuration()
|
35
|
+
end
|
36
|
+
|
31
37
|
##
|
32
38
|
# @param [String] sid The unique ID of the FlexFlow
|
33
39
|
# @return [Twilio::REST::Flex_api::V1::FlexFlowInstance] if sid was passed.
|
@@ -36,12 +42,6 @@ module Twilio
|
|
36
42
|
self.v1.flex_flow(sid)
|
37
43
|
end
|
38
44
|
|
39
|
-
##
|
40
|
-
# @return [Twilio::REST::Flex_api::V1::ConfigurationInstance]
|
41
|
-
def configuration
|
42
|
-
self.v1.configuration()
|
43
|
-
end
|
44
|
-
|
45
45
|
##
|
46
46
|
# Provide a user friendly representation
|
47
47
|
def to_s
|
@@ -15,8 +15,14 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@flex_flow = nil
|
19
18
|
@configuration = nil
|
19
|
+
@flex_flow = nil
|
20
|
+
end
|
21
|
+
|
22
|
+
##
|
23
|
+
# @return [Twilio::REST::Flex_api::V1::ConfigurationContext]
|
24
|
+
def configuration
|
25
|
+
@configuration ||= ConfigurationContext.new self
|
20
26
|
end
|
21
27
|
|
22
28
|
##
|
@@ -33,12 +39,6 @@ module Twilio
|
|
33
39
|
end
|
34
40
|
end
|
35
41
|
|
36
|
-
##
|
37
|
-
# @return [Twilio::REST::Flex_api::V1::ConfigurationContext]
|
38
|
-
def configuration
|
39
|
-
@configuration ||= ConfigurationContext.new self
|
40
|
-
end
|
41
|
-
|
42
42
|
##
|
43
43
|
# Provide a user friendly representation
|
44
44
|
def to_s
|
@@ -143,6 +143,7 @@ module Twilio
|
|
143
143
|
'tags' => payload['tags'],
|
144
144
|
'url' => payload['url'],
|
145
145
|
'attributes' => payload['attributes'],
|
146
|
+
'properties' => payload['properties'],
|
146
147
|
}
|
147
148
|
|
148
149
|
# Context
|
@@ -281,6 +282,12 @@ module Twilio
|
|
281
282
|
@properties['attributes']
|
282
283
|
end
|
283
284
|
|
285
|
+
##
|
286
|
+
# @return [Hash] The properties
|
287
|
+
def properties
|
288
|
+
@properties['properties']
|
289
|
+
end
|
290
|
+
|
284
291
|
##
|
285
292
|
# Fetch a CallSummaryInstance
|
286
293
|
# @param [call_summary.ProcessingState] processing_state The processing_state
|
@@ -247,11 +247,11 @@ module Twilio
|
|
247
247
|
##
|
248
248
|
# Update the ChannelInstance
|
249
249
|
# @param [String] friendly_name A descriptive string that you create to describe
|
250
|
-
# the resource. It can be up to
|
250
|
+
# the resource. It can be up to 256 characters long.
|
251
251
|
# @param [String] unique_name An application-defined string that uniquely
|
252
252
|
# identifies the resource. It can be used to address the resource in place of the
|
253
|
-
# resource's `sid` in the URL. This value must be
|
254
|
-
# and
|
253
|
+
# resource's `sid` in the URL. This value must be 256 characters or less in length
|
254
|
+
# and unique within the Service.
|
255
255
|
# @param [String] attributes A valid JSON string that contains
|
256
256
|
# application-specific data.
|
257
257
|
# @param [Time] date_created The date, specified in [ISO
|
@@ -534,11 +534,11 @@ module Twilio
|
|
534
534
|
##
|
535
535
|
# Update the ChannelInstance
|
536
536
|
# @param [String] friendly_name A descriptive string that you create to describe
|
537
|
-
# the resource. It can be up to
|
537
|
+
# the resource. It can be up to 256 characters long.
|
538
538
|
# @param [String] unique_name An application-defined string that uniquely
|
539
539
|
# identifies the resource. It can be used to address the resource in place of the
|
540
|
-
# resource's `sid` in the URL. This value must be
|
541
|
-
# and
|
540
|
+
# resource's `sid` in the URL. This value must be 256 characters or less in length
|
541
|
+
# and unique within the Service.
|
542
542
|
# @param [String] attributes A valid JSON string that contains
|
543
543
|
# application-specific data.
|
544
544
|
# @param [Time] date_created The date, specified in [ISO
|
@@ -28,6 +28,14 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @param [String] sid Unique 34 character ID of the Service.
|
33
|
+
# @return [Twilio::REST::Messaging::V1::ServiceInstance] if sid was passed.
|
34
|
+
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
35
|
+
def services(sid=:unset)
|
36
|
+
self.v1.services(sid)
|
37
|
+
end
|
38
|
+
|
31
39
|
##
|
32
40
|
# @param [String] sid A 34 character string that uniquely identifies this
|
33
41
|
# resource.
|
@@ -37,14 +45,6 @@ module Twilio
|
|
37
45
|
self.v1.sessions(sid)
|
38
46
|
end
|
39
47
|
|
40
|
-
##
|
41
|
-
# @param [String] sid Unique 34 character ID of the Service.
|
42
|
-
# @return [Twilio::REST::Messaging::V1::ServiceInstance] if sid was passed.
|
43
|
-
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
44
|
-
def services(sid=:unset)
|
45
|
-
self.v1.services(sid)
|
46
|
-
end
|
47
|
-
|
48
48
|
##
|
49
49
|
# @return [Twilio::REST::Messaging::V1::WebhookInstance]
|
50
50
|
def webhooks
|
@@ -15,37 +15,37 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
-
@sessions = nil
|
19
18
|
@services = nil
|
19
|
+
@sessions = nil
|
20
20
|
@webhooks = nil
|
21
21
|
end
|
22
22
|
|
23
23
|
##
|
24
|
-
# @param [String] sid
|
25
|
-
#
|
26
|
-
# @return [Twilio::REST::Messaging::V1::
|
27
|
-
|
28
|
-
def sessions(sid=:unset)
|
24
|
+
# @param [String] sid The sid
|
25
|
+
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
|
26
|
+
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
27
|
+
def services(sid=:unset)
|
29
28
|
if sid.nil?
|
30
29
|
raise ArgumentError, 'sid cannot be nil'
|
31
30
|
elsif sid == :unset
|
32
|
-
@
|
31
|
+
@services ||= ServiceList.new self
|
33
32
|
else
|
34
|
-
|
33
|
+
ServiceContext.new(self, sid)
|
35
34
|
end
|
36
35
|
end
|
37
36
|
|
38
37
|
##
|
39
|
-
# @param [String] sid
|
40
|
-
#
|
41
|
-
# @return [Twilio::REST::Messaging::V1::
|
42
|
-
|
38
|
+
# @param [String] sid A 34 character string that uniquely identifies this
|
39
|
+
# resource.
|
40
|
+
# @return [Twilio::REST::Messaging::V1::SessionContext] if sid was passed.
|
41
|
+
# @return [Twilio::REST::Messaging::V1::SessionList]
|
42
|
+
def sessions(sid=:unset)
|
43
43
|
if sid.nil?
|
44
44
|
raise ArgumentError, 'sid cannot be nil'
|
45
45
|
elsif sid == :unset
|
46
|
-
@
|
46
|
+
@sessions ||= SessionList.new self
|
47
47
|
else
|
48
|
-
|
48
|
+
SessionContext.new(self, sid)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -127,6 +127,14 @@ module Twilio
|
|
127
127
|
self.hosted_numbers.hosted_number_orders(sid)
|
128
128
|
end
|
129
129
|
|
130
|
+
##
|
131
|
+
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
132
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
133
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
134
|
+
def available_add_ons(sid=:unset)
|
135
|
+
self.marketplace.available_add_ons(sid)
|
136
|
+
end
|
137
|
+
|
130
138
|
##
|
131
139
|
# @param [String] sid 34 character string that uniquely identifies the Add-on.
|
132
140
|
# This Sid can also be found in the Console on that specific Add-ons page as the
|
@@ -137,14 +145,6 @@ module Twilio
|
|
137
145
|
self.marketplace.installed_add_ons(sid)
|
138
146
|
end
|
139
147
|
|
140
|
-
##
|
141
|
-
# @param [String] sid A 34 character string that uniquely identifies this Add-on.
|
142
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
|
143
|
-
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
144
|
-
def available_add_ons(sid=:unset)
|
145
|
-
self.marketplace.available_add_ons(sid)
|
146
|
-
end
|
147
|
-
|
148
148
|
##
|
149
149
|
# @param [String] sid The sid
|
150
150
|
# @return [Twilio::REST::Preview::Sync::ServiceInstance] if sid was passed.
|
@@ -187,15 +187,15 @@ module Twilio
|
|
187
187
|
end
|
188
188
|
|
189
189
|
##
|
190
|
-
# @return [Twilio::REST::Preview::TrustedComms::
|
191
|
-
def
|
192
|
-
self.trusted_comms.
|
190
|
+
# @return [Twilio::REST::Preview::TrustedComms::BrandedCallInstance]
|
191
|
+
def branded_calls
|
192
|
+
self.trusted_comms.branded_calls()
|
193
193
|
end
|
194
194
|
|
195
195
|
##
|
196
|
-
# @return [Twilio::REST::Preview::TrustedComms::
|
197
|
-
def
|
198
|
-
self.trusted_comms.
|
196
|
+
# @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
|
197
|
+
def cps
|
198
|
+
self.trusted_comms.cps()
|
199
199
|
end
|
200
200
|
|
201
201
|
##
|
@@ -205,9 +205,15 @@ module Twilio
|
|
205
205
|
end
|
206
206
|
|
207
207
|
##
|
208
|
-
# @return [Twilio::REST::Preview::TrustedComms::
|
209
|
-
def
|
210
|
-
self.trusted_comms.
|
208
|
+
# @return [Twilio::REST::Preview::TrustedComms::DeviceInstance]
|
209
|
+
def devices
|
210
|
+
self.trusted_comms.devices()
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# @return [Twilio::REST::Preview::TrustedComms::PhoneCallInstance]
|
215
|
+
def phone_calls
|
216
|
+
self.trusted_comms.phone_calls()
|
211
217
|
end
|
212
218
|
|
213
219
|
##
|
@@ -15,37 +15,37 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'marketplace'
|
18
|
-
@installed_add_ons = nil
|
19
18
|
@available_add_ons = nil
|
19
|
+
@installed_add_ons = nil
|
20
20
|
end
|
21
21
|
|
22
22
|
##
|
23
|
-
# @param [String] sid The
|
23
|
+
# @param [String] sid The Available 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::AvailableAddOnContext] if sid was passed.
|
26
|
+
# @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
|
27
|
+
def available_add_ons(sid=:unset)
|
28
28
|
if sid.nil?
|
29
29
|
raise ArgumentError, 'sid cannot be nil'
|
30
30
|
elsif sid == :unset
|
31
|
-
@
|
31
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
32
32
|
else
|
33
|
-
|
33
|
+
AvailableAddOnContext.new(self, sid)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
##
|
38
|
-
# @param [String] sid The
|
38
|
+
# @param [String] sid The Installed 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::InstalledAddOnContext] if sid was passed.
|
41
|
+
# @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
|
42
|
+
def installed_add_ons(sid=:unset)
|
43
43
|
if sid.nil?
|
44
44
|
raise ArgumentError, 'sid cannot be nil'
|
45
45
|
elsif sid == :unset
|
46
|
-
@
|
46
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
47
47
|
else
|
48
|
-
|
48
|
+
InstalledAddOnContext.new(self, sid)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|