@googleapis/spanner 12.2.0 → 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/build/v1.d.ts CHANGED
@@ -71,6 +71,23 @@ export declare namespace spanner_v1 {
71
71
  scans: Resource$Scans;
72
72
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
73
73
  }
74
+ /**
75
+ * Arguments to ack operations.
76
+ */
77
+ export interface Schema$Ack {
78
+ /**
79
+ * 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.
80
+ */
81
+ ignoreNotFound?: boolean | null;
82
+ /**
83
+ * Required. The primary key of the message to be acked.
84
+ */
85
+ key?: any[] | null;
86
+ /**
87
+ * Required. The queue where the message to be acked is stored.
88
+ */
89
+ queue?: string | null;
90
+ }
74
91
  /**
75
92
  * A session in the Cloud Spanner Adapter API.
76
93
  */
@@ -532,11 +549,6 @@ export declare namespace spanner_v1 {
532
549
  */
533
550
  variable?: string | null;
534
551
  }
535
- /**
536
- * Container for various pieces of client-owned context attached to a request.
537
- */
538
- export interface Schema$ClientContext {
539
- }
540
552
  /**
541
553
  * Metadata for a column.
542
554
  */
@@ -621,6 +633,23 @@ export declare namespace spanner_v1 {
621
633
  */
622
634
  mutationCount?: string | null;
623
635
  }
636
+ /**
637
+ * Metadata type for the long-running operation returned by `CALL compact_all()`, which can be executed using ExecuteSql or ExecuteStreamingSql APIs.
638
+ */
639
+ export interface Schema$CompactDatabaseMetadata {
640
+ /**
641
+ * 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`.
642
+ */
643
+ cancelTime?: string | null;
644
+ /**
645
+ * Output only. The database being compacted.
646
+ */
647
+ database?: string | null;
648
+ /**
649
+ * Output only. The progress of the compaction operation.
650
+ */
651
+ progress?: Schema$OperationProgress;
652
+ }
624
653
  /**
625
654
  * A message representing context for a KeyRangeInfo, including a label, value, unit, and severity.
626
655
  */
@@ -1918,7 +1947,7 @@ export declare namespace spanner_v1 {
1918
1947
  */
1919
1948
  operations?: Schema$Operation[];
1920
1949
  /**
1921
- * 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.
1950
+ * 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.
1922
1951
  */
1923
1952
  unreachable?: string[] | null;
1924
1953
  }
@@ -2120,6 +2149,10 @@ export declare namespace spanner_v1 {
2120
2149
  * 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.
2121
2150
  */
2122
2151
  export interface Schema$Mutation {
2152
+ /**
2153
+ * Ack a message from a queue.
2154
+ */
2155
+ ack?: Schema$Ack;
2123
2156
  /**
2124
2157
  * Delete rows from a table. Succeeds whether or not the named rows were present.
2125
2158
  */
@@ -2136,6 +2169,10 @@ export declare namespace spanner_v1 {
2136
2169
  * 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.
2137
2170
  */
2138
2171
  replace?: Schema$Write;
2172
+ /**
2173
+ * Send a message to a queue.
2174
+ */
2175
+ send?: Schema$Send;
2139
2176
  /**
2140
2177
  * Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error `NOT_FOUND`.
2141
2178
  */
@@ -2694,10 +2731,6 @@ export declare namespace spanner_v1 {
2694
2731
  * Common request options for various APIs.
2695
2732
  */
2696
2733
  export interface Schema$RequestOptions {
2697
- /**
2698
- * Optional. Optional context that may be needed for some requests.
2699
- */
2700
- clientContext?: Schema$ClientContext;
2701
2734
  /**
2702
2735
  * Priority for the request.
2703
2736
  */
@@ -2901,6 +2934,27 @@ export declare namespace spanner_v1 {
2901
2934
  */
2902
2935
  startTime?: string | null;
2903
2936
  }
2937
+ /**
2938
+ * Arguments to send operations.
2939
+ */
2940
+ export interface Schema$Send {
2941
+ /**
2942
+ * 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.
2943
+ */
2944
+ deliverTime?: string | null;
2945
+ /**
2946
+ * Required. The primary key of the message to be sent.
2947
+ */
2948
+ key?: any[] | null;
2949
+ /**
2950
+ * The payload of the message.
2951
+ */
2952
+ payload?: any | null;
2953
+ /**
2954
+ * Required. The queue to which the message will be sent.
2955
+ */
2956
+ queue?: string | null;
2957
+ }
2904
2958
  /**
2905
2959
  * A session in the Cloud Spanner API.
2906
2960
  */
@@ -4134,7 +4188,7 @@ export declare namespace spanner_v1 {
4134
4188
  * pageSize: 'placeholder-value',
4135
4189
  * // The standard list page token.
4136
4190
  * pageToken: 'placeholder-value',
4137
- * // 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.
4191
+ * // 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.
4138
4192
  * returnPartialSuccess: 'placeholder-value',
4139
4193
  * });
4140
4194
  * console.log(res.data);
@@ -4202,7 +4256,7 @@ export declare namespace spanner_v1 {
4202
4256
  */
4203
4257
  pageToken?: string;
4204
4258
  /**
4205
- * 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.
4259
+ * 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.
4206
4260
  */
4207
4261
  returnPartialSuccess?: boolean;
4208
4262
  }
@@ -4447,7 +4501,7 @@ export declare namespace spanner_v1 {
4447
4501
  * pageSize: 'placeholder-value',
4448
4502
  * // The standard list page token.
4449
4503
  * pageToken: 'placeholder-value',
4450
- * // 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.
4504
+ * // 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.
4451
4505
  * returnPartialSuccess: 'placeholder-value',
4452
4506
  * });
4453
4507
  * console.log(res.data);
@@ -4515,7 +4569,7 @@ export declare namespace spanner_v1 {
4515
4569
  */
4516
4570
  pageToken?: string;
4517
4571
  /**
4518
- * 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.
4572
+ * 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.
4519
4573
  */
4520
4574
  returnPartialSuccess?: boolean;
4521
4575
  }
@@ -6445,7 +6499,7 @@ export declare namespace spanner_v1 {
6445
6499
  * pageSize: 'placeholder-value',
6446
6500
  * // The standard list page token.
6447
6501
  * pageToken: 'placeholder-value',
6448
- * // 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.
6502
+ * // 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.
6449
6503
  * returnPartialSuccess: 'placeholder-value',
6450
6504
  * });
6451
6505
  * console.log(res.data);
@@ -6513,7 +6567,7 @@ export declare namespace spanner_v1 {
6513
6567
  */
6514
6568
  pageToken?: string;
6515
6569
  /**
6516
- * 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.
6570
+ * 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.
6517
6571
  */
6518
6572
  returnPartialSuccess?: boolean;
6519
6573
  }
@@ -8878,7 +8932,7 @@ export declare namespace spanner_v1 {
8878
8932
  * pageSize: 'placeholder-value',
8879
8933
  * // The standard list page token.
8880
8934
  * pageToken: 'placeholder-value',
8881
- * // 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.
8935
+ * // 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.
8882
8936
  * returnPartialSuccess: 'placeholder-value',
8883
8937
  * });
8884
8938
  * console.log(res.data);
@@ -8946,7 +9000,7 @@ export declare namespace spanner_v1 {
8946
9000
  */
8947
9001
  pageToken?: string;
8948
9002
  /**
8949
- * 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.
9003
+ * 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.
8950
9004
  */
8951
9005
  returnPartialSuccess?: boolean;
8952
9006
  }
@@ -11283,7 +11337,7 @@ export declare namespace spanner_v1 {
11283
11337
  * pageSize: 'placeholder-value',
11284
11338
  * // The standard list page token.
11285
11339
  * pageToken: 'placeholder-value',
11286
- * // 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.
11340
+ * // 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.
11287
11341
  * returnPartialSuccess: 'placeholder-value',
11288
11342
  * });
11289
11343
  * console.log(res.data);
@@ -11351,7 +11405,7 @@ export declare namespace spanner_v1 {
11351
11405
  */
11352
11406
  pageToken?: string;
11353
11407
  /**
11354
- * 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.
11408
+ * 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.
11355
11409
  */
11356
11410
  returnPartialSuccess?: boolean;
11357
11411
  }
@@ -11589,7 +11643,7 @@ export declare namespace spanner_v1 {
11589
11643
  * pageSize: 'placeholder-value',
11590
11644
  * // The standard list page token.
11591
11645
  * pageToken: 'placeholder-value',
11592
- * // 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.
11646
+ * // 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.
11593
11647
  * returnPartialSuccess: 'placeholder-value',
11594
11648
  * });
11595
11649
  * console.log(res.data);
@@ -11657,7 +11711,7 @@ export declare namespace spanner_v1 {
11657
11711
  */
11658
11712
  pageToken?: string;
11659
11713
  /**
11660
- * 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.
11714
+ * 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.
11661
11715
  */
11662
11716
  returnPartialSuccess?: boolean;
11663
11717
  }