@maxim_mazurok/gapi.client.sqladmin-v1beta4 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 +110 -1
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +17 -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://sqladmin.googleapis.com/$discovery/rest?version=v1beta4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231108
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -426,6 +426,9 @@ declare namespace gapi.client {
|
|
|
426
426
|
/** The user settings. */
|
|
427
427
|
settings?:
|
|
428
428
|
Settings;
|
|
429
|
+
/** The SQL network architecture for the instance. */
|
|
430
|
+
sqlNetworkArchitecture?:
|
|
431
|
+
string;
|
|
429
432
|
/** The current serving state of the Cloud SQL instance. */
|
|
430
433
|
state?:
|
|
431
434
|
string;
|
|
@@ -449,6 +452,14 @@ declare namespace gapi.client {
|
|
|
449
452
|
dataCacheEnabled?:
|
|
450
453
|
boolean;
|
|
451
454
|
}
|
|
455
|
+
interface DemoteContext {
|
|
456
|
+
/** This is always `sql#demoteContext`. */
|
|
457
|
+
kind?:
|
|
458
|
+
string;
|
|
459
|
+
/** Required. The name of the instance which acts as an on-premises primary instance in the replication setup. */
|
|
460
|
+
sourceRepresentativeInstanceName?:
|
|
461
|
+
string;
|
|
462
|
+
}
|
|
452
463
|
interface DemoteMasterConfiguration {
|
|
453
464
|
/** This is always `sql#demoteMasterConfiguration`. */
|
|
454
465
|
kind?:
|
|
@@ -835,6 +846,11 @@ declare namespace gapi.client {
|
|
|
835
846
|
demoteMasterContext?:
|
|
836
847
|
DemoteMasterContext;
|
|
837
848
|
}
|
|
849
|
+
interface InstancesDemoteRequest {
|
|
850
|
+
/** Required. This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. */
|
|
851
|
+
demoteContext?:
|
|
852
|
+
DemoteContext;
|
|
853
|
+
}
|
|
838
854
|
interface InstancesExportRequest {
|
|
839
855
|
/** Contains details about the export operation. */
|
|
840
856
|
exportContext?:
|
|
@@ -1056,6 +1072,9 @@ declare namespace gapi.client {
|
|
|
1056
1072
|
string;
|
|
1057
1073
|
}
|
|
1058
1074
|
interface Operation {
|
|
1075
|
+
/** An Admin API warning message. */
|
|
1076
|
+
apiWarning?:
|
|
1077
|
+
ApiWarning;
|
|
1059
1078
|
/** The context for backup operation, if applicable. */
|
|
1060
1079
|
backupContext?:
|
|
1061
1080
|
BackupContext;
|
|
@@ -1175,6 +1194,9 @@ declare namespace gapi.client {
|
|
|
1175
1194
|
/** The complexity of the password. */
|
|
1176
1195
|
complexity?:
|
|
1177
1196
|
string;
|
|
1197
|
+
/** Disallow credentials that have been previously compromised by a public data breach. */
|
|
1198
|
+
disallowCompromisedCredentials?:
|
|
1199
|
+
boolean;
|
|
1178
1200
|
/** Disallow username as a part of the password. */
|
|
1179
1201
|
disallowUsernameSubstring?:
|
|
1180
1202
|
boolean;
|
|
@@ -2689,6 +2711,93 @@ declare namespace gapi.client {
|
|
|
2689
2711
|
uploadType?:
|
|
2690
2712
|
string;
|
|
2691
2713
|
}): Request<Operation>;
|
|
2714
|
+
/** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
|
|
2715
|
+
demote(request: {
|
|
2716
|
+
/** V1 error format. */
|
|
2717
|
+
"$.xgafv"?:
|
|
2718
|
+
string;
|
|
2719
|
+
/** OAuth access token. */
|
|
2720
|
+
access_token?:
|
|
2721
|
+
string;
|
|
2722
|
+
/** Data format for response. */
|
|
2723
|
+
alt?:
|
|
2724
|
+
string;
|
|
2725
|
+
/** JSONP */
|
|
2726
|
+
callback?:
|
|
2727
|
+
string;
|
|
2728
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2729
|
+
fields?:
|
|
2730
|
+
string;
|
|
2731
|
+
/** Required. The name of the Cloud SQL instance. */
|
|
2732
|
+
instance:
|
|
2733
|
+
string;
|
|
2734
|
+
/** 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. */
|
|
2735
|
+
key?:
|
|
2736
|
+
string;
|
|
2737
|
+
/** OAuth 2.0 token for the current user. */
|
|
2738
|
+
oauth_token?:
|
|
2739
|
+
string;
|
|
2740
|
+
/** Returns response with indentations and line breaks. */
|
|
2741
|
+
prettyPrint?:
|
|
2742
|
+
boolean;
|
|
2743
|
+
/** Required. The project ID of the project that contains the instance. */
|
|
2744
|
+
project:
|
|
2745
|
+
string;
|
|
2746
|
+
/** 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. */
|
|
2747
|
+
quotaUser?:
|
|
2748
|
+
string;
|
|
2749
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2750
|
+
upload_protocol?:
|
|
2751
|
+
string;
|
|
2752
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2753
|
+
uploadType?:
|
|
2754
|
+
string;
|
|
2755
|
+
/** Request body */
|
|
2756
|
+
resource:
|
|
2757
|
+
InstancesDemoteRequest;
|
|
2758
|
+
}): Request<Operation>;
|
|
2759
|
+
demote(request: {
|
|
2760
|
+
/** V1 error format. */
|
|
2761
|
+
"$.xgafv"?:
|
|
2762
|
+
string;
|
|
2763
|
+
/** OAuth access token. */
|
|
2764
|
+
access_token?:
|
|
2765
|
+
string;
|
|
2766
|
+
/** Data format for response. */
|
|
2767
|
+
alt?:
|
|
2768
|
+
string;
|
|
2769
|
+
/** JSONP */
|
|
2770
|
+
callback?:
|
|
2771
|
+
string;
|
|
2772
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2773
|
+
fields?:
|
|
2774
|
+
string;
|
|
2775
|
+
/** Required. The name of the Cloud SQL instance. */
|
|
2776
|
+
instance:
|
|
2777
|
+
string;
|
|
2778
|
+
/** 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. */
|
|
2779
|
+
key?:
|
|
2780
|
+
string;
|
|
2781
|
+
/** OAuth 2.0 token for the current user. */
|
|
2782
|
+
oauth_token?:
|
|
2783
|
+
string;
|
|
2784
|
+
/** Returns response with indentations and line breaks. */
|
|
2785
|
+
prettyPrint?:
|
|
2786
|
+
boolean;
|
|
2787
|
+
/** Required. The project ID of the project that contains the instance. */
|
|
2788
|
+
project:
|
|
2789
|
+
string;
|
|
2790
|
+
/** 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. */
|
|
2791
|
+
quotaUser?:
|
|
2792
|
+
string;
|
|
2793
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2794
|
+
upload_protocol?:
|
|
2795
|
+
string;
|
|
2796
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2797
|
+
uploadType?:
|
|
2798
|
+
string;
|
|
2799
|
+
},
|
|
2800
|
+
body: InstancesDemoteRequest): Request<Operation>;
|
|
2692
2801
|
/** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
|
|
2693
2802
|
demoteMaster(request: {
|
|
2694
2803
|
/** V1 error format. */
|
package/package.json
CHANGED
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:
|
|
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"
|