Parent

Class/Module Index [+]

Quicksearch

Fog::Identity::OpenStack::Role

Public Instance Methods

add_to_user(user, tenant) click to toggle source
# File lib/fog/openstack/models/identity/role.rb, line 23
def add_to_user(user, tenant)
  add_remove_to_user(user, tenant, :add)
end
destroy() click to toggle source
# File lib/fog/openstack/models/identity/role.rb, line 17
def destroy
  requires :id
  service.delete_role(id)
  true
end
remove_to_user(user, tenant) click to toggle source
# File lib/fog/openstack/models/identity/role.rb, line 27
def remove_to_user(user, tenant)
  add_remove_to_user(user, tenant, :remove)
end
save() click to toggle source
# File lib/fog/openstack/models/identity/role.rb, line 10
def save
  requires :name
  data = service.create_role(name)
  merge_attributes(data.body['role'])
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.