@maxim_mazurok/gapi.client.datamigration-v1 0.0.20231031 → 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 +88 -1
  2. package/package.json +1 -1
  3. package/tests.ts +9 -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: 20231031
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?:
@@ -3967,6 +3970,90 @@ declare namespace gapi.client {
3967
3970
  uploadType?:
3968
3971
  string;
3969
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>;
3970
4057
  /** Generate a SSH configuration script to configure the reverse SSH connectivity. */
3971
4058
  generateSshScript(request: {
3972
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.20231031",
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: 20231031
6
+ // Revision: 20231106
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -884,6 +884,14 @@ gapi.load('client', async () => {
884
884
  name: "Test string",
885
885
  requestId: "Test string",
886
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
+ });
887
895
  /** Generate a SSH configuration script to configure the reverse SSH connectivity. */
888
896
  await gapi.client.datamigration.projects.locations.migrationJobs.generateSshScript({
889
897
  migrationJob: "Test string",