Sha256: 11a197f2085c0d9bfced90f690de591705cbc6abaf47d7693c3348ea510ccdf6

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

module ConohaApi
  class Client
    module Identity
      SERVICE = "identity"

      def identity_version
        get "", no_auth: true
      end

      def tokens
        request_json = {
          auth: {
            passwordCredentials: {
              username: @login,
              password: @password
            },
            tenantId: @tenant_id
          }
        }

        post "tokens", request_json, no_auth: true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conoha_api-0.1.0 lib/conoha_api/client/identity.rb