@googleapis/sqladmin 10.2.0 → 12.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 +26 -0
- package/build/v1.d.ts +107 -4
- package/build/v1.js +61 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +111 -5
- package/build/v1beta4.js +63 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +252 -4
- package/v1beta4.ts +258 -5
package/v1.ts
CHANGED
|
@@ -598,7 +598,7 @@ export namespace sqladmin_v1 {
|
|
|
598
598
|
*/
|
|
599
599
|
outOfDiskReport?: Schema$SqlOutOfDiskReport;
|
|
600
600
|
/**
|
|
601
|
-
* Output only.
|
|
601
|
+
* Output only. DEPRECATED: please use write_endpoint instead.
|
|
602
602
|
*/
|
|
603
603
|
primaryDnsName?: string | null;
|
|
604
604
|
/**
|
|
@@ -653,6 +653,7 @@ export namespace sqladmin_v1 {
|
|
|
653
653
|
* The user settings.
|
|
654
654
|
*/
|
|
655
655
|
settings?: Schema$Settings;
|
|
656
|
+
sqlNetworkArchitecture?: string | null;
|
|
656
657
|
/**
|
|
657
658
|
* The current serving state of the Cloud SQL instance.
|
|
658
659
|
*/
|
|
@@ -661,6 +662,10 @@ export namespace sqladmin_v1 {
|
|
|
661
662
|
* If the instance state is SUSPENDED, the reason for the suspension.
|
|
662
663
|
*/
|
|
663
664
|
suspensionReason?: string[] | null;
|
|
665
|
+
/**
|
|
666
|
+
* Output only. The dns name of the primary instance in a replication group.
|
|
667
|
+
*/
|
|
668
|
+
writeEndpoint?: string | null;
|
|
664
669
|
}
|
|
665
670
|
/**
|
|
666
671
|
* Database list response.
|
|
@@ -684,6 +689,19 @@ export namespace sqladmin_v1 {
|
|
|
684
689
|
*/
|
|
685
690
|
dataCacheEnabled?: boolean | null;
|
|
686
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
694
|
+
*/
|
|
695
|
+
export interface Schema$DemoteContext {
|
|
696
|
+
/**
|
|
697
|
+
* This is always `sql#demoteContext`.
|
|
698
|
+
*/
|
|
699
|
+
kind?: string | null;
|
|
700
|
+
/**
|
|
701
|
+
* Required. The name of the instance which acts as the on-premises primary instance in the replication setup.
|
|
702
|
+
*/
|
|
703
|
+
sourceRepresentativeInstanceName?: string | null;
|
|
704
|
+
}
|
|
687
705
|
/**
|
|
688
706
|
* Read-replica configuration for connecting to the on-premises primary instance.
|
|
689
707
|
*/
|
|
@@ -1064,6 +1082,15 @@ export namespace sqladmin_v1 {
|
|
|
1064
1082
|
*/
|
|
1065
1083
|
demoteMasterContext?: Schema$DemoteMasterContext;
|
|
1066
1084
|
}
|
|
1085
|
+
/**
|
|
1086
|
+
* This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
1087
|
+
*/
|
|
1088
|
+
export interface Schema$InstancesDemoteRequest {
|
|
1089
|
+
/**
|
|
1090
|
+
* Required. Contains details about the demote operation.
|
|
1091
|
+
*/
|
|
1092
|
+
demoteContext?: Schema$DemoteContext;
|
|
1093
|
+
}
|
|
1067
1094
|
/**
|
|
1068
1095
|
* Database instance export request.
|
|
1069
1096
|
*/
|
|
@@ -1191,12 +1218,16 @@ export namespace sqladmin_v1 {
|
|
|
1191
1218
|
*/
|
|
1192
1219
|
pscConfig?: Schema$PscConfig;
|
|
1193
1220
|
/**
|
|
1194
|
-
* Whether SSL connections over IP are enforced
|
|
1221
|
+
* Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.
|
|
1195
1222
|
*/
|
|
1196
1223
|
requireSsl?: boolean | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database respects `ssl_mode` in this case and only accepts SSL connections.
|
|
1226
|
+
*/
|
|
1227
|
+
sslMode?: string | null;
|
|
1197
1228
|
}
|
|
1198
1229
|
/**
|
|
1199
|
-
* Database instance IP
|
|
1230
|
+
* Database instance IP mapping
|
|
1200
1231
|
*/
|
|
1201
1232
|
export interface Schema$IpMapping {
|
|
1202
1233
|
/**
|
|
@@ -1357,6 +1388,10 @@ export namespace sqladmin_v1 {
|
|
|
1357
1388
|
* An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
|
|
1358
1389
|
*/
|
|
1359
1390
|
export interface Schema$Operation {
|
|
1391
|
+
/**
|
|
1392
|
+
* An Admin API warning message.
|
|
1393
|
+
*/
|
|
1394
|
+
apiWarning?: Schema$ApiWarning;
|
|
1360
1395
|
/**
|
|
1361
1396
|
* The context for backup operation, if applicable.
|
|
1362
1397
|
*/
|
|
@@ -1520,6 +1555,10 @@ export namespace sqladmin_v1 {
|
|
|
1520
1555
|
* The complexity of the password.
|
|
1521
1556
|
*/
|
|
1522
1557
|
complexity?: string | null;
|
|
1558
|
+
/**
|
|
1559
|
+
* Disallow credentials that have been previously compromised by a public data breach.
|
|
1560
|
+
*/
|
|
1561
|
+
disallowCompromisedCredentials?: boolean | null;
|
|
1523
1562
|
/**
|
|
1524
1563
|
* Disallow username as a part of the password.
|
|
1525
1564
|
*/
|
|
@@ -1555,7 +1594,7 @@ export namespace sqladmin_v1 {
|
|
|
1555
1594
|
*/
|
|
1556
1595
|
export interface Schema$PscConfig {
|
|
1557
1596
|
/**
|
|
1558
|
-
*
|
|
1597
|
+
* Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
|
1559
1598
|
*/
|
|
1560
1599
|
allowedConsumerProjects?: string[] | null;
|
|
1561
1600
|
/**
|
|
@@ -1567,6 +1606,10 @@ export namespace sqladmin_v1 {
|
|
|
1567
1606
|
* Read-replica configuration for connecting to the primary instance.
|
|
1568
1607
|
*/
|
|
1569
1608
|
export interface Schema$ReplicaConfiguration {
|
|
1609
|
+
/**
|
|
1610
|
+
* Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
|
|
1611
|
+
*/
|
|
1612
|
+
cascadableReplica?: boolean | null;
|
|
1570
1613
|
/**
|
|
1571
1614
|
* Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
|
|
1572
1615
|
*/
|
|
@@ -3851,6 +3894,91 @@ export namespace sqladmin_v1 {
|
|
|
3851
3894
|
}
|
|
3852
3895
|
}
|
|
3853
3896
|
|
|
3897
|
+
/**
|
|
3898
|
+
* Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
3899
|
+
*
|
|
3900
|
+
* @param params - Parameters for request
|
|
3901
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3902
|
+
* @param callback - Optional callback that handles the response.
|
|
3903
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3904
|
+
*/
|
|
3905
|
+
demote(
|
|
3906
|
+
params: Params$Resource$Instances$Demote,
|
|
3907
|
+
options: StreamMethodOptions
|
|
3908
|
+
): GaxiosPromise<Readable>;
|
|
3909
|
+
demote(
|
|
3910
|
+
params?: Params$Resource$Instances$Demote,
|
|
3911
|
+
options?: MethodOptions
|
|
3912
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3913
|
+
demote(
|
|
3914
|
+
params: Params$Resource$Instances$Demote,
|
|
3915
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3916
|
+
callback: BodyResponseCallback<Readable>
|
|
3917
|
+
): void;
|
|
3918
|
+
demote(
|
|
3919
|
+
params: Params$Resource$Instances$Demote,
|
|
3920
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3921
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3922
|
+
): void;
|
|
3923
|
+
demote(
|
|
3924
|
+
params: Params$Resource$Instances$Demote,
|
|
3925
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3926
|
+
): void;
|
|
3927
|
+
demote(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3928
|
+
demote(
|
|
3929
|
+
paramsOrCallback?:
|
|
3930
|
+
| Params$Resource$Instances$Demote
|
|
3931
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3932
|
+
| BodyResponseCallback<Readable>,
|
|
3933
|
+
optionsOrCallback?:
|
|
3934
|
+
| MethodOptions
|
|
3935
|
+
| StreamMethodOptions
|
|
3936
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3937
|
+
| BodyResponseCallback<Readable>,
|
|
3938
|
+
callback?:
|
|
3939
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3940
|
+
| BodyResponseCallback<Readable>
|
|
3941
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3942
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Instances$Demote;
|
|
3943
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3944
|
+
|
|
3945
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3946
|
+
callback = paramsOrCallback;
|
|
3947
|
+
params = {} as Params$Resource$Instances$Demote;
|
|
3948
|
+
options = {};
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3952
|
+
callback = optionsOrCallback;
|
|
3953
|
+
options = {};
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3957
|
+
const parameters = {
|
|
3958
|
+
options: Object.assign(
|
|
3959
|
+
{
|
|
3960
|
+
url: (
|
|
3961
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/demote'
|
|
3962
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3963
|
+
method: 'POST',
|
|
3964
|
+
},
|
|
3965
|
+
options
|
|
3966
|
+
),
|
|
3967
|
+
params,
|
|
3968
|
+
requiredParams: ['project', 'instance'],
|
|
3969
|
+
pathParams: ['instance', 'project'],
|
|
3970
|
+
context: this.context,
|
|
3971
|
+
};
|
|
3972
|
+
if (callback) {
|
|
3973
|
+
createAPIRequest<Schema$Operation>(
|
|
3974
|
+
parameters,
|
|
3975
|
+
callback as BodyResponseCallback<unknown>
|
|
3976
|
+
);
|
|
3977
|
+
} else {
|
|
3978
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
|
|
3854
3982
|
/**
|
|
3855
3983
|
* Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
|
3856
3984
|
*
|
|
@@ -5331,6 +5459,92 @@ export namespace sqladmin_v1 {
|
|
|
5331
5459
|
}
|
|
5332
5460
|
}
|
|
5333
5461
|
|
|
5462
|
+
/**
|
|
5463
|
+
* Switches over from the primary instance to the replica instance.
|
|
5464
|
+
*
|
|
5465
|
+
* @param params - Parameters for request
|
|
5466
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5467
|
+
* @param callback - Optional callback that handles the response.
|
|
5468
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5469
|
+
*/
|
|
5470
|
+
switchover(
|
|
5471
|
+
params: Params$Resource$Instances$Switchover,
|
|
5472
|
+
options: StreamMethodOptions
|
|
5473
|
+
): GaxiosPromise<Readable>;
|
|
5474
|
+
switchover(
|
|
5475
|
+
params?: Params$Resource$Instances$Switchover,
|
|
5476
|
+
options?: MethodOptions
|
|
5477
|
+
): GaxiosPromise<Schema$Operation>;
|
|
5478
|
+
switchover(
|
|
5479
|
+
params: Params$Resource$Instances$Switchover,
|
|
5480
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5481
|
+
callback: BodyResponseCallback<Readable>
|
|
5482
|
+
): void;
|
|
5483
|
+
switchover(
|
|
5484
|
+
params: Params$Resource$Instances$Switchover,
|
|
5485
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5486
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5487
|
+
): void;
|
|
5488
|
+
switchover(
|
|
5489
|
+
params: Params$Resource$Instances$Switchover,
|
|
5490
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5491
|
+
): void;
|
|
5492
|
+
switchover(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5493
|
+
switchover(
|
|
5494
|
+
paramsOrCallback?:
|
|
5495
|
+
| Params$Resource$Instances$Switchover
|
|
5496
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5497
|
+
| BodyResponseCallback<Readable>,
|
|
5498
|
+
optionsOrCallback?:
|
|
5499
|
+
| MethodOptions
|
|
5500
|
+
| StreamMethodOptions
|
|
5501
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5502
|
+
| BodyResponseCallback<Readable>,
|
|
5503
|
+
callback?:
|
|
5504
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5505
|
+
| BodyResponseCallback<Readable>
|
|
5506
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
5507
|
+
let params = (paramsOrCallback ||
|
|
5508
|
+
{}) as Params$Resource$Instances$Switchover;
|
|
5509
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5510
|
+
|
|
5511
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5512
|
+
callback = paramsOrCallback;
|
|
5513
|
+
params = {} as Params$Resource$Instances$Switchover;
|
|
5514
|
+
options = {};
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5518
|
+
callback = optionsOrCallback;
|
|
5519
|
+
options = {};
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5523
|
+
const parameters = {
|
|
5524
|
+
options: Object.assign(
|
|
5525
|
+
{
|
|
5526
|
+
url: (
|
|
5527
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/switchover'
|
|
5528
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5529
|
+
method: 'POST',
|
|
5530
|
+
},
|
|
5531
|
+
options
|
|
5532
|
+
),
|
|
5533
|
+
params,
|
|
5534
|
+
requiredParams: ['project', 'instance'],
|
|
5535
|
+
pathParams: ['instance', 'project'],
|
|
5536
|
+
context: this.context,
|
|
5537
|
+
};
|
|
5538
|
+
if (callback) {
|
|
5539
|
+
createAPIRequest<Schema$Operation>(
|
|
5540
|
+
parameters,
|
|
5541
|
+
callback as BodyResponseCallback<unknown>
|
|
5542
|
+
);
|
|
5543
|
+
} else {
|
|
5544
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5545
|
+
}
|
|
5546
|
+
}
|
|
5547
|
+
|
|
5334
5548
|
/**
|
|
5335
5549
|
* Truncate MySQL general and slow query log tables MySQL only.
|
|
5336
5550
|
*
|
|
@@ -5540,6 +5754,21 @@ export namespace sqladmin_v1 {
|
|
|
5540
5754
|
*/
|
|
5541
5755
|
project?: string;
|
|
5542
5756
|
}
|
|
5757
|
+
export interface Params$Resource$Instances$Demote extends StandardParameters {
|
|
5758
|
+
/**
|
|
5759
|
+
* Required. Cloud SQL instance name.
|
|
5760
|
+
*/
|
|
5761
|
+
instance?: string;
|
|
5762
|
+
/**
|
|
5763
|
+
* Required. ID of the project that contains the instance.
|
|
5764
|
+
*/
|
|
5765
|
+
project?: string;
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* Request body metadata
|
|
5769
|
+
*/
|
|
5770
|
+
requestBody?: Schema$InstancesDemoteRequest;
|
|
5771
|
+
}
|
|
5543
5772
|
export interface Params$Resource$Instances$Demotemaster
|
|
5544
5773
|
extends StandardParameters {
|
|
5545
5774
|
/**
|
|
@@ -5669,6 +5898,10 @@ export namespace sqladmin_v1 {
|
|
|
5669
5898
|
}
|
|
5670
5899
|
export interface Params$Resource$Instances$Promotereplica
|
|
5671
5900
|
extends StandardParameters {
|
|
5901
|
+
/**
|
|
5902
|
+
* Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance.
|
|
5903
|
+
*/
|
|
5904
|
+
failover?: boolean;
|
|
5672
5905
|
/**
|
|
5673
5906
|
* Cloud SQL read replica instance name.
|
|
5674
5907
|
*/
|
|
@@ -5770,6 +6003,21 @@ export namespace sqladmin_v1 {
|
|
|
5770
6003
|
*/
|
|
5771
6004
|
project?: string;
|
|
5772
6005
|
}
|
|
6006
|
+
export interface Params$Resource$Instances$Switchover
|
|
6007
|
+
extends StandardParameters {
|
|
6008
|
+
/**
|
|
6009
|
+
* Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
|
|
6010
|
+
*/
|
|
6011
|
+
dbTimeout?: string;
|
|
6012
|
+
/**
|
|
6013
|
+
* Cloud SQL read replica instance name.
|
|
6014
|
+
*/
|
|
6015
|
+
instance?: string;
|
|
6016
|
+
/**
|
|
6017
|
+
* ID of the project that contains the replica.
|
|
6018
|
+
*/
|
|
6019
|
+
project?: string;
|
|
6020
|
+
}
|
|
5773
6021
|
export interface Params$Resource$Instances$Truncatelog
|
|
5774
6022
|
extends StandardParameters {
|
|
5775
6023
|
/**
|