@googleapis/sqladmin 24.0.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.
@@ -409,6 +409,10 @@ export declare namespace sqladmin_v1beta4 {
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` 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`.
414
418
  */
@@ -621,7 +625,7 @@ export declare namespace sqladmin_v1beta4 {
621
625
  */
622
626
  replicaNames?: string[] | null;
623
627
  /**
624
- * 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.
628
+ * 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
  /**
@@ -676,6 +680,12 @@ export declare namespace sqladmin_v1beta4 {
676
680
  * Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
677
681
  */
678
682
  switchTransactionLogsToCloudStorageEnabled?: boolean | null;
683
+ /**
684
+ * 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.
685
+ */
686
+ tags?: {
687
+ [key: string]: string;
688
+ } | null;
679
689
  /**
680
690
  * Output only. All database versions that are available for upgrade.
681
691
  */
@@ -846,6 +856,8 @@ export declare namespace sqladmin_v1beta4 {
846
856
  bakType?: string;
847
857
  copyOnly?: boolean;
848
858
  differentialBase?: boolean;
859
+ exportLogEndTime?: string;
860
+ exportLogStartTime?: string;
849
861
  stripeCount?: number;
850
862
  striped?: boolean;
851
863
  } | null;
@@ -896,6 +908,15 @@ export declare namespace sqladmin_v1beta4 {
896
908
  */
897
909
  uri?: string | null;
898
910
  }
911
+ /**
912
+ * The selected object that Cloud SQL migrates.
913
+ */
914
+ export interface Schema$ExternalSyncSelectedObject {
915
+ /**
916
+ * The name of the database that Cloud SQL migrates.
917
+ */
918
+ database?: string | null;
919
+ }
899
920
  /**
900
921
  * Database instance failover context.
901
922
  */
@@ -1229,6 +1250,27 @@ export declare namespace sqladmin_v1beta4 {
1229
1250
  */
1230
1251
  kind?: string | null;
1231
1252
  }
1253
+ /**
1254
+ * Instances ListServerCertificatess response.
1255
+ */
1256
+ export interface Schema$InstancesListServerCertificatesResponse {
1257
+ /**
1258
+ * The `sha1_fingerprint` of the active certificate from `server_certs`.
1259
+ */
1260
+ activeVersion?: string | null;
1261
+ /**
1262
+ * List of server CA certificates for the instance.
1263
+ */
1264
+ caCerts?: Schema$SslCert[];
1265
+ /**
1266
+ * This is always `sql#instancesListServerCertificates`.
1267
+ */
1268
+ kind?: string | null;
1269
+ /**
1270
+ * List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.
1271
+ */
1272
+ serverCerts?: Schema$SslCert[];
1273
+ }
1232
1274
  /**
1233
1275
  * Database Instance reencrypt request.
1234
1276
  */
@@ -1256,6 +1298,15 @@ export declare namespace sqladmin_v1beta4 {
1256
1298
  */
1257
1299
  rotateServerCaContext?: Schema$RotateServerCaContext;
1258
1300
  }
1301
+ /**
1302
+ * Rotate Server Certificate request.
1303
+ */
1304
+ export interface Schema$InstancesRotateServerCertificateRequest {
1305
+ /**
1306
+ * Optional. Contains details about the rotate server CA operation.
1307
+ */
1308
+ rotateServerCertificateContext?: Schema$RotateServerCertificateContext;
1309
+ }
1259
1310
  /**
1260
1311
  * Instance truncate log request.
1261
1312
  */
@@ -1277,6 +1328,10 @@ export declare namespace sqladmin_v1beta4 {
1277
1328
  * 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`).
1278
1329
  */
1279
1330
  authorizedNetworks?: Schema$AclEntry[];
1331
+ /**
1332
+ * Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
1333
+ */
1334
+ customSubjectAlternativeNames?: string[] | null;
1280
1335
  /**
1281
1336
  * Controls connectivity to private IP instances from Google services, such as BigQuery.
1282
1337
  */
@@ -1301,6 +1356,10 @@ export declare namespace sqladmin_v1beta4 {
1301
1356
  * Specify what type of CA is used for the server certificate.
1302
1357
  */
1303
1358
  serverCaMode?: string | null;
1359
+ /**
1360
+ * 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/
1361
+ */
1362
+ serverCaPool?: string | null;
1304
1363
  /**
1305
1364
  * 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.
1306
1365
  */
@@ -1455,10 +1514,18 @@ export declare namespace sqladmin_v1beta4 {
1455
1514
  * The password for connecting to on-premises instance.
1456
1515
  */
1457
1516
  password?: string | null;
1517
+ /**
1518
+ * Optional. A list of objects that the user selects for replication from an external source instance.
1519
+ */
1520
+ selectedObjects?: Schema$SelectedObjects[];
1458
1521
  /**
1459
1522
  * The reference to Cloud SQL instance if the source is Cloud SQL.
1460
1523
  */
1461
1524
  sourceInstance?: Schema$InstanceReference;
1525
+ /**
1526
+ * Optional. SslOption for replica connection to the on-premises source.
1527
+ */
1528
+ sslOption?: string | null;
1462
1529
  /**
1463
1530
  * The username for connecting to on-premises instance.
1464
1531
  */
@@ -1525,8 +1592,9 @@ export declare namespace sqladmin_v1beta4 {
1525
1592
  */
1526
1593
  status?: string | null;
1527
1594
  /**
1528
- * Name of the database instance related to this operation.
1595
+ * Optional. The sub operation based on the operation type.
1529
1596
  */
1597
+ subOperationType?: Schema$SqlSubOperationType;
1530
1598
  targetId?: string | null;
1531
1599
  targetLink?: string | null;
1532
1600
  /**
@@ -1577,7 +1645,7 @@ export declare namespace sqladmin_v1beta4 {
1577
1645
  */
1578
1646
  apiVersion?: string | null;
1579
1647
  /**
1580
- * 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`.
1648
+ * 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`.
1581
1649
  */
1582
1650
  cancelRequested?: boolean | null;
1583
1651
  /**
@@ -1673,6 +1741,31 @@ export declare namespace sqladmin_v1beta4 {
1673
1741
  */
1674
1742
  targetSizeGb?: string | null;
1675
1743
  }
1744
+ /**
1745
+ * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
1746
+ */
1747
+ export interface Schema$PscAutoConnectionConfig {
1748
+ /**
1749
+ * 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.
1750
+ */
1751
+ consumerNetwork?: string | null;
1752
+ /**
1753
+ * The connection policy status of the consumer network.
1754
+ */
1755
+ consumerNetworkStatus?: string | null;
1756
+ /**
1757
+ * 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.
1758
+ */
1759
+ consumerProject?: string | null;
1760
+ /**
1761
+ * The IP address of the consumer endpoint.
1762
+ */
1763
+ ipAddress?: string | null;
1764
+ /**
1765
+ * The connection status of the consumer endpoint.
1766
+ */
1767
+ status?: string | null;
1768
+ }
1676
1769
  /**
1677
1770
  * PSC settings for a Cloud SQL instance.
1678
1771
  */
@@ -1681,6 +1774,10 @@ export declare namespace sqladmin_v1beta4 {
1681
1774
  * 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).
1682
1775
  */
1683
1776
  allowedConsumerProjects?: string[] | null;
1777
+ /**
1778
+ * Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
1779
+ */
1780
+ pscAutoConnections?: Schema$PscAutoConnectionConfig[];
1684
1781
  /**
1685
1782
  * Whether PSC connectivity is enabled for this instance.
1686
1783
  */
@@ -1708,7 +1805,7 @@ export declare namespace sqladmin_v1beta4 {
1708
1805
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1709
1806
  }
1710
1807
  /**
1711
- * 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 has regional failure. Only applicable to MySQL.
1808
+ * 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 has regional failure. Applicable to MySQL and PostgreSQL.
1712
1809
  */
1713
1810
  export interface Schema$ReplicationCluster {
1714
1811
  /**
@@ -1720,7 +1817,7 @@ export declare namespace sqladmin_v1beta4 {
1720
1817
  */
1721
1818
  failoverDrReplicaName?: string | null;
1722
1819
  /**
1723
- * 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.
1820
+ * 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.
1724
1821
  */
1725
1822
  psaWriteEndpoint?: string | null;
1726
1823
  }
@@ -1768,6 +1865,28 @@ export declare namespace sqladmin_v1beta4 {
1768
1865
  */
1769
1866
  nextVersion?: string | null;
1770
1867
  }
1868
+ /**
1869
+ * Instance rotate server certificate context.
1870
+ */
1871
+ export interface Schema$RotateServerCertificateContext {
1872
+ /**
1873
+ * Optional. This is always `sql#rotateServerCertificateContext`.
1874
+ */
1875
+ kind?: string | null;
1876
+ /**
1877
+ * Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
1878
+ */
1879
+ nextVersion?: string | null;
1880
+ }
1881
+ /**
1882
+ * A list of objects that the user selects for replication from an external source instance.
1883
+ */
1884
+ export interface Schema$SelectedObjects {
1885
+ /**
1886
+ * Required. The name of the database to migrate.
1887
+ */
1888
+ database?: string | null;
1889
+ }
1771
1890
  /**
1772
1891
  * Database instance settings.
1773
1892
  */
@@ -1876,6 +1995,10 @@ export declare namespace sqladmin_v1beta4 {
1876
1995
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
1877
1996
  */
1878
1997
  pricingPlan?: string | null;
1998
+ /**
1999
+ * Optional. Configuration value for recreation of replica after certain replication lag
2000
+ */
2001
+ replicationLagMaxSeconds?: number | null;
1879
2002
  /**
1880
2003
  * The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
1881
2004
  */
@@ -2034,6 +2157,10 @@ export declare namespace sqladmin_v1beta4 {
2034
2157
  * Optional. MySQL-specific settings for start external sync.
2035
2158
  */
2036
2159
  mysqlSyncConfig?: Schema$MySqlSyncConfig;
2160
+ /**
2161
+ * Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
2162
+ */
2163
+ selectedObjects?: Schema$ExternalSyncSelectedObject[];
2037
2164
  /**
2038
2165
  * External sync mode
2039
2166
  */
@@ -2146,6 +2273,15 @@ export declare namespace sqladmin_v1beta4 {
2146
2273
  */
2147
2274
  serverRoles?: string[] | null;
2148
2275
  }
2276
+ /**
2277
+ * The sub operation type based on the operation type.
2278
+ */
2279
+ export interface Schema$SqlSubOperationType {
2280
+ /**
2281
+ * The type of maintenance to be performed on the instance.
2282
+ */
2283
+ maintenanceType?: string | null;
2284
+ }
2149
2285
  /**
2150
2286
  * SslCerts Resource
2151
2287
  */
@@ -2806,7 +2942,7 @@ export declare namespace sqladmin_v1beta4 {
2806
2942
  acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
2807
2943
  acquireSsrsLease(callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
2808
2944
  /**
2809
- * Add 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, please use AddServerCertificate to add a new server certificate.
2945
+ * Add 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.
2810
2946
  *
2811
2947
  * @param params - Parameters for request
2812
2948
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2819,6 +2955,20 @@ export declare namespace sqladmin_v1beta4 {
2819
2955
  addServerCa(params: Params$Resource$Instances$Addserverca, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2820
2956
  addServerCa(params: Params$Resource$Instances$Addserverca, callback: BodyResponseCallback<Schema$Operation>): void;
2821
2957
  addServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
2958
+ /**
2959
+ * 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.
2960
+ *
2961
+ * @param params - Parameters for request
2962
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2963
+ * @param callback - Optional callback that handles the response.
2964
+ * @returns A promise if used with async/await, or void if used with a callback.
2965
+ */
2966
+ addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: StreamMethodOptions): GaxiosPromise<Readable>;
2967
+ addServerCertificate(params?: Params$Resource$Instances$Addservercertificate, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
2968
+ addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2969
+ addServerCertificate(params: Params$Resource$Instances$Addservercertificate, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2970
+ addServerCertificate(params: Params$Resource$Instances$Addservercertificate, callback: BodyResponseCallback<Schema$Operation>): void;
2971
+ addServerCertificate(callback: BodyResponseCallback<Schema$Operation>): void;
2822
2972
  /**
2823
2973
  * Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
2824
2974
  *
@@ -2973,6 +3123,20 @@ export declare namespace sqladmin_v1beta4 {
2973
3123
  listServerCas(params: Params$Resource$Instances$Listservercas, options: MethodOptions | BodyResponseCallback<Schema$InstancesListServerCasResponse>, callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
2974
3124
  listServerCas(params: Params$Resource$Instances$Listservercas, callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
2975
3125
  listServerCas(callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
3126
+ /**
3127
+ * 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.
3128
+ *
3129
+ * @param params - Parameters for request
3130
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3131
+ * @param callback - Optional callback that handles the response.
3132
+ * @returns A promise if used with async/await, or void if used with a callback.
3133
+ */
3134
+ ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: StreamMethodOptions): GaxiosPromise<Readable>;
3135
+ ListServerCertificates(params?: Params$Resource$Instances$Listservercertificates, options?: MethodOptions): GaxiosPromise<Schema$InstancesListServerCertificatesResponse>;
3136
+ ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3137
+ ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, options: MethodOptions | BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>, callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
3138
+ ListServerCertificates(params: Params$Resource$Instances$Listservercertificates, callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
3139
+ ListServerCertificates(callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>): void;
2976
3140
  /**
2977
3141
  * Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
2978
3142
  *
@@ -3072,7 +3236,7 @@ export declare namespace sqladmin_v1beta4 {
3072
3236
  restoreBackup(params: Params$Resource$Instances$Restorebackup, callback: BodyResponseCallback<Schema$Operation>): void;
3073
3237
  restoreBackup(callback: BodyResponseCallback<Schema$Operation>): void;
3074
3238
  /**
3075
- * 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, please use RotateServerCertificate to rotate the server certificate.
3239
+ * 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.
3076
3240
  *
3077
3241
  * @param params - Parameters for request
3078
3242
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3085,6 +3249,20 @@ export declare namespace sqladmin_v1beta4 {
3085
3249
  rotateServerCa(params: Params$Resource$Instances$Rotateserverca, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3086
3250
  rotateServerCa(params: Params$Resource$Instances$Rotateserverca, callback: BodyResponseCallback<Schema$Operation>): void;
3087
3251
  rotateServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
3252
+ /**
3253
+ * 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.
3254
+ *
3255
+ * @param params - Parameters for request
3256
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3257
+ * @param callback - Optional callback that handles the response.
3258
+ * @returns A promise if used with async/await, or void if used with a callback.
3259
+ */
3260
+ RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: StreamMethodOptions): GaxiosPromise<Readable>;
3261
+ RotateServerCertificate(params?: Params$Resource$Instances$Rotateservercertificate, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
3262
+ RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3263
+ RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
3264
+ RotateServerCertificate(params: Params$Resource$Instances$Rotateservercertificate, callback: BodyResponseCallback<Schema$Operation>): void;
3265
+ RotateServerCertificate(callback: BodyResponseCallback<Schema$Operation>): void;
3088
3266
  /**
3089
3267
  * Starts the replication in the read replica instance.
3090
3268
  *
@@ -3114,7 +3292,7 @@ export declare namespace sqladmin_v1beta4 {
3114
3292
  stopReplica(params: Params$Resource$Instances$Stopreplica, callback: BodyResponseCallback<Schema$Operation>): void;
3115
3293
  stopReplica(callback: BodyResponseCallback<Schema$Operation>): void;
3116
3294
  /**
3117
- * Switches over from the primary instance to the designated DR replica instance.
3295
+ * Switches over from the primary instance to the DR replica instance.
3118
3296
  *
3119
3297
  * @param params - Parameters for request
3120
3298
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3180,6 +3358,16 @@ export declare namespace sqladmin_v1beta4 {
3180
3358
  */
3181
3359
  project?: string;
3182
3360
  }
3361
+ export interface Params$Resource$Instances$Addservercertificate extends StandardParameters {
3362
+ /**
3363
+ * Required. Cloud SQL instance ID. This does not include the project ID.
3364
+ */
3365
+ instance?: string;
3366
+ /**
3367
+ * Required. Project ID of the project that contains the instance.
3368
+ */
3369
+ project?: string;
3370
+ }
3183
3371
  export interface Params$Resource$Instances$Clone extends StandardParameters {
3184
3372
  /**
3185
3373
  * The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
@@ -3322,6 +3510,16 @@ export declare namespace sqladmin_v1beta4 {
3322
3510
  */
3323
3511
  project?: string;
3324
3512
  }
3513
+ export interface Params$Resource$Instances$Listservercertificates extends StandardParameters {
3514
+ /**
3515
+ * Required. Cloud SQL instance ID. This does not include the project ID.
3516
+ */
3517
+ instance?: string;
3518
+ /**
3519
+ * Required. Project ID of the project that contains the instance.
3520
+ */
3521
+ project?: string;
3522
+ }
3325
3523
  export interface Params$Resource$Instances$Patch extends StandardParameters {
3326
3524
  /**
3327
3525
  * Cloud SQL instance ID. This does not include the project ID.
@@ -3338,7 +3536,7 @@ export declare namespace sqladmin_v1beta4 {
3338
3536
  }
3339
3537
  export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
3340
3538
  /**
3341
- * 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.
3539
+ * 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.
3342
3540
  */
3343
3541
  failover?: boolean;
3344
3542
  /**
@@ -3422,6 +3620,20 @@ export declare namespace sqladmin_v1beta4 {
3422
3620
  */
3423
3621
  requestBody?: Schema$InstancesRotateServerCaRequest;
3424
3622
  }
3623
+ export interface Params$Resource$Instances$Rotateservercertificate extends StandardParameters {
3624
+ /**
3625
+ * Required. Cloud SQL instance ID. This does not include the project ID.
3626
+ */
3627
+ instance?: string;
3628
+ /**
3629
+ * Required. Project ID of the project that contains the instance.
3630
+ */
3631
+ project?: string;
3632
+ /**
3633
+ * Request body metadata
3634
+ */
3635
+ requestBody?: Schema$InstancesRotateServerCertificateRequest;
3636
+ }
3425
3637
  export interface Params$Resource$Instances$Startreplica extends StandardParameters {
3426
3638
  /**
3427
3639
  * Cloud SQL read replica instance name.
@@ -3444,7 +3656,7 @@ export declare namespace sqladmin_v1beta4 {
3444
3656
  }
3445
3657
  export interface Params$Resource$Instances$Switchover extends StandardParameters {
3446
3658
  /**
3447
- * 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.
3659
+ * 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.
3448
3660
  */
3449
3661
  dbTimeout?: string;
3450
3662
  /**
package/build/v1beta4.js CHANGED
@@ -563,6 +563,39 @@ var sqladmin_v1beta4;
563
563
  return (0, googleapis_common_1.createAPIRequest)(parameters);
564
564
  }
565
565
  }
566
+ addServerCertificate(paramsOrCallback, optionsOrCallback, callback) {
567
+ let params = (paramsOrCallback ||
568
+ {});
569
+ let options = (optionsOrCallback || {});
570
+ if (typeof paramsOrCallback === 'function') {
571
+ callback = paramsOrCallback;
572
+ params = {};
573
+ options = {};
574
+ }
575
+ if (typeof optionsOrCallback === 'function') {
576
+ callback = optionsOrCallback;
577
+ options = {};
578
+ }
579
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
580
+ const parameters = {
581
+ options: Object.assign({
582
+ url: (rootUrl +
583
+ '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCertificate').replace(/([^:]\/)\/+/g, '$1'),
584
+ method: 'POST',
585
+ apiVersion: '',
586
+ }, options),
587
+ params,
588
+ requiredParams: ['project', 'instance'],
589
+ pathParams: ['instance', 'project'],
590
+ context: this.context,
591
+ };
592
+ if (callback) {
593
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
594
+ }
595
+ else {
596
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
597
+ }
598
+ }
566
599
  clone(paramsOrCallback, optionsOrCallback, callback) {
567
600
  let params = (paramsOrCallback || {});
568
601
  let options = (optionsOrCallback || {});
@@ -914,6 +947,39 @@ var sqladmin_v1beta4;
914
947
  return (0, googleapis_common_1.createAPIRequest)(parameters);
915
948
  }
916
949
  }
950
+ ListServerCertificates(paramsOrCallback, optionsOrCallback, callback) {
951
+ let params = (paramsOrCallback ||
952
+ {});
953
+ let options = (optionsOrCallback || {});
954
+ if (typeof paramsOrCallback === 'function') {
955
+ callback = paramsOrCallback;
956
+ params = {};
957
+ options = {};
958
+ }
959
+ if (typeof optionsOrCallback === 'function') {
960
+ callback = optionsOrCallback;
961
+ options = {};
962
+ }
963
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
964
+ const parameters = {
965
+ options: Object.assign({
966
+ url: (rootUrl +
967
+ '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCertificates').replace(/([^:]\/)\/+/g, '$1'),
968
+ method: 'GET',
969
+ apiVersion: '',
970
+ }, options),
971
+ params,
972
+ requiredParams: ['project', 'instance'],
973
+ pathParams: ['instance', 'project'],
974
+ context: this.context,
975
+ };
976
+ if (callback) {
977
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
978
+ }
979
+ else {
980
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
981
+ }
982
+ }
917
983
  patch(paramsOrCallback, optionsOrCallback, callback) {
918
984
  let params = (paramsOrCallback || {});
919
985
  let options = (optionsOrCallback || {});
@@ -1176,6 +1242,39 @@ var sqladmin_v1beta4;
1176
1242
  return (0, googleapis_common_1.createAPIRequest)(parameters);
1177
1243
  }
1178
1244
  }
1245
+ RotateServerCertificate(paramsOrCallback, optionsOrCallback, callback) {
1246
+ let params = (paramsOrCallback ||
1247
+ {});
1248
+ let options = (optionsOrCallback || {});
1249
+ if (typeof paramsOrCallback === 'function') {
1250
+ callback = paramsOrCallback;
1251
+ params = {};
1252
+ options = {};
1253
+ }
1254
+ if (typeof optionsOrCallback === 'function') {
1255
+ callback = optionsOrCallback;
1256
+ options = {};
1257
+ }
1258
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
1259
+ const parameters = {
1260
+ options: Object.assign({
1261
+ url: (rootUrl +
1262
+ '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate').replace(/([^:]\/)\/+/g, '$1'),
1263
+ method: 'POST',
1264
+ apiVersion: '',
1265
+ }, options),
1266
+ params,
1267
+ requiredParams: ['project', 'instance'],
1268
+ pathParams: ['instance', 'project'],
1269
+ context: this.context,
1270
+ };
1271
+ if (callback) {
1272
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1273
+ }
1274
+ else {
1275
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1276
+ }
1277
+ }
1179
1278
  startReplica(paramsOrCallback, optionsOrCallback, callback) {
1180
1279
  let params = (paramsOrCallback ||
1181
1280
  {});