Sha256: abbaf7518d9f2de7632b9a978562f55d71ac6649a947ebc1d6ed0c68808396fc

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 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 "/v2.0/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.2.0 lib/conoha_api/client/identity.rb