@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20231011 → 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 +115 -16
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +11 -4
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:
|
|
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 the 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?:
|
|
@@ -734,10 +742,13 @@ declare namespace gapi.client {
|
|
|
734
742
|
*/
|
|
735
743
|
recoveryOnly?:
|
|
736
744
|
boolean;
|
|
737
|
-
/**
|
|
745
|
+
/**
|
|
746
|
+
* Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example,
|
|
747
|
+
* `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
|
|
748
|
+
*/
|
|
738
749
|
stopAt?:
|
|
739
750
|
string;
|
|
740
|
-
/** Optional.
|
|
751
|
+
/** Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only. */
|
|
741
752
|
stopAtMark?:
|
|
742
753
|
string;
|
|
743
754
|
/** Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. */
|
|
@@ -829,6 +840,11 @@ declare namespace gapi.client {
|
|
|
829
840
|
demoteMasterContext?:
|
|
830
841
|
DemoteMasterContext;
|
|
831
842
|
}
|
|
843
|
+
interface InstancesDemoteRequest {
|
|
844
|
+
/** Required. Contains details about the demote operation. */
|
|
845
|
+
demoteContext?:
|
|
846
|
+
DemoteContext;
|
|
847
|
+
}
|
|
832
848
|
interface InstancesExportRequest {
|
|
833
849
|
/** Contains details about the export operation. */
|
|
834
850
|
exportContext?:
|
|
@@ -915,20 +931,19 @@ declare namespace gapi.client {
|
|
|
915
931
|
pscConfig?:
|
|
916
932
|
PscConfig;
|
|
917
933
|
/**
|
|
918
|
-
*
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
* LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)
|
|
934
|
+
* Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be
|
|
935
|
+
* verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for
|
|
936
|
+
* valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.
|
|
922
937
|
*/
|
|
923
938
|
requireSsl?:
|
|
924
939
|
boolean;
|
|
925
940
|
/**
|
|
926
|
-
* Specify how SSL/TLS
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
*
|
|
930
|
-
*
|
|
931
|
-
*
|
|
941
|
+
* Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server.
|
|
942
|
+
* But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are
|
|
943
|
+
* valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and
|
|
944
|
+
* `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY,
|
|
945
|
+
* require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The
|
|
946
|
+
* database respects `ssl_mode` in this case and only accepts SSL connections.
|
|
932
947
|
*/
|
|
933
948
|
sslMode?:
|
|
934
949
|
string;
|
|
@@ -1170,9 +1185,6 @@ declare namespace gapi.client {
|
|
|
1170
1185
|
/** The complexity of the password. */
|
|
1171
1186
|
complexity?:
|
|
1172
1187
|
string;
|
|
1173
|
-
/** Disallow credentials that have been previously compromised by a public data breach. */
|
|
1174
|
-
disallowCompromisedCredentials?:
|
|
1175
|
-
boolean;
|
|
1176
1188
|
/** Disallow username as a part of the password. */
|
|
1177
1189
|
disallowUsernameSubstring?:
|
|
1178
1190
|
boolean;
|
|
@@ -2687,6 +2699,93 @@ declare namespace gapi.client {
|
|
|
2687
2699
|
uploadType?:
|
|
2688
2700
|
string;
|
|
2689
2701
|
}): Request<Operation>;
|
|
2702
|
+
/** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
|
|
2703
|
+
demote(request: {
|
|
2704
|
+
/** V1 error format. */
|
|
2705
|
+
"$.xgafv"?:
|
|
2706
|
+
string;
|
|
2707
|
+
/** OAuth access token. */
|
|
2708
|
+
access_token?:
|
|
2709
|
+
string;
|
|
2710
|
+
/** Data format for response. */
|
|
2711
|
+
alt?:
|
|
2712
|
+
string;
|
|
2713
|
+
/** JSONP */
|
|
2714
|
+
callback?:
|
|
2715
|
+
string;
|
|
2716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2717
|
+
fields?:
|
|
2718
|
+
string;
|
|
2719
|
+
/** Required. Cloud SQL instance name. */
|
|
2720
|
+
instance:
|
|
2721
|
+
string;
|
|
2722
|
+
/** 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. */
|
|
2723
|
+
key?:
|
|
2724
|
+
string;
|
|
2725
|
+
/** OAuth 2.0 token for the current user. */
|
|
2726
|
+
oauth_token?:
|
|
2727
|
+
string;
|
|
2728
|
+
/** Returns response with indentations and line breaks. */
|
|
2729
|
+
prettyPrint?:
|
|
2730
|
+
boolean;
|
|
2731
|
+
/** Required. ID of the project that contains the instance. */
|
|
2732
|
+
project:
|
|
2733
|
+
string;
|
|
2734
|
+
/** 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. */
|
|
2735
|
+
quotaUser?:
|
|
2736
|
+
string;
|
|
2737
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2738
|
+
upload_protocol?:
|
|
2739
|
+
string;
|
|
2740
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2741
|
+
uploadType?:
|
|
2742
|
+
string;
|
|
2743
|
+
/** Request body */
|
|
2744
|
+
resource:
|
|
2745
|
+
InstancesDemoteRequest;
|
|
2746
|
+
}): Request<Operation>;
|
|
2747
|
+
demote(request: {
|
|
2748
|
+
/** V1 error format. */
|
|
2749
|
+
"$.xgafv"?:
|
|
2750
|
+
string;
|
|
2751
|
+
/** OAuth access token. */
|
|
2752
|
+
access_token?:
|
|
2753
|
+
string;
|
|
2754
|
+
/** Data format for response. */
|
|
2755
|
+
alt?:
|
|
2756
|
+
string;
|
|
2757
|
+
/** JSONP */
|
|
2758
|
+
callback?:
|
|
2759
|
+
string;
|
|
2760
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2761
|
+
fields?:
|
|
2762
|
+
string;
|
|
2763
|
+
/** Required. Cloud SQL instance name. */
|
|
2764
|
+
instance:
|
|
2765
|
+
string;
|
|
2766
|
+
/** 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. */
|
|
2767
|
+
key?:
|
|
2768
|
+
string;
|
|
2769
|
+
/** OAuth 2.0 token for the current user. */
|
|
2770
|
+
oauth_token?:
|
|
2771
|
+
string;
|
|
2772
|
+
/** Returns response with indentations and line breaks. */
|
|
2773
|
+
prettyPrint?:
|
|
2774
|
+
boolean;
|
|
2775
|
+
/** Required. ID of the project that contains the instance. */
|
|
2776
|
+
project:
|
|
2777
|
+
string;
|
|
2778
|
+
/** 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. */
|
|
2779
|
+
quotaUser?:
|
|
2780
|
+
string;
|
|
2781
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2782
|
+
upload_protocol?:
|
|
2783
|
+
string;
|
|
2784
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2785
|
+
uploadType?:
|
|
2786
|
+
string;
|
|
2787
|
+
},
|
|
2788
|
+
body: InstancesDemoteRequest): Request<Operation>;
|
|
2690
2789
|
/** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
|
|
2691
2790
|
demoteMaster(request: {
|
|
2692
2791
|
/** 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: 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",
|
|
@@ -533,7 +543,6 @@ gapi.load('client', async () => {
|
|
|
533
543
|
},
|
|
534
544
|
passwordValidationPolicy: {
|
|
535
545
|
complexity: "Test string",
|
|
536
|
-
disallowCompromisedCredentials: true,
|
|
537
546
|
disallowUsernameSubstring: true,
|
|
538
547
|
enablePasswordPolicy: true,
|
|
539
548
|
minLength: 42,
|
|
@@ -782,7 +791,6 @@ gapi.load('client', async () => {
|
|
|
782
791
|
},
|
|
783
792
|
passwordValidationPolicy: {
|
|
784
793
|
complexity: "Test string",
|
|
785
|
-
disallowCompromisedCredentials: true,
|
|
786
794
|
disallowUsernameSubstring: true,
|
|
787
795
|
enablePasswordPolicy: true,
|
|
788
796
|
minLength: 42,
|
|
@@ -1090,7 +1098,6 @@ gapi.load('client', async () => {
|
|
|
1090
1098
|
},
|
|
1091
1099
|
passwordValidationPolicy: {
|
|
1092
1100
|
complexity: "Test string",
|
|
1093
|
-
disallowCompromisedCredentials: true,
|
|
1094
1101
|
disallowUsernameSubstring: true,
|
|
1095
1102
|
enablePasswordPolicy: true,
|
|
1096
1103
|
minLength: 42,
|