@maxim_mazurok/gapi.client.spanner-v1 0.0.20240315 → 0.0.20240410

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.
Files changed (2) hide show
  1. package/index.d.ts +64 -2
  2. package/package.json +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: 20240315
12
+ // Revision: 20240410
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -131,7 +131,7 @@ declare namespace gapi.client {
131
131
  variable?: string;
132
132
  }
133
133
  interface CommitRequest {
134
- /** Optional. The amount of latency this request is willing 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 batching delay value between 0 and 500 ms. */
134
+ /** 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. */
135
135
  maxCommitDelay?: string;
136
136
  /** The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list. */
137
137
  mutations?: Mutation[];
@@ -713,6 +713,10 @@ declare namespace gapi.client {
713
713
  /** The columns of the row. */
714
714
  cols?: number[];
715
715
  }
716
+ interface MoveInstanceRequest {
717
+ /** Required. The target instance config for the instance to move. Values are of the form `projects//instanceConfigs/`. */
718
+ targetConfig?: string;
719
+ }
716
720
  interface Mutation {
717
721
  /** Delete rows from a table. Succeeds whether or not the named rows were present. */
718
722
  delete?: Delete;
@@ -4404,6 +4408,64 @@ declare namespace gapi.client {
4404
4408
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4405
4409
  uploadType?: string;
4406
4410
  }): Request<ListInstancesResponse>;
4411
+ /** 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). */
4412
+ move(request: {
4413
+ /** V1 error format. */
4414
+ '$.xgafv'?: string;
4415
+ /** OAuth access token. */
4416
+ access_token?: string;
4417
+ /** Data format for response. */
4418
+ alt?: string;
4419
+ /** JSONP */
4420
+ callback?: string;
4421
+ /** Selector specifying which fields to include in a partial response. */
4422
+ fields?: string;
4423
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4424
+ key?: string;
4425
+ /** Required. The instance to move. Values are of the form `projects//instances/`. */
4426
+ name: string;
4427
+ /** OAuth 2.0 token for the current user. */
4428
+ oauth_token?: string;
4429
+ /** Returns response with indentations and line breaks. */
4430
+ prettyPrint?: boolean;
4431
+ /** 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. */
4432
+ quotaUser?: string;
4433
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4434
+ upload_protocol?: string;
4435
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4436
+ uploadType?: string;
4437
+ /** Request body */
4438
+ resource: MoveInstanceRequest;
4439
+ }): Request<Operation>;
4440
+ move(
4441
+ request: {
4442
+ /** V1 error format. */
4443
+ '$.xgafv'?: string;
4444
+ /** OAuth access token. */
4445
+ access_token?: string;
4446
+ /** Data format for response. */
4447
+ alt?: string;
4448
+ /** JSONP */
4449
+ callback?: string;
4450
+ /** Selector specifying which fields to include in a partial response. */
4451
+ fields?: string;
4452
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4453
+ key?: string;
4454
+ /** Required. The instance to move. Values are of the form `projects//instances/`. */
4455
+ name: string;
4456
+ /** OAuth 2.0 token for the current user. */
4457
+ oauth_token?: string;
4458
+ /** Returns response with indentations and line breaks. */
4459
+ prettyPrint?: boolean;
4460
+ /** 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. */
4461
+ quotaUser?: string;
4462
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4463
+ upload_protocol?: string;
4464
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4465
+ uploadType?: string;
4466
+ },
4467
+ body: MoveInstanceRequest
4468
+ ): Request<Operation>;
4407
4469
  /** 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. */
4408
4470
  patch(request: {
4409
4471
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.spanner-v1",
3
- "version": "0.0.20240315",
3
+ "version": "0.0.20240410",
4
4
  "description": "TypeScript typings for Cloud Spanner API v1",
5
5
  "repository": {
6
6
  "type": "git",