Class: Fog::AWS::Glacier::Vault
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::Glacier::Vault
show all
- Defined in:
- lib/fog/aws/models/glacier/vault.rb
Instance Attribute Summary
Attributes inherited from Model
#collection, #service
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
#connection, #connection=, #prepare_service_value
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
#archives ⇒ Object
23
24
25
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 23
def archives
@archives ||= Fog::AWS::Glacier::Archives.new(:vault => self, :service => service)
end
|
#delete_notification_configuration ⇒ Object
35
36
37
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 35
def delete_notification_configuration
service.delete_vault_notification_configuration
end
|
#destroy ⇒ Object
45
46
47
48
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 45
def destroy
requires :id
service.delete_vault(id)
end
|
#jobs(filters = {}) ⇒ Object
27
28
29
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 27
def jobs(filters={})
Fog::AWS::Glacier::Jobs.new(:vault => self, :service => service, :filters => filters)
end
|
#ready? ⇒ Boolean
18
19
20
21
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 18
def ready?
true
end
|
#save ⇒ Object
39
40
41
42
43
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 39
def save
requires :id
service.create_vault(id)
reload
end
|
#set_notification_configuration(topic, events) ⇒ Object
31
32
33
|
# File 'lib/fog/aws/models/glacier/vault.rb', line 31
def set_notification_configuration(topic, events)
service.set_vault_notification_configuration(id, topic, events)
end
|