@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.
package/v1.ts CHANGED
@@ -230,7 +230,7 @@ export namespace sqladmin_v1 {
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
  /**
@@ -573,6 +573,23 @@ export namespace sqladmin_v1 {
573
573
  * 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. This field applies to all DB types.
574
574
  */
575
575
  preferredZone?: string | null;
576
+ /**
577
+ * The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
578
+ */
579
+ sourceInstanceDeletionTime?: string | null;
580
+ }
581
+ /**
582
+ * Contains the name and datatype of a column.
583
+ */
584
+ export interface Schema$Column {
585
+ /**
586
+ * Name of the column.
587
+ */
588
+ name?: string | null;
589
+ /**
590
+ * Datatype of the column.
591
+ */
592
+ type?: string | null;
576
593
  }
577
594
  /**
578
595
  * The managed connection pooling configuration.
@@ -586,6 +603,10 @@ export namespace sqladmin_v1 {
586
603
  * Optional. List of connection pool configuration flags.
587
604
  */
588
605
  flags?: Schema$ConnectionPoolFlags[];
606
+ /**
607
+ * Output only. Number of connection poolers.
608
+ */
609
+ poolerCount?: number | null;
589
610
  }
590
611
  /**
591
612
  * Connection pool flags for Cloud SQL instances managed connection pool configuration.
@@ -653,6 +674,10 @@ export namespace sqladmin_v1 {
653
674
  * This is always `sql#connectSettings`.
654
675
  */
655
676
  kind?: string | null;
677
+ /**
678
+ * 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.
679
+ */
680
+ mdxProtocolSupport?: string[] | null;
656
681
  /**
657
682
  * The number of read pool nodes in a read pool.
658
683
  */
@@ -741,10 +766,6 @@ export namespace sqladmin_v1 {
741
766
  * 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.
742
767
  */
743
768
  backendType?: string | null;
744
- /**
745
- * Clears private network settings when the instance is restored.
746
- */
747
- clearNetwork?: boolean | null;
748
769
  /**
749
770
  * Connection name of the Cloud SQL instance used in connection strings.
750
771
  */
@@ -1105,6 +1126,35 @@ export namespace sqladmin_v1 {
1105
1126
  * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
1106
1127
  */
1107
1128
  export interface Schema$Empty {}
1129
+ /**
1130
+ * The request payload used to execute SQL statements.
1131
+ */
1132
+ export interface Schema$ExecuteSqlPayload {
1133
+ /**
1134
+ * 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.
1135
+ */
1136
+ autoIamAuthn?: boolean | null;
1137
+ /**
1138
+ * Optional. Name of the database on which the statement will be executed.
1139
+ */
1140
+ database?: string | null;
1141
+ /**
1142
+ * Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.
1143
+ */
1144
+ partialResultMode?: string | null;
1145
+ /**
1146
+ * Optional. The maximum number of rows returned per SQL statement.
1147
+ */
1148
+ rowLimit?: string | null;
1149
+ /**
1150
+ * Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1151
+ */
1152
+ sqlStatement?: string | null;
1153
+ /**
1154
+ * 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.
1155
+ */
1156
+ user?: string | null;
1157
+ }
1108
1158
  /**
1109
1159
  * Database instance export context.
1110
1160
  */
@@ -1194,6 +1244,19 @@ export namespace sqladmin_v1 {
1194
1244
  */
1195
1245
  settingsVersion?: string | null;
1196
1246
  }
1247
+ /**
1248
+ * Config used to determine the final backup settings for the instance.
1249
+ */
1250
+ export interface Schema$FinalBackupConfig {
1251
+ /**
1252
+ * Whether the final backup is enabled for the instance.
1253
+ */
1254
+ enabled?: boolean | null;
1255
+ /**
1256
+ * 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).
1257
+ */
1258
+ retentionDays?: number | null;
1259
+ }
1197
1260
  /**
1198
1261
  * A flag resource.
1199
1262
  */
@@ -1554,6 +1617,15 @@ export namespace sqladmin_v1 {
1554
1617
  */
1555
1618
  serverCerts?: Schema$SslCert[];
1556
1619
  }
1620
+ /**
1621
+ * Request for Pre-checks for MVU
1622
+ */
1623
+ export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
1624
+ /**
1625
+ * Required. Contains details about the pre-check major version upgrade operation.
1626
+ */
1627
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1628
+ }
1557
1629
  /**
1558
1630
  * Database Instance reencrypt request.
1559
1631
  */
@@ -1579,6 +1651,10 @@ export namespace sqladmin_v1 {
1579
1651
  * Parameters required to perform the restore backup operation.
1580
1652
  */
1581
1653
  restoreBackupContext?: Schema$RestoreBackupContext;
1654
+ /**
1655
+ * 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.
1656
+ */
1657
+ restoreInstanceClearOverridesFieldNames?: string[] | null;
1582
1658
  /**
1583
1659
  * 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.
1584
1660
  */
@@ -1749,6 +1825,28 @@ export namespace sqladmin_v1 {
1749
1825
  */
1750
1826
  updateTrack?: string | null;
1751
1827
  }
1828
+ /**
1829
+ * Represents a notice or warning message from the database.
1830
+ */
1831
+ export interface Schema$Message {
1832
+ /**
1833
+ * 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.
1834
+ */
1835
+ message?: string | null;
1836
+ /**
1837
+ * The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
1838
+ */
1839
+ severity?: string | null;
1840
+ }
1841
+ /**
1842
+ * The additional metadata information regarding the execution of the SQL statements.
1843
+ */
1844
+ export interface Schema$Metadata {
1845
+ /**
1846
+ * The time taken to execute the SQL statements.
1847
+ */
1848
+ sqlStatementExecutionTime?: string | null;
1849
+ }
1752
1850
  /**
1753
1851
  * Read-replica configuration specific to MySQL databases.
1754
1852
  */
@@ -1904,6 +2002,10 @@ export namespace sqladmin_v1 {
1904
2002
  * 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`
1905
2003
  */
1906
2004
  operationType?: string | null;
2005
+ /**
2006
+ * 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).
2007
+ */
2008
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1907
2009
  /**
1908
2010
  * The URI of this resource.
1909
2011
  */
@@ -2074,7 +2176,7 @@ export namespace sqladmin_v1 {
2074
2176
  */
2075
2177
  export interface Schema$PointInTimeRestoreContext {
2076
2178
  /**
2077
- * 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
2179
+ * 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.
2078
2180
  */
2079
2181
  allocatedIpRange?: string | null;
2080
2182
  /**
@@ -2131,6 +2233,40 @@ export namespace sqladmin_v1 {
2131
2233
  */
2132
2234
  state?: string | null;
2133
2235
  }
2236
+ /**
2237
+ * Pre-check major version upgrade context.
2238
+ */
2239
+ export interface Schema$PreCheckMajorVersionUpgradeContext {
2240
+ /**
2241
+ * Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2242
+ */
2243
+ kind?: string | null;
2244
+ /**
2245
+ * Output only. The responses from the precheck operation.
2246
+ */
2247
+ preCheckResponse?: Schema$PreCheckResponse[];
2248
+ /**
2249
+ * Required. The target database version to upgrade to.
2250
+ */
2251
+ targetDatabaseVersion?: string | null;
2252
+ }
2253
+ /**
2254
+ * Structured PreCheckResponse containing message, type, and required actions.
2255
+ */
2256
+ export interface Schema$PreCheckResponse {
2257
+ /**
2258
+ * The actions that the user needs to take. Use repeated for multiple actions.
2259
+ */
2260
+ actionsRequired?: string[] | null;
2261
+ /**
2262
+ * The message to be displayed to the user.
2263
+ */
2264
+ message?: string | null;
2265
+ /**
2266
+ * The type of message whether it is an info, warning, or error.
2267
+ */
2268
+ messageType?: string | null;
2269
+ }
2134
2270
  /**
2135
2271
  * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2136
2272
  */
@@ -2177,6 +2313,60 @@ export namespace sqladmin_v1 {
2177
2313
  */
2178
2314
  pscEnabled?: boolean | null;
2179
2315
  }
2316
+ /**
2317
+ * QueryResult contains the result of executing a single SQL statement.
2318
+ */
2319
+ export interface Schema$QueryResult {
2320
+ /**
2321
+ * List of columns included in the result. This also includes the data type of the column.
2322
+ */
2323
+ columns?: Schema$Column[];
2324
+ /**
2325
+ * Message related to the SQL execution result.
2326
+ */
2327
+ message?: string | null;
2328
+ /**
2329
+ * Set to true if the SQL execution's result is truncated due to size limits.
2330
+ */
2331
+ partialResult?: boolean | null;
2332
+ /**
2333
+ * Rows returned by the SQL statement.
2334
+ */
2335
+ rows?: Schema$Row[];
2336
+ }
2337
+ /**
2338
+ * The read pool auto-scale configuration.
2339
+ */
2340
+ export interface Schema$ReadPoolAutoScaleConfig {
2341
+ /**
2342
+ * Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2343
+ */
2344
+ disableScaleIn?: boolean | null;
2345
+ /**
2346
+ * Indicates whether read pool auto scaling is enabled.
2347
+ */
2348
+ enabled?: boolean | null;
2349
+ /**
2350
+ * Maximum number of read pool nodes to be maintained.
2351
+ */
2352
+ maxNodeCount?: number | null;
2353
+ /**
2354
+ * Minimum number of read pool nodes to be maintained.
2355
+ */
2356
+ minNodeCount?: number | null;
2357
+ /**
2358
+ * The cooldown period for scale-in operations.
2359
+ */
2360
+ scaleInCooldownSeconds?: number | null;
2361
+ /**
2362
+ * The cooldown period for scale-out operations.
2363
+ */
2364
+ scaleOutCooldownSeconds?: number | null;
2365
+ /**
2366
+ * Optional. Target metrics for read pool auto scaling.
2367
+ */
2368
+ targetMetrics?: Schema$TargetMetric[];
2369
+ }
2180
2370
  /**
2181
2371
  * Read-replica configuration for connecting to the primary instance.
2182
2372
  */
@@ -2272,6 +2462,15 @@ export namespace sqladmin_v1 {
2272
2462
  */
2273
2463
  nextVersion?: string | null;
2274
2464
  }
2465
+ /**
2466
+ * Contains the values for a row.
2467
+ */
2468
+ export interface Schema$Row {
2469
+ /**
2470
+ * The values for the row.
2471
+ */
2472
+ values?: Schema$Value[];
2473
+ }
2275
2474
  /**
2276
2475
  * A list of objects that the user selects for replication from an external source instance.
2277
2476
  */
@@ -2373,6 +2572,10 @@ export namespace sqladmin_v1 {
2373
2572
  * 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.
2374
2573
  */
2375
2574
  enableGoogleMlIntegration?: boolean | null;
2575
+ /**
2576
+ * Optional. The final backup configuration for the instance.
2577
+ */
2578
+ finalBackupConfig?: Schema$FinalBackupConfig;
2376
2579
  /**
2377
2580
  * Insights configuration, for now relevant only for Postgres.
2378
2581
  */
@@ -2401,6 +2604,10 @@ export namespace sqladmin_v1 {
2401
2604
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2402
2605
  */
2403
2606
  pricingPlan?: string | null;
2607
+ /**
2608
+ * Optional. The read pool auto-scale configuration for the instance.
2609
+ */
2610
+ readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
2404
2611
  /**
2405
2612
  * Optional. Configuration value for recreation of replica after certain replication lag
2406
2613
  */
@@ -2446,6 +2653,14 @@ export namespace sqladmin_v1 {
2446
2653
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2447
2654
  */
2448
2655
  export interface Schema$SqlActiveDirectoryConfig {
2656
+ /**
2657
+ * Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
2658
+ */
2659
+ adminCredentialSecretName?: string | null;
2660
+ /**
2661
+ * Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
2662
+ */
2663
+ dnsServers?: string[] | null;
2449
2664
  /**
2450
2665
  * The name of the domain (e.g., mydomain.com).
2451
2666
  */
@@ -2454,6 +2669,14 @@ export namespace sqladmin_v1 {
2454
2669
  * This is always sql#activeDirectoryConfig.
2455
2670
  */
2456
2671
  kind?: string | null;
2672
+ /**
2673
+ * Optional. The mode of the Active Directory configuration.
2674
+ */
2675
+ mode?: string | null;
2676
+ /**
2677
+ * Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
2678
+ */
2679
+ organizationalUnit?: string | null;
2457
2680
  }
2458
2681
  /**
2459
2682
  * External primary instance migration setting error/warning.
@@ -2481,6 +2704,23 @@ export namespace sqladmin_v1 {
2481
2704
  */
2482
2705
  operationId?: string | null;
2483
2706
  }
2707
+ /**
2708
+ * Execute SQL statements response.
2709
+ */
2710
+ export interface Schema$SqlInstancesExecuteSqlResponse {
2711
+ /**
2712
+ * 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.
2713
+ */
2714
+ messages?: Schema$Message[];
2715
+ /**
2716
+ * The additional metadata information regarding the execution of the SQL statements.
2717
+ */
2718
+ metadata?: Schema$Metadata;
2719
+ /**
2720
+ * The list of results after executing all the SQL statements.
2721
+ */
2722
+ results?: Schema$QueryResult[];
2723
+ }
2484
2724
  /**
2485
2725
  * Instance get disk shrink config response.
2486
2726
  */
@@ -2502,6 +2742,10 @@ export namespace sqladmin_v1 {
2502
2742
  * Instance get latest recovery time response.
2503
2743
  */
2504
2744
  export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
2745
+ /**
2746
+ * Timestamp, identifies the earliest recovery time of the source instance.
2747
+ */
2748
+ earliestRecoveryTime?: string | null;
2505
2749
  /**
2506
2750
  * This is always `sql#getLatestRecoveryTime`.
2507
2751
  */
@@ -2545,6 +2789,10 @@ export namespace sqladmin_v1 {
2545
2789
  * MySQL-specific settings for start external sync.
2546
2790
  */
2547
2791
  mysqlSyncConfig?: Schema$MySqlSyncConfig;
2792
+ /**
2793
+ * 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.
2794
+ */
2795
+ replicaOverwriteEnabled?: boolean | null;
2548
2796
  /**
2549
2797
  * Whether to skip the verification step (VESS).
2550
2798
  */
@@ -2818,6 +3066,19 @@ export namespace sqladmin_v1 {
2818
3066
  */
2819
3067
  value?: string | null;
2820
3068
  }
3069
+ /**
3070
+ * Target metric for read pool auto scaling.
3071
+ */
3072
+ export interface Schema$TargetMetric {
3073
+ /**
3074
+ * The metric name to be used for auto scaling.
3075
+ */
3076
+ metric?: string | null;
3077
+ /**
3078
+ * The target value for the metric.
3079
+ */
3080
+ targetValue?: number | null;
3081
+ }
2821
3082
  /**
2822
3083
  * A Google Cloud SQL service tier resource.
2823
3084
  */
@@ -2885,6 +3146,10 @@ export namespace sqladmin_v1 {
2885
3146
  * 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.
2886
3147
  */
2887
3148
  host?: string | null;
3149
+ /**
3150
+ * Indicates if a group is active or inactive for IAM database authentication.
3151
+ */
3152
+ iamStatus?: string | null;
2888
3153
  /**
2889
3154
  * 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.
2890
3155
  */
@@ -2957,6 +3222,19 @@ export namespace sqladmin_v1 {
2957
3222
  */
2958
3223
  nextPageToken?: string | null;
2959
3224
  }
3225
+ /**
3226
+ * The cell value of the table.
3227
+ */
3228
+ export interface Schema$Value {
3229
+ /**
3230
+ * If cell value is null, then this flag will be set to true.
3231
+ */
3232
+ nullValue?: boolean | null;
3233
+ /**
3234
+ * The cell value in string format.
3235
+ */
3236
+ value?: string | null;
3237
+ }
2960
3238
 
2961
3239
  export class Resource$Backupruns {
2962
3240
  context: APIRequestContext;
@@ -3020,6 +3298,7 @@ export namespace sqladmin_v1 {
3020
3298
  * // "kind": "my_kind",
3021
3299
  * // "name": "my_name",
3022
3300
  * // "operationType": "my_operationType",
3301
+ * // "preCheckMajorVersionUpgradeContext": {},
3023
3302
  * // "selfLink": "my_selfLink",
3024
3303
  * // "startTime": "my_startTime",
3025
3304
  * // "status": "my_status",
@@ -3367,6 +3646,7 @@ export namespace sqladmin_v1 {
3367
3646
  * // "kind": "my_kind",
3368
3647
  * // "name": "my_name",
3369
3648
  * // "operationType": "my_operationType",
3649
+ * // "preCheckMajorVersionUpgradeContext": {},
3370
3650
  * // "selfLink": "my_selfLink",
3371
3651
  * // "startTime": "my_startTime",
3372
3652
  * // "status": "my_status",
@@ -3773,6 +4053,7 @@ export namespace sqladmin_v1 {
3773
4053
  * // "kind": "my_kind",
3774
4054
  * // "name": "my_name",
3775
4055
  * // "operationType": "my_operationType",
4056
+ * // "preCheckMajorVersionUpgradeContext": {},
3776
4057
  * // "selfLink": "my_selfLink",
3777
4058
  * // "startTime": "my_startTime",
3778
4059
  * // "status": "my_status",
@@ -3931,6 +4212,7 @@ export namespace sqladmin_v1 {
3931
4212
  * // "kind": "my_kind",
3932
4213
  * // "name": "my_name",
3933
4214
  * // "operationType": "my_operationType",
4215
+ * // "preCheckMajorVersionUpgradeContext": {},
3934
4216
  * // "selfLink": "my_selfLink",
3935
4217
  * // "startTime": "my_startTime",
3936
4218
  * // "status": "my_status",
@@ -4427,6 +4709,7 @@ export namespace sqladmin_v1 {
4427
4709
  * // "kind": "my_kind",
4428
4710
  * // "name": "my_name",
4429
4711
  * // "operationType": "my_operationType",
4712
+ * // "preCheckMajorVersionUpgradeContext": {},
4430
4713
  * // "selfLink": "my_selfLink",
4431
4714
  * // "startTime": "my_startTime",
4432
4715
  * // "status": "my_status",
@@ -4810,6 +5093,7 @@ export namespace sqladmin_v1 {
4810
5093
  * // "dnsNames": [],
4811
5094
  * // "ipAddresses": [],
4812
5095
  * // "kind": "my_kind",
5096
+ * // "mdxProtocolSupport": [],
4813
5097
  * // "nodeCount": 0,
4814
5098
  * // "nodes": [],
4815
5099
  * // "pscEnabled": false,
@@ -5007,6 +5291,7 @@ export namespace sqladmin_v1 {
5007
5291
  * // "kind": "my_kind",
5008
5292
  * // "name": "my_name",
5009
5293
  * // "operationType": "my_operationType",
5294
+ * // "preCheckMajorVersionUpgradeContext": {},
5010
5295
  * // "selfLink": "my_selfLink",
5011
5296
  * // "startTime": "my_startTime",
5012
5297
  * // "status": "my_status",
@@ -5333,6 +5618,7 @@ export namespace sqladmin_v1 {
5333
5618
  * // "kind": "my_kind",
5334
5619
  * // "name": "my_name",
5335
5620
  * // "operationType": "my_operationType",
5621
+ * // "preCheckMajorVersionUpgradeContext": {},
5336
5622
  * // "selfLink": "my_selfLink",
5337
5623
  * // "startTime": "my_startTime",
5338
5624
  * // "status": "my_status",
@@ -5652,6 +5938,7 @@ export namespace sqladmin_v1 {
5652
5938
  * // "kind": "my_kind",
5653
5939
  * // "name": "my_name",
5654
5940
  * // "operationType": "my_operationType",
5941
+ * // "preCheckMajorVersionUpgradeContext": {},
5655
5942
  * // "selfLink": "my_selfLink",
5656
5943
  * // "startTime": "my_startTime",
5657
5944
  * // "status": "my_status",
@@ -5829,6 +6116,7 @@ export namespace sqladmin_v1 {
5829
6116
  * // "kind": "my_kind",
5830
6117
  * // "name": "my_name",
5831
6118
  * // "operationType": "my_operationType",
6119
+ * // "preCheckMajorVersionUpgradeContext": {},
5832
6120
  * // "selfLink": "my_selfLink",
5833
6121
  * // "startTime": "my_startTime",
5834
6122
  * // "status": "my_status",
@@ -6404,6 +6692,7 @@ export namespace sqladmin_v1 {
6404
6692
  * // "kind": "my_kind",
6405
6693
  * // "name": "my_name",
6406
6694
  * // "operationType": "my_operationType",
6695
+ * // "preCheckMajorVersionUpgradeContext": {},
6407
6696
  * // "selfLink": "my_selfLink",
6408
6697
  * // "startTime": "my_startTime",
6409
6698
  * // "status": "my_status",
@@ -6564,6 +6853,7 @@ export namespace sqladmin_v1 {
6564
6853
  * // "kind": "my_kind",
6565
6854
  * // "name": "my_name",
6566
6855
  * // "operationType": "my_operationType",
6856
+ * // "preCheckMajorVersionUpgradeContext": {},
6567
6857
  * // "selfLink": "my_selfLink",
6568
6858
  * // "startTime": "my_startTime",
6569
6859
  * // "status": "my_status",
@@ -6734,6 +7024,7 @@ export namespace sqladmin_v1 {
6734
7024
  * // "kind": "my_kind",
6735
7025
  * // "name": "my_name",
6736
7026
  * // "operationType": "my_operationType",
7027
+ * // "preCheckMajorVersionUpgradeContext": {},
6737
7028
  * // "selfLink": "my_selfLink",
6738
7029
  * // "startTime": "my_startTime",
6739
7030
  * // "status": "my_status",
@@ -6900,6 +7191,7 @@ export namespace sqladmin_v1 {
6900
7191
  * // "kind": "my_kind",
6901
7192
  * // "name": "my_name",
6902
7193
  * // "operationType": "my_operationType",
7194
+ * // "preCheckMajorVersionUpgradeContext": {},
6903
7195
  * // "selfLink": "my_selfLink",
6904
7196
  * // "startTime": "my_startTime",
6905
7197
  * // "status": "my_status",
@@ -7066,6 +7358,7 @@ export namespace sqladmin_v1 {
7066
7358
  * // "kind": "my_kind",
7067
7359
  * // "name": "my_name",
7068
7360
  * // "operationType": "my_operationType",
7361
+ * // "preCheckMajorVersionUpgradeContext": {},
7069
7362
  * // "selfLink": "my_selfLink",
7070
7363
  * // "startTime": "my_startTime",
7071
7364
  * // "status": "my_status",
@@ -7232,6 +7525,7 @@ export namespace sqladmin_v1 {
7232
7525
  * // "kind": "my_kind",
7233
7526
  * // "name": "my_name",
7234
7527
  * // "operationType": "my_operationType",
7528
+ * // "preCheckMajorVersionUpgradeContext": {},
7235
7529
  * // "selfLink": "my_selfLink",
7236
7530
  * // "startTime": "my_startTime",
7237
7531
  * // "status": "my_status",
@@ -7338,6 +7632,168 @@ export namespace sqladmin_v1 {
7338
7632
  }
7339
7633
  }
7340
7634
 
7635
+ /**
7636
+ * Execute SQL statements.
7637
+ * @example
7638
+ * ```js
7639
+ * // Before running the sample:
7640
+ * // - Enable the API at:
7641
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7642
+ * // - Login into gcloud by running:
7643
+ * // ```sh
7644
+ * // $ gcloud auth application-default login
7645
+ * // ```
7646
+ * // - Install the npm module by running:
7647
+ * // ```sh
7648
+ * // $ npm install googleapis
7649
+ * // ```
7650
+ *
7651
+ * const {google} = require('googleapis');
7652
+ * const sqladmin = google.sqladmin('v1');
7653
+ *
7654
+ * async function main() {
7655
+ * const auth = new google.auth.GoogleAuth({
7656
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7657
+ * scopes: [
7658
+ * 'https://www.googleapis.com/auth/cloud-platform',
7659
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
7660
+ * ],
7661
+ * });
7662
+ *
7663
+ * // Acquire an auth client, and bind it to all future calls
7664
+ * const authClient = await auth.getClient();
7665
+ * google.options({auth: authClient});
7666
+ *
7667
+ * // Do the magic
7668
+ * const res = await sql.instances.executeSql({
7669
+ * // Required. Database instance ID. This does not include the project ID.
7670
+ * instance: 'placeholder-value',
7671
+ * // Required. Project ID of the project that contains the instance.
7672
+ * project: 'placeholder-value',
7673
+ *
7674
+ * // Request body metadata
7675
+ * requestBody: {
7676
+ * // request body parameters
7677
+ * // {
7678
+ * // "autoIamAuthn": false,
7679
+ * // "database": "my_database",
7680
+ * // "partialResultMode": "my_partialResultMode",
7681
+ * // "rowLimit": "my_rowLimit",
7682
+ * // "sqlStatement": "my_sqlStatement",
7683
+ * // "user": "my_user"
7684
+ * // }
7685
+ * },
7686
+ * });
7687
+ * console.log(res.data);
7688
+ *
7689
+ * // Example response
7690
+ * // {
7691
+ * // "messages": [],
7692
+ * // "metadata": {},
7693
+ * // "results": []
7694
+ * // }
7695
+ * }
7696
+ *
7697
+ * main().catch(e => {
7698
+ * console.error(e);
7699
+ * throw e;
7700
+ * });
7701
+ *
7702
+ * ```
7703
+ *
7704
+ * @param params - Parameters for request
7705
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7706
+ * @param callback - Optional callback that handles the response.
7707
+ * @returns A promise if used with async/await, or void if used with a callback.
7708
+ */
7709
+ executeSql(
7710
+ params: Params$Resource$Instances$Executesql,
7711
+ options: StreamMethodOptions
7712
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7713
+ executeSql(
7714
+ params?: Params$Resource$Instances$Executesql,
7715
+ options?: MethodOptions
7716
+ ): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
7717
+ executeSql(
7718
+ params: Params$Resource$Instances$Executesql,
7719
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7720
+ callback: BodyResponseCallback<Readable>
7721
+ ): void;
7722
+ executeSql(
7723
+ params: Params$Resource$Instances$Executesql,
7724
+ options:
7725
+ | MethodOptions
7726
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>,
7727
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7728
+ ): void;
7729
+ executeSql(
7730
+ params: Params$Resource$Instances$Executesql,
7731
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7732
+ ): void;
7733
+ executeSql(
7734
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7735
+ ): void;
7736
+ executeSql(
7737
+ paramsOrCallback?:
7738
+ | Params$Resource$Instances$Executesql
7739
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7740
+ | BodyResponseCallback<Readable>,
7741
+ optionsOrCallback?:
7742
+ | MethodOptions
7743
+ | StreamMethodOptions
7744
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7745
+ | BodyResponseCallback<Readable>,
7746
+ callback?:
7747
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7748
+ | BodyResponseCallback<Readable>
7749
+ ):
7750
+ | void
7751
+ | Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>
7752
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7753
+ let params = (paramsOrCallback ||
7754
+ {}) as Params$Resource$Instances$Executesql;
7755
+ let options = (optionsOrCallback || {}) as MethodOptions;
7756
+
7757
+ if (typeof paramsOrCallback === 'function') {
7758
+ callback = paramsOrCallback;
7759
+ params = {} as Params$Resource$Instances$Executesql;
7760
+ options = {};
7761
+ }
7762
+
7763
+ if (typeof optionsOrCallback === 'function') {
7764
+ callback = optionsOrCallback;
7765
+ options = {};
7766
+ }
7767
+
7768
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
7769
+ const parameters = {
7770
+ options: Object.assign(
7771
+ {
7772
+ url: (
7773
+ rootUrl + '/v1/projects/{project}/instances/{instance}/executeSql'
7774
+ ).replace(/([^:]\/)\/+/g, '$1'),
7775
+ method: 'POST',
7776
+ apiVersion: '',
7777
+ },
7778
+ options
7779
+ ),
7780
+ params,
7781
+ requiredParams: ['project', 'instance'],
7782
+ pathParams: ['instance', 'project'],
7783
+ context: this.context,
7784
+ };
7785
+ if (callback) {
7786
+ createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
7787
+ parameters,
7788
+ callback as BodyResponseCallback<unknown>
7789
+ );
7790
+ } else {
7791
+ return createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
7792
+ parameters
7793
+ );
7794
+ }
7795
+ }
7796
+
7341
7797
  /**
7342
7798
  * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
7343
7799
  * @example
@@ -7397,6 +7853,7 @@ export namespace sqladmin_v1 {
7397
7853
  * // "kind": "my_kind",
7398
7854
  * // "name": "my_name",
7399
7855
  * // "operationType": "my_operationType",
7856
+ * // "preCheckMajorVersionUpgradeContext": {},
7400
7857
  * // "selfLink": "my_selfLink",
7401
7858
  * // "startTime": "my_startTime",
7402
7859
  * // "status": "my_status",
@@ -7563,6 +8020,7 @@ export namespace sqladmin_v1 {
7563
8020
  * // "kind": "my_kind",
7564
8021
  * // "name": "my_name",
7565
8022
  * // "operationType": "my_operationType",
8023
+ * // "preCheckMajorVersionUpgradeContext": {},
7566
8024
  * // "selfLink": "my_selfLink",
7567
8025
  * // "startTime": "my_startTime",
7568
8026
  * // "status": "my_status",
@@ -7713,7 +8171,6 @@ export namespace sqladmin_v1 {
7713
8171
  * // {
7714
8172
  * // "availableMaintenanceVersions": [],
7715
8173
  * // "backendType": "my_backendType",
7716
- * // "clearNetwork": false,
7717
8174
  * // "connectionName": "my_connectionName",
7718
8175
  * // "createTime": "my_createTime",
7719
8176
  * // "currentDiskSize": "my_currentDiskSize",
@@ -7918,6 +8375,7 @@ export namespace sqladmin_v1 {
7918
8375
  * // "kind": "my_kind",
7919
8376
  * // "name": "my_name",
7920
8377
  * // "operationType": "my_operationType",
8378
+ * // "preCheckMajorVersionUpgradeContext": {},
7921
8379
  * // "selfLink": "my_selfLink",
7922
8380
  * // "startTime": "my_startTime",
7923
8381
  * // "status": "my_status",
@@ -8065,7 +8523,6 @@ export namespace sqladmin_v1 {
8065
8523
  * // {
8066
8524
  * // "availableMaintenanceVersions": [],
8067
8525
  * // "backendType": "my_backendType",
8068
- * // "clearNetwork": false,
8069
8526
  * // "connectionName": "my_connectionName",
8070
8527
  * // "createTime": "my_createTime",
8071
8528
  * // "currentDiskSize": "my_currentDiskSize",
@@ -8133,6 +8590,7 @@ export namespace sqladmin_v1 {
8133
8590
  * // "kind": "my_kind",
8134
8591
  * // "name": "my_name",
8135
8592
  * // "operationType": "my_operationType",
8593
+ * // "preCheckMajorVersionUpgradeContext": {},
8136
8594
  * // "selfLink": "my_selfLink",
8137
8595
  * // "startTime": "my_startTime",
8138
8596
  * // "status": "my_status",
@@ -8738,7 +9196,6 @@ export namespace sqladmin_v1 {
8738
9196
  * // {
8739
9197
  * // "availableMaintenanceVersions": [],
8740
9198
  * // "backendType": "my_backendType",
8741
- * // "clearNetwork": false,
8742
9199
  * // "connectionName": "my_connectionName",
8743
9200
  * // "createTime": "my_createTime",
8744
9201
  * // "currentDiskSize": "my_currentDiskSize",
@@ -8806,6 +9263,7 @@ export namespace sqladmin_v1 {
8806
9263
  * // "kind": "my_kind",
8807
9264
  * // "name": "my_name",
8808
9265
  * // "operationType": "my_operationType",
9266
+ * // "preCheckMajorVersionUpgradeContext": {},
8809
9267
  * // "selfLink": "my_selfLink",
8810
9268
  * // "startTime": "my_startTime",
8811
9269
  * // "status": "my_status",
@@ -8976,6 +9434,7 @@ export namespace sqladmin_v1 {
8976
9434
  * // "kind": "my_kind",
8977
9435
  * // "name": "my_name",
8978
9436
  * // "operationType": "my_operationType",
9437
+ * // "preCheckMajorVersionUpgradeContext": {},
8979
9438
  * // "selfLink": "my_selfLink",
8980
9439
  * // "startTime": "my_startTime",
8981
9440
  * // "status": "my_status",
@@ -9082,6 +9541,177 @@ export namespace sqladmin_v1 {
9082
9541
  }
9083
9542
  }
9084
9543
 
9544
+ /**
9545
+ * Execute MVU Pre-checks
9546
+ * @example
9547
+ * ```js
9548
+ * // Before running the sample:
9549
+ * // - Enable the API at:
9550
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9551
+ * // - Login into gcloud by running:
9552
+ * // ```sh
9553
+ * // $ gcloud auth application-default login
9554
+ * // ```
9555
+ * // - Install the npm module by running:
9556
+ * // ```sh
9557
+ * // $ npm install googleapis
9558
+ * // ```
9559
+ *
9560
+ * const {google} = require('googleapis');
9561
+ * const sqladmin = google.sqladmin('v1');
9562
+ *
9563
+ * async function main() {
9564
+ * const auth = new google.auth.GoogleAuth({
9565
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9566
+ * scopes: [
9567
+ * 'https://www.googleapis.com/auth/cloud-platform',
9568
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
9569
+ * ],
9570
+ * });
9571
+ *
9572
+ * // Acquire an auth client, and bind it to all future calls
9573
+ * const authClient = await auth.getClient();
9574
+ * google.options({auth: authClient});
9575
+ *
9576
+ * // Do the magic
9577
+ * const res = await sql.instances.preCheckMajorVersionUpgrade({
9578
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
9579
+ * instance: 'placeholder-value',
9580
+ * // Required. Project ID of the project that contains the instance.
9581
+ * project: 'placeholder-value',
9582
+ *
9583
+ * // Request body metadata
9584
+ * requestBody: {
9585
+ * // request body parameters
9586
+ * // {
9587
+ * // "preCheckMajorVersionUpgradeContext": {}
9588
+ * // }
9589
+ * },
9590
+ * });
9591
+ * console.log(res.data);
9592
+ *
9593
+ * // Example response
9594
+ * // {
9595
+ * // "acquireSsrsLeaseContext": {},
9596
+ * // "apiWarning": {},
9597
+ * // "backupContext": {},
9598
+ * // "endTime": "my_endTime",
9599
+ * // "error": {},
9600
+ * // "exportContext": {},
9601
+ * // "importContext": {},
9602
+ * // "insertTime": "my_insertTime",
9603
+ * // "kind": "my_kind",
9604
+ * // "name": "my_name",
9605
+ * // "operationType": "my_operationType",
9606
+ * // "preCheckMajorVersionUpgradeContext": {},
9607
+ * // "selfLink": "my_selfLink",
9608
+ * // "startTime": "my_startTime",
9609
+ * // "status": "my_status",
9610
+ * // "subOperationType": {},
9611
+ * // "targetId": "my_targetId",
9612
+ * // "targetLink": "my_targetLink",
9613
+ * // "targetProject": "my_targetProject",
9614
+ * // "user": "my_user"
9615
+ * // }
9616
+ * }
9617
+ *
9618
+ * main().catch(e => {
9619
+ * console.error(e);
9620
+ * throw e;
9621
+ * });
9622
+ *
9623
+ * ```
9624
+ *
9625
+ * @param params - Parameters for request
9626
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9627
+ * @param callback - Optional callback that handles the response.
9628
+ * @returns A promise if used with async/await, or void if used with a callback.
9629
+ */
9630
+ preCheckMajorVersionUpgrade(
9631
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9632
+ options: StreamMethodOptions
9633
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9634
+ preCheckMajorVersionUpgrade(
9635
+ params?: Params$Resource$Instances$Precheckmajorversionupgrade,
9636
+ options?: MethodOptions
9637
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9638
+ preCheckMajorVersionUpgrade(
9639
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9640
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9641
+ callback: BodyResponseCallback<Readable>
9642
+ ): void;
9643
+ preCheckMajorVersionUpgrade(
9644
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9645
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9646
+ callback: BodyResponseCallback<Schema$Operation>
9647
+ ): void;
9648
+ preCheckMajorVersionUpgrade(
9649
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9650
+ callback: BodyResponseCallback<Schema$Operation>
9651
+ ): void;
9652
+ preCheckMajorVersionUpgrade(
9653
+ callback: BodyResponseCallback<Schema$Operation>
9654
+ ): void;
9655
+ preCheckMajorVersionUpgrade(
9656
+ paramsOrCallback?:
9657
+ | Params$Resource$Instances$Precheckmajorversionupgrade
9658
+ | BodyResponseCallback<Schema$Operation>
9659
+ | BodyResponseCallback<Readable>,
9660
+ optionsOrCallback?:
9661
+ | MethodOptions
9662
+ | StreamMethodOptions
9663
+ | BodyResponseCallback<Schema$Operation>
9664
+ | BodyResponseCallback<Readable>,
9665
+ callback?:
9666
+ | BodyResponseCallback<Schema$Operation>
9667
+ | BodyResponseCallback<Readable>
9668
+ ):
9669
+ | void
9670
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9671
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9672
+ let params = (paramsOrCallback ||
9673
+ {}) as Params$Resource$Instances$Precheckmajorversionupgrade;
9674
+ let options = (optionsOrCallback || {}) as MethodOptions;
9675
+
9676
+ if (typeof paramsOrCallback === 'function') {
9677
+ callback = paramsOrCallback;
9678
+ params = {} as Params$Resource$Instances$Precheckmajorversionupgrade;
9679
+ options = {};
9680
+ }
9681
+
9682
+ if (typeof optionsOrCallback === 'function') {
9683
+ callback = optionsOrCallback;
9684
+ options = {};
9685
+ }
9686
+
9687
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
9688
+ const parameters = {
9689
+ options: Object.assign(
9690
+ {
9691
+ url: (
9692
+ rootUrl +
9693
+ '/v1/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade'
9694
+ ).replace(/([^:]\/)\/+/g, '$1'),
9695
+ method: 'POST',
9696
+ apiVersion: '',
9697
+ },
9698
+ options
9699
+ ),
9700
+ params,
9701
+ requiredParams: ['project', 'instance'],
9702
+ pathParams: ['instance', 'project'],
9703
+ context: this.context,
9704
+ };
9705
+ if (callback) {
9706
+ createAPIRequest<Schema$Operation>(
9707
+ parameters,
9708
+ callback as BodyResponseCallback<unknown>
9709
+ );
9710
+ } else {
9711
+ return createAPIRequest<Schema$Operation>(parameters);
9712
+ }
9713
+ }
9714
+
9085
9715
  /**
9086
9716
  * Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
9087
9717
  * @example
@@ -9138,6 +9768,7 @@ export namespace sqladmin_v1 {
9138
9768
  * // "kind": "my_kind",
9139
9769
  * // "name": "my_name",
9140
9770
  * // "operationType": "my_operationType",
9771
+ * // "preCheckMajorVersionUpgradeContext": {},
9141
9772
  * // "selfLink": "my_selfLink",
9142
9773
  * // "startTime": "my_startTime",
9143
9774
  * // "status": "my_status",
@@ -9306,6 +9937,7 @@ export namespace sqladmin_v1 {
9306
9937
  * // "kind": "my_kind",
9307
9938
  * // "name": "my_name",
9308
9939
  * // "operationType": "my_operationType",
9940
+ * // "preCheckMajorVersionUpgradeContext": {},
9309
9941
  * // "selfLink": "my_selfLink",
9310
9942
  * // "startTime": "my_startTime",
9311
9943
  * // "status": "my_status",
@@ -9599,6 +10231,8 @@ export namespace sqladmin_v1 {
9599
10231
  * const res = await sql.instances.resetSslConfig({
9600
10232
  * // Cloud SQL instance ID. This does not include the project ID.
9601
10233
  * instance: 'placeholder-value',
10234
+ * // Optional. Reset SSL mode to use.
10235
+ * mode: 'placeholder-value',
9602
10236
  * // Project ID of the project that contains the instance.
9603
10237
  * project: 'placeholder-value',
9604
10238
  * });
@@ -9617,6 +10251,7 @@ export namespace sqladmin_v1 {
9617
10251
  * // "kind": "my_kind",
9618
10252
  * // "name": "my_name",
9619
10253
  * // "operationType": "my_operationType",
10254
+ * // "preCheckMajorVersionUpgradeContext": {},
9620
10255
  * // "selfLink": "my_selfLink",
9621
10256
  * // "startTime": "my_startTime",
9622
10257
  * // "status": "my_status",
@@ -9777,6 +10412,7 @@ export namespace sqladmin_v1 {
9777
10412
  * // "kind": "my_kind",
9778
10413
  * // "name": "my_name",
9779
10414
  * // "operationType": "my_operationType",
10415
+ * // "preCheckMajorVersionUpgradeContext": {},
9780
10416
  * // "selfLink": "my_selfLink",
9781
10417
  * // "startTime": "my_startTime",
9782
10418
  * // "status": "my_status",
@@ -9928,6 +10564,7 @@ export namespace sqladmin_v1 {
9928
10564
  * // "backup": "my_backup",
9929
10565
  * // "backupdrBackup": "my_backupdrBackup",
9930
10566
  * // "restoreBackupContext": {},
10567
+ * // "restoreInstanceClearOverridesFieldNames": [],
9931
10568
  * // "restoreInstanceSettings": {}
9932
10569
  * // }
9933
10570
  * },
@@ -9947,6 +10584,7 @@ export namespace sqladmin_v1 {
9947
10584
  * // "kind": "my_kind",
9948
10585
  * // "name": "my_name",
9949
10586
  * // "operationType": "my_operationType",
10587
+ * // "preCheckMajorVersionUpgradeContext": {},
9950
10588
  * // "selfLink": "my_selfLink",
9951
10589
  * // "startTime": "my_startTime",
9952
10590
  * // "status": "my_status",
@@ -10115,6 +10753,7 @@ export namespace sqladmin_v1 {
10115
10753
  * // "kind": "my_kind",
10116
10754
  * // "name": "my_name",
10117
10755
  * // "operationType": "my_operationType",
10756
+ * // "preCheckMajorVersionUpgradeContext": {},
10118
10757
  * // "selfLink": "my_selfLink",
10119
10758
  * // "startTime": "my_startTime",
10120
10759
  * // "status": "my_status",
@@ -10283,6 +10922,7 @@ export namespace sqladmin_v1 {
10283
10922
  * // "kind": "my_kind",
10284
10923
  * // "name": "my_name",
10285
10924
  * // "operationType": "my_operationType",
10925
+ * // "preCheckMajorVersionUpgradeContext": {},
10286
10926
  * // "selfLink": "my_selfLink",
10287
10927
  * // "startTime": "my_startTime",
10288
10928
  * // "status": "my_status",
@@ -10445,6 +11085,7 @@ export namespace sqladmin_v1 {
10445
11085
  * // "kind": "my_kind",
10446
11086
  * // "name": "my_name",
10447
11087
  * // "operationType": "my_operationType",
11088
+ * // "preCheckMajorVersionUpgradeContext": {},
10448
11089
  * // "selfLink": "my_selfLink",
10449
11090
  * // "startTime": "my_startTime",
10450
11091
  * // "status": "my_status",
@@ -10605,6 +11246,7 @@ export namespace sqladmin_v1 {
10605
11246
  * // "kind": "my_kind",
10606
11247
  * // "name": "my_name",
10607
11248
  * // "operationType": "my_operationType",
11249
+ * // "preCheckMajorVersionUpgradeContext": {},
10608
11250
  * // "selfLink": "my_selfLink",
10609
11251
  * // "startTime": "my_startTime",
10610
11252
  * // "status": "my_status",
@@ -10767,6 +11409,7 @@ export namespace sqladmin_v1 {
10767
11409
  * // "kind": "my_kind",
10768
11410
  * // "name": "my_name",
10769
11411
  * // "operationType": "my_operationType",
11412
+ * // "preCheckMajorVersionUpgradeContext": {},
10770
11413
  * // "selfLink": "my_selfLink",
10771
11414
  * // "startTime": "my_startTime",
10772
11415
  * // "status": "my_status",
@@ -10934,6 +11577,7 @@ export namespace sqladmin_v1 {
10934
11577
  * // "kind": "my_kind",
10935
11578
  * // "name": "my_name",
10936
11579
  * // "operationType": "my_operationType",
11580
+ * // "preCheckMajorVersionUpgradeContext": {},
10937
11581
  * // "selfLink": "my_selfLink",
10938
11582
  * // "startTime": "my_startTime",
10939
11583
  * // "status": "my_status",
@@ -11085,7 +11729,6 @@ export namespace sqladmin_v1 {
11085
11729
  * // {
11086
11730
  * // "availableMaintenanceVersions": [],
11087
11731
  * // "backendType": "my_backendType",
11088
- * // "clearNetwork": false,
11089
11732
  * // "connectionName": "my_connectionName",
11090
11733
  * // "createTime": "my_createTime",
11091
11734
  * // "currentDiskSize": "my_currentDiskSize",
@@ -11153,6 +11796,7 @@ export namespace sqladmin_v1 {
11153
11796
  * // "kind": "my_kind",
11154
11797
  * // "name": "my_name",
11155
11798
  * // "operationType": "my_operationType",
11799
+ * // "preCheckMajorVersionUpgradeContext": {},
11156
11800
  * // "selfLink": "my_selfLink",
11157
11801
  * // "startTime": "my_startTime",
11158
11802
  * // "status": "my_status",
@@ -11368,6 +12012,22 @@ export namespace sqladmin_v1 {
11368
12012
  */
11369
12013
  requestBody?: Schema$InstancesDemoteMasterRequest;
11370
12014
  }
12015
+ export interface Params$Resource$Instances$Executesql
12016
+ extends StandardParameters {
12017
+ /**
12018
+ * Required. Database instance ID. This does not include the project ID.
12019
+ */
12020
+ instance?: string;
12021
+ /**
12022
+ * Required. Project ID of the project that contains the instance.
12023
+ */
12024
+ project?: string;
12025
+
12026
+ /**
12027
+ * Request body metadata
12028
+ */
12029
+ requestBody?: Schema$ExecuteSqlPayload;
12030
+ }
11371
12031
  export interface Params$Resource$Instances$Export extends StandardParameters {
11372
12032
  /**
11373
12033
  * Cloud SQL instance ID. This does not include the project ID.
@@ -11502,6 +12162,22 @@ export namespace sqladmin_v1 {
11502
12162
  */
11503
12163
  requestBody?: Schema$PointInTimeRestoreContext;
11504
12164
  }
12165
+ export interface Params$Resource$Instances$Precheckmajorversionupgrade
12166
+ extends StandardParameters {
12167
+ /**
12168
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12169
+ */
12170
+ instance?: string;
12171
+ /**
12172
+ * Required. Project ID of the project that contains the instance.
12173
+ */
12174
+ project?: string;
12175
+
12176
+ /**
12177
+ * Request body metadata
12178
+ */
12179
+ requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
12180
+ }
11505
12181
  export interface Params$Resource$Instances$Promotereplica
11506
12182
  extends StandardParameters {
11507
12183
  /**
@@ -11550,6 +12226,10 @@ export namespace sqladmin_v1 {
11550
12226
  * Cloud SQL instance ID. This does not include the project ID.
11551
12227
  */
11552
12228
  instance?: string;
12229
+ /**
12230
+ * Optional. Reset SSL mode to use.
12231
+ */
12232
+ mode?: string;
11553
12233
  /**
11554
12234
  * Project ID of the project that contains the instance.
11555
12235
  */
@@ -11882,6 +12562,7 @@ export namespace sqladmin_v1 {
11882
12562
  * // "kind": "my_kind",
11883
12563
  * // "name": "my_name",
11884
12564
  * // "operationType": "my_operationType",
12565
+ * // "preCheckMajorVersionUpgradeContext": {},
11885
12566
  * // "selfLink": "my_selfLink",
11886
12567
  * // "startTime": "my_startTime",
11887
12568
  * // "status": "my_status",
@@ -12383,11 +13064,14 @@ export namespace sqladmin_v1 {
12383
13064
  * instance: 'placeholder-value',
12384
13065
  * // Project ID of the project that contains the instance.
12385
13066
  * project: 'placeholder-value',
13067
+ * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
13068
+ * sourceInstanceDeletionTime: 'placeholder-value',
12386
13069
  * });
12387
13070
  * console.log(res.data);
12388
13071
  *
12389
13072
  * // Example response
12390
13073
  * // {
13074
+ * // "earliestRecoveryTime": "my_earliestRecoveryTime",
12391
13075
  * // "kind": "my_kind",
12392
13076
  * // "latestRecoveryTime": "my_latestRecoveryTime"
12393
13077
  * // }
@@ -12560,6 +13244,7 @@ export namespace sqladmin_v1 {
12560
13244
  * // "kind": "my_kind",
12561
13245
  * // "name": "my_name",
12562
13246
  * // "operationType": "my_operationType",
13247
+ * // "preCheckMajorVersionUpgradeContext": {},
12563
13248
  * // "selfLink": "my_selfLink",
12564
13249
  * // "startTime": "my_startTime",
12565
13250
  * // "status": "my_status",
@@ -12728,6 +13413,7 @@ export namespace sqladmin_v1 {
12728
13413
  * // "kind": "my_kind",
12729
13414
  * // "name": "my_name",
12730
13415
  * // "operationType": "my_operationType",
13416
+ * // "preCheckMajorVersionUpgradeContext": {},
12731
13417
  * // "selfLink": "my_selfLink",
12732
13418
  * // "startTime": "my_startTime",
12733
13419
  * // "status": "my_status",
@@ -12896,6 +13582,7 @@ export namespace sqladmin_v1 {
12896
13582
  * // "kind": "my_kind",
12897
13583
  * // "name": "my_name",
12898
13584
  * // "operationType": "my_operationType",
13585
+ * // "preCheckMajorVersionUpgradeContext": {},
12899
13586
  * // "selfLink": "my_selfLink",
12900
13587
  * // "startTime": "my_startTime",
12901
13588
  * // "status": "my_status",
@@ -13047,6 +13734,7 @@ export namespace sqladmin_v1 {
13047
13734
  * // {
13048
13735
  * // "migrationType": "my_migrationType",
13049
13736
  * // "mysqlSyncConfig": {},
13737
+ * // "replicaOverwriteEnabled": false,
13050
13738
  * // "skipVerification": false,
13051
13739
  * // "syncMode": "my_syncMode",
13052
13740
  * // "syncParallelLevel": "my_syncParallelLevel"
@@ -13068,6 +13756,7 @@ export namespace sqladmin_v1 {
13068
13756
  * // "kind": "my_kind",
13069
13757
  * // "name": "my_name",
13070
13758
  * // "operationType": "my_operationType",
13759
+ * // "preCheckMajorVersionUpgradeContext": {},
13071
13760
  * // "selfLink": "my_selfLink",
13072
13761
  * // "startTime": "my_startTime",
13073
13762
  * // "status": "my_status",
@@ -13365,6 +14054,10 @@ export namespace sqladmin_v1 {
13365
14054
  * Project ID of the project that contains the instance.
13366
14055
  */
13367
14056
  project?: string;
14057
+ /**
14058
+ * The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
14059
+ */
14060
+ sourceInstanceDeletionTime?: string;
13368
14061
  }
13369
14062
  export interface Params$Resource$Projects$Instances$Performdiskshrink
13370
14063
  extends StandardParameters {
@@ -13668,6 +14361,7 @@ export namespace sqladmin_v1 {
13668
14361
  * // "kind": "my_kind",
13669
14362
  * // "name": "my_name",
13670
14363
  * // "operationType": "my_operationType",
14364
+ * // "preCheckMajorVersionUpgradeContext": {},
13671
14365
  * // "selfLink": "my_selfLink",
13672
14366
  * // "startTime": "my_startTime",
13673
14367
  * // "status": "my_status",
@@ -14509,6 +15203,7 @@ export namespace sqladmin_v1 {
14509
15203
  * // "kind": "my_kind",
14510
15204
  * // "name": "my_name",
14511
15205
  * // "operationType": "my_operationType",
15206
+ * // "preCheckMajorVersionUpgradeContext": {},
14512
15207
  * // "selfLink": "my_selfLink",
14513
15208
  * // "startTime": "my_startTime",
14514
15209
  * // "status": "my_status",
@@ -14663,6 +15358,7 @@ export namespace sqladmin_v1 {
14663
15358
  * // "dualPasswordType": "my_dualPasswordType",
14664
15359
  * // "etag": "my_etag",
14665
15360
  * // "host": "my_host",
15361
+ * // "iamStatus": "my_iamStatus",
14666
15362
  * // "instance": "my_instance",
14667
15363
  * // "kind": "my_kind",
14668
15364
  * // "name": "my_name",
@@ -14814,6 +15510,7 @@ export namespace sqladmin_v1 {
14814
15510
  * // "dualPasswordType": "my_dualPasswordType",
14815
15511
  * // "etag": "my_etag",
14816
15512
  * // "host": "my_host",
15513
+ * // "iamStatus": "my_iamStatus",
14817
15514
  * // "instance": "my_instance",
14818
15515
  * // "kind": "my_kind",
14819
15516
  * // "name": "my_name",
@@ -14840,6 +15537,7 @@ export namespace sqladmin_v1 {
14840
15537
  * // "kind": "my_kind",
14841
15538
  * // "name": "my_name",
14842
15539
  * // "operationType": "my_operationType",
15540
+ * // "preCheckMajorVersionUpgradeContext": {},
14843
15541
  * // "selfLink": "my_selfLink",
14844
15542
  * // "startTime": "my_startTime",
14845
15543
  * // "status": "my_status",
@@ -15136,6 +15834,7 @@ export namespace sqladmin_v1 {
15136
15834
  * // "dualPasswordType": "my_dualPasswordType",
15137
15835
  * // "etag": "my_etag",
15138
15836
  * // "host": "my_host",
15837
+ * // "iamStatus": "my_iamStatus",
15139
15838
  * // "instance": "my_instance",
15140
15839
  * // "kind": "my_kind",
15141
15840
  * // "name": "my_name",
@@ -15162,6 +15861,7 @@ export namespace sqladmin_v1 {
15162
15861
  * // "kind": "my_kind",
15163
15862
  * // "name": "my_name",
15164
15863
  * // "operationType": "my_operationType",
15864
+ * // "preCheckMajorVersionUpgradeContext": {},
15165
15865
  * // "selfLink": "my_selfLink",
15166
15866
  * // "startTime": "my_startTime",
15167
15867
  * // "status": "my_status",