twilio-ruby 5.22.2 → 5.22.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56c51ed3f9392178845971a918ef139df4926ab742750847b18bb3ddc87e2c18
4
- data.tar.gz: 0eb51f9090ed807d69c0b692635ea7f5e1ea80d749d18b861f1fc3bec4c785d9
3
+ metadata.gz: 3d639836f21bae04c5205a8b0a99d1545dce717efbea5b25567d7cef1ff8c980
4
+ data.tar.gz: 497313815c3e98bf887191968f2365e0317cbb55f191fa79ba1e233a4f3023a1
5
5
  SHA512:
6
- metadata.gz: 72b79f4bca642b5b3f214b4272120ea8b7553eedad68de78b04510a978668628b0bae8d73623c8062f7963aa3998eae00184f64ee74df21bc1d2c228b63fc59a
7
- data.tar.gz: c9c494717aac88547f909dd574c8be9f48221533b5a2fd666e0399fe4a53952d56a500c4bf7904ac9810fb649cdfc97d45fd93d38ebd7432978c1a6aa1654732
6
+ metadata.gz: 5d324c4749daa9df57750028092228afb327f17be5dbfcf6d8e2d810518a197315827a0e8d153b1c251ad5f77b57482c646db20ce2ba06357b18efea4f31d82d
7
+ data.tar.gz: d4718ce1aabd0309209d0b79db1d7013ead39bc1967e2b82bf16c271d721ab053d1734961204e46519543d92a6c58224190751a3361403e4a411aac81b132f87
data/CHANGES.md CHANGED
@@ -1,6 +1,15 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2019-05-01] Version 5.22.3
5
+ ----------------------------
6
+ **Serverless**
7
+ - Documentation
8
+
9
+ **Wireless**
10
+ - Added `imeisv` to Data Session resource.
11
+
12
+
4
13
  [2019-04-24] Version 5.22.2
5
14
  ----------------------------
6
15
  **Api**
data/README.md CHANGED
@@ -27,13 +27,13 @@ in-line code documentation here in the library.
27
27
  To install using [Bundler][bundler] grab the latest stable version:
28
28
 
29
29
  ```ruby
30
- gem 'twilio-ruby', '~> 5.22.2'
30
+ gem 'twilio-ruby', '~> 5.22.3'
31
31
  ```
32
32
 
33
33
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
34
34
 
35
35
  ```bash
36
- gem install twilio-ruby -v 5.22.2
36
+ gem install twilio-ruby -v 5.22.3
37
37
  ```
38
38
 
39
39
  To build and install the development branch yourself from the latest source:
@@ -29,7 +29,7 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid The sid
32
+ # @param [String] sid The unique SID identifier of this Service.
33
33
  # @return [Twilio::REST::Serverless::V1::ServiceInstance] if sid was passed.
34
34
  # @return [Twilio::REST::Serverless::V1::ServiceList]
35
35
  def services(sid=:unset)
@@ -19,7 +19,7 @@ module Twilio
19
19
  end
20
20
 
21
21
  ##
22
- # @param [String] sid The sid
22
+ # @param [String] sid The unique SID identifier of this Service.
23
23
  # @return [Twilio::REST::Serverless::V1::ServiceContext] if sid was passed.
24
24
  # @return [Twilio::REST::Serverless::V1::ServiceList]
25
25
  def services(sid=:unset)
@@ -110,9 +110,13 @@ module Twilio
110
110
  ##
111
111
  # Retrieve a single page of ServiceInstance records from the API.
112
112
  # Request is executed immediately.
113
- # @param [String] unique_name The unique_name
114
- # @param [String] friendly_name The friendly_name
115
- # @param [Boolean] include_credentials The include_credentials
113
+ # @param [String] unique_name A unique, addressable name of this Service which
114
+ # forms part of the domain name, fewer than 256 characters. Required.
115
+ # @param [String] friendly_name A human-readable description of this Service,
116
+ # fewer than 256 characters. Required
117
+ # @param [Boolean] include_credentials A boolean value that indicates whether to
118
+ # inject Account credentials into a Function invocation context. Optional, default
119
+ # `false`.
116
120
  # @return [ServiceInstance] Newly created ServiceInstance
117
121
  def create(unique_name: nil, friendly_name: nil, include_credentials: :unset)
118
122
  data = Twilio::Values.of({
@@ -174,7 +178,7 @@ module Twilio
174
178
  ##
175
179
  # Initialize the ServiceContext
176
180
  # @param [Version] version Version that contains the resource
177
- # @param [String] sid The sid
181
+ # @param [String] sid The unique SID identifier of this Service.
178
182
  # @return [ServiceContext] ServiceContext
179
183
  def initialize(version, sid)
180
184
  super(version)
@@ -207,8 +211,10 @@ module Twilio
207
211
 
208
212
  ##
209
213
  # Update the ServiceInstance
210
- # @param [Boolean] include_credentials The include_credentials
211
- # @param [String] friendly_name The friendly_name
214
+ # @param [Boolean] include_credentials A boolean value that indicates whether to
215
+ # inject Account credentials into a Function invocation context. Optional.
216
+ # @param [String] friendly_name A human-readable description of this Service,
217
+ # fewer than 256 characters. Optional
212
218
  # @return [ServiceInstance] Updated ServiceInstance
213
219
  def update(include_credentials: :unset, friendly_name: :unset)
214
220
  data = Twilio::Values.of({
@@ -319,7 +325,7 @@ module Twilio
319
325
  # Initialize the ServiceInstance
320
326
  # @param [Version] version Version that contains the resource
321
327
  # @param [Hash] payload payload that contains response from Twilio
322
- # @param [String] sid The sid
328
+ # @param [String] sid The unique SID identifier of this Service.
323
329
  # @return [ServiceInstance] ServiceInstance
324
330
  def initialize(version, payload, sid: nil)
325
331
  super(version)
@@ -354,55 +360,55 @@ module Twilio
354
360
  end
355
361
 
356
362
  ##
357
- # @return [String] The sid
363
+ # @return [String] Service Sid.
358
364
  def sid
359
365
  @properties['sid']
360
366
  end
361
367
 
362
368
  ##
363
- # @return [String] The account_sid
369
+ # @return [String] Account Sid.
364
370
  def account_sid
365
371
  @properties['account_sid']
366
372
  end
367
373
 
368
374
  ##
369
- # @return [String] The friendly_name
375
+ # @return [String] A human-readable description of this Service.
370
376
  def friendly_name
371
377
  @properties['friendly_name']
372
378
  end
373
379
 
374
380
  ##
375
- # @return [String] The unique_name
381
+ # @return [String] A unique, URL-friendly name of this Service.
376
382
  def unique_name
377
383
  @properties['unique_name']
378
384
  end
379
385
 
380
386
  ##
381
- # @return [Boolean] The include_credentials
387
+ # @return [Boolean] Whether to inject Account credentials into a Function invocation context.
382
388
  def include_credentials
383
389
  @properties['include_credentials']
384
390
  end
385
391
 
386
392
  ##
387
- # @return [Time] The date_created
393
+ # @return [Time] The date that this Service was created.
388
394
  def date_created
389
395
  @properties['date_created']
390
396
  end
391
397
 
392
398
  ##
393
- # @return [Time] The date_updated
399
+ # @return [Time] The date that this Service was updated.
394
400
  def date_updated
395
401
  @properties['date_updated']
396
402
  end
397
403
 
398
404
  ##
399
- # @return [String] The url
405
+ # @return [String] The URL of this Service.
400
406
  def url
401
407
  @properties['url']
402
408
  end
403
409
 
404
410
  ##
405
- # @return [String] The links
411
+ # @return [String] Nested resource URLs.
406
412
  def links
407
413
  @properties['links']
408
414
  end
@@ -416,8 +422,10 @@ module Twilio
416
422
 
417
423
  ##
418
424
  # Update the ServiceInstance
419
- # @param [Boolean] include_credentials The include_credentials
420
- # @param [String] friendly_name The friendly_name
425
+ # @param [Boolean] include_credentials A boolean value that indicates whether to
426
+ # inject Account credentials into a Function invocation context. Optional.
427
+ # @param [String] friendly_name A human-readable description of this Service,
428
+ # fewer than 256 characters. Optional
421
429
  # @return [ServiceInstance] Updated ServiceInstance
422
430
  def update(include_credentials: :unset, friendly_name: :unset)
423
431
  context.update(include_credentials: include_credentials, friendly_name: friendly_name, )
@@ -17,7 +17,8 @@ module Twilio
17
17
  ##
18
18
  # Initialize the AssetList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] service_sid The service_sid
20
+ # @param [String] service_sid The unique SID identifier of the Service for this
21
+ # Asset.
21
22
  # @return [AssetList] AssetList
22
23
  def initialize(version, service_sid: nil)
23
24
  super(version)
@@ -112,7 +113,8 @@ module Twilio
112
113
  ##
113
114
  # Retrieve a single page of AssetInstance records from the API.
114
115
  # Request is executed immediately.
115
- # @param [String] friendly_name The friendly_name
116
+ # @param [String] friendly_name A human-readable description of this Asset, fewer
117
+ # than 256 characters. Required.
116
118
  # @return [AssetInstance] Newly created AssetInstance
117
119
  def create(friendly_name: nil)
118
120
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -170,8 +172,9 @@ module Twilio
170
172
  ##
171
173
  # Initialize the AssetContext
172
174
  # @param [Version] version Version that contains the resource
173
- # @param [String] service_sid The service_sid
174
- # @param [String] sid The sid
175
+ # @param [String] service_sid The unique SID identifier of the Service for this
176
+ # Asset.
177
+ # @param [String] sid The unique SID identifier of this Asset.
175
178
  # @return [AssetContext] AssetContext
176
179
  def initialize(version, service_sid, sid)
177
180
  super(version)
@@ -201,7 +204,8 @@ module Twilio
201
204
 
202
205
  ##
203
206
  # Update the AssetInstance
204
- # @param [String] friendly_name The friendly_name
207
+ # @param [String] friendly_name A human-readable description of this Asset, fewer
208
+ # than 256 characters. Required.
205
209
  # @return [AssetInstance] Updated AssetInstance
206
210
  def update(friendly_name: nil)
207
211
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -259,8 +263,9 @@ module Twilio
259
263
  # Initialize the AssetInstance
260
264
  # @param [Version] version Version that contains the resource
261
265
  # @param [Hash] payload payload that contains response from Twilio
262
- # @param [String] service_sid The service_sid
263
- # @param [String] sid The sid
266
+ # @param [String] service_sid The unique SID identifier of the Service for this
267
+ # Asset.
268
+ # @param [String] sid The unique SID identifier of this Asset.
264
269
  # @return [AssetInstance] AssetInstance
265
270
  def initialize(version, payload, service_sid: nil, sid: nil)
266
271
  super(version)
@@ -294,49 +299,49 @@ module Twilio
294
299
  end
295
300
 
296
301
  ##
297
- # @return [String] The sid
302
+ # @return [String] Asset Sid.
298
303
  def sid
299
304
  @properties['sid']
300
305
  end
301
306
 
302
307
  ##
303
- # @return [String] The account_sid
308
+ # @return [String] Account Sid.
304
309
  def account_sid
305
310
  @properties['account_sid']
306
311
  end
307
312
 
308
313
  ##
309
- # @return [String] The service_sid
314
+ # @return [String] Service Sid.
310
315
  def service_sid
311
316
  @properties['service_sid']
312
317
  end
313
318
 
314
319
  ##
315
- # @return [String] The friendly_name
320
+ # @return [String] A human-readable description of this Asset.
316
321
  def friendly_name
317
322
  @properties['friendly_name']
318
323
  end
319
324
 
320
325
  ##
321
- # @return [Time] The date_created
326
+ # @return [Time] The date that this Asset was created.
322
327
  def date_created
323
328
  @properties['date_created']
324
329
  end
325
330
 
326
331
  ##
327
- # @return [Time] The date_updated
332
+ # @return [Time] The date that this Asset was updated.
328
333
  def date_updated
329
334
  @properties['date_updated']
330
335
  end
331
336
 
332
337
  ##
333
- # @return [String] The url
338
+ # @return [String] The URL of this Asset.
334
339
  def url
335
340
  @properties['url']
336
341
  end
337
342
 
338
343
  ##
339
- # @return [String] The links
344
+ # @return [String] Nested resource URLs.
340
345
  def links
341
346
  @properties['links']
342
347
  end
@@ -350,7 +355,8 @@ module Twilio
350
355
 
351
356
  ##
352
357
  # Update the AssetInstance
353
- # @param [String] friendly_name The friendly_name
358
+ # @param [String] friendly_name A human-readable description of this Asset, fewer
359
+ # than 256 characters. Required.
354
360
  # @return [AssetInstance] Updated AssetInstance
355
361
  def update(friendly_name: nil)
356
362
  context.update(friendly_name: friendly_name, )
@@ -18,8 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the AssetVersionList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The service_sid
22
- # @param [String] asset_sid The asset_sid
21
+ # @param [String] service_sid The unique SID identifier of the Service for this
22
+ # Asset Version.
23
+ # @param [String] asset_sid The unique SID identifier of the Asset that is the
24
+ # parent for this Asset Version.
23
25
  # @return [AssetVersionList] AssetVersionList
24
26
  def initialize(version, service_sid: nil, asset_sid: nil)
25
27
  super(version)
@@ -114,8 +116,11 @@ module Twilio
114
116
  ##
115
117
  # Retrieve a single page of AssetVersionInstance records from the API.
116
118
  # Request is executed immediately.
117
- # @param [String] path The path
118
- # @param [asset_version.Visibility] visibility The visibility
119
+ # @param [String] path The URL-friendly string by which this Asset Version can be
120
+ # referenced. (Example: `/assets/example`) Required.
121
+ # @param [asset_version.Visibility] visibility The access control which determines
122
+ # how the Asset Version can be accessed. One of `public`, `protected`, or
123
+ # `private`. Required.
119
124
  # @return [AssetVersionInstance] Newly created AssetVersionInstance
120
125
  def create(path: nil, visibility: nil)
121
126
  data = Twilio::Values.of({'Path' => path, 'Visibility' => visibility, })
@@ -183,9 +188,11 @@ module Twilio
183
188
  ##
184
189
  # Initialize the AssetVersionContext
185
190
  # @param [Version] version Version that contains the resource
186
- # @param [String] service_sid The service_sid
187
- # @param [String] asset_sid The asset_sid
188
- # @param [String] sid The sid
191
+ # @param [String] service_sid The unique SID identifier of the Service for this
192
+ # Asset Version.
193
+ # @param [String] asset_sid The unique SID identifier of the Asset that is the
194
+ # parent for this Asset Version.
195
+ # @param [String] sid The unique SID identifier of this Asset Version.
189
196
  # @return [AssetVersionContext] AssetVersionContext
190
197
  def initialize(version, service_sid, asset_sid, sid)
191
198
  super(version)
@@ -238,9 +245,11 @@ module Twilio
238
245
  # Initialize the AssetVersionInstance
239
246
  # @param [Version] version Version that contains the resource
240
247
  # @param [Hash] payload payload that contains response from Twilio
241
- # @param [String] service_sid The service_sid
242
- # @param [String] asset_sid The asset_sid
243
- # @param [String] sid The sid
248
+ # @param [String] service_sid The unique SID identifier of the Service for this
249
+ # Asset Version.
250
+ # @param [String] asset_sid The unique SID identifier of the Asset that is the
251
+ # parent for this Asset Version.
252
+ # @param [String] sid The unique SID identifier of this Asset Version.
244
253
  # @return [AssetVersionInstance] AssetVersionInstance
245
254
  def initialize(version, payload, service_sid: nil, asset_sid: nil, sid: nil)
246
255
  super(version)
@@ -284,55 +293,55 @@ module Twilio
284
293
  end
285
294
 
286
295
  ##
287
- # @return [String] The sid
296
+ # @return [String] Asset Version Sid.
288
297
  def sid
289
298
  @properties['sid']
290
299
  end
291
300
 
292
301
  ##
293
- # @return [String] The account_sid
302
+ # @return [String] Account Sid.
294
303
  def account_sid
295
304
  @properties['account_sid']
296
305
  end
297
306
 
298
307
  ##
299
- # @return [String] The service_sid
308
+ # @return [String] Service Sid.
300
309
  def service_sid
301
310
  @properties['service_sid']
302
311
  end
303
312
 
304
313
  ##
305
- # @return [String] The asset_sid
314
+ # @return [String] Asset Sid.
306
315
  def asset_sid
307
316
  @properties['asset_sid']
308
317
  end
309
318
 
310
319
  ##
311
- # @return [String] The path
320
+ # @return [String] The URL-friendly string by which this Asset Version can be referenced.
312
321
  def path
313
322
  @properties['path']
314
323
  end
315
324
 
316
325
  ##
317
- # @return [asset_version.Visibility] The visibility
326
+ # @return [asset_version.Visibility] The access control which determines how the Asset Version can be accessed.
318
327
  def visibility
319
328
  @properties['visibility']
320
329
  end
321
330
 
322
331
  ##
323
- # @return [Hash] The pre_signed_upload_url
332
+ # @return [Hash] The object which provides the details required for uploading this Asset Version.
324
333
  def pre_signed_upload_url
325
334
  @properties['pre_signed_upload_url']
326
335
  end
327
336
 
328
337
  ##
329
- # @return [Time] The date_created
338
+ # @return [Time] The date that this Asset Version was created.
330
339
  def date_created
331
340
  @properties['date_created']
332
341
  end
333
342
 
334
343
  ##
335
- # @return [String] The url
344
+ # @return [String] The URL of this Asset Version.
336
345
  def url
337
346
  @properties['url']
338
347
  end
@@ -17,7 +17,8 @@ module Twilio
17
17
  ##
18
18
  # Initialize the BuildList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] service_sid The service_sid
20
+ # @param [String] service_sid The unique SID identifier of the Service for this
21
+ # Build.
21
22
  # @return [BuildList] BuildList
22
23
  def initialize(version, service_sid: nil)
23
24
  super(version)
@@ -112,9 +113,12 @@ module Twilio
112
113
  ##
113
114
  # Retrieve a single page of BuildInstance records from the API.
114
115
  # Request is executed immediately.
115
- # @param [String] asset_versions The asset_versions
116
- # @param [String] function_versions The function_versions
117
- # @param [String] dependencies The dependencies
116
+ # @param [String] asset_versions The list of Asset Version Sids that are included
117
+ # in this Build. Optional.
118
+ # @param [String] function_versions The list of Function Version Sids that are
119
+ # included in this Build. Optional.
120
+ # @param [String] dependencies The list of Dependencies that are included in this
121
+ # Build, each described by a `name` and a `version` in a JSON object. Optional.
118
122
  # @return [BuildInstance] Newly created BuildInstance
119
123
  def create(asset_versions: :unset, function_versions: :unset, dependencies: :unset)
120
124
  data = Twilio::Values.of({
@@ -176,8 +180,9 @@ module Twilio
176
180
  ##
177
181
  # Initialize the BuildContext
178
182
  # @param [Version] version Version that contains the resource
179
- # @param [String] service_sid The service_sid
180
- # @param [String] sid The sid
183
+ # @param [String] service_sid The unique SID identifier of the Service for this
184
+ # Build.
185
+ # @param [String] sid The unique SID identifier of this Build.
181
186
  # @return [BuildContext] BuildContext
182
187
  def initialize(version, service_sid, sid)
183
188
  super(version)
@@ -224,8 +229,9 @@ module Twilio
224
229
  # Initialize the BuildInstance
225
230
  # @param [Version] version Version that contains the resource
226
231
  # @param [Hash] payload payload that contains response from Twilio
227
- # @param [String] service_sid The service_sid
228
- # @param [String] sid The sid
232
+ # @param [String] service_sid The unique SID identifier of the Service for this
233
+ # Build.
234
+ # @param [String] sid The unique SID identifier of this Build.
229
235
  # @return [BuildInstance] BuildInstance
230
236
  def initialize(version, payload, service_sid: nil, sid: nil)
231
237
  super(version)
@@ -261,61 +267,61 @@ module Twilio
261
267
  end
262
268
 
263
269
  ##
264
- # @return [String] The sid
270
+ # @return [String] Build Sid.
265
271
  def sid
266
272
  @properties['sid']
267
273
  end
268
274
 
269
275
  ##
270
- # @return [String] The account_sid
276
+ # @return [String] Account Sid.
271
277
  def account_sid
272
278
  @properties['account_sid']
273
279
  end
274
280
 
275
281
  ##
276
- # @return [String] The service_sid
282
+ # @return [String] Service Sid.
277
283
  def service_sid
278
284
  @properties['service_sid']
279
285
  end
280
286
 
281
287
  ##
282
- # @return [build.Status] The status
288
+ # @return [build.Status] The current state of the Build.
283
289
  def status
284
290
  @properties['status']
285
291
  end
286
292
 
287
293
  ##
288
- # @return [Hash] The asset_versions
294
+ # @return [Hash] List of Asset Version Sids.
289
295
  def asset_versions
290
296
  @properties['asset_versions']
291
297
  end
292
298
 
293
299
  ##
294
- # @return [Hash] The function_versions
300
+ # @return [Hash] List of Function Version Sids.
295
301
  def function_versions
296
302
  @properties['function_versions']
297
303
  end
298
304
 
299
305
  ##
300
- # @return [Hash] The dependencies
306
+ # @return [Hash] List of Dependencies.
301
307
  def dependencies
302
308
  @properties['dependencies']
303
309
  end
304
310
 
305
311
  ##
306
- # @return [Time] The date_created
312
+ # @return [Time] The date that this Build was created.
307
313
  def date_created
308
314
  @properties['date_created']
309
315
  end
310
316
 
311
317
  ##
312
- # @return [Time] The date_updated
318
+ # @return [Time] The date that this Build was updated.
313
319
  def date_updated
314
320
  @properties['date_updated']
315
321
  end
316
322
 
317
323
  ##
318
- # @return [String] The url
324
+ # @return [String] The URL of this Build.
319
325
  def url
320
326
  @properties['url']
321
327
  end