@maxim_mazurok/gapi.client.sqladmin-v1 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.
- package/index.d.ts +21 -8
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20241210
|
|
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.
|
|
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,7 +817,8 @@ declare namespace gapi.client {
|
|
|
809
817
|
startTime?: string;
|
|
810
818
|
/** The status of an operation. */
|
|
811
819
|
status?: string;
|
|
812
|
-
/**
|
|
820
|
+
/** Optional. The sub operation based on the operation type. */
|
|
821
|
+
subOperationType?: SqlSubOperationType;
|
|
813
822
|
targetId?: string;
|
|
814
823
|
targetLink?: string;
|
|
815
824
|
/** The project ID of the target instance related to this operation. */
|
|
@@ -834,7 +843,7 @@ declare namespace gapi.client {
|
|
|
834
843
|
interface OperationMetadata {
|
|
835
844
|
/** Output only. API version used to start the operation. */
|
|
836
845
|
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
|
|
846
|
+
/** 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
847
|
cancelRequested?: boolean;
|
|
839
848
|
/** Output only. The time the operation was created. */
|
|
840
849
|
createTime?: string;
|
|
@@ -916,7 +925,7 @@ declare namespace gapi.client {
|
|
|
916
925
|
drReplica?: boolean;
|
|
917
926
|
/** 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
927
|
failoverDrReplicaName?: string;
|
|
919
|
-
/** Output only. If set,
|
|
928
|
+
/** 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
929
|
psaWriteEndpoint?: string;
|
|
921
930
|
}
|
|
922
931
|
interface Reschedule {
|
|
@@ -1135,6 +1144,10 @@ declare namespace gapi.client {
|
|
|
1135
1144
|
/** The server roles for this user */
|
|
1136
1145
|
serverRoles?: string[];
|
|
1137
1146
|
}
|
|
1147
|
+
interface SqlSubOperationType {
|
|
1148
|
+
/** The type of maintenance to be performed on the instance. */
|
|
1149
|
+
maintenanceType?: string;
|
|
1150
|
+
}
|
|
1138
1151
|
interface SslCert {
|
|
1139
1152
|
/** PEM representation. */
|
|
1140
1153
|
cert?: string;
|
|
@@ -2602,7 +2615,7 @@ declare namespace gapi.client {
|
|
|
2602
2615
|
alt?: string;
|
|
2603
2616
|
/** JSONP */
|
|
2604
2617
|
callback?: string;
|
|
2605
|
-
/** Set to true to invoke a replica failover to the
|
|
2618
|
+
/** 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
2619
|
failover?: boolean;
|
|
2607
2620
|
/** Selector specifying which fields to include in a partial response. */
|
|
2608
2621
|
fields?: string;
|
|
@@ -3016,7 +3029,7 @@ declare namespace gapi.client {
|
|
|
3016
3029
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3017
3030
|
uploadType?: string;
|
|
3018
3031
|
}): Request<Operation>;
|
|
3019
|
-
/** Switches over from the primary instance to the
|
|
3032
|
+
/** Switches over from the primary instance to the DR replica instance. */
|
|
3020
3033
|
switchover(request?: {
|
|
3021
3034
|
/** V1 error format. */
|
|
3022
3035
|
'$.xgafv'?: string;
|
|
@@ -3026,7 +3039,7 @@ declare namespace gapi.client {
|
|
|
3026
3039
|
alt?: string;
|
|
3027
3040
|
/** JSONP */
|
|
3028
3041
|
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. */
|
|
3042
|
+
/** 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
3043
|
dbTimeout?: string;
|
|
3031
3044
|
/** Selector specifying which fields to include in a partial response. */
|
|
3032
3045
|
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',
|