docs: update generated docs (#981)
diff --git a/docs/dyn/spanner_v1.projects.instances.backups.html b/docs/dyn/spanner_v1.projects.instances.backups.html
index 7cef73f..1c1e78a 100644
--- a/docs/dyn/spanner_v1.projects.instances.backups.html
+++ b/docs/dyn/spanner_v1.projects.instances.backups.html
@@ -92,7 +92,7 @@
<code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the access control policy for a database or backup resource.</p>
<p class="toc_element">
- <code><a href="#list">list(parent, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</a></code></p>
+ <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists completed and pending backups.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
@@ -133,46 +133,46 @@
The object takes the form of:
{ # A backup of a Cloud Spanner database.
- "createTime": "A String", # Output only. The backup will contain an externally consistent
- # copy of the database at the timestamp specified by
- # `create_time`. `create_time` is approximately the time the
- # CreateBackup request is received.
- "state": "A String", # Output only. The current state of the backup.
- "database": "A String", # Required for the CreateBackup operation.
- # Name of the database from which this backup was
- # created. This needs to be in the same instance as the backup.
- # Values are of the form
- # `projects/<project>/instances/<instance>/databases/<database>`.
- "expireTime": "A String", # Required for the CreateBackup
- # operation. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 366 days
- # from the time the CreateBackup request is processed. Once the `expire_time`
- # has passed, the backup is eligible to be automatically deleted by Cloud
- # Spanner to free the resources used by the backup.
- "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
- # The database names are of
- # the form `projects/<project>/instances/<instance>/databases/<database>`.
- # Referencing databases may exist in different instances. The existence of
- # any referencing database prevents the backup from being deleted. When a
- # restored database from the backup enters the `READY` state, the reference
- # to the backup is removed.
- "A String",
- ],
- "sizeBytes": "A String", # Output only. Size of the backup in bytes.
- "name": "A String", # Output only for the CreateBackup operation.
- # Required for the UpdateBackup operation.
- #
- # A globally unique identifier for the backup which cannot be
- # changed. Values are of the form
- # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
- # The final segment of the name must be between 2 and 60 characters
- # in length.
- #
- # The backup is stored in the location(s) specified in the instance
- # configuration of the instance containing the backup, identified
- # by the prefix of the backup name of the form
- # `projects/<project>/instances/<instance>`.
- }
+ "expireTime": "A String", # Required for the CreateBackup
+ # operation. The expiration time of the backup, with microseconds
+ # granularity that must be at least 6 hours and at most 366 days
+ # from the time the CreateBackup request is processed. Once the `expire_time`
+ # has passed, the backup is eligible to be automatically deleted by Cloud
+ # Spanner to free the resources used by the backup.
+ "createTime": "A String", # Output only. The backup will contain an externally consistent
+ # copy of the database at the timestamp specified by
+ # `create_time`. `create_time` is approximately the time the
+ # CreateBackup request is received.
+ "database": "A String", # Required for the CreateBackup operation.
+ # Name of the database from which this backup was
+ # created. This needs to be in the same instance as the backup.
+ # Values are of the form
+ # `projects/<project>/instances/<instance>/databases/<database>`.
+ "state": "A String", # Output only. The current state of the backup.
+ "name": "A String", # Output only for the CreateBackup operation.
+ # Required for the UpdateBackup operation.
+ #
+ # A globally unique identifier for the backup which cannot be
+ # changed. Values are of the form
+ # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
+ # The final segment of the name must be between 2 and 60 characters
+ # in length.
+ #
+ # The backup is stored in the location(s) specified in the instance
+ # configuration of the instance containing the backup, identified
+ # by the prefix of the backup name of the form
+ # `projects/<project>/instances/<instance>`.
+ "sizeBytes": "A String", # Output only. Size of the backup in bytes.
+ "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
+ # The database names are of
+ # the form `projects/<project>/instances/<instance>/databases/<database>`.
+ # Referencing databases may exist in different instances. The existence of
+ # any referencing database prevents the backup from being deleted. When a
+ # restored database from the backup enters the `READY` state, the reference
+ # to the backup is removed.
+ "A String",
+ ],
+}
backupId: string, Required. The id of the backup to be created. The `backup_id` appended to
`parent` forms the full backup name of the form
@@ -187,6 +187,9 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
+ "name": "A String", # The server-assigned name, which is only unique within the same service that
+ # originally returns it. If you use the default HTTP mapping, the
+ # `name` should be a resource name ending with `operations/{unique_id}`.
"error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
@@ -194,15 +197,15 @@
#
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
+ "message": "A String", # A developer-facing error message, which should be in English. Any
+ # user-facing error message should be localized and sent in the
+ # google.rpc.Status.details field, or localized by the client.
"details": [ # A list of messages that carry the error details. There is a common set of
# message types for APIs to use.
{
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
],
- "message": "A String", # A developer-facing error message, which should be in English. Any
- # user-facing error message should be localized and sent in the
- # google.rpc.Status.details field, or localized by the client.
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
},
"metadata": { # Service-specific metadata associated with the operation. It typically
@@ -211,9 +214,6 @@
# long-running operation should document the metadata type, if any.
"a_key": "", # Properties of the object. Contains field @type with type URL.
},
- "name": "A String", # The server-assigned name, which is only unique within the same service that
- # originally returns it. If you use the default HTTP mapping, the
- # `name` should be a resource name ending with `operations/{unique_id}`.
"done": True or False, # If the value is `false`, it means the operation is still in progress.
# If `true`, the operation is completed, and either `error` or `response` is
# available.
@@ -275,46 +275,46 @@
An object of the form:
{ # A backup of a Cloud Spanner database.
- "createTime": "A String", # Output only. The backup will contain an externally consistent
- # copy of the database at the timestamp specified by
- # `create_time`. `create_time` is approximately the time the
- # CreateBackup request is received.
- "state": "A String", # Output only. The current state of the backup.
- "database": "A String", # Required for the CreateBackup operation.
- # Name of the database from which this backup was
- # created. This needs to be in the same instance as the backup.
- # Values are of the form
- # `projects/<project>/instances/<instance>/databases/<database>`.
- "expireTime": "A String", # Required for the CreateBackup
- # operation. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 366 days
- # from the time the CreateBackup request is processed. Once the `expire_time`
- # has passed, the backup is eligible to be automatically deleted by Cloud
- # Spanner to free the resources used by the backup.
- "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
- # The database names are of
- # the form `projects/<project>/instances/<instance>/databases/<database>`.
- # Referencing databases may exist in different instances. The existence of
- # any referencing database prevents the backup from being deleted. When a
- # restored database from the backup enters the `READY` state, the reference
- # to the backup is removed.
- "A String",
- ],
- "sizeBytes": "A String", # Output only. Size of the backup in bytes.
- "name": "A String", # Output only for the CreateBackup operation.
- # Required for the UpdateBackup operation.
- #
- # A globally unique identifier for the backup which cannot be
- # changed. Values are of the form
- # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
- # The final segment of the name must be between 2 and 60 characters
- # in length.
- #
- # The backup is stored in the location(s) specified in the instance
- # configuration of the instance containing the backup, identified
- # by the prefix of the backup name of the form
- # `projects/<project>/instances/<instance>`.
- }</pre>
+ "expireTime": "A String", # Required for the CreateBackup
+ # operation. The expiration time of the backup, with microseconds
+ # granularity that must be at least 6 hours and at most 366 days
+ # from the time the CreateBackup request is processed. Once the `expire_time`
+ # has passed, the backup is eligible to be automatically deleted by Cloud
+ # Spanner to free the resources used by the backup.
+ "createTime": "A String", # Output only. The backup will contain an externally consistent
+ # copy of the database at the timestamp specified by
+ # `create_time`. `create_time` is approximately the time the
+ # CreateBackup request is received.
+ "database": "A String", # Required for the CreateBackup operation.
+ # Name of the database from which this backup was
+ # created. This needs to be in the same instance as the backup.
+ # Values are of the form
+ # `projects/<project>/instances/<instance>/databases/<database>`.
+ "state": "A String", # Output only. The current state of the backup.
+ "name": "A String", # Output only for the CreateBackup operation.
+ # Required for the UpdateBackup operation.
+ #
+ # A globally unique identifier for the backup which cannot be
+ # changed. Values are of the form
+ # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
+ # The final segment of the name must be between 2 and 60 characters
+ # in length.
+ #
+ # The backup is stored in the location(s) specified in the instance
+ # configuration of the instance containing the backup, identified
+ # by the prefix of the backup name of the form
+ # `projects/<project>/instances/<instance>`.
+ "sizeBytes": "A String", # Output only. Size of the backup in bytes.
+ "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
+ # The database names are of
+ # the form `projects/<project>/instances/<instance>/databases/<database>`.
+ # Referencing databases may exist in different instances. The existence of
+ # any referencing database prevents the backup from being deleted. When a
+ # restored database from the backup enters the `READY` state, the reference
+ # to the backup is removed.
+ "A String",
+ ],
+ }</pre>
</div>
<div class="method">
@@ -432,58 +432,6 @@
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
- #
- # If the condition evaluates to `true`, then this binding applies to the
- # current request.
- #
- # If the condition evaluates to `false`, then this binding does not apply to
- # the current request. However, a different role binding might grant the same
- # role to one or more of the members in this binding.
- #
- # To learn which resources support conditions in their IAM policies, see the
- # [IAM
- # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
- # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
- # are documented at https://github.com/google/cel-spec.
- #
- # Example (Comparison):
- #
- # title: "Summary size limit"
- # description: "Determines if a summary is less than 100 chars"
- # expression: "document.summary.size() < 100"
- #
- # Example (Equality):
- #
- # title: "Requestor is owner"
- # description: "Determines if requestor is the document owner"
- # expression: "document.owner == request.auth.claims.email"
- #
- # Example (Logic):
- #
- # title: "Public documents"
- # description: "Determine whether the document should be publicly visible"
- # expression: "document.type != 'private' && document.type != 'internal'"
- #
- # Example (Data Manipulation):
- #
- # title: "Notification string"
- # description: "Create a notification string with a timestamp."
- # expression: "'New message received at ' + string(document.create_time)"
- #
- # The exact variables and functions that may be referenced within an expression
- # are determined by the service that evaluates it. See the service
- # documentation for additional information.
- "location": "A String", # Optional. String indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "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.
- "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.
- },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -529,20 +477,60 @@
#
"A String",
],
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ #
+ # If the condition evaluates to `true`, then this binding applies to the
+ # current request.
+ #
+ # If the condition evaluates to `false`, then this binding does not apply to
+ # the current request. However, a different role binding might grant the same
+ # role to one or more of the members in this binding.
+ #
+ # To learn which resources support conditions in their IAM policies, see the
+ # [IAM
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "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.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "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.
+ },
},
],
- "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
@@ -567,11 +555,23 @@
#
# 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.
}</pre>
</div>
<div class="method">
- <code class="details" id="list">list(parent, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</code>
+ <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.
@@ -579,12 +579,6 @@
Args:
parent: string, Required. The instance to list backups from. Values are of the
form `projects/<project>/instances/<instance>`. (required)
- pageSize: integer, Number of backups to be returned in the response. If 0 or
-less, defaults to the server's maximum allowed page size.
- pageToken: string, If non-empty, `page_token` should contain a
-next_page_token from a
-previous ListBackupsResponse to the same `parent` and with the same
-`filter`.
filter: string, An expression that filters the list of returned backups.
A filter expression consists of a field name, a comparison operator, and a
@@ -619,6 +613,12 @@
* `expire_time < \"2018-03-28T14:50:00Z\"`
- The backup `expire_time` is before 2018-03-28T14:50:00Z.
* `size_bytes > 10000000000` - The backup's size is greater than 10GB
+ pageSize: integer, Number of backups to be returned in the response. If 0 or
+less, defaults to the server's maximum allowed page size.
+ pageToken: string, If non-empty, `page_token` should contain a
+next_page_token from a
+previous ListBackupsResponse to the same `parent` and with the same
+`filter`.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
@@ -628,53 +628,53 @@
An object of the form:
{ # The response for ListBackups.
- "backups": [ # The list of matching backups. Backups returned are ordered by `create_time`
- # in descending order, starting from the most recent `create_time`.
- { # A backup of a Cloud Spanner database.
- "createTime": "A String", # Output only. The backup will contain an externally consistent
- # copy of the database at the timestamp specified by
- # `create_time`. `create_time` is approximately the time the
- # CreateBackup request is received.
- "state": "A String", # Output only. The current state of the backup.
- "database": "A String", # Required for the CreateBackup operation.
- # Name of the database from which this backup was
- # created. This needs to be in the same instance as the backup.
- # Values are of the form
- # `projects/<project>/instances/<instance>/databases/<database>`.
- "expireTime": "A String", # Required for the CreateBackup
- # operation. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 366 days
- # from the time the CreateBackup request is processed. Once the `expire_time`
- # has passed, the backup is eligible to be automatically deleted by Cloud
- # Spanner to free the resources used by the backup.
- "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
- # The database names are of
- # the form `projects/<project>/instances/<instance>/databases/<database>`.
- # Referencing databases may exist in different instances. The existence of
- # any referencing database prevents the backup from being deleted. When a
- # restored database from the backup enters the `READY` state, the reference
- # to the backup is removed.
- "A String",
- ],
- "sizeBytes": "A String", # Output only. Size of the backup in bytes.
- "name": "A String", # Output only for the CreateBackup operation.
- # Required for the UpdateBackup operation.
- #
- # A globally unique identifier for the backup which cannot be
- # changed. Values are of the form
- # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
- # The final segment of the name must be between 2 and 60 characters
- # in length.
- #
- # The backup is stored in the location(s) specified in the instance
- # configuration of the instance containing the backup, identified
- # by the prefix of the backup name of the form
- # `projects/<project>/instances/<instance>`.
- },
- ],
"nextPageToken": "A String", # `next_page_token` can be sent in a subsequent
# ListBackups call to fetch more
# of the matching backups.
+ "backups": [ # The list of matching backups. Backups returned are ordered by `create_time`
+ # in descending order, starting from the most recent `create_time`.
+ { # A backup of a Cloud Spanner database.
+ "expireTime": "A String", # Required for the CreateBackup
+ # operation. The expiration time of the backup, with microseconds
+ # granularity that must be at least 6 hours and at most 366 days
+ # from the time the CreateBackup request is processed. Once the `expire_time`
+ # has passed, the backup is eligible to be automatically deleted by Cloud
+ # Spanner to free the resources used by the backup.
+ "createTime": "A String", # Output only. The backup will contain an externally consistent
+ # copy of the database at the timestamp specified by
+ # `create_time`. `create_time` is approximately the time the
+ # CreateBackup request is received.
+ "database": "A String", # Required for the CreateBackup operation.
+ # Name of the database from which this backup was
+ # created. This needs to be in the same instance as the backup.
+ # Values are of the form
+ # `projects/<project>/instances/<instance>/databases/<database>`.
+ "state": "A String", # Output only. The current state of the backup.
+ "name": "A String", # Output only for the CreateBackup operation.
+ # Required for the UpdateBackup operation.
+ #
+ # A globally unique identifier for the backup which cannot be
+ # changed. Values are of the form
+ # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
+ # The final segment of the name must be between 2 and 60 characters
+ # in length.
+ #
+ # The backup is stored in the location(s) specified in the instance
+ # configuration of the instance containing the backup, identified
+ # by the prefix of the backup name of the form
+ # `projects/<project>/instances/<instance>`.
+ "sizeBytes": "A String", # Output only. Size of the backup in bytes.
+ "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
+ # The database names are of
+ # the form `projects/<project>/instances/<instance>/databases/<database>`.
+ # Referencing databases may exist in different instances. The existence of
+ # any referencing database prevents the backup from being deleted. When a
+ # restored database from the backup enters the `READY` state, the reference
+ # to the backup is removed.
+ "A String",
+ ],
+ },
+ ],
}</pre>
</div>
@@ -714,46 +714,46 @@
The object takes the form of:
{ # A backup of a Cloud Spanner database.
- "createTime": "A String", # Output only. The backup will contain an externally consistent
- # copy of the database at the timestamp specified by
- # `create_time`. `create_time` is approximately the time the
- # CreateBackup request is received.
- "state": "A String", # Output only. The current state of the backup.
- "database": "A String", # Required for the CreateBackup operation.
- # Name of the database from which this backup was
- # created. This needs to be in the same instance as the backup.
- # Values are of the form
- # `projects/<project>/instances/<instance>/databases/<database>`.
- "expireTime": "A String", # Required for the CreateBackup
- # operation. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 366 days
- # from the time the CreateBackup request is processed. Once the `expire_time`
- # has passed, the backup is eligible to be automatically deleted by Cloud
- # Spanner to free the resources used by the backup.
- "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
- # The database names are of
- # the form `projects/<project>/instances/<instance>/databases/<database>`.
- # Referencing databases may exist in different instances. The existence of
- # any referencing database prevents the backup from being deleted. When a
- # restored database from the backup enters the `READY` state, the reference
- # to the backup is removed.
- "A String",
- ],
- "sizeBytes": "A String", # Output only. Size of the backup in bytes.
- "name": "A String", # Output only for the CreateBackup operation.
- # Required for the UpdateBackup operation.
- #
- # A globally unique identifier for the backup which cannot be
- # changed. Values are of the form
- # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
- # The final segment of the name must be between 2 and 60 characters
- # in length.
- #
- # The backup is stored in the location(s) specified in the instance
- # configuration of the instance containing the backup, identified
- # by the prefix of the backup name of the form
- # `projects/<project>/instances/<instance>`.
- }
+ "expireTime": "A String", # Required for the CreateBackup
+ # operation. The expiration time of the backup, with microseconds
+ # granularity that must be at least 6 hours and at most 366 days
+ # from the time the CreateBackup request is processed. Once the `expire_time`
+ # has passed, the backup is eligible to be automatically deleted by Cloud
+ # Spanner to free the resources used by the backup.
+ "createTime": "A String", # Output only. The backup will contain an externally consistent
+ # copy of the database at the timestamp specified by
+ # `create_time`. `create_time` is approximately the time the
+ # CreateBackup request is received.
+ "database": "A String", # Required for the CreateBackup operation.
+ # Name of the database from which this backup was
+ # created. This needs to be in the same instance as the backup.
+ # Values are of the form
+ # `projects/<project>/instances/<instance>/databases/<database>`.
+ "state": "A String", # Output only. The current state of the backup.
+ "name": "A String", # Output only for the CreateBackup operation.
+ # Required for the UpdateBackup operation.
+ #
+ # A globally unique identifier for the backup which cannot be
+ # changed. Values are of the form
+ # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
+ # The final segment of the name must be between 2 and 60 characters
+ # in length.
+ #
+ # The backup is stored in the location(s) specified in the instance
+ # configuration of the instance containing the backup, identified
+ # by the prefix of the backup name of the form
+ # `projects/<project>/instances/<instance>`.
+ "sizeBytes": "A String", # Output only. Size of the backup in bytes.
+ "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
+ # The database names are of
+ # the form `projects/<project>/instances/<instance>/databases/<database>`.
+ # Referencing databases may exist in different instances. The existence of
+ # any referencing database prevents the backup from being deleted. When a
+ # restored database from the backup enters the `READY` state, the reference
+ # to the backup is removed.
+ "A String",
+ ],
+}
updateMask: string, Required. A mask specifying which fields (e.g. `expire_time`) in the
Backup resource should be updated. This mask is relative to the Backup
@@ -769,46 +769,46 @@
An object of the form:
{ # A backup of a Cloud Spanner database.
- "createTime": "A String", # Output only. The backup will contain an externally consistent
- # copy of the database at the timestamp specified by
- # `create_time`. `create_time` is approximately the time the
- # CreateBackup request is received.
- "state": "A String", # Output only. The current state of the backup.
- "database": "A String", # Required for the CreateBackup operation.
- # Name of the database from which this backup was
- # created. This needs to be in the same instance as the backup.
- # Values are of the form
- # `projects/<project>/instances/<instance>/databases/<database>`.
- "expireTime": "A String", # Required for the CreateBackup
- # operation. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 366 days
- # from the time the CreateBackup request is processed. Once the `expire_time`
- # has passed, the backup is eligible to be automatically deleted by Cloud
- # Spanner to free the resources used by the backup.
- "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
- # The database names are of
- # the form `projects/<project>/instances/<instance>/databases/<database>`.
- # Referencing databases may exist in different instances. The existence of
- # any referencing database prevents the backup from being deleted. When a
- # restored database from the backup enters the `READY` state, the reference
- # to the backup is removed.
- "A String",
- ],
- "sizeBytes": "A String", # Output only. Size of the backup in bytes.
- "name": "A String", # Output only for the CreateBackup operation.
- # Required for the UpdateBackup operation.
- #
- # A globally unique identifier for the backup which cannot be
- # changed. Values are of the form
- # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
- # The final segment of the name must be between 2 and 60 characters
- # in length.
- #
- # The backup is stored in the location(s) specified in the instance
- # configuration of the instance containing the backup, identified
- # by the prefix of the backup name of the form
- # `projects/<project>/instances/<instance>`.
- }</pre>
+ "expireTime": "A String", # Required for the CreateBackup
+ # operation. The expiration time of the backup, with microseconds
+ # granularity that must be at least 6 hours and at most 366 days
+ # from the time the CreateBackup request is processed. Once the `expire_time`
+ # has passed, the backup is eligible to be automatically deleted by Cloud
+ # Spanner to free the resources used by the backup.
+ "createTime": "A String", # Output only. The backup will contain an externally consistent
+ # copy of the database at the timestamp specified by
+ # `create_time`. `create_time` is approximately the time the
+ # CreateBackup request is received.
+ "database": "A String", # Required for the CreateBackup operation.
+ # Name of the database from which this backup was
+ # created. This needs to be in the same instance as the backup.
+ # Values are of the form
+ # `projects/<project>/instances/<instance>/databases/<database>`.
+ "state": "A String", # Output only. The current state of the backup.
+ "name": "A String", # Output only for the CreateBackup operation.
+ # Required for the UpdateBackup operation.
+ #
+ # A globally unique identifier for the backup which cannot be
+ # changed. Values are of the form
+ # `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
+ # The final segment of the name must be between 2 and 60 characters
+ # in length.
+ #
+ # The backup is stored in the location(s) specified in the instance
+ # configuration of the instance containing the backup, identified
+ # by the prefix of the backup name of the form
+ # `projects/<project>/instances/<instance>`.
+ "sizeBytes": "A String", # Output only. Size of the backup in bytes.
+ "referencingDatabases": [ # Output only. The names of the restored databases that reference the backup.
+ # The database names are of
+ # the form `projects/<project>/instances/<instance>/databases/<database>`.
+ # Referencing databases may exist in different instances. The existence of
+ # any referencing database prevents the backup from being deleted. When a
+ # restored database from the backup enters the `READY` state, the reference
+ # to the backup is removed.
+ "A String",
+ ],
+ }</pre>
</div>
<div class="method">
@@ -903,58 +903,6 @@
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
- #
- # If the condition evaluates to `true`, then this binding applies to the
- # current request.
- #
- # If the condition evaluates to `false`, then this binding does not apply to
- # the current request. However, a different role binding might grant the same
- # role to one or more of the members in this binding.
- #
- # To learn which resources support conditions in their IAM policies, see the
- # [IAM
- # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
- # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
- # are documented at https://github.com/google/cel-spec.
- #
- # Example (Comparison):
- #
- # title: "Summary size limit"
- # description: "Determines if a summary is less than 100 chars"
- # expression: "document.summary.size() < 100"
- #
- # Example (Equality):
- #
- # title: "Requestor is owner"
- # description: "Determines if requestor is the document owner"
- # expression: "document.owner == request.auth.claims.email"
- #
- # Example (Logic):
- #
- # title: "Public documents"
- # description: "Determine whether the document should be publicly visible"
- # expression: "document.type != 'private' && document.type != 'internal'"
- #
- # Example (Data Manipulation):
- #
- # title: "Notification string"
- # description: "Create a notification string with a timestamp."
- # expression: "'New message received at ' + string(document.create_time)"
- #
- # The exact variables and functions that may be referenced within an expression
- # are determined by the service that evaluates it. See the service
- # documentation for additional information.
- "location": "A String", # Optional. String indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "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.
- "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.
- },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -1000,20 +948,60 @@
#
"A String",
],
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ #
+ # If the condition evaluates to `true`, then this binding applies to the
+ # current request.
+ #
+ # If the condition evaluates to `false`, then this binding does not apply to
+ # the current request. However, a different role binding might grant the same
+ # role to one or more of the members in this binding.
+ #
+ # To learn which resources support conditions in their IAM policies, see the
+ # [IAM
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "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.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "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.
+ },
},
],
- "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
@@ -1038,6 +1026,18 @@
#
# 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.
},
}
@@ -1122,58 +1122,6 @@
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
- "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
- #
- # If the condition evaluates to `true`, then this binding applies to the
- # current request.
- #
- # If the condition evaluates to `false`, then this binding does not apply to
- # the current request. However, a different role binding might grant the same
- # role to one or more of the members in this binding.
- #
- # To learn which resources support conditions in their IAM policies, see the
- # [IAM
- # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
- # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
- # are documented at https://github.com/google/cel-spec.
- #
- # Example (Comparison):
- #
- # title: "Summary size limit"
- # description: "Determines if a summary is less than 100 chars"
- # expression: "document.summary.size() < 100"
- #
- # Example (Equality):
- #
- # title: "Requestor is owner"
- # description: "Determines if requestor is the document owner"
- # expression: "document.owner == request.auth.claims.email"
- #
- # Example (Logic):
- #
- # title: "Public documents"
- # description: "Determine whether the document should be publicly visible"
- # expression: "document.type != 'private' && document.type != 'internal'"
- #
- # Example (Data Manipulation):
- #
- # title: "Notification string"
- # description: "Create a notification string with a timestamp."
- # expression: "'New message received at ' + string(document.create_time)"
- #
- # The exact variables and functions that may be referenced within an expression
- # are determined by the service that evaluates it. See the service
- # documentation for additional information.
- "location": "A String", # Optional. String indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "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.
- "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.
- },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -1219,20 +1167,60 @@
#
"A String",
],
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ #
+ # If the condition evaluates to `true`, then this binding applies to the
+ # current request.
+ #
+ # If the condition evaluates to `false`, then this binding does not apply to
+ # the current request. However, a different role binding might grant the same
+ # role to one or more of the members in this binding.
+ #
+ # To learn which resources support conditions in their IAM policies, see the
+ # [IAM
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "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.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "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.
+ },
},
],
- "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
@@ -1257,6 +1245,18 @@
#
# 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.
}</pre>
</div>