Class: Fog::Network::OpenStack::RbacPolicy
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save
Instance Method Details
#create ⇒ Object
15
16
17
18
19
|
# File 'lib/fog/network/openstack/models/rbac_policy.rb', line 15
def create
requires :object_type, :object_id, :target_tenant, :action
merge_attributes(service.create_rbac_policy(attributes).body['rbac_policy'])
self
end
|
#destroy ⇒ Object
27
28
29
30
31
|
# File 'lib/fog/network/openstack/models/rbac_policy.rb', line 27
def destroy
requires :id
service.delete_rbac_policy(id)
true
end
|
#update ⇒ Object
21
22
23
24
25
|
# File 'lib/fog/network/openstack/models/rbac_policy.rb', line 21
def update
requires :id, :target_tenant
merge_attributes(service.update_rbac_policy(id, attributes).body['rbac_policy'])
self
end
|