Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Policy

import type { Policy } from "https://googleapis.deno.dev/v1/storage:v1.ts";

A bucket/object/managedFolder IAM policy.

interface Policy {
bindings?: {
condition?: Expr;
members?: string[];
role?: string;
}
[]
;
etag?: Uint8Array;
kind?: string;
resourceId?: string;
version?: number;
}

§Properties

§
bindings?: {
condition?: Expr;
members?: string[];
role?: string;
}
[]
[src]

An association between a role, which comes with a set of permissions, and members who may assume that role.

§
etag?: Uint8Array
[src]

HTTP 1.1 Entity tag for the policy.

§
kind?: string
[src]

The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.

§
resourceId?: string
[src]

The ID of the resource to which this policy belongs. Will be of the form projects//buckets/bucket for buckets, projects//buckets/bucket/objects/object for objects, and projects//buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects//buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.

§
version?: number
[src]

The IAM policy format version.