lib/twilio-ruby/rest/accounts/v1/credential.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/accounts/v1/credential.rb in twilio-ruby-5.4.5
- old
+ new
@@ -19,10 +19,11 @@
# Path Solution
@solution = {}
# Components
@public_key = nil
+ @aws = nil
end
##
# Access the public_key
# @param [String] sid The Credential Sid that uniquely identifies the Credential
@@ -31,17 +32,32 @@
# @return [PublicKeyContext] if sid was passed.
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
+
+ ##
# Provide a user friendly representation
def to_s
'#<Twilio.Accounts.V1.CredentialList>'
end
end
@@ -63,10 +79,10 @@
##
# Build an instance of CredentialInstance
# @param [Hash] payload Payload response from the API
# @return [CredentialInstance] CredentialInstance
def get_instance(payload)
- CredentialInstance.new(@version, payload,)
+ CredentialInstance.new(@version, payload)
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file