@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/v1beta4.ts CHANGED
@@ -230,7 +230,7 @@ export namespace sqladmin_v1beta4 {
230
230
  name?: string | null;
231
231
  }
232
232
  /**
233
- * A backup resource. Next ID: 30
233
+ * A backup resource.
234
234
  */
235
235
  export interface Schema$Backup {
236
236
  /**
@@ -1141,6 +1141,10 @@ export namespace sqladmin_v1beta4 {
1141
1141
  * Optional. Name of the database on which the statement will be executed.
1142
1142
  */
1143
1143
  database?: string | null;
1144
+ /**
1145
+ * Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.
1146
+ */
1147
+ partialResultMode?: string | null;
1144
1148
  /**
1145
1149
  * Optional. The maximum number of rows returned per SQL statement.
1146
1150
  */
@@ -1149,6 +1153,10 @@ export namespace sqladmin_v1beta4 {
1149
1153
  * Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1150
1154
  */
1151
1155
  sqlStatement?: string | null;
1156
+ /**
1157
+ * 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.
1158
+ */
1159
+ user?: string | null;
1152
1160
  }
1153
1161
  /**
1154
1162
  * Database instance export context.
@@ -1612,6 +1620,15 @@ export namespace sqladmin_v1beta4 {
1612
1620
  */
1613
1621
  serverCerts?: Schema$SslCert[];
1614
1622
  }
1623
+ /**
1624
+ * Request for Pre-checks for MVU
1625
+ */
1626
+ export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
1627
+ /**
1628
+ * Required. Contains details about the pre-check major version upgrade operation.
1629
+ */
1630
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1631
+ }
1615
1632
  /**
1616
1633
  * Database Instance reencrypt request.
1617
1634
  */
@@ -1811,6 +1828,19 @@ export namespace sqladmin_v1beta4 {
1811
1828
  */
1812
1829
  updateTrack?: string | null;
1813
1830
  }
1831
+ /**
1832
+ * Represents a notice or warning message from the database.
1833
+ */
1834
+ export interface Schema$Message {
1835
+ /**
1836
+ * 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.
1837
+ */
1838
+ message?: string | null;
1839
+ /**
1840
+ * The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
1841
+ */
1842
+ severity?: string | null;
1843
+ }
1814
1844
  /**
1815
1845
  * The additional metadata information regarding the execution of the SQL statements.
1816
1846
  */
@@ -1975,6 +2005,10 @@ export namespace sqladmin_v1beta4 {
1975
2005
  * 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`
1976
2006
  */
1977
2007
  operationType?: string | null;
2008
+ /**
2009
+ * The context for pre-check major version upgrade operation, if applicable. 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).
2010
+ */
2011
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1978
2012
  /**
1979
2013
  * The URI of this resource.
1980
2014
  */
@@ -2202,6 +2236,40 @@ export namespace sqladmin_v1beta4 {
2202
2236
  */
2203
2237
  state?: string | null;
2204
2238
  }
2239
+ /**
2240
+ * Pre-check major version upgrade context.
2241
+ */
2242
+ export interface Schema$PreCheckMajorVersionUpgradeContext {
2243
+ /**
2244
+ * Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2245
+ */
2246
+ kind?: string | null;
2247
+ /**
2248
+ * Output only. The responses from the precheck operation.
2249
+ */
2250
+ preCheckResponse?: Schema$PreCheckResponse[];
2251
+ /**
2252
+ * Required. The target database version to upgrade to.
2253
+ */
2254
+ targetDatabaseVersion?: string | null;
2255
+ }
2256
+ /**
2257
+ * Structured PreCheckResponse containing message, type, and required actions.
2258
+ */
2259
+ export interface Schema$PreCheckResponse {
2260
+ /**
2261
+ * The actions that the user needs to take. Use repeated for multiple actions.
2262
+ */
2263
+ actionsRequired?: string[] | null;
2264
+ /**
2265
+ * The message to be displayed to the user.
2266
+ */
2267
+ message?: string | null;
2268
+ /**
2269
+ * The type of message whether it is an info, warning, or error.
2270
+ */
2271
+ messageType?: string | null;
2272
+ }
2205
2273
  /**
2206
2274
  * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2207
2275
  */
@@ -2269,6 +2337,39 @@ export namespace sqladmin_v1beta4 {
2269
2337
  */
2270
2338
  rows?: Schema$Row[];
2271
2339
  }
2340
+ /**
2341
+ * The read pool auto-scale configuration.
2342
+ */
2343
+ export interface Schema$ReadPoolAutoScaleConfig {
2344
+ /**
2345
+ * Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2346
+ */
2347
+ disableScaleIn?: boolean | null;
2348
+ /**
2349
+ * Indicates whether read pool auto scaling is enabled.
2350
+ */
2351
+ enabled?: boolean | null;
2352
+ /**
2353
+ * Maximum number of read pool nodes to be maintained.
2354
+ */
2355
+ maxNodeCount?: number | null;
2356
+ /**
2357
+ * Minimum number of read pool nodes to be maintained.
2358
+ */
2359
+ minNodeCount?: number | null;
2360
+ /**
2361
+ * The cooldown period for scale in operations.
2362
+ */
2363
+ scaleInCooldownSeconds?: number | null;
2364
+ /**
2365
+ * The cooldown period for scale out operations.
2366
+ */
2367
+ scaleOutCooldownSeconds?: number | null;
2368
+ /**
2369
+ * Optional. Target metrics for read pool auto scaling.
2370
+ */
2371
+ targetMetrics?: Schema$TargetMetric[];
2372
+ }
2272
2373
  /**
2273
2374
  * Read-replica configuration for connecting to the primary instance.
2274
2375
  */
@@ -2506,6 +2607,10 @@ export namespace sqladmin_v1beta4 {
2506
2607
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2507
2608
  */
2508
2609
  pricingPlan?: string | null;
2610
+ /**
2611
+ * Optional. The read pool auto-scale configuration for the instance.
2612
+ */
2613
+ readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
2509
2614
  /**
2510
2615
  * Optional. Configuration value for recreation of replica after certain replication lag.
2511
2616
  */
@@ -2606,6 +2711,10 @@ export namespace sqladmin_v1beta4 {
2606
2711
  * Execute SQL statements response.
2607
2712
  */
2608
2713
  export interface Schema$SqlInstancesExecuteSqlResponse {
2714
+ /**
2715
+ * 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.
2716
+ */
2717
+ messages?: Schema$Message[];
2609
2718
  /**
2610
2719
  * The additional metadata information regarding the execution of the SQL statements.
2611
2720
  */
@@ -2636,6 +2745,10 @@ export namespace sqladmin_v1beta4 {
2636
2745
  * Instance get latest recovery time response.
2637
2746
  */
2638
2747
  export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
2748
+ /**
2749
+ * Timestamp, identifies the earliest recovery time of the source instance.
2750
+ */
2751
+ earliestRecoveryTime?: string | null;
2639
2752
  /**
2640
2753
  * This is always `sql#getLatestRecoveryTime`.
2641
2754
  */
@@ -2950,6 +3063,19 @@ export namespace sqladmin_v1beta4 {
2950
3063
  */
2951
3064
  value?: string | null;
2952
3065
  }
3066
+ /**
3067
+ * Target metric for read pool auto scaling.
3068
+ */
3069
+ export interface Schema$TargetMetric {
3070
+ /**
3071
+ * The metric name to be used for auto scaling.
3072
+ */
3073
+ metric?: string | null;
3074
+ /**
3075
+ * The target value for the metric.
3076
+ */
3077
+ targetValue?: number | null;
3078
+ }
2953
3079
  /**
2954
3080
  * A Google Cloud SQL service tier resource.
2955
3081
  */
@@ -3017,6 +3143,10 @@ export namespace sqladmin_v1beta4 {
3017
3143
  * 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.
3018
3144
  */
3019
3145
  host?: string | null;
3146
+ /**
3147
+ * Indicates if a group is active or inactive for IAM database authentication.
3148
+ */
3149
+ iamStatus?: string | null;
3020
3150
  /**
3021
3151
  * 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.
3022
3152
  */
@@ -3165,6 +3295,7 @@ export namespace sqladmin_v1beta4 {
3165
3295
  * // "kind": "my_kind",
3166
3296
  * // "name": "my_name",
3167
3297
  * // "operationType": "my_operationType",
3298
+ * // "preCheckMajorVersionUpgradeContext": {},
3168
3299
  * // "selfLink": "my_selfLink",
3169
3300
  * // "startTime": "my_startTime",
3170
3301
  * // "status": "my_status",
@@ -3512,6 +3643,7 @@ export namespace sqladmin_v1beta4 {
3512
3643
  * // "kind": "my_kind",
3513
3644
  * // "name": "my_name",
3514
3645
  * // "operationType": "my_operationType",
3646
+ * // "preCheckMajorVersionUpgradeContext": {},
3515
3647
  * // "selfLink": "my_selfLink",
3516
3648
  * // "startTime": "my_startTime",
3517
3649
  * // "status": "my_status",
@@ -3920,6 +4052,7 @@ export namespace sqladmin_v1beta4 {
3920
4052
  * // "kind": "my_kind",
3921
4053
  * // "name": "my_name",
3922
4054
  * // "operationType": "my_operationType",
4055
+ * // "preCheckMajorVersionUpgradeContext": {},
3923
4056
  * // "selfLink": "my_selfLink",
3924
4057
  * // "startTime": "my_startTime",
3925
4058
  * // "status": "my_status",
@@ -4078,6 +4211,7 @@ export namespace sqladmin_v1beta4 {
4078
4211
  * // "kind": "my_kind",
4079
4212
  * // "name": "my_name",
4080
4213
  * // "operationType": "my_operationType",
4214
+ * // "preCheckMajorVersionUpgradeContext": {},
4081
4215
  * // "selfLink": "my_selfLink",
4082
4216
  * // "startTime": "my_startTime",
4083
4217
  * // "status": "my_status",
@@ -4580,6 +4714,7 @@ export namespace sqladmin_v1beta4 {
4580
4714
  * // "kind": "my_kind",
4581
4715
  * // "name": "my_name",
4582
4716
  * // "operationType": "my_operationType",
4717
+ * // "preCheckMajorVersionUpgradeContext": {},
4583
4718
  * // "selfLink": "my_selfLink",
4584
4719
  * // "startTime": "my_startTime",
4585
4720
  * // "status": "my_status",
@@ -5164,6 +5299,7 @@ export namespace sqladmin_v1beta4 {
5164
5299
  * // "kind": "my_kind",
5165
5300
  * // "name": "my_name",
5166
5301
  * // "operationType": "my_operationType",
5302
+ * // "preCheckMajorVersionUpgradeContext": {},
5167
5303
  * // "selfLink": "my_selfLink",
5168
5304
  * // "startTime": "my_startTime",
5169
5305
  * // "status": "my_status",
@@ -5490,6 +5626,7 @@ export namespace sqladmin_v1beta4 {
5490
5626
  * // "kind": "my_kind",
5491
5627
  * // "name": "my_name",
5492
5628
  * // "operationType": "my_operationType",
5629
+ * // "preCheckMajorVersionUpgradeContext": {},
5493
5630
  * // "selfLink": "my_selfLink",
5494
5631
  * // "startTime": "my_startTime",
5495
5632
  * // "status": "my_status",
@@ -5811,6 +5948,7 @@ export namespace sqladmin_v1beta4 {
5811
5948
  * // "kind": "my_kind",
5812
5949
  * // "name": "my_name",
5813
5950
  * // "operationType": "my_operationType",
5951
+ * // "preCheckMajorVersionUpgradeContext": {},
5814
5952
  * // "selfLink": "my_selfLink",
5815
5953
  * // "startTime": "my_startTime",
5816
5954
  * // "status": "my_status",
@@ -5988,6 +6126,7 @@ export namespace sqladmin_v1beta4 {
5988
6126
  * // "kind": "my_kind",
5989
6127
  * // "name": "my_name",
5990
6128
  * // "operationType": "my_operationType",
6129
+ * // "preCheckMajorVersionUpgradeContext": {},
5991
6130
  * // "selfLink": "my_selfLink",
5992
6131
  * // "startTime": "my_startTime",
5993
6132
  * // "status": "my_status",
@@ -6563,6 +6702,7 @@ export namespace sqladmin_v1beta4 {
6563
6702
  * // "kind": "my_kind",
6564
6703
  * // "name": "my_name",
6565
6704
  * // "operationType": "my_operationType",
6705
+ * // "preCheckMajorVersionUpgradeContext": {},
6566
6706
  * // "selfLink": "my_selfLink",
6567
6707
  * // "startTime": "my_startTime",
6568
6708
  * // "status": "my_status",
@@ -6723,6 +6863,7 @@ export namespace sqladmin_v1beta4 {
6723
6863
  * // "kind": "my_kind",
6724
6864
  * // "name": "my_name",
6725
6865
  * // "operationType": "my_operationType",
6866
+ * // "preCheckMajorVersionUpgradeContext": {},
6726
6867
  * // "selfLink": "my_selfLink",
6727
6868
  * // "startTime": "my_startTime",
6728
6869
  * // "status": "my_status",
@@ -6893,6 +7034,7 @@ export namespace sqladmin_v1beta4 {
6893
7034
  * // "kind": "my_kind",
6894
7035
  * // "name": "my_name",
6895
7036
  * // "operationType": "my_operationType",
7037
+ * // "preCheckMajorVersionUpgradeContext": {},
6896
7038
  * // "selfLink": "my_selfLink",
6897
7039
  * // "startTime": "my_startTime",
6898
7040
  * // "status": "my_status",
@@ -7060,6 +7202,7 @@ export namespace sqladmin_v1beta4 {
7060
7202
  * // "kind": "my_kind",
7061
7203
  * // "name": "my_name",
7062
7204
  * // "operationType": "my_operationType",
7205
+ * // "preCheckMajorVersionUpgradeContext": {},
7063
7206
  * // "selfLink": "my_selfLink",
7064
7207
  * // "startTime": "my_startTime",
7065
7208
  * // "status": "my_status",
@@ -7226,6 +7369,7 @@ export namespace sqladmin_v1beta4 {
7226
7369
  * // "kind": "my_kind",
7227
7370
  * // "name": "my_name",
7228
7371
  * // "operationType": "my_operationType",
7372
+ * // "preCheckMajorVersionUpgradeContext": {},
7229
7373
  * // "selfLink": "my_selfLink",
7230
7374
  * // "startTime": "my_startTime",
7231
7375
  * // "status": "my_status",
@@ -7393,6 +7537,7 @@ export namespace sqladmin_v1beta4 {
7393
7537
  * // "kind": "my_kind",
7394
7538
  * // "name": "my_name",
7395
7539
  * // "operationType": "my_operationType",
7540
+ * // "preCheckMajorVersionUpgradeContext": {},
7396
7541
  * // "selfLink": "my_selfLink",
7397
7542
  * // "startTime": "my_startTime",
7398
7543
  * // "status": "my_status",
@@ -7544,8 +7689,10 @@ export namespace sqladmin_v1beta4 {
7544
7689
  * // {
7545
7690
  * // "autoIamAuthn": false,
7546
7691
  * // "database": "my_database",
7692
+ * // "partialResultMode": "my_partialResultMode",
7547
7693
  * // "rowLimit": "my_rowLimit",
7548
- * // "sqlStatement": "my_sqlStatement"
7694
+ * // "sqlStatement": "my_sqlStatement",
7695
+ * // "user": "my_user"
7549
7696
  * // }
7550
7697
  * },
7551
7698
  * });
@@ -7553,6 +7700,7 @@ export namespace sqladmin_v1beta4 {
7553
7700
  *
7554
7701
  * // Example response
7555
7702
  * // {
7703
+ * // "messages": [],
7556
7704
  * // "metadata": {},
7557
7705
  * // "results": []
7558
7706
  * // }
@@ -7718,6 +7866,7 @@ export namespace sqladmin_v1beta4 {
7718
7866
  * // "kind": "my_kind",
7719
7867
  * // "name": "my_name",
7720
7868
  * // "operationType": "my_operationType",
7869
+ * // "preCheckMajorVersionUpgradeContext": {},
7721
7870
  * // "selfLink": "my_selfLink",
7722
7871
  * // "startTime": "my_startTime",
7723
7872
  * // "status": "my_status",
@@ -7885,6 +8034,7 @@ export namespace sqladmin_v1beta4 {
7885
8034
  * // "kind": "my_kind",
7886
8035
  * // "name": "my_name",
7887
8036
  * // "operationType": "my_operationType",
8037
+ * // "preCheckMajorVersionUpgradeContext": {},
7888
8038
  * // "selfLink": "my_selfLink",
7889
8039
  * // "startTime": "my_startTime",
7890
8040
  * // "status": "my_status",
@@ -8240,6 +8390,7 @@ export namespace sqladmin_v1beta4 {
8240
8390
  * // "kind": "my_kind",
8241
8391
  * // "name": "my_name",
8242
8392
  * // "operationType": "my_operationType",
8393
+ * // "preCheckMajorVersionUpgradeContext": {},
8243
8394
  * // "selfLink": "my_selfLink",
8244
8395
  * // "startTime": "my_startTime",
8245
8396
  * // "status": "my_status",
@@ -8455,6 +8606,7 @@ export namespace sqladmin_v1beta4 {
8455
8606
  * // "kind": "my_kind",
8456
8607
  * // "name": "my_name",
8457
8608
  * // "operationType": "my_operationType",
8609
+ * // "preCheckMajorVersionUpgradeContext": {},
8458
8610
  * // "selfLink": "my_selfLink",
8459
8611
  * // "startTime": "my_startTime",
8460
8612
  * // "status": "my_status",
@@ -9125,6 +9277,7 @@ export namespace sqladmin_v1beta4 {
9125
9277
  * // "kind": "my_kind",
9126
9278
  * // "name": "my_name",
9127
9279
  * // "operationType": "my_operationType",
9280
+ * // "preCheckMajorVersionUpgradeContext": {},
9128
9281
  * // "selfLink": "my_selfLink",
9129
9282
  * // "startTime": "my_startTime",
9130
9283
  * // "status": "my_status",
@@ -9295,6 +9448,7 @@ export namespace sqladmin_v1beta4 {
9295
9448
  * // "kind": "my_kind",
9296
9449
  * // "name": "my_name",
9297
9450
  * // "operationType": "my_operationType",
9451
+ * // "preCheckMajorVersionUpgradeContext": {},
9298
9452
  * // "selfLink": "my_selfLink",
9299
9453
  * // "startTime": "my_startTime",
9300
9454
  * // "status": "my_status",
@@ -9400,6 +9554,177 @@ export namespace sqladmin_v1beta4 {
9400
9554
  }
9401
9555
  }
9402
9556
 
9557
+ /**
9558
+ * Execute MVU Pre-checks
9559
+ * @example
9560
+ * ```js
9561
+ * // Before running the sample:
9562
+ * // - Enable the API at:
9563
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9564
+ * // - Login into gcloud by running:
9565
+ * // ```sh
9566
+ * // $ gcloud auth application-default login
9567
+ * // ```
9568
+ * // - Install the npm module by running:
9569
+ * // ```sh
9570
+ * // $ npm install googleapis
9571
+ * // ```
9572
+ *
9573
+ * const {google} = require('googleapis');
9574
+ * const sqladmin = google.sqladmin('v1beta4');
9575
+ *
9576
+ * async function main() {
9577
+ * const auth = new google.auth.GoogleAuth({
9578
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9579
+ * scopes: [
9580
+ * 'https://www.googleapis.com/auth/cloud-platform',
9581
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
9582
+ * ],
9583
+ * });
9584
+ *
9585
+ * // Acquire an auth client, and bind it to all future calls
9586
+ * const authClient = await auth.getClient();
9587
+ * google.options({auth: authClient});
9588
+ *
9589
+ * // Do the magic
9590
+ * const res = await sql.instances.preCheckMajorVersionUpgrade({
9591
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
9592
+ * instance: 'placeholder-value',
9593
+ * // Required. Project ID of the project that contains the instance.
9594
+ * project: 'placeholder-value',
9595
+ *
9596
+ * // Request body metadata
9597
+ * requestBody: {
9598
+ * // request body parameters
9599
+ * // {
9600
+ * // "preCheckMajorVersionUpgradeContext": {}
9601
+ * // }
9602
+ * },
9603
+ * });
9604
+ * console.log(res.data);
9605
+ *
9606
+ * // Example response
9607
+ * // {
9608
+ * // "acquireSsrsLeaseContext": {},
9609
+ * // "apiWarning": {},
9610
+ * // "backupContext": {},
9611
+ * // "endTime": "my_endTime",
9612
+ * // "error": {},
9613
+ * // "exportContext": {},
9614
+ * // "importContext": {},
9615
+ * // "insertTime": "my_insertTime",
9616
+ * // "kind": "my_kind",
9617
+ * // "name": "my_name",
9618
+ * // "operationType": "my_operationType",
9619
+ * // "preCheckMajorVersionUpgradeContext": {},
9620
+ * // "selfLink": "my_selfLink",
9621
+ * // "startTime": "my_startTime",
9622
+ * // "status": "my_status",
9623
+ * // "subOperationType": {},
9624
+ * // "targetId": "my_targetId",
9625
+ * // "targetLink": "my_targetLink",
9626
+ * // "targetProject": "my_targetProject",
9627
+ * // "user": "my_user"
9628
+ * // }
9629
+ * }
9630
+ *
9631
+ * main().catch(e => {
9632
+ * console.error(e);
9633
+ * throw e;
9634
+ * });
9635
+ *
9636
+ * ```
9637
+ *
9638
+ * @param params - Parameters for request
9639
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9640
+ * @param callback - Optional callback that handles the response.
9641
+ * @returns A promise if used with async/await, or void if used with a callback.
9642
+ */
9643
+ preCheckMajorVersionUpgrade(
9644
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9645
+ options: StreamMethodOptions
9646
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9647
+ preCheckMajorVersionUpgrade(
9648
+ params?: Params$Resource$Instances$Precheckmajorversionupgrade,
9649
+ options?: MethodOptions
9650
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9651
+ preCheckMajorVersionUpgrade(
9652
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9653
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9654
+ callback: BodyResponseCallback<Readable>
9655
+ ): void;
9656
+ preCheckMajorVersionUpgrade(
9657
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9658
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9659
+ callback: BodyResponseCallback<Schema$Operation>
9660
+ ): void;
9661
+ preCheckMajorVersionUpgrade(
9662
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9663
+ callback: BodyResponseCallback<Schema$Operation>
9664
+ ): void;
9665
+ preCheckMajorVersionUpgrade(
9666
+ callback: BodyResponseCallback<Schema$Operation>
9667
+ ): void;
9668
+ preCheckMajorVersionUpgrade(
9669
+ paramsOrCallback?:
9670
+ | Params$Resource$Instances$Precheckmajorversionupgrade
9671
+ | BodyResponseCallback<Schema$Operation>
9672
+ | BodyResponseCallback<Readable>,
9673
+ optionsOrCallback?:
9674
+ | MethodOptions
9675
+ | StreamMethodOptions
9676
+ | BodyResponseCallback<Schema$Operation>
9677
+ | BodyResponseCallback<Readable>,
9678
+ callback?:
9679
+ | BodyResponseCallback<Schema$Operation>
9680
+ | BodyResponseCallback<Readable>
9681
+ ):
9682
+ | void
9683
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9684
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9685
+ let params = (paramsOrCallback ||
9686
+ {}) as Params$Resource$Instances$Precheckmajorversionupgrade;
9687
+ let options = (optionsOrCallback || {}) as MethodOptions;
9688
+
9689
+ if (typeof paramsOrCallback === 'function') {
9690
+ callback = paramsOrCallback;
9691
+ params = {} as Params$Resource$Instances$Precheckmajorversionupgrade;
9692
+ options = {};
9693
+ }
9694
+
9695
+ if (typeof optionsOrCallback === 'function') {
9696
+ callback = optionsOrCallback;
9697
+ options = {};
9698
+ }
9699
+
9700
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
9701
+ const parameters = {
9702
+ options: Object.assign(
9703
+ {
9704
+ url: (
9705
+ rootUrl +
9706
+ '/sql/v1beta4/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade'
9707
+ ).replace(/([^:]\/)\/+/g, '$1'),
9708
+ method: 'POST',
9709
+ apiVersion: '',
9710
+ },
9711
+ options
9712
+ ),
9713
+ params,
9714
+ requiredParams: ['project', 'instance'],
9715
+ pathParams: ['instance', 'project'],
9716
+ context: this.context,
9717
+ };
9718
+ if (callback) {
9719
+ createAPIRequest<Schema$Operation>(
9720
+ parameters,
9721
+ callback as BodyResponseCallback<unknown>
9722
+ );
9723
+ } else {
9724
+ return createAPIRequest<Schema$Operation>(parameters);
9725
+ }
9726
+ }
9727
+
9403
9728
  /**
9404
9729
  * Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
9405
9730
  * @example
@@ -9456,6 +9781,7 @@ export namespace sqladmin_v1beta4 {
9456
9781
  * // "kind": "my_kind",
9457
9782
  * // "name": "my_name",
9458
9783
  * // "operationType": "my_operationType",
9784
+ * // "preCheckMajorVersionUpgradeContext": {},
9459
9785
  * // "selfLink": "my_selfLink",
9460
9786
  * // "startTime": "my_startTime",
9461
9787
  * // "status": "my_status",
@@ -9624,6 +9950,7 @@ export namespace sqladmin_v1beta4 {
9624
9950
  * // "kind": "my_kind",
9625
9951
  * // "name": "my_name",
9626
9952
  * // "operationType": "my_operationType",
9953
+ * // "preCheckMajorVersionUpgradeContext": {},
9627
9954
  * // "selfLink": "my_selfLink",
9628
9955
  * // "startTime": "my_startTime",
9629
9956
  * // "status": "my_status",
@@ -9918,6 +10245,8 @@ export namespace sqladmin_v1beta4 {
9918
10245
  * const res = await sql.instances.resetSslConfig({
9919
10246
  * // Cloud SQL instance ID. This does not include the project ID.
9920
10247
  * instance: 'placeholder-value',
10248
+ * // Optional. Reset SSL mode to use.
10249
+ * mode: 'placeholder-value',
9921
10250
  * // Project ID of the project that contains the instance.
9922
10251
  * project: 'placeholder-value',
9923
10252
  * });
@@ -9936,6 +10265,7 @@ export namespace sqladmin_v1beta4 {
9936
10265
  * // "kind": "my_kind",
9937
10266
  * // "name": "my_name",
9938
10267
  * // "operationType": "my_operationType",
10268
+ * // "preCheckMajorVersionUpgradeContext": {},
9939
10269
  * // "selfLink": "my_selfLink",
9940
10270
  * // "startTime": "my_startTime",
9941
10271
  * // "status": "my_status",
@@ -10096,6 +10426,7 @@ export namespace sqladmin_v1beta4 {
10096
10426
  * // "kind": "my_kind",
10097
10427
  * // "name": "my_name",
10098
10428
  * // "operationType": "my_operationType",
10429
+ * // "preCheckMajorVersionUpgradeContext": {},
10099
10430
  * // "selfLink": "my_selfLink",
10100
10431
  * // "startTime": "my_startTime",
10101
10432
  * // "status": "my_status",
@@ -10268,6 +10599,7 @@ export namespace sqladmin_v1beta4 {
10268
10599
  * // "kind": "my_kind",
10269
10600
  * // "name": "my_name",
10270
10601
  * // "operationType": "my_operationType",
10602
+ * // "preCheckMajorVersionUpgradeContext": {},
10271
10603
  * // "selfLink": "my_selfLink",
10272
10604
  * // "startTime": "my_startTime",
10273
10605
  * // "status": "my_status",
@@ -10436,6 +10768,7 @@ export namespace sqladmin_v1beta4 {
10436
10768
  * // "kind": "my_kind",
10437
10769
  * // "name": "my_name",
10438
10770
  * // "operationType": "my_operationType",
10771
+ * // "preCheckMajorVersionUpgradeContext": {},
10439
10772
  * // "selfLink": "my_selfLink",
10440
10773
  * // "startTime": "my_startTime",
10441
10774
  * // "status": "my_status",
@@ -10604,6 +10937,7 @@ export namespace sqladmin_v1beta4 {
10604
10937
  * // "kind": "my_kind",
10605
10938
  * // "name": "my_name",
10606
10939
  * // "operationType": "my_operationType",
10940
+ * // "preCheckMajorVersionUpgradeContext": {},
10607
10941
  * // "selfLink": "my_selfLink",
10608
10942
  * // "startTime": "my_startTime",
10609
10943
  * // "status": "my_status",
@@ -10766,6 +11100,7 @@ export namespace sqladmin_v1beta4 {
10766
11100
  * // "kind": "my_kind",
10767
11101
  * // "name": "my_name",
10768
11102
  * // "operationType": "my_operationType",
11103
+ * // "preCheckMajorVersionUpgradeContext": {},
10769
11104
  * // "selfLink": "my_selfLink",
10770
11105
  * // "startTime": "my_startTime",
10771
11106
  * // "status": "my_status",
@@ -10926,6 +11261,7 @@ export namespace sqladmin_v1beta4 {
10926
11261
  * // "kind": "my_kind",
10927
11262
  * // "name": "my_name",
10928
11263
  * // "operationType": "my_operationType",
11264
+ * // "preCheckMajorVersionUpgradeContext": {},
10929
11265
  * // "selfLink": "my_selfLink",
10930
11266
  * // "startTime": "my_startTime",
10931
11267
  * // "status": "my_status",
@@ -11088,6 +11424,7 @@ export namespace sqladmin_v1beta4 {
11088
11424
  * // "kind": "my_kind",
11089
11425
  * // "name": "my_name",
11090
11426
  * // "operationType": "my_operationType",
11427
+ * // "preCheckMajorVersionUpgradeContext": {},
11091
11428
  * // "selfLink": "my_selfLink",
11092
11429
  * // "startTime": "my_startTime",
11093
11430
  * // "status": "my_status",
@@ -11256,6 +11593,7 @@ export namespace sqladmin_v1beta4 {
11256
11593
  * // "kind": "my_kind",
11257
11594
  * // "name": "my_name",
11258
11595
  * // "operationType": "my_operationType",
11596
+ * // "preCheckMajorVersionUpgradeContext": {},
11259
11597
  * // "selfLink": "my_selfLink",
11260
11598
  * // "startTime": "my_startTime",
11261
11599
  * // "status": "my_status",
@@ -11474,6 +11812,7 @@ export namespace sqladmin_v1beta4 {
11474
11812
  * // "kind": "my_kind",
11475
11813
  * // "name": "my_name",
11476
11814
  * // "operationType": "my_operationType",
11815
+ * // "preCheckMajorVersionUpgradeContext": {},
11477
11816
  * // "selfLink": "my_selfLink",
11478
11817
  * // "startTime": "my_startTime",
11479
11818
  * // "status": "my_status",
@@ -11839,6 +12178,22 @@ export namespace sqladmin_v1beta4 {
11839
12178
  */
11840
12179
  requestBody?: Schema$PointInTimeRestoreContext;
11841
12180
  }
12181
+ export interface Params$Resource$Instances$Precheckmajorversionupgrade
12182
+ extends StandardParameters {
12183
+ /**
12184
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12185
+ */
12186
+ instance?: string;
12187
+ /**
12188
+ * Required. Project ID of the project that contains the instance.
12189
+ */
12190
+ project?: string;
12191
+
12192
+ /**
12193
+ * Request body metadata
12194
+ */
12195
+ requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
12196
+ }
11842
12197
  export interface Params$Resource$Instances$Promotereplica
11843
12198
  extends StandardParameters {
11844
12199
  /**
@@ -11887,6 +12242,10 @@ export namespace sqladmin_v1beta4 {
11887
12242
  * Cloud SQL instance ID. This does not include the project ID.
11888
12243
  */
11889
12244
  instance?: string;
12245
+ /**
12246
+ * Optional. Reset SSL mode to use.
12247
+ */
12248
+ mode?: string;
11890
12249
  /**
11891
12250
  * Project ID of the project that contains the instance.
11892
12251
  */
@@ -12027,7 +12386,7 @@ export namespace sqladmin_v1beta4 {
12027
12386
  }
12028
12387
 
12029
12388
  /**
12030
- * Cancels an instance operation that has been performed on an instance.
12389
+ * Cancels an instance operation that has been performed on an instance. Ordinarily, this method name should be `CancelSqlOperation`.
12031
12390
  * @example
12032
12391
  * ```js
12033
12392
  * // Before running the sample:
@@ -12220,6 +12579,7 @@ export namespace sqladmin_v1beta4 {
12220
12579
  * // "kind": "my_kind",
12221
12580
  * // "name": "my_name",
12222
12581
  * // "operationType": "my_operationType",
12582
+ * // "preCheckMajorVersionUpgradeContext": {},
12223
12583
  * // "selfLink": "my_selfLink",
12224
12584
  * // "startTime": "my_startTime",
12225
12585
  * // "status": "my_status",
@@ -12727,6 +13087,7 @@ export namespace sqladmin_v1beta4 {
12727
13087
  *
12728
13088
  * // Example response
12729
13089
  * // {
13090
+ * // "earliestRecoveryTime": "my_earliestRecoveryTime",
12730
13091
  * // "kind": "my_kind",
12731
13092
  * // "latestRecoveryTime": "my_latestRecoveryTime"
12732
13093
  * // }
@@ -12899,6 +13260,7 @@ export namespace sqladmin_v1beta4 {
12899
13260
  * // "kind": "my_kind",
12900
13261
  * // "name": "my_name",
12901
13262
  * // "operationType": "my_operationType",
13263
+ * // "preCheckMajorVersionUpgradeContext": {},
12902
13264
  * // "selfLink": "my_selfLink",
12903
13265
  * // "startTime": "my_startTime",
12904
13266
  * // "status": "my_status",
@@ -13067,6 +13429,7 @@ export namespace sqladmin_v1beta4 {
13067
13429
  * // "kind": "my_kind",
13068
13430
  * // "name": "my_name",
13069
13431
  * // "operationType": "my_operationType",
13432
+ * // "preCheckMajorVersionUpgradeContext": {},
13070
13433
  * // "selfLink": "my_selfLink",
13071
13434
  * // "startTime": "my_startTime",
13072
13435
  * // "status": "my_status",
@@ -13235,6 +13598,7 @@ export namespace sqladmin_v1beta4 {
13235
13598
  * // "kind": "my_kind",
13236
13599
  * // "name": "my_name",
13237
13600
  * // "operationType": "my_operationType",
13601
+ * // "preCheckMajorVersionUpgradeContext": {},
13238
13602
  * // "selfLink": "my_selfLink",
13239
13603
  * // "startTime": "my_startTime",
13240
13604
  * // "status": "my_status",
@@ -13408,6 +13772,7 @@ export namespace sqladmin_v1beta4 {
13408
13772
  * // "kind": "my_kind",
13409
13773
  * // "name": "my_name",
13410
13774
  * // "operationType": "my_operationType",
13775
+ * // "preCheckMajorVersionUpgradeContext": {},
13411
13776
  * // "selfLink": "my_selfLink",
13412
13777
  * // "startTime": "my_startTime",
13413
13778
  * // "status": "my_status",
@@ -14012,6 +14377,7 @@ export namespace sqladmin_v1beta4 {
14012
14377
  * // "kind": "my_kind",
14013
14378
  * // "name": "my_name",
14014
14379
  * // "operationType": "my_operationType",
14380
+ * // "preCheckMajorVersionUpgradeContext": {},
14015
14381
  * // "selfLink": "my_selfLink",
14016
14382
  * // "startTime": "my_startTime",
14017
14383
  * // "status": "my_status",
@@ -14855,6 +15221,7 @@ export namespace sqladmin_v1beta4 {
14855
15221
  * // "kind": "my_kind",
14856
15222
  * // "name": "my_name",
14857
15223
  * // "operationType": "my_operationType",
15224
+ * // "preCheckMajorVersionUpgradeContext": {},
14858
15225
  * // "selfLink": "my_selfLink",
14859
15226
  * // "startTime": "my_startTime",
14860
15227
  * // "status": "my_status",
@@ -15010,6 +15377,7 @@ export namespace sqladmin_v1beta4 {
15010
15377
  * // "dualPasswordType": "my_dualPasswordType",
15011
15378
  * // "etag": "my_etag",
15012
15379
  * // "host": "my_host",
15380
+ * // "iamStatus": "my_iamStatus",
15013
15381
  * // "instance": "my_instance",
15014
15382
  * // "kind": "my_kind",
15015
15383
  * // "name": "my_name",
@@ -15161,6 +15529,7 @@ export namespace sqladmin_v1beta4 {
15161
15529
  * // "dualPasswordType": "my_dualPasswordType",
15162
15530
  * // "etag": "my_etag",
15163
15531
  * // "host": "my_host",
15532
+ * // "iamStatus": "my_iamStatus",
15164
15533
  * // "instance": "my_instance",
15165
15534
  * // "kind": "my_kind",
15166
15535
  * // "name": "my_name",
@@ -15187,6 +15556,7 @@ export namespace sqladmin_v1beta4 {
15187
15556
  * // "kind": "my_kind",
15188
15557
  * // "name": "my_name",
15189
15558
  * // "operationType": "my_operationType",
15559
+ * // "preCheckMajorVersionUpgradeContext": {},
15190
15560
  * // "selfLink": "my_selfLink",
15191
15561
  * // "startTime": "my_startTime",
15192
15562
  * // "status": "my_status",
@@ -15485,6 +15855,7 @@ export namespace sqladmin_v1beta4 {
15485
15855
  * // "dualPasswordType": "my_dualPasswordType",
15486
15856
  * // "etag": "my_etag",
15487
15857
  * // "host": "my_host",
15858
+ * // "iamStatus": "my_iamStatus",
15488
15859
  * // "instance": "my_instance",
15489
15860
  * // "kind": "my_kind",
15490
15861
  * // "name": "my_name",
@@ -15511,6 +15882,7 @@ export namespace sqladmin_v1beta4 {
15511
15882
  * // "kind": "my_kind",
15512
15883
  * // "name": "my_name",
15513
15884
  * // "operationType": "my_operationType",
15885
+ * // "preCheckMajorVersionUpgradeContext": {},
15514
15886
  * // "selfLink": "my_selfLink",
15515
15887
  * // "startTime": "my_startTime",
15516
15888
  * // "status": "my_status",