Skip to content

Commit 2da6c6e

Browse files
committed
[Librarian] Regenerated @ 9a8a940052b0cd64cc253c2a38cb6ae555a4d07b
1 parent 918990a commit 2da6c6e

367 files changed

Lines changed: 4111 additions & 1939 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
twilio-ruby changelog
22
=====================
33

4+
[2017-11-10] Version 5.4.5
5+
---------------------------
6+
**Accounts**
7+
- Add AWS credential type
8+
9+
**Preview**
10+
- Removed `iso_country` as required field for creating a HostedNumberOrder.
11+
12+
**Proxy**
13+
- Added new fields to Service: geo_match_level, number_selection_behavior, intercept_callback_url, out_of_session_callback_url
14+
15+
416
[2017-11-03] Version 5.4.4
517
---------------------------
618
**Library**

lib/twilio-ruby/rest/accounts/v1.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ def initialize(domain)
1717
end
1818

1919
##
20-
# @return [Twilio::REST::Accounts::V1::CredentialInstance]
21-
def credentials(sid=:unset)
22-
if sid.nil?
23-
raise ArgumentError, 'sid cannot be nil'
24-
elsif sid == :unset
25-
@credentials ||= CredentialList.new self
26-
else
27-
CredentialContext.new(self, sid)
28-
end
20+
# @return [Twilio::REST::Accounts::V1::CredentialContext]
21+
def credentials
22+
@credentials ||= CredentialList.new self
2923
end
3024

3125
##

lib/twilio-ruby/rest/accounts/v1/credential.rb

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def initialize(version)
2121

2222
# Components
2323
@public_key = nil
24+
@aws = nil
2425
end
2526

2627
##
@@ -33,10 +34,25 @@ def public_key(sid=:unset)
3334
raise ArgumentError, 'sid cannot be nil' if sid.nil?
3435

3536
if sid != :unset
36-
return PublicKeyContext.new(@version, sid,)
37+
return PublicKeyContext.new(@version, sid)
3738
end
3839

39-
@public_key ||= PublicKeyList.new(@version,)
40+
@public_key ||= PublicKeyList.new(@version)
41+
end
42+
43+
##
44+
# Access the aws
45+
# @param [String] sid The sid
46+
# @return [AwsList]
47+
# @return [AwsContext] if sid was passed.
48+
def aws(sid=:unset)
49+
raise ArgumentError, 'sid cannot be nil' if sid.nil?
50+
51+
if sid != :unset
52+
return AwsContext.new(@version, sid)
53+
end
54+
55+
@aws ||= AwsList.new(@version)
4056
end
4157

4258
##
@@ -65,7 +81,7 @@ def initialize(version, response, solution)
6581
# @param [Hash] payload Payload response from the API
6682
# @return [CredentialInstance] CredentialInstance
6783
def get_instance(payload)
68-
CredentialInstance.new(@version, payload,)
84+
CredentialInstance.new(@version, payload)
6985
end
7086

7187
##

0 commit comments

Comments
 (0)