@googleapis/spanner 12.2.0 → 12.3.1

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/v1.ts CHANGED
@@ -126,6 +126,23 @@ export namespace spanner_v1 {
126
126
  }
127
127
  }
128
128
 
129
+ /**
130
+ * Arguments to ack operations.
131
+ */
132
+ export interface Schema$Ack {
133
+ /**
134
+ * 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.
135
+ */
136
+ ignoreNotFound?: boolean | null;
137
+ /**
138
+ * Required. The primary key of the message to be acked.
139
+ */
140
+ key?: any[] | null;
141
+ /**
142
+ * Required. The queue where the message to be acked is stored.
143
+ */
144
+ queue?: string | null;
145
+ }
129
146
  /**
130
147
  * A session in the Cloud Spanner Adapter API.
131
148
  */
@@ -582,10 +599,6 @@ export namespace spanner_v1 {
582
599
  */
583
600
  variable?: string | null;
584
601
  }
585
- /**
586
- * Container for various pieces of client-owned context attached to a request.
587
- */
588
- export interface Schema$ClientContext {}
589
602
  /**
590
603
  * Metadata for a column.
591
604
  */
@@ -670,6 +683,23 @@ export namespace spanner_v1 {
670
683
  */
671
684
  mutationCount?: string | null;
672
685
  }
686
+ /**
687
+ * Metadata type for the long-running operation returned by `CALL compact_all()`, which can be executed using ExecuteSql or ExecuteStreamingSql APIs.
688
+ */
689
+ export interface Schema$CompactDatabaseMetadata {
690
+ /**
691
+ * 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`.
692
+ */
693
+ cancelTime?: string | null;
694
+ /**
695
+ * Output only. The database being compacted.
696
+ */
697
+ database?: string | null;
698
+ /**
699
+ * Output only. The progress of the compaction operation.
700
+ */
701
+ progress?: Schema$OperationProgress;
702
+ }
673
703
  /**
674
704
  * A message representing context for a KeyRangeInfo, including a label, value, unit, and severity.
675
705
  */
@@ -1951,7 +1981,7 @@ export namespace spanner_v1 {
1951
1981
  */
1952
1982
  operations?: Schema$Operation[];
1953
1983
  /**
1954
- * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
1984
+ * 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.
1955
1985
  */
1956
1986
  unreachable?: string[] | null;
1957
1987
  }
@@ -2147,6 +2177,10 @@ export namespace spanner_v1 {
2147
2177
  * 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.
2148
2178
  */
2149
2179
  export interface Schema$Mutation {
2180
+ /**
2181
+ * Ack a message from a queue.
2182
+ */
2183
+ ack?: Schema$Ack;
2150
2184
  /**
2151
2185
  * Delete rows from a table. Succeeds whether or not the named rows were present.
2152
2186
  */
@@ -2163,6 +2197,10 @@ export namespace spanner_v1 {
2163
2197
  * 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.
2164
2198
  */
2165
2199
  replace?: Schema$Write;
2200
+ /**
2201
+ * Send a message to a queue.
2202
+ */
2203
+ send?: Schema$Send;
2166
2204
  /**
2167
2205
  * Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error `NOT_FOUND`.
2168
2206
  */
@@ -2708,10 +2746,6 @@ export namespace spanner_v1 {
2708
2746
  * Common request options for various APIs.
2709
2747
  */
2710
2748
  export interface Schema$RequestOptions {
2711
- /**
2712
- * Optional. Optional context that may be needed for some requests.
2713
- */
2714
- clientContext?: Schema$ClientContext;
2715
2749
  /**
2716
2750
  * Priority for the request.
2717
2751
  */
@@ -2721,7 +2755,7 @@ export namespace spanner_v1 {
2721
2755
  */
2722
2756
  requestTag?: string | null;
2723
2757
  /**
2724
- * A tag used for statistics collection about this transaction. Both `request_tag` and `transaction_tag` can be specified for a read or query that belongs to a transaction. The value of transaction_tag should be the same for all requests belonging to the same transaction. If this request doesn't belong to any transaction, `transaction_tag` is ignored. Legal characters for `transaction_tag` values are all printable characters (ASCII 32 - 126) and the length of a `transaction_tag` is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters are removed from the string.
2758
+ * A tag used for statistics collection about this transaction. Both `request_tag` and `transaction_tag` can be specified for a read or query that belongs to a transaction. To enable tagging on a transaction, `transaction_tag` must be set to the same value for all requests belonging to the same transaction, including BeginTransaction. If this request doesn't belong to any transaction, `transaction_tag` is ignored. Legal characters for `transaction_tag` values are all printable characters (ASCII 32 - 126) and the length of a `transaction_tag` is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters are removed from the string.
2725
2759
  */
2726
2760
  transactionTag?: string | null;
2727
2761
  }
@@ -2911,6 +2945,27 @@ export namespace spanner_v1 {
2911
2945
  */
2912
2946
  startTime?: string | null;
2913
2947
  }
2948
+ /**
2949
+ * Arguments to send operations.
2950
+ */
2951
+ export interface Schema$Send {
2952
+ /**
2953
+ * 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.
2954
+ */
2955
+ deliverTime?: string | null;
2956
+ /**
2957
+ * Required. The primary key of the message to be sent.
2958
+ */
2959
+ key?: any[] | null;
2960
+ /**
2961
+ * The payload of the message.
2962
+ */
2963
+ payload?: any | null;
2964
+ /**
2965
+ * Required. The queue to which the message will be sent.
2966
+ */
2967
+ queue?: string | null;
2968
+ }
2914
2969
  /**
2915
2970
  * A session in the Cloud Spanner API.
2916
2971
  */
@@ -4854,7 +4909,7 @@ export namespace spanner_v1 {
4854
4909
  * pageSize: 'placeholder-value',
4855
4910
  * // The standard list page token.
4856
4911
  * pageToken: 'placeholder-value',
4857
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
4912
+ * // 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.
4858
4913
  * returnPartialSuccess: 'placeholder-value',
4859
4914
  * });
4860
4915
  * console.log(res.data);
@@ -4998,7 +5053,7 @@ export namespace spanner_v1 {
4998
5053
  */
4999
5054
  pageToken?: string;
5000
5055
  /**
5001
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
5056
+ * 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.
5002
5057
  */
5003
5058
  returnPartialSuccess?: boolean;
5004
5059
  }
@@ -5479,7 +5534,7 @@ export namespace spanner_v1 {
5479
5534
  * pageSize: 'placeholder-value',
5480
5535
  * // The standard list page token.
5481
5536
  * pageToken: 'placeholder-value',
5482
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
5537
+ * // 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.
5483
5538
  * returnPartialSuccess: 'placeholder-value',
5484
5539
  * });
5485
5540
  * console.log(res.data);
@@ -5624,7 +5679,7 @@ export namespace spanner_v1 {
5624
5679
  */
5625
5680
  pageToken?: string;
5626
5681
  /**
5627
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
5682
+ * 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.
5628
5683
  */
5629
5684
  returnPartialSuccess?: boolean;
5630
5685
  }
@@ -9285,7 +9340,7 @@ export namespace spanner_v1 {
9285
9340
  * pageSize: 'placeholder-value',
9286
9341
  * // The standard list page token.
9287
9342
  * pageToken: 'placeholder-value',
9288
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
9343
+ * // 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.
9289
9344
  * returnPartialSuccess: 'placeholder-value',
9290
9345
  * });
9291
9346
  * console.log(res.data);
@@ -9430,7 +9485,7 @@ export namespace spanner_v1 {
9430
9485
  */
9431
9486
  pageToken?: string;
9432
9487
  /**
9433
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
9488
+ * 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.
9434
9489
  */
9435
9490
  returnPartialSuccess?: boolean;
9436
9491
  }
@@ -14020,7 +14075,7 @@ export namespace spanner_v1 {
14020
14075
  * pageSize: 'placeholder-value',
14021
14076
  * // The standard list page token.
14022
14077
  * pageToken: 'placeholder-value',
14023
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
14078
+ * // 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.
14024
14079
  * returnPartialSuccess: 'placeholder-value',
14025
14080
  * });
14026
14081
  * console.log(res.data);
@@ -14165,7 +14220,7 @@ export namespace spanner_v1 {
14165
14220
  */
14166
14221
  pageToken?: string;
14167
14222
  /**
14168
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
14223
+ * 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.
14169
14224
  */
14170
14225
  returnPartialSuccess?: boolean;
14171
14226
  }
@@ -18658,7 +18713,7 @@ export namespace spanner_v1 {
18658
18713
  * pageSize: 'placeholder-value',
18659
18714
  * // The standard list page token.
18660
18715
  * pageToken: 'placeholder-value',
18661
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
18716
+ * // 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.
18662
18717
  * returnPartialSuccess: 'placeholder-value',
18663
18718
  * });
18664
18719
  * console.log(res.data);
@@ -18803,7 +18858,7 @@ export namespace spanner_v1 {
18803
18858
  */
18804
18859
  pageToken?: string;
18805
18860
  /**
18806
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
18861
+ * 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.
18807
18862
  */
18808
18863
  returnPartialSuccess?: boolean;
18809
18864
  }
@@ -19267,7 +19322,7 @@ export namespace spanner_v1 {
19267
19322
  * pageSize: 'placeholder-value',
19268
19323
  * // The standard list page token.
19269
19324
  * pageToken: 'placeholder-value',
19270
- * // 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
19325
+ * // 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.
19271
19326
  * returnPartialSuccess: 'placeholder-value',
19272
19327
  * });
19273
19328
  * console.log(res.data);
@@ -19411,7 +19466,7 @@ export namespace spanner_v1 {
19411
19466
  */
19412
19467
  pageToken?: string;
19413
19468
  /**
19414
- * 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 e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
19469
+ * 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.
19415
19470
  */
19416
19471
  returnPartialSuccess?: boolean;
19417
19472
  }