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
20 21 22 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 20 def archives @archives ||= Fog::AWS::Glacier::Archives.new(:vault => self, :service => service) end |
#delete_notification_configuration ⇒ Object
32 33 34 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 32 def delete_notification_configuration service.delete_vault_notification_configuration(id) end |
#destroy ⇒ Object
42 43 44 45 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 42 def destroy requires :id service.delete_vault(id) end |
#jobs(filters = {}) ⇒ Object
24 25 26 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 24 def jobs(filters={}) Fog::AWS::Glacier::Jobs.new(:vault => self, :service => service, :filters => filters) end |
#ready? ⇒ Boolean
15 16 17 18 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 15 def ready? # Glacier requests are synchronous true end |
#save ⇒ Object
36 37 38 39 40 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 36 def save requires :id service.create_vault(id) reload end |
#set_notification_configuration(topic, events) ⇒ Object
28 29 30 |
# File 'lib/fog/aws/models/glacier/vault.rb', line 28 def set_notification_configuration(topic, events) service.set_vault_notification_configuration(id, topic, events) end |