public interface PolicyOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getBindings(int index)
public abstract Binding getBindings(int index)
Associates a list of members
to a role
. Optionally may specify a
condition
that determines when binding is in effect.
bindings
with no members will result in an error.
repeated .google.iam.v1.Binding bindings = 4;
Name | Description |
index | int |
Type | Description |
Binding |
getBindingsCount()
public abstract int getBindingsCount()
Associates a list of members
to a role
. Optionally may specify a
condition
that determines when binding is in effect.
bindings
with no members will result in an error.
repeated .google.iam.v1.Binding bindings = 4;
Type | Description |
int |
getBindingsList()
public abstract List<Binding> getBindingsList()
Associates a list of members
to a role
. Optionally may specify a
condition
that determines when binding is in effect.
bindings
with no members will result in an error.
repeated .google.iam.v1.Binding bindings = 4;
Type | Description |
List<Binding> |
getBindingsOrBuilder(int index)
public abstract BindingOrBuilder getBindingsOrBuilder(int index)
Associates a list of members
to a role
. Optionally may specify a
condition
that determines when binding is in effect.
bindings
with no members will result in an error.
repeated .google.iam.v1.Binding bindings = 4;
Name | Description |
index | int |
Type | Description |
BindingOrBuilder |
getBindingsOrBuilderList()
public abstract List<? extends BindingOrBuilder> getBindingsOrBuilderList()
Associates a list of members
to a role
. Optionally may specify a
condition
that determines when binding is in effect.
bindings
with no members will result in an error.
repeated .google.iam.v1.Binding bindings = 4;
Type | Description |
List<? extends com.google.iam.v1.BindingOrBuilder> |
getEtag()
public abstract ByteString getEtag()
etag
is used for optimistic concurrency control as a way to help
prevent simultaneous updates of a policy from overwriting each other.
It is strongly suggested that systems make use of the etag
in the
read-modify-write cycle to perform policy updates in order to avoid race
conditions: An etag
is returned in the response to getIamPolicy
, and
systems are expected to put that etag in the request to setIamPolicy
to
ensure that their change will be applied to the same version of the policy.
If no etag
is provided in the call to setIamPolicy
, then the existing
policy is overwritten. Due to blind-set semantics of an etag-less policy,
'setIamPolicy' will not fail even if the incoming policy version does not
meet the requirements for modifying the stored policy.
bytes etag = 3;
Type | Description |
ByteString | The etag. |
getVersion()
public abstract int getVersion()
Specifies the format of the policy.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Operations affecting conditional bindings must specify version 3. This can
be either setting a conditional policy, modifying a conditional binding,
or removing a binding (conditional or unconditional) from the stored
conditional policy.
Operations on non-conditional policies may specify any valid value or
leave the field unset.
If no etag is provided in the call to setIamPolicy
, version compliance
checks against the stored policy is skipped.
int32 version = 1;
Type | Description |
int | The version. |