@googleapis/sqladmin 24.0.0 → 26.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 +44 -0
- package/build/v1.d.ts +714 -15
- package/build/v1.js +266 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +714 -15
- package/build/v1beta4.js +266 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1336 -22
- package/v1beta4.ts +1346 -23
package/v1.ts
CHANGED
|
@@ -113,6 +113,7 @@ export namespace sqladmin_v1 {
|
|
|
113
113
|
export class Sqladmin {
|
|
114
114
|
context: APIRequestContext;
|
|
115
115
|
backupRuns: Resource$Backupruns;
|
|
116
|
+
Backups: Resource$Backups;
|
|
116
117
|
connect: Resource$Connect;
|
|
117
118
|
databases: Resource$Databases;
|
|
118
119
|
flags: Resource$Flags;
|
|
@@ -130,6 +131,7 @@ export namespace sqladmin_v1 {
|
|
|
130
131
|
};
|
|
131
132
|
|
|
132
133
|
this.backupRuns = new Resource$Backupruns(this.context);
|
|
134
|
+
this.Backups = new Resource$Backups(this.context);
|
|
133
135
|
this.connect = new Resource$Connect(this.context);
|
|
134
136
|
this.databases = new Resource$Databases(this.context);
|
|
135
137
|
this.flags = new Resource$Flags(this.context);
|
|
@@ -227,6 +229,103 @@ export namespace sqladmin_v1 {
|
|
|
227
229
|
*/
|
|
228
230
|
name?: string | null;
|
|
229
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* A backup resource.
|
|
234
|
+
*/
|
|
235
|
+
export interface Schema$Backup {
|
|
236
|
+
/**
|
|
237
|
+
* Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.
|
|
238
|
+
*/
|
|
239
|
+
backupInterval?: Schema$Interval;
|
|
240
|
+
/**
|
|
241
|
+
* Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
|
|
242
|
+
*/
|
|
243
|
+
backupKind?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Output only. The mapping to backup run resource used for IAM validations.
|
|
246
|
+
*/
|
|
247
|
+
backupRun?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* Output only. The database version of the instance of when this backup was made.
|
|
250
|
+
*/
|
|
251
|
+
databaseVersion?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* The description of this backup.
|
|
254
|
+
*/
|
|
255
|
+
description?: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* Output only. Information about why the backup operation fails (for example, when the backup state fails).
|
|
258
|
+
*/
|
|
259
|
+
error?: Schema$OperationError;
|
|
260
|
+
/**
|
|
261
|
+
* Backup expiration time. A UTC timestamp of when this backup expired.
|
|
262
|
+
*/
|
|
263
|
+
expiryTime?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* The name of the source database instance.
|
|
266
|
+
*/
|
|
267
|
+
instance?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.
|
|
270
|
+
*/
|
|
271
|
+
instanceDeletionTime?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Optional. Output only. The instance setting of the source instance that's associated with this backup.
|
|
274
|
+
*/
|
|
275
|
+
instanceSettings?: Schema$DatabaseInstance;
|
|
276
|
+
/**
|
|
277
|
+
* Output only. This is always `sql#backup`.
|
|
278
|
+
*/
|
|
279
|
+
kind?: string | null;
|
|
280
|
+
/**
|
|
281
|
+
* Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.
|
|
282
|
+
*/
|
|
283
|
+
kmsKey?: string | null;
|
|
284
|
+
/**
|
|
285
|
+
* Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.
|
|
286
|
+
*/
|
|
287
|
+
kmsKeyVersion?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* The storage location of the backups. The location can be multi-regional.
|
|
290
|
+
*/
|
|
291
|
+
location?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Output only. The maximum chargeable bytes for the backup.
|
|
294
|
+
*/
|
|
295
|
+
maxChargeableBytes?: string | null;
|
|
296
|
+
/**
|
|
297
|
+
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
298
|
+
*/
|
|
299
|
+
name?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use.
|
|
302
|
+
*/
|
|
303
|
+
satisfiesPzi?: boolean | null;
|
|
304
|
+
/**
|
|
305
|
+
* Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use.
|
|
306
|
+
*/
|
|
307
|
+
satisfiesPzs?: boolean | null;
|
|
308
|
+
/**
|
|
309
|
+
* Output only. The URI of this resource.
|
|
310
|
+
*/
|
|
311
|
+
selfLink?: string | null;
|
|
312
|
+
/**
|
|
313
|
+
* Output only. The status of this backup.
|
|
314
|
+
*/
|
|
315
|
+
state?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.
|
|
318
|
+
*/
|
|
319
|
+
timeZone?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.
|
|
322
|
+
*/
|
|
323
|
+
ttlDays?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”.
|
|
326
|
+
*/
|
|
327
|
+
type?: string | null;
|
|
328
|
+
}
|
|
230
329
|
/**
|
|
231
330
|
* Database instance backup configuration.
|
|
232
331
|
*/
|
|
@@ -284,6 +383,10 @@ export namespace sqladmin_v1 {
|
|
|
284
383
|
* This is always `sql#backupContext`.
|
|
285
384
|
*/
|
|
286
385
|
kind?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* The name of the backup. Format: projects/{project\}/backups/{backup\}
|
|
388
|
+
*/
|
|
389
|
+
name?: string | null;
|
|
287
390
|
}
|
|
288
391
|
/**
|
|
289
392
|
* Backup Reencryption Config
|
|
@@ -319,6 +422,10 @@ export namespace sqladmin_v1 {
|
|
|
319
422
|
* Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
|
|
320
423
|
*/
|
|
321
424
|
backupKind?: string | null;
|
|
425
|
+
/**
|
|
426
|
+
* Output only. The instance database version when this backup was made.
|
|
427
|
+
*/
|
|
428
|
+
databaseVersion?: string | null;
|
|
322
429
|
/**
|
|
323
430
|
* The description of this run, only applicable to on-demand backups.
|
|
324
431
|
*/
|
|
@@ -463,6 +570,77 @@ export namespace sqladmin_v1 {
|
|
|
463
570
|
*/
|
|
464
571
|
preferredZone?: string | null;
|
|
465
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* The managed connection pooling configuration.
|
|
575
|
+
*/
|
|
576
|
+
export interface Schema$ConnectionPoolConfig {
|
|
577
|
+
/**
|
|
578
|
+
* Client idle timeout.
|
|
579
|
+
*/
|
|
580
|
+
clientConnectionIdleTimeout?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* Whether managed connection pooling is enabled.
|
|
583
|
+
*/
|
|
584
|
+
connectionPoolingEnabled?: boolean | null;
|
|
585
|
+
/**
|
|
586
|
+
* Managed connection pool size.
|
|
587
|
+
*/
|
|
588
|
+
connPoolSize?: number | null;
|
|
589
|
+
/**
|
|
590
|
+
* Optional. List of connection pool configuration flags
|
|
591
|
+
*/
|
|
592
|
+
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
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Connection pool flags for Cloud SQL instances managed connection pool configuration.
|
|
612
|
+
*/
|
|
613
|
+
export interface Schema$ConnectionPoolFlags {
|
|
614
|
+
/**
|
|
615
|
+
* Required. The name of the flag.
|
|
616
|
+
*/
|
|
617
|
+
name?: string | null;
|
|
618
|
+
/**
|
|
619
|
+
* Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.
|
|
620
|
+
*/
|
|
621
|
+
value?: string | null;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Details of a single node of a read pool.
|
|
625
|
+
*/
|
|
626
|
+
export interface Schema$ConnectPoolNodeConfig {
|
|
627
|
+
/**
|
|
628
|
+
* Output only. The DNS name of the node.
|
|
629
|
+
*/
|
|
630
|
+
dnsName?: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* Output only. The list of DNS names used by this node.
|
|
633
|
+
*/
|
|
634
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
635
|
+
/**
|
|
636
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
637
|
+
*/
|
|
638
|
+
ipAddresses?: Schema$IpMapping[];
|
|
639
|
+
/**
|
|
640
|
+
* Output only. The name of the node. Doesn't include the project ID.
|
|
641
|
+
*/
|
|
642
|
+
name?: string | null;
|
|
643
|
+
}
|
|
466
644
|
/**
|
|
467
645
|
* Connect settings retrieval response.
|
|
468
646
|
*/
|
|
@@ -471,6 +649,10 @@ export namespace sqladmin_v1 {
|
|
|
471
649
|
* `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
|
|
472
650
|
*/
|
|
473
651
|
backendType?: string | null;
|
|
652
|
+
/**
|
|
653
|
+
* Custom subject alternative names for the server certificate.
|
|
654
|
+
*/
|
|
655
|
+
customSubjectAlternativeNames?: string[] | null;
|
|
474
656
|
/**
|
|
475
657
|
* The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
|
|
476
658
|
*/
|
|
@@ -479,6 +661,10 @@ export namespace sqladmin_v1 {
|
|
|
479
661
|
* The dns name of the instance.
|
|
480
662
|
*/
|
|
481
663
|
dnsName?: string | null;
|
|
664
|
+
/**
|
|
665
|
+
* Output only. The list of DNS names used by this instance.
|
|
666
|
+
*/
|
|
667
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
482
668
|
/**
|
|
483
669
|
* The assigned IP addresses for the instance.
|
|
484
670
|
*/
|
|
@@ -487,6 +673,14 @@ export namespace sqladmin_v1 {
|
|
|
487
673
|
* This is always `sql#connectSettings`.
|
|
488
674
|
*/
|
|
489
675
|
kind?: string | null;
|
|
676
|
+
/**
|
|
677
|
+
* The number of nodes in a read pool.
|
|
678
|
+
*/
|
|
679
|
+
nodeCount?: number | null;
|
|
680
|
+
/**
|
|
681
|
+
* Output only. Entries containing information about each node of the read pool.
|
|
682
|
+
*/
|
|
683
|
+
nodes?: Schema$ConnectPoolNodeConfig[];
|
|
490
684
|
/**
|
|
491
685
|
* Whether PSC connectivity is enabled for this instance.
|
|
492
686
|
*/
|
|
@@ -599,6 +793,10 @@ export namespace sqladmin_v1 {
|
|
|
599
793
|
* Output only. The dns name of the instance.
|
|
600
794
|
*/
|
|
601
795
|
dnsName?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
* Output only. The list of DNS names used by this instance.
|
|
798
|
+
*/
|
|
799
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
602
800
|
/**
|
|
603
801
|
* This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
|
|
604
802
|
*/
|
|
@@ -615,6 +813,10 @@ export namespace sqladmin_v1 {
|
|
|
615
813
|
* Gemini instance configuration.
|
|
616
814
|
*/
|
|
617
815
|
geminiConfig?: Schema$GeminiInstanceConfig;
|
|
816
|
+
/**
|
|
817
|
+
* Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
|
|
818
|
+
*/
|
|
819
|
+
includeReplicasForMajorVersionUpgrade?: boolean | null;
|
|
618
820
|
/**
|
|
619
821
|
* The instance type.
|
|
620
822
|
*/
|
|
@@ -647,6 +849,14 @@ export namespace sqladmin_v1 {
|
|
|
647
849
|
* Name of the Cloud SQL instance. This does not include the project ID.
|
|
648
850
|
*/
|
|
649
851
|
name?: string | null;
|
|
852
|
+
/**
|
|
853
|
+
* The number of nodes in a read pool.
|
|
854
|
+
*/
|
|
855
|
+
nodeCount?: number | null;
|
|
856
|
+
/**
|
|
857
|
+
* Output only. Entries containing information about each node of the read pool.
|
|
858
|
+
*/
|
|
859
|
+
nodes?: Schema$PoolNodeConfig[];
|
|
650
860
|
/**
|
|
651
861
|
* Configuration specific to on-premises instances.
|
|
652
862
|
*/
|
|
@@ -680,7 +890,7 @@ export namespace sqladmin_v1 {
|
|
|
680
890
|
*/
|
|
681
891
|
replicaNames?: string[] | null;
|
|
682
892
|
/**
|
|
683
|
-
* Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure.
|
|
893
|
+
* Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
|
|
684
894
|
*/
|
|
685
895
|
replicationCluster?: Schema$ReplicationCluster;
|
|
686
896
|
/**
|
|
@@ -732,6 +942,10 @@ export namespace sqladmin_v1 {
|
|
|
732
942
|
* Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
|
|
733
943
|
*/
|
|
734
944
|
switchTransactionLogsToCloudStorageEnabled?: boolean | null;
|
|
945
|
+
/**
|
|
946
|
+
* Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `"" : ""`. For example, a single resource can have the following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
|
|
947
|
+
*/
|
|
948
|
+
tags?: {[key: string]: string} | null;
|
|
735
949
|
/**
|
|
736
950
|
* Output only. All database versions that are available for upgrade.
|
|
737
951
|
*/
|
|
@@ -827,7 +1041,7 @@ export namespace sqladmin_v1 {
|
|
|
827
1041
|
*/
|
|
828
1042
|
clientCertificate?: string | null;
|
|
829
1043
|
/**
|
|
830
|
-
* PEM representation of the replica's private key. The
|
|
1044
|
+
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
|
|
831
1045
|
*/
|
|
832
1046
|
clientKey?: string | null;
|
|
833
1047
|
/**
|
|
@@ -886,6 +1100,23 @@ export namespace sqladmin_v1 {
|
|
|
886
1100
|
*/
|
|
887
1101
|
kmsKeyVersionName?: string | null;
|
|
888
1102
|
}
|
|
1103
|
+
/**
|
|
1104
|
+
* DNS metadata.
|
|
1105
|
+
*/
|
|
1106
|
+
export interface Schema$DnsNameMapping {
|
|
1107
|
+
/**
|
|
1108
|
+
* Output only. The connection type of the DNS name.
|
|
1109
|
+
*/
|
|
1110
|
+
connectionType?: string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Output only. The scope that the DNS name applies to.
|
|
1113
|
+
*/
|
|
1114
|
+
dnsScope?: string | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* The DNS name.
|
|
1117
|
+
*/
|
|
1118
|
+
name?: string | null;
|
|
1119
|
+
}
|
|
889
1120
|
/**
|
|
890
1121
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
891
1122
|
*/
|
|
@@ -901,6 +1132,8 @@ export namespace sqladmin_v1 {
|
|
|
901
1132
|
bakType?: string;
|
|
902
1133
|
copyOnly?: boolean;
|
|
903
1134
|
differentialBase?: boolean;
|
|
1135
|
+
exportLogEndTime?: string;
|
|
1136
|
+
exportLogStartTime?: string;
|
|
904
1137
|
stripeCount?: number;
|
|
905
1138
|
striped?: boolean;
|
|
906
1139
|
} | null;
|
|
@@ -915,7 +1148,7 @@ export namespace sqladmin_v1 {
|
|
|
915
1148
|
selectQuery?: string;
|
|
916
1149
|
} | null;
|
|
917
1150
|
/**
|
|
918
|
-
* Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:`
|
|
1151
|
+
* Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
|
|
919
1152
|
*/
|
|
920
1153
|
databases?: string[] | null;
|
|
921
1154
|
/**
|
|
@@ -941,11 +1174,29 @@ export namespace sqladmin_v1 {
|
|
|
941
1174
|
tables?: string[];
|
|
942
1175
|
threads?: number;
|
|
943
1176
|
} | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* Optional. Export parameters specific to SQL Server TDE certificates
|
|
1179
|
+
*/
|
|
1180
|
+
tdeExportOptions?: {
|
|
1181
|
+
certificatePath?: string;
|
|
1182
|
+
name?: string;
|
|
1183
|
+
privateKeyPassword?: string;
|
|
1184
|
+
privateKeyPath?: string;
|
|
1185
|
+
} | null;
|
|
944
1186
|
/**
|
|
945
1187
|
* The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
|
|
946
1188
|
*/
|
|
947
1189
|
uri?: string | null;
|
|
948
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* The selected object that Cloud SQL migrates.
|
|
1193
|
+
*/
|
|
1194
|
+
export interface Schema$ExternalSyncSelectedObject {
|
|
1195
|
+
/**
|
|
1196
|
+
* The name of the database that Cloud SQL migrates.
|
|
1197
|
+
*/
|
|
1198
|
+
database?: string | null;
|
|
1199
|
+
}
|
|
949
1200
|
/**
|
|
950
1201
|
* Database instance failover context.
|
|
951
1202
|
*/
|
|
@@ -975,6 +1226,10 @@ export namespace sqladmin_v1 {
|
|
|
975
1226
|
* The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
|
|
976
1227
|
*/
|
|
977
1228
|
appliesTo?: string[] | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Scope of flag.
|
|
1231
|
+
*/
|
|
1232
|
+
flagScope?: string | null;
|
|
978
1233
|
/**
|
|
979
1234
|
* Whether or not the flag is considered in beta.
|
|
980
1235
|
*/
|
|
@@ -995,6 +1250,14 @@ export namespace sqladmin_v1 {
|
|
|
995
1250
|
* This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
|
|
996
1251
|
*/
|
|
997
1252
|
name?: string | null;
|
|
1253
|
+
/**
|
|
1254
|
+
* Recommended int value in integer format for UI display.
|
|
1255
|
+
*/
|
|
1256
|
+
recommendedIntValue?: string | null;
|
|
1257
|
+
/**
|
|
1258
|
+
* Recommended string value in string format for UI display.
|
|
1259
|
+
*/
|
|
1260
|
+
recommendedStringValue?: string | null;
|
|
998
1261
|
/**
|
|
999
1262
|
* Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
|
|
1000
1263
|
*/
|
|
@@ -1087,6 +1350,7 @@ export namespace sqladmin_v1 {
|
|
|
1087
1350
|
bakType?: string;
|
|
1088
1351
|
encryptionOptions?: {
|
|
1089
1352
|
certPath?: string;
|
|
1353
|
+
keepEncrypted?: boolean;
|
|
1090
1354
|
pvkPassword?: string;
|
|
1091
1355
|
pvkPath?: string;
|
|
1092
1356
|
};
|
|
@@ -1108,7 +1372,7 @@ export namespace sqladmin_v1 {
|
|
|
1108
1372
|
table?: string;
|
|
1109
1373
|
} | null;
|
|
1110
1374
|
/**
|
|
1111
|
-
* The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If `fileType` is `CSV`, one database must be specified.
|
|
1375
|
+
* The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
|
|
1112
1376
|
*/
|
|
1113
1377
|
database?: string | null;
|
|
1114
1378
|
/**
|
|
@@ -1131,6 +1395,15 @@ export namespace sqladmin_v1 {
|
|
|
1131
1395
|
postgresImportOptions?: {clean?: boolean; ifExists?: boolean};
|
|
1132
1396
|
threads?: number;
|
|
1133
1397
|
} | null;
|
|
1398
|
+
/**
|
|
1399
|
+
* Optional. Import parameters specific to SQL Server TDE certificates
|
|
1400
|
+
*/
|
|
1401
|
+
tdeImportOptions?: {
|
|
1402
|
+
certificatePath?: string;
|
|
1403
|
+
name?: string;
|
|
1404
|
+
privateKeyPassword?: string;
|
|
1405
|
+
privateKeyPath?: string;
|
|
1406
|
+
} | null;
|
|
1134
1407
|
/**
|
|
1135
1408
|
* Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
|
|
1136
1409
|
*/
|
|
@@ -1276,6 +1549,27 @@ export namespace sqladmin_v1 {
|
|
|
1276
1549
|
*/
|
|
1277
1550
|
kind?: string | null;
|
|
1278
1551
|
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Instances ListServerCertificates response.
|
|
1554
|
+
*/
|
|
1555
|
+
export interface Schema$InstancesListServerCertificatesResponse {
|
|
1556
|
+
/**
|
|
1557
|
+
* The `sha1_fingerprint` of the active certificate from `server_certs`.
|
|
1558
|
+
*/
|
|
1559
|
+
activeVersion?: string | null;
|
|
1560
|
+
/**
|
|
1561
|
+
* List of server CA certificates for the instance.
|
|
1562
|
+
*/
|
|
1563
|
+
caCerts?: Schema$SslCert[];
|
|
1564
|
+
/**
|
|
1565
|
+
* This is always `sql#instancesListServerCertificates`.
|
|
1566
|
+
*/
|
|
1567
|
+
kind?: string | null;
|
|
1568
|
+
/**
|
|
1569
|
+
* List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.
|
|
1570
|
+
*/
|
|
1571
|
+
serverCerts?: Schema$SslCert[];
|
|
1572
|
+
}
|
|
1279
1573
|
/**
|
|
1280
1574
|
* Database Instance reencrypt request.
|
|
1281
1575
|
*/
|
|
@@ -1289,10 +1583,18 @@ export namespace sqladmin_v1 {
|
|
|
1289
1583
|
* Database instance restore backup request.
|
|
1290
1584
|
*/
|
|
1291
1585
|
export interface Schema$InstancesRestoreBackupRequest {
|
|
1586
|
+
/**
|
|
1587
|
+
* 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
|
+
*/
|
|
1589
|
+
backup?: string | null;
|
|
1292
1590
|
/**
|
|
1293
1591
|
* Parameters required to perform the restore backup operation.
|
|
1294
1592
|
*/
|
|
1295
1593
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1594
|
+
/**
|
|
1595
|
+
* Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
|
|
1596
|
+
*/
|
|
1597
|
+
restoreInstanceSettings?: Schema$DatabaseInstance;
|
|
1296
1598
|
}
|
|
1297
1599
|
/**
|
|
1298
1600
|
* Rotate server CA request.
|
|
@@ -1303,6 +1605,15 @@ export namespace sqladmin_v1 {
|
|
|
1303
1605
|
*/
|
|
1304
1606
|
rotateServerCaContext?: Schema$RotateServerCaContext;
|
|
1305
1607
|
}
|
|
1608
|
+
/**
|
|
1609
|
+
* Rotate server certificate request.
|
|
1610
|
+
*/
|
|
1611
|
+
export interface Schema$InstancesRotateServerCertificateRequest {
|
|
1612
|
+
/**
|
|
1613
|
+
* Optional. Contains details about the rotate server certificate operation.
|
|
1614
|
+
*/
|
|
1615
|
+
rotateServerCertificateContext?: Schema$RotateServerCertificateContext;
|
|
1616
|
+
}
|
|
1306
1617
|
/**
|
|
1307
1618
|
* Instance truncate log request.
|
|
1308
1619
|
*/
|
|
@@ -1312,6 +1623,19 @@ export namespace sqladmin_v1 {
|
|
|
1312
1623
|
*/
|
|
1313
1624
|
truncateLogContext?: Schema$TruncateLogContext;
|
|
1314
1625
|
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
|
|
1628
|
+
*/
|
|
1629
|
+
export interface Schema$Interval {
|
|
1630
|
+
/**
|
|
1631
|
+
* Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
|
|
1632
|
+
*/
|
|
1633
|
+
endTime?: string | null;
|
|
1634
|
+
/**
|
|
1635
|
+
* Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
|
|
1636
|
+
*/
|
|
1637
|
+
startTime?: string | null;
|
|
1638
|
+
}
|
|
1315
1639
|
/**
|
|
1316
1640
|
* IP Management configuration.
|
|
1317
1641
|
*/
|
|
@@ -1324,6 +1648,10 @@ export namespace sqladmin_v1 {
|
|
|
1324
1648
|
* The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
|
|
1325
1649
|
*/
|
|
1326
1650
|
authorizedNetworks?: Schema$AclEntry[];
|
|
1651
|
+
/**
|
|
1652
|
+
* Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
|
|
1653
|
+
*/
|
|
1654
|
+
customSubjectAlternativeNames?: string[] | null;
|
|
1327
1655
|
/**
|
|
1328
1656
|
* Controls connectivity to private IP instances from Google services, such as BigQuery.
|
|
1329
1657
|
*/
|
|
@@ -1348,6 +1676,10 @@ export namespace sqladmin_v1 {
|
|
|
1348
1676
|
* Specify what type of CA is used for the server certificate.
|
|
1349
1677
|
*/
|
|
1350
1678
|
serverCaMode?: string | null;
|
|
1679
|
+
/**
|
|
1680
|
+
* Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT\}/locations/{REGION\}/caPools/{CA_POOL_ID\}
|
|
1681
|
+
*/
|
|
1682
|
+
serverCaPool?: string | null;
|
|
1351
1683
|
/**
|
|
1352
1684
|
* Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `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` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
|
|
1353
1685
|
*/
|
|
@@ -1370,6 +1702,23 @@ export namespace sqladmin_v1 {
|
|
|
1370
1702
|
*/
|
|
1371
1703
|
type?: string | null;
|
|
1372
1704
|
}
|
|
1705
|
+
/**
|
|
1706
|
+
* The response payload containing a list of the backups.
|
|
1707
|
+
*/
|
|
1708
|
+
export interface Schema$ListBackupsResponse {
|
|
1709
|
+
/**
|
|
1710
|
+
* A list of backups.
|
|
1711
|
+
*/
|
|
1712
|
+
backups?: Schema$Backup[];
|
|
1713
|
+
/**
|
|
1714
|
+
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, then there aren't subsequent pages.
|
|
1715
|
+
*/
|
|
1716
|
+
nextPageToken?: string | null;
|
|
1717
|
+
/**
|
|
1718
|
+
* If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.
|
|
1719
|
+
*/
|
|
1720
|
+
warnings?: Schema$ApiWarning[];
|
|
1721
|
+
}
|
|
1373
1722
|
/**
|
|
1374
1723
|
* Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
|
|
1375
1724
|
*/
|
|
@@ -1425,7 +1774,7 @@ export namespace sqladmin_v1 {
|
|
|
1425
1774
|
*/
|
|
1426
1775
|
clientCertificate?: string | null;
|
|
1427
1776
|
/**
|
|
1428
|
-
* PEM representation of the replica's private key. The
|
|
1777
|
+
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1429
1778
|
*/
|
|
1430
1779
|
clientKey?: string | null;
|
|
1431
1780
|
/**
|
|
@@ -1483,7 +1832,7 @@ export namespace sqladmin_v1 {
|
|
|
1483
1832
|
*/
|
|
1484
1833
|
clientCertificate?: string | null;
|
|
1485
1834
|
/**
|
|
1486
|
-
* PEM representation of the replica's private key. The
|
|
1835
|
+
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1487
1836
|
*/
|
|
1488
1837
|
clientKey?: string | null;
|
|
1489
1838
|
/**
|
|
@@ -1502,10 +1851,18 @@ export namespace sqladmin_v1 {
|
|
|
1502
1851
|
* The password for connecting to on-premises instance.
|
|
1503
1852
|
*/
|
|
1504
1853
|
password?: string | null;
|
|
1854
|
+
/**
|
|
1855
|
+
* Optional. A list of objects that the user selects for replication from an external source instance.
|
|
1856
|
+
*/
|
|
1857
|
+
selectedObjects?: Schema$SelectedObjects[];
|
|
1505
1858
|
/**
|
|
1506
1859
|
* The reference to Cloud SQL instance if the source is Cloud SQL.
|
|
1507
1860
|
*/
|
|
1508
1861
|
sourceInstance?: Schema$InstanceReference;
|
|
1862
|
+
/**
|
|
1863
|
+
* Optional. SSL option for replica connection to the on-premises source.
|
|
1864
|
+
*/
|
|
1865
|
+
sslOption?: string | null;
|
|
1509
1866
|
/**
|
|
1510
1867
|
* The username for connecting to on-premises instance.
|
|
1511
1868
|
*/
|
|
@@ -1572,7 +1929,11 @@ export namespace sqladmin_v1 {
|
|
|
1572
1929
|
*/
|
|
1573
1930
|
status?: string | null;
|
|
1574
1931
|
/**
|
|
1575
|
-
*
|
|
1932
|
+
* Optional. The sub operation based on the operation type.
|
|
1933
|
+
*/
|
|
1934
|
+
subOperationType?: Schema$SqlSubOperationType;
|
|
1935
|
+
/**
|
|
1936
|
+
* Name of the resource on which this operation runs.
|
|
1576
1937
|
*/
|
|
1577
1938
|
targetId?: string | null;
|
|
1578
1939
|
targetLink?: string | null;
|
|
@@ -1624,7 +1985,7 @@ export namespace sqladmin_v1 {
|
|
|
1624
1985
|
*/
|
|
1625
1986
|
apiVersion?: string | null;
|
|
1626
1987
|
/**
|
|
1627
|
-
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1
|
|
1988
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
|
1628
1989
|
*/
|
|
1629
1990
|
cancelRequested?: boolean | null;
|
|
1630
1991
|
/**
|
|
@@ -1720,6 +2081,60 @@ export namespace sqladmin_v1 {
|
|
|
1720
2081
|
*/
|
|
1721
2082
|
targetSizeGb?: string | null;
|
|
1722
2083
|
}
|
|
2084
|
+
/**
|
|
2085
|
+
* Details of a single node of a read pool.
|
|
2086
|
+
*/
|
|
2087
|
+
export interface Schema$PoolNodeConfig {
|
|
2088
|
+
/**
|
|
2089
|
+
* Output only. The DNS name of the node.
|
|
2090
|
+
*/
|
|
2091
|
+
dnsName?: string | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* Output only. The list of DNS names used by this node.
|
|
2094
|
+
*/
|
|
2095
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
2096
|
+
/**
|
|
2097
|
+
* Output only. The serving zone of the node.
|
|
2098
|
+
*/
|
|
2099
|
+
gceZone?: string | null;
|
|
2100
|
+
/**
|
|
2101
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
2102
|
+
*/
|
|
2103
|
+
ipAddresses?: Schema$IpMapping[];
|
|
2104
|
+
/**
|
|
2105
|
+
* Output only. The name of the node, to be used for retrieving metrics and logs for the node.
|
|
2106
|
+
*/
|
|
2107
|
+
name?: string | null;
|
|
2108
|
+
/**
|
|
2109
|
+
* Output only. The current state of the node.
|
|
2110
|
+
*/
|
|
2111
|
+
state?: string | null;
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
2115
|
+
*/
|
|
2116
|
+
export interface Schema$PscAutoConnectionConfig {
|
|
2117
|
+
/**
|
|
2118
|
+
* The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
|
|
2119
|
+
*/
|
|
2120
|
+
consumerNetwork?: string | null;
|
|
2121
|
+
/**
|
|
2122
|
+
* The connection policy status of the consumer network.
|
|
2123
|
+
*/
|
|
2124
|
+
consumerNetworkStatus?: string | null;
|
|
2125
|
+
/**
|
|
2126
|
+
* This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network.
|
|
2127
|
+
*/
|
|
2128
|
+
consumerProject?: string | null;
|
|
2129
|
+
/**
|
|
2130
|
+
* The IP address of the consumer endpoint.
|
|
2131
|
+
*/
|
|
2132
|
+
ipAddress?: string | null;
|
|
2133
|
+
/**
|
|
2134
|
+
* The connection status of the consumer endpoint.
|
|
2135
|
+
*/
|
|
2136
|
+
status?: string | null;
|
|
2137
|
+
}
|
|
1723
2138
|
/**
|
|
1724
2139
|
* PSC settings for a Cloud SQL instance.
|
|
1725
2140
|
*/
|
|
@@ -1728,6 +2143,10 @@ export namespace sqladmin_v1 {
|
|
|
1728
2143
|
* 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).
|
|
1729
2144
|
*/
|
|
1730
2145
|
allowedConsumerProjects?: string[] | null;
|
|
2146
|
+
/**
|
|
2147
|
+
* Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
|
|
2148
|
+
*/
|
|
2149
|
+
pscAutoConnections?: Schema$PscAutoConnectionConfig[];
|
|
1731
2150
|
/**
|
|
1732
2151
|
* Whether PSC connectivity is enabled for this instance.
|
|
1733
2152
|
*/
|
|
@@ -1755,7 +2174,7 @@ export namespace sqladmin_v1 {
|
|
|
1755
2174
|
mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
|
|
1756
2175
|
}
|
|
1757
2176
|
/**
|
|
1758
|
-
* A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure.
|
|
2177
|
+
* A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
|
|
1759
2178
|
*/
|
|
1760
2179
|
export interface Schema$ReplicationCluster {
|
|
1761
2180
|
/**
|
|
@@ -1767,7 +2186,7 @@ export namespace sqladmin_v1 {
|
|
|
1767
2186
|
*/
|
|
1768
2187
|
failoverDrReplicaName?: string | null;
|
|
1769
2188
|
/**
|
|
1770
|
-
* Output only. If set,
|
|
2189
|
+
* Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn't have a DR replica yet or the DR replica is deleted.
|
|
1771
2190
|
*/
|
|
1772
2191
|
psaWriteEndpoint?: string | null;
|
|
1773
2192
|
}
|
|
@@ -1816,17 +2235,39 @@ export namespace sqladmin_v1 {
|
|
|
1816
2235
|
nextVersion?: string | null;
|
|
1817
2236
|
}
|
|
1818
2237
|
/**
|
|
1819
|
-
*
|
|
2238
|
+
* Instance rotate server certificate context.
|
|
1820
2239
|
*/
|
|
1821
|
-
export interface Schema$
|
|
2240
|
+
export interface Schema$RotateServerCertificateContext {
|
|
1822
2241
|
/**
|
|
1823
|
-
*
|
|
2242
|
+
* Optional. This is always `sql#rotateServerCertificateContext`.
|
|
1824
2243
|
*/
|
|
1825
|
-
|
|
2244
|
+
kind?: string | null;
|
|
1826
2245
|
/**
|
|
1827
|
-
*
|
|
2246
|
+
* The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
|
|
1828
2247
|
*/
|
|
1829
|
-
|
|
2248
|
+
nextVersion?: string | null;
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* A list of objects that the user selects for replication from an external source instance.
|
|
2252
|
+
*/
|
|
2253
|
+
export interface Schema$SelectedObjects {
|
|
2254
|
+
/**
|
|
2255
|
+
* Required. The name of the database to migrate.
|
|
2256
|
+
*/
|
|
2257
|
+
database?: string | null;
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* Database instance settings.
|
|
2261
|
+
*/
|
|
2262
|
+
export interface Schema$Settings {
|
|
2263
|
+
/**
|
|
2264
|
+
* 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.
|
|
2265
|
+
*/
|
|
2266
|
+
activationPolicy?: string | null;
|
|
2267
|
+
/**
|
|
2268
|
+
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
2269
|
+
*/
|
|
2270
|
+
activeDirectoryConfig?: Schema$SqlActiveDirectoryConfig;
|
|
1830
2271
|
/**
|
|
1831
2272
|
* Specifies advanced machine configuration for the instances relevant only for SQL Server.
|
|
1832
2273
|
*/
|
|
@@ -1847,6 +2288,10 @@ export namespace sqladmin_v1 {
|
|
|
1847
2288
|
* The name of server Instance collation.
|
|
1848
2289
|
*/
|
|
1849
2290
|
collation?: string | null;
|
|
2291
|
+
/**
|
|
2292
|
+
* Optional. The managed connection pooling configuration for the instance.
|
|
2293
|
+
*/
|
|
2294
|
+
connectionPoolConfig?: Schema$ConnectionPoolConfig;
|
|
1850
2295
|
/**
|
|
1851
2296
|
* Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
|
|
1852
2297
|
*/
|
|
@@ -1867,6 +2312,14 @@ export namespace sqladmin_v1 {
|
|
|
1867
2312
|
* Configuration for data cache.
|
|
1868
2313
|
*/
|
|
1869
2314
|
dataCacheConfig?: Schema$DataCacheConfig;
|
|
2315
|
+
/**
|
|
2316
|
+
* Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
|
|
2317
|
+
*/
|
|
2318
|
+
dataDiskProvisionedIops?: string | null;
|
|
2319
|
+
/**
|
|
2320
|
+
* Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
|
|
2321
|
+
*/
|
|
2322
|
+
dataDiskProvisionedThroughput?: string | null;
|
|
1870
2323
|
/**
|
|
1871
2324
|
* The size of data disk, in GB. The data disk size minimum is 10GB.
|
|
1872
2325
|
*/
|
|
@@ -1923,10 +2376,18 @@ export namespace sqladmin_v1 {
|
|
|
1923
2376
|
* The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
|
|
1924
2377
|
*/
|
|
1925
2378
|
pricingPlan?: string | null;
|
|
2379
|
+
/**
|
|
2380
|
+
* Optional. Configuration value for recreation of replica after certain replication lag
|
|
2381
|
+
*/
|
|
2382
|
+
replicationLagMaxSeconds?: number | null;
|
|
1926
2383
|
/**
|
|
1927
2384
|
* The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
|
|
1928
2385
|
*/
|
|
1929
2386
|
replicationType?: string | null;
|
|
2387
|
+
/**
|
|
2388
|
+
* Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
|
|
2389
|
+
*/
|
|
2390
|
+
retainBackupsOnDelete?: boolean | null;
|
|
1930
2391
|
/**
|
|
1931
2392
|
* The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
|
|
1932
2393
|
*/
|
|
@@ -2084,6 +2545,10 @@ export namespace sqladmin_v1 {
|
|
|
2084
2545
|
* Optional. MySQL-specific settings for start external sync.
|
|
2085
2546
|
*/
|
|
2086
2547
|
mysqlSyncConfig?: Schema$MySqlSyncConfig;
|
|
2548
|
+
/**
|
|
2549
|
+
* Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
|
|
2550
|
+
*/
|
|
2551
|
+
selectedObjects?: Schema$ExternalSyncSelectedObject[];
|
|
2087
2552
|
/**
|
|
2088
2553
|
* External sync mode
|
|
2089
2554
|
*/
|
|
@@ -2196,6 +2661,15 @@ export namespace sqladmin_v1 {
|
|
|
2196
2661
|
*/
|
|
2197
2662
|
serverRoles?: string[] | null;
|
|
2198
2663
|
}
|
|
2664
|
+
/**
|
|
2665
|
+
* The sub operation type based on the operation type.
|
|
2666
|
+
*/
|
|
2667
|
+
export interface Schema$SqlSubOperationType {
|
|
2668
|
+
/**
|
|
2669
|
+
* The type of maintenance to be performed on the instance.
|
|
2670
|
+
*/
|
|
2671
|
+
maintenanceType?: string | null;
|
|
2672
|
+
}
|
|
2199
2673
|
/**
|
|
2200
2674
|
* SslCerts Resource
|
|
2201
2675
|
*/
|
|
@@ -2880,7 +3354,512 @@ export namespace sqladmin_v1 {
|
|
|
2880
3354
|
/**
|
|
2881
3355
|
* Project ID of the project that contains the instance.
|
|
2882
3356
|
*/
|
|
2883
|
-
project?: string;
|
|
3357
|
+
project?: string;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
export class Resource$Backups {
|
|
3361
|
+
context: APIRequestContext;
|
|
3362
|
+
constructor(context: APIRequestContext) {
|
|
3363
|
+
this.context = context;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
/**
|
|
3367
|
+
* Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
|
|
3368
|
+
*
|
|
3369
|
+
* @param params - Parameters for request
|
|
3370
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3371
|
+
* @param callback - Optional callback that handles the response.
|
|
3372
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3373
|
+
*/
|
|
3374
|
+
CreateBackup(
|
|
3375
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3376
|
+
options: StreamMethodOptions
|
|
3377
|
+
): GaxiosPromise<Readable>;
|
|
3378
|
+
CreateBackup(
|
|
3379
|
+
params?: Params$Resource$Backups$Createbackup,
|
|
3380
|
+
options?: MethodOptions
|
|
3381
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3382
|
+
CreateBackup(
|
|
3383
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3384
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3385
|
+
callback: BodyResponseCallback<Readable>
|
|
3386
|
+
): void;
|
|
3387
|
+
CreateBackup(
|
|
3388
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3389
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3390
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3391
|
+
): void;
|
|
3392
|
+
CreateBackup(
|
|
3393
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3394
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3395
|
+
): void;
|
|
3396
|
+
CreateBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3397
|
+
CreateBackup(
|
|
3398
|
+
paramsOrCallback?:
|
|
3399
|
+
| Params$Resource$Backups$Createbackup
|
|
3400
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3401
|
+
| BodyResponseCallback<Readable>,
|
|
3402
|
+
optionsOrCallback?:
|
|
3403
|
+
| MethodOptions
|
|
3404
|
+
| StreamMethodOptions
|
|
3405
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3406
|
+
| BodyResponseCallback<Readable>,
|
|
3407
|
+
callback?:
|
|
3408
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3409
|
+
| BodyResponseCallback<Readable>
|
|
3410
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3411
|
+
let params = (paramsOrCallback ||
|
|
3412
|
+
{}) as Params$Resource$Backups$Createbackup;
|
|
3413
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3414
|
+
|
|
3415
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3416
|
+
callback = paramsOrCallback;
|
|
3417
|
+
params = {} as Params$Resource$Backups$Createbackup;
|
|
3418
|
+
options = {};
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3422
|
+
callback = optionsOrCallback;
|
|
3423
|
+
options = {};
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3427
|
+
const parameters = {
|
|
3428
|
+
options: Object.assign(
|
|
3429
|
+
{
|
|
3430
|
+
url: (rootUrl + '/v1/{+parent}/backups').replace(
|
|
3431
|
+
/([^:]\/)\/+/g,
|
|
3432
|
+
'$1'
|
|
3433
|
+
),
|
|
3434
|
+
method: 'POST',
|
|
3435
|
+
apiVersion: '',
|
|
3436
|
+
},
|
|
3437
|
+
options
|
|
3438
|
+
),
|
|
3439
|
+
params,
|
|
3440
|
+
requiredParams: ['parent'],
|
|
3441
|
+
pathParams: ['parent'],
|
|
3442
|
+
context: this.context,
|
|
3443
|
+
};
|
|
3444
|
+
if (callback) {
|
|
3445
|
+
createAPIRequest<Schema$Operation>(
|
|
3446
|
+
parameters,
|
|
3447
|
+
callback as BodyResponseCallback<unknown>
|
|
3448
|
+
);
|
|
3449
|
+
} else {
|
|
3450
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3454
|
+
/**
|
|
3455
|
+
* Deletes the backup.
|
|
3456
|
+
*
|
|
3457
|
+
* @param params - Parameters for request
|
|
3458
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3459
|
+
* @param callback - Optional callback that handles the response.
|
|
3460
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3461
|
+
*/
|
|
3462
|
+
DeleteBackup(
|
|
3463
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
3464
|
+
options: StreamMethodOptions
|
|
3465
|
+
): GaxiosPromise<Readable>;
|
|
3466
|
+
DeleteBackup(
|
|
3467
|
+
params?: Params$Resource$Backups$Deletebackup,
|
|
3468
|
+
options?: MethodOptions
|
|
3469
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3470
|
+
DeleteBackup(
|
|
3471
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
3472
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3473
|
+
callback: BodyResponseCallback<Readable>
|
|
3474
|
+
): void;
|
|
3475
|
+
DeleteBackup(
|
|
3476
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
3477
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3478
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3479
|
+
): void;
|
|
3480
|
+
DeleteBackup(
|
|
3481
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
3482
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3483
|
+
): void;
|
|
3484
|
+
DeleteBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3485
|
+
DeleteBackup(
|
|
3486
|
+
paramsOrCallback?:
|
|
3487
|
+
| Params$Resource$Backups$Deletebackup
|
|
3488
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3489
|
+
| BodyResponseCallback<Readable>,
|
|
3490
|
+
optionsOrCallback?:
|
|
3491
|
+
| MethodOptions
|
|
3492
|
+
| StreamMethodOptions
|
|
3493
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3494
|
+
| BodyResponseCallback<Readable>,
|
|
3495
|
+
callback?:
|
|
3496
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3497
|
+
| BodyResponseCallback<Readable>
|
|
3498
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3499
|
+
let params = (paramsOrCallback ||
|
|
3500
|
+
{}) as Params$Resource$Backups$Deletebackup;
|
|
3501
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3502
|
+
|
|
3503
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3504
|
+
callback = paramsOrCallback;
|
|
3505
|
+
params = {} as Params$Resource$Backups$Deletebackup;
|
|
3506
|
+
options = {};
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3510
|
+
callback = optionsOrCallback;
|
|
3511
|
+
options = {};
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3515
|
+
const parameters = {
|
|
3516
|
+
options: Object.assign(
|
|
3517
|
+
{
|
|
3518
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3519
|
+
method: 'DELETE',
|
|
3520
|
+
apiVersion: '',
|
|
3521
|
+
},
|
|
3522
|
+
options
|
|
3523
|
+
),
|
|
3524
|
+
params,
|
|
3525
|
+
requiredParams: ['name'],
|
|
3526
|
+
pathParams: ['name'],
|
|
3527
|
+
context: this.context,
|
|
3528
|
+
};
|
|
3529
|
+
if (callback) {
|
|
3530
|
+
createAPIRequest<Schema$Operation>(
|
|
3531
|
+
parameters,
|
|
3532
|
+
callback as BodyResponseCallback<unknown>
|
|
3533
|
+
);
|
|
3534
|
+
} else {
|
|
3535
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* Retrieves a resource containing information about a backup.
|
|
3541
|
+
*
|
|
3542
|
+
* @param params - Parameters for request
|
|
3543
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3544
|
+
* @param callback - Optional callback that handles the response.
|
|
3545
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3546
|
+
*/
|
|
3547
|
+
GetBackup(
|
|
3548
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3549
|
+
options: StreamMethodOptions
|
|
3550
|
+
): GaxiosPromise<Readable>;
|
|
3551
|
+
GetBackup(
|
|
3552
|
+
params?: Params$Resource$Backups$Getbackup,
|
|
3553
|
+
options?: MethodOptions
|
|
3554
|
+
): GaxiosPromise<Schema$Backup>;
|
|
3555
|
+
GetBackup(
|
|
3556
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3557
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3558
|
+
callback: BodyResponseCallback<Readable>
|
|
3559
|
+
): void;
|
|
3560
|
+
GetBackup(
|
|
3561
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3562
|
+
options: MethodOptions | BodyResponseCallback<Schema$Backup>,
|
|
3563
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
3564
|
+
): void;
|
|
3565
|
+
GetBackup(
|
|
3566
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3567
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
3568
|
+
): void;
|
|
3569
|
+
GetBackup(callback: BodyResponseCallback<Schema$Backup>): void;
|
|
3570
|
+
GetBackup(
|
|
3571
|
+
paramsOrCallback?:
|
|
3572
|
+
| Params$Resource$Backups$Getbackup
|
|
3573
|
+
| BodyResponseCallback<Schema$Backup>
|
|
3574
|
+
| BodyResponseCallback<Readable>,
|
|
3575
|
+
optionsOrCallback?:
|
|
3576
|
+
| MethodOptions
|
|
3577
|
+
| StreamMethodOptions
|
|
3578
|
+
| BodyResponseCallback<Schema$Backup>
|
|
3579
|
+
| BodyResponseCallback<Readable>,
|
|
3580
|
+
callback?:
|
|
3581
|
+
| BodyResponseCallback<Schema$Backup>
|
|
3582
|
+
| BodyResponseCallback<Readable>
|
|
3583
|
+
): void | GaxiosPromise<Schema$Backup> | GaxiosPromise<Readable> {
|
|
3584
|
+
let params = (paramsOrCallback ||
|
|
3585
|
+
{}) as Params$Resource$Backups$Getbackup;
|
|
3586
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3587
|
+
|
|
3588
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3589
|
+
callback = paramsOrCallback;
|
|
3590
|
+
params = {} as Params$Resource$Backups$Getbackup;
|
|
3591
|
+
options = {};
|
|
3592
|
+
}
|
|
3593
|
+
|
|
3594
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3595
|
+
callback = optionsOrCallback;
|
|
3596
|
+
options = {};
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3600
|
+
const parameters = {
|
|
3601
|
+
options: Object.assign(
|
|
3602
|
+
{
|
|
3603
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3604
|
+
method: 'GET',
|
|
3605
|
+
apiVersion: '',
|
|
3606
|
+
},
|
|
3607
|
+
options
|
|
3608
|
+
),
|
|
3609
|
+
params,
|
|
3610
|
+
requiredParams: ['name'],
|
|
3611
|
+
pathParams: ['name'],
|
|
3612
|
+
context: this.context,
|
|
3613
|
+
};
|
|
3614
|
+
if (callback) {
|
|
3615
|
+
createAPIRequest<Schema$Backup>(
|
|
3616
|
+
parameters,
|
|
3617
|
+
callback as BodyResponseCallback<unknown>
|
|
3618
|
+
);
|
|
3619
|
+
} else {
|
|
3620
|
+
return createAPIRequest<Schema$Backup>(parameters);
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Lists all backups associated with the project.
|
|
3626
|
+
*
|
|
3627
|
+
* @param params - Parameters for request
|
|
3628
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3629
|
+
* @param callback - Optional callback that handles the response.
|
|
3630
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3631
|
+
*/
|
|
3632
|
+
ListBackups(
|
|
3633
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3634
|
+
options: StreamMethodOptions
|
|
3635
|
+
): GaxiosPromise<Readable>;
|
|
3636
|
+
ListBackups(
|
|
3637
|
+
params?: Params$Resource$Backups$Listbackups,
|
|
3638
|
+
options?: MethodOptions
|
|
3639
|
+
): GaxiosPromise<Schema$ListBackupsResponse>;
|
|
3640
|
+
ListBackups(
|
|
3641
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3642
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3643
|
+
callback: BodyResponseCallback<Readable>
|
|
3644
|
+
): void;
|
|
3645
|
+
ListBackups(
|
|
3646
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3647
|
+
options: MethodOptions | BodyResponseCallback<Schema$ListBackupsResponse>,
|
|
3648
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3649
|
+
): void;
|
|
3650
|
+
ListBackups(
|
|
3651
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3652
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3653
|
+
): void;
|
|
3654
|
+
ListBackups(
|
|
3655
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3656
|
+
): void;
|
|
3657
|
+
ListBackups(
|
|
3658
|
+
paramsOrCallback?:
|
|
3659
|
+
| Params$Resource$Backups$Listbackups
|
|
3660
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3661
|
+
| BodyResponseCallback<Readable>,
|
|
3662
|
+
optionsOrCallback?:
|
|
3663
|
+
| MethodOptions
|
|
3664
|
+
| StreamMethodOptions
|
|
3665
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3666
|
+
| BodyResponseCallback<Readable>,
|
|
3667
|
+
callback?:
|
|
3668
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3669
|
+
| BodyResponseCallback<Readable>
|
|
3670
|
+
):
|
|
3671
|
+
| void
|
|
3672
|
+
| GaxiosPromise<Schema$ListBackupsResponse>
|
|
3673
|
+
| GaxiosPromise<Readable> {
|
|
3674
|
+
let params = (paramsOrCallback ||
|
|
3675
|
+
{}) as Params$Resource$Backups$Listbackups;
|
|
3676
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3677
|
+
|
|
3678
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3679
|
+
callback = paramsOrCallback;
|
|
3680
|
+
params = {} as Params$Resource$Backups$Listbackups;
|
|
3681
|
+
options = {};
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3685
|
+
callback = optionsOrCallback;
|
|
3686
|
+
options = {};
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3690
|
+
const parameters = {
|
|
3691
|
+
options: Object.assign(
|
|
3692
|
+
{
|
|
3693
|
+
url: (rootUrl + '/v1/{+parent}/backups').replace(
|
|
3694
|
+
/([^:]\/)\/+/g,
|
|
3695
|
+
'$1'
|
|
3696
|
+
),
|
|
3697
|
+
method: 'GET',
|
|
3698
|
+
apiVersion: '',
|
|
3699
|
+
},
|
|
3700
|
+
options
|
|
3701
|
+
),
|
|
3702
|
+
params,
|
|
3703
|
+
requiredParams: ['parent'],
|
|
3704
|
+
pathParams: ['parent'],
|
|
3705
|
+
context: this.context,
|
|
3706
|
+
};
|
|
3707
|
+
if (callback) {
|
|
3708
|
+
createAPIRequest<Schema$ListBackupsResponse>(
|
|
3709
|
+
parameters,
|
|
3710
|
+
callback as BodyResponseCallback<unknown>
|
|
3711
|
+
);
|
|
3712
|
+
} else {
|
|
3713
|
+
return createAPIRequest<Schema$ListBackupsResponse>(parameters);
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
* Updates the retention period and description of the backup. You can use this API to update final backups only.
|
|
3719
|
+
*
|
|
3720
|
+
* @param params - Parameters for request
|
|
3721
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3722
|
+
* @param callback - Optional callback that handles the response.
|
|
3723
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3724
|
+
*/
|
|
3725
|
+
UpdateBackup(
|
|
3726
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3727
|
+
options: StreamMethodOptions
|
|
3728
|
+
): GaxiosPromise<Readable>;
|
|
3729
|
+
UpdateBackup(
|
|
3730
|
+
params?: Params$Resource$Backups$Updatebackup,
|
|
3731
|
+
options?: MethodOptions
|
|
3732
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3733
|
+
UpdateBackup(
|
|
3734
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3735
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3736
|
+
callback: BodyResponseCallback<Readable>
|
|
3737
|
+
): void;
|
|
3738
|
+
UpdateBackup(
|
|
3739
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3740
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3741
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3742
|
+
): void;
|
|
3743
|
+
UpdateBackup(
|
|
3744
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3745
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3746
|
+
): void;
|
|
3747
|
+
UpdateBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3748
|
+
UpdateBackup(
|
|
3749
|
+
paramsOrCallback?:
|
|
3750
|
+
| Params$Resource$Backups$Updatebackup
|
|
3751
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3752
|
+
| BodyResponseCallback<Readable>,
|
|
3753
|
+
optionsOrCallback?:
|
|
3754
|
+
| MethodOptions
|
|
3755
|
+
| StreamMethodOptions
|
|
3756
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3757
|
+
| BodyResponseCallback<Readable>,
|
|
3758
|
+
callback?:
|
|
3759
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3760
|
+
| BodyResponseCallback<Readable>
|
|
3761
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3762
|
+
let params = (paramsOrCallback ||
|
|
3763
|
+
{}) as Params$Resource$Backups$Updatebackup;
|
|
3764
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3765
|
+
|
|
3766
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3767
|
+
callback = paramsOrCallback;
|
|
3768
|
+
params = {} as Params$Resource$Backups$Updatebackup;
|
|
3769
|
+
options = {};
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3773
|
+
callback = optionsOrCallback;
|
|
3774
|
+
options = {};
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3778
|
+
const parameters = {
|
|
3779
|
+
options: Object.assign(
|
|
3780
|
+
{
|
|
3781
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3782
|
+
method: 'PATCH',
|
|
3783
|
+
apiVersion: '',
|
|
3784
|
+
},
|
|
3785
|
+
options
|
|
3786
|
+
),
|
|
3787
|
+
params,
|
|
3788
|
+
requiredParams: ['name'],
|
|
3789
|
+
pathParams: ['name'],
|
|
3790
|
+
context: this.context,
|
|
3791
|
+
};
|
|
3792
|
+
if (callback) {
|
|
3793
|
+
createAPIRequest<Schema$Operation>(
|
|
3794
|
+
parameters,
|
|
3795
|
+
callback as BodyResponseCallback<unknown>
|
|
3796
|
+
);
|
|
3797
|
+
} else {
|
|
3798
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
export interface Params$Resource$Backups$Createbackup
|
|
3804
|
+
extends StandardParameters {
|
|
3805
|
+
/**
|
|
3806
|
+
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
3807
|
+
*/
|
|
3808
|
+
parent?: string;
|
|
3809
|
+
|
|
3810
|
+
/**
|
|
3811
|
+
* Request body metadata
|
|
3812
|
+
*/
|
|
3813
|
+
requestBody?: Schema$Backup;
|
|
3814
|
+
}
|
|
3815
|
+
export interface Params$Resource$Backups$Deletebackup
|
|
3816
|
+
extends StandardParameters {
|
|
3817
|
+
/**
|
|
3818
|
+
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
3819
|
+
*/
|
|
3820
|
+
name?: string;
|
|
3821
|
+
}
|
|
3822
|
+
export interface Params$Resource$Backups$Getbackup
|
|
3823
|
+
extends StandardParameters {
|
|
3824
|
+
/**
|
|
3825
|
+
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
3826
|
+
*/
|
|
3827
|
+
name?: string;
|
|
3828
|
+
}
|
|
3829
|
+
export interface Params$Resource$Backups$Listbackups
|
|
3830
|
+
extends StandardParameters {
|
|
3831
|
+
/**
|
|
3832
|
+
* Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime\>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.
|
|
3833
|
+
*/
|
|
3834
|
+
filter?: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.
|
|
3837
|
+
*/
|
|
3838
|
+
pageSize?: number;
|
|
3839
|
+
/**
|
|
3840
|
+
* A page token, received from a previous `ListBackups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.
|
|
3841
|
+
*/
|
|
3842
|
+
pageToken?: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* Required. The parent that owns this collection of backups. Format: projects/{project\}
|
|
3845
|
+
*/
|
|
3846
|
+
parent?: string;
|
|
3847
|
+
}
|
|
3848
|
+
export interface Params$Resource$Backups$Updatebackup
|
|
3849
|
+
extends StandardParameters {
|
|
3850
|
+
/**
|
|
3851
|
+
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
3852
|
+
*/
|
|
3853
|
+
name?: string;
|
|
3854
|
+
/**
|
|
3855
|
+
* The list of fields that you can update. You can update only the description and retention period of the final backup.
|
|
3856
|
+
*/
|
|
3857
|
+
updateMask?: string;
|
|
3858
|
+
|
|
3859
|
+
/**
|
|
3860
|
+
* Request body metadata
|
|
3861
|
+
*/
|
|
3862
|
+
requestBody?: Schema$Backup;
|
|
2884
3863
|
}
|
|
2885
3864
|
|
|
2886
3865
|
export class Resource$Connect {
|
|
@@ -3828,6 +4807,10 @@ export namespace sqladmin_v1 {
|
|
|
3828
4807
|
* Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
|
|
3829
4808
|
*/
|
|
3830
4809
|
databaseVersion?: string;
|
|
4810
|
+
/**
|
|
4811
|
+
* Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
|
|
4812
|
+
*/
|
|
4813
|
+
flagScope?: string;
|
|
3831
4814
|
}
|
|
3832
4815
|
|
|
3833
4816
|
export class Resource$Instances {
|
|
@@ -3934,7 +4917,7 @@ export namespace sqladmin_v1 {
|
|
|
3934
4917
|
}
|
|
3935
4918
|
|
|
3936
4919
|
/**
|
|
3937
|
-
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA,
|
|
4920
|
+
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
|
|
3938
4921
|
*
|
|
3939
4922
|
* @param params - Parameters for request
|
|
3940
4923
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4021,6 +5004,96 @@ export namespace sqladmin_v1 {
|
|
|
4021
5004
|
}
|
|
4022
5005
|
}
|
|
4023
5006
|
|
|
5007
|
+
/**
|
|
5008
|
+
* Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.
|
|
5009
|
+
*
|
|
5010
|
+
* @param params - Parameters for request
|
|
5011
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5012
|
+
* @param callback - Optional callback that handles the response.
|
|
5013
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5014
|
+
*/
|
|
5015
|
+
addServerCertificate(
|
|
5016
|
+
params: Params$Resource$Instances$Addservercertificate,
|
|
5017
|
+
options: StreamMethodOptions
|
|
5018
|
+
): GaxiosPromise<Readable>;
|
|
5019
|
+
addServerCertificate(
|
|
5020
|
+
params?: Params$Resource$Instances$Addservercertificate,
|
|
5021
|
+
options?: MethodOptions
|
|
5022
|
+
): GaxiosPromise<Schema$Operation>;
|
|
5023
|
+
addServerCertificate(
|
|
5024
|
+
params: Params$Resource$Instances$Addservercertificate,
|
|
5025
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5026
|
+
callback: BodyResponseCallback<Readable>
|
|
5027
|
+
): void;
|
|
5028
|
+
addServerCertificate(
|
|
5029
|
+
params: Params$Resource$Instances$Addservercertificate,
|
|
5030
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5031
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5032
|
+
): void;
|
|
5033
|
+
addServerCertificate(
|
|
5034
|
+
params: Params$Resource$Instances$Addservercertificate,
|
|
5035
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5036
|
+
): void;
|
|
5037
|
+
addServerCertificate(
|
|
5038
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5039
|
+
): void;
|
|
5040
|
+
addServerCertificate(
|
|
5041
|
+
paramsOrCallback?:
|
|
5042
|
+
| Params$Resource$Instances$Addservercertificate
|
|
5043
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5044
|
+
| BodyResponseCallback<Readable>,
|
|
5045
|
+
optionsOrCallback?:
|
|
5046
|
+
| MethodOptions
|
|
5047
|
+
| StreamMethodOptions
|
|
5048
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5049
|
+
| BodyResponseCallback<Readable>,
|
|
5050
|
+
callback?:
|
|
5051
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5052
|
+
| BodyResponseCallback<Readable>
|
|
5053
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
5054
|
+
let params = (paramsOrCallback ||
|
|
5055
|
+
{}) as Params$Resource$Instances$Addservercertificate;
|
|
5056
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5057
|
+
|
|
5058
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5059
|
+
callback = paramsOrCallback;
|
|
5060
|
+
params = {} as Params$Resource$Instances$Addservercertificate;
|
|
5061
|
+
options = {};
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5065
|
+
callback = optionsOrCallback;
|
|
5066
|
+
options = {};
|
|
5067
|
+
}
|
|
5068
|
+
|
|
5069
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
5070
|
+
const parameters = {
|
|
5071
|
+
options: Object.assign(
|
|
5072
|
+
{
|
|
5073
|
+
url: (
|
|
5074
|
+
rootUrl +
|
|
5075
|
+
'/v1/projects/{project}/instances/{instance}/addServerCertificate'
|
|
5076
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5077
|
+
method: 'POST',
|
|
5078
|
+
apiVersion: '',
|
|
5079
|
+
},
|
|
5080
|
+
options
|
|
5081
|
+
),
|
|
5082
|
+
params,
|
|
5083
|
+
requiredParams: ['project', 'instance'],
|
|
5084
|
+
pathParams: ['instance', 'project'],
|
|
5085
|
+
context: this.context,
|
|
5086
|
+
};
|
|
5087
|
+
if (callback) {
|
|
5088
|
+
createAPIRequest<Schema$Operation>(
|
|
5089
|
+
parameters,
|
|
5090
|
+
callback as BodyResponseCallback<unknown>
|
|
5091
|
+
);
|
|
5092
|
+
} else {
|
|
5093
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
|
|
4024
5097
|
/**
|
|
4025
5098
|
* Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
|
|
4026
5099
|
*
|
|
@@ -4988,6 +6061,103 @@ export namespace sqladmin_v1 {
|
|
|
4988
6061
|
}
|
|
4989
6062
|
}
|
|
4990
6063
|
|
|
6064
|
+
/**
|
|
6065
|
+
* Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.
|
|
6066
|
+
*
|
|
6067
|
+
* @param params - Parameters for request
|
|
6068
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6069
|
+
* @param callback - Optional callback that handles the response.
|
|
6070
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6071
|
+
*/
|
|
6072
|
+
ListServerCertificates(
|
|
6073
|
+
params: Params$Resource$Instances$Listservercertificates,
|
|
6074
|
+
options: StreamMethodOptions
|
|
6075
|
+
): GaxiosPromise<Readable>;
|
|
6076
|
+
ListServerCertificates(
|
|
6077
|
+
params?: Params$Resource$Instances$Listservercertificates,
|
|
6078
|
+
options?: MethodOptions
|
|
6079
|
+
): GaxiosPromise<Schema$InstancesListServerCertificatesResponse>;
|
|
6080
|
+
ListServerCertificates(
|
|
6081
|
+
params: Params$Resource$Instances$Listservercertificates,
|
|
6082
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6083
|
+
callback: BodyResponseCallback<Readable>
|
|
6084
|
+
): void;
|
|
6085
|
+
ListServerCertificates(
|
|
6086
|
+
params: Params$Resource$Instances$Listservercertificates,
|
|
6087
|
+
options:
|
|
6088
|
+
| MethodOptions
|
|
6089
|
+
| BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>,
|
|
6090
|
+
callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6091
|
+
): void;
|
|
6092
|
+
ListServerCertificates(
|
|
6093
|
+
params: Params$Resource$Instances$Listservercertificates,
|
|
6094
|
+
callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6095
|
+
): void;
|
|
6096
|
+
ListServerCertificates(
|
|
6097
|
+
callback: BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6098
|
+
): void;
|
|
6099
|
+
ListServerCertificates(
|
|
6100
|
+
paramsOrCallback?:
|
|
6101
|
+
| Params$Resource$Instances$Listservercertificates
|
|
6102
|
+
| BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6103
|
+
| BodyResponseCallback<Readable>,
|
|
6104
|
+
optionsOrCallback?:
|
|
6105
|
+
| MethodOptions
|
|
6106
|
+
| StreamMethodOptions
|
|
6107
|
+
| BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6108
|
+
| BodyResponseCallback<Readable>,
|
|
6109
|
+
callback?:
|
|
6110
|
+
| BodyResponseCallback<Schema$InstancesListServerCertificatesResponse>
|
|
6111
|
+
| BodyResponseCallback<Readable>
|
|
6112
|
+
):
|
|
6113
|
+
| void
|
|
6114
|
+
| GaxiosPromise<Schema$InstancesListServerCertificatesResponse>
|
|
6115
|
+
| GaxiosPromise<Readable> {
|
|
6116
|
+
let params = (paramsOrCallback ||
|
|
6117
|
+
{}) as Params$Resource$Instances$Listservercertificates;
|
|
6118
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6119
|
+
|
|
6120
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6121
|
+
callback = paramsOrCallback;
|
|
6122
|
+
params = {} as Params$Resource$Instances$Listservercertificates;
|
|
6123
|
+
options = {};
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6127
|
+
callback = optionsOrCallback;
|
|
6128
|
+
options = {};
|
|
6129
|
+
}
|
|
6130
|
+
|
|
6131
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6132
|
+
const parameters = {
|
|
6133
|
+
options: Object.assign(
|
|
6134
|
+
{
|
|
6135
|
+
url: (
|
|
6136
|
+
rootUrl +
|
|
6137
|
+
'/v1/projects/{project}/instances/{instance}/listServerCertificates'
|
|
6138
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6139
|
+
method: 'GET',
|
|
6140
|
+
apiVersion: '',
|
|
6141
|
+
},
|
|
6142
|
+
options
|
|
6143
|
+
),
|
|
6144
|
+
params,
|
|
6145
|
+
requiredParams: ['project', 'instance'],
|
|
6146
|
+
pathParams: ['instance', 'project'],
|
|
6147
|
+
context: this.context,
|
|
6148
|
+
};
|
|
6149
|
+
if (callback) {
|
|
6150
|
+
createAPIRequest<Schema$InstancesListServerCertificatesResponse>(
|
|
6151
|
+
parameters,
|
|
6152
|
+
callback as BodyResponseCallback<unknown>
|
|
6153
|
+
);
|
|
6154
|
+
} else {
|
|
6155
|
+
return createAPIRequest<Schema$InstancesListServerCertificatesResponse>(
|
|
6156
|
+
parameters
|
|
6157
|
+
);
|
|
6158
|
+
}
|
|
6159
|
+
}
|
|
6160
|
+
|
|
4991
6161
|
/**
|
|
4992
6162
|
* Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
|
|
4993
6163
|
*
|
|
@@ -5610,7 +6780,7 @@ export namespace sqladmin_v1 {
|
|
|
5610
6780
|
}
|
|
5611
6781
|
|
|
5612
6782
|
/**
|
|
5613
|
-
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA,
|
|
6783
|
+
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
|
|
5614
6784
|
*
|
|
5615
6785
|
* @param params - Parameters for request
|
|
5616
6786
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5697,6 +6867,96 @@ export namespace sqladmin_v1 {
|
|
|
5697
6867
|
}
|
|
5698
6868
|
}
|
|
5699
6869
|
|
|
6870
|
+
/**
|
|
6871
|
+
* Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.
|
|
6872
|
+
*
|
|
6873
|
+
* @param params - Parameters for request
|
|
6874
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6875
|
+
* @param callback - Optional callback that handles the response.
|
|
6876
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6877
|
+
*/
|
|
6878
|
+
RotateServerCertificate(
|
|
6879
|
+
params: Params$Resource$Instances$Rotateservercertificate,
|
|
6880
|
+
options: StreamMethodOptions
|
|
6881
|
+
): GaxiosPromise<Readable>;
|
|
6882
|
+
RotateServerCertificate(
|
|
6883
|
+
params?: Params$Resource$Instances$Rotateservercertificate,
|
|
6884
|
+
options?: MethodOptions
|
|
6885
|
+
): GaxiosPromise<Schema$Operation>;
|
|
6886
|
+
RotateServerCertificate(
|
|
6887
|
+
params: Params$Resource$Instances$Rotateservercertificate,
|
|
6888
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6889
|
+
callback: BodyResponseCallback<Readable>
|
|
6890
|
+
): void;
|
|
6891
|
+
RotateServerCertificate(
|
|
6892
|
+
params: Params$Resource$Instances$Rotateservercertificate,
|
|
6893
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6894
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6895
|
+
): void;
|
|
6896
|
+
RotateServerCertificate(
|
|
6897
|
+
params: Params$Resource$Instances$Rotateservercertificate,
|
|
6898
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6899
|
+
): void;
|
|
6900
|
+
RotateServerCertificate(
|
|
6901
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6902
|
+
): void;
|
|
6903
|
+
RotateServerCertificate(
|
|
6904
|
+
paramsOrCallback?:
|
|
6905
|
+
| Params$Resource$Instances$Rotateservercertificate
|
|
6906
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6907
|
+
| BodyResponseCallback<Readable>,
|
|
6908
|
+
optionsOrCallback?:
|
|
6909
|
+
| MethodOptions
|
|
6910
|
+
| StreamMethodOptions
|
|
6911
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6912
|
+
| BodyResponseCallback<Readable>,
|
|
6913
|
+
callback?:
|
|
6914
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6915
|
+
| BodyResponseCallback<Readable>
|
|
6916
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
6917
|
+
let params = (paramsOrCallback ||
|
|
6918
|
+
{}) as Params$Resource$Instances$Rotateservercertificate;
|
|
6919
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6920
|
+
|
|
6921
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6922
|
+
callback = paramsOrCallback;
|
|
6923
|
+
params = {} as Params$Resource$Instances$Rotateservercertificate;
|
|
6924
|
+
options = {};
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6928
|
+
callback = optionsOrCallback;
|
|
6929
|
+
options = {};
|
|
6930
|
+
}
|
|
6931
|
+
|
|
6932
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6933
|
+
const parameters = {
|
|
6934
|
+
options: Object.assign(
|
|
6935
|
+
{
|
|
6936
|
+
url: (
|
|
6937
|
+
rootUrl +
|
|
6938
|
+
'/v1/projects/{project}/instances/{instance}/rotateServerCertificate'
|
|
6939
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6940
|
+
method: 'POST',
|
|
6941
|
+
apiVersion: '',
|
|
6942
|
+
},
|
|
6943
|
+
options
|
|
6944
|
+
),
|
|
6945
|
+
params,
|
|
6946
|
+
requiredParams: ['project', 'instance'],
|
|
6947
|
+
pathParams: ['instance', 'project'],
|
|
6948
|
+
context: this.context,
|
|
6949
|
+
};
|
|
6950
|
+
if (callback) {
|
|
6951
|
+
createAPIRequest<Schema$Operation>(
|
|
6952
|
+
parameters,
|
|
6953
|
+
callback as BodyResponseCallback<unknown>
|
|
6954
|
+
);
|
|
6955
|
+
} else {
|
|
6956
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6957
|
+
}
|
|
6958
|
+
}
|
|
6959
|
+
|
|
5700
6960
|
/**
|
|
5701
6961
|
* Starts the replication in the read replica instance.
|
|
5702
6962
|
*
|
|
@@ -5874,7 +7134,7 @@ export namespace sqladmin_v1 {
|
|
|
5874
7134
|
}
|
|
5875
7135
|
|
|
5876
7136
|
/**
|
|
5877
|
-
* Switches over from the primary instance to the
|
|
7137
|
+
* Switches over from the primary instance to the DR replica instance.
|
|
5878
7138
|
*
|
|
5879
7139
|
* @param params - Parameters for request
|
|
5880
7140
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6162,6 +7422,17 @@ export namespace sqladmin_v1 {
|
|
|
6162
7422
|
*/
|
|
6163
7423
|
project?: string;
|
|
6164
7424
|
}
|
|
7425
|
+
export interface Params$Resource$Instances$Addservercertificate
|
|
7426
|
+
extends StandardParameters {
|
|
7427
|
+
/**
|
|
7428
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
7429
|
+
*/
|
|
7430
|
+
instance?: string;
|
|
7431
|
+
/**
|
|
7432
|
+
* Project ID of the project that contains the instance.
|
|
7433
|
+
*/
|
|
7434
|
+
project?: string;
|
|
7435
|
+
}
|
|
6165
7436
|
export interface Params$Resource$Instances$Clone extends StandardParameters {
|
|
6166
7437
|
/**
|
|
6167
7438
|
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
@@ -6178,6 +7449,22 @@ export namespace sqladmin_v1 {
|
|
|
6178
7449
|
requestBody?: Schema$InstancesCloneRequest;
|
|
6179
7450
|
}
|
|
6180
7451
|
export interface Params$Resource$Instances$Delete extends StandardParameters {
|
|
7452
|
+
/**
|
|
7453
|
+
* Flag to opt-in for final backup. By default, it is turned off.
|
|
7454
|
+
*/
|
|
7455
|
+
enableFinalBackup?: boolean;
|
|
7456
|
+
/**
|
|
7457
|
+
* Optional. The description of the final backup.
|
|
7458
|
+
*/
|
|
7459
|
+
finalBackupDescription?: string;
|
|
7460
|
+
/**
|
|
7461
|
+
* Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.
|
|
7462
|
+
*/
|
|
7463
|
+
finalBackupExpiryTime?: string;
|
|
7464
|
+
/**
|
|
7465
|
+
* Optional. Retention period of the final backup.
|
|
7466
|
+
*/
|
|
7467
|
+
finalBackupTtlDays?: string;
|
|
6181
7468
|
/**
|
|
6182
7469
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
6183
7470
|
*/
|
|
@@ -6314,6 +7601,17 @@ export namespace sqladmin_v1 {
|
|
|
6314
7601
|
*/
|
|
6315
7602
|
project?: string;
|
|
6316
7603
|
}
|
|
7604
|
+
export interface Params$Resource$Instances$Listservercertificates
|
|
7605
|
+
extends StandardParameters {
|
|
7606
|
+
/**
|
|
7607
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7608
|
+
*/
|
|
7609
|
+
instance?: string;
|
|
7610
|
+
/**
|
|
7611
|
+
* Required. Project ID of the project that contains the instance.
|
|
7612
|
+
*/
|
|
7613
|
+
project?: string;
|
|
7614
|
+
}
|
|
6317
7615
|
export interface Params$Resource$Instances$Patch extends StandardParameters {
|
|
6318
7616
|
/**
|
|
6319
7617
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -6332,7 +7630,7 @@ export namespace sqladmin_v1 {
|
|
|
6332
7630
|
export interface Params$Resource$Instances$Promotereplica
|
|
6333
7631
|
extends StandardParameters {
|
|
6334
7632
|
/**
|
|
6335
|
-
* Set to true to invoke a replica failover to the
|
|
7633
|
+
* Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
|
|
6336
7634
|
*/
|
|
6337
7635
|
failover?: boolean;
|
|
6338
7636
|
/**
|
|
@@ -6425,6 +7723,22 @@ export namespace sqladmin_v1 {
|
|
|
6425
7723
|
*/
|
|
6426
7724
|
requestBody?: Schema$InstancesRotateServerCaRequest;
|
|
6427
7725
|
}
|
|
7726
|
+
export interface Params$Resource$Instances$Rotateservercertificate
|
|
7727
|
+
extends StandardParameters {
|
|
7728
|
+
/**
|
|
7729
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
7730
|
+
*/
|
|
7731
|
+
instance?: string;
|
|
7732
|
+
/**
|
|
7733
|
+
* Required. Project ID of the project that contains the instance.
|
|
7734
|
+
*/
|
|
7735
|
+
project?: string;
|
|
7736
|
+
|
|
7737
|
+
/**
|
|
7738
|
+
* Request body metadata
|
|
7739
|
+
*/
|
|
7740
|
+
requestBody?: Schema$InstancesRotateServerCertificateRequest;
|
|
7741
|
+
}
|
|
6428
7742
|
export interface Params$Resource$Instances$Startreplica
|
|
6429
7743
|
extends StandardParameters {
|
|
6430
7744
|
/**
|
|
@@ -6450,7 +7764,7 @@ export namespace sqladmin_v1 {
|
|
|
6450
7764
|
export interface Params$Resource$Instances$Switchover
|
|
6451
7765
|
extends StandardParameters {
|
|
6452
7766
|
/**
|
|
6453
|
-
* 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.
|
|
7767
|
+
* Optional. (MySQL and PostgreSQL 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.
|
|
6454
7768
|
*/
|
|
6455
7769
|
dbTimeout?: string;
|
|
6456
7770
|
/**
|