@googleapis/sqladmin 32.0.0 → 33.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/build/v1.d.ts CHANGED
@@ -166,7 +166,7 @@ export declare namespace sqladmin_v1 {
166
166
  name?: string | null;
167
167
  }
168
168
  /**
169
- * A backup resource. Next ID: 30
169
+ * A backup resource.
170
170
  */
171
171
  export interface Schema$Backup {
172
172
  /**
@@ -1080,6 +1080,10 @@ export declare namespace sqladmin_v1 {
1080
1080
  * Optional. Name of the database on which the statement will be executed.
1081
1081
  */
1082
1082
  database?: string | null;
1083
+ /**
1084
+ * Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.
1085
+ */
1086
+ partialResultMode?: string | null;
1083
1087
  /**
1084
1088
  * Optional. The maximum number of rows returned per SQL statement.
1085
1089
  */
@@ -1088,6 +1092,10 @@ export declare namespace sqladmin_v1 {
1088
1092
  * Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1089
1093
  */
1090
1094
  sqlStatement?: string | null;
1095
+ /**
1096
+ * Optional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.
1097
+ */
1098
+ user?: string | null;
1091
1099
  }
1092
1100
  /**
1093
1101
  * Database instance export context.
@@ -1559,6 +1567,15 @@ export declare namespace sqladmin_v1 {
1559
1567
  */
1560
1568
  serverCerts?: Schema$SslCert[];
1561
1569
  }
1570
+ /**
1571
+ * Request for Pre-checks for MVU
1572
+ */
1573
+ export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
1574
+ /**
1575
+ * Required. Contains details about the pre-check major version upgrade operation.
1576
+ */
1577
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1578
+ }
1562
1579
  /**
1563
1580
  * Database Instance reencrypt request.
1564
1581
  */
@@ -1758,6 +1775,19 @@ export declare namespace sqladmin_v1 {
1758
1775
  */
1759
1776
  updateTrack?: string | null;
1760
1777
  }
1778
+ /**
1779
+ * Represents a notice or warning message from the database.
1780
+ */
1781
+ export interface Schema$Message {
1782
+ /**
1783
+ * The full message string. For PostgreSQL, this is a formatted string that may include severity, code, and the notice/warning message. For MySQL, this contains the warning message.
1784
+ */
1785
+ message?: string | null;
1786
+ /**
1787
+ * The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
1788
+ */
1789
+ severity?: string | null;
1790
+ }
1761
1791
  /**
1762
1792
  * The additional metadata information regarding the execution of the SQL statements.
1763
1793
  */
@@ -1922,6 +1952,10 @@ export declare namespace sqladmin_v1 {
1922
1952
  * The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1923
1953
  */
1924
1954
  operationType?: string | null;
1955
+ /**
1956
+ * This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1957
+ */
1958
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1925
1959
  /**
1926
1960
  * The URI of this resource.
1927
1961
  */
@@ -2149,6 +2183,40 @@ export declare namespace sqladmin_v1 {
2149
2183
  */
2150
2184
  state?: string | null;
2151
2185
  }
2186
+ /**
2187
+ * Pre-check major version upgrade context.
2188
+ */
2189
+ export interface Schema$PreCheckMajorVersionUpgradeContext {
2190
+ /**
2191
+ * Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2192
+ */
2193
+ kind?: string | null;
2194
+ /**
2195
+ * Output only. The responses from the precheck operation.
2196
+ */
2197
+ preCheckResponse?: Schema$PreCheckResponse[];
2198
+ /**
2199
+ * Required. The target database version to upgrade to.
2200
+ */
2201
+ targetDatabaseVersion?: string | null;
2202
+ }
2203
+ /**
2204
+ * Structured PreCheckResponse containing message, type, and required actions.
2205
+ */
2206
+ export interface Schema$PreCheckResponse {
2207
+ /**
2208
+ * The actions that the user needs to take. Use repeated for multiple actions.
2209
+ */
2210
+ actionsRequired?: string[] | null;
2211
+ /**
2212
+ * The message to be displayed to the user.
2213
+ */
2214
+ message?: string | null;
2215
+ /**
2216
+ * The type of message whether it is an info, warning, or error.
2217
+ */
2218
+ messageType?: string | null;
2219
+ }
2152
2220
  /**
2153
2221
  * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2154
2222
  */
@@ -2216,6 +2284,39 @@ export declare namespace sqladmin_v1 {
2216
2284
  */
2217
2285
  rows?: Schema$Row[];
2218
2286
  }
2287
+ /**
2288
+ * The read pool auto-scale configuration.
2289
+ */
2290
+ export interface Schema$ReadPoolAutoScaleConfig {
2291
+ /**
2292
+ * Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2293
+ */
2294
+ disableScaleIn?: boolean | null;
2295
+ /**
2296
+ * Indicates whether read pool auto scaling is enabled.
2297
+ */
2298
+ enabled?: boolean | null;
2299
+ /**
2300
+ * Maximum number of read pool nodes to be maintained.
2301
+ */
2302
+ maxNodeCount?: number | null;
2303
+ /**
2304
+ * Minimum number of read pool nodes to be maintained.
2305
+ */
2306
+ minNodeCount?: number | null;
2307
+ /**
2308
+ * The cooldown period for scale-in operations.
2309
+ */
2310
+ scaleInCooldownSeconds?: number | null;
2311
+ /**
2312
+ * The cooldown period for scale-out operations.
2313
+ */
2314
+ scaleOutCooldownSeconds?: number | null;
2315
+ /**
2316
+ * Optional. Target metrics for read pool auto scaling.
2317
+ */
2318
+ targetMetrics?: Schema$TargetMetric[];
2319
+ }
2219
2320
  /**
2220
2321
  * Read-replica configuration for connecting to the primary instance.
2221
2322
  */
@@ -2453,6 +2554,10 @@ export declare namespace sqladmin_v1 {
2453
2554
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2454
2555
  */
2455
2556
  pricingPlan?: string | null;
2557
+ /**
2558
+ * Optional. The read pool auto-scale configuration for the instance.
2559
+ */
2560
+ readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
2456
2561
  /**
2457
2562
  * Optional. Configuration value for recreation of replica after certain replication lag
2458
2563
  */
@@ -2555,6 +2660,10 @@ export declare namespace sqladmin_v1 {
2555
2660
  * Execute SQL statements response.
2556
2661
  */
2557
2662
  export interface Schema$SqlInstancesExecuteSqlResponse {
2663
+ /**
2664
+ * A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
2665
+ */
2666
+ messages?: Schema$Message[];
2558
2667
  /**
2559
2668
  * The additional metadata information regarding the execution of the SQL statements.
2560
2669
  */
@@ -2585,6 +2694,10 @@ export declare namespace sqladmin_v1 {
2585
2694
  * Instance get latest recovery time response.
2586
2695
  */
2587
2696
  export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
2697
+ /**
2698
+ * Timestamp, identifies the earliest recovery time of the source instance.
2699
+ */
2700
+ earliestRecoveryTime?: string | null;
2588
2701
  /**
2589
2702
  * This is always `sql#getLatestRecoveryTime`.
2590
2703
  */
@@ -2906,6 +3019,19 @@ export declare namespace sqladmin_v1 {
2906
3019
  */
2907
3020
  value?: string | null;
2908
3021
  }
3022
+ /**
3023
+ * Target metric for read pool auto scaling.
3024
+ */
3025
+ export interface Schema$TargetMetric {
3026
+ /**
3027
+ * The metric name to be used for auto scaling.
3028
+ */
3029
+ metric?: string | null;
3030
+ /**
3031
+ * The target value for the metric.
3032
+ */
3033
+ targetValue?: number | null;
3034
+ }
2909
3035
  /**
2910
3036
  * A Google Cloud SQL service tier resource.
2911
3037
  */
@@ -2973,6 +3099,10 @@ export declare namespace sqladmin_v1 {
2973
3099
  * Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
2974
3100
  */
2975
3101
  host?: string | null;
3102
+ /**
3103
+ * Indicates if a group is active or inactive for IAM database authentication.
3104
+ */
3105
+ iamStatus?: string | null;
2976
3106
  /**
2977
3107
  * The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL.
2978
3108
  */
@@ -3117,6 +3247,7 @@ export declare namespace sqladmin_v1 {
3117
3247
  * // "kind": "my_kind",
3118
3248
  * // "name": "my_name",
3119
3249
  * // "operationType": "my_operationType",
3250
+ * // "preCheckMajorVersionUpgradeContext": {},
3120
3251
  * // "selfLink": "my_selfLink",
3121
3252
  * // "startTime": "my_startTime",
3122
3253
  * // "status": "my_status",
@@ -3311,6 +3442,7 @@ export declare namespace sqladmin_v1 {
3311
3442
  * // "kind": "my_kind",
3312
3443
  * // "name": "my_name",
3313
3444
  * // "operationType": "my_operationType",
3445
+ * // "preCheckMajorVersionUpgradeContext": {},
3314
3446
  * // "selfLink": "my_selfLink",
3315
3447
  * // "startTime": "my_startTime",
3316
3448
  * // "status": "my_status",
@@ -3557,6 +3689,7 @@ export declare namespace sqladmin_v1 {
3557
3689
  * // "kind": "my_kind",
3558
3690
  * // "name": "my_name",
3559
3691
  * // "operationType": "my_operationType",
3692
+ * // "preCheckMajorVersionUpgradeContext": {},
3560
3693
  * // "selfLink": "my_selfLink",
3561
3694
  * // "startTime": "my_startTime",
3562
3695
  * // "status": "my_status",
@@ -3638,6 +3771,7 @@ export declare namespace sqladmin_v1 {
3638
3771
  * // "kind": "my_kind",
3639
3772
  * // "name": "my_name",
3640
3773
  * // "operationType": "my_operationType",
3774
+ * // "preCheckMajorVersionUpgradeContext": {},
3641
3775
  * // "selfLink": "my_selfLink",
3642
3776
  * // "startTime": "my_startTime",
3643
3777
  * // "status": "my_status",
@@ -3907,6 +4041,7 @@ export declare namespace sqladmin_v1 {
3907
4041
  * // "kind": "my_kind",
3908
4042
  * // "name": "my_name",
3909
4043
  * // "operationType": "my_operationType",
4044
+ * // "preCheckMajorVersionUpgradeContext": {},
3910
4045
  * // "selfLink": "my_selfLink",
3911
4046
  * // "startTime": "my_startTime",
3912
4047
  * // "status": "my_status",
@@ -4238,6 +4373,7 @@ export declare namespace sqladmin_v1 {
4238
4373
  * // "kind": "my_kind",
4239
4374
  * // "name": "my_name",
4240
4375
  * // "operationType": "my_operationType",
4376
+ * // "preCheckMajorVersionUpgradeContext": {},
4241
4377
  * // "selfLink": "my_selfLink",
4242
4378
  * // "startTime": "my_startTime",
4243
4379
  * // "status": "my_status",
@@ -4412,6 +4548,7 @@ export declare namespace sqladmin_v1 {
4412
4548
  * // "kind": "my_kind",
4413
4549
  * // "name": "my_name",
4414
4550
  * // "operationType": "my_operationType",
4551
+ * // "preCheckMajorVersionUpgradeContext": {},
4415
4552
  * // "selfLink": "my_selfLink",
4416
4553
  * // "startTime": "my_startTime",
4417
4554
  * // "status": "my_status",
@@ -4579,6 +4716,7 @@ export declare namespace sqladmin_v1 {
4579
4716
  * // "kind": "my_kind",
4580
4717
  * // "name": "my_name",
4581
4718
  * // "operationType": "my_operationType",
4719
+ * // "preCheckMajorVersionUpgradeContext": {},
4582
4720
  * // "selfLink": "my_selfLink",
4583
4721
  * // "startTime": "my_startTime",
4584
4722
  * // "status": "my_status",
@@ -4680,6 +4818,7 @@ export declare namespace sqladmin_v1 {
4680
4818
  * // "kind": "my_kind",
4681
4819
  * // "name": "my_name",
4682
4820
  * // "operationType": "my_operationType",
4821
+ * // "preCheckMajorVersionUpgradeContext": {},
4683
4822
  * // "selfLink": "my_selfLink",
4684
4823
  * // "startTime": "my_startTime",
4685
4824
  * // "status": "my_status",
@@ -5008,6 +5147,7 @@ export declare namespace sqladmin_v1 {
5008
5147
  * // "kind": "my_kind",
5009
5148
  * // "name": "my_name",
5010
5149
  * // "operationType": "my_operationType",
5150
+ * // "preCheckMajorVersionUpgradeContext": {},
5011
5151
  * // "selfLink": "my_selfLink",
5012
5152
  * // "startTime": "my_startTime",
5013
5153
  * // "status": "my_status",
@@ -5091,6 +5231,7 @@ export declare namespace sqladmin_v1 {
5091
5231
  * // "kind": "my_kind",
5092
5232
  * // "name": "my_name",
5093
5233
  * // "operationType": "my_operationType",
5234
+ * // "preCheckMajorVersionUpgradeContext": {},
5094
5235
  * // "selfLink": "my_selfLink",
5095
5236
  * // "startTime": "my_startTime",
5096
5237
  * // "status": "my_status",
@@ -5182,6 +5323,7 @@ export declare namespace sqladmin_v1 {
5182
5323
  * // "kind": "my_kind",
5183
5324
  * // "name": "my_name",
5184
5325
  * // "operationType": "my_operationType",
5326
+ * // "preCheckMajorVersionUpgradeContext": {},
5185
5327
  * // "selfLink": "my_selfLink",
5186
5328
  * // "startTime": "my_startTime",
5187
5329
  * // "status": "my_status",
@@ -5273,6 +5415,7 @@ export declare namespace sqladmin_v1 {
5273
5415
  * // "kind": "my_kind",
5274
5416
  * // "name": "my_name",
5275
5417
  * // "operationType": "my_operationType",
5418
+ * // "preCheckMajorVersionUpgradeContext": {},
5276
5419
  * // "selfLink": "my_selfLink",
5277
5420
  * // "startTime": "my_startTime",
5278
5421
  * // "status": "my_status",
@@ -5364,6 +5507,7 @@ export declare namespace sqladmin_v1 {
5364
5507
  * // "kind": "my_kind",
5365
5508
  * // "name": "my_name",
5366
5509
  * // "operationType": "my_operationType",
5510
+ * // "preCheckMajorVersionUpgradeContext": {},
5367
5511
  * // "selfLink": "my_selfLink",
5368
5512
  * // "startTime": "my_startTime",
5369
5513
  * // "status": "my_status",
@@ -5455,6 +5599,7 @@ export declare namespace sqladmin_v1 {
5455
5599
  * // "kind": "my_kind",
5456
5600
  * // "name": "my_name",
5457
5601
  * // "operationType": "my_operationType",
5602
+ * // "preCheckMajorVersionUpgradeContext": {},
5458
5603
  * // "selfLink": "my_selfLink",
5459
5604
  * // "startTime": "my_startTime",
5460
5605
  * // "status": "my_status",
@@ -5529,8 +5674,10 @@ export declare namespace sqladmin_v1 {
5529
5674
  * // {
5530
5675
  * // "autoIamAuthn": false,
5531
5676
  * // "database": "my_database",
5677
+ * // "partialResultMode": "my_partialResultMode",
5532
5678
  * // "rowLimit": "my_rowLimit",
5533
- * // "sqlStatement": "my_sqlStatement"
5679
+ * // "sqlStatement": "my_sqlStatement",
5680
+ * // "user": "my_user"
5534
5681
  * // }
5535
5682
  * },
5536
5683
  * });
@@ -5538,6 +5685,7 @@ export declare namespace sqladmin_v1 {
5538
5685
  *
5539
5686
  * // Example response
5540
5687
  * // {
5688
+ * // "messages": [],
5541
5689
  * // "metadata": {},
5542
5690
  * // "results": []
5543
5691
  * // }
@@ -5620,6 +5768,7 @@ export declare namespace sqladmin_v1 {
5620
5768
  * // "kind": "my_kind",
5621
5769
  * // "name": "my_name",
5622
5770
  * // "operationType": "my_operationType",
5771
+ * // "preCheckMajorVersionUpgradeContext": {},
5623
5772
  * // "selfLink": "my_selfLink",
5624
5773
  * // "startTime": "my_startTime",
5625
5774
  * // "status": "my_status",
@@ -5711,6 +5860,7 @@ export declare namespace sqladmin_v1 {
5711
5860
  * // "kind": "my_kind",
5712
5861
  * // "name": "my_name",
5713
5862
  * // "operationType": "my_operationType",
5863
+ * // "preCheckMajorVersionUpgradeContext": {},
5714
5864
  * // "selfLink": "my_selfLink",
5715
5865
  * // "startTime": "my_startTime",
5716
5866
  * // "status": "my_status",
@@ -5914,6 +6064,7 @@ export declare namespace sqladmin_v1 {
5914
6064
  * // "kind": "my_kind",
5915
6065
  * // "name": "my_name",
5916
6066
  * // "operationType": "my_operationType",
6067
+ * // "preCheckMajorVersionUpgradeContext": {},
5917
6068
  * // "selfLink": "my_selfLink",
5918
6069
  * // "startTime": "my_startTime",
5919
6070
  * // "status": "my_status",
@@ -6053,6 +6204,7 @@ export declare namespace sqladmin_v1 {
6053
6204
  * // "kind": "my_kind",
6054
6205
  * // "name": "my_name",
6055
6206
  * // "operationType": "my_operationType",
6207
+ * // "preCheckMajorVersionUpgradeContext": {},
6056
6208
  * // "selfLink": "my_selfLink",
6057
6209
  * // "startTime": "my_startTime",
6058
6210
  * // "status": "my_status",
@@ -6401,6 +6553,7 @@ export declare namespace sqladmin_v1 {
6401
6553
  * // "kind": "my_kind",
6402
6554
  * // "name": "my_name",
6403
6555
  * // "operationType": "my_operationType",
6556
+ * // "preCheckMajorVersionUpgradeContext": {},
6404
6557
  * // "selfLink": "my_selfLink",
6405
6558
  * // "startTime": "my_startTime",
6406
6559
  * // "status": "my_status",
@@ -6496,6 +6649,7 @@ export declare namespace sqladmin_v1 {
6496
6649
  * // "kind": "my_kind",
6497
6650
  * // "name": "my_name",
6498
6651
  * // "operationType": "my_operationType",
6652
+ * // "preCheckMajorVersionUpgradeContext": {},
6499
6653
  * // "selfLink": "my_selfLink",
6500
6654
  * // "startTime": "my_startTime",
6501
6655
  * // "status": "my_status",
@@ -6525,6 +6679,98 @@ export declare namespace sqladmin_v1 {
6525
6679
  pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6526
6680
  pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, callback: BodyResponseCallback<Schema$Operation>): void;
6527
6681
  pointInTimeRestore(callback: BodyResponseCallback<Schema$Operation>): void;
6682
+ /**
6683
+ * Execute MVU Pre-checks
6684
+ * @example
6685
+ * ```js
6686
+ * // Before running the sample:
6687
+ * // - Enable the API at:
6688
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6689
+ * // - Login into gcloud by running:
6690
+ * // ```sh
6691
+ * // $ gcloud auth application-default login
6692
+ * // ```
6693
+ * // - Install the npm module by running:
6694
+ * // ```sh
6695
+ * // $ npm install googleapis
6696
+ * // ```
6697
+ *
6698
+ * const {google} = require('googleapis');
6699
+ * const sqladmin = google.sqladmin('v1');
6700
+ *
6701
+ * async function main() {
6702
+ * const auth = new google.auth.GoogleAuth({
6703
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6704
+ * scopes: [
6705
+ * 'https://www.googleapis.com/auth/cloud-platform',
6706
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6707
+ * ],
6708
+ * });
6709
+ *
6710
+ * // Acquire an auth client, and bind it to all future calls
6711
+ * const authClient = await auth.getClient();
6712
+ * google.options({auth: authClient});
6713
+ *
6714
+ * // Do the magic
6715
+ * const res = await sql.instances.preCheckMajorVersionUpgrade({
6716
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
6717
+ * instance: 'placeholder-value',
6718
+ * // Required. Project ID of the project that contains the instance.
6719
+ * project: 'placeholder-value',
6720
+ *
6721
+ * // Request body metadata
6722
+ * requestBody: {
6723
+ * // request body parameters
6724
+ * // {
6725
+ * // "preCheckMajorVersionUpgradeContext": {}
6726
+ * // }
6727
+ * },
6728
+ * });
6729
+ * console.log(res.data);
6730
+ *
6731
+ * // Example response
6732
+ * // {
6733
+ * // "acquireSsrsLeaseContext": {},
6734
+ * // "apiWarning": {},
6735
+ * // "backupContext": {},
6736
+ * // "endTime": "my_endTime",
6737
+ * // "error": {},
6738
+ * // "exportContext": {},
6739
+ * // "importContext": {},
6740
+ * // "insertTime": "my_insertTime",
6741
+ * // "kind": "my_kind",
6742
+ * // "name": "my_name",
6743
+ * // "operationType": "my_operationType",
6744
+ * // "preCheckMajorVersionUpgradeContext": {},
6745
+ * // "selfLink": "my_selfLink",
6746
+ * // "startTime": "my_startTime",
6747
+ * // "status": "my_status",
6748
+ * // "subOperationType": {},
6749
+ * // "targetId": "my_targetId",
6750
+ * // "targetLink": "my_targetLink",
6751
+ * // "targetProject": "my_targetProject",
6752
+ * // "user": "my_user"
6753
+ * // }
6754
+ * }
6755
+ *
6756
+ * main().catch(e => {
6757
+ * console.error(e);
6758
+ * throw e;
6759
+ * });
6760
+ *
6761
+ * ```
6762
+ *
6763
+ * @param params - Parameters for request
6764
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6765
+ * @param callback - Optional callback that handles the response.
6766
+ * @returns A promise if used with async/await, or void if used with a callback.
6767
+ */
6768
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6769
+ preCheckMajorVersionUpgrade(params?: Params$Resource$Instances$Precheckmajorversionupgrade, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6770
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6771
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6772
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, callback: BodyResponseCallback<Schema$Operation>): void;
6773
+ preCheckMajorVersionUpgrade(callback: BodyResponseCallback<Schema$Operation>): void;
6528
6774
  /**
6529
6775
  * Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
6530
6776
  * @example
@@ -6581,6 +6827,7 @@ export declare namespace sqladmin_v1 {
6581
6827
  * // "kind": "my_kind",
6582
6828
  * // "name": "my_name",
6583
6829
  * // "operationType": "my_operationType",
6830
+ * // "preCheckMajorVersionUpgradeContext": {},
6584
6831
  * // "selfLink": "my_selfLink",
6585
6832
  * // "startTime": "my_startTime",
6586
6833
  * // "status": "my_status",
@@ -6672,6 +6919,7 @@ export declare namespace sqladmin_v1 {
6672
6919
  * // "kind": "my_kind",
6673
6920
  * // "name": "my_name",
6674
6921
  * // "operationType": "my_operationType",
6922
+ * // "preCheckMajorVersionUpgradeContext": {},
6675
6923
  * // "selfLink": "my_selfLink",
6676
6924
  * // "startTime": "my_startTime",
6677
6925
  * // "status": "my_status",
@@ -6802,6 +7050,8 @@ export declare namespace sqladmin_v1 {
6802
7050
  * const res = await sql.instances.resetSslConfig({
6803
7051
  * // Cloud SQL instance ID. This does not include the project ID.
6804
7052
  * instance: 'placeholder-value',
7053
+ * // Optional. Reset SSL mode to use.
7054
+ * mode: 'placeholder-value',
6805
7055
  * // Project ID of the project that contains the instance.
6806
7056
  * project: 'placeholder-value',
6807
7057
  * });
@@ -6820,6 +7070,7 @@ export declare namespace sqladmin_v1 {
6820
7070
  * // "kind": "my_kind",
6821
7071
  * // "name": "my_name",
6822
7072
  * // "operationType": "my_operationType",
7073
+ * // "preCheckMajorVersionUpgradeContext": {},
6823
7074
  * // "selfLink": "my_selfLink",
6824
7075
  * // "startTime": "my_startTime",
6825
7076
  * // "status": "my_status",
@@ -6903,6 +7154,7 @@ export declare namespace sqladmin_v1 {
6903
7154
  * // "kind": "my_kind",
6904
7155
  * // "name": "my_name",
6905
7156
  * // "operationType": "my_operationType",
7157
+ * // "preCheckMajorVersionUpgradeContext": {},
6906
7158
  * // "selfLink": "my_selfLink",
6907
7159
  * // "startTime": "my_startTime",
6908
7160
  * // "status": "my_status",
@@ -6998,6 +7250,7 @@ export declare namespace sqladmin_v1 {
6998
7250
  * // "kind": "my_kind",
6999
7251
  * // "name": "my_name",
7000
7252
  * // "operationType": "my_operationType",
7253
+ * // "preCheckMajorVersionUpgradeContext": {},
7001
7254
  * // "selfLink": "my_selfLink",
7002
7255
  * // "startTime": "my_startTime",
7003
7256
  * // "status": "my_status",
@@ -7089,6 +7342,7 @@ export declare namespace sqladmin_v1 {
7089
7342
  * // "kind": "my_kind",
7090
7343
  * // "name": "my_name",
7091
7344
  * // "operationType": "my_operationType",
7345
+ * // "preCheckMajorVersionUpgradeContext": {},
7092
7346
  * // "selfLink": "my_selfLink",
7093
7347
  * // "startTime": "my_startTime",
7094
7348
  * // "status": "my_status",
@@ -7180,6 +7434,7 @@ export declare namespace sqladmin_v1 {
7180
7434
  * // "kind": "my_kind",
7181
7435
  * // "name": "my_name",
7182
7436
  * // "operationType": "my_operationType",
7437
+ * // "preCheckMajorVersionUpgradeContext": {},
7183
7438
  * // "selfLink": "my_selfLink",
7184
7439
  * // "startTime": "my_startTime",
7185
7440
  * // "status": "my_status",
@@ -7263,6 +7518,7 @@ export declare namespace sqladmin_v1 {
7263
7518
  * // "kind": "my_kind",
7264
7519
  * // "name": "my_name",
7265
7520
  * // "operationType": "my_operationType",
7521
+ * // "preCheckMajorVersionUpgradeContext": {},
7266
7522
  * // "selfLink": "my_selfLink",
7267
7523
  * // "startTime": "my_startTime",
7268
7524
  * // "status": "my_status",
@@ -7346,6 +7602,7 @@ export declare namespace sqladmin_v1 {
7346
7602
  * // "kind": "my_kind",
7347
7603
  * // "name": "my_name",
7348
7604
  * // "operationType": "my_operationType",
7605
+ * // "preCheckMajorVersionUpgradeContext": {},
7349
7606
  * // "selfLink": "my_selfLink",
7350
7607
  * // "startTime": "my_startTime",
7351
7608
  * // "status": "my_status",
@@ -7431,6 +7688,7 @@ export declare namespace sqladmin_v1 {
7431
7688
  * // "kind": "my_kind",
7432
7689
  * // "name": "my_name",
7433
7690
  * // "operationType": "my_operationType",
7691
+ * // "preCheckMajorVersionUpgradeContext": {},
7434
7692
  * // "selfLink": "my_selfLink",
7435
7693
  * // "startTime": "my_startTime",
7436
7694
  * // "status": "my_status",
@@ -7522,6 +7780,7 @@ export declare namespace sqladmin_v1 {
7522
7780
  * // "kind": "my_kind",
7523
7781
  * // "name": "my_name",
7524
7782
  * // "operationType": "my_operationType",
7783
+ * // "preCheckMajorVersionUpgradeContext": {},
7525
7784
  * // "selfLink": "my_selfLink",
7526
7785
  * // "startTime": "my_startTime",
7527
7786
  * // "status": "my_status",
@@ -7663,6 +7922,7 @@ export declare namespace sqladmin_v1 {
7663
7922
  * // "kind": "my_kind",
7664
7923
  * // "name": "my_name",
7665
7924
  * // "operationType": "my_operationType",
7925
+ * // "preCheckMajorVersionUpgradeContext": {},
7666
7926
  * // "selfLink": "my_selfLink",
7667
7927
  * // "startTime": "my_startTime",
7668
7928
  * // "status": "my_status",
@@ -7933,6 +8193,20 @@ export declare namespace sqladmin_v1 {
7933
8193
  */
7934
8194
  requestBody?: Schema$PointInTimeRestoreContext;
7935
8195
  }
8196
+ export interface Params$Resource$Instances$Precheckmajorversionupgrade extends StandardParameters {
8197
+ /**
8198
+ * Required. Cloud SQL instance ID. This does not include the project ID.
8199
+ */
8200
+ instance?: string;
8201
+ /**
8202
+ * Required. Project ID of the project that contains the instance.
8203
+ */
8204
+ project?: string;
8205
+ /**
8206
+ * Request body metadata
8207
+ */
8208
+ requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
8209
+ }
7936
8210
  export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
7937
8211
  /**
7938
8212
  * 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.
@@ -7976,6 +8250,10 @@ export declare namespace sqladmin_v1 {
7976
8250
  * Cloud SQL instance ID. This does not include the project ID.
7977
8251
  */
7978
8252
  instance?: string;
8253
+ /**
8254
+ * Optional. Reset SSL mode to use.
8255
+ */
8256
+ mode?: string;
7979
8257
  /**
7980
8258
  * Project ID of the project that contains the instance.
7981
8259
  */
@@ -8215,6 +8493,7 @@ export declare namespace sqladmin_v1 {
8215
8493
  * // "kind": "my_kind",
8216
8494
  * // "name": "my_name",
8217
8495
  * // "operationType": "my_operationType",
8496
+ * // "preCheckMajorVersionUpgradeContext": {},
8218
8497
  * // "selfLink": "my_selfLink",
8219
8498
  * // "startTime": "my_startTime",
8220
8499
  * // "status": "my_status",
@@ -8474,6 +8753,7 @@ export declare namespace sqladmin_v1 {
8474
8753
  *
8475
8754
  * // Example response
8476
8755
  * // {
8756
+ * // "earliestRecoveryTime": "my_earliestRecoveryTime",
8477
8757
  * // "kind": "my_kind",
8478
8758
  * // "latestRecoveryTime": "my_latestRecoveryTime"
8479
8759
  * // }
@@ -8559,6 +8839,7 @@ export declare namespace sqladmin_v1 {
8559
8839
  * // "kind": "my_kind",
8560
8840
  * // "name": "my_name",
8561
8841
  * // "operationType": "my_operationType",
8842
+ * // "preCheckMajorVersionUpgradeContext": {},
8562
8843
  * // "selfLink": "my_selfLink",
8563
8844
  * // "startTime": "my_startTime",
8564
8845
  * // "status": "my_status",
@@ -8650,6 +8931,7 @@ export declare namespace sqladmin_v1 {
8650
8931
  * // "kind": "my_kind",
8651
8932
  * // "name": "my_name",
8652
8933
  * // "operationType": "my_operationType",
8934
+ * // "preCheckMajorVersionUpgradeContext": {},
8653
8935
  * // "selfLink": "my_selfLink",
8654
8936
  * // "startTime": "my_startTime",
8655
8937
  * // "status": "my_status",
@@ -8739,6 +9021,7 @@ export declare namespace sqladmin_v1 {
8739
9021
  * // "kind": "my_kind",
8740
9022
  * // "name": "my_name",
8741
9023
  * // "operationType": "my_operationType",
9024
+ * // "preCheckMajorVersionUpgradeContext": {},
8742
9025
  * // "selfLink": "my_selfLink",
8743
9026
  * // "startTime": "my_startTime",
8744
9027
  * // "status": "my_status",
@@ -8835,6 +9118,7 @@ export declare namespace sqladmin_v1 {
8835
9118
  * // "kind": "my_kind",
8836
9119
  * // "name": "my_name",
8837
9120
  * // "operationType": "my_operationType",
9121
+ * // "preCheckMajorVersionUpgradeContext": {},
8838
9122
  * // "selfLink": "my_selfLink",
8839
9123
  * // "startTime": "my_startTime",
8840
9124
  * // "status": "my_status",
@@ -9181,6 +9465,7 @@ export declare namespace sqladmin_v1 {
9181
9465
  * // "kind": "my_kind",
9182
9466
  * // "name": "my_name",
9183
9467
  * // "operationType": "my_operationType",
9468
+ * // "preCheckMajorVersionUpgradeContext": {},
9184
9469
  * // "selfLink": "my_selfLink",
9185
9470
  * // "startTime": "my_startTime",
9186
9471
  * // "status": "my_status",
@@ -9629,6 +9914,7 @@ export declare namespace sqladmin_v1 {
9629
9914
  * // "kind": "my_kind",
9630
9915
  * // "name": "my_name",
9631
9916
  * // "operationType": "my_operationType",
9917
+ * // "preCheckMajorVersionUpgradeContext": {},
9632
9918
  * // "selfLink": "my_selfLink",
9633
9919
  * // "startTime": "my_startTime",
9634
9920
  * // "status": "my_status",
@@ -9708,6 +9994,7 @@ export declare namespace sqladmin_v1 {
9708
9994
  * // "dualPasswordType": "my_dualPasswordType",
9709
9995
  * // "etag": "my_etag",
9710
9996
  * // "host": "my_host",
9997
+ * // "iamStatus": "my_iamStatus",
9711
9998
  * // "instance": "my_instance",
9712
9999
  * // "kind": "my_kind",
9713
10000
  * // "name": "my_name",
@@ -9783,6 +10070,7 @@ export declare namespace sqladmin_v1 {
9783
10070
  * // "dualPasswordType": "my_dualPasswordType",
9784
10071
  * // "etag": "my_etag",
9785
10072
  * // "host": "my_host",
10073
+ * // "iamStatus": "my_iamStatus",
9786
10074
  * // "instance": "my_instance",
9787
10075
  * // "kind": "my_kind",
9788
10076
  * // "name": "my_name",
@@ -9809,6 +10097,7 @@ export declare namespace sqladmin_v1 {
9809
10097
  * // "kind": "my_kind",
9810
10098
  * // "name": "my_name",
9811
10099
  * // "operationType": "my_operationType",
10100
+ * // "preCheckMajorVersionUpgradeContext": {},
9812
10101
  * // "selfLink": "my_selfLink",
9813
10102
  * // "startTime": "my_startTime",
9814
10103
  * // "status": "my_status",
@@ -9955,6 +10244,7 @@ export declare namespace sqladmin_v1 {
9955
10244
  * // "dualPasswordType": "my_dualPasswordType",
9956
10245
  * // "etag": "my_etag",
9957
10246
  * // "host": "my_host",
10247
+ * // "iamStatus": "my_iamStatus",
9958
10248
  * // "instance": "my_instance",
9959
10249
  * // "kind": "my_kind",
9960
10250
  * // "name": "my_name",
@@ -9981,6 +10271,7 @@ export declare namespace sqladmin_v1 {
9981
10271
  * // "kind": "my_kind",
9982
10272
  * // "name": "my_name",
9983
10273
  * // "operationType": "my_operationType",
10274
+ * // "preCheckMajorVersionUpgradeContext": {},
9984
10275
  * // "selfLink": "my_selfLink",
9985
10276
  * // "startTime": "my_startTime",
9986
10277
  * // "status": "my_status",