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

    Interface BucketPolicy_Rule

    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
    Index

    Properties

    "[customJson]"?: () => unknown
    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>
    $type: "nebius.storage.v1.BucketPolicy.Rule"
    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.