@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20240829 → 0.0.20240831
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 +141 -1
- package/package.json +1 -1
- package/readme.md +24 -0
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: 20240831
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -646,6 +646,16 @@ declare namespace gapi.client {
|
|
|
646
646
|
/** This is always `sql#instancesListServerCas`. */
|
|
647
647
|
kind?: string;
|
|
648
648
|
}
|
|
649
|
+
interface InstancesListServerCertificatesResponse {
|
|
650
|
+
/** The `sha1_fingerprint` of the active certificate from `server_certs`. */
|
|
651
|
+
activeVersion?: string;
|
|
652
|
+
/** List of server CA certificates for the instance. */
|
|
653
|
+
caCerts?: SslCert[];
|
|
654
|
+
/** This is always `sql#instancesListServerCertificates`. */
|
|
655
|
+
kind?: string;
|
|
656
|
+
/** List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list. */
|
|
657
|
+
serverCerts?: SslCert[];
|
|
658
|
+
}
|
|
649
659
|
interface InstancesReencryptRequest {
|
|
650
660
|
/** Configuration specific to backup re-encryption */
|
|
651
661
|
backupReencryptionConfig?: BackupReencryptionConfig;
|
|
@@ -658,6 +668,10 @@ declare namespace gapi.client {
|
|
|
658
668
|
/** Contains details about the rotate server CA operation. */
|
|
659
669
|
rotateServerCaContext?: RotateServerCaContext;
|
|
660
670
|
}
|
|
671
|
+
interface InstancesRotateServerCertificateRequest {
|
|
672
|
+
/** Optional. Contains details about the rotate server certificate operation. */
|
|
673
|
+
rotateServerCertificateContext?: RotateServerCertificateContext;
|
|
674
|
+
}
|
|
661
675
|
interface InstancesTruncateLogRequest {
|
|
662
676
|
/** Contains details about the truncate log operation. */
|
|
663
677
|
truncateLogContext?: TruncateLogContext;
|
|
@@ -905,6 +919,12 @@ declare namespace gapi.client {
|
|
|
905
919
|
/** The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version. */
|
|
906
920
|
nextVersion?: string;
|
|
907
921
|
}
|
|
922
|
+
interface RotateServerCertificateContext {
|
|
923
|
+
/** Optional. This is always `sql#rotateServerCertificateContext`. */
|
|
924
|
+
kind?: string;
|
|
925
|
+
/** The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version. */
|
|
926
|
+
nextVersion?: string;
|
|
927
|
+
}
|
|
908
928
|
interface Settings {
|
|
909
929
|
/** The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives. */
|
|
910
930
|
activationPolicy?: string;
|
|
@@ -1874,6 +1894,35 @@ declare namespace gapi.client {
|
|
|
1874
1894
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1875
1895
|
uploadType?: string;
|
|
1876
1896
|
}): Request<Operation>;
|
|
1897
|
+
/** Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, please use AddServerCa instead. */
|
|
1898
|
+
addServerCertificate(request?: {
|
|
1899
|
+
/** V1 error format. */
|
|
1900
|
+
'$.xgafv'?: string;
|
|
1901
|
+
/** OAuth access token. */
|
|
1902
|
+
access_token?: string;
|
|
1903
|
+
/** Data format for response. */
|
|
1904
|
+
alt?: string;
|
|
1905
|
+
/** JSONP */
|
|
1906
|
+
callback?: string;
|
|
1907
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1908
|
+
fields?: string;
|
|
1909
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
1910
|
+
instance: string;
|
|
1911
|
+
/** 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. */
|
|
1912
|
+
key?: string;
|
|
1913
|
+
/** OAuth 2.0 token for the current user. */
|
|
1914
|
+
oauth_token?: string;
|
|
1915
|
+
/** Returns response with indentations and line breaks. */
|
|
1916
|
+
prettyPrint?: boolean;
|
|
1917
|
+
/** Project ID of the project that contains the instance. */
|
|
1918
|
+
project: string;
|
|
1919
|
+
/** 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. */
|
|
1920
|
+
quotaUser?: string;
|
|
1921
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1922
|
+
upload_protocol?: string;
|
|
1923
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1924
|
+
uploadType?: string;
|
|
1925
|
+
}): Request<Operation>;
|
|
1877
1926
|
/** Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart. */
|
|
1878
1927
|
clone(request: {
|
|
1879
1928
|
/** V1 error format. */
|
|
@@ -2424,6 +2473,35 @@ declare namespace gapi.client {
|
|
|
2424
2473
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2425
2474
|
uploadType?: string;
|
|
2426
2475
|
}): Request<InstancesListServerCasResponse>;
|
|
2476
|
+
/** Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. */
|
|
2477
|
+
ListServerCertificates(request?: {
|
|
2478
|
+
/** V1 error format. */
|
|
2479
|
+
'$.xgafv'?: string;
|
|
2480
|
+
/** OAuth access token. */
|
|
2481
|
+
access_token?: string;
|
|
2482
|
+
/** Data format for response. */
|
|
2483
|
+
alt?: string;
|
|
2484
|
+
/** JSONP */
|
|
2485
|
+
callback?: string;
|
|
2486
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2487
|
+
fields?: string;
|
|
2488
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
2489
|
+
instance: string;
|
|
2490
|
+
/** 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. */
|
|
2491
|
+
key?: string;
|
|
2492
|
+
/** OAuth 2.0 token for the current user. */
|
|
2493
|
+
oauth_token?: string;
|
|
2494
|
+
/** Returns response with indentations and line breaks. */
|
|
2495
|
+
prettyPrint?: boolean;
|
|
2496
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
2497
|
+
project: string;
|
|
2498
|
+
/** 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. */
|
|
2499
|
+
quotaUser?: string;
|
|
2500
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2501
|
+
upload_protocol?: string;
|
|
2502
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2503
|
+
uploadType?: string;
|
|
2504
|
+
}): Request<InstancesListServerCertificatesResponse>;
|
|
2427
2505
|
/** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
|
|
2428
2506
|
patch(request: {
|
|
2429
2507
|
/** V1 error format. */
|
|
@@ -2790,6 +2868,68 @@ declare namespace gapi.client {
|
|
|
2790
2868
|
},
|
|
2791
2869
|
body: InstancesRotateServerCaRequest
|
|
2792
2870
|
): Request<Operation>;
|
|
2871
|
+
/** Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, please use RotateServerCa instead. */
|
|
2872
|
+
RotateServerCertificate(request: {
|
|
2873
|
+
/** V1 error format. */
|
|
2874
|
+
'$.xgafv'?: string;
|
|
2875
|
+
/** OAuth access token. */
|
|
2876
|
+
access_token?: string;
|
|
2877
|
+
/** Data format for response. */
|
|
2878
|
+
alt?: string;
|
|
2879
|
+
/** JSONP */
|
|
2880
|
+
callback?: string;
|
|
2881
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2882
|
+
fields?: string;
|
|
2883
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
2884
|
+
instance: string;
|
|
2885
|
+
/** 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. */
|
|
2886
|
+
key?: string;
|
|
2887
|
+
/** OAuth 2.0 token for the current user. */
|
|
2888
|
+
oauth_token?: string;
|
|
2889
|
+
/** Returns response with indentations and line breaks. */
|
|
2890
|
+
prettyPrint?: boolean;
|
|
2891
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
2892
|
+
project: string;
|
|
2893
|
+
/** 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. */
|
|
2894
|
+
quotaUser?: string;
|
|
2895
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2896
|
+
upload_protocol?: string;
|
|
2897
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2898
|
+
uploadType?: string;
|
|
2899
|
+
/** Request body */
|
|
2900
|
+
resource: InstancesRotateServerCertificateRequest;
|
|
2901
|
+
}): Request<Operation>;
|
|
2902
|
+
RotateServerCertificate(
|
|
2903
|
+
request: {
|
|
2904
|
+
/** V1 error format. */
|
|
2905
|
+
'$.xgafv'?: string;
|
|
2906
|
+
/** OAuth access token. */
|
|
2907
|
+
access_token?: string;
|
|
2908
|
+
/** Data format for response. */
|
|
2909
|
+
alt?: string;
|
|
2910
|
+
/** JSONP */
|
|
2911
|
+
callback?: string;
|
|
2912
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2913
|
+
fields?: string;
|
|
2914
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
2915
|
+
instance: string;
|
|
2916
|
+
/** 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. */
|
|
2917
|
+
key?: string;
|
|
2918
|
+
/** OAuth 2.0 token for the current user. */
|
|
2919
|
+
oauth_token?: string;
|
|
2920
|
+
/** Returns response with indentations and line breaks. */
|
|
2921
|
+
prettyPrint?: boolean;
|
|
2922
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
2923
|
+
project: string;
|
|
2924
|
+
/** 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. */
|
|
2925
|
+
quotaUser?: string;
|
|
2926
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2927
|
+
upload_protocol?: string;
|
|
2928
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2929
|
+
uploadType?: string;
|
|
2930
|
+
},
|
|
2931
|
+
body: InstancesRotateServerCertificateRequest
|
|
2932
|
+
): Request<Operation>;
|
|
2793
2933
|
/** Starts the replication in the read replica instance. */
|
|
2794
2934
|
startReplica(request?: {
|
|
2795
2935
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -192,6 +192,14 @@ await gapi.client.sql.instances.addServerCa({
|
|
|
192
192
|
project: 'project',
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
+
/*
|
|
196
|
+
Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, please use AddServerCa instead.
|
|
197
|
+
*/
|
|
198
|
+
await gapi.client.sql.instances.addServerCertificate({
|
|
199
|
+
instance: 'instance',
|
|
200
|
+
project: 'project',
|
|
201
|
+
});
|
|
202
|
+
|
|
195
203
|
/*
|
|
196
204
|
Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
|
|
197
205
|
*/
|
|
@@ -271,6 +279,14 @@ await gapi.client.sql.instances.listServerCas({
|
|
|
271
279
|
project: 'project',
|
|
272
280
|
});
|
|
273
281
|
|
|
282
|
+
/*
|
|
283
|
+
Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.
|
|
284
|
+
*/
|
|
285
|
+
await gapi.client.sql.instances.ListServerCertificates({
|
|
286
|
+
instance: 'instance',
|
|
287
|
+
project: 'project',
|
|
288
|
+
});
|
|
289
|
+
|
|
274
290
|
/*
|
|
275
291
|
Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
|
|
276
292
|
*/
|
|
@@ -335,6 +351,14 @@ await gapi.client.sql.instances.rotateServerCa({
|
|
|
335
351
|
project: 'project',
|
|
336
352
|
});
|
|
337
353
|
|
|
354
|
+
/*
|
|
355
|
+
Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, please use RotateServerCa instead.
|
|
356
|
+
*/
|
|
357
|
+
await gapi.client.sql.instances.RotateServerCertificate({
|
|
358
|
+
instance: 'instance',
|
|
359
|
+
project: 'project',
|
|
360
|
+
});
|
|
361
|
+
|
|
338
362
|
/*
|
|
339
363
|
Starts the replication in the read replica instance.
|
|
340
364
|
*/
|