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.InstanceConfig.properties.storageLimitPerProcessingUnit.description
- schemas.InstanceConfig.properties.storageLimitPerProcessingUnit.format
- schemas.InstanceConfig.properties.storageLimitPerProcessingUnit.readOnly
- schemas.InstanceConfig.properties.storageLimitPerProcessingUnit.type

The following keys were changed:
- schemas.PartitionQueryRequest.properties.sql.description
  • Loading branch information
yoshi-automation authored and bcoe committed Feb 2, 2024
1 parent 3dad20b commit 7c371a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions discovery/spanner-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2729,7 +2729,7 @@
}
}
},
"revision": "20231215",
"revision": "20240120",
"rootUrl": "https://spanner.googleapis.com/",
"schemas": {
"AutoscalingConfig": {
Expand Down Expand Up @@ -4145,6 +4145,12 @@
],
"readOnly": true,
"type": "string"
},
"storageLimitPerProcessingUnit": {
"description": "Output only. The storage limit in bytes per processing unit.",
"format": "int64",
"readOnly": true,
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -4829,7 +4835,7 @@
"description": "Additional options that affect how many partitions are created."
},
"sql": {
"description": "Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, the first operator in the query execution plan must be a distributed union operator. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use ExecuteStreamingSql with a PartitionedDml transaction for large, partition-friendly DML operations.",
"description": "Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use ExecuteStreamingSql with a PartitionedDml transaction for large, partition-friendly DML operations.",
"type": "string"
},
"transaction": {
Expand Down
6 changes: 5 additions & 1 deletion src/apis/spanner/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,10 @@ export namespace spanner_v1 {
* Output only. The current instance config state. Applicable only for USER_MANAGED configs.
*/
state?: string | null;
/**
* Output only. The storage limit in bytes per processing unit.
*/
storageLimitPerProcessingUnit?: string | null;
}
/**
* Encapsulates progress related information for a Cloud Spanner long running instance operations.
Expand Down Expand Up @@ -1607,7 +1611,7 @@ export namespace spanner_v1 {
*/
partitionOptions?: Schema$PartitionOptions;
/**
* Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, the first operator in the query execution plan must be a distributed union operator. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use ExecuteStreamingSql with a PartitionedDml transaction for large, partition-friendly DML operations.
* Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use ExecuteStreamingSql with a PartitionedDml transaction for large, partition-friendly DML operations.
*/
sql?: string | null;
/**
Expand Down

0 comments on commit 7c371a3

Please sign in to comment.