@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/v1beta4.ts
CHANGED
|
@@ -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,27 @@ 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. The maximum number of rows returned per SQL statement.
|
|
1146
|
+
*/
|
|
1147
|
+
rowLimit?: string | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1150
|
+
*/
|
|
1151
|
+
sqlStatement?: string | null;
|
|
1152
|
+
}
|
|
1111
1153
|
/**
|
|
1112
1154
|
* Database instance export context.
|
|
1113
1155
|
*/
|
|
@@ -1197,6 +1239,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
1197
1239
|
*/
|
|
1198
1240
|
settingsVersion?: string | null;
|
|
1199
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Config used to determine the final backup settings for the instance.
|
|
1244
|
+
*/
|
|
1245
|
+
export interface Schema$FinalBackupConfig {
|
|
1246
|
+
/**
|
|
1247
|
+
* Whether the final backup is enabled for the instance.
|
|
1248
|
+
*/
|
|
1249
|
+
enabled?: boolean | null;
|
|
1250
|
+
/**
|
|
1251
|
+
* 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).
|
|
1252
|
+
*/
|
|
1253
|
+
retentionDays?: number | null;
|
|
1254
|
+
}
|
|
1200
1255
|
/**
|
|
1201
1256
|
* A flag resource.
|
|
1202
1257
|
*/
|
|
@@ -1582,6 +1637,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1582
1637
|
* Parameters required to perform the restore backup operation.
|
|
1583
1638
|
*/
|
|
1584
1639
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1640
|
+
/**
|
|
1641
|
+
* 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.
|
|
1642
|
+
*/
|
|
1643
|
+
restoreInstanceClearOverridesFieldNames?: string[] | null;
|
|
1585
1644
|
/**
|
|
1586
1645
|
* 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
1646
|
*/
|
|
@@ -1752,6 +1811,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
1752
1811
|
*/
|
|
1753
1812
|
updateTrack?: string | null;
|
|
1754
1813
|
}
|
|
1814
|
+
/**
|
|
1815
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
1816
|
+
*/
|
|
1817
|
+
export interface Schema$Metadata {
|
|
1818
|
+
/**
|
|
1819
|
+
* The time taken to execute the SQL statements.
|
|
1820
|
+
*/
|
|
1821
|
+
sqlStatementExecutionTime?: string | null;
|
|
1822
|
+
}
|
|
1755
1823
|
/**
|
|
1756
1824
|
* Read-replica configuration specific to MySQL databases.
|
|
1757
1825
|
*/
|
|
@@ -2077,7 +2145,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2077
2145
|
*/
|
|
2078
2146
|
export interface Schema$PointInTimeRestoreContext {
|
|
2079
2147
|
/**
|
|
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.
|
|
2148
|
+
* 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
2149
|
*/
|
|
2082
2150
|
allocatedIpRange?: string | null;
|
|
2083
2151
|
/**
|
|
@@ -2180,6 +2248,27 @@ export namespace sqladmin_v1beta4 {
|
|
|
2180
2248
|
*/
|
|
2181
2249
|
pscEnabled?: boolean | null;
|
|
2182
2250
|
}
|
|
2251
|
+
/**
|
|
2252
|
+
* QueryResult contains the result of executing a single SQL statement.
|
|
2253
|
+
*/
|
|
2254
|
+
export interface Schema$QueryResult {
|
|
2255
|
+
/**
|
|
2256
|
+
* List of columns included in the result. This also includes the data type of the column.
|
|
2257
|
+
*/
|
|
2258
|
+
columns?: Schema$Column[];
|
|
2259
|
+
/**
|
|
2260
|
+
* Message related to the SQL execution result.
|
|
2261
|
+
*/
|
|
2262
|
+
message?: string | null;
|
|
2263
|
+
/**
|
|
2264
|
+
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2265
|
+
*/
|
|
2266
|
+
partialResult?: boolean | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* Rows returned by the SQL statement.
|
|
2269
|
+
*/
|
|
2270
|
+
rows?: Schema$Row[];
|
|
2271
|
+
}
|
|
2183
2272
|
/**
|
|
2184
2273
|
* Read-replica configuration for connecting to the primary instance.
|
|
2185
2274
|
*/
|
|
@@ -2275,6 +2364,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
2275
2364
|
*/
|
|
2276
2365
|
nextVersion?: string | null;
|
|
2277
2366
|
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Contains the values for a row.
|
|
2369
|
+
*/
|
|
2370
|
+
export interface Schema$Row {
|
|
2371
|
+
/**
|
|
2372
|
+
* The values for the row.
|
|
2373
|
+
*/
|
|
2374
|
+
values?: Schema$Value[];
|
|
2375
|
+
}
|
|
2278
2376
|
/**
|
|
2279
2377
|
* A list of objects that the user selects for replication from an external source instance.
|
|
2280
2378
|
*/
|
|
@@ -2376,6 +2474,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2376
2474
|
* 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
2475
|
*/
|
|
2378
2476
|
enableGoogleMlIntegration?: boolean | null;
|
|
2477
|
+
/**
|
|
2478
|
+
* Optional. The final backup configuration for the instance.
|
|
2479
|
+
*/
|
|
2480
|
+
finalBackupConfig?: Schema$FinalBackupConfig;
|
|
2379
2481
|
/**
|
|
2380
2482
|
* Insights configuration, for now relevant only for Postgres.
|
|
2381
2483
|
*/
|
|
@@ -2449,6 +2551,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
2449
2551
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2450
2552
|
*/
|
|
2451
2553
|
export interface Schema$SqlActiveDirectoryConfig {
|
|
2554
|
+
/**
|
|
2555
|
+
* Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
|
|
2556
|
+
*/
|
|
2557
|
+
adminCredentialSecretName?: string | null;
|
|
2558
|
+
/**
|
|
2559
|
+
* Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
|
|
2560
|
+
*/
|
|
2561
|
+
dnsServers?: string[] | null;
|
|
2452
2562
|
/**
|
|
2453
2563
|
* The name of the domain (e.g., mydomain.com).
|
|
2454
2564
|
*/
|
|
@@ -2457,6 +2567,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
2457
2567
|
* This is always sql#activeDirectoryConfig.
|
|
2458
2568
|
*/
|
|
2459
2569
|
kind?: string | null;
|
|
2570
|
+
/**
|
|
2571
|
+
* Optional. The mode of the Active Directory configuration.
|
|
2572
|
+
*/
|
|
2573
|
+
mode?: string | null;
|
|
2574
|
+
/**
|
|
2575
|
+
* Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
|
|
2576
|
+
*/
|
|
2577
|
+
organizationalUnit?: string | null;
|
|
2460
2578
|
}
|
|
2461
2579
|
/**
|
|
2462
2580
|
* External primary instance migration setting error/warning.
|
|
@@ -2484,6 +2602,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
2484
2602
|
*/
|
|
2485
2603
|
operationId?: string | null;
|
|
2486
2604
|
}
|
|
2605
|
+
/**
|
|
2606
|
+
* Execute SQL statements response.
|
|
2607
|
+
*/
|
|
2608
|
+
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2609
|
+
/**
|
|
2610
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
2611
|
+
*/
|
|
2612
|
+
metadata?: Schema$Metadata;
|
|
2613
|
+
/**
|
|
2614
|
+
* The list of results after executing all the SQL statements.
|
|
2615
|
+
*/
|
|
2616
|
+
results?: Schema$QueryResult[];
|
|
2617
|
+
}
|
|
2487
2618
|
/**
|
|
2488
2619
|
* Instance get disk shrink config response.
|
|
2489
2620
|
*/
|
|
@@ -2545,6 +2676,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
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
|
*/
|
|
@@ -2954,6 +3089,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
2954
3089
|
*/
|
|
2955
3090
|
nextPageToken?: string | null;
|
|
2956
3091
|
}
|
|
3092
|
+
/**
|
|
3093
|
+
* The cell value of the table.
|
|
3094
|
+
*/
|
|
3095
|
+
export interface Schema$Value {
|
|
3096
|
+
/**
|
|
3097
|
+
* If cell value is null, then this flag will be set to true.
|
|
3098
|
+
*/
|
|
3099
|
+
nullValue?: boolean | null;
|
|
3100
|
+
/**
|
|
3101
|
+
* The cell value represented in string format.
|
|
3102
|
+
*/
|
|
3103
|
+
value?: string | null;
|
|
3104
|
+
}
|
|
2957
3105
|
|
|
2958
3106
|
export class Resource$Backupruns {
|
|
2959
3107
|
context: APIRequestContext;
|
|
@@ -4818,6 +4966,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4818
4966
|
* // "dnsNames": [],
|
|
4819
4967
|
* // "ipAddresses": [],
|
|
4820
4968
|
* // "kind": "my_kind",
|
|
4969
|
+
* // "mdxProtocolSupport": [],
|
|
4821
4970
|
* // "nodeCount": 0,
|
|
4822
4971
|
* // "nodes": [],
|
|
4823
4972
|
* // "pscEnabled": false,
|
|
@@ -7350,6 +7499,166 @@ export namespace sqladmin_v1beta4 {
|
|
|
7350
7499
|
}
|
|
7351
7500
|
}
|
|
7352
7501
|
|
|
7502
|
+
/**
|
|
7503
|
+
* Execute SQL statements.
|
|
7504
|
+
* @example
|
|
7505
|
+
* ```js
|
|
7506
|
+
* // Before running the sample:
|
|
7507
|
+
* // - Enable the API at:
|
|
7508
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
7509
|
+
* // - Login into gcloud by running:
|
|
7510
|
+
* // ```sh
|
|
7511
|
+
* // $ gcloud auth application-default login
|
|
7512
|
+
* // ```
|
|
7513
|
+
* // - Install the npm module by running:
|
|
7514
|
+
* // ```sh
|
|
7515
|
+
* // $ npm install googleapis
|
|
7516
|
+
* // ```
|
|
7517
|
+
*
|
|
7518
|
+
* const {google} = require('googleapis');
|
|
7519
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
7520
|
+
*
|
|
7521
|
+
* async function main() {
|
|
7522
|
+
* const auth = new google.auth.GoogleAuth({
|
|
7523
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7524
|
+
* scopes: [
|
|
7525
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7526
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
7527
|
+
* ],
|
|
7528
|
+
* });
|
|
7529
|
+
*
|
|
7530
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
7531
|
+
* const authClient = await auth.getClient();
|
|
7532
|
+
* google.options({auth: authClient});
|
|
7533
|
+
*
|
|
7534
|
+
* // Do the magic
|
|
7535
|
+
* const res = await sql.instances.executeSql({
|
|
7536
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
7537
|
+
* instance: 'placeholder-value',
|
|
7538
|
+
* // Required. Project ID of the project that contains the instance.
|
|
7539
|
+
* project: 'placeholder-value',
|
|
7540
|
+
*
|
|
7541
|
+
* // Request body metadata
|
|
7542
|
+
* requestBody: {
|
|
7543
|
+
* // request body parameters
|
|
7544
|
+
* // {
|
|
7545
|
+
* // "autoIamAuthn": false,
|
|
7546
|
+
* // "database": "my_database",
|
|
7547
|
+
* // "rowLimit": "my_rowLimit",
|
|
7548
|
+
* // "sqlStatement": "my_sqlStatement"
|
|
7549
|
+
* // }
|
|
7550
|
+
* },
|
|
7551
|
+
* });
|
|
7552
|
+
* console.log(res.data);
|
|
7553
|
+
*
|
|
7554
|
+
* // Example response
|
|
7555
|
+
* // {
|
|
7556
|
+
* // "metadata": {},
|
|
7557
|
+
* // "results": []
|
|
7558
|
+
* // }
|
|
7559
|
+
* }
|
|
7560
|
+
*
|
|
7561
|
+
* main().catch(e => {
|
|
7562
|
+
* console.error(e);
|
|
7563
|
+
* throw e;
|
|
7564
|
+
* });
|
|
7565
|
+
*
|
|
7566
|
+
* ```
|
|
7567
|
+
*
|
|
7568
|
+
* @param params - Parameters for request
|
|
7569
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7570
|
+
* @param callback - Optional callback that handles the response.
|
|
7571
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7572
|
+
*/
|
|
7573
|
+
executeSql(
|
|
7574
|
+
params: Params$Resource$Instances$Executesql,
|
|
7575
|
+
options: StreamMethodOptions
|
|
7576
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
7577
|
+
executeSql(
|
|
7578
|
+
params?: Params$Resource$Instances$Executesql,
|
|
7579
|
+
options?: MethodOptions
|
|
7580
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
|
|
7581
|
+
executeSql(
|
|
7582
|
+
params: Params$Resource$Instances$Executesql,
|
|
7583
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7584
|
+
callback: BodyResponseCallback<Readable>
|
|
7585
|
+
): void;
|
|
7586
|
+
executeSql(
|
|
7587
|
+
params: Params$Resource$Instances$Executesql,
|
|
7588
|
+
options:
|
|
7589
|
+
| MethodOptions
|
|
7590
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>,
|
|
7591
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7592
|
+
): void;
|
|
7593
|
+
executeSql(
|
|
7594
|
+
params: Params$Resource$Instances$Executesql,
|
|
7595
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7596
|
+
): void;
|
|
7597
|
+
executeSql(
|
|
7598
|
+
callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7599
|
+
): void;
|
|
7600
|
+
executeSql(
|
|
7601
|
+
paramsOrCallback?:
|
|
7602
|
+
| Params$Resource$Instances$Executesql
|
|
7603
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7604
|
+
| BodyResponseCallback<Readable>,
|
|
7605
|
+
optionsOrCallback?:
|
|
7606
|
+
| MethodOptions
|
|
7607
|
+
| StreamMethodOptions
|
|
7608
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7609
|
+
| BodyResponseCallback<Readable>,
|
|
7610
|
+
callback?:
|
|
7611
|
+
| BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>
|
|
7612
|
+
| BodyResponseCallback<Readable>
|
|
7613
|
+
):
|
|
7614
|
+
| void
|
|
7615
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>
|
|
7616
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
7617
|
+
let params = (paramsOrCallback ||
|
|
7618
|
+
{}) as Params$Resource$Instances$Executesql;
|
|
7619
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7620
|
+
|
|
7621
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7622
|
+
callback = paramsOrCallback;
|
|
7623
|
+
params = {} as Params$Resource$Instances$Executesql;
|
|
7624
|
+
options = {};
|
|
7625
|
+
}
|
|
7626
|
+
|
|
7627
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7628
|
+
callback = optionsOrCallback;
|
|
7629
|
+
options = {};
|
|
7630
|
+
}
|
|
7631
|
+
|
|
7632
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
7633
|
+
const parameters = {
|
|
7634
|
+
options: Object.assign(
|
|
7635
|
+
{
|
|
7636
|
+
url: (
|
|
7637
|
+
rootUrl +
|
|
7638
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/executeSql'
|
|
7639
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
7640
|
+
method: 'POST',
|
|
7641
|
+
apiVersion: '',
|
|
7642
|
+
},
|
|
7643
|
+
options
|
|
7644
|
+
),
|
|
7645
|
+
params,
|
|
7646
|
+
requiredParams: ['project', 'instance'],
|
|
7647
|
+
pathParams: ['instance', 'project'],
|
|
7648
|
+
context: this.context,
|
|
7649
|
+
};
|
|
7650
|
+
if (callback) {
|
|
7651
|
+
createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
|
|
7652
|
+
parameters,
|
|
7653
|
+
callback as BodyResponseCallback<unknown>
|
|
7654
|
+
);
|
|
7655
|
+
} else {
|
|
7656
|
+
return createAPIRequest<Schema$SqlInstancesExecuteSqlResponse>(
|
|
7657
|
+
parameters
|
|
7658
|
+
);
|
|
7659
|
+
}
|
|
7660
|
+
}
|
|
7661
|
+
|
|
7353
7662
|
/**
|
|
7354
7663
|
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
7355
7664
|
* @example
|
|
@@ -7727,7 +8036,6 @@ export namespace sqladmin_v1beta4 {
|
|
|
7727
8036
|
* // {
|
|
7728
8037
|
* // "availableMaintenanceVersions": [],
|
|
7729
8038
|
* // "backendType": "my_backendType",
|
|
7730
|
-
* // "clearNetwork": false,
|
|
7731
8039
|
* // "connectionName": "my_connectionName",
|
|
7732
8040
|
* // "createTime": "my_createTime",
|
|
7733
8041
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -8080,7 +8388,6 @@ export namespace sqladmin_v1beta4 {
|
|
|
8080
8388
|
* // {
|
|
8081
8389
|
* // "availableMaintenanceVersions": [],
|
|
8082
8390
|
* // "backendType": "my_backendType",
|
|
8083
|
-
* // "clearNetwork": false,
|
|
8084
8391
|
* // "connectionName": "my_connectionName",
|
|
8085
8392
|
* // "createTime": "my_createTime",
|
|
8086
8393
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -8751,7 +9058,6 @@ export namespace sqladmin_v1beta4 {
|
|
|
8751
9058
|
* // {
|
|
8752
9059
|
* // "availableMaintenanceVersions": [],
|
|
8753
9060
|
* // "backendType": "my_backendType",
|
|
8754
|
-
* // "clearNetwork": false,
|
|
8755
9061
|
* // "connectionName": "my_connectionName",
|
|
8756
9062
|
* // "createTime": "my_createTime",
|
|
8757
9063
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -9942,6 +10248,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
9942
10248
|
* // "backup": "my_backup",
|
|
9943
10249
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
9944
10250
|
* // "restoreBackupContext": {},
|
|
10251
|
+
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
9945
10252
|
* // "restoreInstanceSettings": {}
|
|
9946
10253
|
* // }
|
|
9947
10254
|
* },
|
|
@@ -11100,7 +11407,6 @@ export namespace sqladmin_v1beta4 {
|
|
|
11100
11407
|
* // {
|
|
11101
11408
|
* // "availableMaintenanceVersions": [],
|
|
11102
11409
|
* // "backendType": "my_backendType",
|
|
11103
|
-
* // "clearNetwork": false,
|
|
11104
11410
|
* // "connectionName": "my_connectionName",
|
|
11105
11411
|
* // "createTime": "my_createTime",
|
|
11106
11412
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -11383,6 +11689,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
11383
11689
|
*/
|
|
11384
11690
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
11385
11691
|
}
|
|
11692
|
+
export interface Params$Resource$Instances$Executesql
|
|
11693
|
+
extends StandardParameters {
|
|
11694
|
+
/**
|
|
11695
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
11696
|
+
*/
|
|
11697
|
+
instance?: string;
|
|
11698
|
+
/**
|
|
11699
|
+
* Required. Project ID of the project that contains the instance.
|
|
11700
|
+
*/
|
|
11701
|
+
project?: string;
|
|
11702
|
+
|
|
11703
|
+
/**
|
|
11704
|
+
* Request body metadata
|
|
11705
|
+
*/
|
|
11706
|
+
requestBody?: Schema$ExecuteSqlPayload;
|
|
11707
|
+
}
|
|
11386
11708
|
export interface Params$Resource$Instances$Export extends StandardParameters {
|
|
11387
11709
|
/**
|
|
11388
11710
|
* The Cloud SQL instance ID. This doesn't include the project ID.
|
|
@@ -12398,6 +12720,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
12398
12720
|
* instance: 'placeholder-value',
|
|
12399
12721
|
* // Project ID of the project that contains the instance.
|
|
12400
12722
|
* project: 'placeholder-value',
|
|
12723
|
+
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
12724
|
+
* sourceInstanceDeletionTime: 'placeholder-value',
|
|
12401
12725
|
* });
|
|
12402
12726
|
* console.log(res.data);
|
|
12403
12727
|
*
|
|
@@ -13062,6 +13386,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
13062
13386
|
* // {
|
|
13063
13387
|
* // "migrationType": "my_migrationType",
|
|
13064
13388
|
* // "mysqlSyncConfig": {},
|
|
13389
|
+
* // "replicaOverwriteEnabled": false,
|
|
13065
13390
|
* // "skipVerification": false,
|
|
13066
13391
|
* // "syncMode": "my_syncMode",
|
|
13067
13392
|
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
@@ -13380,6 +13705,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
13380
13705
|
* Project ID of the project that contains the instance.
|
|
13381
13706
|
*/
|
|
13382
13707
|
project?: string;
|
|
13708
|
+
/**
|
|
13709
|
+
* The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
13710
|
+
*/
|
|
13711
|
+
sourceInstanceDeletionTime?: string;
|
|
13383
13712
|
}
|
|
13384
13713
|
export interface Params$Resource$Projects$Instances$Performdiskshrink
|
|
13385
13714
|
extends StandardParameters {
|