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,361 +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 AppList < ListResource
|
21
|
-
|
22
|
-
##
|
23
|
-
# Initialize the AppList
|
24
|
-
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [AppList] AppList
|
26
|
-
def initialize(version)
|
27
|
-
super(version)
|
28
|
-
# Path Solution
|
29
|
-
@solution = { }
|
30
|
-
@uri = "/Apps"
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
##
|
35
|
-
# Lists AppInstance 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 AppInstance 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 AppInstance 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 AppInstance
|
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
|
-
headers = Twilio::Values.of({})
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
response = @version.page('GET', @uri, params: params, headers: headers)
|
104
|
-
|
105
|
-
AppPage.new(@version, response, @solution)
|
106
|
-
end
|
107
|
-
|
108
|
-
##
|
109
|
-
# Retrieve a single page of AppInstance records from the API.
|
110
|
-
# Request is executed immediately.
|
111
|
-
# @param [String] target_url API-generated URL for the requested results page
|
112
|
-
# @return [Page] Page of AppInstance
|
113
|
-
def get_page(target_url)
|
114
|
-
response = @version.domain.request(
|
115
|
-
'GET',
|
116
|
-
target_url
|
117
|
-
)
|
118
|
-
AppPage.new(@version, response, @solution)
|
119
|
-
end
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
# Provide a user friendly representation
|
124
|
-
def to_s
|
125
|
-
'#<Twilio.Microvisor.V1.AppList>'
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
|
130
|
-
class AppContext < InstanceContext
|
131
|
-
##
|
132
|
-
# Initialize the AppContext
|
133
|
-
# @param [Version] version Version that contains the resource
|
134
|
-
# @param [String] sid A 34-character string that uniquely identifies this App.
|
135
|
-
# @return [AppContext] AppContext
|
136
|
-
def initialize(version, sid)
|
137
|
-
super(version)
|
138
|
-
|
139
|
-
# Path Solution
|
140
|
-
@solution = { sid: sid, }
|
141
|
-
@uri = "/Apps/#{@solution[:sid]}"
|
142
|
-
|
143
|
-
# Dependents
|
144
|
-
@app_manifests = nil
|
145
|
-
end
|
146
|
-
##
|
147
|
-
# Delete the AppInstance
|
148
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
149
|
-
def delete
|
150
|
-
|
151
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
@version.delete('DELETE', @uri, headers: headers)
|
156
|
-
end
|
157
|
-
|
158
|
-
##
|
159
|
-
# Fetch the AppInstance
|
160
|
-
# @return [AppInstance] Fetched AppInstance
|
161
|
-
def fetch
|
162
|
-
|
163
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
payload = @version.fetch('GET', @uri, headers: headers)
|
170
|
-
AppInstance.new(
|
171
|
-
@version,
|
172
|
-
payload,
|
173
|
-
sid: @solution[:sid],
|
174
|
-
)
|
175
|
-
end
|
176
|
-
|
177
|
-
##
|
178
|
-
# Access the app_manifests
|
179
|
-
# @return [AppManifestList]
|
180
|
-
# @return [AppManifestContext]
|
181
|
-
def app_manifests
|
182
|
-
AppManifestContext.new(
|
183
|
-
@version,
|
184
|
-
@solution[:sid]
|
185
|
-
)
|
186
|
-
end
|
187
|
-
|
188
|
-
##
|
189
|
-
# Provide a user friendly representation
|
190
|
-
def to_s
|
191
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
192
|
-
"#<Twilio.Microvisor.V1.AppContext #{context}>"
|
193
|
-
end
|
194
|
-
|
195
|
-
##
|
196
|
-
# Provide a detailed, user friendly representation
|
197
|
-
def inspect
|
198
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
199
|
-
"#<Twilio.Microvisor.V1.AppContext #{context}>"
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
class AppPage < Page
|
204
|
-
##
|
205
|
-
# Initialize the AppPage
|
206
|
-
# @param [Version] version Version that contains the resource
|
207
|
-
# @param [Response] response Response from the API
|
208
|
-
# @param [Hash] solution Path solution for the resource
|
209
|
-
# @return [AppPage] AppPage
|
210
|
-
def initialize(version, response, solution)
|
211
|
-
super(version, response)
|
212
|
-
|
213
|
-
# Path Solution
|
214
|
-
@solution = solution
|
215
|
-
end
|
216
|
-
|
217
|
-
##
|
218
|
-
# Build an instance of AppInstance
|
219
|
-
# @param [Hash] payload Payload response from the API
|
220
|
-
# @return [AppInstance] AppInstance
|
221
|
-
def get_instance(payload)
|
222
|
-
AppInstance.new(@version, payload)
|
223
|
-
end
|
224
|
-
|
225
|
-
##
|
226
|
-
# Provide a user friendly representation
|
227
|
-
def to_s
|
228
|
-
'<Twilio.Microvisor.V1.AppPage>'
|
229
|
-
end
|
230
|
-
end
|
231
|
-
class AppInstance < InstanceResource
|
232
|
-
##
|
233
|
-
# Initialize the AppInstance
|
234
|
-
# @param [Version] version Version that contains the resource
|
235
|
-
# @param [Hash] payload payload that contains response from Twilio
|
236
|
-
# @param [String] account_sid The SID of the
|
237
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this App
|
238
|
-
# resource.
|
239
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
240
|
-
# @return [AppInstance] AppInstance
|
241
|
-
def initialize(version, payload , sid: nil)
|
242
|
-
super(version)
|
243
|
-
|
244
|
-
# Marshaled Properties
|
245
|
-
@properties = {
|
246
|
-
'sid' => payload['sid'],
|
247
|
-
'account_sid' => payload['account_sid'],
|
248
|
-
'hash' => payload['hash'],
|
249
|
-
'unique_name' => payload['unique_name'],
|
250
|
-
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
251
|
-
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
252
|
-
'url' => payload['url'],
|
253
|
-
'links' => payload['links'],
|
254
|
-
}
|
255
|
-
|
256
|
-
# Context
|
257
|
-
@instance_context = nil
|
258
|
-
@params = { 'sid' => sid || @properties['sid'] , }
|
259
|
-
end
|
260
|
-
|
261
|
-
##
|
262
|
-
# Generate an instance context for the instance, the context is capable of
|
263
|
-
# performing various actions. All instance actions are proxied to the context
|
264
|
-
# @return [AppContext] CallContext for this CallInstance
|
265
|
-
def context
|
266
|
-
unless @instance_context
|
267
|
-
@instance_context = AppContext.new(@version , @params['sid'])
|
268
|
-
end
|
269
|
-
@instance_context
|
270
|
-
end
|
271
|
-
|
272
|
-
##
|
273
|
-
# @return [String] A 34-character string that uniquely identifies this App.
|
274
|
-
def sid
|
275
|
-
@properties['sid']
|
276
|
-
end
|
277
|
-
|
278
|
-
##
|
279
|
-
# @return [String] The unique SID identifier of the Account.
|
280
|
-
def account_sid
|
281
|
-
@properties['account_sid']
|
282
|
-
end
|
283
|
-
|
284
|
-
##
|
285
|
-
# @return [String] App manifest hash represented as `hash_algorithm:hash_value`.
|
286
|
-
def hash
|
287
|
-
@properties['hash']
|
288
|
-
end
|
289
|
-
|
290
|
-
##
|
291
|
-
# @return [String] A developer-defined string that uniquely identifies the App. This value must be unique for all Apps on this Account. The `unique_name` value may be used as an alternative to the `sid` in the URL path to address the resource.
|
292
|
-
def unique_name
|
293
|
-
@properties['unique_name']
|
294
|
-
end
|
295
|
-
|
296
|
-
##
|
297
|
-
# @return [Time] The date that this App was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
298
|
-
def date_created
|
299
|
-
@properties['date_created']
|
300
|
-
end
|
301
|
-
|
302
|
-
##
|
303
|
-
# @return [Time] The date that this App was last updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
304
|
-
def date_updated
|
305
|
-
@properties['date_updated']
|
306
|
-
end
|
307
|
-
|
308
|
-
##
|
309
|
-
# @return [String] The URL of this resource.
|
310
|
-
def url
|
311
|
-
@properties['url']
|
312
|
-
end
|
313
|
-
|
314
|
-
##
|
315
|
-
# @return [Hash]
|
316
|
-
def links
|
317
|
-
@properties['links']
|
318
|
-
end
|
319
|
-
|
320
|
-
##
|
321
|
-
# Delete the AppInstance
|
322
|
-
# @return [Boolean] True if delete succeeds, false otherwise
|
323
|
-
def delete
|
324
|
-
|
325
|
-
context.delete
|
326
|
-
end
|
327
|
-
|
328
|
-
##
|
329
|
-
# Fetch the AppInstance
|
330
|
-
# @return [AppInstance] Fetched AppInstance
|
331
|
-
def fetch
|
332
|
-
|
333
|
-
context.fetch
|
334
|
-
end
|
335
|
-
|
336
|
-
##
|
337
|
-
# Access the app_manifests
|
338
|
-
# @return [app_manifests] app_manifests
|
339
|
-
def app_manifests
|
340
|
-
context.app_manifests
|
341
|
-
end
|
342
|
-
|
343
|
-
##
|
344
|
-
# Provide a user friendly representation
|
345
|
-
def to_s
|
346
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
347
|
-
"<Twilio.Microvisor.V1.AppInstance #{values}>"
|
348
|
-
end
|
349
|
-
|
350
|
-
##
|
351
|
-
# Provide a detailed, user friendly representation
|
352
|
-
def inspect
|
353
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
354
|
-
"<Twilio.Microvisor.V1.AppInstance #{values}>"
|
355
|
-
end
|
356
|
-
end
|
357
|
-
|
358
|
-
end
|
359
|
-
end
|
360
|
-
end
|
361
|
-
end
|