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,391 +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 DeviceSecretList < ListResource
23
-
24
- ##
25
- # Initialize the DeviceSecretList
26
- # @param [Version] version Version that contains the resource
27
- # @return [DeviceSecretList] DeviceSecretList
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]}/Secrets"
33
-
34
- end
35
- ##
36
- # Create the DeviceSecretInstance
37
- # @param [String] key The secret key; up to 100 characters.
38
- # @param [String] value The secret value; up to 4096 characters.
39
- # @return [DeviceSecretInstance] Created DeviceSecretInstance
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
- DeviceSecretInstance.new(
58
- @version,
59
- payload,
60
- device_sid: @solution[:device_sid],
61
- )
62
- end
63
-
64
-
65
- ##
66
- # Lists DeviceSecretInstance 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 DeviceSecretInstance 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 DeviceSecretInstance 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 DeviceSecretInstance
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
- DeviceSecretPage.new(@version, response, @solution)
137
- end
138
-
139
- ##
140
- # Retrieve a single page of DeviceSecretInstance 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 DeviceSecretInstance
144
- def get_page(target_url)
145
- response = @version.domain.request(
146
- 'GET',
147
- target_url
148
- )
149
- DeviceSecretPage.new(@version, response, @solution)
150
- end
151
-
152
-
153
-
154
- # Provide a user friendly representation
155
- def to_s
156
- '#<Twilio.Microvisor.V1.DeviceSecretList>'
157
- end
158
- end
159
-
160
-
161
- class DeviceSecretContext < InstanceContext
162
- ##
163
- # Initialize the DeviceSecretContext
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 secret key; up to 100 characters.
167
- # @return [DeviceSecretContext] DeviceSecretContext
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]}/Secrets/#{@solution[:key]}"
174
-
175
-
176
- end
177
- ##
178
- # Delete the DeviceSecretInstance
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 DeviceSecretInstance
191
- # @return [DeviceSecretInstance] Fetched DeviceSecretInstance
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
- DeviceSecretInstance.new(
202
- @version,
203
- payload,
204
- device_sid: @solution[:device_sid],
205
- key: @solution[:key],
206
- )
207
- end
208
-
209
- ##
210
- # Update the DeviceSecretInstance
211
- # @param [String] value The secret value; up to 4096 characters.
212
- # @return [DeviceSecretInstance] Updated DeviceSecretInstance
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
- DeviceSecretInstance.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.DeviceSecretContext #{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.DeviceSecretContext #{context}>"
249
- end
250
- end
251
-
252
- class DeviceSecretPage < Page
253
- ##
254
- # Initialize the DeviceSecretPage
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 [DeviceSecretPage] DeviceSecretPage
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 DeviceSecretInstance
268
- # @param [Hash] payload Payload response from the API
269
- # @return [DeviceSecretInstance] DeviceSecretInstance
270
- def get_instance(payload)
271
- DeviceSecretInstance.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.DeviceSecretPage>'
278
- end
279
- end
280
- class DeviceSecretInstance < InstanceResource
281
- ##
282
- # Initialize the DeviceSecretInstance
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 DeviceSecret
287
- # resource.
288
- # @param [String] sid The SID of the Call resource to fetch.
289
- # @return [DeviceSecretInstance] DeviceSecretInstance
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
- 'date_rotated' => Twilio.deserialize_iso8601_datetime(payload['date_rotated']),
298
- 'url' => payload['url'],
299
- }
300
-
301
- # Context
302
- @instance_context = nil
303
- @params = { 'device_sid' => device_sid || @properties['device_sid'] ,'key' => key || @properties['key'] , }
304
- end
305
-
306
- ##
307
- # Generate an instance context for the instance, the context is capable of
308
- # performing various actions. All instance actions are proxied to the context
309
- # @return [DeviceSecretContext] CallContext for this CallInstance
310
- def context
311
- unless @instance_context
312
- @instance_context = DeviceSecretContext.new(@version , @params['device_sid'], @params['key'])
313
- end
314
- @instance_context
315
- end
316
-
317
- ##
318
- # @return [String] A 34-character string that uniquely identifies the parent Device.
319
- def device_sid
320
- @properties['device_sid']
321
- end
322
-
323
- ##
324
- # @return [String] The secret key; up to 100 characters.
325
- def key
326
- @properties['key']
327
- end
328
-
329
- ##
330
- # @return [Time]
331
- def date_rotated
332
- @properties['date_rotated']
333
- end
334
-
335
- ##
336
- # @return [String] The absolute URL of the Secret.
337
- def url
338
- @properties['url']
339
- end
340
-
341
- ##
342
- # Delete the DeviceSecretInstance
343
- # @return [Boolean] True if delete succeeds, false otherwise
344
- def delete
345
-
346
- context.delete
347
- end
348
-
349
- ##
350
- # Fetch the DeviceSecretInstance
351
- # @return [DeviceSecretInstance] Fetched DeviceSecretInstance
352
- def fetch
353
-
354
- context.fetch
355
- end
356
-
357
- ##
358
- # Update the DeviceSecretInstance
359
- # @param [String] value The secret value; up to 4096 characters.
360
- # @return [DeviceSecretInstance] Updated DeviceSecretInstance
361
- def update(
362
- value: nil
363
- )
364
-
365
- context.update(
366
- value: value,
367
- )
368
- end
369
-
370
- ##
371
- # Provide a user friendly representation
372
- def to_s
373
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
374
- "<Twilio.Microvisor.V1.DeviceSecretInstance #{values}>"
375
- end
376
-
377
- ##
378
- # Provide a detailed, user friendly representation
379
- def inspect
380
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
381
- "<Twilio.Microvisor.V1.DeviceSecretInstance #{values}>"
382
- end
383
- end
384
-
385
- end
386
- end
387
- end
388
- end
389
- end
390
-
391
-