class Google::Cloud::Storage::Policy


for more information.
and [Overview of Cloud IAM Conditions](cloud.google.com/iam/docs/conditions-overview)
See [Understanding policies](cloud.google.com/iam/docs/policies)
constrains the role binding via context-based and attribute-based rules.
* 3 - Introduces the condition field in the role binding, which further
role to one or more members. Does not support conditional bindings.
* 1 - The first version of Cloud IAM policy schema. Supports binding one
The following policy versions are valid:
be used for any purposes other than policy syntax schema control.
that is unsupported by earlier versions. This field is not intended to
The newer version may contain role bindings with the newer syntax schema
of the policy contains a specific syntax schema that can be used by bindings.
@attr [Integer] version The syntax schema version of the policy. Each version
match.
the last request. The policy will be written only if the ‘etag` values
@attr [String] etag Used to verify whether the policy has changed since
Buckets: setIamPolicy
@see cloud.google.com/storage/docs/json_api/v1/buckets/setIamPolicy<br>policies
@see cloud.google.com/iam/docs/managing-policies Managing
{Google::Cloud::Storage::Bucket#policy=}.
{Google::Cloud::Storage::Bucket#policy} and
modified policy to the service. See
from the service, then modify the policy locally, and then write the
When you update a policy, first read the policy (and its current `etag`)
policy. It writes the policy only if the `etag` values match.
value in the request with the existing `etag` value associated with the
make a request to with an `etag` value, Cloud IAM compares the `etag`
verify whether the policy has changed since the last request. When you
{Google::Cloud::Storage::Policy#etag} property, which is used to
IAM solves this problem with the
a conflict if two or more processes attempt the sequence simultaneously.
and then send the modified data for writing. This pattern may result in
is to read the current data from the service, update the data locally,
A common pattern for updating a resource’s metadata, such as its Policy,
{Google::Cloud::Storage::PolicyV3}.
subclasses {Google::Cloud::Storage::PolicyV1} and
An abstract Cloud IAM Policy for the Cloud Storage service. See concrete
# Policy
#

def initialize etag, version

Other tags:
    Private: - Creates a Policy object.
def initialize etag, version
  @etag = etag
  @version = version
end