@googleapis/sqladmin 31.1.0 → 32.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/CHANGELOG.md +135 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v1.d.ts +253 -10
- package/build/v1.js +58 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +253 -10
- package/build/v1beta4.js +59 -1
- package/build/v1beta4.js.map +1 -1
- package/package.json +4 -4
- package/v1.ts +337 -9
- package/v1beta4.ts +338 -9
package/v1.ts
CHANGED
|
@@ -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,27 @@ 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. The maximum number of rows returned per SQL statement.
|
|
1143
|
+
*/
|
|
1144
|
+
rowLimit?: string | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1147
|
+
*/
|
|
1148
|
+
sqlStatement?: string | null;
|
|
1149
|
+
}
|
|
1108
1150
|
/**
|
|
1109
1151
|
* Database instance export context.
|
|
1110
1152
|
*/
|
|
@@ -1194,6 +1236,19 @@ export namespace sqladmin_v1 {
|
|
|
1194
1236
|
*/
|
|
1195
1237
|
settingsVersion?: string | null;
|
|
1196
1238
|
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Config used to determine the final backup settings for the instance.
|
|
1241
|
+
*/
|
|
1242
|
+
export interface Schema$FinalBackupConfig {
|
|
1243
|
+
/**
|
|
1244
|
+
* Whether the final backup is enabled for the instance.
|
|
1245
|
+
*/
|
|
1246
|
+
enabled?: boolean | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* 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).
|
|
1249
|
+
*/
|
|
1250
|
+
retentionDays?: number | null;
|
|
1251
|
+
}
|
|
1197
1252
|
/**
|
|
1198
1253
|
* A flag resource.
|
|
1199
1254
|
*/
|
|
@@ -1579,6 +1634,10 @@ export namespace sqladmin_v1 {
|
|
|
1579
1634
|
* Parameters required to perform the restore backup operation.
|
|
1580
1635
|
*/
|
|
1581
1636
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1637
|
+
/**
|
|
1638
|
+
* 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.
|
|
1639
|
+
*/
|
|
1640
|
+
restoreInstanceClearOverridesFieldNames?: string[] | null;
|
|
1582
1641
|
/**
|
|
1583
1642
|
* 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
1643
|
*/
|
|
@@ -1749,6 +1808,15 @@ export namespace sqladmin_v1 {
|
|
|
1749
1808
|
*/
|
|
1750
1809
|
updateTrack?: string | null;
|
|
1751
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
1813
|
+
*/
|
|
1814
|
+
export interface Schema$Metadata {
|
|
1815
|
+
/**
|
|
1816
|
+
* The time taken to execute the SQL statements.
|
|
1817
|
+
*/
|
|
1818
|
+
sqlStatementExecutionTime?: string | null;
|
|
1819
|
+
}
|
|
1752
1820
|
/**
|
|
1753
1821
|
* Read-replica configuration specific to MySQL databases.
|
|
1754
1822
|
*/
|
|
@@ -2074,7 +2142,7 @@ export namespace sqladmin_v1 {
|
|
|
2074
2142
|
*/
|
|
2075
2143
|
export interface Schema$PointInTimeRestoreContext {
|
|
2076
2144
|
/**
|
|
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.
|
|
2145
|
+
* 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
2146
|
*/
|
|
2079
2147
|
allocatedIpRange?: string | null;
|
|
2080
2148
|
/**
|
|
@@ -2177,6 +2245,27 @@ export namespace sqladmin_v1 {
|
|
|
2177
2245
|
*/
|
|
2178
2246
|
pscEnabled?: boolean | null;
|
|
2179
2247
|
}
|
|
2248
|
+
/**
|
|
2249
|
+
* QueryResult contains the result of executing a single SQL statement.
|
|
2250
|
+
*/
|
|
2251
|
+
export interface Schema$QueryResult {
|
|
2252
|
+
/**
|
|
2253
|
+
* List of columns included in the result. This also includes the data type of the column.
|
|
2254
|
+
*/
|
|
2255
|
+
columns?: Schema$Column[];
|
|
2256
|
+
/**
|
|
2257
|
+
* Message related to the SQL execution result.
|
|
2258
|
+
*/
|
|
2259
|
+
message?: string | null;
|
|
2260
|
+
/**
|
|
2261
|
+
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2262
|
+
*/
|
|
2263
|
+
partialResult?: boolean | null;
|
|
2264
|
+
/**
|
|
2265
|
+
* Rows returned by the SQL statement.
|
|
2266
|
+
*/
|
|
2267
|
+
rows?: Schema$Row[];
|
|
2268
|
+
}
|
|
2180
2269
|
/**
|
|
2181
2270
|
* Read-replica configuration for connecting to the primary instance.
|
|
2182
2271
|
*/
|
|
@@ -2272,6 +2361,15 @@ export namespace sqladmin_v1 {
|
|
|
2272
2361
|
*/
|
|
2273
2362
|
nextVersion?: string | null;
|
|
2274
2363
|
}
|
|
2364
|
+
/**
|
|
2365
|
+
* Contains the values for a row.
|
|
2366
|
+
*/
|
|
2367
|
+
export interface Schema$Row {
|
|
2368
|
+
/**
|
|
2369
|
+
* The values for the row.
|
|
2370
|
+
*/
|
|
2371
|
+
values?: Schema$Value[];
|
|
2372
|
+
}
|
|
2275
2373
|
/**
|
|
2276
2374
|
* A list of objects that the user selects for replication from an external source instance.
|
|
2277
2375
|
*/
|
|
@@ -2373,6 +2471,10 @@ export namespace sqladmin_v1 {
|
|
|
2373
2471
|
* 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
2472
|
*/
|
|
2375
2473
|
enableGoogleMlIntegration?: boolean | null;
|
|
2474
|
+
/**
|
|
2475
|
+
* Optional. The final backup configuration for the instance.
|
|
2476
|
+
*/
|
|
2477
|
+
finalBackupConfig?: Schema$FinalBackupConfig;
|
|
2376
2478
|
/**
|
|
2377
2479
|
* Insights configuration, for now relevant only for Postgres.
|
|
2378
2480
|
*/
|
|
@@ -2446,6 +2548,14 @@ export namespace sqladmin_v1 {
|
|
|
2446
2548
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2447
2549
|
*/
|
|
2448
2550
|
export interface Schema$SqlActiveDirectoryConfig {
|
|
2551
|
+
/**
|
|
2552
|
+
* Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
|
|
2553
|
+
*/
|
|
2554
|
+
adminCredentialSecretName?: string | null;
|
|
2555
|
+
/**
|
|
2556
|
+
* Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
|
|
2557
|
+
*/
|
|
2558
|
+
dnsServers?: string[] | null;
|
|
2449
2559
|
/**
|
|
2450
2560
|
* The name of the domain (e.g., mydomain.com).
|
|
2451
2561
|
*/
|
|
@@ -2454,6 +2564,14 @@ export namespace sqladmin_v1 {
|
|
|
2454
2564
|
* This is always sql#activeDirectoryConfig.
|
|
2455
2565
|
*/
|
|
2456
2566
|
kind?: string | null;
|
|
2567
|
+
/**
|
|
2568
|
+
* Optional. The mode of the Active Directory configuration.
|
|
2569
|
+
*/
|
|
2570
|
+
mode?: string | null;
|
|
2571
|
+
/**
|
|
2572
|
+
* Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
|
|
2573
|
+
*/
|
|
2574
|
+
organizationalUnit?: string | null;
|
|
2457
2575
|
}
|
|
2458
2576
|
/**
|
|
2459
2577
|
* External primary instance migration setting error/warning.
|
|
@@ -2481,6 +2599,19 @@ export namespace sqladmin_v1 {
|
|
|
2481
2599
|
*/
|
|
2482
2600
|
operationId?: string | null;
|
|
2483
2601
|
}
|
|
2602
|
+
/**
|
|
2603
|
+
* Execute SQL statements response.
|
|
2604
|
+
*/
|
|
2605
|
+
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2606
|
+
/**
|
|
2607
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
2608
|
+
*/
|
|
2609
|
+
metadata?: Schema$Metadata;
|
|
2610
|
+
/**
|
|
2611
|
+
* The list of results after executing all the SQL statements.
|
|
2612
|
+
*/
|
|
2613
|
+
results?: Schema$QueryResult[];
|
|
2614
|
+
}
|
|
2484
2615
|
/**
|
|
2485
2616
|
* Instance get disk shrink config response.
|
|
2486
2617
|
*/
|
|
@@ -2545,6 +2676,10 @@ export namespace sqladmin_v1 {
|
|
|
2545
2676
|
* MySQL-specific settings for start external sync.
|
|
2546
2677
|
*/
|
|
2547
2678
|
mysqlSyncConfig?: Schema$MySqlSyncConfig;
|
|
2679
|
+
/**
|
|
2680
|
+
* 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.
|
|
2681
|
+
*/
|
|
2682
|
+
replicaOverwriteEnabled?: boolean | null;
|
|
2548
2683
|
/**
|
|
2549
2684
|
* Whether to skip the verification step (VESS).
|
|
2550
2685
|
*/
|
|
@@ -2957,6 +3092,19 @@ export namespace sqladmin_v1 {
|
|
|
2957
3092
|
*/
|
|
2958
3093
|
nextPageToken?: string | null;
|
|
2959
3094
|
}
|
|
3095
|
+
/**
|
|
3096
|
+
* The cell value of the table.
|
|
3097
|
+
*/
|
|
3098
|
+
export interface Schema$Value {
|
|
3099
|
+
/**
|
|
3100
|
+
* If cell value is null, then this flag will be set to true.
|
|
3101
|
+
*/
|
|
3102
|
+
nullValue?: boolean | null;
|
|
3103
|
+
/**
|
|
3104
|
+
* The cell value in string format.
|
|
3105
|
+
*/
|
|
3106
|
+
value?: string | null;
|
|
3107
|
+
}
|
|
2960
3108
|
|
|
2961
3109
|
export class Resource$Backupruns {
|
|
2962
3110
|
context: APIRequestContext;
|
|
@@ -4810,6 +4958,7 @@ export namespace sqladmin_v1 {
|
|
|
4810
4958
|
* // "dnsNames": [],
|
|
4811
4959
|
* // "ipAddresses": [],
|
|
4812
4960
|
* // "kind": "my_kind",
|
|
4961
|
+
* // "mdxProtocolSupport": [],
|
|
4813
4962
|
* // "nodeCount": 0,
|
|
4814
4963
|
* // "nodes": [],
|
|
4815
4964
|
* // "pscEnabled": false,
|
|
@@ -7338,6 +7487,165 @@ export namespace sqladmin_v1 {
|
|
|
7338
7487
|
}
|
|
7339
7488
|
}
|
|
7340
7489
|
|
|
7490
|
+
/**
|
|
7491
|
+
* Execute SQL statements.
|
|
7492
|
+
* @example
|
|
7493
|
+
* ```js
|
|
7494
|
+
* // Before running the sample:
|
|
7495
|
+
* // - Enable the API at:
|
|
7496
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
7497
|
+
* // - Login into gcloud by running:
|
|
7498
|
+
* // ```sh
|
|
7499
|
+
* // $ gcloud auth application-default login
|
|
7500
|
+
* // ```
|
|
7501
|
+
* // - Install the npm module by running:
|
|
7502
|
+
* // ```sh
|
|
7503
|
+
* // $ npm install googleapis
|
|
7504
|
+
* // ```
|
|
7505
|
+
*
|
|
7506
|
+
* const {google} = require('googleapis');
|
|
7507
|
+
* const sqladmin = google.sqladmin('v1');
|
|
7508
|
+
*
|
|
7509
|
+
* async function main() {
|
|
7510
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7511
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7512
|
+
* scopes: [
|
|
7513
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7514
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
7515
|
+
* ],
|
|
7516
|
+
* });
|
|
7517
|
+
*
|
|
7518
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7519
|
+
* const authClient = await auth.getClient();
|
|
7520
|
+
* google.options({auth: authClient});
|
|
7521
|
+
*
|
|
7522
|
+
* // Do the magic
|
|
7523
|
+
* const res = await sql.instances.executeSql({
|
|
7524
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
7525
|
+
* instance: 'placeholder-value',
|
|
7526
|
+
* // Required. Project ID of the project that contains the instance.
|
|
7527
|
+
* project: 'placeholder-value',
|
|
7528
|
+
*
|
|
7529
|
+
* // Request body metadata
|
|
7530
|
+
* requestBody: {
|
|
7531
|
+
* // request body parameters
|
|
7532
|
+
* // {
|
|
7533
|
+
* // "autoIamAuthn": false,
|
|
7534
|
+
* // "database": "my_database",
|
|
7535
|
+
* // "rowLimit": "my_rowLimit",
|
|
7536
|
+
* // "sqlStatement": "my_sqlStatement"
|
|
7537
|
+
* // }
|
|
7538
|
+
* },
|
|
7539
|
+
* });
|
|
7540
|
+
* console.log(res.data);
|
|
7541
|
+
*
|
|
7542
|
+
* // Example response
|
|
7543
|
+
* // {
|
|
7544
|
+
* // "metadata": {},
|
|
7545
|
+
* // "results": []
|
|
7546
|
+
* // }
|
|
7547
|
+
* }
|
|
7548
|
+
*
|
|
7549
|
+
* main().catch(e => {
|
|
7550
|
+
* console.error(e);
|
|
7551
|
+
* throw e;
|
|
7552
|
+
* });
|
|
7553
|
+
*
|
|
7554
|
+
* ```
|
|
7555
|
+
*
|
|
7556
|
+
* @param params - Parameters for request
|
|
7557
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7558
|
+
* @param callback - Optional callback that handles the response.
|
|
7559
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7560
|
+
*/
|
|
7561
|
+
executeSql(
|
|
7562
|
+
params: Params$Resource$Instances$Executesql,
|
|
7563
|
+
options: StreamMethodOptions
|
|
7564
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7565
|
+
executeSql(
|
|
7566
|
+
params?: Params$Resource$Instances$Executesql,
|
|
7567
|
+
options?: MethodOptions
|
|
7568
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
|
|
7569
|
+
executeSql(
|
|
7570
|
+
params: Params$Resource$Instances$Executesql,
|
|
7571
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7572
|
+
callback: BodyResponseCallback<Readable>
|
|
7573
|
+
): void;
|
|
7574
|
+
executeSql(
|
|
7575
|
+
params: Params$Resource$Instances$Executesql,
|
|
7576
|
+
options:
|
|
7577
|
+
| MethodOptions
|
|
7578
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>,
|
|
7579
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7580
|
+
): void;
|
|
7581
|
+
executeSql(
|
|
7582
|
+
params: Params$Resource$Instances$Executesql,
|
|
7583
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7584
|
+
): void;
|
|
7585
|
+
executeSql(
|
|
7586
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7587
|
+
): void;
|
|
7588
|
+
executeSql(
|
|
7589
|
+
paramsOrCallback?:
|
|
7590
|
+
| Params$Resource$Instances$Executesql
|
|
7591
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7592
|
+
| BodyResponseCallback<Readable>,
|
|
7593
|
+
optionsOrCallback?:
|
|
7594
|
+
| MethodOptions
|
|
7595
|
+
| StreamMethodOptions
|
|
7596
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7597
|
+
| BodyResponseCallback<Readable>,
|
|
7598
|
+
callback?:
|
|
7599
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7600
|
+
| BodyResponseCallback<Readable>
|
|
7601
|
+
):
|
|
7602
|
+
| void
|
|
7603
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>
|
|
7604
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7605
|
+
let params = (paramsOrCallback ||
|
|
7606
|
+
{}) as Params$Resource$Instances$Executesql;
|
|
7607
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7608
|
+
|
|
7609
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7610
|
+
callback = paramsOrCallback;
|
|
7611
|
+
params = {} as Params$Resource$Instances$Executesql;
|
|
7612
|
+
options = {};
|
|
7613
|
+
}
|
|
7614
|
+
|
|
7615
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7616
|
+
callback = optionsOrCallback;
|
|
7617
|
+
options = {};
|
|
7618
|
+
}
|
|
7619
|
+
|
|
7620
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
7621
|
+
const parameters = {
|
|
7622
|
+
options: Object.assign(
|
|
7623
|
+
{
|
|
7624
|
+
url: (
|
|
7625
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/executeSql'
|
|
7626
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7627
|
+
method: 'POST',
|
|
7628
|
+
apiVersion: '',
|
|
7629
|
+
},
|
|
7630
|
+
options
|
|
7631
|
+
),
|
|
7632
|
+
params,
|
|
7633
|
+
requiredParams: ['project', 'instance'],
|
|
7634
|
+
pathParams: ['instance', 'project'],
|
|
7635
|
+
context: this.context,
|
|
7636
|
+
};
|
|
7637
|
+
if (callback) {
|
|
7638
|
+
createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
|
|
7639
|
+
parameters,
|
|
7640
|
+
callback as BodyResponseCallback<unknown>
|
|
7641
|
+
);
|
|
7642
|
+
} else {
|
|
7643
|
+
return createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
|
|
7644
|
+
parameters
|
|
7645
|
+
);
|
|
7646
|
+
}
|
|
7647
|
+
}
|
|
7648
|
+
|
|
7341
7649
|
/**
|
|
7342
7650
|
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
7343
7651
|
* @example
|
|
@@ -7713,7 +8021,6 @@ export namespace sqladmin_v1 {
|
|
|
7713
8021
|
* // {
|
|
7714
8022
|
* // "availableMaintenanceVersions": [],
|
|
7715
8023
|
* // "backendType": "my_backendType",
|
|
7716
|
-
* // "clearNetwork": false,
|
|
7717
8024
|
* // "connectionName": "my_connectionName",
|
|
7718
8025
|
* // "createTime": "my_createTime",
|
|
7719
8026
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -8065,7 +8372,6 @@ export namespace sqladmin_v1 {
|
|
|
8065
8372
|
* // {
|
|
8066
8373
|
* // "availableMaintenanceVersions": [],
|
|
8067
8374
|
* // "backendType": "my_backendType",
|
|
8068
|
-
* // "clearNetwork": false,
|
|
8069
8375
|
* // "connectionName": "my_connectionName",
|
|
8070
8376
|
* // "createTime": "my_createTime",
|
|
8071
8377
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -8738,7 +9044,6 @@ export namespace sqladmin_v1 {
|
|
|
8738
9044
|
* // {
|
|
8739
9045
|
* // "availableMaintenanceVersions": [],
|
|
8740
9046
|
* // "backendType": "my_backendType",
|
|
8741
|
-
* // "clearNetwork": false,
|
|
8742
9047
|
* // "connectionName": "my_connectionName",
|
|
8743
9048
|
* // "createTime": "my_createTime",
|
|
8744
9049
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -9928,6 +10233,7 @@ export namespace sqladmin_v1 {
|
|
|
9928
10233
|
* // "backup": "my_backup",
|
|
9929
10234
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
9930
10235
|
* // "restoreBackupContext": {},
|
|
10236
|
+
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
9931
10237
|
* // "restoreInstanceSettings": {}
|
|
9932
10238
|
* // }
|
|
9933
10239
|
* },
|
|
@@ -11085,7 +11391,6 @@ export namespace sqladmin_v1 {
|
|
|
11085
11391
|
* // {
|
|
11086
11392
|
* // "availableMaintenanceVersions": [],
|
|
11087
11393
|
* // "backendType": "my_backendType",
|
|
11088
|
-
* // "clearNetwork": false,
|
|
11089
11394
|
* // "connectionName": "my_connectionName",
|
|
11090
11395
|
* // "createTime": "my_createTime",
|
|
11091
11396
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -11368,6 +11673,22 @@ export namespace sqladmin_v1 {
|
|
|
11368
11673
|
*/
|
|
11369
11674
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
11370
11675
|
}
|
|
11676
|
+
export interface Params$Resource$Instances$Executesql
|
|
11677
|
+
extends StandardParameters {
|
|
11678
|
+
/**
|
|
11679
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
11680
|
+
*/
|
|
11681
|
+
instance?: string;
|
|
11682
|
+
/**
|
|
11683
|
+
* Required. Project ID of the project that contains the instance.
|
|
11684
|
+
*/
|
|
11685
|
+
project?: string;
|
|
11686
|
+
|
|
11687
|
+
/**
|
|
11688
|
+
* Request body metadata
|
|
11689
|
+
*/
|
|
11690
|
+
requestBody?: Schema$ExecuteSqlPayload;
|
|
11691
|
+
}
|
|
11371
11692
|
export interface Params$Resource$Instances$Export extends StandardParameters {
|
|
11372
11693
|
/**
|
|
11373
11694
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -12383,6 +12704,8 @@ export namespace sqladmin_v1 {
|
|
|
12383
12704
|
* instance: 'placeholder-value',
|
|
12384
12705
|
* // Project ID of the project that contains the instance.
|
|
12385
12706
|
* project: 'placeholder-value',
|
|
12707
|
+
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
12708
|
+
* sourceInstanceDeletionTime: 'placeholder-value',
|
|
12386
12709
|
* });
|
|
12387
12710
|
* console.log(res.data);
|
|
12388
12711
|
*
|
|
@@ -13047,6 +13370,7 @@ export namespace sqladmin_v1 {
|
|
|
13047
13370
|
* // {
|
|
13048
13371
|
* // "migrationType": "my_migrationType",
|
|
13049
13372
|
* // "mysqlSyncConfig": {},
|
|
13373
|
+
* // "replicaOverwriteEnabled": false,
|
|
13050
13374
|
* // "skipVerification": false,
|
|
13051
13375
|
* // "syncMode": "my_syncMode",
|
|
13052
13376
|
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
@@ -13365,6 +13689,10 @@ export namespace sqladmin_v1 {
|
|
|
13365
13689
|
* Project ID of the project that contains the instance.
|
|
13366
13690
|
*/
|
|
13367
13691
|
project?: string;
|
|
13692
|
+
/**
|
|
13693
|
+
* The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
13694
|
+
*/
|
|
13695
|
+
sourceInstanceDeletionTime?: string;
|
|
13368
13696
|
}
|
|
13369
13697
|
export interface Params$Resource$Projects$Instances$Performdiskshrink
|
|
13370
13698
|
extends StandardParameters {
|