@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/v1beta4.ts
CHANGED
|
@@ -230,7 +230,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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
|
/**
|
|
@@ -1163,7 +1143,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1163
1143
|
*/
|
|
1164
1144
|
kind?: string | null;
|
|
1165
1145
|
/**
|
|
1166
|
-
*
|
|
1146
|
+
* Whether to perform a serverless export.
|
|
1167
1147
|
*/
|
|
1168
1148
|
offload?: boolean | null;
|
|
1169
1149
|
/**
|
|
@@ -1590,6 +1570,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1590
1570
|
* 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.
|
|
1591
1571
|
*/
|
|
1592
1572
|
backup?: string | null;
|
|
1573
|
+
/**
|
|
1574
|
+
* 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.
|
|
1575
|
+
*/
|
|
1576
|
+
backupdrBackup?: string | null;
|
|
1593
1577
|
/**
|
|
1594
1578
|
* Parameters required to perform the restore backup operation.
|
|
1595
1579
|
*/
|
|
@@ -2085,31 +2069,64 @@ export namespace sqladmin_v1beta4 {
|
|
|
2085
2069
|
targetSizeGb?: string | null;
|
|
2086
2070
|
}
|
|
2087
2071
|
/**
|
|
2088
|
-
*
|
|
2072
|
+
* Context to perform a point-in-time restore of an instance managed by Google Cloud Backup and Disaster Recovery.
|
|
2073
|
+
*/
|
|
2074
|
+
export interface Schema$PointInTimeRestoreContext {
|
|
2075
|
+
/**
|
|
2076
|
+
* 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
|
|
2077
|
+
*/
|
|
2078
|
+
allocatedIpRange?: string | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/{project\}/locations/{region\}/backupVaults/{backupvault\}/dataSources/{datasource\}.
|
|
2081
|
+
*/
|
|
2082
|
+
datasource?: string | null;
|
|
2083
|
+
/**
|
|
2084
|
+
* Required. The date and time to which you want to restore the instance.
|
|
2085
|
+
*/
|
|
2086
|
+
pointInTime?: string | null;
|
|
2087
|
+
/**
|
|
2088
|
+
* 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.
|
|
2089
|
+
*/
|
|
2090
|
+
preferredSecondaryZone?: string | null;
|
|
2091
|
+
/**
|
|
2092
|
+
* 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.
|
|
2093
|
+
*/
|
|
2094
|
+
preferredZone?: string | null;
|
|
2095
|
+
/**
|
|
2096
|
+
* 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`.
|
|
2097
|
+
*/
|
|
2098
|
+
privateNetwork?: string | null;
|
|
2099
|
+
/**
|
|
2100
|
+
* Target instance name.
|
|
2101
|
+
*/
|
|
2102
|
+
targetInstance?: string | null;
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Details of a single read pool node of a read pool.
|
|
2089
2106
|
*/
|
|
2090
2107
|
export interface Schema$PoolNodeConfig {
|
|
2091
2108
|
/**
|
|
2092
|
-
* Output only. The DNS name of the node.
|
|
2109
|
+
* Output only. The DNS name of the read pool node.
|
|
2093
2110
|
*/
|
|
2094
2111
|
dnsName?: string | null;
|
|
2095
2112
|
/**
|
|
2096
|
-
* Output only. The list of DNS names used by this node.
|
|
2113
|
+
* Output only. The list of DNS names used by this read pool node.
|
|
2097
2114
|
*/
|
|
2098
2115
|
dnsNames?: Schema$DnsNameMapping[];
|
|
2099
2116
|
/**
|
|
2100
|
-
* Output only. The
|
|
2117
|
+
* Output only. The zone of the read pool node.
|
|
2101
2118
|
*/
|
|
2102
2119
|
gceZone?: string | null;
|
|
2103
2120
|
/**
|
|
2104
|
-
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
2121
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
|
|
2105
2122
|
*/
|
|
2106
2123
|
ipAddresses?: Schema$IpMapping[];
|
|
2107
2124
|
/**
|
|
2108
|
-
* Output only. The name of the node, to be used for retrieving metrics and logs
|
|
2125
|
+
* Output only. The name of the read pool node, to be used for retrieving metrics and logs.
|
|
2109
2126
|
*/
|
|
2110
2127
|
name?: string | null;
|
|
2111
2128
|
/**
|
|
2112
|
-
* Output only. The current state of the node.
|
|
2129
|
+
* Output only. The current state of the read pool node.
|
|
2113
2130
|
*/
|
|
2114
2131
|
state?: string | null;
|
|
2115
2132
|
}
|
|
@@ -2348,7 +2365,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2348
2365
|
*/
|
|
2349
2366
|
enableDataplexIntegration?: boolean | null;
|
|
2350
2367
|
/**
|
|
2351
|
-
* 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.
|
|
2368
|
+
* 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.
|
|
2352
2369
|
*/
|
|
2353
2370
|
enableGoogleMlIntegration?: boolean | null;
|
|
2354
2371
|
/**
|
|
@@ -3720,7 +3737,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3720
3737
|
}
|
|
3721
3738
|
|
|
3722
3739
|
/**
|
|
3723
|
-
*
|
|
3740
|
+
* 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.
|
|
3724
3741
|
*
|
|
3725
3742
|
* @param params - Parameters for request
|
|
3726
3743
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3860,7 +3877,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3860
3877
|
*/
|
|
3861
3878
|
name?: string;
|
|
3862
3879
|
/**
|
|
3863
|
-
* The list of fields that you can update. You can update only the description and retention period
|
|
3880
|
+
* 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.
|
|
3864
3881
|
*/
|
|
3865
3882
|
updateMask?: string;
|
|
3866
3883
|
|
|
@@ -6257,6 +6274,93 @@ export namespace sqladmin_v1beta4 {
|
|
|
6257
6274
|
}
|
|
6258
6275
|
}
|
|
6259
6276
|
|
|
6277
|
+
/**
|
|
6278
|
+
* Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
|
|
6279
|
+
*
|
|
6280
|
+
* @param params - Parameters for request
|
|
6281
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6282
|
+
* @param callback - Optional callback that handles the response.
|
|
6283
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6284
|
+
*/
|
|
6285
|
+
pointInTimeRestore(
|
|
6286
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6287
|
+
options: StreamMethodOptions
|
|
6288
|
+
): GaxiosPromise<Readable>;
|
|
6289
|
+
pointInTimeRestore(
|
|
6290
|
+
params?: Params$Resource$Instances$Pointintimerestore,
|
|
6291
|
+
options?: MethodOptions
|
|
6292
|
+
): GaxiosPromise<Schema$Operation>;
|
|
6293
|
+
pointInTimeRestore(
|
|
6294
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6295
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6296
|
+
callback: BodyResponseCallback<Readable>
|
|
6297
|
+
): void;
|
|
6298
|
+
pointInTimeRestore(
|
|
6299
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6300
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6301
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6302
|
+
): void;
|
|
6303
|
+
pointInTimeRestore(
|
|
6304
|
+
params: Params$Resource$Instances$Pointintimerestore,
|
|
6305
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6306
|
+
): void;
|
|
6307
|
+
pointInTimeRestore(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6308
|
+
pointInTimeRestore(
|
|
6309
|
+
paramsOrCallback?:
|
|
6310
|
+
| Params$Resource$Instances$Pointintimerestore
|
|
6311
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6312
|
+
| BodyResponseCallback<Readable>,
|
|
6313
|
+
optionsOrCallback?:
|
|
6314
|
+
| MethodOptions
|
|
6315
|
+
| StreamMethodOptions
|
|
6316
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6317
|
+
| BodyResponseCallback<Readable>,
|
|
6318
|
+
callback?:
|
|
6319
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6320
|
+
| BodyResponseCallback<Readable>
|
|
6321
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
6322
|
+
let params = (paramsOrCallback ||
|
|
6323
|
+
{}) as Params$Resource$Instances$Pointintimerestore;
|
|
6324
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6325
|
+
|
|
6326
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6327
|
+
callback = paramsOrCallback;
|
|
6328
|
+
params = {} as Params$Resource$Instances$Pointintimerestore;
|
|
6329
|
+
options = {};
|
|
6330
|
+
}
|
|
6331
|
+
|
|
6332
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6333
|
+
callback = optionsOrCallback;
|
|
6334
|
+
options = {};
|
|
6335
|
+
}
|
|
6336
|
+
|
|
6337
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6338
|
+
const parameters = {
|
|
6339
|
+
options: Object.assign(
|
|
6340
|
+
{
|
|
6341
|
+
url: (
|
|
6342
|
+
rootUrl + '/sql/v1beta4/{+parent}:pointInTimeRestore'
|
|
6343
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6344
|
+
method: 'POST',
|
|
6345
|
+
apiVersion: '',
|
|
6346
|
+
},
|
|
6347
|
+
options
|
|
6348
|
+
),
|
|
6349
|
+
params,
|
|
6350
|
+
requiredParams: ['parent'],
|
|
6351
|
+
pathParams: ['parent'],
|
|
6352
|
+
context: this.context,
|
|
6353
|
+
};
|
|
6354
|
+
if (callback) {
|
|
6355
|
+
createAPIRequest<Schema$Operation>(
|
|
6356
|
+
parameters,
|
|
6357
|
+
callback as BodyResponseCallback<unknown>
|
|
6358
|
+
);
|
|
6359
|
+
} else {
|
|
6360
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6363
|
+
|
|
6260
6364
|
/**
|
|
6261
6365
|
* Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
|
|
6262
6366
|
*
|
|
@@ -7643,6 +7747,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
7643
7747
|
*/
|
|
7644
7748
|
requestBody?: Schema$DatabaseInstance;
|
|
7645
7749
|
}
|
|
7750
|
+
export interface Params$Resource$Instances$Pointintimerestore
|
|
7751
|
+
extends StandardParameters {
|
|
7752
|
+
/**
|
|
7753
|
+
* Required. The parent resource where you created this instance. Format: projects/{project\}
|
|
7754
|
+
*/
|
|
7755
|
+
parent?: string;
|
|
7756
|
+
|
|
7757
|
+
/**
|
|
7758
|
+
* Request body metadata
|
|
7759
|
+
*/
|
|
7760
|
+
requestBody?: Schema$PointInTimeRestoreContext;
|
|
7761
|
+
}
|
|
7646
7762
|
export interface Params$Resource$Instances$Promotereplica
|
|
7647
7763
|
extends StandardParameters {
|
|
7648
7764
|
/**
|