@nebius/js-sdk - v0.2.54
    Preparing search index...

    Class Basic

    Resolves one exact service ID or one service-ID prefix.

    A trailing * in id selects prefix matching. Any other * is treated as normal text.

    import { SDK } from '@nebius/js-sdk';
    import { Basic } from '@nebius/js-sdk/runtime/resolver';

    const sdk = new SDK({
    resolver: new Basic('nebius.compute.v1.*', 'localhost:8443'),
    userAgentPrefix: 'example-application/1.0',
    });

    Implements

    Indexable

    • [key: symbol]: (() => string) | (() => object)

      Resolves one exact service ID or one service-ID prefix.

      A trailing * in id selects prefix matching. Any other * is treated as normal text.

      • () => string
          • (): string
          • Resolves one exact service ID or one service-ID prefix.

            A trailing * in id selects prefix matching. Any other * is treated as normal text.

            Returns string

      • () => object
          • (): object
          • Returns a JSON-safe value for logs.

            Returns object

    Index
    • Creates a resolver for one exact ID or ID prefix.

      Parameters

      • id: string

        A full service ID, or a prefix that ends with *.

      • address: string

        The gRPC target returned for a match.

      Returns Basic

    • Resolves a service ID to an address.

      Parameters

      • serviceId: string
      • OptionalapiServiceName: string

      Returns string