@googleapis/spanner 6.0.0 → 6.1.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/CHANGELOG.md +7 -0
- package/build/v1.d.ts +36 -3
- package/build/v1.js +118 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +195 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/spanner-v6.0.0...spanner-v6.1.0) (2024-05-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **spanner:** update the API ([2d2e0f6](https://github.com/googleapis/google-api-nodejs-client/commit/2d2e0f64b7ceb23e7695939c367d74c7ce14fc2b))
|
|
9
|
+
|
|
3
10
|
## [6.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/spanner-v5.0.0...spanner-v6.0.0) (2024-04-04)
|
|
4
11
|
|
|
5
12
|
|
package/build/v1.d.ts
CHANGED
|
@@ -220,7 +220,7 @@ export declare namespace spanner_v1 {
|
|
|
220
220
|
*/
|
|
221
221
|
export interface Schema$BatchWriteRequest {
|
|
222
222
|
/**
|
|
223
|
-
* Optional. When `exclude_txn_from_change_streams` is set to `true`: *
|
|
223
|
+
* Optional. When `exclude_txn_from_change_streams` is set to `true`: * Modifications from all transactions in this batch write operation will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Modifications from all transactions in this batch write operation will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, Modifications from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.
|
|
224
224
|
*/
|
|
225
225
|
excludeTxnFromChangeStreams?: boolean | null;
|
|
226
226
|
/**
|
|
@@ -301,7 +301,7 @@ export declare namespace spanner_v1 {
|
|
|
301
301
|
*/
|
|
302
302
|
export interface Schema$CommitRequest {
|
|
303
303
|
/**
|
|
304
|
-
* Optional. The amount of latency this request is
|
|
304
|
+
* Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.
|
|
305
305
|
*/
|
|
306
306
|
maxCommitDelay?: string | null;
|
|
307
307
|
/**
|
|
@@ -1548,6 +1548,15 @@ export declare namespace spanner_v1 {
|
|
|
1548
1548
|
*/
|
|
1549
1549
|
cols?: number[] | null;
|
|
1550
1550
|
}
|
|
1551
|
+
/**
|
|
1552
|
+
* The request for MoveInstance.
|
|
1553
|
+
*/
|
|
1554
|
+
export interface Schema$MoveInstanceRequest {
|
|
1555
|
+
/**
|
|
1556
|
+
* Required. The target instance config for the instance to move. Values are of the form `projects//instanceConfigs/`.
|
|
1557
|
+
*/
|
|
1558
|
+
targetConfig?: string | null;
|
|
1559
|
+
}
|
|
1551
1560
|
/**
|
|
1552
1561
|
* 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.
|
|
1553
1562
|
*/
|
|
@@ -2331,7 +2340,7 @@ export declare namespace spanner_v1 {
|
|
|
2331
2340
|
*/
|
|
2332
2341
|
export interface Schema$TransactionOptions {
|
|
2333
2342
|
/**
|
|
2334
|
-
* When `exclude_txn_from_change_streams` is set to `true`: *
|
|
2343
|
+
* When `exclude_txn_from_change_streams` is set to `true`: * Modifications from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Modifications from this transaction will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, Modifications from this transaction will be recorded in all change streams that are tracking columns modified by these transactions. `exclude_txn_from_change_streams` may only be specified for read-write or partitioned-dml transactions, otherwise the API will return an `INVALID_ARGUMENT` error.
|
|
2335
2344
|
*/
|
|
2336
2345
|
excludeTxnFromChangeStreams?: boolean | null;
|
|
2337
2346
|
/**
|
|
@@ -3080,6 +3089,20 @@ export declare namespace spanner_v1 {
|
|
|
3080
3089
|
list(params: Params$Resource$Projects$Instances$List, options: MethodOptions | BodyResponseCallback<Schema$ListInstancesResponse>, callback: BodyResponseCallback<Schema$ListInstancesResponse>): void;
|
|
3081
3090
|
list(params: Params$Resource$Projects$Instances$List, callback: BodyResponseCallback<Schema$ListInstancesResponse>): void;
|
|
3082
3091
|
list(callback: BodyResponseCallback<Schema$ListInstancesResponse>): void;
|
|
3092
|
+
/**
|
|
3093
|
+
* Moves the instance to the target instance config. The returned long-running operation can be used to track the progress of moving the instance. `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following criteria: * Has an ongoing move to a different instance config * Has backups * Has an ongoing update * Is under free trial * Contains any CMEK-enabled databases While the operation is pending: * All other attempts to modify the instance, including changes to its compute capacity, are rejected. * The following database and backup admin operations are rejected: * DatabaseAdmin.CreateDatabase, * DatabaseAdmin.UpdateDatabaseDdl (Disabled if default_leader is specified in the request.) * DatabaseAdmin.RestoreDatabase * DatabaseAdmin.CreateBackup * DatabaseAdmin.CopyBackup * Both the source and target instance configs are subject to hourly compute and storage charges. * The instance may experience higher read-write latencies and a higher transaction abort rate. However, moving an instance does not cause any downtime. The returned long-running operation will have a name of the format `/operations/` and can be used to track the move instance operation. The metadata field type is MoveInstanceMetadata. The response field type is Instance, if successful. Cancelling the operation sets its metadata's cancel_time. Cancellation is not immediate since it involves moving any data previously moved to target instance config back to the original instance config. The same operation can be used to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with CANCELLED status. Upon completion(if not cancelled) of the returned operation: * Instance would be successfully moved to the target instance config. * You are billed for compute and storage in target instance config. Authorization requires `spanner.instances.update` permission on the resource instance. For more details, please see [documentation](https://cloud.google.com/spanner/docs/move-instance).
|
|
3094
|
+
*
|
|
3095
|
+
* @param params - Parameters for request
|
|
3096
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3097
|
+
* @param callback - Optional callback that handles the response.
|
|
3098
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3099
|
+
*/
|
|
3100
|
+
move(params: Params$Resource$Projects$Instances$Move, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3101
|
+
move(params?: Params$Resource$Projects$Instances$Move, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
3102
|
+
move(params: Params$Resource$Projects$Instances$Move, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3103
|
+
move(params: Params$Resource$Projects$Instances$Move, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3104
|
+
move(params: Params$Resource$Projects$Instances$Move, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3105
|
+
move(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3083
3106
|
/**
|
|
3084
3107
|
* Updates an instance, and begins allocating or releasing resources as requested. The returned long-running operation can be used to track the progress of updating the instance. If the named instance does not exist, returns `NOT_FOUND`. Immediately upon completion of this request: * For resource types for which a decrease in the instance's allocation has been requested, billing is based on the newly-requested level. Until completion of the returned operation: * Cancelling the operation sets its metadata's cancel_time, and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance are rejected. * Reading the instance via the API continues to give the pre-request resource levels. Upon completion of the returned operation: * Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance's tables. * The instance's new resource levels are readable via the API. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance modification. The metadata field type is UpdateInstanceMetadata. The response field type is Instance, if successful. Authorization requires `spanner.instances.update` permission on the resource name.
|
|
3085
3108
|
*
|
|
@@ -3181,6 +3204,16 @@ export declare namespace spanner_v1 {
|
|
|
3181
3204
|
*/
|
|
3182
3205
|
parent?: string;
|
|
3183
3206
|
}
|
|
3207
|
+
export interface Params$Resource$Projects$Instances$Move extends StandardParameters {
|
|
3208
|
+
/**
|
|
3209
|
+
* Required. The instance to move. Values are of the form `projects//instances/`.
|
|
3210
|
+
*/
|
|
3211
|
+
name?: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* Request body metadata
|
|
3214
|
+
*/
|
|
3215
|
+
requestBody?: Schema$MoveInstanceRequest;
|
|
3216
|
+
}
|
|
3184
3217
|
export interface Params$Resource$Projects$Instances$Patch extends StandardParameters {
|
|
3185
3218
|
/**
|
|
3186
3219
|
* Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length.
|