@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20231017 → 0.0.20231108

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=v1
12
- // Revision: 20231017
12
+ // Revision: 20231108
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -426,6 +426,8 @@ declare namespace gapi.client {
426
426
  /** The user settings. */
427
427
  settings?:
428
428
  Settings;
429
+ sqlNetworkArchitecture?:
430
+ string;
429
431
  /** The current serving state of the Cloud SQL instance. */
430
432
  state?:
431
433
  string;
@@ -449,6 +451,14 @@ declare namespace gapi.client {
449
451
  dataCacheEnabled?:
450
452
  boolean;
451
453
  }
454
+ interface DemoteContext {
455
+ /** This is always `sql#demoteContext`. */
456
+ kind?:
457
+ string;
458
+ /** Required. The name of the instance which acts as the on-premises primary instance in the replication setup. */
459
+ sourceRepresentativeInstanceName?:
460
+ string;
461
+ }
452
462
  interface DemoteMasterConfiguration {
453
463
  /** This is always `sql#demoteMasterConfiguration`. */
454
464
  kind?:
@@ -832,6 +842,11 @@ declare namespace gapi.client {
832
842
  demoteMasterContext?:
833
843
  DemoteMasterContext;
834
844
  }
845
+ interface InstancesDemoteRequest {
846
+ /** Required. Contains details about the demote operation. */
847
+ demoteContext?:
848
+ DemoteContext;
849
+ }
835
850
  interface InstancesExportRequest {
836
851
  /** Contains details about the export operation. */
837
852
  exportContext?:
@@ -1053,6 +1068,9 @@ declare namespace gapi.client {
1053
1068
  string;
1054
1069
  }
1055
1070
  interface Operation {
1071
+ /** An Admin API warning message. */
1072
+ apiWarning?:
1073
+ ApiWarning;
1056
1074
  /** The context for backup operation, if applicable. */
1057
1075
  backupContext?:
1058
1076
  BackupContext;
@@ -1172,6 +1190,9 @@ declare namespace gapi.client {
1172
1190
  /** The complexity of the password. */
1173
1191
  complexity?:
1174
1192
  string;
1193
+ /** Disallow credentials that have been previously compromised by a public data breach. */
1194
+ disallowCompromisedCredentials?:
1195
+ boolean;
1175
1196
  /** Disallow username as a part of the password. */
1176
1197
  disallowUsernameSubstring?:
1177
1198
  boolean;
@@ -2686,6 +2707,93 @@ declare namespace gapi.client {
2686
2707
  uploadType?:
2687
2708
  string;
2688
2709
  }): Request<Operation>;
2710
+ /** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
2711
+ demote(request: {
2712
+ /** V1 error format. */
2713
+ "$.xgafv"?:
2714
+ string;
2715
+ /** OAuth access token. */
2716
+ access_token?:
2717
+ string;
2718
+ /** Data format for response. */
2719
+ alt?:
2720
+ string;
2721
+ /** JSONP */
2722
+ callback?:
2723
+ string;
2724
+ /** Selector specifying which fields to include in a partial response. */
2725
+ fields?:
2726
+ string;
2727
+ /** Required. Cloud SQL instance name. */
2728
+ instance:
2729
+ string;
2730
+ /** 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. */
2731
+ key?:
2732
+ string;
2733
+ /** OAuth 2.0 token for the current user. */
2734
+ oauth_token?:
2735
+ string;
2736
+ /** Returns response with indentations and line breaks. */
2737
+ prettyPrint?:
2738
+ boolean;
2739
+ /** Required. ID of the project that contains the instance. */
2740
+ project:
2741
+ string;
2742
+ /** 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. */
2743
+ quotaUser?:
2744
+ string;
2745
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2746
+ upload_protocol?:
2747
+ string;
2748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2749
+ uploadType?:
2750
+ string;
2751
+ /** Request body */
2752
+ resource:
2753
+ InstancesDemoteRequest;
2754
+ }): Request<Operation>;
2755
+ demote(request: {
2756
+ /** V1 error format. */
2757
+ "$.xgafv"?:
2758
+ string;
2759
+ /** OAuth access token. */
2760
+ access_token?:
2761
+ string;
2762
+ /** Data format for response. */
2763
+ alt?:
2764
+ string;
2765
+ /** JSONP */
2766
+ callback?:
2767
+ string;
2768
+ /** Selector specifying which fields to include in a partial response. */
2769
+ fields?:
2770
+ string;
2771
+ /** Required. Cloud SQL instance name. */
2772
+ instance:
2773
+ string;
2774
+ /** 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. */
2775
+ key?:
2776
+ string;
2777
+ /** OAuth 2.0 token for the current user. */
2778
+ oauth_token?:
2779
+ string;
2780
+ /** Returns response with indentations and line breaks. */
2781
+ prettyPrint?:
2782
+ boolean;
2783
+ /** Required. ID of the project that contains the instance. */
2784
+ project:
2785
+ string;
2786
+ /** 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. */
2787
+ quotaUser?:
2788
+ string;
2789
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2790
+ upload_protocol?:
2791
+ string;
2792
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2793
+ uploadType?:
2794
+ string;
2795
+ },
2796
+ body: InstancesDemoteRequest): Request<Operation>;
2689
2797
  /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
2690
2798
  demoteMaster(request: {
2691
2799
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20231017",
3
+ "version": "0.0.20231108",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
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: 20231108
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",
@@ -533,6 +543,7 @@ gapi.load('client', async () => {
533
543
  },
534
544
  passwordValidationPolicy: {
535
545
  complexity: "Test string",
546
+ disallowCompromisedCredentials: true,
536
547
  disallowUsernameSubstring: true,
537
548
  enablePasswordPolicy: true,
538
549
  minLength: 42,
@@ -556,6 +567,7 @@ gapi.load('client', async () => {
556
567
  A: "Test string"
557
568
  },
558
569
  },
570
+ sqlNetworkArchitecture: "Test string",
559
571
  state: "Test string",
560
572
  suspensionReason: [
561
573
  "Test string"
@@ -781,6 +793,7 @@ gapi.load('client', async () => {
781
793
  },
782
794
  passwordValidationPolicy: {
783
795
  complexity: "Test string",
796
+ disallowCompromisedCredentials: true,
784
797
  disallowUsernameSubstring: true,
785
798
  enablePasswordPolicy: true,
786
799
  minLength: 42,
@@ -804,6 +817,7 @@ gapi.load('client', async () => {
804
817
  A: "Test string"
805
818
  },
806
819
  },
820
+ sqlNetworkArchitecture: "Test string",
807
821
  state: "Test string",
808
822
  suspensionReason: [
809
823
  "Test string"
@@ -1088,6 +1102,7 @@ gapi.load('client', async () => {
1088
1102
  },
1089
1103
  passwordValidationPolicy: {
1090
1104
  complexity: "Test string",
1105
+ disallowCompromisedCredentials: true,
1091
1106
  disallowUsernameSubstring: true,
1092
1107
  enablePasswordPolicy: true,
1093
1108
  minLength: 42,
@@ -1111,6 +1126,7 @@ gapi.load('client', async () => {
1111
1126
  A: "Test string"
1112
1127
  },
1113
1128
  },
1129
+ sqlNetworkArchitecture: "Test string",
1114
1130
  state: "Test string",
1115
1131
  suspensionReason: [
1116
1132
  "Test string"