Skip to content

Commit f2669c6

Browse files
yoshi-automationsofisl
authored andcommitted
feat(spanner): update the API
#### spanner:v1 The following keys were added: - schemas.MultiplexedSessionPrecommitToken.description - schemas.MultiplexedSessionPrecommitToken.id - schemas.MultiplexedSessionPrecommitToken.properties.precommitToken.description - schemas.MultiplexedSessionPrecommitToken.properties.precommitToken.format - schemas.MultiplexedSessionPrecommitToken.properties.precommitToken.type - schemas.MultiplexedSessionPrecommitToken.properties.seqNum.description - schemas.MultiplexedSessionPrecommitToken.properties.seqNum.format - schemas.MultiplexedSessionPrecommitToken.properties.seqNum.type - schemas.MultiplexedSessionPrecommitToken.type - schemas.Transaction.properties.precommitToken.$ref - schemas.Transaction.properties.precommitToken.description The following keys were changed: - endpoints - schemas.ExecuteSqlRequest.properties.queryMode.enumDescriptions
1 parent 26e077f commit f2669c6

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

discovery/spanner-v1.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,35 @@
2727
"endpointUrl": "https://spanner.me-central2.rep.googleapis.com/",
2828
"location": "me-central2"
2929
},
30+
{
31+
"description": "Regional Endpoint",
32+
"endpointUrl": "https://spanner.us-central1.rep.googleapis.com/",
33+
"location": "us-central1"
34+
},
3035
{
3136
"description": "Regional Endpoint",
3237
"endpointUrl": "https://spanner.us-east1.rep.googleapis.com/",
3338
"location": "us-east1"
3439
},
40+
{
41+
"description": "Regional Endpoint",
42+
"endpointUrl": "https://spanner.us-east4.rep.googleapis.com/",
43+
"location": "us-east4"
44+
},
45+
{
46+
"description": "Regional Endpoint",
47+
"endpointUrl": "https://spanner.us-east5.rep.googleapis.com/",
48+
"location": "us-east5"
49+
},
3550
{
3651
"description": "Regional Endpoint",
3752
"endpointUrl": "https://spanner.us-west1.rep.googleapis.com/",
3853
"location": "us-west1"
54+
},
55+
{
56+
"description": "Regional Endpoint",
57+
"endpointUrl": "https://spanner.us-west4.rep.googleapis.com/",
58+
"location": "us-west4"
3959
}
4060
],
4161
"fullyEncodeReservedExpansion": true,
@@ -3264,7 +3284,7 @@
32643284
}
32653285
}
32663286
},
3267-
"revision": "20240831",
3287+
"revision": "20240918",
32683288
"rootUrl": "https://spanner.googleapis.com/",
32693289
"schemas": {
32703290
"AutoscalingConfig": {
@@ -4547,7 +4567,7 @@
45474567
"enumDescriptions": [
45484568
"The default mode. Only the statement results are returned.",
45494569
"This mode returns only the query plan, without any results or execution statistics information.",
4550-
"This mode returns both the query plan and the execution statistics along with the results. This has a performance overhead compared to the NORMAL mode. It is not recommended to use this mode for production traffic."
4570+
"This mode returns the query plan, overall execution statistics, operator level execution statistics along with the results. This has a performance overhead compared to the other modes. It is not recommended to use this mode for production traffic."
45514571
],
45524572
"type": "string"
45534573
},
@@ -5647,6 +5667,23 @@
56475667
},
56485668
"type": "object"
56495669
},
5670+
"MultiplexedSessionPrecommitToken": {
5671+
"description": "When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.",
5672+
"id": "MultiplexedSessionPrecommitToken",
5673+
"properties": {
5674+
"precommitToken": {
5675+
"description": "Opaque precommit token.",
5676+
"format": "byte",
5677+
"type": "string"
5678+
},
5679+
"seqNum": {
5680+
"description": "An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.",
5681+
"format": "int32",
5682+
"type": "integer"
5683+
}
5684+
},
5685+
"type": "object"
5686+
},
56505687
"Mutation": {
56515688
"description": "A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.",
56525689
"id": "Mutation",
@@ -6790,6 +6827,10 @@
67906827
"format": "byte",
67916828
"type": "string"
67926829
},
6830+
"precommitToken": {
6831+
"$ref": "MultiplexedSessionPrecommitToken",
6832+
"description": "A precommit token will be included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction."
6833+
},
67936834
"readTimestamp": {
67946835
"description": "For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \\\"Zulu\\\" format, accurate to nanoseconds. Example: `\"2014-10-02T15:01:23.045123456Z\"`.",
67956836
"format": "google-datetime",

src/apis/spanner/v1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,19 @@ export namespace spanner_v1 {
17711771
*/
17721772
targetConfig?: string | null;
17731773
}
1774+
/**
1775+
* When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.
1776+
*/
1777+
export interface Schema$MultiplexedSessionPrecommitToken {
1778+
/**
1779+
* Opaque precommit token.
1780+
*/
1781+
precommitToken?: string | null;
1782+
/**
1783+
* An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.
1784+
*/
1785+
seqNum?: number | null;
1786+
}
17741787
/**
17751788
* A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.
17761789
*/
@@ -2572,6 +2585,10 @@ export namespace spanner_v1 {
25722585
* `id` may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.
25732586
*/
25742587
id?: string | null;
2588+
/**
2589+
* A precommit token will be included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.
2590+
*/
2591+
precommitToken?: Schema$MultiplexedSessionPrecommitToken;
25752592
/**
25762593
* For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
25772594
*/

0 commit comments

Comments
 (0)