@maxim_mazurok/gapi.client.sqladmin-v1beta4 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.
Files changed (4) hide show
  1. package/index.d.ts +115 -16
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
  4. 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=v1beta4
12
- // Revision: 20231011
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 an 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
- /** Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only */
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. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only */
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. */
@@ -832,6 +843,11 @@ declare namespace gapi.client {
832
843
  demoteMasterContext?:
833
844
  DemoteMasterContext;
834
845
  }
846
+ interface InstancesDemoteRequest {
847
+ /** Required. This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. */
848
+ demoteContext?:
849
+ DemoteContext;
850
+ }
835
851
  interface InstancesExportRequest {
836
852
  /** Contains details about the export operation. */
837
853
  exportContext?:
@@ -918,20 +934,19 @@ declare namespace gapi.client {
918
934
  pscConfig?:
919
935
  PscConfig;
920
936
  /**
921
- * LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS
922
- * connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce
923
- * SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag.
924
- * LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)
937
+ * 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
938
+ * 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
939
+ * valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.
925
940
  */
926
941
  requireSsl?:
927
942
  boolean;
928
943
  /**
929
- * Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL
930
- * Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the
931
- * following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false;
932
- * ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, 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
933
- * `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL
934
- * connections are allowed". The database will respect `ssl_mode` in this case and only accept SSL connections.
944
+ * 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.
945
+ * 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
946
+ * 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
947
+ * `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,
948
+ * 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
949
+ * database respects `ssl_mode` in this case and only accepts SSL connections.
935
950
  */
936
951
  sslMode?:
937
952
  string;
@@ -1173,9 +1188,6 @@ declare namespace gapi.client {
1173
1188
  /** The complexity of the password. */
1174
1189
  complexity?:
1175
1190
  string;
1176
- /** Disallow credentials that have been previously compromised by a public data breach. */
1177
- disallowCompromisedCredentials?:
1178
- boolean;
1179
1191
  /** Disallow username as a part of the password. */
1180
1192
  disallowUsernameSubstring?:
1181
1193
  boolean;
@@ -2690,6 +2702,93 @@ declare namespace gapi.client {
2690
2702
  uploadType?:
2691
2703
  string;
2692
2704
  }): Request<Operation>;
2705
+ /** Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server. */
2706
+ demote(request: {
2707
+ /** V1 error format. */
2708
+ "$.xgafv"?:
2709
+ string;
2710
+ /** OAuth access token. */
2711
+ access_token?:
2712
+ string;
2713
+ /** Data format for response. */
2714
+ alt?:
2715
+ string;
2716
+ /** JSONP */
2717
+ callback?:
2718
+ string;
2719
+ /** Selector specifying which fields to include in a partial response. */
2720
+ fields?:
2721
+ string;
2722
+ /** Required. The name of the Cloud SQL instance. */
2723
+ instance:
2724
+ string;
2725
+ /** 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. */
2726
+ key?:
2727
+ string;
2728
+ /** OAuth 2.0 token for the current user. */
2729
+ oauth_token?:
2730
+ string;
2731
+ /** Returns response with indentations and line breaks. */
2732
+ prettyPrint?:
2733
+ boolean;
2734
+ /** Required. The project ID of the project that contains the instance. */
2735
+ project:
2736
+ string;
2737
+ /** 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. */
2738
+ quotaUser?:
2739
+ string;
2740
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2741
+ upload_protocol?:
2742
+ string;
2743
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2744
+ uploadType?:
2745
+ string;
2746
+ /** Request body */
2747
+ resource:
2748
+ InstancesDemoteRequest;
2749
+ }): Request<Operation>;
2750
+ demote(request: {
2751
+ /** V1 error format. */
2752
+ "$.xgafv"?:
2753
+ string;
2754
+ /** OAuth access token. */
2755
+ access_token?:
2756
+ string;
2757
+ /** Data format for response. */
2758
+ alt?:
2759
+ string;
2760
+ /** JSONP */
2761
+ callback?:
2762
+ string;
2763
+ /** Selector specifying which fields to include in a partial response. */
2764
+ fields?:
2765
+ string;
2766
+ /** Required. The name of the Cloud SQL instance. */
2767
+ instance:
2768
+ string;
2769
+ /** 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. */
2770
+ key?:
2771
+ string;
2772
+ /** OAuth 2.0 token for the current user. */
2773
+ oauth_token?:
2774
+ string;
2775
+ /** Returns response with indentations and line breaks. */
2776
+ prettyPrint?:
2777
+ boolean;
2778
+ /** Required. The project ID of the project that contains the instance. */
2779
+ project:
2780
+ string;
2781
+ /** 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. */
2782
+ quotaUser?:
2783
+ string;
2784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2785
+ upload_protocol?:
2786
+ string;
2787
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2788
+ uploadType?:
2789
+ string;
2790
+ },
2791
+ body: InstancesDemoteRequest): Request<Operation>;
2693
2792
  /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
2694
2793
  demoteMaster(request: {
2695
2794
  /** 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.20231011",
3
+ "version": "0.0.20231029",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
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: 20231011
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,