@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/v1beta4.ts CHANGED
@@ -230,7 +230,7 @@ export namespace sqladmin_v1beta4 {
230
230
  name?: string | null;
231
231
  }
232
232
  /**
233
- * A backup resource. Next ID: 30
233
+ * A backup resource.
234
234
  */
235
235
  export interface Schema$Backup {
236
236
  /**
@@ -573,6 +573,23 @@ export namespace sqladmin_v1beta4 {
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.
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_v1beta4 {
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_v1beta4 {
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_v1beta4 {
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
  */
@@ -1108,6 +1129,35 @@ export namespace sqladmin_v1beta4 {
1108
1129
  * 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); \}
1109
1130
  */
1110
1131
  export interface Schema$Empty {}
1132
+ /**
1133
+ * The request payload used to execute SQL statements.
1134
+ */
1135
+ export interface Schema$ExecuteSqlPayload {
1136
+ /**
1137
+ * 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.
1138
+ */
1139
+ autoIamAuthn?: boolean | null;
1140
+ /**
1141
+ * Optional. Name of the database on which the statement will be executed.
1142
+ */
1143
+ database?: string | null;
1144
+ /**
1145
+ * Optional. Controls how the API should respond when the SQL execution result exceeds 10 MB. The default mode is to throw an error.
1146
+ */
1147
+ partialResultMode?: string | null;
1148
+ /**
1149
+ * Optional. The maximum number of rows returned per SQL statement.
1150
+ */
1151
+ rowLimit?: string | null;
1152
+ /**
1153
+ * Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1154
+ */
1155
+ sqlStatement?: string | null;
1156
+ /**
1157
+ * Optional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.
1158
+ */
1159
+ user?: string | null;
1160
+ }
1111
1161
  /**
1112
1162
  * Database instance export context.
1113
1163
  */
@@ -1197,6 +1247,19 @@ export namespace sqladmin_v1beta4 {
1197
1247
  */
1198
1248
  settingsVersion?: string | null;
1199
1249
  }
1250
+ /**
1251
+ * Config used to determine the final backup settings for the instance.
1252
+ */
1253
+ export interface Schema$FinalBackupConfig {
1254
+ /**
1255
+ * Whether the final backup is enabled for the instance.
1256
+ */
1257
+ enabled?: boolean | null;
1258
+ /**
1259
+ * 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).
1260
+ */
1261
+ retentionDays?: number | null;
1262
+ }
1200
1263
  /**
1201
1264
  * A flag resource.
1202
1265
  */
@@ -1557,6 +1620,15 @@ export namespace sqladmin_v1beta4 {
1557
1620
  */
1558
1621
  serverCerts?: Schema$SslCert[];
1559
1622
  }
1623
+ /**
1624
+ * Request for Pre-checks for MVU
1625
+ */
1626
+ export interface Schema$InstancesPreCheckMajorVersionUpgradeRequest {
1627
+ /**
1628
+ * Required. Contains details about the pre-check major version upgrade operation.
1629
+ */
1630
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1631
+ }
1560
1632
  /**
1561
1633
  * Database Instance reencrypt request.
1562
1634
  */
@@ -1582,6 +1654,10 @@ export namespace sqladmin_v1beta4 {
1582
1654
  * Parameters required to perform the restore backup operation.
1583
1655
  */
1584
1656
  restoreBackupContext?: Schema$RestoreBackupContext;
1657
+ /**
1658
+ * 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.
1659
+ */
1660
+ restoreInstanceClearOverridesFieldNames?: string[] | null;
1585
1661
  /**
1586
1662
  * 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.
1587
1663
  */
@@ -1752,6 +1828,28 @@ export namespace sqladmin_v1beta4 {
1752
1828
  */
1753
1829
  updateTrack?: string | null;
1754
1830
  }
1831
+ /**
1832
+ * Represents a notice or warning message from the database.
1833
+ */
1834
+ export interface Schema$Message {
1835
+ /**
1836
+ * The full message string. For PostgreSQL, this is a formatted string that may include severity, code, and the notice/warning message. For MySQL, this contains the warning message.
1837
+ */
1838
+ message?: string | null;
1839
+ /**
1840
+ * The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for MySQL).
1841
+ */
1842
+ severity?: string | null;
1843
+ }
1844
+ /**
1845
+ * The additional metadata information regarding the execution of the SQL statements.
1846
+ */
1847
+ export interface Schema$Metadata {
1848
+ /**
1849
+ * The time taken to execute the SQL statements.
1850
+ */
1851
+ sqlStatementExecutionTime?: string | null;
1852
+ }
1755
1853
  /**
1756
1854
  * Read-replica configuration specific to MySQL databases.
1757
1855
  */
@@ -1907,6 +2005,10 @@ export namespace sqladmin_v1beta4 {
1907
2005
  * The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1908
2006
  */
1909
2007
  operationType?: string | null;
2008
+ /**
2009
+ * The context for pre-check major version upgrade operation, if applicable. This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
2010
+ */
2011
+ preCheckMajorVersionUpgradeContext?: Schema$PreCheckMajorVersionUpgradeContext;
1910
2012
  /**
1911
2013
  * The URI of this resource.
1912
2014
  */
@@ -2077,7 +2179,7 @@ export namespace sqladmin_v1beta4 {
2077
2179
  */
2078
2180
  export interface Schema$PointInTimeRestoreContext {
2079
2181
  /**
2080
- * 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
2182
+ * 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.
2081
2183
  */
2082
2184
  allocatedIpRange?: string | null;
2083
2185
  /**
@@ -2134,6 +2236,40 @@ export namespace sqladmin_v1beta4 {
2134
2236
  */
2135
2237
  state?: string | null;
2136
2238
  }
2239
+ /**
2240
+ * Pre-check major version upgrade context.
2241
+ */
2242
+ export interface Schema$PreCheckMajorVersionUpgradeContext {
2243
+ /**
2244
+ * Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2245
+ */
2246
+ kind?: string | null;
2247
+ /**
2248
+ * Output only. The responses from the precheck operation.
2249
+ */
2250
+ preCheckResponse?: Schema$PreCheckResponse[];
2251
+ /**
2252
+ * Required. The target database version to upgrade to.
2253
+ */
2254
+ targetDatabaseVersion?: string | null;
2255
+ }
2256
+ /**
2257
+ * Structured PreCheckResponse containing message, type, and required actions.
2258
+ */
2259
+ export interface Schema$PreCheckResponse {
2260
+ /**
2261
+ * The actions that the user needs to take. Use repeated for multiple actions.
2262
+ */
2263
+ actionsRequired?: string[] | null;
2264
+ /**
2265
+ * The message to be displayed to the user.
2266
+ */
2267
+ message?: string | null;
2268
+ /**
2269
+ * The type of message whether it is an info, warning, or error.
2270
+ */
2271
+ messageType?: string | null;
2272
+ }
2137
2273
  /**
2138
2274
  * Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2139
2275
  */
@@ -2180,6 +2316,60 @@ export namespace sqladmin_v1beta4 {
2180
2316
  */
2181
2317
  pscEnabled?: boolean | null;
2182
2318
  }
2319
+ /**
2320
+ * QueryResult contains the result of executing a single SQL statement.
2321
+ */
2322
+ export interface Schema$QueryResult {
2323
+ /**
2324
+ * List of columns included in the result. This also includes the data type of the column.
2325
+ */
2326
+ columns?: Schema$Column[];
2327
+ /**
2328
+ * Message related to the SQL execution result.
2329
+ */
2330
+ message?: string | null;
2331
+ /**
2332
+ * Set to true if the SQL execution's result is truncated due to size limits.
2333
+ */
2334
+ partialResult?: boolean | null;
2335
+ /**
2336
+ * Rows returned by the SQL statement.
2337
+ */
2338
+ rows?: Schema$Row[];
2339
+ }
2340
+ /**
2341
+ * The read pool auto-scale configuration.
2342
+ */
2343
+ export interface Schema$ReadPoolAutoScaleConfig {
2344
+ /**
2345
+ * Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2346
+ */
2347
+ disableScaleIn?: boolean | null;
2348
+ /**
2349
+ * Indicates whether read pool auto scaling is enabled.
2350
+ */
2351
+ enabled?: boolean | null;
2352
+ /**
2353
+ * Maximum number of read pool nodes to be maintained.
2354
+ */
2355
+ maxNodeCount?: number | null;
2356
+ /**
2357
+ * Minimum number of read pool nodes to be maintained.
2358
+ */
2359
+ minNodeCount?: number | null;
2360
+ /**
2361
+ * The cooldown period for scale in operations.
2362
+ */
2363
+ scaleInCooldownSeconds?: number | null;
2364
+ /**
2365
+ * The cooldown period for scale out operations.
2366
+ */
2367
+ scaleOutCooldownSeconds?: number | null;
2368
+ /**
2369
+ * Optional. Target metrics for read pool auto scaling.
2370
+ */
2371
+ targetMetrics?: Schema$TargetMetric[];
2372
+ }
2183
2373
  /**
2184
2374
  * Read-replica configuration for connecting to the primary instance.
2185
2375
  */
@@ -2275,6 +2465,15 @@ export namespace sqladmin_v1beta4 {
2275
2465
  */
2276
2466
  nextVersion?: string | null;
2277
2467
  }
2468
+ /**
2469
+ * Contains the values for a row.
2470
+ */
2471
+ export interface Schema$Row {
2472
+ /**
2473
+ * The values for the row.
2474
+ */
2475
+ values?: Schema$Value[];
2476
+ }
2278
2477
  /**
2279
2478
  * A list of objects that the user selects for replication from an external source instance.
2280
2479
  */
@@ -2376,6 +2575,10 @@ export namespace sqladmin_v1beta4 {
2376
2575
  * 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.
2377
2576
  */
2378
2577
  enableGoogleMlIntegration?: boolean | null;
2578
+ /**
2579
+ * Optional. The final backup configuration for the instance.
2580
+ */
2581
+ finalBackupConfig?: Schema$FinalBackupConfig;
2379
2582
  /**
2380
2583
  * Insights configuration, for now relevant only for Postgres.
2381
2584
  */
@@ -2404,6 +2607,10 @@ export namespace sqladmin_v1beta4 {
2404
2607
  * The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2405
2608
  */
2406
2609
  pricingPlan?: string | null;
2610
+ /**
2611
+ * Optional. The read pool auto-scale configuration for the instance.
2612
+ */
2613
+ readPoolAutoScaleConfig?: Schema$ReadPoolAutoScaleConfig;
2407
2614
  /**
2408
2615
  * Optional. Configuration value for recreation of replica after certain replication lag.
2409
2616
  */
@@ -2449,6 +2656,14 @@ export namespace sqladmin_v1beta4 {
2449
2656
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2450
2657
  */
2451
2658
  export interface Schema$SqlActiveDirectoryConfig {
2659
+ /**
2660
+ * Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
2661
+ */
2662
+ adminCredentialSecretName?: string | null;
2663
+ /**
2664
+ * Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
2665
+ */
2666
+ dnsServers?: string[] | null;
2452
2667
  /**
2453
2668
  * The name of the domain (e.g., mydomain.com).
2454
2669
  */
@@ -2457,6 +2672,14 @@ export namespace sqladmin_v1beta4 {
2457
2672
  * This is always sql#activeDirectoryConfig.
2458
2673
  */
2459
2674
  kind?: string | null;
2675
+ /**
2676
+ * Optional. The mode of the Active Directory configuration.
2677
+ */
2678
+ mode?: string | null;
2679
+ /**
2680
+ * Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
2681
+ */
2682
+ organizationalUnit?: string | null;
2460
2683
  }
2461
2684
  /**
2462
2685
  * External primary instance migration setting error/warning.
@@ -2484,6 +2707,23 @@ export namespace sqladmin_v1beta4 {
2484
2707
  */
2485
2708
  operationId?: string | null;
2486
2709
  }
2710
+ /**
2711
+ * Execute SQL statements response.
2712
+ */
2713
+ export interface Schema$SqlInstancesExecuteSqlResponse {
2714
+ /**
2715
+ * A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
2716
+ */
2717
+ messages?: Schema$Message[];
2718
+ /**
2719
+ * The additional metadata information regarding the execution of the SQL statements.
2720
+ */
2721
+ metadata?: Schema$Metadata;
2722
+ /**
2723
+ * The list of results after executing all the SQL statements.
2724
+ */
2725
+ results?: Schema$QueryResult[];
2726
+ }
2487
2727
  /**
2488
2728
  * Instance get disk shrink config response.
2489
2729
  */
@@ -2505,6 +2745,10 @@ export namespace sqladmin_v1beta4 {
2505
2745
  * Instance get latest recovery time response.
2506
2746
  */
2507
2747
  export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
2748
+ /**
2749
+ * Timestamp, identifies the earliest recovery time of the source instance.
2750
+ */
2751
+ earliestRecoveryTime?: string | null;
2508
2752
  /**
2509
2753
  * This is always `sql#getLatestRecoveryTime`.
2510
2754
  */
@@ -2545,6 +2789,10 @@ export namespace sqladmin_v1beta4 {
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
  */
@@ -2815,6 +3063,19 @@ export namespace sqladmin_v1beta4 {
2815
3063
  */
2816
3064
  value?: string | null;
2817
3065
  }
3066
+ /**
3067
+ * Target metric for read pool auto scaling.
3068
+ */
3069
+ export interface Schema$TargetMetric {
3070
+ /**
3071
+ * The metric name to be used for auto scaling.
3072
+ */
3073
+ metric?: string | null;
3074
+ /**
3075
+ * The target value for the metric.
3076
+ */
3077
+ targetValue?: number | null;
3078
+ }
2818
3079
  /**
2819
3080
  * A Google Cloud SQL service tier resource.
2820
3081
  */
@@ -2882,6 +3143,10 @@ export namespace sqladmin_v1beta4 {
2882
3143
  * Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
2883
3144
  */
2884
3145
  host?: string | null;
3146
+ /**
3147
+ * Indicates if a group is active or inactive for IAM database authentication.
3148
+ */
3149
+ iamStatus?: string | null;
2885
3150
  /**
2886
3151
  * The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* because it is already specified on the URL.
2887
3152
  */
@@ -2954,6 +3219,19 @@ export namespace sqladmin_v1beta4 {
2954
3219
  */
2955
3220
  nextPageToken?: string | null;
2956
3221
  }
3222
+ /**
3223
+ * The cell value of the table.
3224
+ */
3225
+ export interface Schema$Value {
3226
+ /**
3227
+ * If cell value is null, then this flag will be set to true.
3228
+ */
3229
+ nullValue?: boolean | null;
3230
+ /**
3231
+ * The cell value represented in string format.
3232
+ */
3233
+ value?: string | null;
3234
+ }
2957
3235
 
2958
3236
  export class Resource$Backupruns {
2959
3237
  context: APIRequestContext;
@@ -3017,6 +3295,7 @@ export namespace sqladmin_v1beta4 {
3017
3295
  * // "kind": "my_kind",
3018
3296
  * // "name": "my_name",
3019
3297
  * // "operationType": "my_operationType",
3298
+ * // "preCheckMajorVersionUpgradeContext": {},
3020
3299
  * // "selfLink": "my_selfLink",
3021
3300
  * // "startTime": "my_startTime",
3022
3301
  * // "status": "my_status",
@@ -3364,6 +3643,7 @@ export namespace sqladmin_v1beta4 {
3364
3643
  * // "kind": "my_kind",
3365
3644
  * // "name": "my_name",
3366
3645
  * // "operationType": "my_operationType",
3646
+ * // "preCheckMajorVersionUpgradeContext": {},
3367
3647
  * // "selfLink": "my_selfLink",
3368
3648
  * // "startTime": "my_startTime",
3369
3649
  * // "status": "my_status",
@@ -3772,6 +4052,7 @@ export namespace sqladmin_v1beta4 {
3772
4052
  * // "kind": "my_kind",
3773
4053
  * // "name": "my_name",
3774
4054
  * // "operationType": "my_operationType",
4055
+ * // "preCheckMajorVersionUpgradeContext": {},
3775
4056
  * // "selfLink": "my_selfLink",
3776
4057
  * // "startTime": "my_startTime",
3777
4058
  * // "status": "my_status",
@@ -3930,6 +4211,7 @@ export namespace sqladmin_v1beta4 {
3930
4211
  * // "kind": "my_kind",
3931
4212
  * // "name": "my_name",
3932
4213
  * // "operationType": "my_operationType",
4214
+ * // "preCheckMajorVersionUpgradeContext": {},
3933
4215
  * // "selfLink": "my_selfLink",
3934
4216
  * // "startTime": "my_startTime",
3935
4217
  * // "status": "my_status",
@@ -4432,6 +4714,7 @@ export namespace sqladmin_v1beta4 {
4432
4714
  * // "kind": "my_kind",
4433
4715
  * // "name": "my_name",
4434
4716
  * // "operationType": "my_operationType",
4717
+ * // "preCheckMajorVersionUpgradeContext": {},
4435
4718
  * // "selfLink": "my_selfLink",
4436
4719
  * // "startTime": "my_startTime",
4437
4720
  * // "status": "my_status",
@@ -4818,6 +5101,7 @@ export namespace sqladmin_v1beta4 {
4818
5101
  * // "dnsNames": [],
4819
5102
  * // "ipAddresses": [],
4820
5103
  * // "kind": "my_kind",
5104
+ * // "mdxProtocolSupport": [],
4821
5105
  * // "nodeCount": 0,
4822
5106
  * // "nodes": [],
4823
5107
  * // "pscEnabled": false,
@@ -5015,6 +5299,7 @@ export namespace sqladmin_v1beta4 {
5015
5299
  * // "kind": "my_kind",
5016
5300
  * // "name": "my_name",
5017
5301
  * // "operationType": "my_operationType",
5302
+ * // "preCheckMajorVersionUpgradeContext": {},
5018
5303
  * // "selfLink": "my_selfLink",
5019
5304
  * // "startTime": "my_startTime",
5020
5305
  * // "status": "my_status",
@@ -5341,6 +5626,7 @@ export namespace sqladmin_v1beta4 {
5341
5626
  * // "kind": "my_kind",
5342
5627
  * // "name": "my_name",
5343
5628
  * // "operationType": "my_operationType",
5629
+ * // "preCheckMajorVersionUpgradeContext": {},
5344
5630
  * // "selfLink": "my_selfLink",
5345
5631
  * // "startTime": "my_startTime",
5346
5632
  * // "status": "my_status",
@@ -5662,6 +5948,7 @@ export namespace sqladmin_v1beta4 {
5662
5948
  * // "kind": "my_kind",
5663
5949
  * // "name": "my_name",
5664
5950
  * // "operationType": "my_operationType",
5951
+ * // "preCheckMajorVersionUpgradeContext": {},
5665
5952
  * // "selfLink": "my_selfLink",
5666
5953
  * // "startTime": "my_startTime",
5667
5954
  * // "status": "my_status",
@@ -5839,6 +6126,7 @@ export namespace sqladmin_v1beta4 {
5839
6126
  * // "kind": "my_kind",
5840
6127
  * // "name": "my_name",
5841
6128
  * // "operationType": "my_operationType",
6129
+ * // "preCheckMajorVersionUpgradeContext": {},
5842
6130
  * // "selfLink": "my_selfLink",
5843
6131
  * // "startTime": "my_startTime",
5844
6132
  * // "status": "my_status",
@@ -6414,6 +6702,7 @@ export namespace sqladmin_v1beta4 {
6414
6702
  * // "kind": "my_kind",
6415
6703
  * // "name": "my_name",
6416
6704
  * // "operationType": "my_operationType",
6705
+ * // "preCheckMajorVersionUpgradeContext": {},
6417
6706
  * // "selfLink": "my_selfLink",
6418
6707
  * // "startTime": "my_startTime",
6419
6708
  * // "status": "my_status",
@@ -6574,6 +6863,7 @@ export namespace sqladmin_v1beta4 {
6574
6863
  * // "kind": "my_kind",
6575
6864
  * // "name": "my_name",
6576
6865
  * // "operationType": "my_operationType",
6866
+ * // "preCheckMajorVersionUpgradeContext": {},
6577
6867
  * // "selfLink": "my_selfLink",
6578
6868
  * // "startTime": "my_startTime",
6579
6869
  * // "status": "my_status",
@@ -6744,6 +7034,7 @@ export namespace sqladmin_v1beta4 {
6744
7034
  * // "kind": "my_kind",
6745
7035
  * // "name": "my_name",
6746
7036
  * // "operationType": "my_operationType",
7037
+ * // "preCheckMajorVersionUpgradeContext": {},
6747
7038
  * // "selfLink": "my_selfLink",
6748
7039
  * // "startTime": "my_startTime",
6749
7040
  * // "status": "my_status",
@@ -6911,6 +7202,7 @@ export namespace sqladmin_v1beta4 {
6911
7202
  * // "kind": "my_kind",
6912
7203
  * // "name": "my_name",
6913
7204
  * // "operationType": "my_operationType",
7205
+ * // "preCheckMajorVersionUpgradeContext": {},
6914
7206
  * // "selfLink": "my_selfLink",
6915
7207
  * // "startTime": "my_startTime",
6916
7208
  * // "status": "my_status",
@@ -7077,6 +7369,7 @@ export namespace sqladmin_v1beta4 {
7077
7369
  * // "kind": "my_kind",
7078
7370
  * // "name": "my_name",
7079
7371
  * // "operationType": "my_operationType",
7372
+ * // "preCheckMajorVersionUpgradeContext": {},
7080
7373
  * // "selfLink": "my_selfLink",
7081
7374
  * // "startTime": "my_startTime",
7082
7375
  * // "status": "my_status",
@@ -7244,6 +7537,7 @@ export namespace sqladmin_v1beta4 {
7244
7537
  * // "kind": "my_kind",
7245
7538
  * // "name": "my_name",
7246
7539
  * // "operationType": "my_operationType",
7540
+ * // "preCheckMajorVersionUpgradeContext": {},
7247
7541
  * // "selfLink": "my_selfLink",
7248
7542
  * // "startTime": "my_startTime",
7249
7543
  * // "status": "my_status",
@@ -7350,6 +7644,169 @@ export namespace sqladmin_v1beta4 {
7350
7644
  }
7351
7645
  }
7352
7646
 
7647
+ /**
7648
+ * Execute SQL statements.
7649
+ * @example
7650
+ * ```js
7651
+ * // Before running the sample:
7652
+ * // - Enable the API at:
7653
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7654
+ * // - Login into gcloud by running:
7655
+ * // ```sh
7656
+ * // $ gcloud auth application-default login
7657
+ * // ```
7658
+ * // - Install the npm module by running:
7659
+ * // ```sh
7660
+ * // $ npm install googleapis
7661
+ * // ```
7662
+ *
7663
+ * const {google} = require('googleapis');
7664
+ * const sqladmin = google.sqladmin('v1beta4');
7665
+ *
7666
+ * async function main() {
7667
+ * const auth = new google.auth.GoogleAuth({
7668
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7669
+ * scopes: [
7670
+ * 'https://www.googleapis.com/auth/cloud-platform',
7671
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
7672
+ * ],
7673
+ * });
7674
+ *
7675
+ * // Acquire an auth client, and bind it to all future calls
7676
+ * const authClient = await auth.getClient();
7677
+ * google.options({auth: authClient});
7678
+ *
7679
+ * // Do the magic
7680
+ * const res = await sql.instances.executeSql({
7681
+ * // Required. Database instance ID. This does not include the project ID.
7682
+ * instance: 'placeholder-value',
7683
+ * // Required. Project ID of the project that contains the instance.
7684
+ * project: 'placeholder-value',
7685
+ *
7686
+ * // Request body metadata
7687
+ * requestBody: {
7688
+ * // request body parameters
7689
+ * // {
7690
+ * // "autoIamAuthn": false,
7691
+ * // "database": "my_database",
7692
+ * // "partialResultMode": "my_partialResultMode",
7693
+ * // "rowLimit": "my_rowLimit",
7694
+ * // "sqlStatement": "my_sqlStatement",
7695
+ * // "user": "my_user"
7696
+ * // }
7697
+ * },
7698
+ * });
7699
+ * console.log(res.data);
7700
+ *
7701
+ * // Example response
7702
+ * // {
7703
+ * // "messages": [],
7704
+ * // "metadata": {},
7705
+ * // "results": []
7706
+ * // }
7707
+ * }
7708
+ *
7709
+ * main().catch(e => {
7710
+ * console.error(e);
7711
+ * throw e;
7712
+ * });
7713
+ *
7714
+ * ```
7715
+ *
7716
+ * @param params - Parameters for request
7717
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7718
+ * @param callback - Optional callback that handles the response.
7719
+ * @returns A promise if used with async/await, or void if used with a callback.
7720
+ */
7721
+ executeSql(
7722
+ params: Params$Resource$Instances$Executesql,
7723
+ options: StreamMethodOptions
7724
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7725
+ executeSql(
7726
+ params?: Params$Resource$Instances$Executesql,
7727
+ options?: MethodOptions
7728
+ ): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
7729
+ executeSql(
7730
+ params: Params$Resource$Instances$Executesql,
7731
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7732
+ callback: BodyResponseCallback<Readable>
7733
+ ): void;
7734
+ executeSql(
7735
+ params: Params$Resource$Instances$Executesql,
7736
+ options:
7737
+ | MethodOptions
7738
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>,
7739
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7740
+ ): void;
7741
+ executeSql(
7742
+ params: Params$Resource$Instances$Executesql,
7743
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7744
+ ): void;
7745
+ executeSql(
7746
+ callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7747
+ ): void;
7748
+ executeSql(
7749
+ paramsOrCallback?:
7750
+ | Params$Resource$Instances$Executesql
7751
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7752
+ | BodyResponseCallback<Readable>,
7753
+ optionsOrCallback?:
7754
+ | MethodOptions
7755
+ | StreamMethodOptions
7756
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7757
+ | BodyResponseCallback<Readable>,
7758
+ callback?:
7759
+ | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
7760
+ | BodyResponseCallback<Readable>
7761
+ ):
7762
+ | void
7763
+ | Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>
7764
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7765
+ let params = (paramsOrCallback ||
7766
+ {}) as Params$Resource$Instances$Executesql;
7767
+ let options = (optionsOrCallback || {}) as MethodOptions;
7768
+
7769
+ if (typeof paramsOrCallback === 'function') {
7770
+ callback = paramsOrCallback;
7771
+ params = {} as Params$Resource$Instances$Executesql;
7772
+ options = {};
7773
+ }
7774
+
7775
+ if (typeof optionsOrCallback === 'function') {
7776
+ callback = optionsOrCallback;
7777
+ options = {};
7778
+ }
7779
+
7780
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
7781
+ const parameters = {
7782
+ options: Object.assign(
7783
+ {
7784
+ url: (
7785
+ rootUrl +
7786
+ '/sql/v1beta4/projects/{project}/instances/{instance}/executeSql'
7787
+ ).replace(/([^:]\/)\/+/g, '$1'),
7788
+ method: 'POST',
7789
+ apiVersion: '',
7790
+ },
7791
+ options
7792
+ ),
7793
+ params,
7794
+ requiredParams: ['project', 'instance'],
7795
+ pathParams: ['instance', 'project'],
7796
+ context: this.context,
7797
+ };
7798
+ if (callback) {
7799
+ createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
7800
+ parameters,
7801
+ callback as BodyResponseCallback<unknown>
7802
+ );
7803
+ } else {
7804
+ return createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
7805
+ parameters
7806
+ );
7807
+ }
7808
+ }
7809
+
7353
7810
  /**
7354
7811
  * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
7355
7812
  * @example
@@ -7409,6 +7866,7 @@ export namespace sqladmin_v1beta4 {
7409
7866
  * // "kind": "my_kind",
7410
7867
  * // "name": "my_name",
7411
7868
  * // "operationType": "my_operationType",
7869
+ * // "preCheckMajorVersionUpgradeContext": {},
7412
7870
  * // "selfLink": "my_selfLink",
7413
7871
  * // "startTime": "my_startTime",
7414
7872
  * // "status": "my_status",
@@ -7576,6 +8034,7 @@ export namespace sqladmin_v1beta4 {
7576
8034
  * // "kind": "my_kind",
7577
8035
  * // "name": "my_name",
7578
8036
  * // "operationType": "my_operationType",
8037
+ * // "preCheckMajorVersionUpgradeContext": {},
7579
8038
  * // "selfLink": "my_selfLink",
7580
8039
  * // "startTime": "my_startTime",
7581
8040
  * // "status": "my_status",
@@ -7727,7 +8186,6 @@ export namespace sqladmin_v1beta4 {
7727
8186
  * // {
7728
8187
  * // "availableMaintenanceVersions": [],
7729
8188
  * // "backendType": "my_backendType",
7730
- * // "clearNetwork": false,
7731
8189
  * // "connectionName": "my_connectionName",
7732
8190
  * // "createTime": "my_createTime",
7733
8191
  * // "currentDiskSize": "my_currentDiskSize",
@@ -7932,6 +8390,7 @@ export namespace sqladmin_v1beta4 {
7932
8390
  * // "kind": "my_kind",
7933
8391
  * // "name": "my_name",
7934
8392
  * // "operationType": "my_operationType",
8393
+ * // "preCheckMajorVersionUpgradeContext": {},
7935
8394
  * // "selfLink": "my_selfLink",
7936
8395
  * // "startTime": "my_startTime",
7937
8396
  * // "status": "my_status",
@@ -8080,7 +8539,6 @@ export namespace sqladmin_v1beta4 {
8080
8539
  * // {
8081
8540
  * // "availableMaintenanceVersions": [],
8082
8541
  * // "backendType": "my_backendType",
8083
- * // "clearNetwork": false,
8084
8542
  * // "connectionName": "my_connectionName",
8085
8543
  * // "createTime": "my_createTime",
8086
8544
  * // "currentDiskSize": "my_currentDiskSize",
@@ -8148,6 +8606,7 @@ export namespace sqladmin_v1beta4 {
8148
8606
  * // "kind": "my_kind",
8149
8607
  * // "name": "my_name",
8150
8608
  * // "operationType": "my_operationType",
8609
+ * // "preCheckMajorVersionUpgradeContext": {},
8151
8610
  * // "selfLink": "my_selfLink",
8152
8611
  * // "startTime": "my_startTime",
8153
8612
  * // "status": "my_status",
@@ -8751,7 +9210,6 @@ export namespace sqladmin_v1beta4 {
8751
9210
  * // {
8752
9211
  * // "availableMaintenanceVersions": [],
8753
9212
  * // "backendType": "my_backendType",
8754
- * // "clearNetwork": false,
8755
9213
  * // "connectionName": "my_connectionName",
8756
9214
  * // "createTime": "my_createTime",
8757
9215
  * // "currentDiskSize": "my_currentDiskSize",
@@ -8819,6 +9277,7 @@ export namespace sqladmin_v1beta4 {
8819
9277
  * // "kind": "my_kind",
8820
9278
  * // "name": "my_name",
8821
9279
  * // "operationType": "my_operationType",
9280
+ * // "preCheckMajorVersionUpgradeContext": {},
8822
9281
  * // "selfLink": "my_selfLink",
8823
9282
  * // "startTime": "my_startTime",
8824
9283
  * // "status": "my_status",
@@ -8989,6 +9448,7 @@ export namespace sqladmin_v1beta4 {
8989
9448
  * // "kind": "my_kind",
8990
9449
  * // "name": "my_name",
8991
9450
  * // "operationType": "my_operationType",
9451
+ * // "preCheckMajorVersionUpgradeContext": {},
8992
9452
  * // "selfLink": "my_selfLink",
8993
9453
  * // "startTime": "my_startTime",
8994
9454
  * // "status": "my_status",
@@ -9094,6 +9554,177 @@ export namespace sqladmin_v1beta4 {
9094
9554
  }
9095
9555
  }
9096
9556
 
9557
+ /**
9558
+ * Execute MVU Pre-checks
9559
+ * @example
9560
+ * ```js
9561
+ * // Before running the sample:
9562
+ * // - Enable the API at:
9563
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9564
+ * // - Login into gcloud by running:
9565
+ * // ```sh
9566
+ * // $ gcloud auth application-default login
9567
+ * // ```
9568
+ * // - Install the npm module by running:
9569
+ * // ```sh
9570
+ * // $ npm install googleapis
9571
+ * // ```
9572
+ *
9573
+ * const {google} = require('googleapis');
9574
+ * const sqladmin = google.sqladmin('v1beta4');
9575
+ *
9576
+ * async function main() {
9577
+ * const auth = new google.auth.GoogleAuth({
9578
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9579
+ * scopes: [
9580
+ * 'https://www.googleapis.com/auth/cloud-platform',
9581
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
9582
+ * ],
9583
+ * });
9584
+ *
9585
+ * // Acquire an auth client, and bind it to all future calls
9586
+ * const authClient = await auth.getClient();
9587
+ * google.options({auth: authClient});
9588
+ *
9589
+ * // Do the magic
9590
+ * const res = await sql.instances.preCheckMajorVersionUpgrade({
9591
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
9592
+ * instance: 'placeholder-value',
9593
+ * // Required. Project ID of the project that contains the instance.
9594
+ * project: 'placeholder-value',
9595
+ *
9596
+ * // Request body metadata
9597
+ * requestBody: {
9598
+ * // request body parameters
9599
+ * // {
9600
+ * // "preCheckMajorVersionUpgradeContext": {}
9601
+ * // }
9602
+ * },
9603
+ * });
9604
+ * console.log(res.data);
9605
+ *
9606
+ * // Example response
9607
+ * // {
9608
+ * // "acquireSsrsLeaseContext": {},
9609
+ * // "apiWarning": {},
9610
+ * // "backupContext": {},
9611
+ * // "endTime": "my_endTime",
9612
+ * // "error": {},
9613
+ * // "exportContext": {},
9614
+ * // "importContext": {},
9615
+ * // "insertTime": "my_insertTime",
9616
+ * // "kind": "my_kind",
9617
+ * // "name": "my_name",
9618
+ * // "operationType": "my_operationType",
9619
+ * // "preCheckMajorVersionUpgradeContext": {},
9620
+ * // "selfLink": "my_selfLink",
9621
+ * // "startTime": "my_startTime",
9622
+ * // "status": "my_status",
9623
+ * // "subOperationType": {},
9624
+ * // "targetId": "my_targetId",
9625
+ * // "targetLink": "my_targetLink",
9626
+ * // "targetProject": "my_targetProject",
9627
+ * // "user": "my_user"
9628
+ * // }
9629
+ * }
9630
+ *
9631
+ * main().catch(e => {
9632
+ * console.error(e);
9633
+ * throw e;
9634
+ * });
9635
+ *
9636
+ * ```
9637
+ *
9638
+ * @param params - Parameters for request
9639
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9640
+ * @param callback - Optional callback that handles the response.
9641
+ * @returns A promise if used with async/await, or void if used with a callback.
9642
+ */
9643
+ preCheckMajorVersionUpgrade(
9644
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9645
+ options: StreamMethodOptions
9646
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9647
+ preCheckMajorVersionUpgrade(
9648
+ params?: Params$Resource$Instances$Precheckmajorversionupgrade,
9649
+ options?: MethodOptions
9650
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9651
+ preCheckMajorVersionUpgrade(
9652
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9653
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9654
+ callback: BodyResponseCallback<Readable>
9655
+ ): void;
9656
+ preCheckMajorVersionUpgrade(
9657
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9658
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9659
+ callback: BodyResponseCallback<Schema$Operation>
9660
+ ): void;
9661
+ preCheckMajorVersionUpgrade(
9662
+ params: Params$Resource$Instances$Precheckmajorversionupgrade,
9663
+ callback: BodyResponseCallback<Schema$Operation>
9664
+ ): void;
9665
+ preCheckMajorVersionUpgrade(
9666
+ callback: BodyResponseCallback<Schema$Operation>
9667
+ ): void;
9668
+ preCheckMajorVersionUpgrade(
9669
+ paramsOrCallback?:
9670
+ | Params$Resource$Instances$Precheckmajorversionupgrade
9671
+ | BodyResponseCallback<Schema$Operation>
9672
+ | BodyResponseCallback<Readable>,
9673
+ optionsOrCallback?:
9674
+ | MethodOptions
9675
+ | StreamMethodOptions
9676
+ | BodyResponseCallback<Schema$Operation>
9677
+ | BodyResponseCallback<Readable>,
9678
+ callback?:
9679
+ | BodyResponseCallback<Schema$Operation>
9680
+ | BodyResponseCallback<Readable>
9681
+ ):
9682
+ | void
9683
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9684
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9685
+ let params = (paramsOrCallback ||
9686
+ {}) as Params$Resource$Instances$Precheckmajorversionupgrade;
9687
+ let options = (optionsOrCallback || {}) as MethodOptions;
9688
+
9689
+ if (typeof paramsOrCallback === 'function') {
9690
+ callback = paramsOrCallback;
9691
+ params = {} as Params$Resource$Instances$Precheckmajorversionupgrade;
9692
+ options = {};
9693
+ }
9694
+
9695
+ if (typeof optionsOrCallback === 'function') {
9696
+ callback = optionsOrCallback;
9697
+ options = {};
9698
+ }
9699
+
9700
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
9701
+ const parameters = {
9702
+ options: Object.assign(
9703
+ {
9704
+ url: (
9705
+ rootUrl +
9706
+ '/sql/v1beta4/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade'
9707
+ ).replace(/([^:]\/)\/+/g, '$1'),
9708
+ method: 'POST',
9709
+ apiVersion: '',
9710
+ },
9711
+ options
9712
+ ),
9713
+ params,
9714
+ requiredParams: ['project', 'instance'],
9715
+ pathParams: ['instance', 'project'],
9716
+ context: this.context,
9717
+ };
9718
+ if (callback) {
9719
+ createAPIRequest<Schema$Operation>(
9720
+ parameters,
9721
+ callback as BodyResponseCallback<unknown>
9722
+ );
9723
+ } else {
9724
+ return createAPIRequest<Schema$Operation>(parameters);
9725
+ }
9726
+ }
9727
+
9097
9728
  /**
9098
9729
  * Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
9099
9730
  * @example
@@ -9150,6 +9781,7 @@ export namespace sqladmin_v1beta4 {
9150
9781
  * // "kind": "my_kind",
9151
9782
  * // "name": "my_name",
9152
9783
  * // "operationType": "my_operationType",
9784
+ * // "preCheckMajorVersionUpgradeContext": {},
9153
9785
  * // "selfLink": "my_selfLink",
9154
9786
  * // "startTime": "my_startTime",
9155
9787
  * // "status": "my_status",
@@ -9318,6 +9950,7 @@ export namespace sqladmin_v1beta4 {
9318
9950
  * // "kind": "my_kind",
9319
9951
  * // "name": "my_name",
9320
9952
  * // "operationType": "my_operationType",
9953
+ * // "preCheckMajorVersionUpgradeContext": {},
9321
9954
  * // "selfLink": "my_selfLink",
9322
9955
  * // "startTime": "my_startTime",
9323
9956
  * // "status": "my_status",
@@ -9612,6 +10245,8 @@ export namespace sqladmin_v1beta4 {
9612
10245
  * const res = await sql.instances.resetSslConfig({
9613
10246
  * // Cloud SQL instance ID. This does not include the project ID.
9614
10247
  * instance: 'placeholder-value',
10248
+ * // Optional. Reset SSL mode to use.
10249
+ * mode: 'placeholder-value',
9615
10250
  * // Project ID of the project that contains the instance.
9616
10251
  * project: 'placeholder-value',
9617
10252
  * });
@@ -9630,6 +10265,7 @@ export namespace sqladmin_v1beta4 {
9630
10265
  * // "kind": "my_kind",
9631
10266
  * // "name": "my_name",
9632
10267
  * // "operationType": "my_operationType",
10268
+ * // "preCheckMajorVersionUpgradeContext": {},
9633
10269
  * // "selfLink": "my_selfLink",
9634
10270
  * // "startTime": "my_startTime",
9635
10271
  * // "status": "my_status",
@@ -9790,6 +10426,7 @@ export namespace sqladmin_v1beta4 {
9790
10426
  * // "kind": "my_kind",
9791
10427
  * // "name": "my_name",
9792
10428
  * // "operationType": "my_operationType",
10429
+ * // "preCheckMajorVersionUpgradeContext": {},
9793
10430
  * // "selfLink": "my_selfLink",
9794
10431
  * // "startTime": "my_startTime",
9795
10432
  * // "status": "my_status",
@@ -9942,6 +10579,7 @@ export namespace sqladmin_v1beta4 {
9942
10579
  * // "backup": "my_backup",
9943
10580
  * // "backupdrBackup": "my_backupdrBackup",
9944
10581
  * // "restoreBackupContext": {},
10582
+ * // "restoreInstanceClearOverridesFieldNames": [],
9945
10583
  * // "restoreInstanceSettings": {}
9946
10584
  * // }
9947
10585
  * },
@@ -9961,6 +10599,7 @@ export namespace sqladmin_v1beta4 {
9961
10599
  * // "kind": "my_kind",
9962
10600
  * // "name": "my_name",
9963
10601
  * // "operationType": "my_operationType",
10602
+ * // "preCheckMajorVersionUpgradeContext": {},
9964
10603
  * // "selfLink": "my_selfLink",
9965
10604
  * // "startTime": "my_startTime",
9966
10605
  * // "status": "my_status",
@@ -10129,6 +10768,7 @@ export namespace sqladmin_v1beta4 {
10129
10768
  * // "kind": "my_kind",
10130
10769
  * // "name": "my_name",
10131
10770
  * // "operationType": "my_operationType",
10771
+ * // "preCheckMajorVersionUpgradeContext": {},
10132
10772
  * // "selfLink": "my_selfLink",
10133
10773
  * // "startTime": "my_startTime",
10134
10774
  * // "status": "my_status",
@@ -10297,6 +10937,7 @@ export namespace sqladmin_v1beta4 {
10297
10937
  * // "kind": "my_kind",
10298
10938
  * // "name": "my_name",
10299
10939
  * // "operationType": "my_operationType",
10940
+ * // "preCheckMajorVersionUpgradeContext": {},
10300
10941
  * // "selfLink": "my_selfLink",
10301
10942
  * // "startTime": "my_startTime",
10302
10943
  * // "status": "my_status",
@@ -10459,6 +11100,7 @@ export namespace sqladmin_v1beta4 {
10459
11100
  * // "kind": "my_kind",
10460
11101
  * // "name": "my_name",
10461
11102
  * // "operationType": "my_operationType",
11103
+ * // "preCheckMajorVersionUpgradeContext": {},
10462
11104
  * // "selfLink": "my_selfLink",
10463
11105
  * // "startTime": "my_startTime",
10464
11106
  * // "status": "my_status",
@@ -10619,6 +11261,7 @@ export namespace sqladmin_v1beta4 {
10619
11261
  * // "kind": "my_kind",
10620
11262
  * // "name": "my_name",
10621
11263
  * // "operationType": "my_operationType",
11264
+ * // "preCheckMajorVersionUpgradeContext": {},
10622
11265
  * // "selfLink": "my_selfLink",
10623
11266
  * // "startTime": "my_startTime",
10624
11267
  * // "status": "my_status",
@@ -10781,6 +11424,7 @@ export namespace sqladmin_v1beta4 {
10781
11424
  * // "kind": "my_kind",
10782
11425
  * // "name": "my_name",
10783
11426
  * // "operationType": "my_operationType",
11427
+ * // "preCheckMajorVersionUpgradeContext": {},
10784
11428
  * // "selfLink": "my_selfLink",
10785
11429
  * // "startTime": "my_startTime",
10786
11430
  * // "status": "my_status",
@@ -10949,6 +11593,7 @@ export namespace sqladmin_v1beta4 {
10949
11593
  * // "kind": "my_kind",
10950
11594
  * // "name": "my_name",
10951
11595
  * // "operationType": "my_operationType",
11596
+ * // "preCheckMajorVersionUpgradeContext": {},
10952
11597
  * // "selfLink": "my_selfLink",
10953
11598
  * // "startTime": "my_startTime",
10954
11599
  * // "status": "my_status",
@@ -11100,7 +11745,6 @@ export namespace sqladmin_v1beta4 {
11100
11745
  * // {
11101
11746
  * // "availableMaintenanceVersions": [],
11102
11747
  * // "backendType": "my_backendType",
11103
- * // "clearNetwork": false,
11104
11748
  * // "connectionName": "my_connectionName",
11105
11749
  * // "createTime": "my_createTime",
11106
11750
  * // "currentDiskSize": "my_currentDiskSize",
@@ -11168,6 +11812,7 @@ export namespace sqladmin_v1beta4 {
11168
11812
  * // "kind": "my_kind",
11169
11813
  * // "name": "my_name",
11170
11814
  * // "operationType": "my_operationType",
11815
+ * // "preCheckMajorVersionUpgradeContext": {},
11171
11816
  * // "selfLink": "my_selfLink",
11172
11817
  * // "startTime": "my_startTime",
11173
11818
  * // "status": "my_status",
@@ -11383,6 +12028,22 @@ export namespace sqladmin_v1beta4 {
11383
12028
  */
11384
12029
  requestBody?: Schema$InstancesDemoteMasterRequest;
11385
12030
  }
12031
+ export interface Params$Resource$Instances$Executesql
12032
+ extends StandardParameters {
12033
+ /**
12034
+ * Required. Database instance ID. This does not include the project ID.
12035
+ */
12036
+ instance?: string;
12037
+ /**
12038
+ * Required. Project ID of the project that contains the instance.
12039
+ */
12040
+ project?: string;
12041
+
12042
+ /**
12043
+ * Request body metadata
12044
+ */
12045
+ requestBody?: Schema$ExecuteSqlPayload;
12046
+ }
11386
12047
  export interface Params$Resource$Instances$Export extends StandardParameters {
11387
12048
  /**
11388
12049
  * The Cloud SQL instance ID. This doesn't include the project ID.
@@ -11517,6 +12178,22 @@ export namespace sqladmin_v1beta4 {
11517
12178
  */
11518
12179
  requestBody?: Schema$PointInTimeRestoreContext;
11519
12180
  }
12181
+ export interface Params$Resource$Instances$Precheckmajorversionupgrade
12182
+ extends StandardParameters {
12183
+ /**
12184
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12185
+ */
12186
+ instance?: string;
12187
+ /**
12188
+ * Required. Project ID of the project that contains the instance.
12189
+ */
12190
+ project?: string;
12191
+
12192
+ /**
12193
+ * Request body metadata
12194
+ */
12195
+ requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
12196
+ }
11520
12197
  export interface Params$Resource$Instances$Promotereplica
11521
12198
  extends StandardParameters {
11522
12199
  /**
@@ -11565,6 +12242,10 @@ export namespace sqladmin_v1beta4 {
11565
12242
  * Cloud SQL instance ID. This does not include the project ID.
11566
12243
  */
11567
12244
  instance?: string;
12245
+ /**
12246
+ * Optional. Reset SSL mode to use.
12247
+ */
12248
+ mode?: string;
11568
12249
  /**
11569
12250
  * Project ID of the project that contains the instance.
11570
12251
  */
@@ -11705,7 +12386,7 @@ export namespace sqladmin_v1beta4 {
11705
12386
  }
11706
12387
 
11707
12388
  /**
11708
- * Cancels an instance operation that has been performed on an instance.
12389
+ * Cancels an instance operation that has been performed on an instance. Ordinarily, this method name should be `CancelSqlOperation`.
11709
12390
  * @example
11710
12391
  * ```js
11711
12392
  * // Before running the sample:
@@ -11898,6 +12579,7 @@ export namespace sqladmin_v1beta4 {
11898
12579
  * // "kind": "my_kind",
11899
12580
  * // "name": "my_name",
11900
12581
  * // "operationType": "my_operationType",
12582
+ * // "preCheckMajorVersionUpgradeContext": {},
11901
12583
  * // "selfLink": "my_selfLink",
11902
12584
  * // "startTime": "my_startTime",
11903
12585
  * // "status": "my_status",
@@ -12398,11 +13080,14 @@ export namespace sqladmin_v1beta4 {
12398
13080
  * instance: 'placeholder-value',
12399
13081
  * // Project ID of the project that contains the instance.
12400
13082
  * project: 'placeholder-value',
13083
+ * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
13084
+ * sourceInstanceDeletionTime: 'placeholder-value',
12401
13085
  * });
12402
13086
  * console.log(res.data);
12403
13087
  *
12404
13088
  * // Example response
12405
13089
  * // {
13090
+ * // "earliestRecoveryTime": "my_earliestRecoveryTime",
12406
13091
  * // "kind": "my_kind",
12407
13092
  * // "latestRecoveryTime": "my_latestRecoveryTime"
12408
13093
  * // }
@@ -12575,6 +13260,7 @@ export namespace sqladmin_v1beta4 {
12575
13260
  * // "kind": "my_kind",
12576
13261
  * // "name": "my_name",
12577
13262
  * // "operationType": "my_operationType",
13263
+ * // "preCheckMajorVersionUpgradeContext": {},
12578
13264
  * // "selfLink": "my_selfLink",
12579
13265
  * // "startTime": "my_startTime",
12580
13266
  * // "status": "my_status",
@@ -12743,6 +13429,7 @@ export namespace sqladmin_v1beta4 {
12743
13429
  * // "kind": "my_kind",
12744
13430
  * // "name": "my_name",
12745
13431
  * // "operationType": "my_operationType",
13432
+ * // "preCheckMajorVersionUpgradeContext": {},
12746
13433
  * // "selfLink": "my_selfLink",
12747
13434
  * // "startTime": "my_startTime",
12748
13435
  * // "status": "my_status",
@@ -12911,6 +13598,7 @@ export namespace sqladmin_v1beta4 {
12911
13598
  * // "kind": "my_kind",
12912
13599
  * // "name": "my_name",
12913
13600
  * // "operationType": "my_operationType",
13601
+ * // "preCheckMajorVersionUpgradeContext": {},
12914
13602
  * // "selfLink": "my_selfLink",
12915
13603
  * // "startTime": "my_startTime",
12916
13604
  * // "status": "my_status",
@@ -13062,6 +13750,7 @@ export namespace sqladmin_v1beta4 {
13062
13750
  * // {
13063
13751
  * // "migrationType": "my_migrationType",
13064
13752
  * // "mysqlSyncConfig": {},
13753
+ * // "replicaOverwriteEnabled": false,
13065
13754
  * // "skipVerification": false,
13066
13755
  * // "syncMode": "my_syncMode",
13067
13756
  * // "syncParallelLevel": "my_syncParallelLevel"
@@ -13083,6 +13772,7 @@ export namespace sqladmin_v1beta4 {
13083
13772
  * // "kind": "my_kind",
13084
13773
  * // "name": "my_name",
13085
13774
  * // "operationType": "my_operationType",
13775
+ * // "preCheckMajorVersionUpgradeContext": {},
13086
13776
  * // "selfLink": "my_selfLink",
13087
13777
  * // "startTime": "my_startTime",
13088
13778
  * // "status": "my_status",
@@ -13380,6 +14070,10 @@ export namespace sqladmin_v1beta4 {
13380
14070
  * Project ID of the project that contains the instance.
13381
14071
  */
13382
14072
  project?: string;
14073
+ /**
14074
+ * The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
14075
+ */
14076
+ sourceInstanceDeletionTime?: string;
13383
14077
  }
13384
14078
  export interface Params$Resource$Projects$Instances$Performdiskshrink
13385
14079
  extends StandardParameters {
@@ -13683,6 +14377,7 @@ export namespace sqladmin_v1beta4 {
13683
14377
  * // "kind": "my_kind",
13684
14378
  * // "name": "my_name",
13685
14379
  * // "operationType": "my_operationType",
14380
+ * // "preCheckMajorVersionUpgradeContext": {},
13686
14381
  * // "selfLink": "my_selfLink",
13687
14382
  * // "startTime": "my_startTime",
13688
14383
  * // "status": "my_status",
@@ -14526,6 +15221,7 @@ export namespace sqladmin_v1beta4 {
14526
15221
  * // "kind": "my_kind",
14527
15222
  * // "name": "my_name",
14528
15223
  * // "operationType": "my_operationType",
15224
+ * // "preCheckMajorVersionUpgradeContext": {},
14529
15225
  * // "selfLink": "my_selfLink",
14530
15226
  * // "startTime": "my_startTime",
14531
15227
  * // "status": "my_status",
@@ -14681,6 +15377,7 @@ export namespace sqladmin_v1beta4 {
14681
15377
  * // "dualPasswordType": "my_dualPasswordType",
14682
15378
  * // "etag": "my_etag",
14683
15379
  * // "host": "my_host",
15380
+ * // "iamStatus": "my_iamStatus",
14684
15381
  * // "instance": "my_instance",
14685
15382
  * // "kind": "my_kind",
14686
15383
  * // "name": "my_name",
@@ -14832,6 +15529,7 @@ export namespace sqladmin_v1beta4 {
14832
15529
  * // "dualPasswordType": "my_dualPasswordType",
14833
15530
  * // "etag": "my_etag",
14834
15531
  * // "host": "my_host",
15532
+ * // "iamStatus": "my_iamStatus",
14835
15533
  * // "instance": "my_instance",
14836
15534
  * // "kind": "my_kind",
14837
15535
  * // "name": "my_name",
@@ -14858,6 +15556,7 @@ export namespace sqladmin_v1beta4 {
14858
15556
  * // "kind": "my_kind",
14859
15557
  * // "name": "my_name",
14860
15558
  * // "operationType": "my_operationType",
15559
+ * // "preCheckMajorVersionUpgradeContext": {},
14861
15560
  * // "selfLink": "my_selfLink",
14862
15561
  * // "startTime": "my_startTime",
14863
15562
  * // "status": "my_status",
@@ -15156,6 +15855,7 @@ export namespace sqladmin_v1beta4 {
15156
15855
  * // "dualPasswordType": "my_dualPasswordType",
15157
15856
  * // "etag": "my_etag",
15158
15857
  * // "host": "my_host",
15858
+ * // "iamStatus": "my_iamStatus",
15159
15859
  * // "instance": "my_instance",
15160
15860
  * // "kind": "my_kind",
15161
15861
  * // "name": "my_name",
@@ -15182,6 +15882,7 @@ export namespace sqladmin_v1beta4 {
15182
15882
  * // "kind": "my_kind",
15183
15883
  * // "name": "my_name",
15184
15884
  * // "operationType": "my_operationType",
15885
+ * // "preCheckMajorVersionUpgradeContext": {},
15185
15886
  * // "selfLink": "my_selfLink",
15186
15887
  * // "startTime": "my_startTime",
15187
15888
  * // "status": "my_status",