@googleapis/sqladmin 31.1.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.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace sqladmin_v1beta4 {
@@ -167,7 +166,7 @@ export declare namespace sqladmin_v1beta4 {
167
166
  name?: string | null;
168
167
  }
169
168
  /**
170
- * A backup resource. Next ID: 30
169
+ * A backup resource.
171
170
  */
172
171
  export interface Schema$Backup {
173
172
  /**
@@ -510,6 +509,23 @@ export declare namespace sqladmin_v1beta4 {
510
509
  * Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance.
511
510
  */
512
511
  preferredZone?: string | null;
512
+ /**
513
+ * The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
514
+ */
515
+ sourceInstanceDeletionTime?: string | null;
516
+ }
517
+ /**
518
+ * Contains the name and datatype of a column.
519
+ */
520
+ export interface Schema$Column {
521
+ /**
522
+ * Name of the column.
523
+ */
524
+ name?: string | null;
525
+ /**
526
+ * Datatype of the column.
527
+ */
528
+ type?: string | null;
513
529
  }
514
530
  /**
515
531
  * The managed connection pooling configuration.
@@ -523,6 +539,10 @@ export declare namespace sqladmin_v1beta4 {
523
539
  * Optional. List of connection pool configuration flags.
524
540
  */
525
541
  flags?: Schema$ConnectionPoolFlags[];
542
+ /**
543
+ * Output only. Number of connection poolers.
544
+ */
545
+ poolerCount?: number | null;
526
546
  }
527
547
  /**
528
548
  * Connection pool flags for Cloud SQL instances managed connection pool configuration.
@@ -590,6 +610,10 @@ export declare namespace sqladmin_v1beta4 {
590
610
  * This is always `sql#connectSettings`.
591
611
  */
592
612
  kind?: string | null;
613
+ /**
614
+ * Optional. Output only. mdx_protocol_support controls how the client uses metadata exchange when connecting to the instance. The values in the list representing parts of the MDX protocol that are supported by this instance. When the list is empty, the instance does not support MDX, so the client must not send an MDX request. The default is empty.
615
+ */
616
+ mdxProtocolSupport?: string[] | null;
593
617
  /**
594
618
  * The number of read pool nodes in a read pool.
595
619
  */
@@ -678,10 +702,6 @@ export declare namespace sqladmin_v1beta4 {
678
702
  * The backend type. `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.
679
703
  */
680
704
  backendType?: string | null;
681
- /**
682
- * Clears private network settings when the instance is restored.
683
- */
684
- clearNetwork?: boolean | null;
685
705
  /**
686
706
  * Connection name of the Cloud SQL instance used in connection strings.
687
707
  */
@@ -1051,6 +1071,35 @@ export declare namespace sqladmin_v1beta4 {
1051
1071
  */
1052
1072
  export interface Schema$Empty {
1053
1073
  }
1074
+ /**
1075
+ * The request payload used to execute SQL statements.
1076
+ */
1077
+ export interface Schema$ExecuteSqlPayload {
1078
+ /**
1079
+ * Optional. When set to true, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.
1080
+ */
1081
+ autoIamAuthn?: boolean | null;
1082
+ /**
1083
+ * Optional. Name of the database on which the statement will be executed.
1084
+ */
1085
+ database?: string | null;
1086
+ /**
1087
+ * Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.
1088
+ */
1089
+ partialResultMode?: string | null;
1090
+ /**
1091
+ * Optional. The maximum number of rows returned per SQL statement.
1092
+ */
1093
+ rowLimit?: string | null;
1094
+ /**
1095
+ * Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1096
+ */
1097
+ sqlStatement?: string | null;
1098
+ /**
1099
+ * 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.
1100
+ */
1101
+ user?: string | null;
1102
+ }
1054
1103
  /**
1055
1104
  * Database instance export context.
1056
1105
  */
@@ -1145,6 +1194,19 @@ export declare namespace sqladmin_v1beta4 {
1145
1194
  */
1146
1195
  settingsVersion?: string | null;
1147
1196
  }
1197
+ /**
1198
+ * Config used to determine the final backup settings for the instance.
1199
+ */
1200
+ export interface Schema$FinalBackupConfig {
1201
+ /**
1202
+ * Whether the final backup is enabled for the instance.
1203
+ */
1204
+ enabled?: boolean | null;
1205
+ /**
1206
+ * The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
1207
+ */
1208
+ retentionDays?: number | null;
1209
+ }
1148
1210
  /**
1149
1211
  * A flag resource.
1150
1212
  */
@@ -1508,6 +1570,15 @@ export declare namespace sqladmin_v1beta4 {
1508
1570
  */
1509
1571
  serverCerts?: Schema$SslCert[];
1510
1572
  }
1573
+ /**
1574
+ * Request for Pre-checks for MVU
1575
+ */
1576
+ export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
1577
+ /**
1578
+ * Required. Contains details about the pre-check major version upgrade operation.
1579
+ */
1580
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1581
+ }
1511
1582
  /**
1512
1583
  * Database Instance reencrypt request.
1513
1584
  */
@@ -1533,6 +1604,10 @@ export declare namespace sqladmin_v1beta4 {
1533
1604
  * Parameters required to perform the restore backup operation.
1534
1605
  */
1535
1606
  restoreBackupContext?: Schema$RestoreBackupContext;
1607
+ /**
1608
+ * Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.
1609
+ */
1610
+ restoreInstanceClearOverridesFieldNames?: string[] | null;
1536
1611
  /**
1537
1612
  * Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
1538
1613
  */
@@ -1703,6 +1778,28 @@ export declare namespace sqladmin_v1beta4 {
1703
1778
  */
1704
1779
  updateTrack?: string | null;
1705
1780
  }
1781
+ /**
1782
+ * Represents a notice or warning message from the database.
1783
+ */
1784
+ export interface Schema$Message {
1785
+ /**
1786
+ * 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.
1787
+ */
1788
+ message?: string | null;
1789
+ /**
1790
+ * The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
1791
+ */
1792
+ severity?: string | null;
1793
+ }
1794
+ /**
1795
+ * The additional metadata information regarding the execution of the SQL statements.
1796
+ */
1797
+ export interface Schema$Metadata {
1798
+ /**
1799
+ * The time taken to execute the SQL statements.
1800
+ */
1801
+ sqlStatementExecutionTime?: string | null;
1802
+ }
1706
1803
  /**
1707
1804
  * Read-replica configuration specific to MySQL databases.
1708
1805
  */
@@ -1858,6 +1955,10 @@ export declare namespace sqladmin_v1beta4 {
1858
1955
  * 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`
1859
1956
  */
1860
1957
  operationType?: string | null;
1958
+ /**
1959
+ * 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).
1960
+ */
1961
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1861
1962
  /**
1862
1963
  * The URI of this resource.
1863
1964
  */
@@ -2028,7 +2129,7 @@ export declare namespace sqladmin_v1beta4 {
2028
2129
  */
2029
2130
  export interface Schema$PointInTimeRestoreContext {
2030
2131
  /**
2031
- * Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use. http://go/speckle-subnet-picker-clone
2132
+ * Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
2032
2133
  */
2033
2134
  allocatedIpRange?: string | null;
2034
2135
  /**
@@ -2085,6 +2186,40 @@ export declare namespace sqladmin_v1beta4 {
2085
2186
  */
2086
2187
  state?: string | null;
2087
2188
  }
2189
+ /**
2190
+ * Pre-check major version upgrade context.
2191
+ */
2192
+ export interface Schema$PreCheckMajorVersionUpgradeContext {
2193
+ /**
2194
+ * Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2195
+ */
2196
+ kind?: string | null;
2197
+ /**
2198
+ * Output only. The responses from the precheck operation.
2199
+ */
2200
+ preCheckResponse?: Schema$PreCheckResponse[];
2201
+ /**
2202
+ * Required. The target database version to upgrade to.
2203
+ */
2204
+ targetDatabaseVersion?: string | null;
2205
+ }
2206
+ /**
2207
+ * Structured PreCheckResponse containing message, type, and required actions.
2208
+ */
2209
+ export interface Schema$PreCheckResponse {
2210
+ /**
2211
+ * The actions that the user needs to take. Use repeated for multiple actions.
2212
+ */
2213
+ actionsRequired?: string[] | null;
2214
+ /**
2215
+ * The message to be displayed to the user.
2216
+ */
2217
+ message?: string | null;
2218
+ /**
2219
+ * The type of message whether it is an info, warning, or error.
2220
+ */
2221
+ messageType?: string | null;
2222
+ }
2088
2223
  /**
2089
2224
  * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2090
2225
  */
@@ -2131,6 +2266,60 @@ export declare namespace sqladmin_v1beta4 {
2131
2266
  */
2132
2267
  pscEnabled?: boolean | null;
2133
2268
  }
2269
+ /**
2270
+ * QueryResult contains the result of executing a single SQL statement.
2271
+ */
2272
+ export interface Schema$QueryResult {
2273
+ /**
2274
+ * List of columns included in the result. This also includes the data type of the column.
2275
+ */
2276
+ columns?: Schema$Column[];
2277
+ /**
2278
+ * Message related to the SQL execution result.
2279
+ */
2280
+ message?: string | null;
2281
+ /**
2282
+ * Set to true if the SQL execution's result is truncated due to size limits.
2283
+ */
2284
+ partialResult?: boolean | null;
2285
+ /**
2286
+ * Rows returned by the SQL statement.
2287
+ */
2288
+ rows?: Schema$Row[];
2289
+ }
2290
+ /**
2291
+ * The read pool auto-scale configuration.
2292
+ */
2293
+ export interface Schema$ReadPoolAutoScaleConfig {
2294
+ /**
2295
+ * Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2296
+ */
2297
+ disableScaleIn?: boolean | null;
2298
+ /**
2299
+ * Indicates whether read pool auto scaling is enabled.
2300
+ */
2301
+ enabled?: boolean | null;
2302
+ /**
2303
+ * Maximum number of read pool nodes to be maintained.
2304
+ */
2305
+ maxNodeCount?: number | null;
2306
+ /**
2307
+ * Minimum number of read pool nodes to be maintained.
2308
+ */
2309
+ minNodeCount?: number | null;
2310
+ /**
2311
+ * The cooldown period for scale in operations.
2312
+ */
2313
+ scaleInCooldownSeconds?: number | null;
2314
+ /**
2315
+ * The cooldown period for scale out operations.
2316
+ */
2317
+ scaleOutCooldownSeconds?: number | null;
2318
+ /**
2319
+ * Optional. Target metrics for read pool auto scaling.
2320
+ */
2321
+ targetMetrics?: Schema$TargetMetric[];
2322
+ }
2134
2323
  /**
2135
2324
  * Read-replica configuration for connecting to the primary instance.
2136
2325
  */
@@ -2226,6 +2415,15 @@ export declare namespace sqladmin_v1beta4 {
2226
2415
  */
2227
2416
  nextVersion?: string | null;
2228
2417
  }
2418
+ /**
2419
+ * Contains the values for a row.
2420
+ */
2421
+ export interface Schema$Row {
2422
+ /**
2423
+ * The values for the row.
2424
+ */
2425
+ values?: Schema$Value[];
2426
+ }
2229
2427
  /**
2230
2428
  * A list of objects that the user selects for replication from an external source instance.
2231
2429
  */
@@ -2327,6 +2525,10 @@ export declare namespace sqladmin_v1beta4 {
2327
2525
  * Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
2328
2526
  */
2329
2527
  enableGoogleMlIntegration?: boolean | null;
2528
+ /**
2529
+ * Optional. The final backup configuration for the instance.
2530
+ */
2531
+ finalBackupConfig?: Schema$FinalBackupConfig;
2330
2532
  /**
2331
2533
  * Insights configuration, for now relevant only for Postgres.
2332
2534
  */
@@ -2355,6 +2557,10 @@ export declare namespace sqladmin_v1beta4 {
2355
2557
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2356
2558
  */
2357
2559
  pricingPlan?: string | null;
2560
+ /**
2561
+ * Optional. The read pool auto-scale configuration for the instance.
2562
+ */
2563
+ readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
2358
2564
  /**
2359
2565
  * Optional. Configuration value for recreation of replica after certain replication lag.
2360
2566
  */
@@ -2402,6 +2608,14 @@ export declare namespace sqladmin_v1beta4 {
2402
2608
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2403
2609
  */
2404
2610
  export interface Schema$SqlActiveDirectoryConfig {
2611
+ /**
2612
+ * Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
2613
+ */
2614
+ adminCredentialSecretName?: string | null;
2615
+ /**
2616
+ * Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
2617
+ */
2618
+ dnsServers?: string[] | null;
2405
2619
  /**
2406
2620
  * The name of the domain (e.g., mydomain.com).
2407
2621
  */
@@ -2410,6 +2624,14 @@ export declare namespace sqladmin_v1beta4 {
2410
2624
  * This is always sql#activeDirectoryConfig.
2411
2625
  */
2412
2626
  kind?: string | null;
2627
+ /**
2628
+ * Optional. The mode of the Active Directory configuration.
2629
+ */
2630
+ mode?: string | null;
2631
+ /**
2632
+ * Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
2633
+ */
2634
+ organizationalUnit?: string | null;
2413
2635
  }
2414
2636
  /**
2415
2637
  * External primary instance migration setting error/warning.
@@ -2437,6 +2659,23 @@ export declare namespace sqladmin_v1beta4 {
2437
2659
  */
2438
2660
  operationId?: string | null;
2439
2661
  }
2662
+ /**
2663
+ * Execute SQL statements response.
2664
+ */
2665
+ export interface Schema$SqlInstancesExecuteSqlResponse {
2666
+ /**
2667
+ * 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.
2668
+ */
2669
+ messages?: Schema$Message[];
2670
+ /**
2671
+ * The additional metadata information regarding the execution of the SQL statements.
2672
+ */
2673
+ metadata?: Schema$Metadata;
2674
+ /**
2675
+ * The list of results after executing all the SQL statements.
2676
+ */
2677
+ results?: Schema$QueryResult[];
2678
+ }
2440
2679
  /**
2441
2680
  * Instance get disk shrink config response.
2442
2681
  */
@@ -2458,6 +2697,10 @@ export declare namespace sqladmin_v1beta4 {
2458
2697
  * Instance get latest recovery time response.
2459
2698
  */
2460
2699
  export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
2700
+ /**
2701
+ * Timestamp, identifies the earliest recovery time of the source instance.
2702
+ */
2703
+ earliestRecoveryTime?: string | null;
2461
2704
  /**
2462
2705
  * This is always `sql#getLatestRecoveryTime`.
2463
2706
  */
@@ -2499,6 +2742,10 @@ export declare namespace sqladmin_v1beta4 {
2499
2742
  * MySQL-specific settings for start external sync.
2500
2743
  */
2501
2744
  mysqlSyncConfig?: Schema$MySqlSyncConfig;
2745
+ /**
2746
+ * Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.
2747
+ */
2748
+ replicaOverwriteEnabled?: boolean | null;
2502
2749
  /**
2503
2750
  * Whether to skip the verification step (VESS).
2504
2751
  */
@@ -2769,6 +3016,19 @@ export declare namespace sqladmin_v1beta4 {
2769
3016
  */
2770
3017
  value?: string | null;
2771
3018
  }
3019
+ /**
3020
+ * Target metric for read pool auto scaling.
3021
+ */
3022
+ export interface Schema$TargetMetric {
3023
+ /**
3024
+ * The metric name to be used for auto scaling.
3025
+ */
3026
+ metric?: string | null;
3027
+ /**
3028
+ * The target value for the metric.
3029
+ */
3030
+ targetValue?: number | null;
3031
+ }
2772
3032
  /**
2773
3033
  * A Google Cloud SQL service tier resource.
2774
3034
  */
@@ -2836,6 +3096,10 @@ export declare namespace sqladmin_v1beta4 {
2836
3096
  * 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.
2837
3097
  */
2838
3098
  host?: string | null;
3099
+ /**
3100
+ * Indicates if a group is active or inactive for IAM database authentication.
3101
+ */
3102
+ iamStatus?: string | null;
2839
3103
  /**
2840
3104
  * 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.
2841
3105
  */
@@ -2908,6 +3172,19 @@ export declare namespace sqladmin_v1beta4 {
2908
3172
  */
2909
3173
  nextPageToken?: string | null;
2910
3174
  }
3175
+ /**
3176
+ * The cell value of the table.
3177
+ */
3178
+ export interface Schema$Value {
3179
+ /**
3180
+ * If cell value is null, then this flag will be set to true.
3181
+ */
3182
+ nullValue?: boolean | null;
3183
+ /**
3184
+ * The cell value represented in string format.
3185
+ */
3186
+ value?: string | null;
3187
+ }
2911
3188
  export class Resource$Backupruns {
2912
3189
  context: APIRequestContext;
2913
3190
  constructor(context: APIRequestContext);
@@ -2967,6 +3244,7 @@ export declare namespace sqladmin_v1beta4 {
2967
3244
  * // "kind": "my_kind",
2968
3245
  * // "name": "my_name",
2969
3246
  * // "operationType": "my_operationType",
3247
+ * // "preCheckMajorVersionUpgradeContext": {},
2970
3248
  * // "selfLink": "my_selfLink",
2971
3249
  * // "startTime": "my_startTime",
2972
3250
  * // "status": "my_status",
@@ -3161,6 +3439,7 @@ export declare namespace sqladmin_v1beta4 {
3161
3439
  * // "kind": "my_kind",
3162
3440
  * // "name": "my_name",
3163
3441
  * // "operationType": "my_operationType",
3442
+ * // "preCheckMajorVersionUpgradeContext": {},
3164
3443
  * // "selfLink": "my_selfLink",
3165
3444
  * // "startTime": "my_startTime",
3166
3445
  * // "status": "my_status",
@@ -3407,6 +3686,7 @@ export declare namespace sqladmin_v1beta4 {
3407
3686
  * // "kind": "my_kind",
3408
3687
  * // "name": "my_name",
3409
3688
  * // "operationType": "my_operationType",
3689
+ * // "preCheckMajorVersionUpgradeContext": {},
3410
3690
  * // "selfLink": "my_selfLink",
3411
3691
  * // "startTime": "my_startTime",
3412
3692
  * // "status": "my_status",
@@ -3488,6 +3768,7 @@ export declare namespace sqladmin_v1beta4 {
3488
3768
  * // "kind": "my_kind",
3489
3769
  * // "name": "my_name",
3490
3770
  * // "operationType": "my_operationType",
3771
+ * // "preCheckMajorVersionUpgradeContext": {},
3491
3772
  * // "selfLink": "my_selfLink",
3492
3773
  * // "startTime": "my_startTime",
3493
3774
  * // "status": "my_status",
@@ -3757,6 +4038,7 @@ export declare namespace sqladmin_v1beta4 {
3757
4038
  * // "kind": "my_kind",
3758
4039
  * // "name": "my_name",
3759
4040
  * // "operationType": "my_operationType",
4041
+ * // "preCheckMajorVersionUpgradeContext": {},
3760
4042
  * // "selfLink": "my_selfLink",
3761
4043
  * // "startTime": "my_startTime",
3762
4044
  * // "status": "my_status",
@@ -3972,6 +4254,7 @@ export declare namespace sqladmin_v1beta4 {
3972
4254
  * // "dnsNames": [],
3973
4255
  * // "ipAddresses": [],
3974
4256
  * // "kind": "my_kind",
4257
+ * // "mdxProtocolSupport": [],
3975
4258
  * // "nodeCount": 0,
3976
4259
  * // "nodes": [],
3977
4260
  * // "pscEnabled": false,
@@ -4087,6 +4370,7 @@ export declare namespace sqladmin_v1beta4 {
4087
4370
  * // "kind": "my_kind",
4088
4371
  * // "name": "my_name",
4089
4372
  * // "operationType": "my_operationType",
4373
+ * // "preCheckMajorVersionUpgradeContext": {},
4090
4374
  * // "selfLink": "my_selfLink",
4091
4375
  * // "startTime": "my_startTime",
4092
4376
  * // "status": "my_status",
@@ -4261,6 +4545,7 @@ export declare namespace sqladmin_v1beta4 {
4261
4545
  * // "kind": "my_kind",
4262
4546
  * // "name": "my_name",
4263
4547
  * // "operationType": "my_operationType",
4548
+ * // "preCheckMajorVersionUpgradeContext": {},
4264
4549
  * // "selfLink": "my_selfLink",
4265
4550
  * // "startTime": "my_startTime",
4266
4551
  * // "status": "my_status",
@@ -4428,6 +4713,7 @@ export declare namespace sqladmin_v1beta4 {
4428
4713
  * // "kind": "my_kind",
4429
4714
  * // "name": "my_name",
4430
4715
  * // "operationType": "my_operationType",
4716
+ * // "preCheckMajorVersionUpgradeContext": {},
4431
4717
  * // "selfLink": "my_selfLink",
4432
4718
  * // "startTime": "my_startTime",
4433
4719
  * // "status": "my_status",
@@ -4529,6 +4815,7 @@ export declare namespace sqladmin_v1beta4 {
4529
4815
  * // "kind": "my_kind",
4530
4816
  * // "name": "my_name",
4531
4817
  * // "operationType": "my_operationType",
4818
+ * // "preCheckMajorVersionUpgradeContext": {},
4532
4819
  * // "selfLink": "my_selfLink",
4533
4820
  * // "startTime": "my_startTime",
4534
4821
  * // "status": "my_status",
@@ -4857,6 +5144,7 @@ export declare namespace sqladmin_v1beta4 {
4857
5144
  * // "kind": "my_kind",
4858
5145
  * // "name": "my_name",
4859
5146
  * // "operationType": "my_operationType",
5147
+ * // "preCheckMajorVersionUpgradeContext": {},
4860
5148
  * // "selfLink": "my_selfLink",
4861
5149
  * // "startTime": "my_startTime",
4862
5150
  * // "status": "my_status",
@@ -4940,6 +5228,7 @@ export declare namespace sqladmin_v1beta4 {
4940
5228
  * // "kind": "my_kind",
4941
5229
  * // "name": "my_name",
4942
5230
  * // "operationType": "my_operationType",
5231
+ * // "preCheckMajorVersionUpgradeContext": {},
4943
5232
  * // "selfLink": "my_selfLink",
4944
5233
  * // "startTime": "my_startTime",
4945
5234
  * // "status": "my_status",
@@ -5031,6 +5320,7 @@ export declare namespace sqladmin_v1beta4 {
5031
5320
  * // "kind": "my_kind",
5032
5321
  * // "name": "my_name",
5033
5322
  * // "operationType": "my_operationType",
5323
+ * // "preCheckMajorVersionUpgradeContext": {},
5034
5324
  * // "selfLink": "my_selfLink",
5035
5325
  * // "startTime": "my_startTime",
5036
5326
  * // "status": "my_status",
@@ -5122,6 +5412,7 @@ export declare namespace sqladmin_v1beta4 {
5122
5412
  * // "kind": "my_kind",
5123
5413
  * // "name": "my_name",
5124
5414
  * // "operationType": "my_operationType",
5415
+ * // "preCheckMajorVersionUpgradeContext": {},
5125
5416
  * // "selfLink": "my_selfLink",
5126
5417
  * // "startTime": "my_startTime",
5127
5418
  * // "status": "my_status",
@@ -5213,6 +5504,7 @@ export declare namespace sqladmin_v1beta4 {
5213
5504
  * // "kind": "my_kind",
5214
5505
  * // "name": "my_name",
5215
5506
  * // "operationType": "my_operationType",
5507
+ * // "preCheckMajorVersionUpgradeContext": {},
5216
5508
  * // "selfLink": "my_selfLink",
5217
5509
  * // "startTime": "my_startTime",
5218
5510
  * // "status": "my_status",
@@ -5304,6 +5596,7 @@ export declare namespace sqladmin_v1beta4 {
5304
5596
  * // "kind": "my_kind",
5305
5597
  * // "name": "my_name",
5306
5598
  * // "operationType": "my_operationType",
5599
+ * // "preCheckMajorVersionUpgradeContext": {},
5307
5600
  * // "selfLink": "my_selfLink",
5308
5601
  * // "startTime": "my_startTime",
5309
5602
  * // "status": "my_status",
@@ -5333,6 +5626,86 @@ export declare namespace sqladmin_v1beta4 {
5333
5626
  demoteMaster(params: Params$Resource$Instances$Demotemaster, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5334
5627
  demoteMaster(params: Params$Resource$Instances$Demotemaster, callback: BodyResponseCallback<Schema$Operation>): void;
5335
5628
  demoteMaster(callback: BodyResponseCallback<Schema$Operation>): void;
5629
+ /**
5630
+ * Execute SQL statements.
5631
+ * @example
5632
+ * ```js
5633
+ * // Before running the sample:
5634
+ * // - Enable the API at:
5635
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5636
+ * // - Login into gcloud by running:
5637
+ * // ```sh
5638
+ * // $ gcloud auth application-default login
5639
+ * // ```
5640
+ * // - Install the npm module by running:
5641
+ * // ```sh
5642
+ * // $ npm install googleapis
5643
+ * // ```
5644
+ *
5645
+ * const {google} = require('googleapis');
5646
+ * const sqladmin = google.sqladmin('v1beta4');
5647
+ *
5648
+ * async function main() {
5649
+ * const auth = new google.auth.GoogleAuth({
5650
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5651
+ * scopes: [
5652
+ * 'https://www.googleapis.com/auth/cloud-platform',
5653
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5654
+ * ],
5655
+ * });
5656
+ *
5657
+ * // Acquire an auth client, and bind it to all future calls
5658
+ * const authClient = await auth.getClient();
5659
+ * google.options({auth: authClient});
5660
+ *
5661
+ * // Do the magic
5662
+ * const res = await sql.instances.executeSql({
5663
+ * // Required. Database instance ID. This does not include the project ID.
5664
+ * instance: 'placeholder-value',
5665
+ * // Required. Project ID of the project that contains the instance.
5666
+ * project: 'placeholder-value',
5667
+ *
5668
+ * // Request body metadata
5669
+ * requestBody: {
5670
+ * // request body parameters
5671
+ * // {
5672
+ * // "autoIamAuthn": false,
5673
+ * // "database": "my_database",
5674
+ * // "partialResultMode": "my_partialResultMode",
5675
+ * // "rowLimit": "my_rowLimit",
5676
+ * // "sqlStatement": "my_sqlStatement",
5677
+ * // "user": "my_user"
5678
+ * // }
5679
+ * },
5680
+ * });
5681
+ * console.log(res.data);
5682
+ *
5683
+ * // Example response
5684
+ * // {
5685
+ * // "messages": [],
5686
+ * // "metadata": {},
5687
+ * // "results": []
5688
+ * // }
5689
+ * }
5690
+ *
5691
+ * main().catch(e => {
5692
+ * console.error(e);
5693
+ * throw e;
5694
+ * });
5695
+ *
5696
+ * ```
5697
+ *
5698
+ * @param params - Parameters for request
5699
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5700
+ * @param callback - Optional callback that handles the response.
5701
+ * @returns A promise if used with async/await, or void if used with a callback.
5702
+ */
5703
+ executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5704
+ executeSql(params?: Params$Resource$Instances$Executesql, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
5705
+ executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5706
+ executeSql(params: Params$Resource$Instances$Executesql, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
5707
+ executeSql(params: Params$Resource$Instances$Executesql, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
5708
+ executeSql(callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
5336
5709
  /**
5337
5710
  * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
5338
5711
  * @example
@@ -5392,6 +5765,7 @@ export declare namespace sqladmin_v1beta4 {
5392
5765
  * // "kind": "my_kind",
5393
5766
  * // "name": "my_name",
5394
5767
  * // "operationType": "my_operationType",
5768
+ * // "preCheckMajorVersionUpgradeContext": {},
5395
5769
  * // "selfLink": "my_selfLink",
5396
5770
  * // "startTime": "my_startTime",
5397
5771
  * // "status": "my_status",
@@ -5483,6 +5857,7 @@ export declare namespace sqladmin_v1beta4 {
5483
5857
  * // "kind": "my_kind",
5484
5858
  * // "name": "my_name",
5485
5859
  * // "operationType": "my_operationType",
5860
+ * // "preCheckMajorVersionUpgradeContext": {},
5486
5861
  * // "selfLink": "my_selfLink",
5487
5862
  * // "startTime": "my_startTime",
5488
5863
  * // "status": "my_status",
@@ -5557,7 +5932,6 @@ export declare namespace sqladmin_v1beta4 {
5557
5932
  * // {
5558
5933
  * // "availableMaintenanceVersions": [],
5559
5934
  * // "backendType": "my_backendType",
5560
- * // "clearNetwork": false,
5561
5935
  * // "connectionName": "my_connectionName",
5562
5936
  * // "createTime": "my_createTime",
5563
5937
  * // "currentDiskSize": "my_currentDiskSize",
@@ -5687,6 +6061,7 @@ export declare namespace sqladmin_v1beta4 {
5687
6061
  * // "kind": "my_kind",
5688
6062
  * // "name": "my_name",
5689
6063
  * // "operationType": "my_operationType",
6064
+ * // "preCheckMajorVersionUpgradeContext": {},
5690
6065
  * // "selfLink": "my_selfLink",
5691
6066
  * // "startTime": "my_startTime",
5692
6067
  * // "status": "my_status",
@@ -5759,7 +6134,6 @@ export declare namespace sqladmin_v1beta4 {
5759
6134
  * // {
5760
6135
  * // "availableMaintenanceVersions": [],
5761
6136
  * // "backendType": "my_backendType",
5762
- * // "clearNetwork": false,
5763
6137
  * // "connectionName": "my_connectionName",
5764
6138
  * // "createTime": "my_createTime",
5765
6139
  * // "currentDiskSize": "my_currentDiskSize",
@@ -5827,6 +6201,7 @@ export declare namespace sqladmin_v1beta4 {
5827
6201
  * // "kind": "my_kind",
5828
6202
  * // "name": "my_name",
5829
6203
  * // "operationType": "my_operationType",
6204
+ * // "preCheckMajorVersionUpgradeContext": {},
5830
6205
  * // "selfLink": "my_selfLink",
5831
6206
  * // "startTime": "my_startTime",
5832
6207
  * // "status": "my_status",
@@ -6108,7 +6483,6 @@ export declare namespace sqladmin_v1beta4 {
6108
6483
  * // {
6109
6484
  * // "availableMaintenanceVersions": [],
6110
6485
  * // "backendType": "my_backendType",
6111
- * // "clearNetwork": false,
6112
6486
  * // "connectionName": "my_connectionName",
6113
6487
  * // "createTime": "my_createTime",
6114
6488
  * // "currentDiskSize": "my_currentDiskSize",
@@ -6176,6 +6550,7 @@ export declare namespace sqladmin_v1beta4 {
6176
6550
  * // "kind": "my_kind",
6177
6551
  * // "name": "my_name",
6178
6552
  * // "operationType": "my_operationType",
6553
+ * // "preCheckMajorVersionUpgradeContext": {},
6179
6554
  * // "selfLink": "my_selfLink",
6180
6555
  * // "startTime": "my_startTime",
6181
6556
  * // "status": "my_status",
@@ -6271,6 +6646,7 @@ export declare namespace sqladmin_v1beta4 {
6271
6646
  * // "kind": "my_kind",
6272
6647
  * // "name": "my_name",
6273
6648
  * // "operationType": "my_operationType",
6649
+ * // "preCheckMajorVersionUpgradeContext": {},
6274
6650
  * // "selfLink": "my_selfLink",
6275
6651
  * // "startTime": "my_startTime",
6276
6652
  * // "status": "my_status",
@@ -6300,6 +6676,98 @@ export declare namespace sqladmin_v1beta4 {
6300
6676
  pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6301
6677
  pointInTimeRestore(params: Params$Resource$Instances$Pointintimerestore, callback: BodyResponseCallback<Schema$Operation>): void;
6302
6678
  pointInTimeRestore(callback: BodyResponseCallback<Schema$Operation>): void;
6679
+ /**
6680
+ * Execute MVU Pre-checks
6681
+ * @example
6682
+ * ```js
6683
+ * // Before running the sample:
6684
+ * // - Enable the API at:
6685
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6686
+ * // - Login into gcloud by running:
6687
+ * // ```sh
6688
+ * // $ gcloud auth application-default login
6689
+ * // ```
6690
+ * // - Install the npm module by running:
6691
+ * // ```sh
6692
+ * // $ npm install googleapis
6693
+ * // ```
6694
+ *
6695
+ * const {google} = require('googleapis');
6696
+ * const sqladmin = google.sqladmin('v1beta4');
6697
+ *
6698
+ * async function main() {
6699
+ * const auth = new google.auth.GoogleAuth({
6700
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6701
+ * scopes: [
6702
+ * 'https://www.googleapis.com/auth/cloud-platform',
6703
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6704
+ * ],
6705
+ * });
6706
+ *
6707
+ * // Acquire an auth client, and bind it to all future calls
6708
+ * const authClient = await auth.getClient();
6709
+ * google.options({auth: authClient});
6710
+ *
6711
+ * // Do the magic
6712
+ * const res = await sql.instances.preCheckMajorVersionUpgrade({
6713
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
6714
+ * instance: 'placeholder-value',
6715
+ * // Required. Project ID of the project that contains the instance.
6716
+ * project: 'placeholder-value',
6717
+ *
6718
+ * // Request body metadata
6719
+ * requestBody: {
6720
+ * // request body parameters
6721
+ * // {
6722
+ * // "preCheckMajorVersionUpgradeContext": {}
6723
+ * // }
6724
+ * },
6725
+ * });
6726
+ * console.log(res.data);
6727
+ *
6728
+ * // Example response
6729
+ * // {
6730
+ * // "acquireSsrsLeaseContext": {},
6731
+ * // "apiWarning": {},
6732
+ * // "backupContext": {},
6733
+ * // "endTime": "my_endTime",
6734
+ * // "error": {},
6735
+ * // "exportContext": {},
6736
+ * // "importContext": {},
6737
+ * // "insertTime": "my_insertTime",
6738
+ * // "kind": "my_kind",
6739
+ * // "name": "my_name",
6740
+ * // "operationType": "my_operationType",
6741
+ * // "preCheckMajorVersionUpgradeContext": {},
6742
+ * // "selfLink": "my_selfLink",
6743
+ * // "startTime": "my_startTime",
6744
+ * // "status": "my_status",
6745
+ * // "subOperationType": {},
6746
+ * // "targetId": "my_targetId",
6747
+ * // "targetLink": "my_targetLink",
6748
+ * // "targetProject": "my_targetProject",
6749
+ * // "user": "my_user"
6750
+ * // }
6751
+ * }
6752
+ *
6753
+ * main().catch(e => {
6754
+ * console.error(e);
6755
+ * throw e;
6756
+ * });
6757
+ *
6758
+ * ```
6759
+ *
6760
+ * @param params - Parameters for request
6761
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6762
+ * @param callback - Optional callback that handles the response.
6763
+ * @returns A promise if used with async/await, or void if used with a callback.
6764
+ */
6765
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6766
+ preCheckMajorVersionUpgrade(params?: Params$Resource$Instances$Precheckmajorversionupgrade, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6767
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6768
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6769
+ preCheckMajorVersionUpgrade(params: Params$Resource$Instances$Precheckmajorversionupgrade, callback: BodyResponseCallback<Schema$Operation>): void;
6770
+ preCheckMajorVersionUpgrade(callback: BodyResponseCallback<Schema$Operation>): void;
6303
6771
  /**
6304
6772
  * Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
6305
6773
  * @example
@@ -6356,6 +6824,7 @@ export declare namespace sqladmin_v1beta4 {
6356
6824
  * // "kind": "my_kind",
6357
6825
  * // "name": "my_name",
6358
6826
  * // "operationType": "my_operationType",
6827
+ * // "preCheckMajorVersionUpgradeContext": {},
6359
6828
  * // "selfLink": "my_selfLink",
6360
6829
  * // "startTime": "my_startTime",
6361
6830
  * // "status": "my_status",
@@ -6447,6 +6916,7 @@ export declare namespace sqladmin_v1beta4 {
6447
6916
  * // "kind": "my_kind",
6448
6917
  * // "name": "my_name",
6449
6918
  * // "operationType": "my_operationType",
6919
+ * // "preCheckMajorVersionUpgradeContext": {},
6450
6920
  * // "selfLink": "my_selfLink",
6451
6921
  * // "startTime": "my_startTime",
6452
6922
  * // "status": "my_status",
@@ -6577,6 +7047,8 @@ export declare namespace sqladmin_v1beta4 {
6577
7047
  * const res = await sql.instances.resetSslConfig({
6578
7048
  * // Cloud SQL instance ID. This does not include the project ID.
6579
7049
  * instance: 'placeholder-value',
7050
+ * // Optional. Reset SSL mode to use.
7051
+ * mode: 'placeholder-value',
6580
7052
  * // Project ID of the project that contains the instance.
6581
7053
  * project: 'placeholder-value',
6582
7054
  * });
@@ -6595,6 +7067,7 @@ export declare namespace sqladmin_v1beta4 {
6595
7067
  * // "kind": "my_kind",
6596
7068
  * // "name": "my_name",
6597
7069
  * // "operationType": "my_operationType",
7070
+ * // "preCheckMajorVersionUpgradeContext": {},
6598
7071
  * // "selfLink": "my_selfLink",
6599
7072
  * // "startTime": "my_startTime",
6600
7073
  * // "status": "my_status",
@@ -6678,6 +7151,7 @@ export declare namespace sqladmin_v1beta4 {
6678
7151
  * // "kind": "my_kind",
6679
7152
  * // "name": "my_name",
6680
7153
  * // "operationType": "my_operationType",
7154
+ * // "preCheckMajorVersionUpgradeContext": {},
6681
7155
  * // "selfLink": "my_selfLink",
6682
7156
  * // "startTime": "my_startTime",
6683
7157
  * // "status": "my_status",
@@ -6753,6 +7227,7 @@ export declare namespace sqladmin_v1beta4 {
6753
7227
  * // "backup": "my_backup",
6754
7228
  * // "backupdrBackup": "my_backupdrBackup",
6755
7229
  * // "restoreBackupContext": {},
7230
+ * // "restoreInstanceClearOverridesFieldNames": [],
6756
7231
  * // "restoreInstanceSettings": {}
6757
7232
  * // }
6758
7233
  * },
@@ -6772,6 +7247,7 @@ export declare namespace sqladmin_v1beta4 {
6772
7247
  * // "kind": "my_kind",
6773
7248
  * // "name": "my_name",
6774
7249
  * // "operationType": "my_operationType",
7250
+ * // "preCheckMajorVersionUpgradeContext": {},
6775
7251
  * // "selfLink": "my_selfLink",
6776
7252
  * // "startTime": "my_startTime",
6777
7253
  * // "status": "my_status",
@@ -6863,6 +7339,7 @@ export declare namespace sqladmin_v1beta4 {
6863
7339
  * // "kind": "my_kind",
6864
7340
  * // "name": "my_name",
6865
7341
  * // "operationType": "my_operationType",
7342
+ * // "preCheckMajorVersionUpgradeContext": {},
6866
7343
  * // "selfLink": "my_selfLink",
6867
7344
  * // "startTime": "my_startTime",
6868
7345
  * // "status": "my_status",
@@ -6954,6 +7431,7 @@ export declare namespace sqladmin_v1beta4 {
6954
7431
  * // "kind": "my_kind",
6955
7432
  * // "name": "my_name",
6956
7433
  * // "operationType": "my_operationType",
7434
+ * // "preCheckMajorVersionUpgradeContext": {},
6957
7435
  * // "selfLink": "my_selfLink",
6958
7436
  * // "startTime": "my_startTime",
6959
7437
  * // "status": "my_status",
@@ -7037,6 +7515,7 @@ export declare namespace sqladmin_v1beta4 {
7037
7515
  * // "kind": "my_kind",
7038
7516
  * // "name": "my_name",
7039
7517
  * // "operationType": "my_operationType",
7518
+ * // "preCheckMajorVersionUpgradeContext": {},
7040
7519
  * // "selfLink": "my_selfLink",
7041
7520
  * // "startTime": "my_startTime",
7042
7521
  * // "status": "my_status",
@@ -7120,6 +7599,7 @@ export declare namespace sqladmin_v1beta4 {
7120
7599
  * // "kind": "my_kind",
7121
7600
  * // "name": "my_name",
7122
7601
  * // "operationType": "my_operationType",
7602
+ * // "preCheckMajorVersionUpgradeContext": {},
7123
7603
  * // "selfLink": "my_selfLink",
7124
7604
  * // "startTime": "my_startTime",
7125
7605
  * // "status": "my_status",
@@ -7205,6 +7685,7 @@ export declare namespace sqladmin_v1beta4 {
7205
7685
  * // "kind": "my_kind",
7206
7686
  * // "name": "my_name",
7207
7687
  * // "operationType": "my_operationType",
7688
+ * // "preCheckMajorVersionUpgradeContext": {},
7208
7689
  * // "selfLink": "my_selfLink",
7209
7690
  * // "startTime": "my_startTime",
7210
7691
  * // "status": "my_status",
@@ -7296,6 +7777,7 @@ export declare namespace sqladmin_v1beta4 {
7296
7777
  * // "kind": "my_kind",
7297
7778
  * // "name": "my_name",
7298
7779
  * // "operationType": "my_operationType",
7780
+ * // "preCheckMajorVersionUpgradeContext": {},
7299
7781
  * // "selfLink": "my_selfLink",
7300
7782
  * // "startTime": "my_startTime",
7301
7783
  * // "status": "my_status",
@@ -7370,7 +7852,6 @@ export declare namespace sqladmin_v1beta4 {
7370
7852
  * // {
7371
7853
  * // "availableMaintenanceVersions": [],
7372
7854
  * // "backendType": "my_backendType",
7373
- * // "clearNetwork": false,
7374
7855
  * // "connectionName": "my_connectionName",
7375
7856
  * // "createTime": "my_createTime",
7376
7857
  * // "currentDiskSize": "my_currentDiskSize",
@@ -7438,6 +7919,7 @@ export declare namespace sqladmin_v1beta4 {
7438
7919
  * // "kind": "my_kind",
7439
7920
  * // "name": "my_name",
7440
7921
  * // "operationType": "my_operationType",
7922
+ * // "preCheckMajorVersionUpgradeContext": {},
7441
7923
  * // "selfLink": "my_selfLink",
7442
7924
  * // "startTime": "my_startTime",
7443
7925
  * // "status": "my_status",
@@ -7570,6 +8052,20 @@ export declare namespace sqladmin_v1beta4 {
7570
8052
  */
7571
8053
  requestBody?: Schema$InstancesDemoteMasterRequest;
7572
8054
  }
8055
+ export interface Params$Resource$Instances$Executesql extends StandardParameters {
8056
+ /**
8057
+ * Required. Database instance ID. This does not include the project ID.
8058
+ */
8059
+ instance?: string;
8060
+ /**
8061
+ * Required. Project ID of the project that contains the instance.
8062
+ */
8063
+ project?: string;
8064
+ /**
8065
+ * Request body metadata
8066
+ */
8067
+ requestBody?: Schema$ExecuteSqlPayload;
8068
+ }
7573
8069
  export interface Params$Resource$Instances$Export extends StandardParameters {
7574
8070
  /**
7575
8071
  * The Cloud SQL instance ID. This doesn't include the project ID.
@@ -7694,6 +8190,20 @@ export declare namespace sqladmin_v1beta4 {
7694
8190
  */
7695
8191
  requestBody?: Schema$PointInTimeRestoreContext;
7696
8192
  }
8193
+ export interface Params$Resource$Instances$Precheckmajorversionupgrade extends StandardParameters {
8194
+ /**
8195
+ * Required. Cloud SQL instance ID. This does not include the project ID.
8196
+ */
8197
+ instance?: string;
8198
+ /**
8199
+ * Required. Project ID of the project that contains the instance.
8200
+ */
8201
+ project?: string;
8202
+ /**
8203
+ * Request body metadata
8204
+ */
8205
+ requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
8206
+ }
7697
8207
  export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
7698
8208
  /**
7699
8209
  * 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.
@@ -7737,6 +8247,10 @@ export declare namespace sqladmin_v1beta4 {
7737
8247
  * Cloud SQL instance ID. This does not include the project ID.
7738
8248
  */
7739
8249
  instance?: string;
8250
+ /**
8251
+ * Optional. Reset SSL mode to use.
8252
+ */
8253
+ mode?: string;
7740
8254
  /**
7741
8255
  * Project ID of the project that contains the instance.
7742
8256
  */
@@ -7860,7 +8374,7 @@ export declare namespace sqladmin_v1beta4 {
7860
8374
  context: APIRequestContext;
7861
8375
  constructor(context: APIRequestContext);
7862
8376
  /**
7863
- * Cancels an instance operation that has been performed on an instance.
8377
+ * Cancels an instance operation that has been performed on an instance. Ordinarily, this method name should be `CancelSqlOperation`.
7864
8378
  * @example
7865
8379
  * ```js
7866
8380
  * // Before running the sample:
@@ -7976,6 +8490,7 @@ export declare namespace sqladmin_v1beta4 {
7976
8490
  * // "kind": "my_kind",
7977
8491
  * // "name": "my_name",
7978
8492
  * // "operationType": "my_operationType",
8493
+ * // "preCheckMajorVersionUpgradeContext": {},
7979
8494
  * // "selfLink": "my_selfLink",
7980
8495
  * // "startTime": "my_startTime",
7981
8496
  * // "status": "my_status",
@@ -8228,11 +8743,14 @@ export declare namespace sqladmin_v1beta4 {
8228
8743
  * instance: 'placeholder-value',
8229
8744
  * // Project ID of the project that contains the instance.
8230
8745
  * project: 'placeholder-value',
8746
+ * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
8747
+ * sourceInstanceDeletionTime: 'placeholder-value',
8231
8748
  * });
8232
8749
  * console.log(res.data);
8233
8750
  *
8234
8751
  * // Example response
8235
8752
  * // {
8753
+ * // "earliestRecoveryTime": "my_earliestRecoveryTime",
8236
8754
  * // "kind": "my_kind",
8237
8755
  * // "latestRecoveryTime": "my_latestRecoveryTime"
8238
8756
  * // }
@@ -8318,6 +8836,7 @@ export declare namespace sqladmin_v1beta4 {
8318
8836
  * // "kind": "my_kind",
8319
8837
  * // "name": "my_name",
8320
8838
  * // "operationType": "my_operationType",
8839
+ * // "preCheckMajorVersionUpgradeContext": {},
8321
8840
  * // "selfLink": "my_selfLink",
8322
8841
  * // "startTime": "my_startTime",
8323
8842
  * // "status": "my_status",
@@ -8409,6 +8928,7 @@ export declare namespace sqladmin_v1beta4 {
8409
8928
  * // "kind": "my_kind",
8410
8929
  * // "name": "my_name",
8411
8930
  * // "operationType": "my_operationType",
8931
+ * // "preCheckMajorVersionUpgradeContext": {},
8412
8932
  * // "selfLink": "my_selfLink",
8413
8933
  * // "startTime": "my_startTime",
8414
8934
  * // "status": "my_status",
@@ -8498,6 +9018,7 @@ export declare namespace sqladmin_v1beta4 {
8498
9018
  * // "kind": "my_kind",
8499
9019
  * // "name": "my_name",
8500
9020
  * // "operationType": "my_operationType",
9021
+ * // "preCheckMajorVersionUpgradeContext": {},
8501
9022
  * // "selfLink": "my_selfLink",
8502
9023
  * // "startTime": "my_startTime",
8503
9024
  * // "status": "my_status",
@@ -8572,6 +9093,7 @@ export declare namespace sqladmin_v1beta4 {
8572
9093
  * // {
8573
9094
  * // "migrationType": "my_migrationType",
8574
9095
  * // "mysqlSyncConfig": {},
9096
+ * // "replicaOverwriteEnabled": false,
8575
9097
  * // "skipVerification": false,
8576
9098
  * // "syncMode": "my_syncMode",
8577
9099
  * // "syncParallelLevel": "my_syncParallelLevel"
@@ -8593,6 +9115,7 @@ export declare namespace sqladmin_v1beta4 {
8593
9115
  * // "kind": "my_kind",
8594
9116
  * // "name": "my_name",
8595
9117
  * // "operationType": "my_operationType",
9118
+ * // "preCheckMajorVersionUpgradeContext": {},
8596
9119
  * // "selfLink": "my_selfLink",
8597
9120
  * // "startTime": "my_startTime",
8598
9121
  * // "status": "my_status",
@@ -8723,6 +9246,10 @@ export declare namespace sqladmin_v1beta4 {
8723
9246
  * Project ID of the project that contains the instance.
8724
9247
  */
8725
9248
  project?: string;
9249
+ /**
9250
+ * The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
9251
+ */
9252
+ sourceInstanceDeletionTime?: string;
8726
9253
  }
8727
9254
  export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
8728
9255
  /**
@@ -8935,6 +9462,7 @@ export declare namespace sqladmin_v1beta4 {
8935
9462
  * // "kind": "my_kind",
8936
9463
  * // "name": "my_name",
8937
9464
  * // "operationType": "my_operationType",
9465
+ * // "preCheckMajorVersionUpgradeContext": {},
8938
9466
  * // "selfLink": "my_selfLink",
8939
9467
  * // "startTime": "my_startTime",
8940
9468
  * // "status": "my_status",
@@ -9383,6 +9911,7 @@ export declare namespace sqladmin_v1beta4 {
9383
9911
  * // "kind": "my_kind",
9384
9912
  * // "name": "my_name",
9385
9913
  * // "operationType": "my_operationType",
9914
+ * // "preCheckMajorVersionUpgradeContext": {},
9386
9915
  * // "selfLink": "my_selfLink",
9387
9916
  * // "startTime": "my_startTime",
9388
9917
  * // "status": "my_status",
@@ -9462,6 +9991,7 @@ export declare namespace sqladmin_v1beta4 {
9462
9991
  * // "dualPasswordType": "my_dualPasswordType",
9463
9992
  * // "etag": "my_etag",
9464
9993
  * // "host": "my_host",
9994
+ * // "iamStatus": "my_iamStatus",
9465
9995
  * // "instance": "my_instance",
9466
9996
  * // "kind": "my_kind",
9467
9997
  * // "name": "my_name",
@@ -9537,6 +10067,7 @@ export declare namespace sqladmin_v1beta4 {
9537
10067
  * // "dualPasswordType": "my_dualPasswordType",
9538
10068
  * // "etag": "my_etag",
9539
10069
  * // "host": "my_host",
10070
+ * // "iamStatus": "my_iamStatus",
9540
10071
  * // "instance": "my_instance",
9541
10072
  * // "kind": "my_kind",
9542
10073
  * // "name": "my_name",
@@ -9563,6 +10094,7 @@ export declare namespace sqladmin_v1beta4 {
9563
10094
  * // "kind": "my_kind",
9564
10095
  * // "name": "my_name",
9565
10096
  * // "operationType": "my_operationType",
10097
+ * // "preCheckMajorVersionUpgradeContext": {},
9566
10098
  * // "selfLink": "my_selfLink",
9567
10099
  * // "startTime": "my_startTime",
9568
10100
  * // "status": "my_status",
@@ -9709,6 +10241,7 @@ export declare namespace sqladmin_v1beta4 {
9709
10241
  * // "dualPasswordType": "my_dualPasswordType",
9710
10242
  * // "etag": "my_etag",
9711
10243
  * // "host": "my_host",
10244
+ * // "iamStatus": "my_iamStatus",
9712
10245
  * // "instance": "my_instance",
9713
10246
  * // "kind": "my_kind",
9714
10247
  * // "name": "my_name",
@@ -9735,6 +10268,7 @@ export declare namespace sqladmin_v1beta4 {
9735
10268
  * // "kind": "my_kind",
9736
10269
  * // "name": "my_name",
9737
10270
  * // "operationType": "my_operationType",
10271
+ * // "preCheckMajorVersionUpgradeContext": {},
9738
10272
  * // "selfLink": "my_selfLink",
9739
10273
  * // "startTime": "my_startTime",
9740
10274
  * // "status": "my_status",