@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/v1beta4.ts
CHANGED
|
@@ -598,7 +598,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
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,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
653
653
|
* The user settings.
|
|
654
654
|
*/
|
|
655
655
|
settings?: Schema$Settings;
|
|
656
|
+
/**
|
|
657
|
+
* The SQL network architecture for the instance.
|
|
658
|
+
*/
|
|
659
|
+
sqlNetworkArchitecture?: string | null;
|
|
656
660
|
/**
|
|
657
661
|
* The current serving state of the Cloud SQL instance.
|
|
658
662
|
*/
|
|
@@ -661,6 +665,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
661
665
|
* If the instance state is SUSPENDED, the reason for the suspension.
|
|
662
666
|
*/
|
|
663
667
|
suspensionReason?: string[] | null;
|
|
668
|
+
/**
|
|
669
|
+
* Output only. The dns name of the primary instance in a replication group.
|
|
670
|
+
*/
|
|
671
|
+
writeEndpoint?: string | null;
|
|
664
672
|
}
|
|
665
673
|
/**
|
|
666
674
|
* Database list response.
|
|
@@ -684,6 +692,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
684
692
|
*/
|
|
685
693
|
dataCacheEnabled?: boolean | null;
|
|
686
694
|
}
|
|
695
|
+
/**
|
|
696
|
+
* This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
697
|
+
*/
|
|
698
|
+
export interface Schema$DemoteContext {
|
|
699
|
+
/**
|
|
700
|
+
* This is always `sql#demoteContext`.
|
|
701
|
+
*/
|
|
702
|
+
kind?: string | null;
|
|
703
|
+
/**
|
|
704
|
+
* Required. The name of the instance which acts as an on-premises primary instance in the replication setup.
|
|
705
|
+
*/
|
|
706
|
+
sourceRepresentativeInstanceName?: string | null;
|
|
707
|
+
}
|
|
687
708
|
/**
|
|
688
709
|
* Read-replica configuration for connecting to the on-premises primary instance.
|
|
689
710
|
*/
|
|
@@ -1064,6 +1085,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
1064
1085
|
*/
|
|
1065
1086
|
demoteMasterContext?: Schema$DemoteMasterContext;
|
|
1066
1087
|
}
|
|
1088
|
+
/**
|
|
1089
|
+
* This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
1090
|
+
*/
|
|
1091
|
+
export interface Schema$InstancesDemoteRequest {
|
|
1092
|
+
/**
|
|
1093
|
+
* Required. This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
1094
|
+
*/
|
|
1095
|
+
demoteContext?: Schema$DemoteContext;
|
|
1096
|
+
}
|
|
1067
1097
|
/**
|
|
1068
1098
|
* Database instance export request.
|
|
1069
1099
|
*/
|
|
@@ -1191,12 +1221,16 @@ export namespace sqladmin_v1beta4 {
|
|
|
1191
1221
|
*/
|
|
1192
1222
|
pscConfig?: Schema$PscConfig;
|
|
1193
1223
|
/**
|
|
1194
|
-
* Whether SSL connections over IP are enforced
|
|
1224
|
+
* 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
1225
|
*/
|
|
1196
1226
|
requireSsl?: boolean | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* 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.
|
|
1229
|
+
*/
|
|
1230
|
+
sslMode?: string | null;
|
|
1197
1231
|
}
|
|
1198
1232
|
/**
|
|
1199
|
-
* Database instance IP
|
|
1233
|
+
* Database instance IP mapping
|
|
1200
1234
|
*/
|
|
1201
1235
|
export interface Schema$IpMapping {
|
|
1202
1236
|
/**
|
|
@@ -1357,6 +1391,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1357
1391
|
* An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
|
|
1358
1392
|
*/
|
|
1359
1393
|
export interface Schema$Operation {
|
|
1394
|
+
/**
|
|
1395
|
+
* An Admin API warning message.
|
|
1396
|
+
*/
|
|
1397
|
+
apiWarning?: Schema$ApiWarning;
|
|
1360
1398
|
/**
|
|
1361
1399
|
* The context for backup operation, if applicable.
|
|
1362
1400
|
*/
|
|
@@ -1520,6 +1558,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1520
1558
|
* The complexity of the password.
|
|
1521
1559
|
*/
|
|
1522
1560
|
complexity?: string | null;
|
|
1561
|
+
/**
|
|
1562
|
+
* Disallow credentials that have been previously compromised by a public data breach.
|
|
1563
|
+
*/
|
|
1564
|
+
disallowCompromisedCredentials?: boolean | null;
|
|
1523
1565
|
/**
|
|
1524
1566
|
* Disallow username as a part of the password.
|
|
1525
1567
|
*/
|
|
@@ -1555,7 +1597,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1555
1597
|
*/
|
|
1556
1598
|
export interface Schema$PscConfig {
|
|
1557
1599
|
/**
|
|
1558
|
-
*
|
|
1600
|
+
* 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
1601
|
*/
|
|
1560
1602
|
allowedConsumerProjects?: string[] | null;
|
|
1561
1603
|
/**
|
|
@@ -1567,6 +1609,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1567
1609
|
* Read-replica configuration for connecting to the primary instance.
|
|
1568
1610
|
*/
|
|
1569
1611
|
export interface Schema$ReplicaConfiguration {
|
|
1612
|
+
/**
|
|
1613
|
+
* 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.
|
|
1614
|
+
*/
|
|
1615
|
+
cascadableReplica?: boolean | null;
|
|
1570
1616
|
/**
|
|
1571
1617
|
* 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
1618
|
*/
|
|
@@ -3850,6 +3896,92 @@ export namespace sqladmin_v1beta4 {
|
|
|
3850
3896
|
}
|
|
3851
3897
|
}
|
|
3852
3898
|
|
|
3899
|
+
/**
|
|
3900
|
+
* Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
|
|
3901
|
+
*
|
|
3902
|
+
* @param params - Parameters for request
|
|
3903
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3904
|
+
* @param callback - Optional callback that handles the response.
|
|
3905
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3906
|
+
*/
|
|
3907
|
+
demote(
|
|
3908
|
+
params: Params$Resource$Instances$Demote,
|
|
3909
|
+
options: StreamMethodOptions
|
|
3910
|
+
): GaxiosPromise<Readable>;
|
|
3911
|
+
demote(
|
|
3912
|
+
params?: Params$Resource$Instances$Demote,
|
|
3913
|
+
options?: MethodOptions
|
|
3914
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3915
|
+
demote(
|
|
3916
|
+
params: Params$Resource$Instances$Demote,
|
|
3917
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3918
|
+
callback: BodyResponseCallback<Readable>
|
|
3919
|
+
): void;
|
|
3920
|
+
demote(
|
|
3921
|
+
params: Params$Resource$Instances$Demote,
|
|
3922
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3923
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3924
|
+
): void;
|
|
3925
|
+
demote(
|
|
3926
|
+
params: Params$Resource$Instances$Demote,
|
|
3927
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3928
|
+
): void;
|
|
3929
|
+
demote(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3930
|
+
demote(
|
|
3931
|
+
paramsOrCallback?:
|
|
3932
|
+
| Params$Resource$Instances$Demote
|
|
3933
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3934
|
+
| BodyResponseCallback<Readable>,
|
|
3935
|
+
optionsOrCallback?:
|
|
3936
|
+
| MethodOptions
|
|
3937
|
+
| StreamMethodOptions
|
|
3938
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3939
|
+
| BodyResponseCallback<Readable>,
|
|
3940
|
+
callback?:
|
|
3941
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3942
|
+
| BodyResponseCallback<Readable>
|
|
3943
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3944
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Instances$Demote;
|
|
3945
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3946
|
+
|
|
3947
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3948
|
+
callback = paramsOrCallback;
|
|
3949
|
+
params = {} as Params$Resource$Instances$Demote;
|
|
3950
|
+
options = {};
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3954
|
+
callback = optionsOrCallback;
|
|
3955
|
+
options = {};
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3959
|
+
const parameters = {
|
|
3960
|
+
options: Object.assign(
|
|
3961
|
+
{
|
|
3962
|
+
url: (
|
|
3963
|
+
rootUrl +
|
|
3964
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/demote'
|
|
3965
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3966
|
+
method: 'POST',
|
|
3967
|
+
},
|
|
3968
|
+
options
|
|
3969
|
+
),
|
|
3970
|
+
params,
|
|
3971
|
+
requiredParams: ['project', 'instance'],
|
|
3972
|
+
pathParams: ['instance', 'project'],
|
|
3973
|
+
context: this.context,
|
|
3974
|
+
};
|
|
3975
|
+
if (callback) {
|
|
3976
|
+
createAPIRequest<Schema$Operation>(
|
|
3977
|
+
parameters,
|
|
3978
|
+
callback as BodyResponseCallback<unknown>
|
|
3979
|
+
);
|
|
3980
|
+
} else {
|
|
3981
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3853
3985
|
/**
|
|
3854
3986
|
* Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
|
3855
3987
|
*
|
|
@@ -5333,6 +5465,93 @@ export namespace sqladmin_v1beta4 {
|
|
|
5333
5465
|
}
|
|
5334
5466
|
}
|
|
5335
5467
|
|
|
5468
|
+
/**
|
|
5469
|
+
* Switches over from the primary instance to a replica instance.
|
|
5470
|
+
*
|
|
5471
|
+
* @param params - Parameters for request
|
|
5472
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5473
|
+
* @param callback - Optional callback that handles the response.
|
|
5474
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5475
|
+
*/
|
|
5476
|
+
switchover(
|
|
5477
|
+
params: Params$Resource$Instances$Switchover,
|
|
5478
|
+
options: StreamMethodOptions
|
|
5479
|
+
): GaxiosPromise<Readable>;
|
|
5480
|
+
switchover(
|
|
5481
|
+
params?: Params$Resource$Instances$Switchover,
|
|
5482
|
+
options?: MethodOptions
|
|
5483
|
+
): GaxiosPromise<Schema$Operation>;
|
|
5484
|
+
switchover(
|
|
5485
|
+
params: Params$Resource$Instances$Switchover,
|
|
5486
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5487
|
+
callback: BodyResponseCallback<Readable>
|
|
5488
|
+
): void;
|
|
5489
|
+
switchover(
|
|
5490
|
+
params: Params$Resource$Instances$Switchover,
|
|
5491
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5492
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5493
|
+
): void;
|
|
5494
|
+
switchover(
|
|
5495
|
+
params: Params$Resource$Instances$Switchover,
|
|
5496
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5497
|
+
): void;
|
|
5498
|
+
switchover(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5499
|
+
switchover(
|
|
5500
|
+
paramsOrCallback?:
|
|
5501
|
+
| Params$Resource$Instances$Switchover
|
|
5502
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5503
|
+
| BodyResponseCallback<Readable>,
|
|
5504
|
+
optionsOrCallback?:
|
|
5505
|
+
| MethodOptions
|
|
5506
|
+
| StreamMethodOptions
|
|
5507
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5508
|
+
| BodyResponseCallback<Readable>,
|
|
5509
|
+
callback?:
|
|
5510
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5511
|
+
| BodyResponseCallback<Readable>
|
|
5512
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
5513
|
+
let params = (paramsOrCallback ||
|
|
5514
|
+
{}) as Params$Resource$Instances$Switchover;
|
|
5515
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5516
|
+
|
|
5517
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5518
|
+
callback = paramsOrCallback;
|
|
5519
|
+
params = {} as Params$Resource$Instances$Switchover;
|
|
5520
|
+
options = {};
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5524
|
+
callback = optionsOrCallback;
|
|
5525
|
+
options = {};
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5529
|
+
const parameters = {
|
|
5530
|
+
options: Object.assign(
|
|
5531
|
+
{
|
|
5532
|
+
url: (
|
|
5533
|
+
rootUrl +
|
|
5534
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/switchover'
|
|
5535
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5536
|
+
method: 'POST',
|
|
5537
|
+
},
|
|
5538
|
+
options
|
|
5539
|
+
),
|
|
5540
|
+
params,
|
|
5541
|
+
requiredParams: ['project', 'instance'],
|
|
5542
|
+
pathParams: ['instance', 'project'],
|
|
5543
|
+
context: this.context,
|
|
5544
|
+
};
|
|
5545
|
+
if (callback) {
|
|
5546
|
+
createAPIRequest<Schema$Operation>(
|
|
5547
|
+
parameters,
|
|
5548
|
+
callback as BodyResponseCallback<unknown>
|
|
5549
|
+
);
|
|
5550
|
+
} else {
|
|
5551
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5552
|
+
}
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5336
5555
|
/**
|
|
5337
5556
|
* Truncate MySQL general and slow query log tables MySQL only.
|
|
5338
5557
|
*
|
|
@@ -5542,6 +5761,21 @@ export namespace sqladmin_v1beta4 {
|
|
|
5542
5761
|
*/
|
|
5543
5762
|
project?: string;
|
|
5544
5763
|
}
|
|
5764
|
+
export interface Params$Resource$Instances$Demote extends StandardParameters {
|
|
5765
|
+
/**
|
|
5766
|
+
* Required. The name of the Cloud SQL instance.
|
|
5767
|
+
*/
|
|
5768
|
+
instance?: string;
|
|
5769
|
+
/**
|
|
5770
|
+
* Required. The project ID of the project that contains the instance.
|
|
5771
|
+
*/
|
|
5772
|
+
project?: string;
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* Request body metadata
|
|
5776
|
+
*/
|
|
5777
|
+
requestBody?: Schema$InstancesDemoteRequest;
|
|
5778
|
+
}
|
|
5545
5779
|
export interface Params$Resource$Instances$Demotemaster
|
|
5546
5780
|
extends StandardParameters {
|
|
5547
5781
|
/**
|
|
@@ -5560,7 +5794,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5560
5794
|
}
|
|
5561
5795
|
export interface Params$Resource$Instances$Export extends StandardParameters {
|
|
5562
5796
|
/**
|
|
5563
|
-
* Cloud SQL instance ID. This
|
|
5797
|
+
* The Cloud SQL instance ID. This doesn't include the project ID.
|
|
5564
5798
|
*/
|
|
5565
5799
|
instance?: string;
|
|
5566
5800
|
/**
|
|
@@ -5671,6 +5905,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
5671
5905
|
}
|
|
5672
5906
|
export interface Params$Resource$Instances$Promotereplica
|
|
5673
5907
|
extends StandardParameters {
|
|
5908
|
+
/**
|
|
5909
|
+
* 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.
|
|
5910
|
+
*/
|
|
5911
|
+
failover?: boolean;
|
|
5674
5912
|
/**
|
|
5675
5913
|
* Cloud SQL read replica instance name.
|
|
5676
5914
|
*/
|
|
@@ -5772,6 +6010,21 @@ export namespace sqladmin_v1beta4 {
|
|
|
5772
6010
|
*/
|
|
5773
6011
|
project?: string;
|
|
5774
6012
|
}
|
|
6013
|
+
export interface Params$Resource$Instances$Switchover
|
|
6014
|
+
extends StandardParameters {
|
|
6015
|
+
/**
|
|
6016
|
+
* 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.
|
|
6017
|
+
*/
|
|
6018
|
+
dbTimeout?: string;
|
|
6019
|
+
/**
|
|
6020
|
+
* Cloud SQL read replica instance name.
|
|
6021
|
+
*/
|
|
6022
|
+
instance?: string;
|
|
6023
|
+
/**
|
|
6024
|
+
* ID of the project that contains the replica.
|
|
6025
|
+
*/
|
|
6026
|
+
project?: string;
|
|
6027
|
+
}
|
|
5775
6028
|
export interface Params$Resource$Instances$Truncatelog
|
|
5776
6029
|
extends StandardParameters {
|
|
5777
6030
|
/**
|