twilio-ruby 5.22.2 → 5.22.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,8 +18,10 @@ module Twilio
18
18
  ##
19
19
  # Initialize the FunctionVersionList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] service_sid The service_sid
22
- # @param [String] function_sid The function_sid
21
+ # @param [String] service_sid The unique SID identifier of the Service for this
22
+ # Function Version.
23
+ # @param [String] function_sid The unique SID identifier of the Function that is
24
+ # the parent for this Function Version.
23
25
  # @return [FunctionVersionList] FunctionVersionList
24
26
  def initialize(version, service_sid: nil, function_sid: nil)
25
27
  super(version)
@@ -114,8 +116,11 @@ module Twilio
114
116
  ##
115
117
  # Retrieve a single page of FunctionVersionInstance records from the API.
116
118
  # Request is executed immediately.
117
- # @param [String] path The path
118
- # @param [function_version.Visibility] visibility The visibility
119
+ # @param [String] path The URL-friendly string by which this Function Version can
120
+ # be referenced. (Example: `/functions/example`) Required.
121
+ # @param [function_version.Visibility] visibility The access control which
122
+ # determines how the Function Version can be accessed. One of `public`,
123
+ # `protected`, or `private`. Required.
119
124
  # @return [FunctionVersionInstance] Newly created FunctionVersionInstance
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 FunctionVersionContext
185
190
  # @param [Version] version Version that contains the resource
186
- # @param [String] service_sid The service_sid
187
- # @param [String] function_sid The function_sid
188
- # @param [String] sid The sid
191
+ # @param [String] service_sid The unique SID identifier of the Service for this
192
+ # Function Version.
193
+ # @param [String] function_sid The unique SID identifier of the Function that is
194
+ # the parent for this Function Version.
195
+ # @param [String] sid The unique SID identifier of this Function Version.
189
196
  # @return [FunctionVersionContext] FunctionVersionContext
190
197
  def initialize(version, service_sid, function_sid, sid)
191
198
  super(version)
@@ -238,9 +245,11 @@ module Twilio
238
245
  # Initialize the FunctionVersionInstance
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] function_sid The function_sid
243
- # @param [String] sid The sid
248
+ # @param [String] service_sid The unique SID identifier of the Service for this
249
+ # Function Version.
250
+ # @param [String] function_sid The unique SID identifier of the Function that is
251
+ # the parent for this Function Version.
252
+ # @param [String] sid The unique SID identifier of this Function Version.
244
253
  # @return [FunctionVersionInstance] FunctionVersionInstance
245
254
  def initialize(version, payload, service_sid: nil, function_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] Function 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 function_sid
314
+ # @return [String] Function Sid.
306
315
  def function_sid
307
316
  @properties['function_sid']
308
317
  end
309
318
 
310
319
  ##
311
- # @return [String] The path
320
+ # @return [String] The URL-friendly string by which this Function Version can be referenced.
312
321
  def path
313
322
  @properties['path']
314
323
  end
315
324
 
316
325
  ##
317
- # @return [Hash] The pre_signed_upload_url
326
+ # @return [Hash] The object which provides the details required for uploading this Function Version.
318
327
  def pre_signed_upload_url
319
328
  @properties['pre_signed_upload_url']
320
329
  end
321
330
 
322
331
  ##
323
- # @return [function_version.Visibility] The visibility
332
+ # @return [function_version.Visibility] The access control which determines how the Function Version can be accessed.
324
333
  def visibility
325
334
  @properties['visibility']
326
335
  end
327
336
 
328
337
  ##
329
- # @return [Time] The date_created
338
+ # @return [Time] The date that this Function 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 Function Version.
336
345
  def url
337
346
  @properties['url']
338
347
  end
@@ -43,7 +43,9 @@ module Twilio
43
43
  # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
44
44
  # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
45
45
  # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
46
- # will be recorded. See
46
+ # will be recorded. The only way to change recording parameters is on a
47
+ # sub-resource of a Trunk after it has been created.
48
+ # e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See
47
49
  # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
48
50
  # for more information.
49
51
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
@@ -182,6 +182,7 @@ module Twilio
182
182
  'last_updated' => Twilio.deserialize_iso8601_datetime(payload['last_updated']),
183
183
  'start' => Twilio.deserialize_iso8601_datetime(payload['start']),
184
184
  'end_' => Twilio.deserialize_iso8601_datetime(payload['end']),
185
+ 'imeisv' => payload['imeisv'],
185
186
  }
186
187
  end
187
188
 
@@ -275,6 +276,12 @@ module Twilio
275
276
  @properties['end_']
276
277
  end
277
278
 
279
+ ##
280
+ # @return [String] The unique id of the device using the SIM to connect.
281
+ def imeisv
282
+ @properties['imeisv']
283
+ end
284
+
278
285
  ##
279
286
  # Provide a user friendly representation
280
287
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.22.2'
2
+ VERSION = '5.22.3'
3
3
  end
@@ -168,7 +168,7 @@ describe 'Build' do
168
168
  "version": "3.6.3"
169
169
  }
170
170
  ],
171
- "status": "queued",
171
+ "status": "building",
172
172
  "date_created": "2018-11-10T20:00:00Z",
173
173
  "date_updated": "2018-11-10T20:00:00Z",
174
174
  "url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Builds/ZB00000000000000000000000000000000"
@@ -46,7 +46,8 @@ describe 'DataSession' do
46
46
  "packets_downloaded": 0,
47
47
  "last_updated": "2015-07-30T20:00:00Z",
48
48
  "start": "2015-07-30T20:00:00Z",
49
- "end": null
49
+ "end": null,
50
+ "imeisv": null
50
51
  },
51
52
  {
52
53
  "sid": "WNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -63,7 +64,8 @@ describe 'DataSession' do
63
64
  "packets_downloaded": 0,
64
65
  "last_updated": "2015-07-30T20:00:00Z",
65
66
  "start": "2015-07-30T20:00:00Z",
66
- "end": "2015-07-30T20:00:00Z"
67
+ "end": "2015-07-30T20:00:00Z",
68
+ "imeisv": "8693070314126600"
67
69
  }
68
70
  ],
69
71
  "meta": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.22.2
4
+ version: 5.22.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt