Sha256: 3a43ef1397b6382456d925d41d5cd711f7c675e0bd3d00979a5a06df00905112

Contents?: true

Size: 717 Bytes

Versions: 11

Compression:

Stored size: 717 Bytes

Contents

module Fog
  module Identity
    class OpenStack
      class Real
        def list_roles_for_user_on_tenant(tenant_id, user_id)
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => "tenants/#{tenant_id}/users/#{user_id}/roles"
          )
        end # def list_roles_for_user_on_tenant
      end # class Real

      class Mock
        def list_roles_for_user_on_tenant(tenant_id, user_id)
          Excon::Response.new(
            :body   => { 'roles' => self.data[:roles].values },
            :status => 200
          )
        end # def list_roles_for_user_on_tenant
      end # class Mock
    end # class OpenStack
  end # module Identity
end # module Fog

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-nirvanix-1.8.1 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-parser-fix-1.6.1 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-test-again-1.6.0 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-parser-fix-1.6.0 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-sgonyea-1.8.1 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-1.8.0 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-1.7.0 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb
fog-1.6.0 lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb