@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20241102 → 0.0.20241204

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 +21 -7
  2. package/package.json +1 -1
  3. package/readme.md +1 -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=v1
12
- // Revision: 20241102
12
+ // Revision: 20241204
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -181,6 +181,8 @@ declare namespace gapi.client {
181
181
  interface ConnectSettings {
182
182
  /** `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type. */
183
183
  backendType?: string;
184
+ /** Custom subject alternative names for the server certificate. */
185
+ customSubjectAlternativeNames?: string[];
184
186
  /** The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. */
185
187
  databaseVersion?: string;
186
188
  /** The dns name of the instance. */
@@ -289,7 +291,7 @@ declare namespace gapi.client {
289
291
  replicaConfiguration?: ReplicaConfiguration;
290
292
  /** The replicas of the instance. */
291
293
  replicaNames?: string[];
292
- /** Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL. */
294
+ /** Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. */
293
295
  replicationCluster?: ReplicationCluster;
294
296
  /** Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. */
295
297
  rootPassword?: string;
@@ -316,6 +318,8 @@ declare namespace gapi.client {
316
318
  suspensionReason?: string[];
317
319
  /** Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage. */
318
320
  switchTransactionLogsToCloudStorageEnabled?: boolean;
321
+ /** Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `"" : ""`. For example, a single resource can have the following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview. */
322
+ tags?: {[P in string]: string};
319
323
  /** Output only. All database versions that are available for upgrade. */
320
324
  upgradableDatabaseVersions?: AvailableDatabaseVersion[];
321
325
  /** Output only. The dns name of the primary instance in a replication group. */
@@ -685,6 +689,8 @@ declare namespace gapi.client {
685
689
  allocatedIpRange?: string;
686
690
  /** The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`). */
687
691
  authorizedNetworks?: AclEntry[];
692
+ /** Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance. */
693
+ customSubjectAlternativeNames?: string[];
688
694
  /** Controls connectivity to private IP instances from Google services, such as BigQuery. */
689
695
  enablePrivatePathForGoogleCloudServices?: boolean;
690
696
  /** Whether the instance is assigned a public IP address or not. */
@@ -697,6 +703,8 @@ declare namespace gapi.client {
697
703
  requireSsl?: boolean;
698
704
  /** Specify what type of CA is used for the server certificate. */
699
705
  serverCaMode?: string;
706
+ /** Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects//locations//caPools/ */
707
+ serverCaPool?: string;
700
708
  /** Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `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 `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections. */
701
709
  sslMode?: string;
702
710
  }
@@ -809,6 +817,8 @@ declare namespace gapi.client {
809
817
  startTime?: string;
810
818
  /** The status of an operation. */
811
819
  status?: string;
820
+ /** Optional. The sub operation based on the operation type. */
821
+ subOperationType?: SqlSubOperationType;
812
822
  /** Name of the database instance related to this operation. */
813
823
  targetId?: string;
814
824
  targetLink?: string;
@@ -834,7 +844,7 @@ declare namespace gapi.client {
834
844
  interface OperationMetadata {
835
845
  /** Output only. API version used to start the operation. */
836
846
  apiVersion?: string;
837
- /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
847
+ /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
838
848
  cancelRequested?: boolean;
839
849
  /** Output only. The time the operation was created. */
840
850
  createTime?: string;
@@ -916,7 +926,7 @@ declare namespace gapi.client {
916
926
  drReplica?: boolean;
917
927
  /** Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation. */
918
928
  failoverDrReplicaName?: string;
919
- /** Output only. If set, it indicates this instance has a private service access (PSA) dns endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, the dns should be pointing to this instance. After Switchover or Replica failover, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance does not yet have a replica, or had a DR replica that was deleted. */
929
+ /** Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn't have a DR replica yet or the DR replica is deleted. */
920
930
  psaWriteEndpoint?: string;
921
931
  }
922
932
  interface Reschedule {
@@ -1135,6 +1145,10 @@ declare namespace gapi.client {
1135
1145
  /** The server roles for this user */
1136
1146
  serverRoles?: string[];
1137
1147
  }
1148
+ interface SqlSubOperationType {
1149
+ /** The type of maintenance to be performed on the instance. */
1150
+ maintenanceType?: string;
1151
+ }
1138
1152
  interface SslCert {
1139
1153
  /** PEM representation. */
1140
1154
  cert?: string;
@@ -2602,7 +2616,7 @@ declare namespace gapi.client {
2602
2616
  alt?: string;
2603
2617
  /** JSONP */
2604
2618
  callback?: string;
2605
- /** Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL. */
2619
+ /** Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. */
2606
2620
  failover?: boolean;
2607
2621
  /** Selector specifying which fields to include in a partial response. */
2608
2622
  fields?: string;
@@ -3016,7 +3030,7 @@ declare namespace gapi.client {
3016
3030
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3017
3031
  uploadType?: string;
3018
3032
  }): Request<Operation>;
3019
- /** Switches over from the primary instance to the designated DR replica instance. */
3033
+ /** Switches over from the primary instance to the DR replica instance. */
3020
3034
  switchover(request?: {
3021
3035
  /** V1 error format. */
3022
3036
  '$.xgafv'?: string;
@@ -3026,7 +3040,7 @@ declare namespace gapi.client {
3026
3040
  alt?: string;
3027
3041
  /** JSONP */
3028
3042
  callback?: string;
3029
- /** Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours. */
3043
+ /** Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours. */
3030
3044
  dbTimeout?: string;
3031
3045
  /** Selector specifying which fields to include in a partial response. */
3032
3046
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20241102",
3
+ "version": "0.0.20241204",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -376,7 +376,7 @@ await gapi.client.sql.instances.stopReplica({
376
376
  });
377
377
 
378
378
  /*
379
- Switches over from the primary instance to the designated DR replica instance.
379
+ Switches over from the primary instance to the DR replica instance.
380
380
  */
381
381
  await gapi.client.sql.instances.switchover({
382
382
  instance: 'instance',