Class: Fog::OpenStack::Planning::Role

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/planning/openstack/models/role.rb

Instance Attribute Summary

Attributes inherited from Model

#project

Instance Method Summary collapse

Methods inherited from Model

#create, #destroy, #initialize, #save, #update

Constructor Details

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

Instance Method Details

#add_to_plan(plan_uuid) ⇒ Object



13
14
15
# File 'lib/fog/planning/openstack/models/role.rb', line 13

def add_to_plan(plan_uuid)
  service.add_role_to_plan(plan_uuid, uuid)
end

#remove_from_plan(plan_uuid) ⇒ Object



17
18
19
# File 'lib/fog/planning/openstack/models/role.rb', line 17

def remove_from_plan(plan_uuid)
  service.remove_role_from_plan(plan_uuid, uuid)
end