@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20230518 → 0.0.20230521

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=v1beta4
12
- // Revision: 20230518
12
+ // Revision: 20230521
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. */
@@ -507,6 +507,9 @@ declare namespace gapi.client {
507
507
  kmsKeyVersionName?:
508
508
  string;
509
509
  }
510
+ // tslint:disable-next-line:no-empty-interface
511
+ interface Empty {
512
+ }
510
513
  interface ExportContext {
511
514
  /** Options for exporting BAK files (SQL Server-only) */
512
515
  bakExportOptions?:
@@ -1345,6 +1348,9 @@ declare namespace gapi.client {
1345
1348
  /** External sync mode. */
1346
1349
  syncMode?:
1347
1350
  string;
1351
+ /** Optional. Parallel level for initial data sync. Currently only applicable for MySQL. */
1352
+ syncParallelLevel?:
1353
+ string;
1348
1354
  }
1349
1355
  interface SqlInstancesVerifyExternalSyncSettingsRequest {
1350
1356
  /** Optional. MySQL-specific settings for start external sync. */
@@ -3815,6 +3821,48 @@ declare namespace gapi.client {
3815
3821
  body: DatabaseInstance): Request<Operation>;
3816
3822
  }
3817
3823
  interface OperationsResource {
3824
+ /** Cancels an instance operation that has been performed on an instance. */
3825
+ cancel(request?: {
3826
+ /** V1 error format. */
3827
+ "$.xgafv"?:
3828
+ string;
3829
+ /** OAuth access token. */
3830
+ access_token?:
3831
+ string;
3832
+ /** Data format for response. */
3833
+ alt?:
3834
+ string;
3835
+ /** JSONP */
3836
+ callback?:
3837
+ string;
3838
+ /** Selector specifying which fields to include in a partial response. */
3839
+ fields?:
3840
+ string;
3841
+ /** 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. */
3842
+ key?:
3843
+ string;
3844
+ /** OAuth 2.0 token for the current user. */
3845
+ oauth_token?:
3846
+ string;
3847
+ /** Instance operation ID. */
3848
+ operation:
3849
+ string;
3850
+ /** Returns response with indentations and line breaks. */
3851
+ prettyPrint?:
3852
+ boolean;
3853
+ /** Project ID of the project that contains the instance. */
3854
+ project:
3855
+ string;
3856
+ /** 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. */
3857
+ quotaUser?:
3858
+ string;
3859
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3860
+ upload_protocol?:
3861
+ string;
3862
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3863
+ uploadType?:
3864
+ string;
3865
+ }): Request<{}>;
3818
3866
  /** Retrieves an instance operation that has been performed on an instance. */
3819
3867
  get(request?: {
3820
3868
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20230518",
3
+ "version": "0.0.20230521",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
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: 20230518
6
+ // Revision: 20230521
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1050,6 +1050,11 @@ gapi.load('client', async () => {
1050
1050
  "Test string"
1051
1051
  ],
1052
1052
  });
1053
+ /** Cancels an instance operation that has been performed on an instance. */
1054
+ await gapi.client.sql.operations.cancel({
1055
+ operation: "Test string",
1056
+ project: "Test string",
1057
+ });
1053
1058
  /** Retrieves an instance operation that has been performed on an instance. */
1054
1059
  await gapi.client.sql.operations.get({
1055
1060
  operation: "Test string",
@@ -1105,6 +1110,7 @@ gapi.load('client', async () => {
1105
1110
  },
1106
1111
  skipVerification: true,
1107
1112
  syncMode: "Test string",
1113
+ syncParallelLevel: "Test string",
1108
1114
  });
1109
1115
  /** Verify External primary instance external sync settings. */
1110
1116
  await gapi.client.sql.projects.instances.verifyExternalSyncSettings({