Sha256: cce07dd3e373f3edce3ad3581108889462430943e0bf9e52554767fce96d0309

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

module Fog
  module Identity
    class OpenStack
      class Real
        def check_token(token_id, tenant_id=nil)
          request(
            :expects  => [200, 203],
            :method   => 'HEAD',
            :path     => "tokens/#{token_id}"+(tenant_id ? "?belongsTo=#{tenant_id}" : '')
          )
        end
      end

      class Mock
        def check_token(token_id, tenant_id=nil)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.30.0 lib/fog/openstack/requests/identity/check_token.rb
fog-1.29.0 lib/fog/openstack/requests/identity/check_token.rb