Class Policy
A bucket/object IAM policy.
Inheritance
object
Policy
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Storage.v1.Data
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class Policy : IDirectResponseSchema
Properties
Bindings
An association between a role, which comes with a set of permissions, and members who may assume that role.
Declaration
[JsonProperty("bindings")]
public virtual IList<Policy.BindingsData> Bindings { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<T><Policy.BindingsData> |
ETag
HTTP 1.1 Entity tag for the policy.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
ResourceId
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.
Declaration
[JsonProperty("resourceId")]
public virtual string ResourceId { get; set; }
Property Value
Type | Description |
---|---|
string |
Version
The IAM policy format version.
Declaration
[JsonProperty("version")]
public virtual int? Version { get; set; }
Property Value
Type | Description |
---|---|
int? |