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

    Interface RetryOptions

    Controls the timeout and retry policy for one logical request.

    All values are milliseconds except RetryOptions.RetryCount. RetryOptions.AuthTimeout limits the complete request. The default is 15 minutes. A gRPC deadline in the same call-options object can end the request earlier.

    import { Metadata } from '@grpc/grpc-js';
    import {
    BucketService,
    GetBucketRequest,
    } from '@nebius/js-sdk/api/nebius/storage/v1/index';

    async function getBucket(client: BucketService) {
    const call = client.get(
    GetBucketRequest.create({ id: 'bucket-id' }),
    new Metadata(),
    {
    deadline: new Date(Date.now() + 30_000),
    RequestTimeout: 20_000,
    PerRetryTimeout: 5_000,
    RetryCount: 2,
    },
    );
    return call.result;
    }
    interface RetryOptions {
        authorizationDisable?: boolean;
        authorizationOptions?: AuthorizationOptions;
        AuthTimeout?: number;
        PerRetryTimeout?: number;
        RequestTimeout?: number;
        resetMask?: string;
        retryBackoff?: (attempt: number) => number;
        RetryCount?: number;
        selectMask?: string;
    }

    Hierarchy (View Summary)

    Index
    authorizationDisable?: boolean

    Disables SDK authorization for this call.

    authorizationOptions?: AuthorizationOptions

    Controls credential renewal for this call.

    AuthTimeout?: number

    Limits authorization and request execution. The default is 15 minutes.

    PerRetryTimeout?: number

    Limits each gRPC attempt.

    The default is 20,000 milliseconds. The overall deadline and RetryOptions.RequestTimeout can shorten an attempt.

    RequestTimeout?: number

    Limits one authenticated request window.

    The default is 60,000 milliseconds.

    resetMask?: string

    Replaces automatic reset-mask discovery for this call.

    retryBackoff?: (attempt: number) => number

    Delays each retry in milliseconds. The attempt number starts at one.

    Type Declaration

      • (attempt: number): number
      • Delays each retry in milliseconds. The attempt number starts at one.

        Parameters

        • attempt: number

        Returns number

    RetryCount?: number

    Sets the number of retries after the first attempt.

    The default is 2, for three total attempts. Set this value to 0 to make only one attempt.

    selectMask?: string

    Adds an explicit select mask to this call.