Sha256: 2ab0dca3c8295ad4254a473d7afb686b47c87a9a9f7d3289c65a970a7a863cff
Contents?: true
Size: 1.06 KB
Versions: 39
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
39 entries across 37 versions & 3 rubygems