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,375 +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 AccountSecretList < ListResource
21
-
22
- ##
23
- # Initialize the AccountSecretList
24
- # @param [Version] version Version that contains the resource
25
- # @return [AccountSecretList] AccountSecretList
26
- def initialize(version)
27
- super(version)
28
- # Path Solution
29
- @solution = { }
30
- @uri = "/Secrets"
31
-
32
- end
33
- ##
34
- # Create the AccountSecretInstance
35
- # @param [String] key The secret key; up to 100 characters.
36
- # @param [String] value The secret value; up to 4096 characters.
37
- # @return [AccountSecretInstance] Created AccountSecretInstance
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
- AccountSecretInstance.new(
56
- @version,
57
- payload,
58
- )
59
- end
60
-
61
-
62
- ##
63
- # Lists AccountSecretInstance 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 AccountSecretInstance 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 AccountSecretInstance 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 AccountSecretInstance
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
- AccountSecretPage.new(@version, response, @solution)
134
- end
135
-
136
- ##
137
- # Retrieve a single page of AccountSecretInstance 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 AccountSecretInstance
141
- def get_page(target_url)
142
- response = @version.domain.request(
143
- 'GET',
144
- target_url
145
- )
146
- AccountSecretPage.new(@version, response, @solution)
147
- end
148
-
149
-
150
-
151
- # Provide a user friendly representation
152
- def to_s
153
- '#<Twilio.Microvisor.V1.AccountSecretList>'
154
- end
155
- end
156
-
157
-
158
- class AccountSecretContext < InstanceContext
159
- ##
160
- # Initialize the AccountSecretContext
161
- # @param [Version] version Version that contains the resource
162
- # @param [String] key The secret key; up to 100 characters.
163
- # @return [AccountSecretContext] AccountSecretContext
164
- def initialize(version, key)
165
- super(version)
166
-
167
- # Path Solution
168
- @solution = { key: key, }
169
- @uri = "/Secrets/#{@solution[:key]}"
170
-
171
-
172
- end
173
- ##
174
- # Delete the AccountSecretInstance
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 AccountSecretInstance
187
- # @return [AccountSecretInstance] Fetched AccountSecretInstance
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
- AccountSecretInstance.new(
198
- @version,
199
- payload,
200
- key: @solution[:key],
201
- )
202
- end
203
-
204
- ##
205
- # Update the AccountSecretInstance
206
- # @param [String] value The secret value; up to 4096 characters.
207
- # @return [AccountSecretInstance] Updated AccountSecretInstance
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
- AccountSecretInstance.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.AccountSecretContext #{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.AccountSecretContext #{context}>"
243
- end
244
- end
245
-
246
- class AccountSecretPage < Page
247
- ##
248
- # Initialize the AccountSecretPage
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 [AccountSecretPage] AccountSecretPage
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 AccountSecretInstance
262
- # @param [Hash] payload Payload response from the API
263
- # @return [AccountSecretInstance] AccountSecretInstance
264
- def get_instance(payload)
265
- AccountSecretInstance.new(@version, payload)
266
- end
267
-
268
- ##
269
- # Provide a user friendly representation
270
- def to_s
271
- '<Twilio.Microvisor.V1.AccountSecretPage>'
272
- end
273
- end
274
- class AccountSecretInstance < InstanceResource
275
- ##
276
- # Initialize the AccountSecretInstance
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 AccountSecret
281
- # resource.
282
- # @param [String] sid The SID of the Call resource to fetch.
283
- # @return [AccountSecretInstance] AccountSecretInstance
284
- def initialize(version, payload , key: nil)
285
- super(version)
286
-
287
- # Marshaled Properties
288
- @properties = {
289
- 'key' => payload['key'],
290
- 'date_rotated' => Twilio.deserialize_iso8601_datetime(payload['date_rotated']),
291
- 'url' => payload['url'],
292
- }
293
-
294
- # Context
295
- @instance_context = nil
296
- @params = { 'key' => key || @properties['key'] , }
297
- end
298
-
299
- ##
300
- # Generate an instance context for the instance, the context is capable of
301
- # performing various actions. All instance actions are proxied to the context
302
- # @return [AccountSecretContext] CallContext for this CallInstance
303
- def context
304
- unless @instance_context
305
- @instance_context = AccountSecretContext.new(@version , @params['key'])
306
- end
307
- @instance_context
308
- end
309
-
310
- ##
311
- # @return [String] The secret key; up to 100 characters.
312
- def key
313
- @properties['key']
314
- end
315
-
316
- ##
317
- # @return [Time]
318
- def date_rotated
319
- @properties['date_rotated']
320
- end
321
-
322
- ##
323
- # @return [String] The absolute URL of the Secret.
324
- def url
325
- @properties['url']
326
- end
327
-
328
- ##
329
- # Delete the AccountSecretInstance
330
- # @return [Boolean] True if delete succeeds, false otherwise
331
- def delete
332
-
333
- context.delete
334
- end
335
-
336
- ##
337
- # Fetch the AccountSecretInstance
338
- # @return [AccountSecretInstance] Fetched AccountSecretInstance
339
- def fetch
340
-
341
- context.fetch
342
- end
343
-
344
- ##
345
- # Update the AccountSecretInstance
346
- # @param [String] value The secret value; up to 4096 characters.
347
- # @return [AccountSecretInstance] Updated AccountSecretInstance
348
- def update(
349
- value: nil
350
- )
351
-
352
- context.update(
353
- value: value,
354
- )
355
- end
356
-
357
- ##
358
- # Provide a user friendly representation
359
- def to_s
360
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
361
- "<Twilio.Microvisor.V1.AccountSecretInstance #{values}>"
362
- end
363
-
364
- ##
365
- # Provide a detailed, user friendly representation
366
- def inspect
367
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
368
- "<Twilio.Microvisor.V1.AccountSecretInstance #{values}>"
369
- end
370
- end
371
-
372
- end
373
- end
374
- end
375
- end
@@ -1,213 +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 AppContext < InstanceContext
21
-
22
- class AppManifestList < ListResource
23
-
24
- ##
25
- # Initialize the AppManifestList
26
- # @param [Version] version Version that contains the resource
27
- # @return [AppManifestList] AppManifestList
28
- def initialize(version, app_sid: nil)
29
- super(version)
30
- # Path Solution
31
- @solution = { app_sid: app_sid }
32
-
33
-
34
- end
35
-
36
-
37
-
38
- # Provide a user friendly representation
39
- def to_s
40
- '#<Twilio.Microvisor.V1.AppManifestList>'
41
- end
42
- end
43
-
44
-
45
- class AppManifestContext < InstanceContext
46
- ##
47
- # Initialize the AppManifestContext
48
- # @param [Version] version Version that contains the resource
49
- # @param [String] app_sid A 34-character string that uniquely identifies this App.
50
- # @return [AppManifestContext] AppManifestContext
51
- def initialize(version, app_sid)
52
- super(version)
53
-
54
- # Path Solution
55
- @solution = { app_sid: app_sid, }
56
- @uri = "/Apps/#{@solution[:app_sid]}/Manifest"
57
-
58
-
59
- end
60
- ##
61
- # Fetch the AppManifestInstance
62
- # @return [AppManifestInstance] Fetched AppManifestInstance
63
- def fetch
64
-
65
- headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
66
-
67
-
68
-
69
-
70
-
71
- payload = @version.fetch('GET', @uri, headers: headers)
72
- AppManifestInstance.new(
73
- @version,
74
- payload,
75
- app_sid: @solution[:app_sid],
76
- )
77
- end
78
-
79
-
80
- ##
81
- # Provide a user friendly representation
82
- def to_s
83
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
84
- "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
85
- end
86
-
87
- ##
88
- # Provide a detailed, user friendly representation
89
- def inspect
90
- context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
91
- "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
92
- end
93
- end
94
-
95
- class AppManifestPage < Page
96
- ##
97
- # Initialize the AppManifestPage
98
- # @param [Version] version Version that contains the resource
99
- # @param [Response] response Response from the API
100
- # @param [Hash] solution Path solution for the resource
101
- # @return [AppManifestPage] AppManifestPage
102
- def initialize(version, response, solution)
103
- super(version, response)
104
-
105
- # Path Solution
106
- @solution = solution
107
- end
108
-
109
- ##
110
- # Build an instance of AppManifestInstance
111
- # @param [Hash] payload Payload response from the API
112
- # @return [AppManifestInstance] AppManifestInstance
113
- def get_instance(payload)
114
- AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid])
115
- end
116
-
117
- ##
118
- # Provide a user friendly representation
119
- def to_s
120
- '<Twilio.Microvisor.V1.AppManifestPage>'
121
- end
122
- end
123
- class AppManifestInstance < InstanceResource
124
- ##
125
- # Initialize the AppManifestInstance
126
- # @param [Version] version Version that contains the resource
127
- # @param [Hash] payload payload that contains response from Twilio
128
- # @param [String] account_sid The SID of the
129
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this AppManifest
130
- # resource.
131
- # @param [String] sid The SID of the Call resource to fetch.
132
- # @return [AppManifestInstance] AppManifestInstance
133
- def initialize(version, payload , app_sid: nil)
134
- super(version)
135
-
136
- # Marshaled Properties
137
- @properties = {
138
- 'app_sid' => payload['app_sid'],
139
- 'hash' => payload['hash'],
140
- 'encoded_bytes' => payload['encoded_bytes'],
141
- 'url' => payload['url'],
142
- }
143
-
144
- # Context
145
- @instance_context = nil
146
- @params = { 'app_sid' => app_sid || @properties['app_sid'] , }
147
- end
148
-
149
- ##
150
- # Generate an instance context for the instance, the context is capable of
151
- # performing various actions. All instance actions are proxied to the context
152
- # @return [AppManifestContext] CallContext for this CallInstance
153
- def context
154
- unless @instance_context
155
- @instance_context = AppManifestContext.new(@version , @params['app_sid'])
156
- end
157
- @instance_context
158
- end
159
-
160
- ##
161
- # @return [String] A 34-character string that uniquely identifies this App.
162
- def app_sid
163
- @properties['app_sid']
164
- end
165
-
166
- ##
167
- # @return [String] App manifest hash represented as `hash_algorithm:hash_value`.
168
- def hash
169
- @properties['hash']
170
- end
171
-
172
- ##
173
- # @return [String] The base-64 encoded manifest
174
- def encoded_bytes
175
- @properties['encoded_bytes']
176
- end
177
-
178
- ##
179
- # @return [String] The absolute URL of this Manifest.
180
- def url
181
- @properties['url']
182
- end
183
-
184
- ##
185
- # Fetch the AppManifestInstance
186
- # @return [AppManifestInstance] Fetched AppManifestInstance
187
- def fetch
188
-
189
- context.fetch
190
- end
191
-
192
- ##
193
- # Provide a user friendly representation
194
- def to_s
195
- values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
196
- "<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
197
- end
198
-
199
- ##
200
- # Provide a detailed, user friendly representation
201
- def inspect
202
- values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
203
- "<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
204
- end
205
- end
206
-
207
- end
208
- end
209
- end
210
- end
211
- end
212
-
213
-