@maxim_mazurok/gapi.client.datamigration-v1 0.0.20231018 → 0.0.20231106

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 +91 -1
  2. package/package.json +1 -1
  3. 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: 20231018
12
+ // Revision: 20231106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -580,6 +580,9 @@ declare namespace gapi.client {
580
580
  dataCacheEnabled?:
581
581
  boolean;
582
582
  }
583
+ // tslint:disable-next-line:no-empty-interface
584
+ interface DemoteDestinationRequest {
585
+ }
583
586
  interface DescribeConversionWorkspaceRevisionsResponse {
584
587
  /** The list of conversion workspace revisions. */
585
588
  revisions?:
@@ -1336,6 +1339,9 @@ declare namespace gapi.client {
1336
1339
  number;
1337
1340
  }
1338
1341
  interface PostgreSqlConnectionProfile {
1342
+ /** Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB cluster ID. */
1343
+ alloydbClusterId?:
1344
+ string;
1339
1345
  /** If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. */
1340
1346
  cloudSqlId?:
1341
1347
  string;
@@ -3964,6 +3970,90 @@ declare namespace gapi.client {
3964
3970
  uploadType?:
3965
3971
  string;
3966
3972
  }): Request<Operation>;
3973
+ /**
3974
+ * 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
3975
+ * SQL (for PostgreSQL) 3. PostgreSQL to AlloyDB.
3976
+ */
3977
+ demoteDestination(request: {
3978
+ /** V1 error format. */
3979
+ "$.xgafv"?:
3980
+ string;
3981
+ /** OAuth access token. */
3982
+ access_token?:
3983
+ string;
3984
+ /** Data format for response. */
3985
+ alt?:
3986
+ string;
3987
+ /** JSONP */
3988
+ callback?:
3989
+ string;
3990
+ /** Selector specifying which fields to include in a partial response. */
3991
+ fields?:
3992
+ string;
3993
+ /** 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. */
3994
+ key?:
3995
+ string;
3996
+ /** Name of the migration job resource to demote its destination. */
3997
+ name:
3998
+ string;
3999
+ /** OAuth 2.0 token for the current user. */
4000
+ oauth_token?:
4001
+ string;
4002
+ /** Returns response with indentations and line breaks. */
4003
+ prettyPrint?:
4004
+ boolean;
4005
+ /** 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. */
4006
+ quotaUser?:
4007
+ string;
4008
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4009
+ upload_protocol?:
4010
+ string;
4011
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4012
+ uploadType?:
4013
+ string;
4014
+ /** Request body */
4015
+ resource:
4016
+ DemoteDestinationRequest;
4017
+ }): Request<Operation>;
4018
+ demoteDestination(request: {
4019
+ /** V1 error format. */
4020
+ "$.xgafv"?:
4021
+ string;
4022
+ /** OAuth access token. */
4023
+ access_token?:
4024
+ string;
4025
+ /** Data format for response. */
4026
+ alt?:
4027
+ string;
4028
+ /** JSONP */
4029
+ callback?:
4030
+ string;
4031
+ /** Selector specifying which fields to include in a partial response. */
4032
+ fields?:
4033
+ string;
4034
+ /** 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. */
4035
+ key?:
4036
+ string;
4037
+ /** Name of the migration job resource to demote its destination. */
4038
+ name:
4039
+ string;
4040
+ /** OAuth 2.0 token for the current user. */
4041
+ oauth_token?:
4042
+ string;
4043
+ /** Returns response with indentations and line breaks. */
4044
+ prettyPrint?:
4045
+ boolean;
4046
+ /** 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. */
4047
+ quotaUser?:
4048
+ string;
4049
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4050
+ upload_protocol?:
4051
+ string;
4052
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4053
+ uploadType?:
4054
+ string;
4055
+ },
4056
+ body: DemoteDestinationRequest): Request<Operation>;
3967
4057
  /** Generate a SSH configuration script to configure the reverse SSH connectivity. */
3968
4058
  generateSshScript(request: {
3969
4059
  /** 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.20231018",
3
+ "version": "0.0.20231106",
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: 20231018
6
+ // Revision: 20231106
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -187,6 +187,7 @@ gapi.load('client', async () => {
187
187
  username: "Test string",
188
188
  },
189
189
  postgresql: {
190
+ alloydbClusterId: "Test string",
190
191
  cloudSqlId: "Test string",
191
192
  host: "Test string",
192
193
  networkArchitecture: "Test string",
@@ -374,6 +375,7 @@ gapi.load('client', async () => {
374
375
  username: "Test string",
375
376
  },
376
377
  postgresql: {
378
+ alloydbClusterId: "Test string",
377
379
  cloudSqlId: "Test string",
378
380
  host: "Test string",
379
381
  networkArchitecture: "Test string",
@@ -882,6 +884,14 @@ gapi.load('client', async () => {
882
884
  name: "Test string",
883
885
  requestId: "Test string",
884
886
  });
887
+ /**
888
+ * 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
889
+ * (for PostgreSQL) 3. PostgreSQL to AlloyDB.
890
+ */
891
+ await gapi.client.datamigration.projects.locations.migrationJobs.demoteDestination({
892
+ name: "Test string",
893
+ }, {
894
+ });
885
895
  /** Generate a SSH configuration script to configure the reverse SSH connectivity. */
886
896
  await gapi.client.datamigration.projects.locations.migrationJobs.generateSshScript({
887
897
  migrationJob: "Test string",