twilio-ruby 7.1.0 → 7.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,335 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
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 Marketplace < MarketplaceBase
19
+ class V1 < Version
20
+ class AvailableAddOnList < ListResource
21
+
22
+ ##
23
+ # Initialize the AvailableAddOnList
24
+ # @param [Version] version Version that contains the resource
25
+ # @return [AvailableAddOnList] AvailableAddOnList
26
+ def initialize(version)
27
+ super(version)
28
+ # Path Solution
29
+ @solution = { }
30
+ @uri = "/AvailableAddOns"
31
+
32
+ end
33
+
34
+ ##
35
+ # Lists AvailableAddOnInstance records from the API as a list.
36
+ # Unlike stream(), this operation is eager and will load `limit` records into
37
+ # memory before returning.
38
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
39
+ # guarantees to never return more than limit. Default is no limit
40
+ # @param [Integer] page_size Number of records to fetch per request, when
41
+ # not set will use the default value of 50 records. If no page_size is defined
42
+ # but a limit is defined, stream() will attempt to read the limit with the most
43
+ # efficient page size, i.e. min(limit, 1000)
44
+ # @return [Array] Array of up to limit results
45
+ def list(limit: nil, page_size: nil)
46
+ self.stream(
47
+ limit: limit,
48
+ page_size: page_size
49
+ ).entries
50
+ end
51
+
52
+ ##
53
+ # Streams Instance records from the API as an Enumerable.
54
+ # This operation lazily loads records as efficiently as possible until the limit
55
+ # is reached.
56
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
57
+ # guarantees to never return more than limit. Default is no limit
58
+ # @param [Integer] page_size Number of records to fetch per request, when
59
+ # not set will use the default value of 50 records. If no page_size is defined
60
+ # but a limit is defined, stream() will attempt to read the limit with the most
61
+ # efficient page size, i.e. min(limit, 1000)
62
+ # @return [Enumerable] Enumerable that will yield up to limit results
63
+ def stream(limit: nil, page_size: nil)
64
+ limits = @version.read_limits(limit, page_size)
65
+
66
+ page = self.page(
67
+ page_size: limits[:page_size], )
68
+
69
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
70
+ end
71
+
72
+ ##
73
+ # When passed a block, yields AvailableAddOnInstance records from the API.
74
+ # This operation lazily loads records as efficiently as possible until the limit
75
+ # is reached.
76
+ def each
77
+ limits = @version.read_limits
78
+
79
+ page = self.page(page_size: limits[:page_size], )
80
+
81
+ @version.stream(page,
82
+ limit: limits[:limit],
83
+ page_limit: limits[:page_limit]).each {|x| yield x}
84
+ end
85
+
86
+ ##
87
+ # Retrieve a single page of AvailableAddOnInstance records from the API.
88
+ # Request is executed immediately.
89
+ # @param [String] page_token PageToken provided by the API
90
+ # @param [Integer] page_number Page Number, this value is simply for client state
91
+ # @param [Integer] page_size Number of records to return, defaults to 50
92
+ # @return [Page] Page of AvailableAddOnInstance
93
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
94
+ params = Twilio::Values.of({
95
+ 'PageToken' => page_token,
96
+ 'Page' => page_number,
97
+ 'PageSize' => page_size,
98
+ })
99
+
100
+ response = @version.page('GET', @uri, params: params)
101
+
102
+ AvailableAddOnPage.new(@version, response, @solution)
103
+ end
104
+
105
+ ##
106
+ # Retrieve a single page of AvailableAddOnInstance records from the API.
107
+ # Request is executed immediately.
108
+ # @param [String] target_url API-generated URL for the requested results page
109
+ # @return [Page] Page of AvailableAddOnInstance
110
+ def get_page(target_url)
111
+ response = @version.domain.request(
112
+ 'GET',
113
+ target_url
114
+ )
115
+ AvailableAddOnPage.new(@version, response, @solution)
116
+ end
117
+
118
+
119
+
120
+ # Provide a user friendly representation
121
+ def to_s
122
+ '#<Twilio.Marketplace.V1.AvailableAddOnList>'
123
+ end
124
+ end
125
+
126
+
127
+ class AvailableAddOnContext < InstanceContext
128
+ ##
129
+ # Initialize the AvailableAddOnContext
130
+ # @param [Version] version Version that contains the resource
131
+ # @param [String] sid The SID of the AvailableAddOn resource to fetch.
132
+ # @return [AvailableAddOnContext] AvailableAddOnContext
133
+ def initialize(version, sid)
134
+ super(version)
135
+
136
+ # Path Solution
137
+ @solution = { sid: sid, }
138
+ @uri = "/AvailableAddOns/#{@solution[:sid]}"
139
+
140
+ # Dependents
141
+ @extensions = nil
142
+ end
143
+ ##
144
+ # Fetch the AvailableAddOnInstance
145
+ # @return [AvailableAddOnInstance] Fetched AvailableAddOnInstance
146
+ def fetch
147
+
148
+
149
+ payload = @version.fetch('GET', @uri)
150
+ AvailableAddOnInstance.new(
151
+ @version,
152
+ payload,
153
+ sid: @solution[:sid],
154
+ )
155
+ end
156
+
157
+ ##
158
+ # Access the extensions
159
+ # @return [AvailableAddOnExtensionList]
160
+ # @return [AvailableAddOnExtensionContext] if sid was passed.
161
+ def extensions(sid=:unset)
162
+
163
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
164
+
165
+ if sid != :unset
166
+ return AvailableAddOnExtensionContext.new(@version, @solution[:sid],sid )
167
+ end
168
+
169
+ unless @extensions
170
+ @extensions = AvailableAddOnExtensionList.new(
171
+ @version, available_add_on_sid: @solution[:sid], )
172
+ end
173
+
174
+ @extensions
175
+ end
176
+
177
+ ##
178
+ # Provide a user friendly representation
179
+ def to_s
180
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
181
+ "#<Twilio.Marketplace.V1.AvailableAddOnContext #{context}>"
182
+ end
183
+
184
+ ##
185
+ # Provide a detailed, user friendly representation
186
+ def inspect
187
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
188
+ "#<Twilio.Marketplace.V1.AvailableAddOnContext #{context}>"
189
+ end
190
+ end
191
+
192
+ class AvailableAddOnPage < Page
193
+ ##
194
+ # Initialize the AvailableAddOnPage
195
+ # @param [Version] version Version that contains the resource
196
+ # @param [Response] response Response from the API
197
+ # @param [Hash] solution Path solution for the resource
198
+ # @return [AvailableAddOnPage] AvailableAddOnPage
199
+ def initialize(version, response, solution)
200
+ super(version, response)
201
+
202
+ # Path Solution
203
+ @solution = solution
204
+ end
205
+
206
+ ##
207
+ # Build an instance of AvailableAddOnInstance
208
+ # @param [Hash] payload Payload response from the API
209
+ # @return [AvailableAddOnInstance] AvailableAddOnInstance
210
+ def get_instance(payload)
211
+ AvailableAddOnInstance.new(@version, payload)
212
+ end
213
+
214
+ ##
215
+ # Provide a user friendly representation
216
+ def to_s
217
+ '<Twilio.Marketplace.V1.AvailableAddOnPage>'
218
+ end
219
+ end
220
+ class AvailableAddOnInstance < InstanceResource
221
+ ##
222
+ # Initialize the AvailableAddOnInstance
223
+ # @param [Version] version Version that contains the resource
224
+ # @param [Hash] payload payload that contains response from Twilio
225
+ # @param [String] account_sid The SID of the
226
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AvailableAddOn
227
+ # resource.
228
+ # @param [String] sid The SID of the Call resource to fetch.
229
+ # @return [AvailableAddOnInstance] AvailableAddOnInstance
230
+ def initialize(version, payload , sid: nil)
231
+ super(version)
232
+
233
+ # Marshaled Properties
234
+ @properties = {
235
+ 'sid' => payload['sid'],
236
+ 'friendly_name' => payload['friendly_name'],
237
+ 'description' => payload['description'],
238
+ 'pricing_type' => payload['pricing_type'],
239
+ 'configuration_schema' => payload['configuration_schema'],
240
+ 'url' => payload['url'],
241
+ 'links' => payload['links'],
242
+ }
243
+
244
+ # Context
245
+ @instance_context = nil
246
+ @params = { 'sid' => sid || @properties['sid'] , }
247
+ end
248
+
249
+ ##
250
+ # Generate an instance context for the instance, the context is capable of
251
+ # performing various actions. All instance actions are proxied to the context
252
+ # @return [AvailableAddOnContext] CallContext for this CallInstance
253
+ def context
254
+ unless @instance_context
255
+ @instance_context = AvailableAddOnContext.new(@version , @params['sid'])
256
+ end
257
+ @instance_context
258
+ end
259
+
260
+ ##
261
+ # @return [String] The unique string that we created to identify the AvailableAddOn resource.
262
+ def sid
263
+ @properties['sid']
264
+ end
265
+
266
+ ##
267
+ # @return [String] The string that you assigned to describe the resource.
268
+ def friendly_name
269
+ @properties['friendly_name']
270
+ end
271
+
272
+ ##
273
+ # @return [String] A short description of the Add-on's functionality.
274
+ def description
275
+ @properties['description']
276
+ end
277
+
278
+ ##
279
+ # @return [String] How customers are charged for using this Add-on.
280
+ def pricing_type
281
+ @properties['pricing_type']
282
+ end
283
+
284
+ ##
285
+ # @return [Hash] The JSON object with the configuration that must be provided when installing a given Add-on.
286
+ def configuration_schema
287
+ @properties['configuration_schema']
288
+ end
289
+
290
+ ##
291
+ # @return [String] The absolute URL of the resource.
292
+ def url
293
+ @properties['url']
294
+ end
295
+
296
+ ##
297
+ # @return [Hash] The URLs of related resources.
298
+ def links
299
+ @properties['links']
300
+ end
301
+
302
+ ##
303
+ # Fetch the AvailableAddOnInstance
304
+ # @return [AvailableAddOnInstance] Fetched AvailableAddOnInstance
305
+ def fetch
306
+
307
+ context.fetch
308
+ end
309
+
310
+ ##
311
+ # Access the extensions
312
+ # @return [extensions] extensions
313
+ def extensions
314
+ context.extensions
315
+ end
316
+
317
+ ##
318
+ # Provide a user friendly representation
319
+ def to_s
320
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
321
+ "<Twilio.Marketplace.V1.AvailableAddOnInstance #{values}>"
322
+ end
323
+
324
+ ##
325
+ # Provide a detailed, user friendly representation
326
+ def inspect
327
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
328
+ "<Twilio.Marketplace.V1.AvailableAddOnInstance #{values}>"
329
+ end
330
+ end
331
+
332
+ end
333
+ end
334
+ end
335
+ end
@@ -0,0 +1,350 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Marketplace
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 Marketplace < MarketplaceBase
19
+ class V1 < Version
20
+ class InstalledAddOnContext < InstanceContext
21
+
22
+ class InstalledAddOnExtensionList < ListResource
23
+
24
+ ##
25
+ # Initialize the InstalledAddOnExtensionList
26
+ # @param [Version] version Version that contains the resource
27
+ # @return [InstalledAddOnExtensionList] InstalledAddOnExtensionList
28
+ def initialize(version, installed_add_on_sid: nil)
29
+ super(version)
30
+ # Path Solution
31
+ @solution = { installed_add_on_sid: installed_add_on_sid }
32
+ @uri = "/InstalledAddOns/#{@solution[:installed_add_on_sid]}/Extensions"
33
+
34
+ end
35
+
36
+ ##
37
+ # Lists InstalledAddOnExtensionInstance records from the API as a list.
38
+ # Unlike stream(), this operation is eager and will load `limit` records into
39
+ # memory before returning.
40
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
41
+ # guarantees to never return more than limit. Default is no limit
42
+ # @param [Integer] page_size Number of records to fetch per request, when
43
+ # not set will use the default value of 50 records. If no page_size is defined
44
+ # but a limit is defined, stream() will attempt to read the limit with the most
45
+ # efficient page size, i.e. min(limit, 1000)
46
+ # @return [Array] Array of up to limit results
47
+ def list(limit: nil, page_size: nil)
48
+ self.stream(
49
+ limit: limit,
50
+ page_size: page_size
51
+ ).entries
52
+ end
53
+
54
+ ##
55
+ # Streams Instance records from the API as an Enumerable.
56
+ # This operation lazily loads records as efficiently as possible until the limit
57
+ # is reached.
58
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
59
+ # guarantees to never return more than limit. Default is no limit
60
+ # @param [Integer] page_size Number of records to fetch per request, when
61
+ # not set will use the default value of 50 records. If no page_size is defined
62
+ # but a limit is defined, stream() will attempt to read the limit with the most
63
+ # efficient page size, i.e. min(limit, 1000)
64
+ # @return [Enumerable] Enumerable that will yield up to limit results
65
+ def stream(limit: nil, page_size: nil)
66
+ limits = @version.read_limits(limit, page_size)
67
+
68
+ page = self.page(
69
+ page_size: limits[:page_size], )
70
+
71
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
72
+ end
73
+
74
+ ##
75
+ # When passed a block, yields InstalledAddOnExtensionInstance records from the API.
76
+ # This operation lazily loads records as efficiently as possible until the limit
77
+ # is reached.
78
+ def each
79
+ limits = @version.read_limits
80
+
81
+ page = self.page(page_size: limits[:page_size], )
82
+
83
+ @version.stream(page,
84
+ limit: limits[:limit],
85
+ page_limit: limits[:page_limit]).each {|x| yield x}
86
+ end
87
+
88
+ ##
89
+ # Retrieve a single page of InstalledAddOnExtensionInstance records from the API.
90
+ # Request is executed immediately.
91
+ # @param [String] page_token PageToken provided by the API
92
+ # @param [Integer] page_number Page Number, this value is simply for client state
93
+ # @param [Integer] page_size Number of records to return, defaults to 50
94
+ # @return [Page] Page of InstalledAddOnExtensionInstance
95
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
96
+ params = Twilio::Values.of({
97
+ 'PageToken' => page_token,
98
+ 'Page' => page_number,
99
+ 'PageSize' => page_size,
100
+ })
101
+
102
+ response = @version.page('GET', @uri, params: params)
103
+
104
+ InstalledAddOnExtensionPage.new(@version, response, @solution)
105
+ end
106
+
107
+ ##
108
+ # Retrieve a single page of InstalledAddOnExtensionInstance records from the API.
109
+ # Request is executed immediately.
110
+ # @param [String] target_url API-generated URL for the requested results page
111
+ # @return [Page] Page of InstalledAddOnExtensionInstance
112
+ def get_page(target_url)
113
+ response = @version.domain.request(
114
+ 'GET',
115
+ target_url
116
+ )
117
+ InstalledAddOnExtensionPage.new(@version, response, @solution)
118
+ end
119
+
120
+
121
+
122
+ # Provide a user friendly representation
123
+ def to_s
124
+ '#<Twilio.Marketplace.V1.InstalledAddOnExtensionList>'
125
+ end
126
+ end
127
+
128
+
129
+ class InstalledAddOnExtensionContext < InstanceContext
130
+ ##
131
+ # Initialize the InstalledAddOnExtensionContext
132
+ # @param [Version] version Version that contains the resource
133
+ # @param [String] installed_add_on_sid The SID of the InstalledAddOn resource with the extension to update.
134
+ # @param [String] sid The SID of the InstalledAddOn Extension resource to update.
135
+ # @return [InstalledAddOnExtensionContext] InstalledAddOnExtensionContext
136
+ def initialize(version, installed_add_on_sid, sid)
137
+ super(version)
138
+
139
+ # Path Solution
140
+ @solution = { installed_add_on_sid: installed_add_on_sid, sid: sid, }
141
+ @uri = "/InstalledAddOns/#{@solution[:installed_add_on_sid]}/Extensions/#{@solution[:sid]}"
142
+
143
+
144
+ end
145
+ ##
146
+ # Fetch the InstalledAddOnExtensionInstance
147
+ # @return [InstalledAddOnExtensionInstance] Fetched InstalledAddOnExtensionInstance
148
+ def fetch
149
+
150
+
151
+ payload = @version.fetch('GET', @uri)
152
+ InstalledAddOnExtensionInstance.new(
153
+ @version,
154
+ payload,
155
+ installed_add_on_sid: @solution[:installed_add_on_sid],
156
+ sid: @solution[:sid],
157
+ )
158
+ end
159
+
160
+ ##
161
+ # Update the InstalledAddOnExtensionInstance
162
+ # @param [Boolean] enabled Whether the Extension should be invoked.
163
+ # @return [InstalledAddOnExtensionInstance] Updated InstalledAddOnExtensionInstance
164
+ def update(
165
+ enabled: nil
166
+ )
167
+
168
+ data = Twilio::Values.of({
169
+ 'Enabled' => enabled,
170
+ })
171
+
172
+
173
+ payload = @version.update('POST', @uri, data: data)
174
+ InstalledAddOnExtensionInstance.new(
175
+ @version,
176
+ payload,
177
+ installed_add_on_sid: @solution[:installed_add_on_sid],
178
+ sid: @solution[:sid],
179
+ )
180
+ end
181
+
182
+
183
+ ##
184
+ # Provide a user friendly representation
185
+ def to_s
186
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
187
+ "#<Twilio.Marketplace.V1.InstalledAddOnExtensionContext #{context}>"
188
+ end
189
+
190
+ ##
191
+ # Provide a detailed, user friendly representation
192
+ def inspect
193
+ context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
194
+ "#<Twilio.Marketplace.V1.InstalledAddOnExtensionContext #{context}>"
195
+ end
196
+ end
197
+
198
+ class InstalledAddOnExtensionPage < Page
199
+ ##
200
+ # Initialize the InstalledAddOnExtensionPage
201
+ # @param [Version] version Version that contains the resource
202
+ # @param [Response] response Response from the API
203
+ # @param [Hash] solution Path solution for the resource
204
+ # @return [InstalledAddOnExtensionPage] InstalledAddOnExtensionPage
205
+ def initialize(version, response, solution)
206
+ super(version, response)
207
+
208
+ # Path Solution
209
+ @solution = solution
210
+ end
211
+
212
+ ##
213
+ # Build an instance of InstalledAddOnExtensionInstance
214
+ # @param [Hash] payload Payload response from the API
215
+ # @return [InstalledAddOnExtensionInstance] InstalledAddOnExtensionInstance
216
+ def get_instance(payload)
217
+ InstalledAddOnExtensionInstance.new(@version, payload, installed_add_on_sid: @solution[:installed_add_on_sid])
218
+ end
219
+
220
+ ##
221
+ # Provide a user friendly representation
222
+ def to_s
223
+ '<Twilio.Marketplace.V1.InstalledAddOnExtensionPage>'
224
+ end
225
+ end
226
+ class InstalledAddOnExtensionInstance < InstanceResource
227
+ ##
228
+ # Initialize the InstalledAddOnExtensionInstance
229
+ # @param [Version] version Version that contains the resource
230
+ # @param [Hash] payload payload that contains response from Twilio
231
+ # @param [String] account_sid The SID of the
232
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this InstalledAddOnExtension
233
+ # resource.
234
+ # @param [String] sid The SID of the Call resource to fetch.
235
+ # @return [InstalledAddOnExtensionInstance] InstalledAddOnExtensionInstance
236
+ def initialize(version, payload , installed_add_on_sid: nil, sid: nil)
237
+ super(version)
238
+
239
+ # Marshaled Properties
240
+ @properties = {
241
+ 'sid' => payload['sid'],
242
+ 'installed_add_on_sid' => payload['installed_add_on_sid'],
243
+ 'friendly_name' => payload['friendly_name'],
244
+ 'product_name' => payload['product_name'],
245
+ 'unique_name' => payload['unique_name'],
246
+ 'enabled' => payload['enabled'],
247
+ 'url' => payload['url'],
248
+ }
249
+
250
+ # Context
251
+ @instance_context = nil
252
+ @params = { 'installed_add_on_sid' => installed_add_on_sid || @properties['installed_add_on_sid'] ,'sid' => sid || @properties['sid'] , }
253
+ end
254
+
255
+ ##
256
+ # Generate an instance context for the instance, the context is capable of
257
+ # performing various actions. All instance actions are proxied to the context
258
+ # @return [InstalledAddOnExtensionContext] CallContext for this CallInstance
259
+ def context
260
+ unless @instance_context
261
+ @instance_context = InstalledAddOnExtensionContext.new(@version , @params['installed_add_on_sid'], @params['sid'])
262
+ end
263
+ @instance_context
264
+ end
265
+
266
+ ##
267
+ # @return [String] The unique string that we created to identify the InstalledAddOn Extension resource.
268
+ def sid
269
+ @properties['sid']
270
+ end
271
+
272
+ ##
273
+ # @return [String] The SID of the InstalledAddOn resource to which this extension applies.
274
+ def installed_add_on_sid
275
+ @properties['installed_add_on_sid']
276
+ end
277
+
278
+ ##
279
+ # @return [String] The string that you assigned to describe the resource.
280
+ def friendly_name
281
+ @properties['friendly_name']
282
+ end
283
+
284
+ ##
285
+ # @return [String] The name of the Product this Extension is used within.
286
+ def product_name
287
+ @properties['product_name']
288
+ end
289
+
290
+ ##
291
+ # @return [String] An application-defined string that uniquely identifies the resource.
292
+ def unique_name
293
+ @properties['unique_name']
294
+ end
295
+
296
+ ##
297
+ # @return [Boolean] Whether the Extension will be invoked.
298
+ def enabled
299
+ @properties['enabled']
300
+ end
301
+
302
+ ##
303
+ # @return [String] The absolute URL of the resource.
304
+ def url
305
+ @properties['url']
306
+ end
307
+
308
+ ##
309
+ # Fetch the InstalledAddOnExtensionInstance
310
+ # @return [InstalledAddOnExtensionInstance] Fetched InstalledAddOnExtensionInstance
311
+ def fetch
312
+
313
+ context.fetch
314
+ end
315
+
316
+ ##
317
+ # Update the InstalledAddOnExtensionInstance
318
+ # @param [Boolean] enabled Whether the Extension should be invoked.
319
+ # @return [InstalledAddOnExtensionInstance] Updated InstalledAddOnExtensionInstance
320
+ def update(
321
+ enabled: nil
322
+ )
323
+
324
+ context.update(
325
+ enabled: enabled,
326
+ )
327
+ end
328
+
329
+ ##
330
+ # Provide a user friendly representation
331
+ def to_s
332
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
333
+ "<Twilio.Marketplace.V1.InstalledAddOnExtensionInstance #{values}>"
334
+ end
335
+
336
+ ##
337
+ # Provide a detailed, user friendly representation
338
+ def inspect
339
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
340
+ "<Twilio.Marketplace.V1.InstalledAddOnExtensionInstance #{values}>"
341
+ end
342
+ end
343
+
344
+ end
345
+ end
346
+ end
347
+ end
348
+ end
349
+
350
+