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



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_configurationObject



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

def delete_notification_configuration
  service.delete_vault_notification_configuration(id)
end

#destroyObject



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

Returns:

  • (Boolean)


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

def ready?
  # Glacier requests are synchronous
  true
end

#saveObject



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