Class: Fog::Network::OpenStack::RbacPolicy
Instance Attribute Summary
#project
Instance Method Summary
collapse
#initialize, #save
Instance Method Details
#create ⇒ Object
14
15
16
17
18
|
# File 'lib/fog/network/openstack/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/network/openstack/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/network/openstack/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
|