Class: Fog::AWS::Glacier::Vault
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::Glacier::Vault
- Defined in:
- lib/fog/aws/models/glacier/vault.rb
Instance Method Summary collapse
- #archives ⇒ Object
- #delete_notification_configuration ⇒ Object
- #destroy ⇒ Object
- #jobs(filters = {}) ⇒ Object
- #ready? ⇒ Boolean
- #save ⇒ Object
- #set_notification_configuration(topic, events) ⇒ Object
Instance Method Details
#archives ⇒ Object
21 22 23 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 21 def archives @archives ||= Fog::AWS::Glacier::Archives.new(:vault => self, :service => service) end |
#delete_notification_configuration ⇒ Object
33 34 35 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 33 def delete_notification_configuration service.delete_vault_notification_configuration(id) end |
#destroy ⇒ Object
43 44 45 46 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 43 def destroy requires :id service.delete_vault(id) end |
#jobs(filters = {}) ⇒ Object
25 26 27 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 25 def jobs(filters={}) Fog::AWS::Glacier::Jobs.new(:vault => self, :service => service, :filters => filters) end |
#ready? ⇒ Boolean
16 17 18 19 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 16 def ready? # Glacier requests are synchronous true end |
#save ⇒ Object
37 38 39 40 41 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 37 def save requires :id service.create_vault(id) reload end |
#set_notification_configuration(topic, events) ⇒ Object
29 30 31 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 29 def set_notification_configuration(topic, events) service.set_vault_notification_configuration(id, topic, events) end |