@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20241108 → 0.0.20241210

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 -8
  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=v1beta4
12
- // Revision: 20241108
12
+ // Revision: 20241210
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -185,6 +185,8 @@ declare namespace gapi.client {
185
185
  interface ConnectSettings {
186
186
  /** `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. */
187
187
  backendType?: string;
188
+ /** Custom subject alternative names for the server certificate. */
189
+ customSubjectAlternativeNames?: string[];
188
190
  /** 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` or `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`. */
189
191
  databaseVersion?: string;
190
192
  /** The dns name of the instance. */
@@ -293,7 +295,7 @@ declare namespace gapi.client {
293
295
  replicaConfiguration?: ReplicaConfiguration;
294
296
  /** The replicas of the instance. */
295
297
  replicaNames?: string[];
296
- /** 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. */
298
+ /** 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. */
297
299
  replicationCluster?: ReplicationCluster;
298
300
  /** Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. */
299
301
  rootPassword?: string;
@@ -321,6 +323,8 @@ declare namespace gapi.client {
321
323
  suspensionReason?: string[];
322
324
  /** Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage. */
323
325
  switchTransactionLogsToCloudStorageEnabled?: boolean;
326
+ /** 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. */
327
+ tags?: {[P in string]: string};
324
328
  /** Output only. All database versions that are available for upgrade. */
325
329
  upgradableDatabaseVersions?: AvailableDatabaseVersion[];
326
330
  /** Output only. The dns name of the primary instance in a replication group. */
@@ -690,6 +694,8 @@ declare namespace gapi.client {
690
694
  allocatedIpRange?: string;
691
695
  /** 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`). */
692
696
  authorizedNetworks?: AclEntry[];
697
+ /** Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance. */
698
+ customSubjectAlternativeNames?: string[];
693
699
  /** Controls connectivity to private IP instances from Google services, such as BigQuery. */
694
700
  enablePrivatePathForGoogleCloudServices?: boolean;
695
701
  /** Whether the instance is assigned a public IP address or not. */
@@ -702,6 +708,8 @@ declare namespace gapi.client {
702
708
  requireSsl?: boolean;
703
709
  /** Specify what type of CA is used for the server certificate. */
704
710
  serverCaMode?: string;
711
+ /** 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/ */
712
+ serverCaPool?: string;
705
713
  /** 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. */
706
714
  sslMode?: string;
707
715
  }
@@ -814,7 +822,8 @@ declare namespace gapi.client {
814
822
  startTime?: string;
815
823
  /** The status of an operation. */
816
824
  status?: string;
817
- /** Name of the database instance related to this operation. */
825
+ /** Optional. The sub operation based on the operation type. */
826
+ subOperationType?: SqlSubOperationType;
818
827
  targetId?: string;
819
828
  targetLink?: string;
820
829
  /** The project ID of the target instance related to this operation. */
@@ -839,7 +848,7 @@ declare namespace gapi.client {
839
848
  interface OperationMetadata {
840
849
  /** Output only. API version used to start the operation. */
841
850
  apiVersion?: string;
842
- /** 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`. */
851
+ /** 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`. */
843
852
  cancelRequested?: boolean;
844
853
  /** Output only. The time the operation was created. */
845
854
  createTime?: string;
@@ -921,7 +930,7 @@ declare namespace gapi.client {
921
930
  drReplica?: boolean;
922
931
  /** 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. */
923
932
  failoverDrReplicaName?: string;
924
- /** 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. */
933
+ /** 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. */
925
934
  psaWriteEndpoint?: string;
926
935
  }
927
936
  interface Reschedule {
@@ -1140,6 +1149,10 @@ declare namespace gapi.client {
1140
1149
  /** The server roles for this user */
1141
1150
  serverRoles?: string[];
1142
1151
  }
1152
+ interface SqlSubOperationType {
1153
+ /** The type of maintenance to be performed on the instance. */
1154
+ maintenanceType?: string;
1155
+ }
1143
1156
  interface SslCert {
1144
1157
  /** PEM representation. */
1145
1158
  cert?: string;
@@ -2607,7 +2620,7 @@ declare namespace gapi.client {
2607
2620
  alt?: string;
2608
2621
  /** JSONP */
2609
2622
  callback?: string;
2610
- /** 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. */
2623
+ /** 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. */
2611
2624
  failover?: boolean;
2612
2625
  /** Selector specifying which fields to include in a partial response. */
2613
2626
  fields?: string;
@@ -3021,7 +3034,7 @@ declare namespace gapi.client {
3021
3034
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3022
3035
  uploadType?: string;
3023
3036
  }): Request<Operation>;
3024
- /** Switches over from the primary instance to the designated DR replica instance. */
3037
+ /** Switches over from the primary instance to the DR replica instance. */
3025
3038
  switchover(request?: {
3026
3039
  /** V1 error format. */
3027
3040
  '$.xgafv'?: string;
@@ -3031,7 +3044,7 @@ declare namespace gapi.client {
3031
3044
  alt?: string;
3032
3045
  /** JSONP */
3033
3046
  callback?: string;
3034
- /** 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. */
3047
+ /** 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. */
3035
3048
  dbTimeout?: string;
3036
3049
  /** Selector specifying which fields to include in a partial response. */
3037
3050
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20241108",
3
+ "version": "0.0.20241210",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
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',