@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20230523 → 0.0.20230530

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/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://sqladmin.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230523
12
+ // Revision: 20230530
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -68,7 +68,7 @@ declare namespace gapi.client {
68
68
  /** Location of the backup */
69
69
  location?:
70
70
  string;
71
- /** (Postgres only) Whether point in time recovery is enabled. */
71
+ /** Whether point in time recovery is enabled. */
72
72
  pointInTimeRecoveryEnabled?:
73
73
  boolean;
74
74
  /** Reserved for future use. */
@@ -201,9 +201,6 @@ declare namespace gapi.client {
201
201
  /** Timestamp, if specified, identifies the time to which the source instance is cloned. */
202
202
  pointInTime?:
203
203
  string;
204
- /** (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. */
205
- preferredZone?:
206
- string;
207
204
  }
208
205
  interface ConnectSettings {
209
206
  /**
@@ -507,6 +504,9 @@ declare namespace gapi.client {
507
504
  kmsKeyVersionName?:
508
505
  string;
509
506
  }
507
+ // tslint:disable-next-line:no-empty-interface
508
+ interface Empty {
509
+ }
510
510
  interface ExportContext {
511
511
  /** Options for exporting BAK files (SQL Server-only) */
512
512
  bakExportOptions?:
@@ -1342,6 +1342,9 @@ declare namespace gapi.client {
1342
1342
  /** External sync mode. */
1343
1343
  syncMode?:
1344
1344
  string;
1345
+ /** Optional. Parallel level for initial data sync. Currently only applicable for MySQL. */
1346
+ syncParallelLevel?:
1347
+ string;
1345
1348
  }
1346
1349
  interface SqlInstancesVerifyExternalSyncSettingsRequest {
1347
1350
  /** Optional. MySQL-specific settings for start external sync. */
@@ -3812,6 +3815,48 @@ declare namespace gapi.client {
3812
3815
  body: DatabaseInstance): Request<Operation>;
3813
3816
  }
3814
3817
  interface OperationsResource {
3818
+ /** Cancels an instance operation that has been performed on an instance. */
3819
+ cancel(request?: {
3820
+ /** V1 error format. */
3821
+ "$.xgafv"?:
3822
+ string;
3823
+ /** OAuth access token. */
3824
+ access_token?:
3825
+ string;
3826
+ /** Data format for response. */
3827
+ alt?:
3828
+ string;
3829
+ /** JSONP */
3830
+ callback?:
3831
+ string;
3832
+ /** Selector specifying which fields to include in a partial response. */
3833
+ fields?:
3834
+ string;
3835
+ /** 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. */
3836
+ key?:
3837
+ string;
3838
+ /** OAuth 2.0 token for the current user. */
3839
+ oauth_token?:
3840
+ string;
3841
+ /** Instance operation ID. */
3842
+ operation:
3843
+ string;
3844
+ /** Returns response with indentations and line breaks. */
3845
+ prettyPrint?:
3846
+ boolean;
3847
+ /** Project ID of the project that contains the instance. */
3848
+ project:
3849
+ string;
3850
+ /** 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. */
3851
+ quotaUser?:
3852
+ string;
3853
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3854
+ upload_protocol?:
3855
+ string;
3856
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3857
+ uploadType?:
3858
+ string;
3859
+ }): Request<{}>;
3815
3860
  /** Retrieves an instance operation that has been performed on an instance. */
3816
3861
  get(request?: {
3817
3862
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20230523",
3
+ "version": "0.0.20230530",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -239,6 +239,11 @@ Updates settings of a Cloud SQL instance. Using this operation might cause your
239
239
  */
240
240
  await gapi.client.sql.instances.update({ instance: "instance", project: "project", });
241
241
 
242
+ /*
243
+ Cancels an instance operation that has been performed on an instance.
244
+ */
245
+ await gapi.client.sql.operations.cancel({ operation: "operation", project: "project", });
246
+
242
247
  /*
243
248
  Retrieves an instance operation that has been performed on an instance.
244
249
  */
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230523
6
+ // Revision: 20230530
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -206,7 +206,6 @@ gapi.load('client', async () => {
206
206
  kind: "Test string",
207
207
  pitrTimestampMs: "Test string",
208
208
  pointInTime: "Test string",
209
- preferredZone: "Test string",
210
209
  },
211
210
  });
212
211
  /** Deletes a Cloud SQL instance. */
@@ -1050,6 +1049,11 @@ gapi.load('client', async () => {
1050
1049
  "Test string"
1051
1050
  ],
1052
1051
  });
1052
+ /** Cancels an instance operation that has been performed on an instance. */
1053
+ await gapi.client.sql.operations.cancel({
1054
+ operation: "Test string",
1055
+ project: "Test string",
1056
+ });
1053
1057
  /** Retrieves an instance operation that has been performed on an instance. */
1054
1058
  await gapi.client.sql.operations.get({
1055
1059
  operation: "Test string",
@@ -1105,6 +1109,7 @@ gapi.load('client', async () => {
1105
1109
  },
1106
1110
  skipVerification: true,
1107
1111
  syncMode: "Test string",
1112
+ syncParallelLevel: "Test string",
1108
1113
  });
1109
1114
  /** Verify External primary instance external sync settings. */
1110
1115
  await gapi.client.sql.projects.instances.verifyExternalSyncSettings({