@googleapis/sqladmin 35.2.0 → 36.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 +14 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +53 -137
- package/build/v1.js +0 -33
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +47 -12
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +53 -215
- package/v1beta4.ts +47 -12
package/v1.ts
CHANGED
|
@@ -553,6 +553,14 @@ export namespace sqladmin_v1 {
|
|
|
553
553
|
* Required. Name of the Cloud SQL instance to be created as a clone.
|
|
554
554
|
*/
|
|
555
555
|
destinationInstanceName?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via Private Services Access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
|
|
558
|
+
*/
|
|
559
|
+
destinationNetwork?: string | null;
|
|
560
|
+
/**
|
|
561
|
+
* Optional. The project ID of the destination project where the cloned instance will be created. To perform a cross-project clone, this field is required. If not specified, the clone is created in the same project as the source instance.
|
|
562
|
+
*/
|
|
563
|
+
destinationProject?: string | null;
|
|
556
564
|
/**
|
|
557
565
|
* This is always `sql#cloneContext`.
|
|
558
566
|
*/
|
|
@@ -1139,7 +1147,7 @@ export namespace sqladmin_v1 {
|
|
|
1139
1147
|
*/
|
|
1140
1148
|
application?: string | null;
|
|
1141
1149
|
/**
|
|
1142
|
-
* Optional. When set to true
|
|
1150
|
+
* 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.
|
|
1143
1151
|
*/
|
|
1144
1152
|
autoIamAuthn?: boolean | null;
|
|
1145
1153
|
/**
|
|
@@ -2205,31 +2213,31 @@ export namespace sqladmin_v1 {
|
|
|
2205
2213
|
reuseInterval?: number | null;
|
|
2206
2214
|
}
|
|
2207
2215
|
/**
|
|
2208
|
-
* Performance
|
|
2216
|
+
* Performance capture configuration.
|
|
2209
2217
|
*/
|
|
2210
2218
|
export interface Schema$PerformanceCaptureConfig {
|
|
2211
2219
|
/**
|
|
2212
|
-
* Optional.
|
|
2220
|
+
* Optional. Enables or disables the performance capture feature.
|
|
2213
2221
|
*/
|
|
2214
2222
|
enabled?: boolean | null;
|
|
2215
2223
|
/**
|
|
2216
|
-
* Optional.
|
|
2224
|
+
* Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
|
|
2217
2225
|
*/
|
|
2218
2226
|
probeThreshold?: number | null;
|
|
2219
2227
|
/**
|
|
2220
|
-
* Optional.
|
|
2228
|
+
* Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
|
|
2221
2229
|
*/
|
|
2222
2230
|
probingIntervalSeconds?: number | null;
|
|
2223
2231
|
/**
|
|
2224
|
-
* Optional.
|
|
2232
|
+
* Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
|
|
2225
2233
|
*/
|
|
2226
2234
|
runningThreadsThreshold?: number | null;
|
|
2227
2235
|
/**
|
|
2228
|
-
* Optional.
|
|
2236
|
+
* Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
|
|
2229
2237
|
*/
|
|
2230
2238
|
secondsBehindSourceThreshold?: number | null;
|
|
2231
2239
|
/**
|
|
2232
|
-
* Optional.
|
|
2240
|
+
* Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
|
|
2233
2241
|
*/
|
|
2234
2242
|
transactionDurationThreshold?: number | null;
|
|
2235
2243
|
}
|
|
@@ -2270,10 +2278,22 @@ export namespace sqladmin_v1 {
|
|
|
2270
2278
|
* Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.
|
|
2271
2279
|
*/
|
|
2272
2280
|
privateNetwork?: string | null;
|
|
2281
|
+
/**
|
|
2282
|
+
* Optional. The region of the target instance where the datasource will be restored. For example: "us-central1".
|
|
2283
|
+
*/
|
|
2284
|
+
region?: string | null;
|
|
2273
2285
|
/**
|
|
2274
2286
|
* Target instance name.
|
|
2275
2287
|
*/
|
|
2276
2288
|
targetInstance?: string | null;
|
|
2289
|
+
/**
|
|
2290
|
+
* Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.
|
|
2291
|
+
*/
|
|
2292
|
+
targetInstanceClearSettingsFieldNames?: string[] | null;
|
|
2293
|
+
/**
|
|
2294
|
+
* Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.
|
|
2295
|
+
*/
|
|
2296
|
+
targetInstanceSettings?: Schema$DatabaseInstance;
|
|
2277
2297
|
}
|
|
2278
2298
|
/**
|
|
2279
2299
|
* Details of a single read pool node of a read pool.
|
|
@@ -2359,7 +2379,7 @@ export namespace sqladmin_v1 {
|
|
|
2359
2379
|
*/
|
|
2360
2380
|
consumerNetworkStatus?: string | null;
|
|
2361
2381
|
/**
|
|
2362
|
-
* Optional. This is the project ID of consumer service project of this consumer endpoint.
|
|
2382
|
+
* Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
|
|
2363
2383
|
*/
|
|
2364
2384
|
consumerProject?: string | null;
|
|
2365
2385
|
/**
|
|
@@ -2387,10 +2407,18 @@ export namespace sqladmin_v1 {
|
|
|
2387
2407
|
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
2388
2408
|
*/
|
|
2389
2409
|
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
2410
|
+
/**
|
|
2411
|
+
* Optional. Indicates whether PSC DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect (PSC) auto-connections. This will default to true for new instances when Private Service Connect is enabled.
|
|
2412
|
+
*/
|
|
2413
|
+
pscAutoDnsEnabled?: boolean | null;
|
|
2390
2414
|
/**
|
|
2391
2415
|
* Whether PSC connectivity is enabled for this instance.
|
|
2392
2416
|
*/
|
|
2393
2417
|
pscEnabled?: boolean | null;
|
|
2418
|
+
/**
|
|
2419
|
+
* Optional. Indicates whether PSC write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect (PSC) auto-connections that always points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
|
|
2420
|
+
*/
|
|
2421
|
+
pscWriteEndpointDnsEnabled?: boolean | null;
|
|
2394
2422
|
}
|
|
2395
2423
|
/**
|
|
2396
2424
|
* QueryResult contains the result of executing a single SQL statement.
|
|
@@ -2580,6 +2608,10 @@ export namespace sqladmin_v1 {
|
|
|
2580
2608
|
* Database instance settings.
|
|
2581
2609
|
*/
|
|
2582
2610
|
export interface Schema$Settings {
|
|
2611
|
+
/**
|
|
2612
|
+
* Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
|
|
2613
|
+
*/
|
|
2614
|
+
acceleratedReplicaMode?: boolean | null;
|
|
2583
2615
|
/**
|
|
2584
2616
|
* The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
|
|
2585
2617
|
*/
|
|
@@ -2893,23 +2925,6 @@ export namespace sqladmin_v1 {
|
|
|
2893
2925
|
* Instance reset replica size request.
|
|
2894
2926
|
*/
|
|
2895
2927
|
export interface Schema$SqlInstancesResetReplicaSizeRequest {}
|
|
2896
|
-
/**
|
|
2897
|
-
* Instance restore backup request for MCP.
|
|
2898
|
-
*/
|
|
2899
|
-
export interface Schema$SqlInstancesRestoreBackupMcpRequest {
|
|
2900
|
-
/**
|
|
2901
|
-
* Required. The identifier of the backup to restore. This will be one of the following: 1. An int64 containing a backup_run_id. 2. A backup name of the format 'projects/{project\}/backups/{backup-uid\}'. 3. A backupDR name of the format 'projects/{project\}/locations/{location\}/backupVaults/{backupvault\}/dataSources/{datasource\}/backups/{backup-uid\}'.
|
|
2902
|
-
*/
|
|
2903
|
-
backupId?: string | null;
|
|
2904
|
-
/**
|
|
2905
|
-
* Optional. The Cloud SQL instance ID of the source instance containing the backup. Only necessary if the backup_id is a backup_run_id.
|
|
2906
|
-
*/
|
|
2907
|
-
sourceInstance?: string | null;
|
|
2908
|
-
/**
|
|
2909
|
-
* Required. The project ID of the source instance containing the backup.
|
|
2910
|
-
*/
|
|
2911
|
-
sourceProject?: string | null;
|
|
2912
|
-
}
|
|
2913
2928
|
/**
|
|
2914
2929
|
* Instance start external sync request.
|
|
2915
2930
|
*/
|
|
@@ -7328,7 +7343,7 @@ export namespace sqladmin_v1 {
|
|
|
7328
7343
|
* const res = await sql.instances.clone({
|
|
7329
7344
|
* // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
7330
7345
|
* instance: 'placeholder-value',
|
|
7331
|
-
* // Required. Project ID of the source
|
|
7346
|
+
* // Required. Project ID of the source Cloud SQL instance.
|
|
7332
7347
|
* project: 'placeholder-value',
|
|
7333
7348
|
*
|
|
7334
7349
|
* // Request body metadata
|
|
@@ -9901,7 +9916,10 @@ export namespace sqladmin_v1 {
|
|
|
9901
9916
|
* // "preferredSecondaryZone": "my_preferredSecondaryZone",
|
|
9902
9917
|
* // "preferredZone": "my_preferredZone",
|
|
9903
9918
|
* // "privateNetwork": "my_privateNetwork",
|
|
9904
|
-
* // "
|
|
9919
|
+
* // "region": "my_region",
|
|
9920
|
+
* // "targetInstance": "my_targetInstance",
|
|
9921
|
+
* // "targetInstanceClearSettingsFieldNames": [],
|
|
9922
|
+
* // "targetInstanceSettings": {}
|
|
9905
9923
|
* // }
|
|
9906
9924
|
* },
|
|
9907
9925
|
* });
|
|
@@ -11177,177 +11195,6 @@ export namespace sqladmin_v1 {
|
|
|
11177
11195
|
}
|
|
11178
11196
|
}
|
|
11179
11197
|
|
|
11180
|
-
/**
|
|
11181
|
-
* Restores a backup of a Cloud SQL instance for Model Context Protocol (MCP) server.
|
|
11182
|
-
* @example
|
|
11183
|
-
* ```js
|
|
11184
|
-
* // Before running the sample:
|
|
11185
|
-
* // - Enable the API at:
|
|
11186
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
11187
|
-
* // - Login into gcloud by running:
|
|
11188
|
-
* // ```sh
|
|
11189
|
-
* // $ gcloud auth application-default login
|
|
11190
|
-
* // ```
|
|
11191
|
-
* // - Install the npm module by running:
|
|
11192
|
-
* // ```sh
|
|
11193
|
-
* // $ npm install googleapis
|
|
11194
|
-
* // ```
|
|
11195
|
-
*
|
|
11196
|
-
* const {google} = require('googleapis');
|
|
11197
|
-
* const sqladmin = google.sqladmin('v1');
|
|
11198
|
-
*
|
|
11199
|
-
* async function main() {
|
|
11200
|
-
* const auth = new google.auth.GoogleAuth({
|
|
11201
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11202
|
-
* scopes: [
|
|
11203
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
11204
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
11205
|
-
* ],
|
|
11206
|
-
* });
|
|
11207
|
-
*
|
|
11208
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
11209
|
-
* const authClient = await auth.getClient();
|
|
11210
|
-
* google.options({auth: authClient});
|
|
11211
|
-
*
|
|
11212
|
-
* // Do the magic
|
|
11213
|
-
* const res = await sql.instances.restoreBackupMcp({
|
|
11214
|
-
* // Required. Cloud SQL instance ID of the target. This does not include the project ID.
|
|
11215
|
-
* targetInstance: 'placeholder-value',
|
|
11216
|
-
* // Required. Project ID of the target project.
|
|
11217
|
-
* targetProject: 'placeholder-value',
|
|
11218
|
-
*
|
|
11219
|
-
* // Request body metadata
|
|
11220
|
-
* requestBody: {
|
|
11221
|
-
* // request body parameters
|
|
11222
|
-
* // {
|
|
11223
|
-
* // "backupId": "my_backupId",
|
|
11224
|
-
* // "sourceInstance": "my_sourceInstance",
|
|
11225
|
-
* // "sourceProject": "my_sourceProject"
|
|
11226
|
-
* // }
|
|
11227
|
-
* },
|
|
11228
|
-
* });
|
|
11229
|
-
* console.log(res.data);
|
|
11230
|
-
*
|
|
11231
|
-
* // Example response
|
|
11232
|
-
* // {
|
|
11233
|
-
* // "acquireSsrsLeaseContext": {},
|
|
11234
|
-
* // "apiWarning": {},
|
|
11235
|
-
* // "backupContext": {},
|
|
11236
|
-
* // "endTime": "my_endTime",
|
|
11237
|
-
* // "error": {},
|
|
11238
|
-
* // "exportContext": {},
|
|
11239
|
-
* // "importContext": {},
|
|
11240
|
-
* // "insertTime": "my_insertTime",
|
|
11241
|
-
* // "kind": "my_kind",
|
|
11242
|
-
* // "name": "my_name",
|
|
11243
|
-
* // "operationType": "my_operationType",
|
|
11244
|
-
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11245
|
-
* // "selfLink": "my_selfLink",
|
|
11246
|
-
* // "startTime": "my_startTime",
|
|
11247
|
-
* // "status": "my_status",
|
|
11248
|
-
* // "subOperationType": {},
|
|
11249
|
-
* // "targetId": "my_targetId",
|
|
11250
|
-
* // "targetLink": "my_targetLink",
|
|
11251
|
-
* // "targetProject": "my_targetProject",
|
|
11252
|
-
* // "user": "my_user"
|
|
11253
|
-
* // }
|
|
11254
|
-
* }
|
|
11255
|
-
*
|
|
11256
|
-
* main().catch(e => {
|
|
11257
|
-
* console.error(e);
|
|
11258
|
-
* throw e;
|
|
11259
|
-
* });
|
|
11260
|
-
*
|
|
11261
|
-
* ```
|
|
11262
|
-
*
|
|
11263
|
-
* @param params - Parameters for request
|
|
11264
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11265
|
-
* @param callback - Optional callback that handles the response.
|
|
11266
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11267
|
-
*/
|
|
11268
|
-
restoreBackupMcp(
|
|
11269
|
-
params: Params$Resource$Instances$Restorebackupmcp,
|
|
11270
|
-
options: StreamMethodOptions
|
|
11271
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11272
|
-
restoreBackupMcp(
|
|
11273
|
-
params?: Params$Resource$Instances$Restorebackupmcp,
|
|
11274
|
-
options?: MethodOptions
|
|
11275
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
11276
|
-
restoreBackupMcp(
|
|
11277
|
-
params: Params$Resource$Instances$Restorebackupmcp,
|
|
11278
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
11279
|
-
callback: BodyResponseCallback<Readable>
|
|
11280
|
-
): void;
|
|
11281
|
-
restoreBackupMcp(
|
|
11282
|
-
params: Params$Resource$Instances$Restorebackupmcp,
|
|
11283
|
-
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
11284
|
-
callback: BodyResponseCallback<Schema$Operation>
|
|
11285
|
-
): void;
|
|
11286
|
-
restoreBackupMcp(
|
|
11287
|
-
params: Params$Resource$Instances$Restorebackupmcp,
|
|
11288
|
-
callback: BodyResponseCallback<Schema$Operation>
|
|
11289
|
-
): void;
|
|
11290
|
-
restoreBackupMcp(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
11291
|
-
restoreBackupMcp(
|
|
11292
|
-
paramsOrCallback?:
|
|
11293
|
-
| Params$Resource$Instances$Restorebackupmcp
|
|
11294
|
-
| BodyResponseCallback<Schema$Operation>
|
|
11295
|
-
| BodyResponseCallback<Readable>,
|
|
11296
|
-
optionsOrCallback?:
|
|
11297
|
-
| MethodOptions
|
|
11298
|
-
| StreamMethodOptions
|
|
11299
|
-
| BodyResponseCallback<Schema$Operation>
|
|
11300
|
-
| BodyResponseCallback<Readable>,
|
|
11301
|
-
callback?:
|
|
11302
|
-
| BodyResponseCallback<Schema$Operation>
|
|
11303
|
-
| BodyResponseCallback<Readable>
|
|
11304
|
-
):
|
|
11305
|
-
| void
|
|
11306
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
11307
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
11308
|
-
let params = (paramsOrCallback ||
|
|
11309
|
-
{}) as Params$Resource$Instances$Restorebackupmcp;
|
|
11310
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
11311
|
-
|
|
11312
|
-
if (typeof paramsOrCallback === 'function') {
|
|
11313
|
-
callback = paramsOrCallback;
|
|
11314
|
-
params = {} as Params$Resource$Instances$Restorebackupmcp;
|
|
11315
|
-
options = {};
|
|
11316
|
-
}
|
|
11317
|
-
|
|
11318
|
-
if (typeof optionsOrCallback === 'function') {
|
|
11319
|
-
callback = optionsOrCallback;
|
|
11320
|
-
options = {};
|
|
11321
|
-
}
|
|
11322
|
-
|
|
11323
|
-
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
11324
|
-
const parameters = {
|
|
11325
|
-
options: Object.assign(
|
|
11326
|
-
{
|
|
11327
|
-
url: (
|
|
11328
|
-
rootUrl +
|
|
11329
|
-
'/v1/projects/{targetProject}/instances/{targetInstance}:restoreBackupMcp'
|
|
11330
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
11331
|
-
method: 'POST',
|
|
11332
|
-
apiVersion: '',
|
|
11333
|
-
},
|
|
11334
|
-
options
|
|
11335
|
-
),
|
|
11336
|
-
params,
|
|
11337
|
-
requiredParams: ['targetProject', 'targetInstance'],
|
|
11338
|
-
pathParams: ['targetInstance', 'targetProject'],
|
|
11339
|
-
context: this.context,
|
|
11340
|
-
};
|
|
11341
|
-
if (callback) {
|
|
11342
|
-
createAPIRequest<Schema$Operation>(
|
|
11343
|
-
parameters,
|
|
11344
|
-
callback as BodyResponseCallback<unknown>
|
|
11345
|
-
);
|
|
11346
|
-
} else {
|
|
11347
|
-
return createAPIRequest<Schema$Operation>(parameters);
|
|
11348
|
-
}
|
|
11349
|
-
}
|
|
11350
|
-
|
|
11351
11198
|
/**
|
|
11352
11199
|
* Rotates the server certificate version to one previously added with the addEntraIdCertificate method.
|
|
11353
11200
|
* @example
|
|
@@ -12781,7 +12628,7 @@ export namespace sqladmin_v1 {
|
|
|
12781
12628
|
*/
|
|
12782
12629
|
instance?: string;
|
|
12783
12630
|
/**
|
|
12784
|
-
* Required. Project ID of the source
|
|
12631
|
+
* Required. Project ID of the source Cloud SQL instance.
|
|
12785
12632
|
*/
|
|
12786
12633
|
project?: string;
|
|
12787
12634
|
|
|
@@ -13094,21 +12941,6 @@ export namespace sqladmin_v1 {
|
|
|
13094
12941
|
*/
|
|
13095
12942
|
requestBody?: Schema$InstancesRestoreBackupRequest;
|
|
13096
12943
|
}
|
|
13097
|
-
export interface Params$Resource$Instances$Restorebackupmcp extends StandardParameters {
|
|
13098
|
-
/**
|
|
13099
|
-
* Required. Cloud SQL instance ID of the target. This does not include the project ID.
|
|
13100
|
-
*/
|
|
13101
|
-
targetInstance?: string;
|
|
13102
|
-
/**
|
|
13103
|
-
* Required. Project ID of the target project.
|
|
13104
|
-
*/
|
|
13105
|
-
targetProject?: string;
|
|
13106
|
-
|
|
13107
|
-
/**
|
|
13108
|
-
* Request body metadata
|
|
13109
|
-
*/
|
|
13110
|
-
requestBody?: Schema$SqlInstancesRestoreBackupMcpRequest;
|
|
13111
|
-
}
|
|
13112
12944
|
export interface Params$Resource$Instances$Rotateentraidcertificate extends StandardParameters {
|
|
13113
12945
|
/**
|
|
13114
12946
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -16679,6 +16511,8 @@ export namespace sqladmin_v1 {
|
|
|
16679
16511
|
* name: 'placeholder-value',
|
|
16680
16512
|
* // Project ID of the project that contains the instance.
|
|
16681
16513
|
* project: 'placeholder-value',
|
|
16514
|
+
* // Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16515
|
+
* revokeExistingRoles: 'placeholder-value',
|
|
16682
16516
|
*
|
|
16683
16517
|
* // Request body metadata
|
|
16684
16518
|
* requestBody: {
|
|
@@ -16904,6 +16738,10 @@ export namespace sqladmin_v1 {
|
|
|
16904
16738
|
* Project ID of the project that contains the instance.
|
|
16905
16739
|
*/
|
|
16906
16740
|
project?: string;
|
|
16741
|
+
/**
|
|
16742
|
+
* Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16743
|
+
*/
|
|
16744
|
+
revokeExistingRoles?: boolean;
|
|
16907
16745
|
|
|
16908
16746
|
/**
|
|
16909
16747
|
* Request body metadata
|
package/v1beta4.ts
CHANGED
|
@@ -553,6 +553,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
553
553
|
* Name of the Cloud SQL instance to be created as a clone.
|
|
554
554
|
*/
|
|
555
555
|
destinationInstanceName?: string | null;
|
|
556
|
+
/**
|
|
557
|
+
* Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via Private Services Access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
|
|
558
|
+
*/
|
|
559
|
+
destinationNetwork?: string | null;
|
|
560
|
+
/**
|
|
561
|
+
* Optional. The project ID of the destination project where the cloned instance will be created. To perform a cross-project clone, this field is required. If not specified, the clone is created in the same project as the source instance.
|
|
562
|
+
*/
|
|
563
|
+
destinationProject?: string | null;
|
|
556
564
|
/**
|
|
557
565
|
* This is always `sql#cloneContext`.
|
|
558
566
|
*/
|
|
@@ -2208,31 +2216,31 @@ export namespace sqladmin_v1beta4 {
|
|
|
2208
2216
|
reuseInterval?: number | null;
|
|
2209
2217
|
}
|
|
2210
2218
|
/**
|
|
2211
|
-
* Performance
|
|
2219
|
+
* Performance capture configuration.
|
|
2212
2220
|
*/
|
|
2213
2221
|
export interface Schema$PerformanceCaptureConfig {
|
|
2214
2222
|
/**
|
|
2215
|
-
* Optional.
|
|
2223
|
+
* Optional. Enables or disables the performance capture feature.
|
|
2216
2224
|
*/
|
|
2217
2225
|
enabled?: boolean | null;
|
|
2218
2226
|
/**
|
|
2219
|
-
* Optional.
|
|
2227
|
+
* Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
|
|
2220
2228
|
*/
|
|
2221
2229
|
probeThreshold?: number | null;
|
|
2222
2230
|
/**
|
|
2223
|
-
* Optional.
|
|
2231
|
+
* Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
|
|
2224
2232
|
*/
|
|
2225
2233
|
probingIntervalSeconds?: number | null;
|
|
2226
2234
|
/**
|
|
2227
|
-
* Optional.
|
|
2235
|
+
* Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
|
|
2228
2236
|
*/
|
|
2229
2237
|
runningThreadsThreshold?: number | null;
|
|
2230
2238
|
/**
|
|
2231
|
-
* Optional.
|
|
2239
|
+
* Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
|
|
2232
2240
|
*/
|
|
2233
2241
|
secondsBehindSourceThreshold?: number | null;
|
|
2234
2242
|
/**
|
|
2235
|
-
* Optional.
|
|
2243
|
+
* Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
|
|
2236
2244
|
*/
|
|
2237
2245
|
transactionDurationThreshold?: number | null;
|
|
2238
2246
|
}
|
|
@@ -2273,10 +2281,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
2273
2281
|
* Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.
|
|
2274
2282
|
*/
|
|
2275
2283
|
privateNetwork?: string | null;
|
|
2284
|
+
/**
|
|
2285
|
+
* Optional. The region of the target instance where the datasource will be restored. For example: "us-central1".
|
|
2286
|
+
*/
|
|
2287
|
+
region?: string | null;
|
|
2276
2288
|
/**
|
|
2277
2289
|
* Target instance name.
|
|
2278
2290
|
*/
|
|
2279
2291
|
targetInstance?: string | null;
|
|
2292
|
+
/**
|
|
2293
|
+
* Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.
|
|
2294
|
+
*/
|
|
2295
|
+
targetInstanceClearSettingsFieldNames?: string[] | null;
|
|
2296
|
+
/**
|
|
2297
|
+
* Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.
|
|
2298
|
+
*/
|
|
2299
|
+
targetInstanceSettings?: Schema$DatabaseInstance;
|
|
2280
2300
|
}
|
|
2281
2301
|
/**
|
|
2282
2302
|
* Details of a single read pool node of a read pool.
|
|
@@ -2390,10 +2410,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
2390
2410
|
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
2391
2411
|
*/
|
|
2392
2412
|
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
2413
|
+
/**
|
|
2414
|
+
* Optional. Indicates whether PSC DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect (PSC) auto-connections. This will default to true for new instances when Private Service Connect is enabled.
|
|
2415
|
+
*/
|
|
2416
|
+
pscAutoDnsEnabled?: boolean | null;
|
|
2393
2417
|
/**
|
|
2394
2418
|
* Whether PSC connectivity is enabled for this instance.
|
|
2395
2419
|
*/
|
|
2396
2420
|
pscEnabled?: boolean | null;
|
|
2421
|
+
/**
|
|
2422
|
+
* Optional. Indicates whether PSC write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect (PSC) auto-connections that always points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new enterprise plus instances when `psc_auto_dns_enabled` is enabled.
|
|
2423
|
+
*/
|
|
2424
|
+
pscWriteEndpointDnsEnabled?: boolean | null;
|
|
2397
2425
|
}
|
|
2398
2426
|
/**
|
|
2399
2427
|
* QueryResult contains the result of executing a single SQL statement.
|
|
@@ -2583,6 +2611,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2583
2611
|
* Database instance settings.
|
|
2584
2612
|
*/
|
|
2585
2613
|
export interface Schema$Settings {
|
|
2614
|
+
/**
|
|
2615
|
+
* Optional. Configures whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
|
|
2616
|
+
*/
|
|
2617
|
+
acceleratedReplicaMode?: boolean | null;
|
|
2586
2618
|
/**
|
|
2587
2619
|
* The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
|
|
2588
2620
|
*/
|
|
@@ -7321,7 +7353,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
7321
7353
|
* const res = await sql.instances.clone({
|
|
7322
7354
|
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
7323
7355
|
* instance: 'placeholder-value',
|
|
7324
|
-
* // Project ID of the source
|
|
7356
|
+
* // Project ID of the source Cloud SQL instance.
|
|
7325
7357
|
* project: 'placeholder-value',
|
|
7326
7358
|
*
|
|
7327
7359
|
* // Request body metadata
|
|
@@ -9898,7 +9930,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
9898
9930
|
* // "preferredSecondaryZone": "my_preferredSecondaryZone",
|
|
9899
9931
|
* // "preferredZone": "my_preferredZone",
|
|
9900
9932
|
* // "privateNetwork": "my_privateNetwork",
|
|
9901
|
-
* // "
|
|
9933
|
+
* // "region": "my_region",
|
|
9934
|
+
* // "targetInstance": "my_targetInstance",
|
|
9935
|
+
* // "targetInstanceClearSettingsFieldNames": [],
|
|
9936
|
+
* // "targetInstanceSettings": {}
|
|
9902
9937
|
* // }
|
|
9903
9938
|
* },
|
|
9904
9939
|
* });
|
|
@@ -12609,7 +12644,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12609
12644
|
*/
|
|
12610
12645
|
instance?: string;
|
|
12611
12646
|
/**
|
|
12612
|
-
* Project ID of the source
|
|
12647
|
+
* Project ID of the source Cloud SQL instance.
|
|
12613
12648
|
*/
|
|
12614
12649
|
project?: string;
|
|
12615
12650
|
|
|
@@ -16497,7 +16532,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16497
16532
|
* name: 'placeholder-value',
|
|
16498
16533
|
* // Project ID of the project that contains the instance.
|
|
16499
16534
|
* project: 'placeholder-value',
|
|
16500
|
-
* // Optional. revoke the
|
|
16535
|
+
* // Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16501
16536
|
* revokeExistingRoles: 'placeholder-value',
|
|
16502
16537
|
*
|
|
16503
16538
|
* // Request body metadata
|
|
@@ -16726,7 +16761,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
16726
16761
|
*/
|
|
16727
16762
|
project?: string;
|
|
16728
16763
|
/**
|
|
16729
|
-
* Optional. revoke the
|
|
16764
|
+
* Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
|
|
16730
16765
|
*/
|
|
16731
16766
|
revokeExistingRoles?: boolean;
|
|
16732
16767
|
|