Class: Fog::OpenStack::Network::IkePolicy
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Network::IkePolicy
show all
- Defined in:
- lib/fog/openstack/network/models/ike_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
|
# File 'lib/fog/openstack/network/models/ike_policy.rb', line 21
def create
requires :name, :auth_algorithm, :encryption_algorithm, :ike_version,
:lifetime, :pfs, :phase1_negotiation_mode
merge_attributes(service.create_ike_policy(attributes).body['ikepolicy'])
self
end
|
#destroy ⇒ Object
35
36
37
38
39
|
# File 'lib/fog/openstack/network/models/ike_policy.rb', line 35
def destroy
requires :id
service.delete_ike_policy(id)
true
end
|
#update ⇒ Object
28
29
30
31
32
33
|
# File 'lib/fog/openstack/network/models/ike_policy.rb', line 28
def update
requires :id, :name, :auth_algorithm, :encryption_algorithm, :ike_version,
:lifetime, :pfs, :phase1_negotiation_mode
merge_attributes(service.update_ike_policy(id, attributes).body['ikepolicy'])
self
end
|