twilio-ruby 5.22.1 → 5.22.2

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
  5. data/lib/twilio-ruby/rest/autopilot.rb +1 -1
  6. data/lib/twilio-ruby/rest/autopilot/v1.rb +2 -2
  7. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +55 -61
  8. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +17 -9
  9. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +18 -10
  10. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +37 -28
  11. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +39 -32
  12. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +37 -27
  13. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +58 -53
  14. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +15 -9
  15. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +53 -43
  16. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +38 -25
  17. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +56 -50
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +27 -15
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +24 -18
  20. data/lib/twilio-ruby/rest/client.rb +39 -39
  21. data/lib/twilio-ruby/rest/notify.rb +4 -2
  22. data/lib/twilio-ruby/rest/notify/v1.rb +4 -2
  23. data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -42
  24. data/lib/twilio-ruby/rest/notify/v1/service.rb +118 -103
  25. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +74 -63
  26. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +108 -111
  27. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
  28. data/lib/twilio-ruby/rest/trunking.rb +2 -2
  29. data/lib/twilio-ruby/rest/trunking/v1.rb +2 -2
  30. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +82 -82
  31. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +19 -14
  32. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +16 -15
  33. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +51 -50
  34. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +41 -32
  35. data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +30 -31
  36. data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
  37. data/lib/twilio-ruby/version.rb +1 -1
  38. data/spec/integration/api/v2010/account/address_spec.rb +4 -0
  39. data/spec/integration/proxy/v1/service/phone_number_spec.rb +8 -4
  40. metadata +2 -2
@@ -288,6 +288,7 @@ module Twilio
288
288
  'capabilities' => payload['capabilities'],
289
289
  'url' => payload['url'],
290
290
  'is_reserved' => payload['is_reserved'],
291
+ 'in_use' => payload['in_use'].to_i,
291
292
  }
292
293
 
293
294
  # Context
@@ -372,6 +373,12 @@ module Twilio
372
373
  @properties['is_reserved']
373
374
  end
374
375
 
376
+ ##
377
+ # @return [String] The number of open session assigned to the number.
378
+ def in_use
379
+ @properties['in_use']
380
+ end
381
+
375
382
  ##
376
383
  # Deletes the PhoneNumberInstance
377
384
  # @return [Boolean] true if delete succeeds, true otherwise
@@ -29,8 +29,8 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid A 34 character string that uniquely identifies the SIP Trunk
33
- # in Twilio.
32
+ # @param [String] sid The unique string that we created to identify the Trunk
33
+ # resource.
34
34
  # @return [Twilio::REST::Trunking::V1::TrunkInstance] if sid was passed.
35
35
  # @return [Twilio::REST::Trunking::V1::TrunkList]
36
36
  def trunks(sid=:unset)
@@ -19,8 +19,8 @@ module Twilio
19
19
  end
20
20
 
21
21
  ##
22
- # @param [String] sid A 34 character string that uniquely identifies the SIP Trunk
23
- # in Twilio.
22
+ # @param [String] sid The unique string that we created to identify the Trunk
23
+ # resource to fetch.
24
24
  # @return [Twilio::REST::Trunking::V1::TrunkContext] if sid was passed.
25
25
  # @return [Twilio::REST::Trunking::V1::TrunkList]
26
26
  def trunks(sid=:unset)
@@ -26,35 +26,35 @@ module Twilio
26
26
  ##
27
27
  # Retrieve a single page of TrunkInstance records from the API.
28
28
  # Request is executed immediately.
29
- # @param [String] friendly_name A human-readable name for the Trunk.
29
+ # @param [String] friendly_name A descriptive string that you create to describe
30
+ # the resource. It can be up to 64 characters long.
30
31
  # @param [String] domain_name The unique address you reserve on Twilio to which
31
32
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
32
- # and must always end with `pstn.twilio.com`. See [Termination
33
+ # and must end with `pstn.twilio.com`. See [Termination
33
34
  # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
34
35
  # for more information.
35
- # @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
36
- # an error occurs while sending SIP traffic towards your configured Origination
37
- # URL. Twilio will retrieve TwiML from this URL and execute those instructions
38
- # like any other normal TwiML call. See [Disaster
36
+ # @param [String] disaster_recovery_url The URL we should call using the
37
+ # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
38
+ # the configured Origination URL. We retrieve TwiML from the URL and execute the
39
+ # instructions like any other normal TwiML call. See [Disaster
39
40
  # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
40
- # @param [String] disaster_recovery_method The HTTP method Twilio will use when
41
- # requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
42
- # @param [trunk.RecordingSetting] recording The recording settings for this trunk.
43
- # If turned on, all calls going through this trunk will be recorded and the
44
- # recording can either start when the call is ringing or when the call is
45
- # answered. See
41
+ # @param [String] disaster_recovery_method The HTTP method we should use to call
42
+ # the `disaster_recovery_url`. Can be: `GET` or `POST`.
43
+ # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
44
+ # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
45
+ # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
46
+ # will be recorded. See
46
47
  # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
47
48
  # for more information.
48
- # @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
49
- # on, all calls going through this trunk will be secure using SRTP for media and
50
- # TLS for signalling. If turned off, then RTP will be used for media. See [Secure
49
+ # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
50
+ # enabled, all calls going through the trunk will be secure using SRTP for media
51
+ # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
51
52
  # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
52
- # @param [Boolean] cnam_lookup_enabled The Caller ID Name (CNAM) lookup setting
53
- # for this trunk. If turned on, all inbound calls to this SIP Trunk from the
54
- # United States and Canada will automatically perform a CNAM Lookup and display
55
- # Caller ID data on your phone. See
56
- # [CNAM](https://www.twilio.com/docs/sip-trunking#CNAM) Lookups for more
57
- # information.
53
+ # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
54
+ # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
55
+ # the United States and Canada automatically perform a CNAM Lookup and display
56
+ # Caller ID data on your phone. See [CNAM
57
+ # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
58
58
  # @return [TrunkInstance] Newly created TrunkInstance
59
59
  def create(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
60
60
  data = Twilio::Values.of({
@@ -198,8 +198,8 @@ module Twilio
198
198
  ##
199
199
  # Initialize the TrunkContext
200
200
  # @param [Version] version Version that contains the resource
201
- # @param [String] sid A 34 character string that uniquely identifies the SIP Trunk
202
- # in Twilio.
201
+ # @param [String] sid The unique string that we created to identify the Trunk
202
+ # resource to fetch.
203
203
  # @return [TrunkContext] TrunkContext
204
204
  def initialize(version, sid)
205
205
  super(version)
@@ -240,35 +240,35 @@ module Twilio
240
240
 
241
241
  ##
242
242
  # Update the TrunkInstance
243
- # @param [String] friendly_name A human-readable name for the Trunk.
243
+ # @param [String] friendly_name A descriptive string that you create to describe
244
+ # the resource. It can be up to 64 characters long.
244
245
  # @param [String] domain_name The unique address you reserve on Twilio to which
245
246
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
246
- # and must always end with `pstn.twilio.com`. See [Termination
247
+ # and must end with `pstn.twilio.com`. See [Termination
247
248
  # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
248
249
  # for more information.
249
- # @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
250
- # an error occurs while sending SIP traffic towards your configured Origination
251
- # URL. Twilio will retrieve TwiML from this URL and execute those instructions
252
- # like any other normal TwiML call. See [Disaster
250
+ # @param [String] disaster_recovery_url The URL we should call using the
251
+ # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
252
+ # the configured Origination URL. We retrieve TwiML from the URL and execute the
253
+ # instructions like any other normal TwiML call. See [Disaster
253
254
  # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
254
- # @param [String] disaster_recovery_method The HTTP method Twilio will use when
255
- # requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
256
- # @param [trunk.RecordingSetting] recording The recording settings for this trunk.
257
- # If turned on, all calls going through this trunk will be recorded and the
258
- # recording can either start when the call is ringing or when the call is
259
- # answered. See
255
+ # @param [String] disaster_recovery_method The HTTP method we should use to call
256
+ # the `disaster_recovery_url`. Can be: `GET` or `POST`.
257
+ # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
258
+ # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
259
+ # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
260
+ # will be recorded. See
260
261
  # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
261
262
  # for more information.
262
- # @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
263
- # on, all calls going through this trunk will be secure using SRTP for media and
264
- # TLS for signalling. If turned off, then RTP will be used for media. See [Secure
263
+ # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
264
+ # enabled, all calls going through the trunk will be secure using SRTP for media
265
+ # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
265
266
  # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
266
- # @param [Boolean] cnam_lookup_enabled The Caller ID Name (CNAM) lookup setting
267
- # for this trunk. If turned on, all inbound calls to this SIP Trunk from the
268
- # United States and Canada will automatically perform a CNAM Lookup and display
269
- # Caller ID data on your phone. See
270
- # [CNAM](https://www.twilio.com/docs/sip-trunking#CNAM) Lookups for more
271
- # information.
267
+ # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
268
+ # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
269
+ # the United States and Canada automatically perform a CNAM Lookup and display
270
+ # Caller ID data on your phone. See [CNAM
271
+ # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
272
272
  # @return [TrunkInstance] Updated TrunkInstance
273
273
  def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
274
274
  data = Twilio::Values.of({
@@ -400,8 +400,8 @@ module Twilio
400
400
  # Initialize the TrunkInstance
401
401
  # @param [Version] version Version that contains the resource
402
402
  # @param [Hash] payload payload that contains response from Twilio
403
- # @param [String] sid A 34 character string that uniquely identifies the SIP Trunk
404
- # in Twilio.
403
+ # @param [String] sid The unique string that we created to identify the Trunk
404
+ # resource to fetch.
405
405
  # @return [TrunkInstance] TrunkInstance
406
406
  def initialize(version, payload, sid: nil)
407
407
  super(version)
@@ -442,91 +442,91 @@ module Twilio
442
442
  end
443
443
 
444
444
  ##
445
- # @return [String] The unique ID of the Account that owns this Trunk.
445
+ # @return [String] The SID of the Account that created the resource
446
446
  def account_sid
447
447
  @properties['account_sid']
448
448
  end
449
449
 
450
450
  ##
451
- # @return [String] The unique address you reserve on Twilio to which you route your SIP traffic.
451
+ # @return [String] The unique address you reserve on Twilio to which you route your SIP traffic
452
452
  def domain_name
453
453
  @properties['domain_name']
454
454
  end
455
455
 
456
456
  ##
457
- # @return [String] The HTTP method Twilio will use when requesting the DisasterRecoveryUrl.
457
+ # @return [String] The HTTP method we use to call the disaster_recovery_url
458
458
  def disaster_recovery_method
459
459
  @properties['disaster_recovery_method']
460
460
  end
461
461
 
462
462
  ##
463
- # @return [String] The HTTP URL that Twilio will request if an error occurs while sending SIP traffic towards your configured Origination URL.
463
+ # @return [String] The HTTP URL that we call if an error occurs while sending SIP traffic towards your configured Origination URL
464
464
  def disaster_recovery_url
465
465
  @properties['disaster_recovery_url']
466
466
  end
467
467
 
468
468
  ##
469
- # @return [String] A human-readable name for the Trunk.
469
+ # @return [String] The string that you assigned to describe the resource
470
470
  def friendly_name
471
471
  @properties['friendly_name']
472
472
  end
473
473
 
474
474
  ##
475
- # @return [Boolean] The Secure Trunking settings for this trunk.
475
+ # @return [Boolean] Whether Secure Trunking is enabled for the trunk
476
476
  def secure
477
477
  @properties['secure']
478
478
  end
479
479
 
480
480
  ##
481
- # @return [Hash] The recording settings for this trunk.
481
+ # @return [Hash] The recording settings for the trunk
482
482
  def recording
483
483
  @properties['recording']
484
484
  end
485
485
 
486
486
  ##
487
- # @return [Boolean] The Caller ID Name (CNAM) lookup setting for this trunk.
487
+ # @return [Boolean] Whether Caller ID Name (CNAM) lookup is enabled for the trunk
488
488
  def cnam_lookup_enabled
489
489
  @properties['cnam_lookup_enabled']
490
490
  end
491
491
 
492
492
  ##
493
- # @return [String] The types of authentication you have mapped to your domain.
493
+ # @return [String] The types of authentication mapped to the domain
494
494
  def auth_type
495
495
  @properties['auth_type']
496
496
  end
497
497
 
498
498
  ##
499
- # @return [String] The auth_type_set
499
+ # @return [String] Reserved
500
500
  def auth_type_set
501
501
  @properties['auth_type_set']
502
502
  end
503
503
 
504
504
  ##
505
- # @return [Time] The date this Activity was created.
505
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
506
506
  def date_created
507
507
  @properties['date_created']
508
508
  end
509
509
 
510
510
  ##
511
- # @return [Time] The date this Activity was updated.
511
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
512
512
  def date_updated
513
513
  @properties['date_updated']
514
514
  end
515
515
 
516
516
  ##
517
- # @return [String] A 34 character string that uniquely identifies the SIP Trunk in Twilio.
517
+ # @return [String] The unique string that identifies the resource
518
518
  def sid
519
519
  @properties['sid']
520
520
  end
521
521
 
522
522
  ##
523
- # @return [String] The URL for this resource, relative to https://trunking.
523
+ # @return [String] The absolute URL of the resource
524
524
  def url
525
525
  @properties['url']
526
526
  end
527
527
 
528
528
  ##
529
- # @return [String] The links
529
+ # @return [String] The URLs of related resources
530
530
  def links
531
531
  @properties['links']
532
532
  end
@@ -547,35 +547,35 @@ module Twilio
547
547
 
548
548
  ##
549
549
  # Update the TrunkInstance
550
- # @param [String] friendly_name A human-readable name for the Trunk.
550
+ # @param [String] friendly_name A descriptive string that you create to describe
551
+ # the resource. It can be up to 64 characters long.
551
552
  # @param [String] domain_name The unique address you reserve on Twilio to which
552
553
  # you route your SIP traffic. Domain names can contain letters, digits, and `-`
553
- # and must always end with `pstn.twilio.com`. See [Termination
554
+ # and must end with `pstn.twilio.com`. See [Termination
554
555
  # Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
555
556
  # for more information.
556
- # @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
557
- # an error occurs while sending SIP traffic towards your configured Origination
558
- # URL. Twilio will retrieve TwiML from this URL and execute those instructions
559
- # like any other normal TwiML call. See [Disaster
557
+ # @param [String] disaster_recovery_url The URL we should call using the
558
+ # `disaster_recovery_method` if an error occurs while sending SIP traffic towards
559
+ # the configured Origination URL. We retrieve TwiML from the URL and execute the
560
+ # instructions like any other normal TwiML call. See [Disaster
560
561
  # Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
561
- # @param [String] disaster_recovery_method The HTTP method Twilio will use when
562
- # requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
563
- # @param [trunk.RecordingSetting] recording The recording settings for this trunk.
564
- # If turned on, all calls going through this trunk will be recorded and the
565
- # recording can either start when the call is ringing or when the call is
566
- # answered. See
562
+ # @param [String] disaster_recovery_method The HTTP method we should use to call
563
+ # the `disaster_recovery_url`. Can be: `GET` or `POST`.
564
+ # @param [trunk.RecordingSetting] recording The recording settings for the trunk.
565
+ # Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
566
+ # `record-from-ringing` or `record-from-answer`, all calls going through the trunk
567
+ # will be recorded. See
567
568
  # [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
568
569
  # for more information.
569
- # @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
570
- # on, all calls going through this trunk will be secure using SRTP for media and
571
- # TLS for signalling. If turned off, then RTP will be used for media. See [Secure
570
+ # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
571
+ # enabled, all calls going through the trunk will be secure using SRTP for media
572
+ # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
572
573
  # Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
573
- # @param [Boolean] cnam_lookup_enabled The Caller ID Name (CNAM) lookup setting
574
- # for this trunk. If turned on, all inbound calls to this SIP Trunk from the
575
- # United States and Canada will automatically perform a CNAM Lookup and display
576
- # Caller ID data on your phone. See
577
- # [CNAM](https://www.twilio.com/docs/sip-trunking#CNAM) Lookups for more
578
- # information.
574
+ # @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
575
+ # be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
576
+ # the United States and Canada automatically perform a CNAM Lookup and display
577
+ # Caller ID data on your phone. See [CNAM
578
+ # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
579
579
  # @return [TrunkInstance] Updated TrunkInstance
580
580
  def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
581
581
  context.update(
@@ -15,7 +15,8 @@ module Twilio
15
15
  ##
16
16
  # Initialize the CredentialListList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] trunk_sid The trunk_sid
18
+ # @param [String] trunk_sid The SID of the Trunk the credential list in associated
19
+ # with.
19
20
  # @return [CredentialListList] CredentialListList
20
21
  def initialize(version, trunk_sid: nil)
21
22
  super(version)
@@ -30,8 +31,8 @@ module Twilio
30
31
  # Request is executed immediately.
31
32
  # @param [String] credential_list_sid The SID of the [Credential
32
33
  # List](https://www.twilio.com/docs/api/rest/credential-list) that you want to
33
- # associate with this trunk. Once associated, Twilio will start authenticating
34
- # access to the trunk against this list.
34
+ # associate with the trunk. Once associated, we will authenticate access to the
35
+ # trunk against this list.
35
36
  # @return [CredentialListInstance] Newly created CredentialListInstance
36
37
  def create(credential_list_sid: nil)
37
38
  data = Twilio::Values.of({'CredentialListSid' => credential_list_sid, })
@@ -167,8 +168,10 @@ module Twilio
167
168
  ##
168
169
  # Initialize the CredentialListContext
169
170
  # @param [Version] version Version that contains the resource
170
- # @param [String] trunk_sid The trunk_sid
171
- # @param [String] sid The sid
171
+ # @param [String] trunk_sid The SID of the Trunk from which to fetch the
172
+ # credential list.
173
+ # @param [String] sid The unique string that we created to identify the
174
+ # CredentialList resource to fetch.
172
175
  # @return [CredentialListContext] CredentialListContext
173
176
  def initialize(version, trunk_sid, sid)
174
177
  super(version)
@@ -225,8 +228,10 @@ module Twilio
225
228
  # Initialize the CredentialListInstance
226
229
  # @param [Version] version Version that contains the resource
227
230
  # @param [Hash] payload payload that contains response from Twilio
228
- # @param [String] trunk_sid The trunk_sid
229
- # @param [String] sid The sid
231
+ # @param [String] trunk_sid The SID of the Trunk the credential list in associated
232
+ # with.
233
+ # @param [String] sid The unique string that we created to identify the
234
+ # CredentialList resource to fetch.
230
235
  # @return [CredentialListInstance] CredentialListInstance
231
236
  def initialize(version, payload, trunk_sid: nil, sid: nil)
232
237
  super(version)
@@ -259,43 +264,43 @@ module Twilio
259
264
  end
260
265
 
261
266
  ##
262
- # @return [String] The account_sid
267
+ # @return [String] The SID of the Account that created the resource
263
268
  def account_sid
264
269
  @properties['account_sid']
265
270
  end
266
271
 
267
272
  ##
268
- # @return [String] The sid
273
+ # @return [String] The unique string that identifies the resource
269
274
  def sid
270
275
  @properties['sid']
271
276
  end
272
277
 
273
278
  ##
274
- # @return [String] The trunk_sid
279
+ # @return [String] The SID of the Trunk the credential list in associated with
275
280
  def trunk_sid
276
281
  @properties['trunk_sid']
277
282
  end
278
283
 
279
284
  ##
280
- # @return [String] The friendly_name
285
+ # @return [String] The string that you assigned to describe the resource
281
286
  def friendly_name
282
287
  @properties['friendly_name']
283
288
  end
284
289
 
285
290
  ##
286
- # @return [Time] The date_created
291
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
287
292
  def date_created
288
293
  @properties['date_created']
289
294
  end
290
295
 
291
296
  ##
292
- # @return [Time] The date_updated
297
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
293
298
  def date_updated
294
299
  @properties['date_updated']
295
300
  end
296
301
 
297
302
  ##
298
- # @return [String] The url
303
+ # @return [String] The absolute URL of the resource
299
304
  def url
300
305
  @properties['url']
301
306
  end
@@ -15,8 +15,7 @@ module Twilio
15
15
  ##
16
16
  # Initialize the IpAccessControlListList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] trunk_sid A 34 character string that identifies the Trunk this
19
- # resrouce is associated with.
18
+ # @param [String] trunk_sid The SID of the Trunk the resource is associated with.
20
19
  # @return [IpAccessControlListList] IpAccessControlListList
21
20
  def initialize(version, trunk_sid: nil)
22
21
  super(version)
@@ -31,7 +30,7 @@ module Twilio
31
30
  # Request is executed immediately.
32
31
  # @param [String] ip_access_control_list_sid The SID of the [IP Access Control
33
32
  # List](https://www.twilio.com/docs/api/rest/ip-access-control-list) that you want
34
- # to associate with this trunk.
33
+ # to associate with the trunk.
35
34
  # @return [IpAccessControlListInstance] Newly created IpAccessControlListInstance
36
35
  def create(ip_access_control_list_sid: nil)
37
36
  data = Twilio::Values.of({'IpAccessControlListSid' => ip_access_control_list_sid, })
@@ -167,8 +166,10 @@ module Twilio
167
166
  ##
168
167
  # Initialize the IpAccessControlListContext
169
168
  # @param [Version] version Version that contains the resource
170
- # @param [String] trunk_sid The trunk_sid
171
- # @param [String] sid The sid
169
+ # @param [String] trunk_sid The SID of the Trunk from which to fetch the IP Access
170
+ # Control List.
171
+ # @param [String] sid The unique string that we created to identify the
172
+ # IpAccessControlList resource to fetch.
172
173
  # @return [IpAccessControlListContext] IpAccessControlListContext
173
174
  def initialize(version, trunk_sid, sid)
174
175
  super(version)
@@ -225,9 +226,9 @@ module Twilio
225
226
  # Initialize the IpAccessControlListInstance
226
227
  # @param [Version] version Version that contains the resource
227
228
  # @param [Hash] payload payload that contains response from Twilio
228
- # @param [String] trunk_sid A 34 character string that identifies the Trunk this
229
- # resrouce is associated with.
230
- # @param [String] sid The sid
229
+ # @param [String] trunk_sid The SID of the Trunk the resource is associated with.
230
+ # @param [String] sid The unique string that we created to identify the
231
+ # IpAccessControlList resource to fetch.
231
232
  # @return [IpAccessControlListInstance] IpAccessControlListInstance
232
233
  def initialize(version, payload, trunk_sid: nil, sid: nil)
233
234
  super(version)
@@ -260,43 +261,43 @@ module Twilio
260
261
  end
261
262
 
262
263
  ##
263
- # @return [String] The unique sid that identifies this account
264
+ # @return [String] The SID of the Account that created the resource
264
265
  def account_sid
265
266
  @properties['account_sid']
266
267
  end
267
268
 
268
269
  ##
269
- # @return [String] A string that uniquely identifies this resource
270
+ # @return [String] The unique string that identifies the resource
270
271
  def sid
271
272
  @properties['sid']
272
273
  end
273
274
 
274
275
  ##
275
- # @return [String] The unique sid that identifies the associated Trunk
276
+ # @return [String] The SID of the Trunk the resource is associated with
276
277
  def trunk_sid
277
278
  @properties['trunk_sid']
278
279
  end
279
280
 
280
281
  ##
281
- # @return [String] A human readable description of this resource
282
+ # @return [String] The string that you assigned to describe the resource
282
283
  def friendly_name
283
284
  @properties['friendly_name']
284
285
  end
285
286
 
286
287
  ##
287
- # @return [Time] The date this resource was created
288
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was created
288
289
  def date_created
289
290
  @properties['date_created']
290
291
  end
291
292
 
292
293
  ##
293
- # @return [Time] The date this resource was last updated
294
+ # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
294
295
  def date_updated
295
296
  @properties['date_updated']
296
297
  end
297
298
 
298
299
  ##
299
- # @return [String] The url
300
+ # @return [String] The absolute URL of the resource
300
301
  def url
301
302
  @properties['url']
302
303
  end