@googleapis/sqladmin 28.0.0 → 29.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 +13 -0
- package/build/v1.d.ts +88 -47
- package/build/v1.js +32 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +88 -47
- package/build/v1beta4.js +32 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +164 -47
- package/v1beta4.ts +163 -47
package/v1.ts
CHANGED
|
@@ -230,7 +230,7 @@ export namespace sqladmin_v1 {
|
|
|
230
230
|
name?: string | null;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* A backup resource.
|
|
233
|
+
* A backup resource. Next ID: 30
|
|
234
234
|
*/
|
|
235
235
|
export interface Schema$Backup {
|
|
236
236
|
/**
|
|
@@ -246,7 +246,7 @@ export namespace sqladmin_v1 {
|
|
|
246
246
|
*/
|
|
247
247
|
backupRun?: string | null;
|
|
248
248
|
/**
|
|
249
|
-
* Output only. The database version of the instance of
|
|
249
|
+
* Output only. The database version of the instance of at the time this backup was made.
|
|
250
250
|
*/
|
|
251
251
|
databaseVersion?: string | null;
|
|
252
252
|
/**
|
|
@@ -334,6 +334,10 @@ export namespace sqladmin_v1 {
|
|
|
334
334
|
* Backup retention settings.
|
|
335
335
|
*/
|
|
336
336
|
backupRetentionSettings?: Schema$BackupRetentionSettings;
|
|
337
|
+
/**
|
|
338
|
+
* Output only. Backup tier that manages the backups for the instance.
|
|
339
|
+
*/
|
|
340
|
+
backupTier?: string | null;
|
|
337
341
|
/**
|
|
338
342
|
* (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
|
|
339
343
|
*/
|
|
@@ -423,7 +427,7 @@ export namespace sqladmin_v1 {
|
|
|
423
427
|
*/
|
|
424
428
|
backupKind?: string | null;
|
|
425
429
|
/**
|
|
426
|
-
* Output only. The instance database version
|
|
430
|
+
* Output only. The instance database version at the time this backup was made.
|
|
427
431
|
*/
|
|
428
432
|
databaseVersion?: string | null;
|
|
429
433
|
/**
|
|
@@ -574,38 +578,14 @@ export namespace sqladmin_v1 {
|
|
|
574
578
|
* The managed connection pooling configuration.
|
|
575
579
|
*/
|
|
576
580
|
export interface Schema$ConnectionPoolConfig {
|
|
577
|
-
/**
|
|
578
|
-
* Client idle timeout.
|
|
579
|
-
*/
|
|
580
|
-
clientConnectionIdleTimeout?: string | null;
|
|
581
581
|
/**
|
|
582
582
|
* Whether managed connection pooling is enabled.
|
|
583
583
|
*/
|
|
584
584
|
connectionPoolingEnabled?: boolean | null;
|
|
585
|
-
/**
|
|
586
|
-
* Managed connection pool size.
|
|
587
|
-
*/
|
|
588
|
-
connPoolSize?: number | null;
|
|
589
585
|
/**
|
|
590
586
|
* Optional. List of connection pool configuration flags
|
|
591
587
|
*/
|
|
592
588
|
flags?: Schema$ConnectionPoolFlags[];
|
|
593
|
-
/**
|
|
594
|
-
* Maximum number of client connections in connection pool.
|
|
595
|
-
*/
|
|
596
|
-
maxClientConnections?: number | null;
|
|
597
|
-
/**
|
|
598
|
-
* The managed connection pool mode for the instance.
|
|
599
|
-
*/
|
|
600
|
-
poolMode?: string | null;
|
|
601
|
-
/**
|
|
602
|
-
* Query wait timeout.
|
|
603
|
-
*/
|
|
604
|
-
queryWaitTimeout?: string | null;
|
|
605
|
-
/**
|
|
606
|
-
* Server idle timeout.
|
|
607
|
-
*/
|
|
608
|
-
serverConnectionIdleTimeout?: string | null;
|
|
609
589
|
}
|
|
610
590
|
/**
|
|
611
591
|
* Connection pool flags for Cloud SQL instances managed connection pool configuration.
|
|
@@ -621,23 +601,23 @@ export namespace sqladmin_v1 {
|
|
|
621
601
|
value?: string | null;
|
|
622
602
|
}
|
|
623
603
|
/**
|
|
624
|
-
* Details of a single node of a read pool.
|
|
604
|
+
* Details of a single read pool node of a read pool.
|
|
625
605
|
*/
|
|
626
606
|
export interface Schema$ConnectPoolNodeConfig {
|
|
627
607
|
/**
|
|
628
|
-
* Output only. The DNS name of the node.
|
|
608
|
+
* Output only. The DNS name of the read pool node.
|
|
629
609
|
*/
|
|
630
610
|
dnsName?: string | null;
|
|
631
611
|
/**
|
|
632
|
-
* Output only. The list of DNS names used by this node.
|
|
612
|
+
* Output only. The list of DNS names used by this read pool node.
|
|
633
613
|
*/
|
|
634
614
|
dnsNames?: Schema$DnsNameMapping[];
|
|
635
615
|
/**
|
|
636
|
-
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
616
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
|
|
637
617
|
*/
|
|
638
618
|
ipAddresses?: Schema$IpMapping[];
|
|
639
619
|
/**
|
|
640
|
-
* Output only. The name of the node. Doesn't include the project ID.
|
|
620
|
+
* Output only. The name of the read pool node. Doesn't include the project ID.
|
|
641
621
|
*/
|
|
642
622
|
name?: string | null;
|
|
643
623
|
}
|
|
@@ -674,11 +654,11 @@ export namespace sqladmin_v1 {
|
|
|
674
654
|
*/
|
|
675
655
|
kind?: string | null;
|
|
676
656
|
/**
|
|
677
|
-
* The number of nodes in a read pool.
|
|
657
|
+
* The number of read pool nodes in a read pool.
|
|
678
658
|
*/
|
|
679
659
|
nodeCount?: number | null;
|
|
680
660
|
/**
|
|
681
|
-
* Output only. Entries containing information about each node of the read pool.
|
|
661
|
+
* Output only. Entries containing information about each read pool node of the read pool.
|
|
682
662
|
*/
|
|
683
663
|
nodes?: Schema$ConnectPoolNodeConfig[];
|
|
684
664
|
/**
|
|
@@ -850,11 +830,11 @@ export namespace sqladmin_v1 {
|
|
|
850
830
|
*/
|
|
851
831
|
name?: string | null;
|
|
852
832
|
/**
|
|
853
|
-
* The number of nodes in a read pool.
|
|
833
|
+
* The number of read pool nodes in a read pool.
|
|
854
834
|
*/
|
|
855
835
|
nodeCount?: number | null;
|
|
856
836
|
/**
|
|
857
|
-
* Output only. Entries containing information about each node of the read pool.
|
|
837
|
+
* Output only. Entries containing information about each read pool node of the read pool.
|
|
858
838
|
*/
|
|
859
839
|
nodes?: Schema$PoolNodeConfig[];
|
|
860
840
|
/**
|
|
@@ -1160,7 +1140,7 @@ export namespace sqladmin_v1 {
|
|
|
1160
1140
|
*/
|
|
1161
1141
|
kind?: string | null;
|
|
1162
1142
|
/**
|
|
1163
|
-
*
|
|
1143
|
+
* Whether to perform a serverless export.
|
|
1164
1144
|
*/
|
|
1165
1145
|
offload?: boolean | null;
|
|
1166
1146
|
/**
|
|
@@ -1587,6 +1567,10 @@ export namespace sqladmin_v1 {
|
|
|
1587
1567
|
* The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id\}/backups/{backup-uid\}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
|
|
1588
1568
|
*/
|
|
1589
1569
|
backup?: string | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id\}/locations/{location\}/backupVaults/{backupvault\}/dataSources/{datasource\}/backups/{backup-uid\}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
|
|
1572
|
+
*/
|
|
1573
|
+
backupdrBackup?: string | null;
|
|
1590
1574
|
/**
|
|
1591
1575
|
* Parameters required to perform the restore backup operation.
|
|
1592
1576
|
*/
|
|
@@ -2082,31 +2066,64 @@ export namespace sqladmin_v1 {
|
|
|
2082
2066
|
targetSizeGb?: string | null;
|
|
2083
2067
|
}
|
|
2084
2068
|
/**
|
|
2085
|
-
*
|
|
2069
|
+
* The context to perform a point-in-time recovery of an instance managed by Google Cloud Backup and Disaster Recovery.
|
|
2070
|
+
*/
|
|
2071
|
+
export interface Schema$PointInTimeRestoreContext {
|
|
2072
|
+
/**
|
|
2073
|
+
* 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. http://go/speckle-subnet-picker-clone
|
|
2074
|
+
*/
|
|
2075
|
+
allocatedIpRange?: string | null;
|
|
2076
|
+
/**
|
|
2077
|
+
* The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/{project\}/locations/{region\}/backupVaults/{backupvault\}/dataSources/{datasource\}.
|
|
2078
|
+
*/
|
|
2079
|
+
datasource?: string | null;
|
|
2080
|
+
/**
|
|
2081
|
+
* Required. The date and time to which you want to restore the instance.
|
|
2082
|
+
*/
|
|
2083
|
+
pointInTime?: string | null;
|
|
2084
|
+
/**
|
|
2085
|
+
* Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.
|
|
2086
|
+
*/
|
|
2087
|
+
preferredSecondaryZone?: string | null;
|
|
2088
|
+
/**
|
|
2089
|
+
* Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.
|
|
2090
|
+
*/
|
|
2091
|
+
preferredZone?: string | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* 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`.
|
|
2094
|
+
*/
|
|
2095
|
+
privateNetwork?: string | null;
|
|
2096
|
+
/**
|
|
2097
|
+
* Target instance name.
|
|
2098
|
+
*/
|
|
2099
|
+
targetInstance?: string | null;
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Details of a single read pool node of a read pool.
|
|
2086
2103
|
*/
|
|
2087
2104
|
export interface Schema$PoolNodeConfig {
|
|
2088
2105
|
/**
|
|
2089
|
-
* Output only. The DNS name of the node.
|
|
2106
|
+
* Output only. The DNS name of the read pool node.
|
|
2090
2107
|
*/
|
|
2091
2108
|
dnsName?: string | null;
|
|
2092
2109
|
/**
|
|
2093
|
-
* Output only. The list of DNS names used by this node.
|
|
2110
|
+
* Output only. The list of DNS names used by this read pool node.
|
|
2094
2111
|
*/
|
|
2095
2112
|
dnsNames?: Schema$DnsNameMapping[];
|
|
2096
2113
|
/**
|
|
2097
|
-
* Output only. The
|
|
2114
|
+
* Output only. The zone of the read pool node.
|
|
2098
2115
|
*/
|
|
2099
2116
|
gceZone?: string | null;
|
|
2100
2117
|
/**
|
|
2101
|
-
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
2118
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
|
|
2102
2119
|
*/
|
|
2103
2120
|
ipAddresses?: Schema$IpMapping[];
|
|
2104
2121
|
/**
|
|
2105
|
-
* Output only. The name of the node, to be used for retrieving metrics and logs
|
|
2122
|
+
* Output only. The name of the read pool node, to be used for retrieving metrics and logs.
|
|
2106
2123
|
*/
|
|
2107
2124
|
name?: string | null;
|
|
2108
2125
|
/**
|
|
2109
|
-
* Output only. The current state of the node.
|
|
2126
|
+
* Output only. The current state of the read pool node.
|
|
2110
2127
|
*/
|
|
2111
2128
|
state?: string | null;
|
|
2112
2129
|
}
|
|
@@ -2345,7 +2362,7 @@ export namespace sqladmin_v1 {
|
|
|
2345
2362
|
*/
|
|
2346
2363
|
enableDataplexIntegration?: boolean | null;
|
|
2347
2364
|
/**
|
|
2348
|
-
* 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 PostgreSQL instances.
|
|
2365
|
+
* 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.
|
|
2349
2366
|
*/
|
|
2350
2367
|
enableGoogleMlIntegration?: boolean | null;
|
|
2351
2368
|
/**
|
|
@@ -3715,7 +3732,7 @@ export namespace sqladmin_v1 {
|
|
|
3715
3732
|
}
|
|
3716
3733
|
|
|
3717
3734
|
/**
|
|
3718
|
-
*
|
|
3735
|
+
* This API updates the following: 1- retention period and description of backup in case of final backups only. 2- gcbdr_soft_delete_status of backup in case of GCBDR managed backups only.
|
|
3719
3736
|
*
|
|
3720
3737
|
* @param params - Parameters for request
|
|
3721
3738
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3852,7 +3869,7 @@ export namespace sqladmin_v1 {
|
|
|
3852
3869
|
*/
|
|
3853
3870
|
name?: string;
|
|
3854
3871
|
/**
|
|
3855
|
-
* The list of fields that you can update. You can update only the description and retention period
|
|
3872
|
+
* The list of fields that you can update. 1- You can update only the description and retention period for a final backup. 2- You can update only the gcbdr_soft_delete_status for GCBDR managed backup.
|
|
3856
3873
|
*/
|
|
3857
3874
|
updateMask?: string;
|
|
3858
3875
|
|
|
@@ -6244,6 +6261,94 @@ export namespace sqladmin_v1 {
|
|
|
6244
6261
|
}
|
|
6245
6262
|
}
|
|
6246
6263
|
|
|
6264
|
+
/**
|
|
6265
|
+
* Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
|
|
6266
|
+
*
|
|
6267
|
+
* @param params - Parameters for request
|
|
6268
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6269
|
+
* @param callback - Optional callback that handles the response.
|
|
6270
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6271
|
+
*/
|
|
6272
|
+
pointInTimeRestore(
|
|
6273
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6274
|
+
options: StreamMethodOptions
|
|
6275
|
+
): GaxiosPromise<Readable>;
|
|
6276
|
+
pointInTimeRestore(
|
|
6277
|
+
params?: Params$Resource$Instances$Pointintimerestore,
|
|
6278
|
+
options?: MethodOptions
|
|
6279
|
+
): GaxiosPromise<Schema$Operation>;
|
|
6280
|
+
pointInTimeRestore(
|
|
6281
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6282
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6283
|
+
callback: BodyResponseCallback<Readable>
|
|
6284
|
+
): void;
|
|
6285
|
+
pointInTimeRestore(
|
|
6286
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6287
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6288
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6289
|
+
): void;
|
|
6290
|
+
pointInTimeRestore(
|
|
6291
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6292
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6293
|
+
): void;
|
|
6294
|
+
pointInTimeRestore(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6295
|
+
pointInTimeRestore(
|
|
6296
|
+
paramsOrCallback?:
|
|
6297
|
+
| Params$Resource$Instances$Pointintimerestore
|
|
6298
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6299
|
+
| BodyResponseCallback<Readable>,
|
|
6300
|
+
optionsOrCallback?:
|
|
6301
|
+
| MethodOptions
|
|
6302
|
+
| StreamMethodOptions
|
|
6303
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6304
|
+
| BodyResponseCallback<Readable>,
|
|
6305
|
+
callback?:
|
|
6306
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6307
|
+
| BodyResponseCallback<Readable>
|
|
6308
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
6309
|
+
let params = (paramsOrCallback ||
|
|
6310
|
+
{}) as Params$Resource$Instances$Pointintimerestore;
|
|
6311
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6312
|
+
|
|
6313
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6314
|
+
callback = paramsOrCallback;
|
|
6315
|
+
params = {} as Params$Resource$Instances$Pointintimerestore;
|
|
6316
|
+
options = {};
|
|
6317
|
+
}
|
|
6318
|
+
|
|
6319
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6320
|
+
callback = optionsOrCallback;
|
|
6321
|
+
options = {};
|
|
6322
|
+
}
|
|
6323
|
+
|
|
6324
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6325
|
+
const parameters = {
|
|
6326
|
+
options: Object.assign(
|
|
6327
|
+
{
|
|
6328
|
+
url: (rootUrl + '/v1/{+parent}:pointInTimeRestore').replace(
|
|
6329
|
+
/([^:]\/)\/+/g,
|
|
6330
|
+
'$1'
|
|
6331
|
+
),
|
|
6332
|
+
method: 'POST',
|
|
6333
|
+
apiVersion: '',
|
|
6334
|
+
},
|
|
6335
|
+
options
|
|
6336
|
+
),
|
|
6337
|
+
params,
|
|
6338
|
+
requiredParams: ['parent'],
|
|
6339
|
+
pathParams: ['parent'],
|
|
6340
|
+
context: this.context,
|
|
6341
|
+
};
|
|
6342
|
+
if (callback) {
|
|
6343
|
+
createAPIRequest<Schema$Operation>(
|
|
6344
|
+
parameters,
|
|
6345
|
+
callback as BodyResponseCallback<unknown>
|
|
6346
|
+
);
|
|
6347
|
+
} else {
|
|
6348
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6351
|
+
|
|
6247
6352
|
/**
|
|
6248
6353
|
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
|
|
6249
6354
|
*
|
|
@@ -7627,6 +7732,18 @@ export namespace sqladmin_v1 {
|
|
|
7627
7732
|
*/
|
|
7628
7733
|
requestBody?: Schema$DatabaseInstance;
|
|
7629
7734
|
}
|
|
7735
|
+
export interface Params$Resource$Instances$Pointintimerestore
|
|
7736
|
+
extends StandardParameters {
|
|
7737
|
+
/**
|
|
7738
|
+
* Required. The parent resource where you created this instance. Format: projects/{project\}
|
|
7739
|
+
*/
|
|
7740
|
+
parent?: string;
|
|
7741
|
+
|
|
7742
|
+
/**
|
|
7743
|
+
* Request body metadata
|
|
7744
|
+
*/
|
|
7745
|
+
requestBody?: Schema$PointInTimeRestoreContext;
|
|
7746
|
+
}
|
|
7630
7747
|
export interface Params$Resource$Instances$Promotereplica
|
|
7631
7748
|
extends StandardParameters {
|
|
7632
7749
|
/**
|