Policy class

A bucket/object IAM policy.

Constructors

Policy()
Policy.fromJson(Map _json)

Properties

bindings List<PolicyBindings>
An association between a role, which comes with a set of permissions, and members who may assume that role.
read / write
etag String
HTTP 1.1 Entity tag for the policy.
read / write
etagAsBytes List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
kind String
The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
read / write
resourceId String
The ID of the resource to which this policy belongs. Will be of the form projects//buckets/bucket for buckets, and projects//buckets/bucket/objects/object for objects. 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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
version int
The IAM policy format version.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited