class Google::Apis::StorageV1::Policy
A bucket/object IAM policy.
Attributes
An association between a role, which comes with a set of permissions, and members who may assume that role. Corresponds to the JSON property `bindings` @return [Array<Google::Apis::StorageV1::Policy::Binding>]
HTTP 1.1 Entity tag for the policy. Corresponds to the JSON property `etag` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
The kind of item this is. For policies, this is always storage#policy. This field is ignored on input. Corresponds to the JSON property `kind` @return [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. Corresponds to the JSON property `resourceId` @return [String]
The IAM policy format version. Corresponds to the JSON property `version` @return [Fixnum]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 1875 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 1880 def update!(**args) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @resource_id = args[:resource_id] if args.key?(:resource_id) @version = args[:version] if args.key?(:version) end