@googleapis/spanner 12.1.1 → 12.3.0

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
  */
@@ -666,6 +683,23 @@ export namespace spanner_v1 {
666
683
  */
667
684
  mutationCount?: string | null;
668
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
+ }
669
703
  /**
670
704
  * A message representing context for a KeyRangeInfo, including a label, value, unit, and severity.
671
705
  */
@@ -1947,7 +1981,7 @@ export namespace spanner_v1 {
1947
1981
  */
1948
1982
  operations?: Schema$Operation[];
1949
1983
  /**
1950
- * 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.
1951
1985
  */
1952
1986
  unreachable?: string[] | null;
1953
1987
  }
@@ -2143,6 +2177,10 @@ export namespace spanner_v1 {
2143
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.
2144
2178
  */
2145
2179
  export interface Schema$Mutation {
2180
+ /**
2181
+ * Ack a message from a queue.
2182
+ */
2183
+ ack?: Schema$Ack;
2146
2184
  /**
2147
2185
  * Delete rows from a table. Succeeds whether or not the named rows were present.
2148
2186
  */
@@ -2159,6 +2197,10 @@ export namespace spanner_v1 {
2159
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.
2160
2198
  */
2161
2199
  replace?: Schema$Write;
2200
+ /**
2201
+ * Send a message to a queue.
2202
+ */
2203
+ send?: Schema$Send;
2162
2204
  /**
2163
2205
  * Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error `NOT_FOUND`.
2164
2206
  */
@@ -2903,6 +2945,27 @@ export namespace spanner_v1 {
2903
2945
  */
2904
2946
  startTime?: string | null;
2905
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
+ }
2906
2969
  /**
2907
2970
  * A session in the Cloud Spanner API.
2908
2971
  */
@@ -2924,7 +2987,7 @@ export namespace spanner_v1 {
2924
2987
  */
2925
2988
  labels?: {[key: string]: string} | null;
2926
2989
  /**
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.
2990
+ * 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.
2928
2991
  */
2929
2992
  multiplexed?: boolean | null;
2930
2993
  /**
@@ -4846,7 +4909,7 @@ export namespace spanner_v1 {
4846
4909
  * pageSize: 'placeholder-value',
4847
4910
  * // The standard list page token.
4848
4911
  * pageToken: 'placeholder-value',
4849
- * // 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.
4850
4913
  * returnPartialSuccess: 'placeholder-value',
4851
4914
  * });
4852
4915
  * console.log(res.data);
@@ -4990,7 +5053,7 @@ export namespace spanner_v1 {
4990
5053
  */
4991
5054
  pageToken?: string;
4992
5055
  /**
4993
- * 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.
4994
5057
  */
4995
5058
  returnPartialSuccess?: boolean;
4996
5059
  }
@@ -5471,7 +5534,7 @@ export namespace spanner_v1 {
5471
5534
  * pageSize: 'placeholder-value',
5472
5535
  * // The standard list page token.
5473
5536
  * pageToken: 'placeholder-value',
5474
- * // 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.
5475
5538
  * returnPartialSuccess: 'placeholder-value',
5476
5539
  * });
5477
5540
  * console.log(res.data);
@@ -5616,7 +5679,7 @@ export namespace spanner_v1 {
5616
5679
  */
5617
5680
  pageToken?: string;
5618
5681
  /**
5619
- * 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.
5620
5683
  */
5621
5684
  returnPartialSuccess?: boolean;
5622
5685
  }
@@ -9277,7 +9340,7 @@ export namespace spanner_v1 {
9277
9340
  * pageSize: 'placeholder-value',
9278
9341
  * // The standard list page token.
9279
9342
  * pageToken: 'placeholder-value',
9280
- * // 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.
9281
9344
  * returnPartialSuccess: 'placeholder-value',
9282
9345
  * });
9283
9346
  * console.log(res.data);
@@ -9422,7 +9485,7 @@ export namespace spanner_v1 {
9422
9485
  */
9423
9486
  pageToken?: string;
9424
9487
  /**
9425
- * 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.
9426
9489
  */
9427
9490
  returnPartialSuccess?: boolean;
9428
9491
  }
@@ -14012,7 +14075,7 @@ export namespace spanner_v1 {
14012
14075
  * pageSize: 'placeholder-value',
14013
14076
  * // The standard list page token.
14014
14077
  * pageToken: 'placeholder-value',
14015
- * // 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.
14016
14079
  * returnPartialSuccess: 'placeholder-value',
14017
14080
  * });
14018
14081
  * console.log(res.data);
@@ -14157,7 +14220,7 @@ export namespace spanner_v1 {
14157
14220
  */
14158
14221
  pageToken?: string;
14159
14222
  /**
14160
- * 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.
14161
14224
  */
14162
14225
  returnPartialSuccess?: boolean;
14163
14226
  }
@@ -18650,7 +18713,7 @@ export namespace spanner_v1 {
18650
18713
  * pageSize: 'placeholder-value',
18651
18714
  * // The standard list page token.
18652
18715
  * pageToken: 'placeholder-value',
18653
- * // 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.
18654
18717
  * returnPartialSuccess: 'placeholder-value',
18655
18718
  * });
18656
18719
  * console.log(res.data);
@@ -18795,7 +18858,7 @@ export namespace spanner_v1 {
18795
18858
  */
18796
18859
  pageToken?: string;
18797
18860
  /**
18798
- * 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.
18799
18862
  */
18800
18863
  returnPartialSuccess?: boolean;
18801
18864
  }
@@ -19259,7 +19322,7 @@ export namespace spanner_v1 {
19259
19322
  * pageSize: 'placeholder-value',
19260
19323
  * // The standard list page token.
19261
19324
  * pageToken: 'placeholder-value',
19262
- * // 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.
19263
19326
  * returnPartialSuccess: 'placeholder-value',
19264
19327
  * });
19265
19328
  * console.log(res.data);
@@ -19403,7 +19466,7 @@ export namespace spanner_v1 {
19403
19466
  */
19404
19467
  pageToken?: string;
19405
19468
  /**
19406
- * 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.
19407
19470
  */
19408
19471
  returnPartialSuccess?: boolean;
19409
19472
  }