mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[AWS|Glacier] Add notification configuration to model
This commit is contained in:
parent
04fb3298ae
commit
dd37b52c1f
1 changed files with 9 additions and 1 deletions
|
@ -28,9 +28,17 @@ module Fog
|
||||||
@jobs ||= Fog::AWS::Glacier::Jobs.new(:vault => self, :connection => connection)
|
@jobs ||= Fog::AWS::Glacier::Jobs.new(:vault => self, :connection => connection)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def set_notification_configuration(topic, events)
|
||||||
|
connection.set_vault_notification_configuration(id, topic, events)
|
||||||
|
end
|
||||||
|
|
||||||
|
def delete_notification_configuration
|
||||||
|
connection.delete_vault_notification_configuration
|
||||||
|
end
|
||||||
|
|
||||||
def save
|
def save
|
||||||
requires :id
|
requires :id
|
||||||
data = connection.create_vault(id)
|
connection.create_vault(id)
|
||||||
reload
|
reload
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue