@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/v1.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_v1 {
|
|
@@ -510,6 +509,23 @@ export declare namespace sqladmin_v1 {
|
|
|
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. This field applies to all DB types.
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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_v1 {
|
|
|
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
|
*/
|
|
@@ -1048,6 +1068,27 @@ export declare namespace sqladmin_v1 {
|
|
|
1048
1068
|
*/
|
|
1049
1069
|
export interface Schema$Empty {
|
|
1050
1070
|
}
|
|
1071
|
+
/**
|
|
1072
|
+
* The request payload used to execute SQL statements.
|
|
1073
|
+
*/
|
|
1074
|
+
export interface Schema$ExecuteSqlPayload {
|
|
1075
|
+
/**
|
|
1076
|
+
* 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.
|
|
1077
|
+
*/
|
|
1078
|
+
autoIamAuthn?: boolean | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* Optional. Name of the database on which the statement will be executed.
|
|
1081
|
+
*/
|
|
1082
|
+
database?: string | null;
|
|
1083
|
+
/**
|
|
1084
|
+
* Optional. The maximum number of rows returned per SQL statement.
|
|
1085
|
+
*/
|
|
1086
|
+
rowLimit?: string | null;
|
|
1087
|
+
/**
|
|
1088
|
+
* Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
|
|
1089
|
+
*/
|
|
1090
|
+
sqlStatement?: string | null;
|
|
1091
|
+
}
|
|
1051
1092
|
/**
|
|
1052
1093
|
* Database instance export context.
|
|
1053
1094
|
*/
|
|
@@ -1142,6 +1183,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1142
1183
|
*/
|
|
1143
1184
|
settingsVersion?: string | null;
|
|
1144
1185
|
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Config used to determine the final backup settings for the instance.
|
|
1188
|
+
*/
|
|
1189
|
+
export interface Schema$FinalBackupConfig {
|
|
1190
|
+
/**
|
|
1191
|
+
* Whether the final backup is enabled for the instance.
|
|
1192
|
+
*/
|
|
1193
|
+
enabled?: boolean | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* 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).
|
|
1196
|
+
*/
|
|
1197
|
+
retentionDays?: number | null;
|
|
1198
|
+
}
|
|
1145
1199
|
/**
|
|
1146
1200
|
* A flag resource.
|
|
1147
1201
|
*/
|
|
@@ -1530,6 +1584,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1530
1584
|
* Parameters required to perform the restore backup operation.
|
|
1531
1585
|
*/
|
|
1532
1586
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1587
|
+
/**
|
|
1588
|
+
* 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.
|
|
1589
|
+
*/
|
|
1590
|
+
restoreInstanceClearOverridesFieldNames?: string[] | null;
|
|
1533
1591
|
/**
|
|
1534
1592
|
* 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.
|
|
1535
1593
|
*/
|
|
@@ -1700,6 +1758,15 @@ export declare namespace sqladmin_v1 {
|
|
|
1700
1758
|
*/
|
|
1701
1759
|
updateTrack?: string | null;
|
|
1702
1760
|
}
|
|
1761
|
+
/**
|
|
1762
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
1763
|
+
*/
|
|
1764
|
+
export interface Schema$Metadata {
|
|
1765
|
+
/**
|
|
1766
|
+
* The time taken to execute the SQL statements.
|
|
1767
|
+
*/
|
|
1768
|
+
sqlStatementExecutionTime?: string | null;
|
|
1769
|
+
}
|
|
1703
1770
|
/**
|
|
1704
1771
|
* Read-replica configuration specific to MySQL databases.
|
|
1705
1772
|
*/
|
|
@@ -2025,7 +2092,7 @@ export declare namespace sqladmin_v1 {
|
|
|
2025
2092
|
*/
|
|
2026
2093
|
export interface Schema$PointInTimeRestoreContext {
|
|
2027
2094
|
/**
|
|
2028
|
-
* 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.
|
|
2095
|
+
* 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.
|
|
2029
2096
|
*/
|
|
2030
2097
|
allocatedIpRange?: string | null;
|
|
2031
2098
|
/**
|
|
@@ -2128,6 +2195,27 @@ export declare namespace sqladmin_v1 {
|
|
|
2128
2195
|
*/
|
|
2129
2196
|
pscEnabled?: boolean | null;
|
|
2130
2197
|
}
|
|
2198
|
+
/**
|
|
2199
|
+
* QueryResult contains the result of executing a single SQL statement.
|
|
2200
|
+
*/
|
|
2201
|
+
export interface Schema$QueryResult {
|
|
2202
|
+
/**
|
|
2203
|
+
* List of columns included in the result. This also includes the data type of the column.
|
|
2204
|
+
*/
|
|
2205
|
+
columns?: Schema$Column[];
|
|
2206
|
+
/**
|
|
2207
|
+
* Message related to the SQL execution result.
|
|
2208
|
+
*/
|
|
2209
|
+
message?: string | null;
|
|
2210
|
+
/**
|
|
2211
|
+
* Set to true if the SQL execution's result is truncated due to size limits.
|
|
2212
|
+
*/
|
|
2213
|
+
partialResult?: boolean | null;
|
|
2214
|
+
/**
|
|
2215
|
+
* Rows returned by the SQL statement.
|
|
2216
|
+
*/
|
|
2217
|
+
rows?: Schema$Row[];
|
|
2218
|
+
}
|
|
2131
2219
|
/**
|
|
2132
2220
|
* Read-replica configuration for connecting to the primary instance.
|
|
2133
2221
|
*/
|
|
@@ -2223,6 +2311,15 @@ export declare namespace sqladmin_v1 {
|
|
|
2223
2311
|
*/
|
|
2224
2312
|
nextVersion?: string | null;
|
|
2225
2313
|
}
|
|
2314
|
+
/**
|
|
2315
|
+
* Contains the values for a row.
|
|
2316
|
+
*/
|
|
2317
|
+
export interface Schema$Row {
|
|
2318
|
+
/**
|
|
2319
|
+
* The values for the row.
|
|
2320
|
+
*/
|
|
2321
|
+
values?: Schema$Value[];
|
|
2322
|
+
}
|
|
2226
2323
|
/**
|
|
2227
2324
|
* A list of objects that the user selects for replication from an external source instance.
|
|
2228
2325
|
*/
|
|
@@ -2324,6 +2421,10 @@ export declare namespace sqladmin_v1 {
|
|
|
2324
2421
|
* 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.
|
|
2325
2422
|
*/
|
|
2326
2423
|
enableGoogleMlIntegration?: boolean | null;
|
|
2424
|
+
/**
|
|
2425
|
+
* Optional. The final backup configuration for the instance.
|
|
2426
|
+
*/
|
|
2427
|
+
finalBackupConfig?: Schema$FinalBackupConfig;
|
|
2327
2428
|
/**
|
|
2328
2429
|
* Insights configuration, for now relevant only for Postgres.
|
|
2329
2430
|
*/
|
|
@@ -2399,6 +2500,14 @@ export declare namespace sqladmin_v1 {
|
|
|
2399
2500
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2400
2501
|
*/
|
|
2401
2502
|
export interface Schema$SqlActiveDirectoryConfig {
|
|
2503
|
+
/**
|
|
2504
|
+
* Optional. The secret manager key storing the administrator credential. (e.g., projects/{project\}/secrets/{secret\}).
|
|
2505
|
+
*/
|
|
2506
|
+
adminCredentialSecretName?: string | null;
|
|
2507
|
+
/**
|
|
2508
|
+
* Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
|
|
2509
|
+
*/
|
|
2510
|
+
dnsServers?: string[] | null;
|
|
2402
2511
|
/**
|
|
2403
2512
|
* The name of the domain (e.g., mydomain.com).
|
|
2404
2513
|
*/
|
|
@@ -2407,6 +2516,14 @@ export declare namespace sqladmin_v1 {
|
|
|
2407
2516
|
* This is always sql#activeDirectoryConfig.
|
|
2408
2517
|
*/
|
|
2409
2518
|
kind?: string | null;
|
|
2519
|
+
/**
|
|
2520
|
+
* Optional. The mode of the Active Directory configuration.
|
|
2521
|
+
*/
|
|
2522
|
+
mode?: string | null;
|
|
2523
|
+
/**
|
|
2524
|
+
* Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
|
|
2525
|
+
*/
|
|
2526
|
+
organizationalUnit?: string | null;
|
|
2410
2527
|
}
|
|
2411
2528
|
/**
|
|
2412
2529
|
* External primary instance migration setting error/warning.
|
|
@@ -2434,6 +2551,19 @@ export declare namespace sqladmin_v1 {
|
|
|
2434
2551
|
*/
|
|
2435
2552
|
operationId?: string | null;
|
|
2436
2553
|
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Execute SQL statements response.
|
|
2556
|
+
*/
|
|
2557
|
+
export interface Schema$SqlInstancesExecuteSqlResponse {
|
|
2558
|
+
/**
|
|
2559
|
+
* The additional metadata information regarding the execution of the SQL statements.
|
|
2560
|
+
*/
|
|
2561
|
+
metadata?: Schema$Metadata;
|
|
2562
|
+
/**
|
|
2563
|
+
* The list of results after executing all the SQL statements.
|
|
2564
|
+
*/
|
|
2565
|
+
results?: Schema$QueryResult[];
|
|
2566
|
+
}
|
|
2437
2567
|
/**
|
|
2438
2568
|
* Instance get disk shrink config response.
|
|
2439
2569
|
*/
|
|
@@ -2499,6 +2629,10 @@ export declare namespace sqladmin_v1 {
|
|
|
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
|
*/
|
|
@@ -2911,6 +3045,19 @@ export declare namespace sqladmin_v1 {
|
|
|
2911
3045
|
*/
|
|
2912
3046
|
nextPageToken?: string | null;
|
|
2913
3047
|
}
|
|
3048
|
+
/**
|
|
3049
|
+
* The cell value of the table.
|
|
3050
|
+
*/
|
|
3051
|
+
export interface Schema$Value {
|
|
3052
|
+
/**
|
|
3053
|
+
* If cell value is null, then this flag will be set to true.
|
|
3054
|
+
*/
|
|
3055
|
+
nullValue?: boolean | null;
|
|
3056
|
+
/**
|
|
3057
|
+
* The cell value in string format.
|
|
3058
|
+
*/
|
|
3059
|
+
value?: string | null;
|
|
3060
|
+
}
|
|
2914
3061
|
export class Resource$Backupruns {
|
|
2915
3062
|
context: APIRequestContext;
|
|
2916
3063
|
constructor(context: APIRequestContext);
|
|
@@ -3975,6 +4122,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3975
4122
|
* // "dnsNames": [],
|
|
3976
4123
|
* // "ipAddresses": [],
|
|
3977
4124
|
* // "kind": "my_kind",
|
|
4125
|
+
* // "mdxProtocolSupport": [],
|
|
3978
4126
|
* // "nodeCount": 0,
|
|
3979
4127
|
* // "nodes": [],
|
|
3980
4128
|
* // "pscEnabled": false,
|
|
@@ -5336,6 +5484,83 @@ export declare namespace sqladmin_v1 {
|
|
|
5336
5484
|
demoteMaster(params: Params$Resource$Instances$Demotemaster, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5337
5485
|
demoteMaster(params: Params$Resource$Instances$Demotemaster, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5338
5486
|
demoteMaster(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5487
|
+
/**
|
|
5488
|
+
* Execute SQL statements.
|
|
5489
|
+
* @example
|
|
5490
|
+
* ```js
|
|
5491
|
+
* // Before running the sample:
|
|
5492
|
+
* // - Enable the API at:
|
|
5493
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5494
|
+
* // - Login into gcloud by running:
|
|
5495
|
+
* // ```sh
|
|
5496
|
+
* // $ gcloud auth application-default login
|
|
5497
|
+
* // ```
|
|
5498
|
+
* // - Install the npm module by running:
|
|
5499
|
+
* // ```sh
|
|
5500
|
+
* // $ npm install googleapis
|
|
5501
|
+
* // ```
|
|
5502
|
+
*
|
|
5503
|
+
* const {google} = require('googleapis');
|
|
5504
|
+
* const sqladmin = google.sqladmin('v1');
|
|
5505
|
+
*
|
|
5506
|
+
* async function main() {
|
|
5507
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5508
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5509
|
+
* scopes: [
|
|
5510
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5511
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5512
|
+
* ],
|
|
5513
|
+
* });
|
|
5514
|
+
*
|
|
5515
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5516
|
+
* const authClient = await auth.getClient();
|
|
5517
|
+
* google.options({auth: authClient});
|
|
5518
|
+
*
|
|
5519
|
+
* // Do the magic
|
|
5520
|
+
* const res = await sql.instances.executeSql({
|
|
5521
|
+
* // Required. Database instance ID. This does not include the project ID.
|
|
5522
|
+
* instance: 'placeholder-value',
|
|
5523
|
+
* // Required. Project ID of the project that contains the instance.
|
|
5524
|
+
* project: 'placeholder-value',
|
|
5525
|
+
*
|
|
5526
|
+
* // Request body metadata
|
|
5527
|
+
* requestBody: {
|
|
5528
|
+
* // request body parameters
|
|
5529
|
+
* // {
|
|
5530
|
+
* // "autoIamAuthn": false,
|
|
5531
|
+
* // "database": "my_database",
|
|
5532
|
+
* // "rowLimit": "my_rowLimit",
|
|
5533
|
+
* // "sqlStatement": "my_sqlStatement"
|
|
5534
|
+
* // }
|
|
5535
|
+
* },
|
|
5536
|
+
* });
|
|
5537
|
+
* console.log(res.data);
|
|
5538
|
+
*
|
|
5539
|
+
* // Example response
|
|
5540
|
+
* // {
|
|
5541
|
+
* // "metadata": {},
|
|
5542
|
+
* // "results": []
|
|
5543
|
+
* // }
|
|
5544
|
+
* }
|
|
5545
|
+
*
|
|
5546
|
+
* main().catch(e => {
|
|
5547
|
+
* console.error(e);
|
|
5548
|
+
* throw e;
|
|
5549
|
+
* });
|
|
5550
|
+
*
|
|
5551
|
+
* ```
|
|
5552
|
+
*
|
|
5553
|
+
* @param params - Parameters for request
|
|
5554
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5555
|
+
* @param callback - Optional callback that handles the response.
|
|
5556
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5557
|
+
*/
|
|
5558
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5559
|
+
executeSql(params?: Params$Resource$Instances$Executesql, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SqlInstancesExecuteSqlResponse>>;
|
|
5560
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5561
|
+
executeSql(params: Params$Resource$Instances$Executesql, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5562
|
+
executeSql(params: Params$Resource$Instances$Executesql, callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5563
|
+
executeSql(callback: BodyResponseCallback<Schema$SqlInstancesExecuteSqlResponse>): void;
|
|
5339
5564
|
/**
|
|
5340
5565
|
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
5341
5566
|
* @example
|
|
@@ -5560,7 +5785,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5560
5785
|
* // {
|
|
5561
5786
|
* // "availableMaintenanceVersions": [],
|
|
5562
5787
|
* // "backendType": "my_backendType",
|
|
5563
|
-
* // "clearNetwork": false,
|
|
5564
5788
|
* // "connectionName": "my_connectionName",
|
|
5565
5789
|
* // "createTime": "my_createTime",
|
|
5566
5790
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -5762,7 +5986,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5762
5986
|
* // {
|
|
5763
5987
|
* // "availableMaintenanceVersions": [],
|
|
5764
5988
|
* // "backendType": "my_backendType",
|
|
5765
|
-
* // "clearNetwork": false,
|
|
5766
5989
|
* // "connectionName": "my_connectionName",
|
|
5767
5990
|
* // "createTime": "my_createTime",
|
|
5768
5991
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -6111,7 +6334,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6111
6334
|
* // {
|
|
6112
6335
|
* // "availableMaintenanceVersions": [],
|
|
6113
6336
|
* // "backendType": "my_backendType",
|
|
6114
|
-
* // "clearNetwork": false,
|
|
6115
6337
|
* // "connectionName": "my_connectionName",
|
|
6116
6338
|
* // "createTime": "my_createTime",
|
|
6117
6339
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -6756,6 +6978,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6756
6978
|
* // "backup": "my_backup",
|
|
6757
6979
|
* // "backupdrBackup": "my_backupdrBackup",
|
|
6758
6980
|
* // "restoreBackupContext": {},
|
|
6981
|
+
* // "restoreInstanceClearOverridesFieldNames": [],
|
|
6759
6982
|
* // "restoreInstanceSettings": {}
|
|
6760
6983
|
* // }
|
|
6761
6984
|
* },
|
|
@@ -7373,7 +7596,6 @@ export declare namespace sqladmin_v1 {
|
|
|
7373
7596
|
* // {
|
|
7374
7597
|
* // "availableMaintenanceVersions": [],
|
|
7375
7598
|
* // "backendType": "my_backendType",
|
|
7376
|
-
* // "clearNetwork": false,
|
|
7377
7599
|
* // "connectionName": "my_connectionName",
|
|
7378
7600
|
* // "createTime": "my_createTime",
|
|
7379
7601
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
@@ -7573,6 +7795,20 @@ export declare namespace sqladmin_v1 {
|
|
|
7573
7795
|
*/
|
|
7574
7796
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
7575
7797
|
}
|
|
7798
|
+
export interface Params$Resource$Instances$Executesql extends StandardParameters {
|
|
7799
|
+
/**
|
|
7800
|
+
* Required. Database instance ID. This does not include the project ID.
|
|
7801
|
+
*/
|
|
7802
|
+
instance?: string;
|
|
7803
|
+
/**
|
|
7804
|
+
* Required. Project ID of the project that contains the instance.
|
|
7805
|
+
*/
|
|
7806
|
+
project?: string;
|
|
7807
|
+
/**
|
|
7808
|
+
* Request body metadata
|
|
7809
|
+
*/
|
|
7810
|
+
requestBody?: Schema$ExecuteSqlPayload;
|
|
7811
|
+
}
|
|
7576
7812
|
export interface Params$Resource$Instances$Export extends StandardParameters {
|
|
7577
7813
|
/**
|
|
7578
7814
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -8231,6 +8467,8 @@ export declare namespace sqladmin_v1 {
|
|
|
8231
8467
|
* instance: 'placeholder-value',
|
|
8232
8468
|
* // Project ID of the project that contains the instance.
|
|
8233
8469
|
* project: 'placeholder-value',
|
|
8470
|
+
* // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
8471
|
+
* sourceInstanceDeletionTime: 'placeholder-value',
|
|
8234
8472
|
* });
|
|
8235
8473
|
* console.log(res.data);
|
|
8236
8474
|
*
|
|
@@ -8575,6 +8813,7 @@ export declare namespace sqladmin_v1 {
|
|
|
8575
8813
|
* // {
|
|
8576
8814
|
* // "migrationType": "my_migrationType",
|
|
8577
8815
|
* // "mysqlSyncConfig": {},
|
|
8816
|
+
* // "replicaOverwriteEnabled": false,
|
|
8578
8817
|
* // "skipVerification": false,
|
|
8579
8818
|
* // "syncMode": "my_syncMode",
|
|
8580
8819
|
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
@@ -8726,6 +8965,10 @@ export declare namespace sqladmin_v1 {
|
|
|
8726
8965
|
* Project ID of the project that contains the instance.
|
|
8727
8966
|
*/
|
|
8728
8967
|
project?: string;
|
|
8968
|
+
/**
|
|
8969
|
+
* The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
|
|
8970
|
+
*/
|
|
8971
|
+
sourceInstanceDeletionTime?: string;
|
|
8729
8972
|
}
|
|
8730
8973
|
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
8731
8974
|
/**
|
package/build/v1.js
CHANGED
|
@@ -33,6 +33,18 @@ var sqladmin_v1;
|
|
|
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_v1;
|
|
|
53
65
|
}
|
|
54
66
|
sqladmin_v1.Sqladmin = Sqladmin;
|
|
55
67
|
class Resource$Backupruns {
|
|
68
|
+
context;
|
|
56
69
|
constructor(context) {
|
|
57
70
|
this.context = context;
|
|
58
71
|
}
|
|
@@ -187,6 +200,7 @@ var sqladmin_v1;
|
|
|
187
200
|
}
|
|
188
201
|
sqladmin_v1.Resource$Backupruns = Resource$Backupruns;
|
|
189
202
|
class Resource$Backups {
|
|
203
|
+
context;
|
|
190
204
|
constructor(context) {
|
|
191
205
|
this.context = context;
|
|
192
206
|
}
|
|
@@ -353,6 +367,7 @@ var sqladmin_v1;
|
|
|
353
367
|
}
|
|
354
368
|
sqladmin_v1.Resource$Backups = Resource$Backups;
|
|
355
369
|
class Resource$Connect {
|
|
370
|
+
context;
|
|
356
371
|
constructor(context) {
|
|
357
372
|
this.context = context;
|
|
358
373
|
}
|
|
@@ -424,6 +439,7 @@ var sqladmin_v1;
|
|
|
424
439
|
}
|
|
425
440
|
sqladmin_v1.Resource$Connect = Resource$Connect;
|
|
426
441
|
class Resource$Databases {
|
|
442
|
+
context;
|
|
427
443
|
constructor(context) {
|
|
428
444
|
this.context = context;
|
|
429
445
|
}
|
|
@@ -620,6 +636,7 @@ var sqladmin_v1;
|
|
|
620
636
|
}
|
|
621
637
|
sqladmin_v1.Resource$Databases = Resource$Databases;
|
|
622
638
|
class Resource$Flags {
|
|
639
|
+
context;
|
|
623
640
|
constructor(context) {
|
|
624
641
|
this.context = context;
|
|
625
642
|
}
|
|
@@ -657,6 +674,7 @@ var sqladmin_v1;
|
|
|
657
674
|
}
|
|
658
675
|
sqladmin_v1.Resource$Flags = Resource$Flags;
|
|
659
676
|
class Resource$Instances {
|
|
677
|
+
context;
|
|
660
678
|
constructor(context) {
|
|
661
679
|
this.context = context;
|
|
662
680
|
}
|
|
@@ -885,6 +903,38 @@ var sqladmin_v1;
|
|
|
885
903
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
886
904
|
}
|
|
887
905
|
}
|
|
906
|
+
executeSql(paramsOrCallback, optionsOrCallback, callback) {
|
|
907
|
+
let params = (paramsOrCallback ||
|
|
908
|
+
{});
|
|
909
|
+
let options = (optionsOrCallback || {});
|
|
910
|
+
if (typeof paramsOrCallback === 'function') {
|
|
911
|
+
callback = paramsOrCallback;
|
|
912
|
+
params = {};
|
|
913
|
+
options = {};
|
|
914
|
+
}
|
|
915
|
+
if (typeof optionsOrCallback === 'function') {
|
|
916
|
+
callback = optionsOrCallback;
|
|
917
|
+
options = {};
|
|
918
|
+
}
|
|
919
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
920
|
+
const parameters = {
|
|
921
|
+
options: Object.assign({
|
|
922
|
+
url: (rootUrl + '/v1/projects/{project}/instances/{instance}/executeSql').replace(/([^:]\/)\/+/g, '$1'),
|
|
923
|
+
method: 'POST',
|
|
924
|
+
apiVersion: '',
|
|
925
|
+
}, options),
|
|
926
|
+
params,
|
|
927
|
+
requiredParams: ['project', 'instance'],
|
|
928
|
+
pathParams: ['instance', 'project'],
|
|
929
|
+
context: this.context,
|
|
930
|
+
};
|
|
931
|
+
if (callback) {
|
|
932
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
933
|
+
}
|
|
934
|
+
else {
|
|
935
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
888
938
|
export(paramsOrCallback, optionsOrCallback, callback) {
|
|
889
939
|
let params = (paramsOrCallback || {});
|
|
890
940
|
let options = (optionsOrCallback || {});
|
|
@@ -1628,6 +1678,7 @@ var sqladmin_v1;
|
|
|
1628
1678
|
}
|
|
1629
1679
|
sqladmin_v1.Resource$Instances = Resource$Instances;
|
|
1630
1680
|
class Resource$Operations {
|
|
1681
|
+
context;
|
|
1631
1682
|
constructor(context) {
|
|
1632
1683
|
this.context = context;
|
|
1633
1684
|
}
|
|
@@ -1728,6 +1779,8 @@ var sqladmin_v1;
|
|
|
1728
1779
|
}
|
|
1729
1780
|
sqladmin_v1.Resource$Operations = Resource$Operations;
|
|
1730
1781
|
class Resource$Projects {
|
|
1782
|
+
context;
|
|
1783
|
+
instances;
|
|
1731
1784
|
constructor(context) {
|
|
1732
1785
|
this.context = context;
|
|
1733
1786
|
this.instances = new Resource$Projects$Instances(this.context);
|
|
@@ -1735,6 +1788,7 @@ var sqladmin_v1;
|
|
|
1735
1788
|
}
|
|
1736
1789
|
sqladmin_v1.Resource$Projects = Resource$Projects;
|
|
1737
1790
|
class Resource$Projects$Instances {
|
|
1791
|
+
context;
|
|
1738
1792
|
constructor(context) {
|
|
1739
1793
|
this.context = context;
|
|
1740
1794
|
}
|
|
@@ -1973,6 +2027,7 @@ var sqladmin_v1;
|
|
|
1973
2027
|
}
|
|
1974
2028
|
sqladmin_v1.Resource$Projects$Instances = Resource$Projects$Instances;
|
|
1975
2029
|
class Resource$Sslcerts {
|
|
2030
|
+
context;
|
|
1976
2031
|
constructor(context) {
|
|
1977
2032
|
this.context = context;
|
|
1978
2033
|
}
|
|
@@ -2138,6 +2193,7 @@ var sqladmin_v1;
|
|
|
2138
2193
|
}
|
|
2139
2194
|
sqladmin_v1.Resource$Sslcerts = Resource$Sslcerts;
|
|
2140
2195
|
class Resource$Tiers {
|
|
2196
|
+
context;
|
|
2141
2197
|
constructor(context) {
|
|
2142
2198
|
this.context = context;
|
|
2143
2199
|
}
|
|
@@ -2175,6 +2231,7 @@ var sqladmin_v1;
|
|
|
2175
2231
|
}
|
|
2176
2232
|
sqladmin_v1.Resource$Tiers = Resource$Tiers;
|
|
2177
2233
|
class Resource$Users {
|
|
2234
|
+
context;
|
|
2178
2235
|
constructor(context) {
|
|
2179
2236
|
this.context = context;
|
|
2180
2237
|
}
|
|
@@ -2336,5 +2393,5 @@ var sqladmin_v1;
|
|
|
2336
2393
|
}
|
|
2337
2394
|
}
|
|
2338
2395
|
sqladmin_v1.Resource$Users = Resource$Users;
|
|
2339
|
-
})(sqladmin_v1
|
|
2396
|
+
})(sqladmin_v1 || (exports.sqladmin_v1 = sqladmin_v1 = {}));
|
|
2340
2397
|
//# sourceMappingURL=v1.js.map
|