Skip to content

Commit

Permalink
feat(spanner): update the api
Browse files Browse the repository at this point in the history
#### spanner:v1

The following keys were added:
- schemas.Backup.properties.databaseDialect (Total Keys: 2)
- schemas.CreateDatabaseRequest.properties.databaseDialect.type (Total Keys: 1)
- schemas.Database.properties.databaseDialect (Total Keys: 2)
- schemas.Type.properties.typeAnnotation.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Feb 8, 2022
1 parent e7038f6 commit 46715e5
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 34 deletions.
4 changes: 2 additions & 2 deletions docs/dyn/spanner_v1.projects.instances.backupOperations.html
Expand Up @@ -95,7 +95,7 @@ <h3>Method Details</h3>

Args:
parent: string, Required. The instance of the backup operations. Values are of the form `projects//instances/`. (required)
filter: string, An expression that filters the list of returned backup operations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `&lt;`, `&gt;`, `&lt;=`, `&gt;=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive. The following fields in the operation are eligible for filtering: * `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@type` - the type of metadata. For example, the type string for CreateBackupMetadata is `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`. * `metadata.` - any field in metadata.value. * `error` - Error associated with the long-running operation. * `response.@type` - the type of response. * `response.` - any field in response.value. You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic, but you can specify AND, OR, and NOT logic explicitly. Here are a few examples: * `done:true` - The operation is complete. * `metadata.database:prod` - The database the backup was taken from has a name containing the string &quot;prod&quot;. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `(metadata.name:howl) AND` \ `(metadata.progress.start_time &lt; \&quot;2018-03-28T14:50:00Z\&quot;) AND` \ `(error:*)` - Returns operations where: * The operation&#x27;s metadata type is CreateBackupMetadata. * The backup name contains the string &quot;howl&quot;. * The operation started before 2018-03-28T14:50:00Z. * The operation resulted in an error.
filter: string, An expression that filters the list of returned backup operations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `&lt;`, `&gt;`, `&lt;=`, `&gt;=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive. The following fields in the operation are eligible for filtering: * `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@type` - the type of metadata. For example, the type string for CreateBackupMetadata is `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`. * `metadata.` - any field in metadata.value. `metadata.type_url` must be specified if filtering on metadata fields. * `error` - Error associated with the long-running operation. * `response.@type` - the type of response. * `response.` - any field in response.value. You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic, but you can specify AND, OR, and NOT logic explicitly. Here are a few examples: * `done:true` - The operation is complete. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `metadata.database:prod` - Returns operations where: * The operation&#x27;s metadata type is CreateBackupMetadata. * The database the backup was taken from has a name containing the string &quot;prod&quot;. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `(metadata.name:howl) AND` \ `(metadata.progress.start_time &lt; \&quot;2018-03-28T14:50:00Z\&quot;) AND` \ `(error:*)` - Returns operations where: * The operation&#x27;s metadata type is CreateBackupMetadata. * The backup name contains the string &quot;howl&quot;. * The operation started before 2018-03-28T14:50:00Z. * The operation resulted in an error.
pageSize: integer, Number of operations to be returned in the response. If 0 or less, defaults to the server&#x27;s maximum allowed page size.
pageToken: string, If non-empty, `page_token` should contain a next_page_token from a previous ListBackupOperationsResponse to the same `parent` and with the same `filter`.
x__xgafv: string, V1 error format.
Expand All @@ -108,7 +108,7 @@ <h3>Method Details</h3>

{ # The response for ListBackupOperations.
&quot;nextPageToken&quot;: &quot;A String&quot;, # `next_page_token` can be sent in a subsequent ListBackupOperations call to fetch more of the matching metadata.
&quot;operations&quot;: [ # The list of matching backup long-running operations. Each operation&#x27;s name will be prefixed by the backup&#x27;s name and the operation&#x27;s metadata will be of type CreateBackupMetadata. Operations returned include those that are pending or have completed/failed/canceled within the last 7 days. Operations returned are ordered by `operation.metadata.value.progress.start_time` in descending order starting from the most recently started operation.
&quot;operations&quot;: [ # The list of matching backup long-running operations. Each operation&#x27;s name will be prefixed by the backup&#x27;s name. The operation&#x27;s metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that are pending or have completed/failed/canceled within the last 7 days. Operations returned are ordered by `operation.metadata.value.progress.start_time` in descending order starting from the most recently started operation.
{ # This resource represents a long-running operation that is the result of a network API call.
&quot;done&quot;: 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.
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # The error result of the operation in case of failure or cancellation.
Expand Down
5 changes: 5 additions & 0 deletions docs/dyn/spanner_v1.projects.instances.backups.html
Expand Up @@ -127,6 +127,7 @@ <h3>Method Details</h3>
{ # A backup of a Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
&quot;database&quot;: &quot;A String&quot;, # 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//instances//databases/`.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The database dialect information for the backup.
&quot;encryptionInfo&quot;: { # Encryption information for a Cloud Spanner database or backup. # Output only. The encryption information for the backup.
&quot;encryptionStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Expand Down Expand Up @@ -222,6 +223,7 @@ <h3>Method Details</h3>
{ # A backup of a Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
&quot;database&quot;: &quot;A String&quot;, # 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//instances//databases/`.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The database dialect information for the backup.
&quot;encryptionInfo&quot;: { # Encryption information for a Cloud Spanner database or backup. # Output only. The encryption information for the backup.
&quot;encryptionStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Expand Down Expand Up @@ -311,6 +313,7 @@ <h3>Method Details</h3>
{ # A backup of a Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
&quot;database&quot;: &quot;A String&quot;, # 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//instances//databases/`.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The database dialect information for the backup.
&quot;encryptionInfo&quot;: { # Encryption information for a Cloud Spanner database or backup. # Output only. The encryption information for the backup.
&quot;encryptionStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Expand Down Expand Up @@ -364,6 +367,7 @@ <h3>Method Details</h3>
{ # A backup of a Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
&quot;database&quot;: &quot;A String&quot;, # 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//instances//databases/`.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The database dialect information for the backup.
&quot;encryptionInfo&quot;: { # Encryption information for a Cloud Spanner database or backup. # Output only. The encryption information for the backup.
&quot;encryptionStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Expand Down Expand Up @@ -399,6 +403,7 @@ <h3>Method Details</h3>
{ # A backup of a Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
&quot;database&quot;: &quot;A String&quot;, # 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//instances//databases/`.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The database dialect information for the backup.
&quot;encryptionInfo&quot;: { # Encryption information for a Cloud Spanner database or backup. # Output only. The encryption information for the backup.
&quot;encryptionStatus&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. 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). # Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Expand Down
3 changes: 3 additions & 0 deletions docs/dyn/spanner_v1.projects.instances.databases.html
Expand Up @@ -140,6 +140,7 @@ <h3>Method Details</h3>

{ # The request for CreateDatabase.
&quot;createStatement&quot;: &quot;A String&quot;, # Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `a-z*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``).
&quot;databaseDialect&quot;: &quot;A String&quot;, # Optional. The dialect of the Cloud Spanner Database.
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Optional. The encryption configuration for the database. If this field is not specified, Cloud Spanner will encrypt/decrypt all data at rest using Google default encryption.
&quot;kmsKeyName&quot;: &quot;A String&quot;, # The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
},
Expand Down Expand Up @@ -211,6 +212,7 @@ <h3>Method Details</h3>

{ # A Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The dialect of the Cloud Spanner Database.
&quot;defaultLeader&quot;: &quot;A String&quot;, # Output only. The read-write region which contains the database&#x27;s leader replicas. This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Output only. For databases that are using customer managed encryption, this field contains the encryption configuration for the database. For databases that are using Google default or other types of encryption, this field is empty.
Expand Down Expand Up @@ -535,6 +537,7 @@ <h3>Method Details</h3>
&quot;databases&quot;: [ # Databases that matched the request.
{ # A Cloud Spanner database.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
&quot;databaseDialect&quot;: &quot;A String&quot;, # Output only. The dialect of the Cloud Spanner Database.
&quot;defaultLeader&quot;: &quot;A String&quot;, # Output only. The read-write region which contains the database&#x27;s leader replicas. This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Output only. For databases that are using customer managed encryption, this field contains the encryption configuration for the database. For databases that are using Google default or other types of encryption, this field is empty.
Expand Down

0 comments on commit 46715e5

Please sign in to comment.