lib/twilio-ruby/rest/api/v2010/account/token.rb in twilio-ruby-5.19.0 vs lib/twilio-ruby/rest/api/v2010/account/token.rb in twilio-ruby-5.20.0
- old
+ new
@@ -13,12 +13,13 @@
class AccountContext < InstanceContext
class TokenList < ListResource
##
# Initialize the TokenList
# @param [Version] version Version that contains the resource
- # @param [String] account_sid The unique id of the
- # [Account](https://www.twilio.com/docs/iam/api/account) that created this Token.
+ # @param [String] account_sid The SID of the
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the Token
+ # resource.
# @return [TokenList] TokenList
def initialize(version, account_sid: nil)
super(version)
# Path Solution
@@ -28,11 +29,11 @@
##
# Retrieve a single page of TokenInstance records from the API.
# Request is executed immediately.
# @param [String] ttl The duration in seconds for which the generated credentials
- # are valid, the default value is 86400 (24 hours).
+ # are valid. The default value is 86400 (24 hours).
# @return [TokenInstance] Newly created TokenInstance
def create(ttl: :unset)
data = Twilio::Values.of({'Ttl' => ttl, })
payload = @version.create(
@@ -83,12 +84,13 @@
class TokenInstance < InstanceResource
##
# Initialize the TokenInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
- # @param [String] account_sid The unique id of the
- # [Account](https://www.twilio.com/docs/iam/api/account) that created this Token.
+ # @param [String] account_sid The SID of the
+ # [Account](https://www.twilio.com/docs/api/rest/account) that created the Token
+ # resource.
# @return [TokenInstance] TokenInstance
def initialize(version, payload, account_sid: nil)
super(version)
# Marshaled Properties
@@ -102,23 +104,23 @@
'username' => payload['username'],
}
end
##
- # @return [String] The unique sid that identifies this account
+ # @return [String] The SID of the Account that created the resource
def account_sid
@properties['account_sid']
end
##
- # @return [Time] The date this resource was created
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was created
def date_created
@properties['date_created']
end
##
- # @return [Time] The date this resource was last updated
+ # @return [Time] The RFC 2822 date and time in GMT that the resource was last updated
def date_updated
@properties['date_updated']
end
##
@@ -138,10 +140,10 @@
def ttl
@properties['ttl']
end
##
- # @return [String] The temporary username that uniquely identifies a Token.
+ # @return [String] The temporary username that uniquely identifies a Token
def username
@properties['username']
end
##
\ No newline at end of file