@maxim_mazurok/gapi.client.spanner-v1 0.37.20251121 → 0.37.20251205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +38 -11
- package/package.json +1 -1
- package/readme.md +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://spanner.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251205
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,6 +24,14 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(name: 'spanner', version: 'v1', callback: () => any): void;
|
|
25
25
|
|
|
26
26
|
namespace spanner {
|
|
27
|
+
interface Ack {
|
|
28
|
+
/** By default, an attempt to ack a message that does not exist will fail with a `NOT_FOUND` error. With `ignore_not_found` set to true, the ack will succeed even if the message does not exist. This is useful for unconditionally acking a message, even if it is missing or has already been acked. */
|
|
29
|
+
ignoreNotFound?: boolean;
|
|
30
|
+
/** Required. The primary key of the message to be acked. */
|
|
31
|
+
key?: any[];
|
|
32
|
+
/** Required. The queue where the message to be acked is stored. */
|
|
33
|
+
queue?: string;
|
|
34
|
+
}
|
|
27
35
|
interface AdapterSession {
|
|
28
36
|
/** Identifier. The name of the session. This is always system-assigned. */
|
|
29
37
|
name?: string;
|
|
@@ -239,7 +247,6 @@ declare namespace gapi.client {
|
|
|
239
247
|
/** Only present if the child node is SCALAR and corresponds to an output variable of the parent node. The field carries the name of the output variable. For example, a `TableScan` operator that reads rows from a table will have child links to the `SCALAR` nodes representing the output variables created for each column that is read by the operator. The corresponding `variable` fields will be set to the variable names assigned to the columns. */
|
|
240
248
|
variable?: string;
|
|
241
249
|
}
|
|
242
|
-
interface ClientContext {}
|
|
243
250
|
interface ColumnMetadata {
|
|
244
251
|
/** Indicates whether the column is a primary key column. */
|
|
245
252
|
isPrimaryKey?: boolean;
|
|
@@ -280,6 +287,14 @@ declare namespace gapi.client {
|
|
|
280
287
|
/** The total number of mutations for the transaction. Knowing the `mutation_count` value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). If the number of mutations exceeds the limit, the server returns [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). */
|
|
281
288
|
mutationCount?: string;
|
|
282
289
|
}
|
|
290
|
+
interface CompactDatabaseMetadata {
|
|
291
|
+
/** Output only. The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
|
|
292
|
+
cancelTime?: string;
|
|
293
|
+
/** Output only. The database being compacted. */
|
|
294
|
+
database?: string;
|
|
295
|
+
/** Output only. The progress of the compaction operation. */
|
|
296
|
+
progress?: OperationProgress;
|
|
297
|
+
}
|
|
283
298
|
interface ContextValue {
|
|
284
299
|
/** The label for the context value. e.g. "latency". */
|
|
285
300
|
label?: LocalizedString;
|
|
@@ -883,7 +898,7 @@ declare namespace gapi.client {
|
|
|
883
898
|
nextPageToken?: string;
|
|
884
899
|
/** A list of operations that matches the specified filter in the request. */
|
|
885
900
|
operations?: Operation[];
|
|
886
|
-
/** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections
|
|
901
|
+
/** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. */
|
|
887
902
|
unreachable?: string[];
|
|
888
903
|
}
|
|
889
904
|
interface ListScansResponse {
|
|
@@ -975,6 +990,8 @@ declare namespace gapi.client {
|
|
|
975
990
|
seqNum?: number;
|
|
976
991
|
}
|
|
977
992
|
interface Mutation {
|
|
993
|
+
/** Ack a message from a queue. */
|
|
994
|
+
ack?: Ack;
|
|
978
995
|
/** Delete rows from a table. Succeeds whether or not the named rows were present. */
|
|
979
996
|
delete?: Delete;
|
|
980
997
|
/** Insert new rows in a table. If any of the rows already exist, the write or transaction fails with error `ALREADY_EXISTS`. */
|
|
@@ -983,6 +1000,8 @@ declare namespace gapi.client {
|
|
|
983
1000
|
insertOrUpdate?: Write;
|
|
984
1001
|
/** Like insert, except that if the row already exists, it is deleted, and the column values provided are inserted instead. Unlike insert_or_update, this means any values not explicitly written become `NULL`. In an interleaved table, if you create the child table with the `ON DELETE CASCADE` annotation, then replacing a parent row also deletes the child rows. Otherwise, you must delete the child rows before you replace the parent row. */
|
|
985
1002
|
replace?: Write;
|
|
1003
|
+
/** Send a message to a queue. */
|
|
1004
|
+
send?: Send;
|
|
986
1005
|
/** Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error `NOT_FOUND`. */
|
|
987
1006
|
update?: Write;
|
|
988
1007
|
}
|
|
@@ -1242,8 +1261,6 @@ declare namespace gapi.client {
|
|
|
1242
1261
|
type?: string;
|
|
1243
1262
|
}
|
|
1244
1263
|
interface RequestOptions {
|
|
1245
|
-
/** Optional. Optional context that may be needed for some requests. */
|
|
1246
|
-
clientContext?: any;
|
|
1247
1264
|
/** Priority for the request. */
|
|
1248
1265
|
priority?: string;
|
|
1249
1266
|
/** A per-request tag which can be applied to queries or reads, used for statistics collection. Both `request_tag` and `transaction_tag` can be specified for a read or query that belongs to a transaction. This field is ignored for requests where it's not applicable (for example, `CommitRequest`). Legal characters for `request_tag` values are all printable characters (ASCII 32 - 126) and the length of a request_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters are removed from the string. */
|
|
@@ -1339,6 +1356,16 @@ declare namespace gapi.client {
|
|
|
1339
1356
|
/** A range of time (inclusive) for when the contained data is defined. The lower bound for when the contained data is defined. */
|
|
1340
1357
|
startTime?: string;
|
|
1341
1358
|
}
|
|
1359
|
+
interface Send {
|
|
1360
|
+
/** The time at which Spanner will begin attempting to deliver the message. If `deliver_time` is not set, Spanner will deliver the message immediately. If `deliver_time` is in the past, Spanner will replace it with a value closer to the current time. */
|
|
1361
|
+
deliverTime?: string;
|
|
1362
|
+
/** Required. The primary key of the message to be sent. */
|
|
1363
|
+
key?: any[];
|
|
1364
|
+
/** The payload of the message. */
|
|
1365
|
+
payload?: any;
|
|
1366
|
+
/** Required. The queue to which the message will be sent. */
|
|
1367
|
+
queue?: string;
|
|
1368
|
+
}
|
|
1342
1369
|
interface Session {
|
|
1343
1370
|
/** Output only. The approximate timestamp when the session is last used. It's typically earlier than the actual last use time. */
|
|
1344
1371
|
approximateLastUseTime?: string;
|
|
@@ -1706,7 +1733,7 @@ declare namespace gapi.client {
|
|
|
1706
1733
|
prettyPrint?: boolean;
|
|
1707
1734
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1708
1735
|
quotaUser?: string;
|
|
1709
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
1736
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
1710
1737
|
returnPartialSuccess?: boolean;
|
|
1711
1738
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1712
1739
|
upload_protocol?: string;
|
|
@@ -1824,7 +1851,7 @@ declare namespace gapi.client {
|
|
|
1824
1851
|
prettyPrint?: boolean;
|
|
1825
1852
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1826
1853
|
quotaUser?: string;
|
|
1827
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
1854
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
1828
1855
|
returnPartialSuccess?: boolean;
|
|
1829
1856
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1830
1857
|
upload_protocol?: string;
|
|
@@ -2189,7 +2216,7 @@ declare namespace gapi.client {
|
|
|
2189
2216
|
prettyPrint?: boolean;
|
|
2190
2217
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2191
2218
|
quotaUser?: string;
|
|
2192
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
2219
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
2193
2220
|
returnPartialSuccess?: boolean;
|
|
2194
2221
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2195
2222
|
upload_protocol?: string;
|
|
@@ -3080,7 +3107,7 @@ declare namespace gapi.client {
|
|
|
3080
3107
|
prettyPrint?: boolean;
|
|
3081
3108
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3082
3109
|
quotaUser?: string;
|
|
3083
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
3110
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
3084
3111
|
returnPartialSuccess?: boolean;
|
|
3085
3112
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3086
3113
|
upload_protocol?: string;
|
|
@@ -4787,7 +4814,7 @@ declare namespace gapi.client {
|
|
|
4787
4814
|
prettyPrint?: boolean;
|
|
4788
4815
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4789
4816
|
quotaUser?: string;
|
|
4790
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
4817
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
4791
4818
|
returnPartialSuccess?: boolean;
|
|
4792
4819
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4793
4820
|
upload_protocol?: string;
|
|
@@ -5113,7 +5140,7 @@ declare namespace gapi.client {
|
|
|
5113
5140
|
prettyPrint?: boolean;
|
|
5114
5141
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
5115
5142
|
quotaUser?: string;
|
|
5116
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
5143
|
+
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
|
|
5117
5144
|
returnPartialSuccess?: boolean;
|
|
5118
5145
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5119
5146
|
upload_protocol?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -54,7 +54,7 @@ var client_id = '',
|
|
|
54
54
|
// Administer your Spanner databases
|
|
55
55
|
'https://www.googleapis.com/auth/spanner.admin',
|
|
56
56
|
|
|
57
|
-
//
|
|
57
|
+
// See, edit, configure, and delete your Google Cloud Spanner data and see the email address for your Google Account
|
|
58
58
|
'https://www.googleapis.com/auth/spanner.data',
|
|
59
59
|
],
|
|
60
60
|
immediate = true;
|