@googleapis/sqladmin 23.1.0 → 25.0.0
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/CHANGELOG.md +46 -0
- package/build/v1.d.ts +222 -10
- package/build/v1.js +99 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +222 -10
- package/build/v1beta4.js +99 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +459 -10
- package/v1beta4.ts +459 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [25.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v24.1.0...sqladmin-v25.0.0) (2025-02-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **sqladmin:** This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **sqladmin:** update the API ([fa3846b](https://github.com/googleapis/google-api-nodejs-client/commit/fa3846be19c2d078483c2f1f11ff582de41c194e))
|
|
13
|
+
* **sqladmin:** update the API ([3c85e30](https://github.com/googleapis/google-api-nodejs-client/commit/3c85e30276f6bf23f274890cadad731f9e021db9))
|
|
14
|
+
* **sqladmin:** update the API ([300f8df](https://github.com/googleapis/google-api-nodejs-client/commit/300f8dfca2e412516fdb8e37e5c02c611c0d802c))
|
|
15
|
+
* **sqladmin:** update the API ([fe2dacf](https://github.com/googleapis/google-api-nodejs-client/commit/fe2dacfc9d9e22b886933adfa1bcd7eb532185f7))
|
|
16
|
+
* **sqladmin:** update the API ([e20497e](https://github.com/googleapis/google-api-nodejs-client/commit/e20497eb5a21de5e5a5860e7d72aa1e8dfa6ce79))
|
|
17
|
+
|
|
18
|
+
## [24.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v24.0.0...sqladmin-v24.1.0) (2024-10-30)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **sqladmin:** update the API ([3c85e30](https://github.com/googleapis/google-api-nodejs-client/commit/3c85e30276f6bf23f274890cadad731f9e021db9))
|
|
24
|
+
* **sqladmin:** update the API ([300f8df](https://github.com/googleapis/google-api-nodejs-client/commit/300f8dfca2e412516fdb8e37e5c02c611c0d802c))
|
|
25
|
+
|
|
26
|
+
## [24.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v23.1.0...sqladmin-v24.0.0) (2024-08-27)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### ⚠ BREAKING CHANGES
|
|
30
|
+
|
|
31
|
+
* This release has breaking changes.
|
|
32
|
+
* This release has breaking changes.
|
|
33
|
+
* **sqladmin:** This release has breaking changes.
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* run the generator ([#3510](https://github.com/googleapis/google-api-nodejs-client/issues/3510)) ([c16d5c8](https://github.com/googleapis/google-api-nodejs-client/commit/c16d5c87fb36b2aa38626fa4f8ff12d25a2385ad))
|
|
38
|
+
* run the generator ([#3511](https://github.com/googleapis/google-api-nodejs-client/issues/3511)) ([957bc85](https://github.com/googleapis/google-api-nodejs-client/commit/957bc850439a639c5534957333b09598944952c3))
|
|
39
|
+
* **sqladmin:** update the API ([fe2dacf](https://github.com/googleapis/google-api-nodejs-client/commit/fe2dacfc9d9e22b886933adfa1bcd7eb532185f7))
|
|
40
|
+
* **sqladmin:** update the API ([e20497e](https://github.com/googleapis/google-api-nodejs-client/commit/e20497eb5a21de5e5a5860e7d72aa1e8dfa6ce79))
|
|
41
|
+
* **sqladmin:** update the API ([f59dfc0](https://github.com/googleapis/google-api-nodejs-client/commit/f59dfc075f27856d3a885ed97ec402f6105bb9ef))
|
|
42
|
+
* **sqladmin:** update the API ([7ba611c](https://github.com/googleapis/google-api-nodejs-client/commit/7ba611c2b1290052fab7f153024511a2d9781b63))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **sqladmin:** update the API ([975e692](https://github.com/googleapis/google-api-nodejs-client/commit/975e6928315d2b380b565d81d09356e6819988c4))
|
|
48
|
+
|
|
3
49
|
## [23.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v23.0.0...sqladmin-v23.1.0) (2024-08-27)
|
|
4
50
|
|
|
5
51
|
|
package/build/v1.d.ts
CHANGED
|
@@ -409,6 +409,10 @@ export declare namespace sqladmin_v1 {
|
|
|
409
409
|
* `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.
|
|
410
410
|
*/
|
|
411
411
|
backendType?: string | null;
|
|
412
|
+
/**
|
|
413
|
+
* Custom subject alternative names for the server certificate.
|
|
414
|
+
*/
|
|
415
|
+
customSubjectAlternativeNames?: string[] | null;
|
|
412
416
|
/**
|
|
413
417
|
* 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`.
|
|
414
418
|
*/
|
|
@@ -621,7 +625,7 @@ export declare namespace sqladmin_v1 {
|
|
|
621
625
|
*/
|
|
622
626
|
replicaNames?: string[] | null;
|
|
623
627
|
/**
|
|
624
|
-
* 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.
|
|
628
|
+
* 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.
|
|
625
629
|
*/
|
|
626
630
|
replicationCluster?: Schema$ReplicationCluster;
|
|
627
631
|
/**
|
|
@@ -673,6 +677,12 @@ export declare namespace sqladmin_v1 {
|
|
|
673
677
|
* Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
|
|
674
678
|
*/
|
|
675
679
|
switchTransactionLogsToCloudStorageEnabled?: boolean | null;
|
|
680
|
+
/**
|
|
681
|
+
* 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.
|
|
682
|
+
*/
|
|
683
|
+
tags?: {
|
|
684
|
+
[key: string]: string;
|
|
685
|
+
} | null;
|
|
676
686
|
/**
|
|
677
687
|
* Output only. All database versions that are available for upgrade.
|
|
678
688
|
*/
|
|
@@ -843,6 +853,8 @@ export declare namespace sqladmin_v1 {
|
|
|
843
853
|
bakType?: string;
|
|
844
854
|
copyOnly?: boolean;
|
|
845
855
|
differentialBase?: boolean;
|
|
856
|
+
exportLogEndTime?: string;
|
|
857
|
+
exportLogStartTime?: string;
|
|
846
858
|
stripeCount?: number;
|
|
847
859
|
striped?: boolean;
|
|
848
860
|
} | null;
|
|
@@ -893,6 +905,15 @@ export declare namespace sqladmin_v1 {
|
|
|
893
905
|
*/
|
|
894
906
|
uri?: string | null;
|
|
895
907
|
}
|
|
908
|
+
/**
|
|
909
|
+
* The selected object that Cloud SQL migrates.
|
|
910
|
+
*/
|
|
911
|
+
export interface Schema$ExternalSyncSelectedObject {
|
|
912
|
+
/**
|
|
913
|
+
* The name of the database that Cloud SQL migrates.
|
|
914
|
+
*/
|
|
915
|
+
database?: string | null;
|
|
916
|
+
}
|
|
896
917
|
/**
|
|
897
918
|
* Database instance failover context.
|
|
898
919
|
*/
|
|
@@ -1226,6 +1247,27 @@ export declare namespace sqladmin_v1 {
|
|
|
1226
1247
|
*/
|
|
1227
1248
|
kind?: string | null;
|
|
1228
1249
|
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Instances ListServerCertificates response.
|
|
1252
|
+
*/
|
|
1253
|
+
export interface Schema$InstancesListServerCertificatesResponse {
|
|
1254
|
+
/**
|
|
1255
|
+
* The `sha1_fingerprint` of the active certificate from `server_certs`.
|
|
1256
|
+
*/
|
|
1257
|
+
activeVersion?: string | null;
|
|
1258
|
+
/**
|
|
1259
|
+
* List of server CA certificates for the instance.
|
|
1260
|
+
*/
|
|
1261
|
+
caCerts?: Schema$SslCert[];
|
|
1262
|
+
/**
|
|
1263
|
+
* This is always `sql#instancesListServerCertificates`.
|
|
1264
|
+
*/
|
|
1265
|
+
kind?: string | null;
|
|
1266
|
+
/**
|
|
1267
|
+
* List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.
|
|
1268
|
+
*/
|
|
1269
|
+
serverCerts?: Schema$SslCert[];
|
|
1270
|
+
}
|
|
1229
1271
|
/**
|
|
1230
1272
|
* Database Instance reencrypt request.
|
|
1231
1273
|
*/
|
|
@@ -1253,6 +1295,15 @@ export declare namespace sqladmin_v1 {
|
|
|
1253
1295
|
*/
|
|
1254
1296
|
rotateServerCaContext?: Schema$RotateServerCaContext;
|
|
1255
1297
|
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Rotate server certificate request.
|
|
1300
|
+
*/
|
|
1301
|
+
export interface Schema$InstancesRotateServerCertificateRequest {
|
|
1302
|
+
/**
|
|
1303
|
+
* Optional. Contains details about the rotate server certificate operation.
|
|
1304
|
+
*/
|
|
1305
|
+
rotateServerCertificateContext?: Schema$RotateServerCertificateContext;
|
|
1306
|
+
}
|
|
1256
1307
|
/**
|
|
1257
1308
|
* Instance truncate log request.
|
|
1258
1309
|
*/
|
|
@@ -1274,6 +1325,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1274
1325
|
* 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`).
|
|
1275
1326
|
*/
|
|
1276
1327
|
authorizedNetworks?: Schema$AclEntry[];
|
|
1328
|
+
/**
|
|
1329
|
+
* Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
|
|
1330
|
+
*/
|
|
1331
|
+
customSubjectAlternativeNames?: string[] | null;
|
|
1277
1332
|
/**
|
|
1278
1333
|
* Controls connectivity to private IP instances from Google services, such as BigQuery.
|
|
1279
1334
|
*/
|
|
@@ -1298,6 +1353,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1298
1353
|
* Specify what type of CA is used for the server certificate.
|
|
1299
1354
|
*/
|
|
1300
1355
|
serverCaMode?: string | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* 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/
|
|
1358
|
+
*/
|
|
1359
|
+
serverCaPool?: string | null;
|
|
1301
1360
|
/**
|
|
1302
1361
|
* 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.
|
|
1303
1362
|
*/
|
|
@@ -1452,10 +1511,18 @@ export declare namespace sqladmin_v1 {
|
|
|
1452
1511
|
* The password for connecting to on-premises instance.
|
|
1453
1512
|
*/
|
|
1454
1513
|
password?: string | null;
|
|
1514
|
+
/**
|
|
1515
|
+
* Optional. A list of objects that the user selects for replication from an external source instance.
|
|
1516
|
+
*/
|
|
1517
|
+
selectedObjects?: Schema$SelectedObjects[];
|
|
1455
1518
|
/**
|
|
1456
1519
|
* The reference to Cloud SQL instance if the source is Cloud SQL.
|
|
1457
1520
|
*/
|
|
1458
1521
|
sourceInstance?: Schema$InstanceReference;
|
|
1522
|
+
/**
|
|
1523
|
+
* Optional. SSL option for replica connection to the on-premises source.
|
|
1524
|
+
*/
|
|
1525
|
+
sslOption?: string | null;
|
|
1459
1526
|
/**
|
|
1460
1527
|
* The username for connecting to on-premises instance.
|
|
1461
1528
|
*/
|
|
@@ -1522,8 +1589,9 @@ export declare namespace sqladmin_v1 {
|
|
|
1522
1589
|
*/
|
|
1523
1590
|
status?: string | null;
|
|
1524
1591
|
/**
|
|
1525
|
-
*
|
|
1592
|
+
* Optional. The sub operation based on the operation type.
|
|
1526
1593
|
*/
|
|
1594
|
+
subOperationType?: Schema$SqlSubOperationType;
|
|
1527
1595
|
targetId?: string | null;
|
|
1528
1596
|
targetLink?: string | null;
|
|
1529
1597
|
/**
|
|
@@ -1574,7 +1642,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1574
1642
|
*/
|
|
1575
1643
|
apiVersion?: string | null;
|
|
1576
1644
|
/**
|
|
1577
|
-
* 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
|
|
1645
|
+
* 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`.
|
|
1578
1646
|
*/
|
|
1579
1647
|
cancelRequested?: boolean | null;
|
|
1580
1648
|
/**
|
|
@@ -1670,6 +1738,31 @@ export declare namespace sqladmin_v1 {
|
|
|
1670
1738
|
*/
|
|
1671
1739
|
targetSizeGb?: string | null;
|
|
1672
1740
|
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
1743
|
+
*/
|
|
1744
|
+
export interface Schema$PscAutoConnectionConfig {
|
|
1745
|
+
/**
|
|
1746
|
+
* The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
|
|
1747
|
+
*/
|
|
1748
|
+
consumerNetwork?: string | null;
|
|
1749
|
+
/**
|
|
1750
|
+
* The connection policy status of the consumer network.
|
|
1751
|
+
*/
|
|
1752
|
+
consumerNetworkStatus?: string | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network.
|
|
1755
|
+
*/
|
|
1756
|
+
consumerProject?: string | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* The IP address of the consumer endpoint.
|
|
1759
|
+
*/
|
|
1760
|
+
ipAddress?: string | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* The connection status of the consumer endpoint.
|
|
1763
|
+
*/
|
|
1764
|
+
status?: string | null;
|
|
1765
|
+
}
|
|
1673
1766
|
/**
|
|
1674
1767
|
* PSC settings for a Cloud SQL instance.
|
|
1675
1768
|
*/
|
|
@@ -1678,6 +1771,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1678
1771
|
* Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
|
1679
1772
|
*/
|
|
1680
1773
|
allowedConsumerProjects?: string[] | null;
|
|
1774
|
+
/**
|
|
1775
|
+
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
1776
|
+
*/
|
|
1777
|
+
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
1681
1778
|
/**
|
|
1682
1779
|
* Whether PSC connectivity is enabled for this instance.
|
|
1683
1780
|
*/
|
|
@@ -1705,7 +1802,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1705
1802
|
mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
|
|
1706
1803
|
}
|
|
1707
1804
|
/**
|
|
1708
|
-
* 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.
|
|
1805
|
+
* 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.
|
|
1709
1806
|
*/
|
|
1710
1807
|
export interface Schema$ReplicationCluster {
|
|
1711
1808
|
/**
|
|
@@ -1717,7 +1814,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1717
1814
|
*/
|
|
1718
1815
|
failoverDrReplicaName?: string | null;
|
|
1719
1816
|
/**
|
|
1720
|
-
* Output only. If set,
|
|
1817
|
+
* 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.
|
|
1721
1818
|
*/
|
|
1722
1819
|
psaWriteEndpoint?: string | null;
|
|
1723
1820
|
}
|
|
@@ -1765,6 +1862,28 @@ export declare namespace sqladmin_v1 {
|
|
|
1765
1862
|
*/
|
|
1766
1863
|
nextVersion?: string | null;
|
|
1767
1864
|
}
|
|
1865
|
+
/**
|
|
1866
|
+
* Instance rotate server certificate context.
|
|
1867
|
+
*/
|
|
1868
|
+
export interface Schema$RotateServerCertificateContext {
|
|
1869
|
+
/**
|
|
1870
|
+
* Optional. This is always `sql#rotateServerCertificateContext`.
|
|
1871
|
+
*/
|
|
1872
|
+
kind?: string | null;
|
|
1873
|
+
/**
|
|
1874
|
+
* The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
|
|
1875
|
+
*/
|
|
1876
|
+
nextVersion?: string | null;
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* A list of objects that the user selects for replication from an external source instance.
|
|
1880
|
+
*/
|
|
1881
|
+
export interface Schema$SelectedObjects {
|
|
1882
|
+
/**
|
|
1883
|
+
* Required. The name of the database to migrate.
|
|
1884
|
+
*/
|
|
1885
|
+
database?: string | null;
|
|
1886
|
+
}
|
|
1768
1887
|
/**
|
|
1769
1888
|
* Database instance settings.
|
|
1770
1889
|
*/
|
|
@@ -1873,6 +1992,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1873
1992
|
* The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
|
|
1874
1993
|
*/
|
|
1875
1994
|
pricingPlan?: string | null;
|
|
1995
|
+
/**
|
|
1996
|
+
* Optional. Configuration value for recreation of replica after certain replication lag
|
|
1997
|
+
*/
|
|
1998
|
+
replicationLagMaxSeconds?: number | null;
|
|
1876
1999
|
/**
|
|
1877
2000
|
* The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
|
|
1878
2001
|
*/
|
|
@@ -2037,6 +2160,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2037
2160
|
* Optional. MySQL-specific settings for start external sync.
|
|
2038
2161
|
*/
|
|
2039
2162
|
mysqlSyncConfig?: Schema$MySqlSyncConfig;
|
|
2163
|
+
/**
|
|
2164
|
+
* Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
|
|
2165
|
+
*/
|
|
2166
|
+
selectedObjects?: Schema$ExternalSyncSelectedObject[];
|
|
2040
2167
|
/**
|
|
2041
2168
|
* External sync mode
|
|
2042
2169
|
*/
|
|
@@ -2149,6 +2276,15 @@ export declare namespace sqladmin_v1 {
|
|
|
2149
2276
|
*/
|
|
2150
2277
|
serverRoles?: string[] | null;
|
|
2151
2278
|
}
|
|
2279
|
+
/**
|
|
2280
|
+
* The sub operation type based on the operation type.
|
|
2281
|
+
*/
|
|
2282
|
+
export interface Schema$SqlSubOperationType {
|
|
2283
|
+
/**
|
|
2284
|
+
* The type of maintenance to be performed on the instance.
|
|
2285
|
+
*/
|
|
2286
|
+
maintenanceType?: string | null;
|
|
2287
|
+
}
|
|
2152
2288
|
/**
|
|
2153
2289
|
* SslCerts Resource
|
|
2154
2290
|
*/
|
|
@@ -2809,7 +2945,7 @@ export declare namespace sqladmin_v1 {
|
|
|
2809
2945
|
acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
|
|
2810
2946
|
acquireSsrsLease(callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
|
|
2811
2947
|
/**
|
|
2812
|
-
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA,
|
|
2948
|
+
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
|
|
2813
2949
|
*
|
|
2814
2950
|
* @param params - Parameters for request
|
|
2815
2951
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2822,6 +2958,20 @@ export declare namespace sqladmin_v1 {
|
|
|
2822
2958
|
addServerCa(params: Params$Resource$Instances$Addserverca, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2823
2959
|
addServerCa(params: Params$Resource$Instances$Addserverca, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2824
2960
|
addServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2961
|
+
/**
|
|
2962
|
+
* Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.
|
|
2963
|
+
*
|
|
2964
|
+
* @param params - Parameters for request
|
|
2965
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2966
|
+
* @param callback - Optional callback that handles the response.
|
|
2967
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2968
|
+
*/
|
|
2969
|
+
addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2970
|
+
addServerCertificate(params?: Params$Resource$Instances$Addservercertificate, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
2971
|
+
addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2972
|
+
addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2973
|
+
addServerCertificate(params: Params$Resource$Instances$Addservercertificate, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2974
|
+
addServerCertificate(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2825
2975
|
/**
|
|
2826
2976
|
* Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
|
|
2827
2977
|
*
|
|
@@ -2976,6 +3126,20 @@ export declare namespace sqladmin_v1 {
|
|
|
2976
3126
|
listServerCas(params: Params$Resource$Instances$Listservercas, options: MethodOptions | BodyResponseCallback<Schema$InstancesListServerCasResponse>, callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
|
|
2977
3127
|
listServerCas(params: Params$Resource$Instances$Listservercas, callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
|
|
2978
3128
|
listServerCas(callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
|
|
3129
|
+
/**
|
|
3130
|
+
* Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.
|
|
3131
|
+
*
|
|
3132
|
+
* @param params - Parameters for request
|
|
3133
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3134
|
+
* @param callback - Optional callback that handles the response.
|
|
3135
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3136
|
+
*/
|
|
3137
|
+
ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3138
|
+
ListServerCertificates(params?: Params$Resource$Instances$Listservercertificates, options?: MethodOptions): GaxiosPromise<Schema$InstancesListServerCertificatesResponse>;
|
|
3139
|
+
ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3140
|
+
ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: MethodOptions | BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>, callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
|
|
3141
|
+
ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
|
|
3142
|
+
ListServerCertificates(callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
|
|
2979
3143
|
/**
|
|
2980
3144
|
* Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
|
|
2981
3145
|
*
|
|
@@ -3075,7 +3239,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3075
3239
|
restoreBackup(params: Params$Resource$Instances$Restorebackup, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3076
3240
|
restoreBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3077
3241
|
/**
|
|
3078
|
-
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA,
|
|
3242
|
+
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
|
|
3079
3243
|
*
|
|
3080
3244
|
* @param params - Parameters for request
|
|
3081
3245
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3088,6 +3252,20 @@ export declare namespace sqladmin_v1 {
|
|
|
3088
3252
|
rotateServerCa(params: Params$Resource$Instances$Rotateserverca, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3089
3253
|
rotateServerCa(params: Params$Resource$Instances$Rotateserverca, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3090
3254
|
rotateServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3255
|
+
/**
|
|
3256
|
+
* Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.
|
|
3257
|
+
*
|
|
3258
|
+
* @param params - Parameters for request
|
|
3259
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3260
|
+
* @param callback - Optional callback that handles the response.
|
|
3261
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3262
|
+
*/
|
|
3263
|
+
RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3264
|
+
RotateServerCertificate(params?: Params$Resource$Instances$Rotateservercertificate, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
3265
|
+
RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3266
|
+
RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3267
|
+
RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3268
|
+
RotateServerCertificate(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3091
3269
|
/**
|
|
3092
3270
|
* Starts the replication in the read replica instance.
|
|
3093
3271
|
*
|
|
@@ -3117,7 +3295,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3117
3295
|
stopReplica(params: Params$Resource$Instances$Stopreplica, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3118
3296
|
stopReplica(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3119
3297
|
/**
|
|
3120
|
-
* Switches over from the primary instance to the
|
|
3298
|
+
* Switches over from the primary instance to the DR replica instance.
|
|
3121
3299
|
*
|
|
3122
3300
|
* @param params - Parameters for request
|
|
3123
3301
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3183,6 +3361,16 @@ export declare namespace sqladmin_v1 {
|
|
|
3183
3361
|
*/
|
|
3184
3362
|
project?: string;
|
|
3185
3363
|
}
|
|
3364
|
+
export interface Params$Resource$Instances$Addservercertificate extends StandardParameters {
|
|
3365
|
+
/**
|
|
3366
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3367
|
+
*/
|
|
3368
|
+
instance?: string;
|
|
3369
|
+
/**
|
|
3370
|
+
* Project ID of the project that contains the instance.
|
|
3371
|
+
*/
|
|
3372
|
+
project?: string;
|
|
3373
|
+
}
|
|
3186
3374
|
export interface Params$Resource$Instances$Clone extends StandardParameters {
|
|
3187
3375
|
/**
|
|
3188
3376
|
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
@@ -3325,6 +3513,16 @@ export declare namespace sqladmin_v1 {
|
|
|
3325
3513
|
*/
|
|
3326
3514
|
project?: string;
|
|
3327
3515
|
}
|
|
3516
|
+
export interface Params$Resource$Instances$Listservercertificates extends StandardParameters {
|
|
3517
|
+
/**
|
|
3518
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
3519
|
+
*/
|
|
3520
|
+
instance?: string;
|
|
3521
|
+
/**
|
|
3522
|
+
* Required. Project ID of the project that contains the instance.
|
|
3523
|
+
*/
|
|
3524
|
+
project?: string;
|
|
3525
|
+
}
|
|
3328
3526
|
export interface Params$Resource$Instances$Patch extends StandardParameters {
|
|
3329
3527
|
/**
|
|
3330
3528
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -3341,7 +3539,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3341
3539
|
}
|
|
3342
3540
|
export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
|
|
3343
3541
|
/**
|
|
3344
|
-
* Set to true to invoke a replica failover to the
|
|
3542
|
+
* 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.
|
|
3345
3543
|
*/
|
|
3346
3544
|
failover?: boolean;
|
|
3347
3545
|
/**
|
|
@@ -3425,6 +3623,20 @@ export declare namespace sqladmin_v1 {
|
|
|
3425
3623
|
*/
|
|
3426
3624
|
requestBody?: Schema$InstancesRotateServerCaRequest;
|
|
3427
3625
|
}
|
|
3626
|
+
export interface Params$Resource$Instances$Rotateservercertificate extends StandardParameters {
|
|
3627
|
+
/**
|
|
3628
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
3629
|
+
*/
|
|
3630
|
+
instance?: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* Required. Project ID of the project that contains the instance.
|
|
3633
|
+
*/
|
|
3634
|
+
project?: string;
|
|
3635
|
+
/**
|
|
3636
|
+
* Request body metadata
|
|
3637
|
+
*/
|
|
3638
|
+
requestBody?: Schema$InstancesRotateServerCertificateRequest;
|
|
3639
|
+
}
|
|
3428
3640
|
export interface Params$Resource$Instances$Startreplica extends StandardParameters {
|
|
3429
3641
|
/**
|
|
3430
3642
|
* Cloud SQL read replica instance name.
|
|
@@ -3447,7 +3659,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3447
3659
|
}
|
|
3448
3660
|
export interface Params$Resource$Instances$Switchover extends StandardParameters {
|
|
3449
3661
|
/**
|
|
3450
|
-
* 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.
|
|
3662
|
+
* 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.
|
|
3451
3663
|
*/
|
|
3452
3664
|
dbTimeout?: string;
|
|
3453
3665
|
/**
|
package/build/v1.js
CHANGED
|
@@ -559,6 +559,39 @@ var sqladmin_v1;
|
|
|
559
559
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
+
addServerCertificate(paramsOrCallback, optionsOrCallback, callback) {
|
|
563
|
+
let params = (paramsOrCallback ||
|
|
564
|
+
{});
|
|
565
|
+
let options = (optionsOrCallback || {});
|
|
566
|
+
if (typeof paramsOrCallback === 'function') {
|
|
567
|
+
callback = paramsOrCallback;
|
|
568
|
+
params = {};
|
|
569
|
+
options = {};
|
|
570
|
+
}
|
|
571
|
+
if (typeof optionsOrCallback === 'function') {
|
|
572
|
+
callback = optionsOrCallback;
|
|
573
|
+
options = {};
|
|
574
|
+
}
|
|
575
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
576
|
+
const parameters = {
|
|
577
|
+
options: Object.assign({
|
|
578
|
+
url: (rootUrl +
|
|
579
|
+
'/v1/projects/{project}/instances/{instance}/addServerCertificate').replace(/([^:]\/)\/+/g, '$1'),
|
|
580
|
+
method: 'POST',
|
|
581
|
+
apiVersion: '',
|
|
582
|
+
}, options),
|
|
583
|
+
params,
|
|
584
|
+
requiredParams: ['project', 'instance'],
|
|
585
|
+
pathParams: ['instance', 'project'],
|
|
586
|
+
context: this.context,
|
|
587
|
+
};
|
|
588
|
+
if (callback) {
|
|
589
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
562
595
|
clone(paramsOrCallback, optionsOrCallback, callback) {
|
|
563
596
|
let params = (paramsOrCallback || {});
|
|
564
597
|
let options = (optionsOrCallback || {});
|
|
@@ -905,6 +938,39 @@ var sqladmin_v1;
|
|
|
905
938
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
906
939
|
}
|
|
907
940
|
}
|
|
941
|
+
ListServerCertificates(paramsOrCallback, optionsOrCallback, callback) {
|
|
942
|
+
let params = (paramsOrCallback ||
|
|
943
|
+
{});
|
|
944
|
+
let options = (optionsOrCallback || {});
|
|
945
|
+
if (typeof paramsOrCallback === 'function') {
|
|
946
|
+
callback = paramsOrCallback;
|
|
947
|
+
params = {};
|
|
948
|
+
options = {};
|
|
949
|
+
}
|
|
950
|
+
if (typeof optionsOrCallback === 'function') {
|
|
951
|
+
callback = optionsOrCallback;
|
|
952
|
+
options = {};
|
|
953
|
+
}
|
|
954
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
955
|
+
const parameters = {
|
|
956
|
+
options: Object.assign({
|
|
957
|
+
url: (rootUrl +
|
|
958
|
+
'/v1/projects/{project}/instances/{instance}/listServerCertificates').replace(/([^:]\/)\/+/g, '$1'),
|
|
959
|
+
method: 'GET',
|
|
960
|
+
apiVersion: '',
|
|
961
|
+
}, options),
|
|
962
|
+
params,
|
|
963
|
+
requiredParams: ['project', 'instance'],
|
|
964
|
+
pathParams: ['instance', 'project'],
|
|
965
|
+
context: this.context,
|
|
966
|
+
};
|
|
967
|
+
if (callback) {
|
|
968
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
969
|
+
}
|
|
970
|
+
else {
|
|
971
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
908
974
|
patch(paramsOrCallback, optionsOrCallback, callback) {
|
|
909
975
|
let params = (paramsOrCallback || {});
|
|
910
976
|
let options = (optionsOrCallback || {});
|
|
@@ -1165,6 +1231,39 @@ var sqladmin_v1;
|
|
|
1165
1231
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1166
1232
|
}
|
|
1167
1233
|
}
|
|
1234
|
+
RotateServerCertificate(paramsOrCallback, optionsOrCallback, callback) {
|
|
1235
|
+
let params = (paramsOrCallback ||
|
|
1236
|
+
{});
|
|
1237
|
+
let options = (optionsOrCallback || {});
|
|
1238
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1239
|
+
callback = paramsOrCallback;
|
|
1240
|
+
params = {};
|
|
1241
|
+
options = {};
|
|
1242
|
+
}
|
|
1243
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1244
|
+
callback = optionsOrCallback;
|
|
1245
|
+
options = {};
|
|
1246
|
+
}
|
|
1247
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1248
|
+
const parameters = {
|
|
1249
|
+
options: Object.assign({
|
|
1250
|
+
url: (rootUrl +
|
|
1251
|
+
'/v1/projects/{project}/instances/{instance}/rotateServerCertificate').replace(/([^:]\/)\/+/g, '$1'),
|
|
1252
|
+
method: 'POST',
|
|
1253
|
+
apiVersion: '',
|
|
1254
|
+
}, options),
|
|
1255
|
+
params,
|
|
1256
|
+
requiredParams: ['project', 'instance'],
|
|
1257
|
+
pathParams: ['instance', 'project'],
|
|
1258
|
+
context: this.context,
|
|
1259
|
+
};
|
|
1260
|
+
if (callback) {
|
|
1261
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1262
|
+
}
|
|
1263
|
+
else {
|
|
1264
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1168
1267
|
startReplica(paramsOrCallback, optionsOrCallback, callback) {
|
|
1169
1268
|
let params = (paramsOrCallback ||
|
|
1170
1269
|
{});
|