Sha256: 2f563925f192f8b68aac4ee85397d4abb6253dc993f027f88a38b6c229c09828

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

module Fog
  module Identity
    class HuaweiCloud
      class V2
        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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/identity/huaweicloud/v2/requests/check_token.rb
fog-huaweicloud-0.0.2 lib/fog/identity/huaweicloud/v2/requests/check_token.rb
fog-huaweicloud-0.1.3 lib/fog/identity/huaweicloud/v2/requests/check_token.rb
fog-huaweicloud-0.1.2 lib/fog/identity/huaweicloud/v2/requests/check_token.rb