docs: update generated docs (#981)
diff --git a/docs/dyn/pubsub_v1.projects.snapshots.html b/docs/dyn/pubsub_v1.projects.snapshots.html
index 4512351..017b595 100644
--- a/docs/dyn/pubsub_v1.projects.snapshots.html
+++ b/docs/dyn/pubsub_v1.projects.snapshots.html
@@ -79,7 +79,7 @@
<p class="firstline">Creates a snapshot from the requested subscription. Snapshots are used in</p>
<p class="toc_element">
<code><a href="#delete">delete(snapshot, x__xgafv=None)</a></code></p>
-<p class="firstline">Removes an existing snapshot. Snapshots are used in</p>
+<p class="firstline">Removes an existing snapshot. Snapshots are used in [Seek]</p>
<p class="toc_element">
<code><a href="#get">get(snapshot, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the configuration details of a snapshot. Snapshots are used in</p>
@@ -88,7 +88,7 @@
<p class="firstline">Gets the access control policy for a resource.</p>
<p class="toc_element">
<code><a href="#list">list(project, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
-<p class="firstline">Lists the existing snapshots. Snapshots are used in</p>
+<p class="firstline">Lists the existing snapshots. Snapshots are used in [Seek](</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
@@ -105,21 +105,19 @@
<div class="method">
<code class="details" id="create">create(name, body=None, x__xgafv=None)</code>
<pre>Creates a snapshot from the requested subscription. Snapshots are used in
-<a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
-operations, which allow
-you to manage message acknowledgments in bulk. That is, you can set the
-acknowledgment state of messages in an existing subscription to the state
-captured by a snapshot.
-<br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
+[Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
+which allow you to manage message acknowledgments in bulk. That is, you can
+set the acknowledgment state of messages in an existing subscription to the
+state captured by a snapshot.
+If the snapshot already exists, returns `ALREADY_EXISTS`.
If the requested subscription doesn't exist, returns `NOT_FOUND`.
If the backlog in the subscription is too old -- and the resulting snapshot
would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
See also the `Snapshot.expire_time` field. If the name is not provided in
the request, the server will assign a random
name for this snapshot on the same project as the subscription, conforming
-to the
-[resource name
-format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
+to the [resource name format]
+(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Snapshot object. Note that for
REST API requests, you must specify a name in the request.
@@ -158,14 +156,12 @@
An object of the form:
{ # A snapshot resource. Snapshots are used in
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
- # operations, which allow
- # you to manage message acknowledgments in bulk. That is, you can set the
- # acknowledgment state of messages in an existing subscription to the state
- # captured by a snapshot.
- "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
- "labels": { # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
- # managing labels</a>.
+ # [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
+ # operations, which allow you to manage message acknowledgments in bulk. That
+ # is, you can set the acknowledgment state of messages in an existing
+ # subscription to the state captured by a snapshot.
+ "labels": { # See [Creating and managing labels]
+ # (https://cloud.google.com/pubsub/docs/labels).
"a_key": "A String",
},
"expireTime": "A String", # The snapshot is guaranteed to exist up until this time.
@@ -179,17 +175,17 @@
# exists -- will expire in 4 days. The service will refuse to create a
# snapshot that would expire in less than 1 hour after creation.
"name": "A String", # The name of the snapshot.
+ "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(snapshot, x__xgafv=None)</code>
- <pre>Removes an existing snapshot. Snapshots are used in
-<a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
-operations, which allow
-you to manage message acknowledgments in bulk. That is, you can set the
-acknowledgment state of messages in an existing subscription to the state
-captured by a snapshot.<br><br>
+ <pre>Removes an existing snapshot. Snapshots are used in [Seek]
+(https://cloud.google.com/pubsub/docs/replay-overview) operations, which
+allow you to manage message acknowledgments in bulk. That is, you can set
+the acknowledgment state of messages in an existing subscription to the
+state captured by a snapshot.
When the snapshot is deleted, all messages retained in the snapshot
are immediately dropped. After a snapshot is deleted, a new one may be
created with the same name, but the new one has no association with the old
@@ -238,14 +234,12 @@
An object of the form:
{ # A snapshot resource. Snapshots are used in
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
- # operations, which allow
- # you to manage message acknowledgments in bulk. That is, you can set the
- # acknowledgment state of messages in an existing subscription to the state
- # captured by a snapshot.
- "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
- "labels": { # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
- # managing labels</a>.
+ # [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
+ # operations, which allow you to manage message acknowledgments in bulk. That
+ # is, you can set the acknowledgment state of messages in an existing
+ # subscription to the state captured by a snapshot.
+ "labels": { # See [Creating and managing labels]
+ # (https://cloud.google.com/pubsub/docs/labels).
"a_key": "A String",
},
"expireTime": "A String", # The snapshot is guaranteed to exist up until this time.
@@ -259,6 +253,7 @@
# exists -- will expire in 4 days. The service will refuse to create a
# snapshot that would expire in less than 1 hour after creation.
"name": "A String", # The name of the snapshot.
+ "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
}</pre>
</div>
@@ -358,6 +353,42 @@
#
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
+ "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
+ "etag": "A String", # `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.
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
"bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines how and when the `bindings` are applied. Each
# of the `bindings` must contain at least one member.
@@ -409,11 +440,13 @@
"title": "A String", # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
- "description": "A String", # Optional. Description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
"expression": "A String", # Textual representation of an expression in Common Expression Language
# syntax.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
},
+ "role": "A String", # Role that is assigned to `members`.
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -459,57 +492,18 @@
#
"A String",
],
- "role": "A String", # Role that is assigned to `members`.
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
},
],
- "etag": "A String", # `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.
- #
- # **Important:** If you use IAM Conditions, you must include the `etag` field
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` policy are lost.
- "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(project, pageToken=None, pageSize=None, x__xgafv=None)</code>
- <pre>Lists the existing snapshots. Snapshots are used in
-<a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
-operations, which allow
-you to manage message acknowledgments in bulk. That is, you can set the
-acknowledgment state of messages in an existing subscription to the state
-captured by a snapshot.
+ <pre>Lists the existing snapshots. Snapshots are used in [Seek](
+https://cloud.google.com/pubsub/docs/replay-overview) operations, which
+allow you to manage message acknowledgments in bulk. That is, you can set
+the acknowledgment state of messages in an existing subscription to the
+state captured by a snapshot.
Args:
project: string, Required. The name of the project in which to list snapshots.
@@ -531,14 +525,12 @@
# request; this value should be passed in a new `ListSnapshotsRequest`.
"snapshots": [ # The resulting snapshots.
{ # A snapshot resource. Snapshots are used in
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
- # operations, which allow
- # you to manage message acknowledgments in bulk. That is, you can set the
- # acknowledgment state of messages in an existing subscription to the state
- # captured by a snapshot.
- "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
- "labels": { # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
- # managing labels</a>.
+ # [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
+ # operations, which allow you to manage message acknowledgments in bulk. That
+ # is, you can set the acknowledgment state of messages in an existing
+ # subscription to the state captured by a snapshot.
+ "labels": { # See [Creating and managing labels]
+ # (https://cloud.google.com/pubsub/docs/labels).
"a_key": "A String",
},
"expireTime": "A String", # The snapshot is guaranteed to exist up until this time.
@@ -552,6 +544,7 @@
# exists -- will expire in 4 days. The service will refuse to create a
# snapshot that would expire in less than 1 hour after creation.
"name": "A String", # The name of the snapshot.
+ "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
},
],
}</pre>
@@ -587,14 +580,12 @@
{ # Request for the UpdateSnapshot method.
"snapshot": { # A snapshot resource. Snapshots are used in # Required. The updated snapshot object.
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
- # operations, which allow
- # you to manage message acknowledgments in bulk. That is, you can set the
- # acknowledgment state of messages in an existing subscription to the state
- # captured by a snapshot.
- "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
- "labels": { # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
- # managing labels</a>.
+ # [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
+ # operations, which allow you to manage message acknowledgments in bulk. That
+ # is, you can set the acknowledgment state of messages in an existing
+ # subscription to the state captured by a snapshot.
+ "labels": { # See [Creating and managing labels]
+ # (https://cloud.google.com/pubsub/docs/labels).
"a_key": "A String",
},
"expireTime": "A String", # The snapshot is guaranteed to exist up until this time.
@@ -608,6 +599,7 @@
# exists -- will expire in 4 days. The service will refuse to create a
# snapshot that would expire in less than 1 hour after creation.
"name": "A String", # The name of the snapshot.
+ "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
},
"updateMask": "A String", # Required. Indicates which fields in the provided snapshot to update.
# Must be specified and non-empty.
@@ -622,14 +614,12 @@
An object of the form:
{ # A snapshot resource. Snapshots are used in
- # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
- # operations, which allow
- # you to manage message acknowledgments in bulk. That is, you can set the
- # acknowledgment state of messages in an existing subscription to the state
- # captured by a snapshot.
- "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
- "labels": { # See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
- # managing labels</a>.
+ # [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
+ # operations, which allow you to manage message acknowledgments in bulk. That
+ # is, you can set the acknowledgment state of messages in an existing
+ # subscription to the state captured by a snapshot.
+ "labels": { # See [Creating and managing labels]
+ # (https://cloud.google.com/pubsub/docs/labels).
"a_key": "A String",
},
"expireTime": "A String", # The snapshot is guaranteed to exist up until this time.
@@ -643,6 +633,7 @@
# exists -- will expire in 4 days. The service will refuse to create a
# snapshot that would expire in less than 1 hour after creation.
"name": "A String", # The name of the snapshot.
+ "topic": "A String", # The name of the topic from which this snapshot is retaining messages.
}</pre>
</div>
@@ -730,6 +721,42 @@
#
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
+ "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
+ "etag": "A String", # `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.
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
"bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines how and when the `bindings` are applied. Each
# of the `bindings` must contain at least one member.
@@ -781,11 +808,13 @@
"title": "A String", # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
- "description": "A String", # Optional. Description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
"expression": "A String", # Textual representation of an expression in Common Expression Language
# syntax.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
},
+ "role": "A String", # Role that is assigned to `members`.
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -831,46 +860,8 @@
#
"A String",
],
- "role": "A String", # Role that is assigned to `members`.
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
},
],
- "etag": "A String", # `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.
- #
- # **Important:** If you use IAM Conditions, you must include the `etag` field
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` policy are lost.
- "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
},
}
@@ -949,6 +940,42 @@
#
# For a description of IAM and its features, see the
# [IAM documentation](https://cloud.google.com/iam/docs/).
+ "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
+ "etag": "A String", # `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.
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
"bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines how and when the `bindings` are applied. Each
# of the `bindings` must contain at least one member.
@@ -1000,11 +1027,13 @@
"title": "A String", # Optional. Title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
- "description": "A String", # Optional. Description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
"expression": "A String", # Textual representation of an expression in Common Expression Language
# syntax.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
},
+ "role": "A String", # Role that is assigned to `members`.
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -1050,46 +1079,8 @@
#
"A String",
],
- "role": "A String", # Role that is assigned to `members`.
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
},
],
- "etag": "A String", # `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.
- #
- # **Important:** If you use IAM Conditions, you must include the `etag` field
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` policy are lost.
- "version": 42, # 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 call `setIamPolicy`. If you omit this field, then IAM allows
- # you to overwrite a version `3` policy with a version `1` policy, and all of
- # the conditions in the version `3` 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](https://cloud.google.com/iam/help/conditions/resource-policies).
}</pre>
</div>