@maxim_mazurok/gapi.client.sqladmin-v1beta4 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.
- package/index.d.ts +21 -7
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20241204
|
|
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.
|
|
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,6 +822,8 @@ declare namespace gapi.client {
|
|
|
814
822
|
startTime?: string;
|
|
815
823
|
/** The status of an operation. */
|
|
816
824
|
status?: string;
|
|
825
|
+
/** Optional. The sub operation based on the operation type. */
|
|
826
|
+
subOperationType?: SqlSubOperationType;
|
|
817
827
|
/** Name of the database instance related to this operation. */
|
|
818
828
|
targetId?: string;
|
|
819
829
|
targetLink?: string;
|
|
@@ -839,7 +849,7 @@ declare namespace gapi.client {
|
|
|
839
849
|
interface OperationMetadata {
|
|
840
850
|
/** Output only. API version used to start the operation. */
|
|
841
851
|
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
|
|
852
|
+
/** 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
853
|
cancelRequested?: boolean;
|
|
844
854
|
/** Output only. The time the operation was created. */
|
|
845
855
|
createTime?: string;
|
|
@@ -921,7 +931,7 @@ declare namespace gapi.client {
|
|
|
921
931
|
drReplica?: boolean;
|
|
922
932
|
/** 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
933
|
failoverDrReplicaName?: string;
|
|
924
|
-
/** Output only. If set,
|
|
934
|
+
/** 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
935
|
psaWriteEndpoint?: string;
|
|
926
936
|
}
|
|
927
937
|
interface Reschedule {
|
|
@@ -1140,6 +1150,10 @@ declare namespace gapi.client {
|
|
|
1140
1150
|
/** The server roles for this user */
|
|
1141
1151
|
serverRoles?: string[];
|
|
1142
1152
|
}
|
|
1153
|
+
interface SqlSubOperationType {
|
|
1154
|
+
/** The type of maintenance to be performed on the instance. */
|
|
1155
|
+
maintenanceType?: string;
|
|
1156
|
+
}
|
|
1143
1157
|
interface SslCert {
|
|
1144
1158
|
/** PEM representation. */
|
|
1145
1159
|
cert?: string;
|
|
@@ -2607,7 +2621,7 @@ declare namespace gapi.client {
|
|
|
2607
2621
|
alt?: string;
|
|
2608
2622
|
/** JSONP */
|
|
2609
2623
|
callback?: string;
|
|
2610
|
-
/** Set to true to invoke a replica failover to the
|
|
2624
|
+
/** 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
2625
|
failover?: boolean;
|
|
2612
2626
|
/** Selector specifying which fields to include in a partial response. */
|
|
2613
2627
|
fields?: string;
|
|
@@ -3021,7 +3035,7 @@ declare namespace gapi.client {
|
|
|
3021
3035
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3022
3036
|
uploadType?: string;
|
|
3023
3037
|
}): Request<Operation>;
|
|
3024
|
-
/** Switches over from the primary instance to the
|
|
3038
|
+
/** Switches over from the primary instance to the DR replica instance. */
|
|
3025
3039
|
switchover(request?: {
|
|
3026
3040
|
/** V1 error format. */
|
|
3027
3041
|
'$.xgafv'?: string;
|
|
@@ -3031,7 +3045,7 @@ declare namespace gapi.client {
|
|
|
3031
3045
|
alt?: string;
|
|
3032
3046
|
/** JSONP */
|
|
3033
3047
|
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. */
|
|
3048
|
+
/** 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
3049
|
dbTimeout?: string;
|
|
3036
3050
|
/** Selector specifying which fields to include in a partial response. */
|
|
3037
3051
|
fields?: string;
|
package/package.json
CHANGED
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
|
|
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',
|