Class: Fog::Openstack::Planning::Role

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Role

Returns a new instance of Role.



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

def initialize(attributes)
  # Old 'connection' is renamed as service and should be used instead
  prepare_service_value(attributes)
  super
end

Instance Method Details

#add_to_plan(plan_uuid) ⇒ Object



19
20
21
# File 'lib/fog/openstack/models/planning/role.rb', line 19

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

#remove_from_plan(plan_uuid) ⇒ Object



23
24
25
# File 'lib/fog/openstack/models/planning/role.rb', line 23

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