Skip to content

Commit

Permalink
[Librarian] Regenerated @ a4cb3dcc12627f0ab0fcc6104a6bed708e9375c4
Browse files Browse the repository at this point in the history
  • Loading branch information
codejudas committed Jan 22, 2018
1 parent b7322d8 commit aa8862f
Show file tree
Hide file tree
Showing 344 changed files with 2,599 additions and 1,930 deletions.
23 changes: 23 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
twilio-ruby changelog
=====================

[2018-01-22] Version 5.6.1
---------------------------
**Api**
- Add `conference_sid` property on Recordings
- Add proxy and sms usage key

**Chat**
- Make user channels accessible by identity
- Add notifications logs flag parameter

**Fax**
- Added `ttl` parameter
`ttl` is the number of minutes a fax is considered valid.

**Preview**
- Add `call_delay`, `extension`, `verification_code`, and `verification_call_sids`.
- Add `failure_reason` to HostedNumberOrders.
- Add DependentHostedNumberOrders endpoint for AuthorizationDocuments preview API.

**Taskrouter**
- Less verbose naming of cumulative and real time statistics *(breaking change)*


[2017-12-15] Version 5.6.0
---------------------------
**Api**
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2017, Twilio, Inc. <[email protected]>
Copyright (C) 2018, Twilio, Inc. <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 5 additions & 5 deletions lib/twilio-ruby/rest/accounts/v1/credential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ 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

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

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

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

##
Expand Down Expand Up @@ -81,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
22 changes: 11 additions & 11 deletions lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def list(limit: nil, page_size: nil)
def stream(limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)

page = self.page(page_size: limits[:page_size])
page = self.page(page_size: limits[:page_size], )

@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
end
Expand All @@ -63,7 +63,7 @@ def stream(limit: nil, page_size: nil)
def each
limits = @version.read_limits

page = self.page(page_size: limits[:page_size])
page = self.page(page_size: limits[:page_size], )

@version.stream(page,
limit: limits[:limit],
Expand Down Expand Up @@ -124,7 +124,7 @@ def create(credentials: nil, friendly_name: :unset, account_sid: :unset)
data: data
)

AwsInstance.new(@version, payload)
AwsInstance.new(@version, payload, )
end

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

##
Expand All @@ -173,7 +173,7 @@ def initialize(version, sid)
super(version)

# Path Solution
@solution = {sid: sid}
@solution = {sid: sid, }
@uri = "/Credentials/AWS/#{@solution[:sid]}"
end

Expand All @@ -189,23 +189,23 @@ def fetch
params,
)

AwsInstance.new(@version, payload, sid: @solution[:sid])
AwsInstance.new(@version, payload, sid: @solution[:sid], )
end

##
# Update the AwsInstance
# @param [String] friendly_name The friendly_name
# @return [AwsInstance] Updated AwsInstance
def update(friendly_name: :unset)
data = Twilio::Values.of({'FriendlyName' => friendly_name})
data = Twilio::Values.of({'FriendlyName' => friendly_name, })

payload = @version.update(
'POST',
@uri,
data: data,
)

AwsInstance.new(@version, payload, sid: @solution[:sid])
AwsInstance.new(@version, payload, sid: @solution[:sid], )
end

##
Expand Down Expand Up @@ -245,7 +245,7 @@ def initialize(version, payload, sid: nil)

# Context
@instance_context = nil
@params = {'sid' => sid || @properties['sid']}
@params = {'sid' => sid || @properties['sid'], }
end

##
Expand All @@ -254,7 +254,7 @@ def initialize(version, payload, sid: nil)
# @return [AwsContext] AwsContext for this AwsInstance
def context
unless @instance_context
@instance_context = AwsContext.new(@version, @params['sid'])
@instance_context = AwsContext.new(@version, @params['sid'], )
end
@instance_context
end
Expand Down Expand Up @@ -307,7 +307,7 @@ def fetch
# @param [String] friendly_name The friendly_name
# @return [AwsInstance] Updated AwsInstance
def update(friendly_name: :unset)
context.update(friendly_name: friendly_name)
context.update(friendly_name: friendly_name, )
end

##
Expand Down
22 changes: 11 additions & 11 deletions lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def list(limit: nil, page_size: nil)
def stream(limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)

page = self.page(page_size: limits[:page_size])
page = self.page(page_size: limits[:page_size], )

@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
end
Expand All @@ -63,7 +63,7 @@ def stream(limit: nil, page_size: nil)
def each
limits = @version.read_limits

page = self.page(page_size: limits[:page_size])
page = self.page(page_size: limits[:page_size], )

@version.stream(page,
limit: limits[:limit],
Expand Down Expand Up @@ -127,7 +127,7 @@ def create(public_key: nil, friendly_name: :unset, account_sid: :unset)
data: data
)

PublicKeyInstance.new(@version, payload)
PublicKeyInstance.new(@version, payload, )
end

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

##
Expand All @@ -177,7 +177,7 @@ def initialize(version, sid)
super(version)

# Path Solution
@solution = {sid: sid}
@solution = {sid: sid, }
@uri = "/Credentials/PublicKeys/#{@solution[:sid]}"
end

Expand All @@ -193,7 +193,7 @@ def fetch
params,
)

PublicKeyInstance.new(@version, payload, sid: @solution[:sid])
PublicKeyInstance.new(@version, payload, sid: @solution[:sid], )
end

##
Expand All @@ -202,15 +202,15 @@ def fetch
# to 64 characters.
# @return [PublicKeyInstance] Updated PublicKeyInstance
def update(friendly_name: :unset)
data = Twilio::Values.of({'FriendlyName' => friendly_name})
data = Twilio::Values.of({'FriendlyName' => friendly_name, })

payload = @version.update(
'POST',
@uri,
data: data,
)

PublicKeyInstance.new(@version, payload, sid: @solution[:sid])
PublicKeyInstance.new(@version, payload, sid: @solution[:sid], )
end

##
Expand Down Expand Up @@ -251,7 +251,7 @@ def initialize(version, payload, sid: nil)

# Context
@instance_context = nil
@params = {'sid' => sid || @properties['sid']}
@params = {'sid' => sid || @properties['sid'], }
end

##
Expand All @@ -260,7 +260,7 @@ def initialize(version, payload, sid: nil)
# @return [PublicKeyContext] PublicKeyContext for this PublicKeyInstance
def context
unless @instance_context
@instance_context = PublicKeyContext.new(@version, @params['sid'])
@instance_context = PublicKeyContext.new(@version, @params['sid'], )
end
@instance_context
end
Expand Down Expand Up @@ -314,7 +314,7 @@ def fetch
# to 64 characters.
# @return [PublicKeyInstance] Updated PublicKeyInstance
def update(friendly_name: :unset)
context.update(friendly_name: friendly_name)
context.update(friendly_name: friendly_name, )
end

##
Expand Down
Loading

0 comments on commit aa8862f

Please sign in to comment.