Skip to content

Commit 504ad0e

Browse files
yoshi-automationquirogas
authored andcommitted
feat(spanner): update the API
#### spanner:v1 The following keys were added: - schemas.ClientContext.description - schemas.ClientContext.id - schemas.ClientContext.type - schemas.RequestOptions.properties.clientContext.$ref - schemas.RequestOptions.properties.clientContext.description The following keys were changed: - schemas.Session.properties.multiplexed.description - schemas.TransactionOptions.properties.isolationLevel.enumDescriptions
1 parent 7c56cb0 commit 504ad0e

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

discovery/spanner-v1.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,7 +3436,7 @@
34363436
}
34373437
}
34383438
},
3439-
"revision": "20251031",
3439+
"revision": "20251121",
34403440
"rootUrl": "https://spanner.googleapis.com/",
34413441
"schemas": {
34423442
"AdaptMessageRequest": {
@@ -4047,6 +4047,12 @@
40474047
},
40484048
"type": "object"
40494049
},
4050+
"ClientContext": {
4051+
"description": "Container for various pieces of client-owned context attached to a request.",
4052+
"id": "ClientContext",
4053+
"properties": {},
4054+
"type": "object"
4055+
},
40504056
"ColumnMetadata": {
40514057
"description": "Metadata for a column.",
40524058
"id": "ColumnMetadata",
@@ -7115,6 +7121,10 @@
71157121
"description": "Common request options for various APIs.",
71167122
"id": "RequestOptions",
71177123
"properties": {
7124+
"clientContext": {
7125+
"$ref": "ClientContext",
7126+
"description": "Optional. Optional context that may be needed for some requests."
7127+
},
71187128
"priority": {
71197129
"description": "Priority for the request.",
71207130
"enum": [
@@ -7430,7 +7440,7 @@
74307440
"type": "object"
74317441
},
74327442
"multiplexed": {
7433-
"description": "Optional. If `true`, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent read-only operations. Don't use them for read-write transactions, partitioned reads, or partitioned queries. Use `sessions.create` to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.",
7443+
"description": "Optional. If `true`, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent operations including any combination of read-only and read-write transactions. Use `sessions.create` to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.",
74347444
"type": "boolean"
74357445
},
74367446
"name": {
@@ -7643,7 +7653,7 @@
76437653
"enumDescriptions": [
76447654
"Default value. If the value is not specified, the `SERIALIZABLE` isolation level is used.",
76457655
"All transactions appear as if they executed in a serial order, even if some of the reads, writes, and other operations of distinct transactions actually occurred in parallel. Spanner assigns commit timestamps that reflect the order of committed transactions to implement this property. Spanner offers a stronger guarantee than serializability called external consistency. For more information, see [TrueTime and external consistency](https://cloud.google.com/spanner/docs/true-time-external-consistency#serializability).",
7646-
"All reads performed during the transaction observe a consistent snapshot of the database, and the transaction is only successfully committed in the absence of conflicts between its updates and any concurrent updates that have occurred since that snapshot. Consequently, in contrast to `SERIALIZABLE` transactions, only write-write conflicts are detected in snapshot transactions. This isolation level does not support Read-only and Partitioned DML transactions. When `REPEATABLE_READ` is specified on a read-write transaction, the locking semantics default to `OPTIMISTIC`."
7656+
"All reads performed during the transaction observe a consistent snapshot of the database, and the transaction is only successfully committed in the absence of conflicts between its updates and any concurrent updates that have occurred since that snapshot. Consequently, in contrast to `SERIALIZABLE` transactions, only write-write conflicts are detected in snapshot transactions. This isolation level does not support read-only and partitioned DML transactions. When `REPEATABLE_READ` is specified on a read-write transaction, the locking semantics default to `OPTIMISTIC`."
76477657
],
76487658
"type": "string"
76497659
},

src/apis/spanner/v1.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ export namespace spanner_v1 {
582582
*/
583583
variable?: string | null;
584584
}
585+
/**
586+
* Container for various pieces of client-owned context attached to a request.
587+
*/
588+
export interface Schema$ClientContext {}
585589
/**
586590
* Metadata for a column.
587591
*/
@@ -2704,6 +2708,10 @@ export namespace spanner_v1 {
27042708
* Common request options for various APIs.
27052709
*/
27062710
export interface Schema$RequestOptions {
2711+
/**
2712+
* Optional. Optional context that may be needed for some requests.
2713+
*/
2714+
clientContext?: Schema$ClientContext;
27072715
/**
27082716
* Priority for the request.
27092717
*/
@@ -2924,7 +2932,7 @@ export namespace spanner_v1 {
29242932
*/
29252933
labels?: {[key: string]: string} | null;
29262934
/**
2927-
* Optional. If `true`, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent read-only operations. Don't use them for read-write transactions, partitioned reads, or partitioned queries. Use `sessions.create` to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.
2935+
* Optional. If `true`, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent operations including any combination of read-only and read-write transactions. Use `sessions.create` to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.
29282936
*/
29292937
multiplexed?: boolean | null;
29302938
/**

0 commit comments

Comments
 (0)