twilio-ruby 7.6.3 → 7.6.4
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 +28 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +1 -1
- data/lib/twilio-ruby/rest/client.rb +0 -10
- data/lib/twilio-ruby/rest/lookups/v2/bucket.rb +315 -0
- data/lib/twilio-ruby/rest/lookups/v2/lookup_override.rb +390 -0
- data/lib/twilio-ruby/rest/lookups/v2/query.rb +456 -0
- data/lib/twilio-ruby/rest/lookups/v2/rate_limit.rb +136 -0
- data/lib/twilio-ruby/rest/lookups/v2.rb +86 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +133 -1
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -27
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +2 -2
- data/lib/twilio-ruby/rest/{proxy/v1/service/short_code.rb → video/v1/room/transcriptions.rb} +110 -123
- data/lib/twilio-ruby/rest/video/v1/room.rb +27 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +24 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +8 -20
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +0 -232
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +0 -213
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +0 -623
- data/lib/twilio-ruby/rest/knowledge/v1.rb +0 -49
- data/lib/twilio-ruby/rest/knowledge.rb +0 -6
- data/lib/twilio-ruby/rest/knowledge_base.rb +0 -38
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -382
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -375
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -213
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -361
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -398
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -391
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -441
- data/lib/twilio-ruby/rest/microvisor/v1.rb +0 -94
- data/lib/twilio-ruby/rest/microvisor.rb +0 -24
- data/lib/twilio-ruby/rest/microvisor_base.rb +0 -38
@@ -1,38 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
-
# https://openapi-generator.tech
|
9
|
-
# Do not edit the class manually.
|
10
|
-
# frozen_string_literal: true
|
11
|
-
module Twilio
|
12
|
-
module REST
|
13
|
-
class KnowledgeBase < Domain
|
14
|
-
##
|
15
|
-
# Initialize knowledge domain
|
16
|
-
#
|
17
|
-
# @param twilio - The twilio client
|
18
|
-
#
|
19
|
-
def initialize(twilio)
|
20
|
-
super(twilio)
|
21
|
-
@base_url = "https://knowledge.twilio.com"
|
22
|
-
@host = "knowledge.twilio.com"
|
23
|
-
@port = 443
|
24
|
-
@v1 = nil
|
25
|
-
end
|
26
|
-
|
27
|
-
def v1
|
28
|
-
@v1 ||= Knowledge::V1.new self
|
29
|
-
end
|
30
|
-
|
31
|
-
##
|
32
|
-
# Provide a user friendly representation
|
33
|
-
def to_s
|
34
|
-
'<Twilio::REST::Knowledge::V1>';
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,382 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Microvisor
|
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 Microvisor < MicrovisorBase
|
19
|
-
class V1 < Version
|
20
|
-
class AccountConfigList < ListResource
|
21
|
-
|
22
|
-
##
|
23
|
-
# Initialize the AccountConfigList
|
24
|
-
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [AccountConfigList] AccountConfigList
|
26
|
-
def initialize(version)
|
27
|
-
super(version)
|
28
|
-
# Path Solution
|
29
|
-
@solution = { }
|
30
|
-
@uri = "/Configs"
|
31
|
-
|
32
|
-
end
|
33
|
-
##
|
34
|
-
# Create the AccountConfigInstance
|
35
|
-
# @param [String] key The config key; up to 100 characters.
|
36
|
-
# @param [String] value The config value; up to 4096 characters.
|
37
|
-
# @return [AccountConfigInstance] Created AccountConfigInstance
|
38
|
-
def create(
|
39
|
-
key: nil,
|
40
|
-
value: nil
|
41
|
-
)
|
42
|
-
|
43
|
-
data = Twilio::Values.of({
|
44
|
-
'Key' => key,
|
45
|
-
'Value' => value,
|
46
|
-
})
|
47
|
-
|
48
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
payload = @version.create('POST', @uri, data: data, headers: headers)
|
55
|
-
AccountConfigInstance.new(
|
56
|
-
@version,
|
57
|
-
payload,
|
58
|
-
)
|
59
|
-
end
|
60
|
-
|
61
|
-
|
62
|
-
##
|
63
|
-
# Lists AccountConfigInstance records from the API as a list.
|
64
|
-
# Unlike stream(), this operation is eager and will load `limit` records into
|
65
|
-
# memory before returning.
|
66
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
67
|
-
# guarantees to never return more than limit. Default is no limit
|
68
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
69
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
70
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
71
|
-
# efficient page size, i.e. min(limit, 1000)
|
72
|
-
# @return [Array] Array of up to limit results
|
73
|
-
def list(limit: nil, page_size: nil)
|
74
|
-
self.stream(
|
75
|
-
limit: limit,
|
76
|
-
page_size: page_size
|
77
|
-
).entries
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# Streams Instance records from the API as an Enumerable.
|
82
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
83
|
-
# is reached.
|
84
|
-
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
85
|
-
# guarantees to never return more than limit. Default is no limit
|
86
|
-
# @param [Integer] page_size Number of records to fetch per request, when
|
87
|
-
# not set will use the default value of 50 records. If no page_size is defined
|
88
|
-
# but a limit is defined, stream() will attempt to read the limit with the most
|
89
|
-
# efficient page size, i.e. min(limit, 1000)
|
90
|
-
# @return [Enumerable] Enumerable that will yield up to limit results
|
91
|
-
def stream(limit: nil, page_size: nil)
|
92
|
-
limits = @version.read_limits(limit, page_size)
|
93
|
-
|
94
|
-
page = self.page(
|
95
|
-
page_size: limits[:page_size], )
|
96
|
-
|
97
|
-
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
98
|
-
end
|
99
|
-
|
100
|
-
##
|
101
|
-
# When passed a block, yields AccountConfigInstance records from the API.
|
102
|
-
# This operation lazily loads records as efficiently as possible until the limit
|
103
|
-
# is reached.
|
104
|
-
def each
|
105
|
-
limits = @version.read_limits
|
106
|
-
|
107
|
-
page = self.page(page_size: limits[:page_size], )
|
108
|
-
|
109
|
-
@version.stream(page,
|
110
|
-
limit: limits[:limit],
|
111
|
-
page_limit: limits[:page_limit]).each {|x| yield x}
|
112
|
-
end
|
113
|
-
|
114
|
-
##
|
115
|
-
# Retrieve a single page of AccountConfigInstance records from the API.
|
116
|
-
# Request is executed immediately.
|
117
|
-
# @param [String] page_token PageToken provided by the API
|
118
|
-
# @param [Integer] page_number Page Number, this value is simply for client state
|
119
|
-
# @param [Integer] page_size Number of records to return, defaults to 50
|
120
|
-
# @return [Page] Page of AccountConfigInstance
|
121
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
122
|
-
params = Twilio::Values.of({
|
123
|
-
'PageToken' => page_token,
|
124
|
-
'Page' => page_number,
|
125
|
-
'PageSize' => page_size,
|
126
|
-
})
|
127
|
-
headers = Twilio::Values.of({})
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
response = @version.page('GET', @uri, params: params, headers: headers)
|
132
|
-
|
133
|
-
AccountConfigPage.new(@version, response, @solution)
|
134
|
-
end
|
135
|
-
|
136
|
-
##
|
137
|
-
# Retrieve a single page of AccountConfigInstance records from the API.
|
138
|
-
# Request is executed immediately.
|
139
|
-
# @param [String] target_url API-generated URL for the requested results page
|
140
|
-
# @return [Page] Page of AccountConfigInstance
|
141
|
-
def get_page(target_url)
|
142
|
-
response = @version.domain.request(
|
143
|
-
'GET',
|
144
|
-
target_url
|
145
|
-
)
|
146
|
-
AccountConfigPage.new(@version, response, @solution)
|
147
|
-
end
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
# Provide a user friendly representation
|
152
|
-
def to_s
|
153
|
-
'#<Twilio.Microvisor.V1.AccountConfigList>'
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
|
158
|
-
class AccountConfigContext < InstanceContext
|
159
|
-
##
|
160
|
-
# Initialize the AccountConfigContext
|
161
|
-
# @param [Version] version Version that contains the resource
|
162
|
-
# @param [String] key The config key; up to 100 characters.
|
163
|
-
# @return [AccountConfigContext] AccountConfigContext
|
164
|
-
def initialize(version, key)
|
165
|
-
super(version)
|
166
|
-
|
167
|
-
# Path Solution
|
168
|
-
@solution = { key: key, }
|
169
|
-
@uri = "/Configs/#{@solution[:key]}"
|
170
|
-
|
171
|
-
|
172
|
-
end
|
173
|
-
##
|
174
|
-
# Delete the AccountConfigInstance
|
175
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
176
|
-
def delete
|
177
|
-
|
178
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
@version.delete('DELETE', @uri, headers: headers)
|
183
|
-
end
|
184
|
-
|
185
|
-
##
|
186
|
-
# Fetch the AccountConfigInstance
|
187
|
-
# @return [AccountConfigInstance] Fetched AccountConfigInstance
|
188
|
-
def fetch
|
189
|
-
|
190
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
197
|
-
AccountConfigInstance.new(
|
198
|
-
@version,
|
199
|
-
payload,
|
200
|
-
key: @solution[:key],
|
201
|
-
)
|
202
|
-
end
|
203
|
-
|
204
|
-
##
|
205
|
-
# Update the AccountConfigInstance
|
206
|
-
# @param [String] value The config value; up to 4096 characters.
|
207
|
-
# @return [AccountConfigInstance] Updated AccountConfigInstance
|
208
|
-
def update(
|
209
|
-
value: nil
|
210
|
-
)
|
211
|
-
|
212
|
-
data = Twilio::Values.of({
|
213
|
-
'Value' => value,
|
214
|
-
})
|
215
|
-
|
216
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
payload = @version.update('POST', @uri, data: data, headers: headers)
|
223
|
-
AccountConfigInstance.new(
|
224
|
-
@version,
|
225
|
-
payload,
|
226
|
-
key: @solution[:key],
|
227
|
-
)
|
228
|
-
end
|
229
|
-
|
230
|
-
|
231
|
-
##
|
232
|
-
# Provide a user friendly representation
|
233
|
-
def to_s
|
234
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
235
|
-
"#<Twilio.Microvisor.V1.AccountConfigContext #{context}>"
|
236
|
-
end
|
237
|
-
|
238
|
-
##
|
239
|
-
# Provide a detailed, user friendly representation
|
240
|
-
def inspect
|
241
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
242
|
-
"#<Twilio.Microvisor.V1.AccountConfigContext #{context}>"
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
class AccountConfigPage < Page
|
247
|
-
##
|
248
|
-
# Initialize the AccountConfigPage
|
249
|
-
# @param [Version] version Version that contains the resource
|
250
|
-
# @param [Response] response Response from the API
|
251
|
-
# @param [Hash] solution Path solution for the resource
|
252
|
-
# @return [AccountConfigPage] AccountConfigPage
|
253
|
-
def initialize(version, response, solution)
|
254
|
-
super(version, response)
|
255
|
-
|
256
|
-
# Path Solution
|
257
|
-
@solution = solution
|
258
|
-
end
|
259
|
-
|
260
|
-
##
|
261
|
-
# Build an instance of AccountConfigInstance
|
262
|
-
# @param [Hash] payload Payload response from the API
|
263
|
-
# @return [AccountConfigInstance] AccountConfigInstance
|
264
|
-
def get_instance(payload)
|
265
|
-
AccountConfigInstance.new(@version, payload)
|
266
|
-
end
|
267
|
-
|
268
|
-
##
|
269
|
-
# Provide a user friendly representation
|
270
|
-
def to_s
|
271
|
-
'<Twilio.Microvisor.V1.AccountConfigPage>'
|
272
|
-
end
|
273
|
-
end
|
274
|
-
class AccountConfigInstance < InstanceResource
|
275
|
-
##
|
276
|
-
# Initialize the AccountConfigInstance
|
277
|
-
# @param [Version] version Version that contains the resource
|
278
|
-
# @param [Hash] payload payload that contains response from Twilio
|
279
|
-
# @param [String] account_sid The SID of the
|
280
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this AccountConfig
|
281
|
-
# resource.
|
282
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
283
|
-
# @return [AccountConfigInstance] AccountConfigInstance
|
284
|
-
def initialize(version, payload , key: nil)
|
285
|
-
super(version)
|
286
|
-
|
287
|
-
# Marshaled Properties
|
288
|
-
@properties = {
|
289
|
-
'key' => payload['key'],
|
290
|
-
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
291
|
-
'value' => payload['value'],
|
292
|
-
'url' => payload['url'],
|
293
|
-
}
|
294
|
-
|
295
|
-
# Context
|
296
|
-
@instance_context = nil
|
297
|
-
@params = { 'key' => key || @properties['key'] , }
|
298
|
-
end
|
299
|
-
|
300
|
-
##
|
301
|
-
# Generate an instance context for the instance, the context is capable of
|
302
|
-
# performing various actions. All instance actions are proxied to the context
|
303
|
-
# @return [AccountConfigContext] CallContext for this CallInstance
|
304
|
-
def context
|
305
|
-
unless @instance_context
|
306
|
-
@instance_context = AccountConfigContext.new(@version , @params['key'])
|
307
|
-
end
|
308
|
-
@instance_context
|
309
|
-
end
|
310
|
-
|
311
|
-
##
|
312
|
-
# @return [String] The config key; up to 100 characters.
|
313
|
-
def key
|
314
|
-
@properties['key']
|
315
|
-
end
|
316
|
-
|
317
|
-
##
|
318
|
-
# @return [Time]
|
319
|
-
def date_updated
|
320
|
-
@properties['date_updated']
|
321
|
-
end
|
322
|
-
|
323
|
-
##
|
324
|
-
# @return [String] The config value; up to 4096 characters.
|
325
|
-
def value
|
326
|
-
@properties['value']
|
327
|
-
end
|
328
|
-
|
329
|
-
##
|
330
|
-
# @return [String] The absolute URL of the Config.
|
331
|
-
def url
|
332
|
-
@properties['url']
|
333
|
-
end
|
334
|
-
|
335
|
-
##
|
336
|
-
# Delete the AccountConfigInstance
|
337
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
338
|
-
def delete
|
339
|
-
|
340
|
-
context.delete
|
341
|
-
end
|
342
|
-
|
343
|
-
##
|
344
|
-
# Fetch the AccountConfigInstance
|
345
|
-
# @return [AccountConfigInstance] Fetched AccountConfigInstance
|
346
|
-
def fetch
|
347
|
-
|
348
|
-
context.fetch
|
349
|
-
end
|
350
|
-
|
351
|
-
##
|
352
|
-
# Update the AccountConfigInstance
|
353
|
-
# @param [String] value The config value; up to 4096 characters.
|
354
|
-
# @return [AccountConfigInstance] Updated AccountConfigInstance
|
355
|
-
def update(
|
356
|
-
value: nil
|
357
|
-
)
|
358
|
-
|
359
|
-
context.update(
|
360
|
-
value: value,
|
361
|
-
)
|
362
|
-
end
|
363
|
-
|
364
|
-
##
|
365
|
-
# Provide a user friendly representation
|
366
|
-
def to_s
|
367
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
368
|
-
"<Twilio.Microvisor.V1.AccountConfigInstance #{values}>"
|
369
|
-
end
|
370
|
-
|
371
|
-
##
|
372
|
-
# Provide a detailed, user friendly representation
|
373
|
-
def inspect
|
374
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
375
|
-
"<Twilio.Microvisor.V1.AccountConfigInstance #{values}>"
|
376
|
-
end
|
377
|
-
end
|
378
|
-
|
379
|
-
end
|
380
|
-
end
|
381
|
-
end
|
382
|
-
end
|