Class: Fog::AWS::Glacier::Vault

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/aws/models/glacier/vault.rb

Instance Method Summary collapse

Instance Method Details

#archivesObject



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_configurationObject



32
33
34
# File 'lib/fog/aws/models/glacier/vault.rb', line 32

def delete_notification_configuration
  service.delete_vault_notification_configuration(id)
end

#destroyObject



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

Returns:

  • (Boolean)


15
16
17
18
# File 'lib/fog/aws/models/glacier/vault.rb', line 15

def ready?
  # Glacier requests are synchronous
  true
end

#saveObject



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