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