@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20221104 → 0.0.20221116

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 (3) hide show
  1. package/index.d.ts +16 -3
  2. package/package.json +1 -1
  3. package/tests.ts +10 -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://sqladmin.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221104
12
+ // Revision: 20221116
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -373,6 +373,13 @@ declare namespace gapi.client {
373
373
  kmsKeyVersionName?: string;
374
374
  }
375
375
  interface ExportContext {
376
+ /** Options for exporting BAK files (SQL Server-only) */
377
+ bakExportOptions?: {
378
+ /** Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen. */
379
+ stripeCount?: number;
380
+ /** Whether or not the export should be striped. */
381
+ striped?: boolean;
382
+ };
376
383
  /** Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only. */
377
384
  csvExportOptions?: {
378
385
  /** Specifies the character that should appear before a data character that needs to be escaped. */
@@ -491,6 +498,8 @@ declare namespace gapi.client {
491
498
  */
492
499
  pvkPath?: string;
493
500
  };
501
+ /** Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. */
502
+ striped?: boolean;
494
503
  };
495
504
  /** Options for importing data as CSV. */
496
505
  csvImportOptions?: {
@@ -605,6 +614,8 @@ declare namespace gapi.client {
605
614
  allocatedIpRange?: string;
606
615
  /** The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`). */
607
616
  authorizedNetworks?: AclEntry[];
617
+ /** Controls connectivity to private IP instances from Google services, such as BigQuery. */
618
+ enablePrivatePathForGoogleCloudServices?: boolean;
608
619
  /** Whether the instance is assigned a public IP address or not. */
609
620
  ipv4Enabled?: boolean;
610
621
  /**
@@ -773,7 +784,7 @@ declare namespace gapi.client {
773
784
  enablePasswordPolicy?: boolean;
774
785
  /** Minimum number of characters allowed. */
775
786
  minLength?: number;
776
- /** Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL. */
787
+ /** Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL. */
777
788
  passwordChangeInterval?: string;
778
789
  /** Number of previous passwords that cannot be reused. */
779
790
  reuseInterval?: number;
@@ -3188,11 +3199,13 @@ declare namespace gapi.client {
3188
3199
  callback?: string;
3189
3200
  /** Selector specifying which fields to include in a partial response. */
3190
3201
  fields?: string;
3202
+ /** Host of a user of the instance. */
3203
+ host?: string;
3191
3204
  /** Database instance ID. This does not include the project ID. */
3192
3205
  instance: string;
3193
3206
  /** 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. */
3194
3207
  key?: string;
3195
- /** User of the instance. If the database user has a host, this is specified as {username}@{host} else as {username}. */
3208
+ /** User of the instance. */
3196
3209
  name: string;
3197
3210
  /** OAuth 2.0 token for the current user. */
3198
3211
  oauth_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20221104",
3
+ "version": "0.0.20221116",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20221104
6
+ // Revision: 20221116
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -242,6 +242,10 @@ gapi.load('client', async () => {
242
242
  project: "Test string",
243
243
  }, {
244
244
  exportContext: {
245
+ bakExportOptions: {
246
+ stripeCount: 42,
247
+ striped: true,
248
+ },
245
249
  csvExportOptions: {
246
250
  escapeCharacter: "Test string",
247
251
  fieldsTerminatedBy: "Test string",
@@ -298,6 +302,7 @@ gapi.load('client', async () => {
298
302
  pvkPassword: "Test string",
299
303
  pvkPath: "Test string",
300
304
  },
305
+ striped: true,
301
306
  },
302
307
  csvImportOptions: {
303
308
  columns: [
@@ -481,6 +486,7 @@ gapi.load('client', async () => {
481
486
  value: "Test string",
482
487
  }
483
488
  ],
489
+ enablePrivatePathForGoogleCloudServices: true,
484
490
  ipv4Enabled: true,
485
491
  privateNetwork: "Test string",
486
492
  requireSsl: true,
@@ -709,6 +715,7 @@ gapi.load('client', async () => {
709
715
  value: "Test string",
710
716
  }
711
717
  ],
718
+ enablePrivatePathForGoogleCloudServices: true,
712
719
  ipv4Enabled: true,
713
720
  privateNetwork: "Test string",
714
721
  requireSsl: true,
@@ -979,6 +986,7 @@ gapi.load('client', async () => {
979
986
  value: "Test string",
980
987
  }
981
988
  ],
989
+ enablePrivatePathForGoogleCloudServices: true,
982
990
  ipv4Enabled: true,
983
991
  privateNetwork: "Test string",
984
992
  requireSsl: true,
@@ -1129,6 +1137,7 @@ gapi.load('client', async () => {
1129
1137
  });
1130
1138
  /** Retrieves a resource containing information about a user. */
1131
1139
  await gapi.client.sql.users.get({
1140
+ host: "Test string",
1132
1141
  instance: "Test string",
1133
1142
  name: "Test string",
1134
1143
  project: "Test string",