@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20231017 → 0.0.20231029

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 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://sqladmin.googleapis.com/$discovery/rest?version=v1beta4
12
- // Revision: 20231017
12
+ // Revision: 20231029
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -449,6 +449,14 @@ declare namespace gapi.client {
449
449
  dataCacheEnabled?:
450
450
  boolean;
451
451
  }
452
+ interface DemoteContext {
453
+ /** This is always `sql#demoteContext`. */
454
+ kind?:
455
+ string;
456
+ /** Required. The name of the instance which acts as an on-premises primary instance in the replication setup. */
457
+ sourceRepresentativeInstanceName?:
458
+ string;
459
+ }
452
460
  interface DemoteMasterConfiguration {
453
461
  /** This is always `sql#demoteMasterConfiguration`. */
454
462
  kind?:
@@ -835,6 +843,11 @@ declare namespace gapi.client {
835
843
  demoteMasterContext?:
836
844
  DemoteMasterContext;
837
845
  }
846
+ interface InstancesDemoteRequest {
847
+ /** Required. This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. */
848
+ demoteContext?:
849
+ DemoteContext;
850
+ }
838
851
  interface InstancesExportRequest {
839
852
  /** Contains details about the export operation. */
840
853
  exportContext?:
@@ -2689,6 +2702,93 @@ declare namespace gapi.client {
2689
2702
  uploadType?:
2690
2703
  string;
2691
2704
  }): Request<Operation>;
2705
+ /** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
2706
+ demote(request: {
2707
+ /** V1 error format. */
2708
+ "$.xgafv"?:
2709
+ string;
2710
+ /** OAuth access token. */
2711
+ access_token?:
2712
+ string;
2713
+ /** Data format for response. */
2714
+ alt?:
2715
+ string;
2716
+ /** JSONP */
2717
+ callback?:
2718
+ string;
2719
+ /** Selector specifying which fields to include in a partial response. */
2720
+ fields?:
2721
+ string;
2722
+ /** Required. The name of the Cloud SQL instance. */
2723
+ instance:
2724
+ string;
2725
+ /** 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. */
2726
+ key?:
2727
+ string;
2728
+ /** OAuth 2.0 token for the current user. */
2729
+ oauth_token?:
2730
+ string;
2731
+ /** Returns response with indentations and line breaks. */
2732
+ prettyPrint?:
2733
+ boolean;
2734
+ /** Required. The project ID of the project that contains the instance. */
2735
+ project:
2736
+ string;
2737
+ /** 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. */
2738
+ quotaUser?:
2739
+ string;
2740
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2741
+ upload_protocol?:
2742
+ string;
2743
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2744
+ uploadType?:
2745
+ string;
2746
+ /** Request body */
2747
+ resource:
2748
+ InstancesDemoteRequest;
2749
+ }): Request<Operation>;
2750
+ demote(request: {
2751
+ /** V1 error format. */
2752
+ "$.xgafv"?:
2753
+ string;
2754
+ /** OAuth access token. */
2755
+ access_token?:
2756
+ string;
2757
+ /** Data format for response. */
2758
+ alt?:
2759
+ string;
2760
+ /** JSONP */
2761
+ callback?:
2762
+ string;
2763
+ /** Selector specifying which fields to include in a partial response. */
2764
+ fields?:
2765
+ string;
2766
+ /** Required. The name of the Cloud SQL instance. */
2767
+ instance:
2768
+ string;
2769
+ /** 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. */
2770
+ key?:
2771
+ string;
2772
+ /** OAuth 2.0 token for the current user. */
2773
+ oauth_token?:
2774
+ string;
2775
+ /** Returns response with indentations and line breaks. */
2776
+ prettyPrint?:
2777
+ boolean;
2778
+ /** Required. The project ID of the project that contains the instance. */
2779
+ project:
2780
+ string;
2781
+ /** 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. */
2782
+ quotaUser?:
2783
+ string;
2784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2785
+ upload_protocol?:
2786
+ string;
2787
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2788
+ uploadType?:
2789
+ string;
2790
+ },
2791
+ body: InstancesDemoteRequest): Request<Operation>;
2692
2792
  /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
2693
2793
  demoteMaster(request: {
2694
2794
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20231017",
3
+ "version": "0.0.20231029",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -149,6 +149,11 @@ Deletes a Cloud SQL instance.
149
149
  */
150
150
  await gapi.client.sql.instances.delete({ instance: "instance", project: "project", });
151
151
 
152
+ /*
153
+ Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
154
+ */
155
+ await gapi.client.sql.instances.demote({ instance: "instance", project: "project", });
156
+
152
157
  /*
153
158
  Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
154
159
  */
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: 20231017
6
+ // Revision: 20231029
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -214,6 +214,16 @@ gapi.load('client', async () => {
214
214
  instance: "Test string",
215
215
  project: "Test string",
216
216
  });
217
+ /** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
218
+ await gapi.client.sql.instances.demote({
219
+ instance: "Test string",
220
+ project: "Test string",
221
+ }, {
222
+ demoteContext: {
223
+ kind: "Test string",
224
+ sourceRepresentativeInstanceName: "Test string",
225
+ },
226
+ });
217
227
  /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
218
228
  await gapi.client.sql.instances.demoteMaster({
219
229
  instance: "Test string",