@maxim_mazurok/gapi.client.datamigration-v1 0.0.20231031 → 0.0.20231111
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 +91 -1
- package/package.json +1 -1
- package/tests.ts +11 -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: 20231111
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -31,6 +31,9 @@ declare namespace gapi.client {
|
|
|
31
31
|
AlloyDbSettings;
|
|
32
32
|
}
|
|
33
33
|
interface AlloyDbSettings {
|
|
34
|
+
/** Optional. The database engine major version. This is an optional field. If a database version is not supplied at cluster creation time, then a default database version will be used. */
|
|
35
|
+
databaseVersion?:
|
|
36
|
+
string;
|
|
34
37
|
/**
|
|
35
38
|
* Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this
|
|
36
39
|
* field is not specified, the cluster will then use default encryption scheme to protect the user data.
|
|
@@ -580,6 +583,9 @@ declare namespace gapi.client {
|
|
|
580
583
|
dataCacheEnabled?:
|
|
581
584
|
boolean;
|
|
582
585
|
}
|
|
586
|
+
// tslint:disable-next-line:no-empty-interface
|
|
587
|
+
interface DemoteDestinationRequest {
|
|
588
|
+
}
|
|
583
589
|
interface DescribeConversionWorkspaceRevisionsResponse {
|
|
584
590
|
/** The list of conversion workspace revisions. */
|
|
585
591
|
revisions?:
|
|
@@ -3967,6 +3973,90 @@ declare namespace gapi.client {
|
|
|
3967
3973
|
uploadType?:
|
|
3968
3974
|
string;
|
|
3969
3975
|
}): Request<Operation>;
|
|
3976
|
+
/**
|
|
3977
|
+
* Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL (for MySQL) 2. PostgreSQL to Cloud
|
|
3978
|
+
* SQL (for PostgreSQL) 3. PostgreSQL to AlloyDB.
|
|
3979
|
+
*/
|
|
3980
|
+
demoteDestination(request: {
|
|
3981
|
+
/** V1 error format. */
|
|
3982
|
+
"$.xgafv"?:
|
|
3983
|
+
string;
|
|
3984
|
+
/** OAuth access token. */
|
|
3985
|
+
access_token?:
|
|
3986
|
+
string;
|
|
3987
|
+
/** Data format for response. */
|
|
3988
|
+
alt?:
|
|
3989
|
+
string;
|
|
3990
|
+
/** JSONP */
|
|
3991
|
+
callback?:
|
|
3992
|
+
string;
|
|
3993
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3994
|
+
fields?:
|
|
3995
|
+
string;
|
|
3996
|
+
/** 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. */
|
|
3997
|
+
key?:
|
|
3998
|
+
string;
|
|
3999
|
+
/** Name of the migration job resource to demote its destination. */
|
|
4000
|
+
name:
|
|
4001
|
+
string;
|
|
4002
|
+
/** OAuth 2.0 token for the current user. */
|
|
4003
|
+
oauth_token?:
|
|
4004
|
+
string;
|
|
4005
|
+
/** Returns response with indentations and line breaks. */
|
|
4006
|
+
prettyPrint?:
|
|
4007
|
+
boolean;
|
|
4008
|
+
/** 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. */
|
|
4009
|
+
quotaUser?:
|
|
4010
|
+
string;
|
|
4011
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4012
|
+
upload_protocol?:
|
|
4013
|
+
string;
|
|
4014
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4015
|
+
uploadType?:
|
|
4016
|
+
string;
|
|
4017
|
+
/** Request body */
|
|
4018
|
+
resource:
|
|
4019
|
+
DemoteDestinationRequest;
|
|
4020
|
+
}): Request<Operation>;
|
|
4021
|
+
demoteDestination(request: {
|
|
4022
|
+
/** V1 error format. */
|
|
4023
|
+
"$.xgafv"?:
|
|
4024
|
+
string;
|
|
4025
|
+
/** OAuth access token. */
|
|
4026
|
+
access_token?:
|
|
4027
|
+
string;
|
|
4028
|
+
/** Data format for response. */
|
|
4029
|
+
alt?:
|
|
4030
|
+
string;
|
|
4031
|
+
/** JSONP */
|
|
4032
|
+
callback?:
|
|
4033
|
+
string;
|
|
4034
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4035
|
+
fields?:
|
|
4036
|
+
string;
|
|
4037
|
+
/** 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. */
|
|
4038
|
+
key?:
|
|
4039
|
+
string;
|
|
4040
|
+
/** Name of the migration job resource to demote its destination. */
|
|
4041
|
+
name:
|
|
4042
|
+
string;
|
|
4043
|
+
/** OAuth 2.0 token for the current user. */
|
|
4044
|
+
oauth_token?:
|
|
4045
|
+
string;
|
|
4046
|
+
/** Returns response with indentations and line breaks. */
|
|
4047
|
+
prettyPrint?:
|
|
4048
|
+
boolean;
|
|
4049
|
+
/** 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. */
|
|
4050
|
+
quotaUser?:
|
|
4051
|
+
string;
|
|
4052
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4053
|
+
upload_protocol?:
|
|
4054
|
+
string;
|
|
4055
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4056
|
+
uploadType?:
|
|
4057
|
+
string;
|
|
4058
|
+
},
|
|
4059
|
+
body: DemoteDestinationRequest): Request<Operation>;
|
|
3970
4060
|
/** Generate a SSH configuration script to configure the reverse SSH connectivity. */
|
|
3971
4061
|
generateSshScript(request: {
|
|
3972
4062
|
/** 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: 20231111
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -57,6 +57,7 @@ gapi.load('client', async () => {
|
|
|
57
57
|
alloydb: {
|
|
58
58
|
clusterId: "Test string",
|
|
59
59
|
settings: {
|
|
60
|
+
databaseVersion: "Test string",
|
|
60
61
|
encryptionConfig: {
|
|
61
62
|
kmsKeyName: "Test string",
|
|
62
63
|
},
|
|
@@ -245,6 +246,7 @@ gapi.load('client', async () => {
|
|
|
245
246
|
alloydb: {
|
|
246
247
|
clusterId: "Test string",
|
|
247
248
|
settings: {
|
|
249
|
+
databaseVersion: "Test string",
|
|
248
250
|
encryptionConfig: {
|
|
249
251
|
kmsKeyName: "Test string",
|
|
250
252
|
},
|
|
@@ -884,6 +886,14 @@ gapi.load('client', async () => {
|
|
|
884
886
|
name: "Test string",
|
|
885
887
|
requestId: "Test string",
|
|
886
888
|
});
|
|
889
|
+
/**
|
|
890
|
+
* Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL (for MySQL) 2. PostgreSQL to Cloud SQL
|
|
891
|
+
* (for PostgreSQL) 3. PostgreSQL to AlloyDB.
|
|
892
|
+
*/
|
|
893
|
+
await gapi.client.datamigration.projects.locations.migrationJobs.demoteDestination({
|
|
894
|
+
name: "Test string",
|
|
895
|
+
}, {
|
|
896
|
+
});
|
|
887
897
|
/** Generate a SSH configuration script to configure the reverse SSH connectivity. */
|
|
888
898
|
await gapi.client.datamigration.projects.locations.migrationJobs.generateSshScript({
|
|
889
899
|
migrationJob: "Test string",
|