Sha256: 6e73982dda43981ca5f7f58b91c1f782b666d66b4f305b88056a8d729cb8d71e
Contents?: true
Size: 1.06 KB
Versions: 19
Compression:
Stored size: 1.06 KB
Contents
module Fog module Identity class OpenStack class V3 class Real def list_role_assignments(options = {}) # Backwards compatibility name mapping, also serves as single pane of glass, since keystone broke # consistency in naming of options, just for this one API call name_mapping = { :group_id => 'group.id', :role_id => 'role.id', :domain_id => 'scope.domain.id', :project_id => 'scope.project.id', :user_id => 'user.id', } name_mapping.keys.each do |key| if (opt = options.delete(key)) options[name_mapping[key]] = opt end end request( :expects => [200], :method => 'GET', :path => "role_assignments", :query => options ) end end class Mock def list_role_assignments(options = {}) end end end end end end
Version data entries
19 entries across 19 versions & 3 rubygems