@maxim_mazurok/gapi.client.sqladmin-v1beta4 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.
Files changed (3) hide show
  1. package/index.d.ts +141 -1
  2. package/package.json +1 -1
  3. 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=v1beta4
12
- // Revision: 20240829
12
+ // Revision: 20240831
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -651,6 +651,16 @@ declare namespace gapi.client {
651
651
  /** This is always `sql#instancesListServerCas`. */
652
652
  kind?: string;
653
653
  }
654
+ interface InstancesListServerCertificatesResponse {
655
+ /** The `sha1_fingerprint` of the active certificate from `server_certs`. */
656
+ activeVersion?: string;
657
+ /** List of server CA certificates for the instance. */
658
+ caCerts?: SslCert[];
659
+ /** This is always `sql#instancesListServerCertificates`. */
660
+ kind?: string;
661
+ /** List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list. */
662
+ serverCerts?: SslCert[];
663
+ }
654
664
  interface InstancesReencryptRequest {
655
665
  /** Configuration specific to backup re-encryption */
656
666
  backupReencryptionConfig?: BackupReencryptionConfig;
@@ -663,6 +673,10 @@ declare namespace gapi.client {
663
673
  /** Contains details about the rotate server CA operation. */
664
674
  rotateServerCaContext?: RotateServerCaContext;
665
675
  }
676
+ interface InstancesRotateServerCertificateRequest {
677
+ /** Optional. Contains details about the rotate server CA operation. */
678
+ rotateServerCertificateContext?: RotateServerCertificateContext;
679
+ }
666
680
  interface InstancesTruncateLogRequest {
667
681
  /** Contains details about the truncate log operation. */
668
682
  truncateLogContext?: TruncateLogContext;
@@ -910,6 +924,12 @@ declare namespace gapi.client {
910
924
  /** The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version. */
911
925
  nextVersion?: string;
912
926
  }
927
+ interface RotateServerCertificateContext {
928
+ /** Optional. This is always `sql#rotateServerCertificateContext`. */
929
+ kind?: string;
930
+ /** Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version. */
931
+ nextVersion?: string;
932
+ }
913
933
  interface Settings {
914
934
  /** 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. */
915
935
  activationPolicy?: string;
@@ -1879,6 +1899,35 @@ declare namespace gapi.client {
1879
1899
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1880
1900
  uploadType?: string;
1881
1901
  }): Request<Operation>;
1902
+ /** 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. */
1903
+ addServerCertificate(request?: {
1904
+ /** V1 error format. */
1905
+ '$.xgafv'?: string;
1906
+ /** OAuth access token. */
1907
+ access_token?: string;
1908
+ /** Data format for response. */
1909
+ alt?: string;
1910
+ /** JSONP */
1911
+ callback?: string;
1912
+ /** Selector specifying which fields to include in a partial response. */
1913
+ fields?: string;
1914
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
1915
+ instance: string;
1916
+ /** 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. */
1917
+ key?: string;
1918
+ /** OAuth 2.0 token for the current user. */
1919
+ oauth_token?: string;
1920
+ /** Returns response with indentations and line breaks. */
1921
+ prettyPrint?: boolean;
1922
+ /** Required. Project ID of the project that contains the instance. */
1923
+ project: string;
1924
+ /** 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. */
1925
+ quotaUser?: string;
1926
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1927
+ upload_protocol?: string;
1928
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1929
+ uploadType?: string;
1930
+ }): Request<Operation>;
1882
1931
  /** Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart. */
1883
1932
  clone(request: {
1884
1933
  /** V1 error format. */
@@ -2429,6 +2478,35 @@ declare namespace gapi.client {
2429
2478
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2430
2479
  uploadType?: string;
2431
2480
  }): Request<InstancesListServerCasResponse>;
2481
+ /** 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. */
2482
+ ListServerCertificates(request?: {
2483
+ /** V1 error format. */
2484
+ '$.xgafv'?: string;
2485
+ /** OAuth access token. */
2486
+ access_token?: string;
2487
+ /** Data format for response. */
2488
+ alt?: string;
2489
+ /** JSONP */
2490
+ callback?: string;
2491
+ /** Selector specifying which fields to include in a partial response. */
2492
+ fields?: string;
2493
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
2494
+ instance: string;
2495
+ /** 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. */
2496
+ key?: string;
2497
+ /** OAuth 2.0 token for the current user. */
2498
+ oauth_token?: string;
2499
+ /** Returns response with indentations and line breaks. */
2500
+ prettyPrint?: boolean;
2501
+ /** Required. Project ID of the project that contains the instance. */
2502
+ project: string;
2503
+ /** 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. */
2504
+ quotaUser?: string;
2505
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2506
+ upload_protocol?: string;
2507
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2508
+ uploadType?: string;
2509
+ }): Request<InstancesListServerCertificatesResponse>;
2432
2510
  /** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
2433
2511
  patch(request: {
2434
2512
  /** V1 error format. */
@@ -2795,6 +2873,68 @@ declare namespace gapi.client {
2795
2873
  },
2796
2874
  body: InstancesRotateServerCaRequest
2797
2875
  ): Request<Operation>;
2876
+ /** 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. */
2877
+ RotateServerCertificate(request: {
2878
+ /** V1 error format. */
2879
+ '$.xgafv'?: string;
2880
+ /** OAuth access token. */
2881
+ access_token?: string;
2882
+ /** Data format for response. */
2883
+ alt?: string;
2884
+ /** JSONP */
2885
+ callback?: string;
2886
+ /** Selector specifying which fields to include in a partial response. */
2887
+ fields?: string;
2888
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
2889
+ instance: string;
2890
+ /** 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. */
2891
+ key?: string;
2892
+ /** OAuth 2.0 token for the current user. */
2893
+ oauth_token?: string;
2894
+ /** Returns response with indentations and line breaks. */
2895
+ prettyPrint?: boolean;
2896
+ /** Required. Project ID of the project that contains the instance. */
2897
+ project: string;
2898
+ /** 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. */
2899
+ quotaUser?: string;
2900
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2901
+ upload_protocol?: string;
2902
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2903
+ uploadType?: string;
2904
+ /** Request body */
2905
+ resource: InstancesRotateServerCertificateRequest;
2906
+ }): Request<Operation>;
2907
+ RotateServerCertificate(
2908
+ request: {
2909
+ /** V1 error format. */
2910
+ '$.xgafv'?: string;
2911
+ /** OAuth access token. */
2912
+ access_token?: string;
2913
+ /** Data format for response. */
2914
+ alt?: string;
2915
+ /** JSONP */
2916
+ callback?: string;
2917
+ /** Selector specifying which fields to include in a partial response. */
2918
+ fields?: string;
2919
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
2920
+ instance: string;
2921
+ /** 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. */
2922
+ key?: string;
2923
+ /** OAuth 2.0 token for the current user. */
2924
+ oauth_token?: string;
2925
+ /** Returns response with indentations and line breaks. */
2926
+ prettyPrint?: boolean;
2927
+ /** Required. Project ID of the project that contains the instance. */
2928
+ project: string;
2929
+ /** 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. */
2930
+ quotaUser?: string;
2931
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2932
+ upload_protocol?: string;
2933
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2934
+ uploadType?: string;
2935
+ },
2936
+ body: InstancesRotateServerCertificateRequest
2937
+ ): Request<Operation>;
2798
2938
  /** Starts the replication in the read replica instance. */
2799
2939
  startReplica(request?: {
2800
2940
  /** 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.20240829",
3
+ "version": "0.0.20240831",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
5
5
  "repository": {
6
6
  "type": "git",
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
  */