@maxim_mazurok/gapi.client.datamigration-v1 0.0.20230610 → 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.
- package/index.d.ts +113 -1
- package/package.json +1 -1
- package/tests.ts +13 -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:
|
|
12
|
+
// Revision: 20230622
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -212,6 +212,9 @@ declare namespace gapi.client {
|
|
|
212
212
|
/** The type of storage: `PD_SSD` (default) or `PD_HDD`. */
|
|
213
213
|
dataDiskType?:
|
|
214
214
|
string;
|
|
215
|
+
/** Optional. The edition of the given Cloud SQL instance. */
|
|
216
|
+
edition?:
|
|
217
|
+
string;
|
|
215
218
|
/** The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled. */
|
|
216
219
|
ipConfig?:
|
|
217
220
|
SqlIpConfig;
|
|
@@ -631,6 +634,26 @@ declare namespace gapi.client {
|
|
|
631
634
|
vmSelectionConfig?:
|
|
632
635
|
VmSelectionConfig;
|
|
633
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
|
+
}
|
|
634
657
|
interface GoogleCloudClouddmsV1OperationMetadata {
|
|
635
658
|
/** Output only. API version used to start the operation. */
|
|
636
659
|
apiVersion?:
|
|
@@ -1324,6 +1347,11 @@ declare namespace gapi.client {
|
|
|
1324
1347
|
triggers?:
|
|
1325
1348
|
TriggerEntity[];
|
|
1326
1349
|
}
|
|
1350
|
+
interface TcpProxyScript {
|
|
1351
|
+
/** The TCP Proxy configuration script. */
|
|
1352
|
+
script?:
|
|
1353
|
+
string;
|
|
1354
|
+
}
|
|
1327
1355
|
interface TestIamPermissionsRequest {
|
|
1328
1356
|
/**
|
|
1329
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
|
|
@@ -2370,6 +2398,9 @@ declare namespace gapi.client {
|
|
|
2370
2398
|
/** Selector specifying which fields to include in a partial response. */
|
|
2371
2399
|
fields?:
|
|
2372
2400
|
string;
|
|
2401
|
+
/** Force delete the conversion workspace, even if there's a running migration that is using the workspace. */
|
|
2402
|
+
force?:
|
|
2403
|
+
boolean;
|
|
2373
2404
|
/** 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. */
|
|
2374
2405
|
key?:
|
|
2375
2406
|
string;
|
|
@@ -3298,6 +3329,87 @@ declare namespace gapi.client {
|
|
|
3298
3329
|
string;
|
|
3299
3330
|
},
|
|
3300
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>;
|
|
3301
3413
|
/** Gets details of a single migration job. */
|
|
3302
3414
|
get(request?: {
|
|
3303
3415
|
/** V1 error format. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230622
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -101,6 +101,7 @@ gapi.load('client', async () => {
|
|
|
101
101
|
databaseVersion: "Test string",
|
|
102
102
|
dataDiskSizeGb: "Test string",
|
|
103
103
|
dataDiskType: "Test string",
|
|
104
|
+
edition: "Test string",
|
|
104
105
|
ipConfig: {
|
|
105
106
|
allocatedIpRange: "Test string",
|
|
106
107
|
authorizedNetworks: [
|
|
@@ -284,6 +285,7 @@ gapi.load('client', async () => {
|
|
|
284
285
|
databaseVersion: "Test string",
|
|
285
286
|
dataDiskSizeGb: "Test string",
|
|
286
287
|
dataDiskType: "Test string",
|
|
288
|
+
edition: "Test string",
|
|
287
289
|
ipConfig: {
|
|
288
290
|
allocatedIpRange: "Test string",
|
|
289
291
|
authorizedNetworks: [
|
|
@@ -484,6 +486,7 @@ gapi.load('client', async () => {
|
|
|
484
486
|
});
|
|
485
487
|
/** Deletes a single conversion workspace. */
|
|
486
488
|
await gapi.client.datamigration.projects.locations.conversionWorkspaces.delete({
|
|
489
|
+
force: true,
|
|
487
490
|
name: "Test string",
|
|
488
491
|
requestId: "Test string",
|
|
489
492
|
});
|
|
@@ -715,6 +718,15 @@ gapi.load('client', async () => {
|
|
|
715
718
|
vmZone: "Test string",
|
|
716
719
|
},
|
|
717
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
|
+
});
|
|
718
730
|
/** Gets details of a single migration job. */
|
|
719
731
|
await gapi.client.datamigration.projects.locations.migrationJobs.get({
|
|
720
732
|
name: "Test string",
|