@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/build/v1beta4.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
2
|
import { Readable } from 'stream';
|
|
4
3
|
export declare namespace sqladmin_v1beta4 {
|
|
@@ -510,6 +509,23 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
510
509
|
* Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance.
|
|
511
510
|
*/
|
|
512
511
|
preferredZone?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
514
|
+
*/
|
|
515
|
+
sourceInstanceDeletionTime?: string | null;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Contains the name and datatype of a column.
|
|
519
|
+
*/
|
|
520
|
+
export interface Schema$Column {
|
|
521
|
+
/**
|
|
522
|
+
* Name of the column.
|
|
523
|
+
*/
|
|
524
|
+
name?: string | null;
|
|
525
|
+
/**
|
|
526
|
+
* Datatype of the column.
|
|
527
|
+
*/
|
|
528
|
+
type?: string | null;
|
|
513
529
|
}
|
|
514
530
|
/**
|
|
515
531
|
* The managed connection pooling configuration.
|
|
@@ -523,6 +539,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
523
539
|
* Optional. List of connection pool configuration flags.
|
|
524
540
|
*/
|
|
525
541
|
flags?: Schema$ConnectionPoolFlags[];
|
|
542
|
+
/**
|
|
543
|
+
* Output only. Number of connection poolers.
|
|
544
|
+
*/
|
|
545
|
+
poolerCount?: number | null;
|
|
526
546
|
}
|
|
527
547
|
/**
|
|
528
548
|
* Connection pool flags for Cloud SQL instances managed connection pool configuration.
|
|
@@ -590,6 +610,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
590
610
|
* This is always `sql#connectSettings`.
|
|
591
611
|
*/
|
|
592
612
|
kind?: string | null;
|
|
613
|
+
/**
|
|
614
|
+
* Optional. Output only. mdx_protocol_support controls how the client uses metadata exchange when connecting to the instance. The values in the list representing parts of the MDX protocol that are supported by this instance. When the list is empty, the instance does not support MDX, so the client must not send an MDX request. The default is empty.
|
|
615
|
+
*/
|
|
616
|
+
mdxProtocolSupport?: string[] | null;
|
|
593
617
|
/**
|
|
594
618
|
* The number of read pool nodes in a read pool.
|
|
595
619
|
*/
|
|
@@ -678,10 +702,6 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
678
702
|
* The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
|
|
679
703
|
*/
|
|
680
704
|
backendType?: string | null;
|
|
681
|
-
/**
|
|
682
|
-
* Clears private network settings when the instance is restored.
|
|
683
|
-
*/
|
|
684
|
-
clearNetwork?: boolean | null;
|
|
685
705
|
/**
|
|
686
706
|
* Connection name of the Cloud SQL instance used in connection strings.
|
|
687
707
|
*/
|
|
@@ -1051,6 +1071,27 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
1051
1071
|
*/
|
|
1052
1072
|
export interface Schema$Empty {
|
|
1053
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* The request payload used to execute SQL statements.
|
|
1076
|
+
*/
|
|
1077
|
+
export interface Schema$ExecuteSqlPayload {
|
|
1078
|
+
/**
|
|
1079
|
+
* Optional. When set to true, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.
|
|
1080
|
+
*/
|
|
1081
|
+
autoIamAuthn?: boolean | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* Optional. Name of the database on which the statement will be executed.
|
|
1084
|
+
*/
|
|
1085
|
+
database?: string | null;
|
|
1086
|
+
/**
|
|
1087
|
+
* Optional. The maximum number of rows returned per SQL statement.
|
|
1088
|
+
*/
|
|
1089
|
+
rowLimit?: string | null;
|
|
1090
|
+
/**
|
|
1091
|
+
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1092
|
+
*/
|
|
1093
|
+
sqlStatement?: string | null;
|
|
1094
|
+
}
|
|
1054
1095
|
/**
|
|
1055
1096
|
* Database instance export context.
|
|
1056
1097
|
*/
|
|
@@ -1145,6 +1186,19 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
1145
1186
|
*/
|
|
1146
1187
|
settingsVersion?: string | null;
|
|
1147
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Config used to determine the final backup settings for the instance.
|
|
1191
|
+
*/
|
|
1192
|
+
export interface Schema$FinalBackupConfig {
|
|
1193
|
+
/**
|
|
1194
|
+
* Whether the final backup is enabled for the instance.
|
|
1195
|
+
*/
|
|
1196
|
+
enabled?: boolean | null;
|
|
1197
|
+
/**
|
|
1198
|
+
* 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).
|
|
1199
|
+
*/
|
|
1200
|
+
retentionDays?: number | null;
|
|
1201
|
+
}
|
|
1148
1202
|
/**
|
|
1149
1203
|
* A flag resource.
|
|
1150
1204
|
*/
|
|
@@ -1533,6 +1587,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
1533
1587
|
* Parameters required to perform the restore backup operation.
|
|
1534
1588
|
*/
|
|
1535
1589
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1590
|
+
/**
|
|
1591
|
+
* 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.
|
|
1592
|
+
*/
|
|
1593
|
+
restoreInstanceClearOverridesFieldNames?: string[] | null;
|
|
1536
1594
|
/**
|
|
1537
1595
|
* Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
|
|
1538
1596
|
*/
|
|
@@ -1703,6 +1761,15 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
1703
1761
|
*/
|
|
1704
1762
|
updateTrack?: string | null;
|
|
1705
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
1766
|
+
*/
|
|
1767
|
+
export interface Schema$Metadata {
|
|
1768
|
+
/**
|
|
1769
|
+
* The time taken to execute the SQL statements.
|
|
1770
|
+
*/
|
|
1771
|
+
sqlStatementExecutionTime?: string | null;
|
|
1772
|
+
}
|
|
1706
1773
|
/**
|
|
1707
1774
|
* Read-replica configuration specific to MySQL databases.
|
|
1708
1775
|
*/
|
|
@@ -2028,7 +2095,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2028
2095
|
*/
|
|
2029
2096
|
export interface Schema$PointInTimeRestoreContext {
|
|
2030
2097
|
/**
|
|
2031
|
-
* Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
|
|
2098
|
+
* Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
|
|
2032
2099
|
*/
|
|
2033
2100
|
allocatedIpRange?: string | null;
|
|
2034
2101
|
/**
|
|
@@ -2131,6 +2198,27 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2131
2198
|
*/
|
|
2132
2199
|
pscEnabled?: boolean | null;
|
|
2133
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* QueryResult contains the result of executing a single SQL statement.
|
|
2203
|
+
*/
|
|
2204
|
+
export interface Schema$QueryResult {
|
|
2205
|
+
/**
|
|
2206
|
+
* List of columns included in the result. This also includes the data type of the column.
|
|
2207
|
+
*/
|
|
2208
|
+
columns?: Schema$Column[];
|
|
2209
|
+
/**
|
|
2210
|
+
* Message related to the SQL execution result.
|
|
2211
|
+
*/
|
|
2212
|
+
message?: string | null;
|
|
2213
|
+
/**
|
|
2214
|
+
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2215
|
+
*/
|
|
2216
|
+
partialResult?: boolean | null;
|
|
2217
|
+
/**
|
|
2218
|
+
* Rows returned by the SQL statement.
|
|
2219
|
+
*/
|
|
2220
|
+
rows?: Schema$Row[];
|
|
2221
|
+
}
|
|
2134
2222
|
/**
|
|
2135
2223
|
* Read-replica configuration for connecting to the primary instance.
|
|
2136
2224
|
*/
|
|
@@ -2226,6 +2314,15 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2226
2314
|
*/
|
|
2227
2315
|
nextVersion?: string | null;
|
|
2228
2316
|
}
|
|
2317
|
+
/**
|
|
2318
|
+
* Contains the values for a row.
|
|
2319
|
+
*/
|
|
2320
|
+
export interface Schema$Row {
|
|
2321
|
+
/**
|
|
2322
|
+
* The values for the row.
|
|
2323
|
+
*/
|
|
2324
|
+
values?: Schema$Value[];
|
|
2325
|
+
}
|
|
2229
2326
|
/**
|
|
2230
2327
|
* A list of objects that the user selects for replication from an external source instance.
|
|
2231
2328
|
*/
|
|
@@ -2327,6 +2424,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2327
2424
|
* Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
|
|
2328
2425
|
*/
|
|
2329
2426
|
enableGoogleMlIntegration?: boolean | null;
|
|
2427
|
+
/**
|
|
2428
|
+
* Optional. The final backup configuration for the instance.
|
|
2429
|
+
*/
|
|
2430
|
+
finalBackupConfig?: Schema$FinalBackupConfig;
|
|
2330
2431
|
/**
|
|
2331
2432
|
* Insights configuration, for now relevant only for Postgres.
|
|
2332
2433
|
*/
|
|
@@ -2402,6 +2503,14 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2402
2503
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2403
2504
|
*/
|
|
2404
2505
|
export interface Schema$SqlActiveDirectoryConfig {
|
|
2506
|
+
/**
|
|
2507
|
+
* Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
|
|
2508
|
+
*/
|
|
2509
|
+
adminCredentialSecretName?: string | null;
|
|
2510
|
+
/**
|
|
2511
|
+
* Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
|
|
2512
|
+
*/
|
|
2513
|
+
dnsServers?: string[] | null;
|
|
2405
2514
|
/**
|
|
2406
2515
|
* The name of the domain (e.g., mydomain.com).
|
|
2407
2516
|
*/
|
|
@@ -2410,6 +2519,14 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2410
2519
|
* This is always sql#activeDirectoryConfig.
|
|
2411
2520
|
*/
|
|
2412
2521
|
kind?: string | null;
|
|
2522
|
+
/**
|
|
2523
|
+
* Optional. The mode of the Active Directory configuration.
|
|
2524
|
+
*/
|
|
2525
|
+
mode?: string | null;
|
|
2526
|
+
/**
|
|
2527
|
+
* Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
|
|
2528
|
+
*/
|
|
2529
|
+
organizationalUnit?: string | null;
|
|
2413
2530
|
}
|
|
2414
2531
|
/**
|
|
2415
2532
|
* External primary instance migration setting error/warning.
|
|
@@ -2437,6 +2554,19 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2437
2554
|
*/
|
|
2438
2555
|
operationId?: string | null;
|
|
2439
2556
|
}
|
|
2557
|
+
/**
|
|
2558
|
+
* Execute SQL statements response.
|
|
2559
|
+
*/
|
|
2560
|
+
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2561
|
+
/**
|
|
2562
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
2563
|
+
*/
|
|
2564
|
+
metadata?: Schema$Metadata;
|
|
2565
|
+
/**
|
|
2566
|
+
* The list of results after executing all the SQL statements.
|
|
2567
|
+
*/
|
|
2568
|
+
results?: Schema$QueryResult[];
|
|
2569
|
+
}
|
|
2440
2570
|
/**
|
|
2441
2571
|
* Instance get disk shrink config response.
|
|
2442
2572
|
*/
|
|
@@ -2499,6 +2629,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2499
2629
|
* MySQL-specific settings for start external sync.
|
|
2500
2630
|
*/
|
|
2501
2631
|
mysqlSyncConfig?: Schema$MySqlSyncConfig;
|
|
2632
|
+
/**
|
|
2633
|
+
* 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.
|
|
2634
|
+
*/
|
|
2635
|
+
replicaOverwriteEnabled?: boolean | null;
|
|
2502
2636
|
/**
|
|
2503
2637
|
* Whether to skip the verification step (VESS).
|
|
2504
2638
|
*/
|
|
@@ -2908,6 +3042,19 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2908
3042
|
*/
|
|
2909
3043
|
nextPageToken?: string | null;
|
|
2910
3044
|
}
|
|
3045
|
+
/**
|
|
3046
|
+
* The cell value of the table.
|
|
3047
|
+
*/
|
|
3048
|
+
export interface Schema$Value {
|
|
3049
|
+
/**
|
|
3050
|
+
* If cell value is null, then this flag will be set to true.
|
|
3051
|
+
*/
|
|
3052
|
+
nullValue?: boolean | null;
|
|
3053
|
+
/**
|
|
3054
|
+
* The cell value represented in string format.
|
|
3055
|
+
*/
|
|
3056
|
+
value?: string | null;
|
|
3057
|
+
}
|
|
2911
3058
|
export class Resource$Backupruns {
|
|
2912
3059
|
context: APIRequestContext;
|
|
2913
3060
|
constructor(context: APIRequestContext);
|
|
@@ -3972,6 +4119,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
3972
4119
|
* // "dnsNames": [],
|
|
3973
4120
|
* // "ipAddresses": [],
|
|
3974
4121
|
* // "kind": "my_kind",
|
|
4122
|
+
* // "mdxProtocolSupport": [],
|
|
3975
4123
|
* // "nodeCount": 0,
|
|
3976
4124
|
* // "nodes": [],
|
|
3977
4125
|
* // "pscEnabled": false,
|
|
@@ -5333,6 +5481,83 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5333
5481
|
demoteMaster(params: Params$Resource$Instances$Demotemaster, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5334
5482
|
demoteMaster(params: Params$Resource$Instances$Demotemaster, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5335
5483
|
demoteMaster(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5484
|
+
/**
|
|
5485
|
+
* Execute SQL statements.
|
|
5486
|
+
* @example
|
|
5487
|
+
* ```js
|
|
5488
|
+
* // Before running the sample:
|
|
5489
|
+
* // - Enable the API at:
|
|
5490
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5491
|
+
* // - Login into gcloud by running:
|
|
5492
|
+
* // ```sh
|
|
5493
|
+
* // $ gcloud auth application-default login
|
|
5494
|
+
* // ```
|
|
5495
|
+
* // - Install the npm module by running:
|
|
5496
|
+
* // ```sh
|
|
5497
|
+
* // $ npm install googleapis
|
|
5498
|
+
* // ```
|
|
5499
|
+
*
|
|
5500
|
+
* const {google} = require('googleapis');
|
|
5501
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5502
|
+
*
|
|
5503
|
+
* async function main() {
|
|
5504
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5505
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5506
|
+
* scopes: [
|
|
5507
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5508
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5509
|
+
* ],
|
|
5510
|
+
* });
|
|
5511
|
+
*
|
|
5512
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5513
|
+
* const authClient = await auth.getClient();
|
|
5514
|
+
* google.options({auth: authClient});
|
|
5515
|
+
*
|
|
5516
|
+
* // Do the magic
|
|
5517
|
+
* const res = await sql.instances.executeSql({
|
|
5518
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
5519
|
+
* instance: 'placeholder-value',
|
|
5520
|
+
* // Required. Project ID of the project that contains the instance.
|
|
5521
|
+
* project: 'placeholder-value',
|
|
5522
|
+
*
|
|
5523
|
+
* // Request body metadata
|
|
5524
|
+
* requestBody: {
|
|
5525
|
+
* // request body parameters
|
|
5526
|
+
* // {
|
|
5527
|
+
* // "autoIamAuthn": false,
|
|
5528
|
+
* // "database": "my_database",
|
|
5529
|
+
* // "rowLimit": "my_rowLimit",
|
|
5530
|
+
* // "sqlStatement": "my_sqlStatement"
|
|
5531
|
+
* // }
|
|
5532
|
+
* },
|
|
5533
|
+
* });
|
|
5534
|
+
* console.log(res.data);
|
|
5535
|
+
*
|
|
5536
|
+
* // Example response
|
|
5537
|
+
* // {
|
|
5538
|
+
* // "metadata": {},
|
|
5539
|
+
* // "results": []
|
|
5540
|
+
* // }
|
|
5541
|
+
* }
|
|
5542
|
+
*
|
|
5543
|
+
* main().catch(e => {
|
|
5544
|
+
* console.error(e);
|
|
5545
|
+
* throw e;
|
|
5546
|
+
* });
|
|
5547
|
+
*
|
|
5548
|
+
* ```
|
|
5549
|
+
*
|
|
5550
|
+
* @param params - Parameters for request
|
|
5551
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5552
|
+
* @param callback - Optional callback that handles the response.
|
|
5553
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5554
|
+
*/
|
|
5555
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5556
|
+
executeSql(params?: Params$Resource$Instances$Executesql, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
|
|
5557
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5558
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5559
|
+
executeSql(params: Params$Resource$Instances$Executesql, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5560
|
+
executeSql(callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5336
5561
|
/**
|
|
5337
5562
|
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
5338
5563
|
* @example
|
|
@@ -5557,7 +5782,6 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5557
5782
|
* // {
|
|
5558
5783
|
* // "availableMaintenanceVersions": [],
|
|
5559
5784
|
* // "backendType": "my_backendType",
|
|
5560
|
-
* // "clearNetwork": false,
|
|
5561
5785
|
* // "connectionName": "my_connectionName",
|
|
5562
5786
|
* // "createTime": "my_createTime",
|
|
5563
5787
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -5759,7 +5983,6 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5759
5983
|
* // {
|
|
5760
5984
|
* // "availableMaintenanceVersions": [],
|
|
5761
5985
|
* // "backendType": "my_backendType",
|
|
5762
|
-
* // "clearNetwork": false,
|
|
5763
5986
|
* // "connectionName": "my_connectionName",
|
|
5764
5987
|
* // "createTime": "my_createTime",
|
|
5765
5988
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -6108,7 +6331,6 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
6108
6331
|
* // {
|
|
6109
6332
|
* // "availableMaintenanceVersions": [],
|
|
6110
6333
|
* // "backendType": "my_backendType",
|
|
6111
|
-
* // "clearNetwork": false,
|
|
6112
6334
|
* // "connectionName": "my_connectionName",
|
|
6113
6335
|
* // "createTime": "my_createTime",
|
|
6114
6336
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -6753,6 +6975,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
6753
6975
|
* // "backup": "my_backup",
|
|
6754
6976
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
6755
6977
|
* // "restoreBackupContext": {},
|
|
6978
|
+
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
6756
6979
|
* // "restoreInstanceSettings": {}
|
|
6757
6980
|
* // }
|
|
6758
6981
|
* },
|
|
@@ -7370,7 +7593,6 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
7370
7593
|
* // {
|
|
7371
7594
|
* // "availableMaintenanceVersions": [],
|
|
7372
7595
|
* // "backendType": "my_backendType",
|
|
7373
|
-
* // "clearNetwork": false,
|
|
7374
7596
|
* // "connectionName": "my_connectionName",
|
|
7375
7597
|
* // "createTime": "my_createTime",
|
|
7376
7598
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -7570,6 +7792,20 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
7570
7792
|
*/
|
|
7571
7793
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
7572
7794
|
}
|
|
7795
|
+
export interface Params$Resource$Instances$Executesql extends StandardParameters {
|
|
7796
|
+
/**
|
|
7797
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
7798
|
+
*/
|
|
7799
|
+
instance?: string;
|
|
7800
|
+
/**
|
|
7801
|
+
* Required. Project ID of the project that contains the instance.
|
|
7802
|
+
*/
|
|
7803
|
+
project?: string;
|
|
7804
|
+
/**
|
|
7805
|
+
* Request body metadata
|
|
7806
|
+
*/
|
|
7807
|
+
requestBody?: Schema$ExecuteSqlPayload;
|
|
7808
|
+
}
|
|
7573
7809
|
export interface Params$Resource$Instances$Export extends StandardParameters {
|
|
7574
7810
|
/**
|
|
7575
7811
|
* The Cloud SQL instance ID. This doesn't include the project ID.
|
|
@@ -8228,6 +8464,8 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
8228
8464
|
* instance: 'placeholder-value',
|
|
8229
8465
|
* // Project ID of the project that contains the instance.
|
|
8230
8466
|
* project: 'placeholder-value',
|
|
8467
|
+
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
8468
|
+
* sourceInstanceDeletionTime: 'placeholder-value',
|
|
8231
8469
|
* });
|
|
8232
8470
|
* console.log(res.data);
|
|
8233
8471
|
*
|
|
@@ -8572,6 +8810,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
8572
8810
|
* // {
|
|
8573
8811
|
* // "migrationType": "my_migrationType",
|
|
8574
8812
|
* // "mysqlSyncConfig": {},
|
|
8813
|
+
* // "replicaOverwriteEnabled": false,
|
|
8575
8814
|
* // "skipVerification": false,
|
|
8576
8815
|
* // "syncMode": "my_syncMode",
|
|
8577
8816
|
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
@@ -8723,6 +8962,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
8723
8962
|
* Project ID of the project that contains the instance.
|
|
8724
8963
|
*/
|
|
8725
8964
|
project?: string;
|
|
8965
|
+
/**
|
|
8966
|
+
* The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
8967
|
+
*/
|
|
8968
|
+
sourceInstanceDeletionTime?: string;
|
|
8726
8969
|
}
|
|
8727
8970
|
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
8728
8971
|
/**
|
package/build/v1beta4.js
CHANGED
|
@@ -33,6 +33,18 @@ var sqladmin_v1beta4;
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
class Sqladmin {
|
|
36
|
+
context;
|
|
37
|
+
backupRuns;
|
|
38
|
+
backups;
|
|
39
|
+
connect;
|
|
40
|
+
databases;
|
|
41
|
+
flags;
|
|
42
|
+
instances;
|
|
43
|
+
operations;
|
|
44
|
+
projects;
|
|
45
|
+
sslCerts;
|
|
46
|
+
tiers;
|
|
47
|
+
users;
|
|
36
48
|
constructor(options, google) {
|
|
37
49
|
this.context = {
|
|
38
50
|
_options: options || {},
|
|
@@ -53,6 +65,7 @@ var sqladmin_v1beta4;
|
|
|
53
65
|
}
|
|
54
66
|
sqladmin_v1beta4.Sqladmin = Sqladmin;
|
|
55
67
|
class Resource$Backupruns {
|
|
68
|
+
context;
|
|
56
69
|
constructor(context) {
|
|
57
70
|
this.context = context;
|
|
58
71
|
}
|
|
@@ -189,6 +202,7 @@ var sqladmin_v1beta4;
|
|
|
189
202
|
}
|
|
190
203
|
sqladmin_v1beta4.Resource$Backupruns = Resource$Backupruns;
|
|
191
204
|
class Resource$Backups {
|
|
205
|
+
context;
|
|
192
206
|
constructor(context) {
|
|
193
207
|
this.context = context;
|
|
194
208
|
}
|
|
@@ -355,6 +369,7 @@ var sqladmin_v1beta4;
|
|
|
355
369
|
}
|
|
356
370
|
sqladmin_v1beta4.Resource$Backups = Resource$Backups;
|
|
357
371
|
class Resource$Connect {
|
|
372
|
+
context;
|
|
358
373
|
constructor(context) {
|
|
359
374
|
this.context = context;
|
|
360
375
|
}
|
|
@@ -426,6 +441,7 @@ var sqladmin_v1beta4;
|
|
|
426
441
|
}
|
|
427
442
|
sqladmin_v1beta4.Resource$Connect = Resource$Connect;
|
|
428
443
|
class Resource$Databases {
|
|
444
|
+
context;
|
|
429
445
|
constructor(context) {
|
|
430
446
|
this.context = context;
|
|
431
447
|
}
|
|
@@ -624,6 +640,7 @@ var sqladmin_v1beta4;
|
|
|
624
640
|
}
|
|
625
641
|
sqladmin_v1beta4.Resource$Databases = Resource$Databases;
|
|
626
642
|
class Resource$Flags {
|
|
643
|
+
context;
|
|
627
644
|
constructor(context) {
|
|
628
645
|
this.context = context;
|
|
629
646
|
}
|
|
@@ -661,6 +678,7 @@ var sqladmin_v1beta4;
|
|
|
661
678
|
}
|
|
662
679
|
sqladmin_v1beta4.Resource$Flags = Resource$Flags;
|
|
663
680
|
class Resource$Instances {
|
|
681
|
+
context;
|
|
664
682
|
constructor(context) {
|
|
665
683
|
this.context = context;
|
|
666
684
|
}
|
|
@@ -891,6 +909,39 @@ var sqladmin_v1beta4;
|
|
|
891
909
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
892
910
|
}
|
|
893
911
|
}
|
|
912
|
+
executeSql(paramsOrCallback, optionsOrCallback, callback) {
|
|
913
|
+
let params = (paramsOrCallback ||
|
|
914
|
+
{});
|
|
915
|
+
let options = (optionsOrCallback || {});
|
|
916
|
+
if (typeof paramsOrCallback === 'function') {
|
|
917
|
+
callback = paramsOrCallback;
|
|
918
|
+
params = {};
|
|
919
|
+
options = {};
|
|
920
|
+
}
|
|
921
|
+
if (typeof optionsOrCallback === 'function') {
|
|
922
|
+
callback = optionsOrCallback;
|
|
923
|
+
options = {};
|
|
924
|
+
}
|
|
925
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
926
|
+
const parameters = {
|
|
927
|
+
options: Object.assign({
|
|
928
|
+
url: (rootUrl +
|
|
929
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/executeSql').replace(/([^:]\/)\/+/g, '$1'),
|
|
930
|
+
method: 'POST',
|
|
931
|
+
apiVersion: '',
|
|
932
|
+
}, options),
|
|
933
|
+
params,
|
|
934
|
+
requiredParams: ['project', 'instance'],
|
|
935
|
+
pathParams: ['instance', 'project'],
|
|
936
|
+
context: this.context,
|
|
937
|
+
};
|
|
938
|
+
if (callback) {
|
|
939
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
894
945
|
export(paramsOrCallback, optionsOrCallback, callback) {
|
|
895
946
|
let params = (paramsOrCallback || {});
|
|
896
947
|
let options = (optionsOrCallback || {});
|
|
@@ -1640,6 +1691,7 @@ var sqladmin_v1beta4;
|
|
|
1640
1691
|
}
|
|
1641
1692
|
sqladmin_v1beta4.Resource$Instances = Resource$Instances;
|
|
1642
1693
|
class Resource$Operations {
|
|
1694
|
+
context;
|
|
1643
1695
|
constructor(context) {
|
|
1644
1696
|
this.context = context;
|
|
1645
1697
|
}
|
|
@@ -1741,6 +1793,8 @@ var sqladmin_v1beta4;
|
|
|
1741
1793
|
}
|
|
1742
1794
|
sqladmin_v1beta4.Resource$Operations = Resource$Operations;
|
|
1743
1795
|
class Resource$Projects {
|
|
1796
|
+
context;
|
|
1797
|
+
instances;
|
|
1744
1798
|
constructor(context) {
|
|
1745
1799
|
this.context = context;
|
|
1746
1800
|
this.instances = new Resource$Projects$Instances(this.context);
|
|
@@ -1748,6 +1802,7 @@ var sqladmin_v1beta4;
|
|
|
1748
1802
|
}
|
|
1749
1803
|
sqladmin_v1beta4.Resource$Projects = Resource$Projects;
|
|
1750
1804
|
class Resource$Projects$Instances {
|
|
1805
|
+
context;
|
|
1751
1806
|
constructor(context) {
|
|
1752
1807
|
this.context = context;
|
|
1753
1808
|
}
|
|
@@ -1986,6 +2041,7 @@ var sqladmin_v1beta4;
|
|
|
1986
2041
|
}
|
|
1987
2042
|
sqladmin_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances;
|
|
1988
2043
|
class Resource$Sslcerts {
|
|
2044
|
+
context;
|
|
1989
2045
|
constructor(context) {
|
|
1990
2046
|
this.context = context;
|
|
1991
2047
|
}
|
|
@@ -2153,6 +2209,7 @@ var sqladmin_v1beta4;
|
|
|
2153
2209
|
}
|
|
2154
2210
|
sqladmin_v1beta4.Resource$Sslcerts = Resource$Sslcerts;
|
|
2155
2211
|
class Resource$Tiers {
|
|
2212
|
+
context;
|
|
2156
2213
|
constructor(context) {
|
|
2157
2214
|
this.context = context;
|
|
2158
2215
|
}
|
|
@@ -2190,6 +2247,7 @@ var sqladmin_v1beta4;
|
|
|
2190
2247
|
}
|
|
2191
2248
|
sqladmin_v1beta4.Resource$Tiers = Resource$Tiers;
|
|
2192
2249
|
class Resource$Users {
|
|
2250
|
+
context;
|
|
2193
2251
|
constructor(context) {
|
|
2194
2252
|
this.context = context;
|
|
2195
2253
|
}
|
|
@@ -2355,5 +2413,5 @@ var sqladmin_v1beta4;
|
|
|
2355
2413
|
}
|
|
2356
2414
|
}
|
|
2357
2415
|
sqladmin_v1beta4.Resource$Users = Resource$Users;
|
|
2358
|
-
})(sqladmin_v1beta4
|
|
2416
|
+
})(sqladmin_v1beta4 || (exports.sqladmin_v1beta4 = sqladmin_v1beta4 = {}));
|
|
2359
2417
|
//# sourceMappingURL=v1beta4.js.map
|