Skip to content

Commit

Permalink
[Librarian] Regenerated @ 9a8a940052b0cd64cc253c2a38cb6ae555a4d07b
Browse files Browse the repository at this point in the history
  • Loading branch information
jmctwilio committed Nov 11, 2017
1 parent 918990a commit 2da6c6e
Show file tree
Hide file tree
Showing 367 changed files with 4,111 additions and 1,939 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
twilio-ruby changelog
=====================

[2017-11-10] Version 5.4.5
---------------------------
**Accounts**
- Add AWS credential type

**Preview**
- Removed `iso_country` as required field for creating a HostedNumberOrder.

**Proxy**
- Added new fields to Service: geo_match_level, number_selection_behavior, intercept_callback_url, out_of_session_callback_url


[2017-11-03] Version 5.4.4
---------------------------
**Library**
Expand Down
12 changes: 3 additions & 9 deletions lib/twilio-ruby/rest/accounts/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ def initialize(domain)
end

##
# @return [Twilio::REST::Accounts::V1::CredentialInstance]
def credentials(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@credentials ||= CredentialList.new self
else
CredentialContext.new(self, sid)
end
# @return [Twilio::REST::Accounts::V1::CredentialContext]
def credentials
@credentials ||= CredentialList.new self
end

##
Expand Down
22 changes: 19 additions & 3 deletions lib/twilio-ruby/rest/accounts/v1/credential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def initialize(version)

# Components
@public_key = nil
@aws = nil
end

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

if sid != :unset
return PublicKeyContext.new(@version, sid,)
return PublicKeyContext.new(@version, sid)
end

@public_key ||= PublicKeyList.new(@version,)
@public_key ||= PublicKeyList.new(@version)
end

##
# Access the aws
# @param [String] sid The sid
# @return [AwsList]
# @return [AwsContext] if sid was passed.
def aws(sid=:unset)
raise ArgumentError, 'sid cannot be nil' if sid.nil?

if sid != :unset
return AwsContext.new(@version, sid)
end

@aws ||= AwsList.new(@version)
end

##
Expand Down Expand Up @@ -65,7 +81,7 @@ def initialize(version, response, solution)
# @param [Hash] payload Payload response from the API
# @return [CredentialInstance] CredentialInstance
def get_instance(payload)
CredentialInstance.new(@version, payload,)
CredentialInstance.new(@version, payload)
end

##
Expand Down
Loading

0 comments on commit 2da6c6e

Please sign in to comment.