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

Inherits:
Model
  • Object
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

Constructor Details

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

Instance Method Details

#createObject



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

#destroyObject



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

#updateObject



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