mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
SNS SetTopicAttributes
This commit is contained in:
parent
5cd1285575
commit
a9b57c9173
3 changed files with 51 additions and 0 deletions
24
lib/fog/aws/parsers/sns/set_topic_attributes.rb
Normal file
24
lib/fog/aws/parsers/sns/set_topic_attributes.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
module Fog
|
||||
module Parsers
|
||||
module AWS
|
||||
module SNS
|
||||
|
||||
class SetTopicAttributes < Fog::Parsers::Base
|
||||
|
||||
def reset
|
||||
@response = {}
|
||||
end
|
||||
|
||||
def end_element(name)
|
||||
case name
|
||||
when 'RequestId'
|
||||
@response[name] = @value
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
26
lib/fog/aws/requests/sns/set_topic_attributes.rb
Normal file
26
lib/fog/aws/requests/sns/set_topic_attributes.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
module Fog
|
||||
module AWS
|
||||
class SNS
|
||||
class Real
|
||||
|
||||
require 'fog/aws/parsers/sns/set_topic_attributes'
|
||||
|
||||
def set_topic_attributes(options = {})
|
||||
request({
|
||||
'Action' => 'SetTopicAttributes',
|
||||
:parser => Fog::Parsers::AWS::SNS::SetTopicAttributes.new
|
||||
}.merge!(options))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Mock
|
||||
|
||||
def set_topic_attributes(options = {})
|
||||
Fog::Mock.not_implemented
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -15,6 +15,7 @@ module Fog
|
|||
request :list_topics
|
||||
request :publish
|
||||
request :remove_permission
|
||||
request :set_topic_attributes
|
||||
|
||||
class Mock
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue