@maxim_mazurok/gapi.client.sqladmin-v1beta4 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=v1beta4
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?:
@@ -1345,6 +1345,9 @@ declare namespace gapi.client {
1345
1345
  /** External sync mode. */
1346
1346
  syncMode?:
1347
1347
  string;
1348
+ /** Optional. Parallel level for initial data sync. Currently only applicable for MySQL. */
1349
+ syncParallelLevel?:
1350
+ string;
1348
1351
  }
1349
1352
  interface SqlInstancesVerifyExternalSyncSettingsRequest {
1350
1353
  /** Optional. MySQL-specific settings for start external sync. */
@@ -3815,6 +3818,48 @@ declare namespace gapi.client {
3815
3818
  body: DatabaseInstance): Request<Operation>;
3816
3819
  }
3817
3820
  interface OperationsResource {
3821
+ /** Cancels an instance operation that has been performed on an instance. */
3822
+ cancel(request?: {
3823
+ /** V1 error format. */
3824
+ "$.xgafv"?:
3825
+ string;
3826
+ /** OAuth access token. */
3827
+ access_token?:
3828
+ string;
3829
+ /** Data format for response. */
3830
+ alt?:
3831
+ string;
3832
+ /** JSONP */
3833
+ callback?:
3834
+ string;
3835
+ /** Selector specifying which fields to include in a partial response. */
3836
+ fields?:
3837
+ string;
3838
+ /** 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. */
3839
+ key?:
3840
+ string;
3841
+ /** OAuth 2.0 token for the current user. */
3842
+ oauth_token?:
3843
+ string;
3844
+ /** Instance operation ID. */
3845
+ operation:
3846
+ string;
3847
+ /** Returns response with indentations and line breaks. */
3848
+ prettyPrint?:
3849
+ boolean;
3850
+ /** Project ID of the project that contains the instance. */
3851
+ project:
3852
+ string;
3853
+ /** 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. */
3854
+ quotaUser?:
3855
+ string;
3856
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3857
+ upload_protocol?:
3858
+ string;
3859
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3860
+ uploadType?:
3861
+ string;
3862
+ }): Request<{}>;
3818
3863
  /** Retrieves an instance operation that has been performed on an instance. */
3819
3864
  get(request?: {
3820
3865
  /** 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.20230523",
3
+ "version": "0.0.20230530",
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: 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({