Class: Fog::OpenStack::Network::RbacPolicy
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::OpenStack::Network::RbacPolicy
show all
- Defined in:
- lib/fog/openstack/network/models/rbac_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
14
15
16
17
18
|
# File 'lib/fog/openstack/network/models/rbac_policy.rb', line 14
def create
requires :object_type, :object_id, :target_tenant, :action
merge_attributes(service.create_rbac_policy(attributes).body['rbac_policy'])
self
end
|
#destroy ⇒ Object
26
27
28
29
30
|
# File 'lib/fog/openstack/network/models/rbac_policy.rb', line 26
def destroy
requires :id
service.delete_rbac_policy(id)
true
end
|
#update ⇒ Object
20
21
22
23
24
|
# File 'lib/fog/openstack/network/models/rbac_policy.rb', line 20
def update
requires :id, :target_tenant
merge_attributes(service.update_rbac_policy(id, attributes).body['rbac_policy'])
self
end
|