Class: Google::Apis::StorageV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb
Overview
A bucket/object IAM policy.
Defined Under Namespace
Classes: Binding
Instance Attribute Summary collapse
-
#bindings ⇒ Array<Google::Apis::StorageV1::Policy::Binding>
An association between a role, which comes with a set of permissions, and members who may assume that role.
-
#etag ⇒ String
HTTP 1.1 Entity tag for the policy.
-
#kind ⇒ String
The kind of item this is.
-
#resource_id ⇒ String
The ID of the resource to which this policy belongs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy
1231 1232 1233 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bindings ⇒ Array<Google::Apis::StorageV1::Policy::Binding>
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
1209 1210 1211 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1209 def bindings @bindings end |
#etag ⇒ String
HTTP 1.1 Entity tag for the policy.
Corresponds to the JSON property etag
1214 1215 1216 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1214 def etag @etag end |
#kind ⇒ 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
1220 1221 1222 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1220 def kind @kind end |
#resource_id ⇒ String
The ID of the resource to which this policy belongs. Will be of the form
buckets/bucket for buckets, and buckets/bucket/objects/object for objects. A
specific generation may be specified by appending #generationNumber to the end
of the object name, e.g. 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
1229 1230 1231 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1229 def resource_id @resource_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1236 1237 1238 1239 1240 1241 |
# File 'generated/google/apis/storage_v1/classes.rb', line 1236 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) end |