version property
Specifies the format of the policy.
Valid values are 0
, 1
, and 3
. Requests that specify an invalid value
are rejected. Any operation that affects conditional role bindings must
specify version 3
. This requirement applies to the following operations:
- Getting a policy that includes a conditional role binding * Adding a
conditional role binding to a policy * Changing a conditional role binding
in a policy * Removing any role binding, with or without a condition, from
a policy that includes conditions Important: If you use IAM
Conditions, you must include the
etag
field whenever you callsetIamPolicy
. If you omit this field, then IAM allows you to overwrite a version3
policy with a version1
policy, and all of the conditions in the version3
policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the IAM documentation.
Implementation
core.int? version;