Class: Fog::Network::OpenStack::RbacPolicy

Inherits:
OpenStack::Model show all
Defined in:
lib/fog/network/openstack/models/rbac_policy.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Model

#project

Instance Method Summary collapse

Methods inherited from OpenStack::Model

#initialize, #save

Constructor Details

This class inherits a constructor from Fog::OpenStack::Model

Instance Method Details

#createObject



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

#destroyObject



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

#updateObject



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