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

    Interface BucketPolicy_Rule

    Represents the nebius.storage.v1.BucketPolicy.Rule protobuf message.

    interface BucketPolicy_Rule {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.storage.v1.BucketPolicy.Rule";
        paths: string[];
        roles: string[];
        subject?:
            | { $case: "groupId"; groupId: string }
            | { $case: "anonymous"; anonymous: BucketPolicy_Rule_AnonymousAccess };
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      Represents the nebius.storage.v1.BucketPolicy.Rule protobuf message.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • Represents the nebius.storage.v1.BucketPolicy.Rule protobuf message.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.storage.v1.BucketPolicy.Rule"

    Contains the fully qualified protobuf type name.

    paths: string[]

    A list of paths each of which is either a full object key or a prefix ending with a single "" wildcard character. A rule is only applied to objects matching any of paths. If there is a path equal to "", a rule applies to a whole bucket.

    roles: string[]

    A set of roles which a subject will have. All storage.* roles are supported.

    subject?:
        | { $case: "groupId"; groupId: string }
        | { $case: "anonymous"; anonymous: BucketPolicy_Rule_AnonymousAccess }

    A subject of a rule.

    Type Declaration