Class: Fog::OpenStack::Network::IpsecPolicy
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Network::IpsecPolicy
show all
- Defined in:
- lib/fog/openstack/network/models/ipsec_policy.rb
Instance Attribute Summary
Attributes inherited from Model
#project
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #save
Instance Method Details
#create ⇒ Object
21
22
23
24
25
26
27
|
# File 'lib/fog/openstack/network/models/ipsec_policy.rb', line 21
def create
requires :name, :auth_algorithm, :encryption_algorithm,
:lifetime, :pfs, :transform_protocol,
:encapsulation_mode
merge_attributes(service.create_ipsec_policy(attributes).body['ipsecpolicy'])
self
end
|
#destroy ⇒ Object
37
38
39
40
41
|
# File 'lib/fog/openstack/network/models/ipsec_policy.rb', line 37
def destroy
requires :id
service.delete_ipsec_policy(id)
true
end
|
#update ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/fog/openstack/network/models/ipsec_policy.rb', line 29
def update
requires :id, :name, :auth_algorithm, :encryption_algorithm,
:lifetime, :pfs, :transform_protocol,
:encapsulation_mode
merge_attributes(service.update_ipsec_policy(id, attributes).body['ipsecpolicy'])
self
end
|