@maxim_mazurok/gapi.client.datamigration-v1 0.0.20230619 → 0.0.20230622

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 +107 -1
  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://datamigration.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230619
12
+ // Revision: 20230622
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -634,6 +634,26 @@ declare namespace gapi.client {
634
634
  vmSelectionConfig?:
635
635
  VmSelectionConfig;
636
636
  }
637
+ interface GenerateTcpProxyScriptRequest {
638
+ /** Required. The type of the Compute instance that will host the proxy. */
639
+ vmMachineType?:
640
+ string;
641
+ /** Required. The name of the Compute instance that will host the proxy. */
642
+ vmName?:
643
+ string;
644
+ /**
645
+ * Required. The name of the subnet the Compute instance will use for private connectivity. Must be supplied in the form of
646
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}. Note: the region for the subnet must match the Compute instance region.
647
+ */
648
+ vmSubnet?:
649
+ string;
650
+ /**
651
+ * Optional. The Google Cloud Platform zone to create the VM in. The fully qualified name of the zone must be specified, including the region name, for example "us-central1-b". If not
652
+ * specified, uses the "-b" zone of the destination Connection Profile's region.
653
+ */
654
+ vmZone?:
655
+ string;
656
+ }
637
657
  interface GoogleCloudClouddmsV1OperationMetadata {
638
658
  /** Output only. API version used to start the operation. */
639
659
  apiVersion?:
@@ -1327,6 +1347,11 @@ declare namespace gapi.client {
1327
1347
  triggers?:
1328
1348
  TriggerEntity[];
1329
1349
  }
1350
+ interface TcpProxyScript {
1351
+ /** The TCP Proxy configuration script. */
1352
+ script?:
1353
+ string;
1354
+ }
1330
1355
  interface TestIamPermissionsRequest {
1331
1356
  /**
1332
1357
  * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
@@ -3304,6 +3329,87 @@ declare namespace gapi.client {
3304
3329
  string;
3305
3330
  },
3306
3331
  body: GenerateSshScriptRequest): Request<SshScript>;
3332
+ /** Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. */
3333
+ generateTcpProxyScript(request: {
3334
+ /** V1 error format. */
3335
+ "$.xgafv"?:
3336
+ string;
3337
+ /** OAuth access token. */
3338
+ access_token?:
3339
+ string;
3340
+ /** Data format for response. */
3341
+ alt?:
3342
+ string;
3343
+ /** JSONP */
3344
+ callback?:
3345
+ string;
3346
+ /** Selector specifying which fields to include in a partial response. */
3347
+ fields?:
3348
+ string;
3349
+ /** 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. */
3350
+ key?:
3351
+ string;
3352
+ /** Name of the migration job resource to generate the TCP Proxy script. */
3353
+ migrationJob:
3354
+ string;
3355
+ /** OAuth 2.0 token for the current user. */
3356
+ oauth_token?:
3357
+ string;
3358
+ /** Returns response with indentations and line breaks. */
3359
+ prettyPrint?:
3360
+ boolean;
3361
+ /** 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. */
3362
+ quotaUser?:
3363
+ string;
3364
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3365
+ upload_protocol?:
3366
+ string;
3367
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3368
+ uploadType?:
3369
+ string;
3370
+ /** Request body */
3371
+ resource:
3372
+ GenerateTcpProxyScriptRequest;
3373
+ }): Request<TcpProxyScript>;
3374
+ generateTcpProxyScript(request: {
3375
+ /** V1 error format. */
3376
+ "$.xgafv"?:
3377
+ string;
3378
+ /** OAuth access token. */
3379
+ access_token?:
3380
+ string;
3381
+ /** Data format for response. */
3382
+ alt?:
3383
+ string;
3384
+ /** JSONP */
3385
+ callback?:
3386
+ string;
3387
+ /** Selector specifying which fields to include in a partial response. */
3388
+ fields?:
3389
+ string;
3390
+ /** 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. */
3391
+ key?:
3392
+ string;
3393
+ /** Name of the migration job resource to generate the TCP Proxy script. */
3394
+ migrationJob:
3395
+ string;
3396
+ /** OAuth 2.0 token for the current user. */
3397
+ oauth_token?:
3398
+ string;
3399
+ /** Returns response with indentations and line breaks. */
3400
+ prettyPrint?:
3401
+ boolean;
3402
+ /** 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. */
3403
+ quotaUser?:
3404
+ string;
3405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3406
+ upload_protocol?:
3407
+ string;
3408
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3409
+ uploadType?:
3410
+ string;
3411
+ },
3412
+ body: GenerateTcpProxyScriptRequest): Request<TcpProxyScript>;
3307
3413
  /** Gets details of a single migration job. */
3308
3414
  get(request?: {
3309
3415
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datamigration-v1",
3
- "version": "0.0.20230619",
3
+ "version": "0.0.20230622",
4
4
  "description": "TypeScript typings for Database Migration 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: 20230619
6
+ // Revision: 20230622
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -718,6 +718,15 @@ gapi.load('client', async () => {
718
718
  vmZone: "Test string",
719
719
  },
720
720
  });
721
+ /** Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy. */
722
+ await gapi.client.datamigration.projects.locations.migrationJobs.generateTcpProxyScript({
723
+ migrationJob: "Test string",
724
+ }, {
725
+ vmMachineType: "Test string",
726
+ vmName: "Test string",
727
+ vmSubnet: "Test string",
728
+ vmZone: "Test string",
729
+ });
721
730
  /** Gets details of a single migration job. */
722
731
  await gapi.client.datamigration.projects.locations.migrationJobs.get({
723
732
  name: "Test string",