@googleapis/sqladmin 25.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 +21 -0
- package/build/v1.d.ts +493 -6
- package/build/v1.js +167 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +493 -6
- package/build/v1beta4.js +167 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1034 -169
- package/v1beta4.ts +1045 -171
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
|
*/
|
|
@@ -483,6 +661,10 @@ export namespace sqladmin_v1 {
|
|
|
483
661
|
* The dns name of the instance.
|
|
484
662
|
*/
|
|
485
663
|
dnsName?: string | null;
|
|
664
|
+
/**
|
|
665
|
+
* Output only. The list of DNS names used by this instance.
|
|
666
|
+
*/
|
|
667
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
486
668
|
/**
|
|
487
669
|
* The assigned IP addresses for the instance.
|
|
488
670
|
*/
|
|
@@ -491,6 +673,14 @@ export namespace sqladmin_v1 {
|
|
|
491
673
|
* This is always `sql#connectSettings`.
|
|
492
674
|
*/
|
|
493
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[];
|
|
494
684
|
/**
|
|
495
685
|
* Whether PSC connectivity is enabled for this instance.
|
|
496
686
|
*/
|
|
@@ -603,6 +793,10 @@ export namespace sqladmin_v1 {
|
|
|
603
793
|
* Output only. The dns name of the instance.
|
|
604
794
|
*/
|
|
605
795
|
dnsName?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
* Output only. The list of DNS names used by this instance.
|
|
798
|
+
*/
|
|
799
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
606
800
|
/**
|
|
607
801
|
* This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
|
|
608
802
|
*/
|
|
@@ -619,6 +813,10 @@ export namespace sqladmin_v1 {
|
|
|
619
813
|
* Gemini instance configuration.
|
|
620
814
|
*/
|
|
621
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;
|
|
622
820
|
/**
|
|
623
821
|
* The instance type.
|
|
624
822
|
*/
|
|
@@ -651,6 +849,14 @@ export namespace sqladmin_v1 {
|
|
|
651
849
|
* Name of the Cloud SQL instance. This does not include the project ID.
|
|
652
850
|
*/
|
|
653
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[];
|
|
654
860
|
/**
|
|
655
861
|
* Configuration specific to on-premises instances.
|
|
656
862
|
*/
|
|
@@ -835,7 +1041,7 @@ export namespace sqladmin_v1 {
|
|
|
835
1041
|
*/
|
|
836
1042
|
clientCertificate?: string | null;
|
|
837
1043
|
/**
|
|
838
|
-
* 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.
|
|
839
1045
|
*/
|
|
840
1046
|
clientKey?: string | null;
|
|
841
1047
|
/**
|
|
@@ -894,6 +1100,23 @@ export namespace sqladmin_v1 {
|
|
|
894
1100
|
*/
|
|
895
1101
|
kmsKeyVersionName?: string | null;
|
|
896
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
|
+
}
|
|
897
1120
|
/**
|
|
898
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); \}
|
|
899
1122
|
*/
|
|
@@ -925,7 +1148,7 @@ export namespace sqladmin_v1 {
|
|
|
925
1148
|
selectQuery?: string;
|
|
926
1149
|
} | null;
|
|
927
1150
|
/**
|
|
928
|
-
* 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`.
|
|
929
1152
|
*/
|
|
930
1153
|
databases?: string[] | null;
|
|
931
1154
|
/**
|
|
@@ -951,6 +1174,15 @@ export namespace sqladmin_v1 {
|
|
|
951
1174
|
tables?: string[];
|
|
952
1175
|
threads?: number;
|
|
953
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;
|
|
954
1186
|
/**
|
|
955
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.
|
|
956
1188
|
*/
|
|
@@ -994,6 +1226,10 @@ export namespace sqladmin_v1 {
|
|
|
994
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).
|
|
995
1227
|
*/
|
|
996
1228
|
appliesTo?: string[] | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Scope of flag.
|
|
1231
|
+
*/
|
|
1232
|
+
flagScope?: string | null;
|
|
997
1233
|
/**
|
|
998
1234
|
* Whether or not the flag is considered in beta.
|
|
999
1235
|
*/
|
|
@@ -1014,6 +1250,14 @@ export namespace sqladmin_v1 {
|
|
|
1014
1250
|
* This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
|
|
1015
1251
|
*/
|
|
1016
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;
|
|
1017
1261
|
/**
|
|
1018
1262
|
* Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
|
|
1019
1263
|
*/
|
|
@@ -1106,6 +1350,7 @@ export namespace sqladmin_v1 {
|
|
|
1106
1350
|
bakType?: string;
|
|
1107
1351
|
encryptionOptions?: {
|
|
1108
1352
|
certPath?: string;
|
|
1353
|
+
keepEncrypted?: boolean;
|
|
1109
1354
|
pvkPassword?: string;
|
|
1110
1355
|
pvkPath?: string;
|
|
1111
1356
|
};
|
|
@@ -1127,7 +1372,7 @@ export namespace sqladmin_v1 {
|
|
|
1127
1372
|
table?: string;
|
|
1128
1373
|
} | null;
|
|
1129
1374
|
/**
|
|
1130
|
-
* 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.
|
|
1131
1376
|
*/
|
|
1132
1377
|
database?: string | null;
|
|
1133
1378
|
/**
|
|
@@ -1150,6 +1395,15 @@ export namespace sqladmin_v1 {
|
|
|
1150
1395
|
postgresImportOptions?: {clean?: boolean; ifExists?: boolean};
|
|
1151
1396
|
threads?: number;
|
|
1152
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;
|
|
1153
1407
|
/**
|
|
1154
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.
|
|
1155
1409
|
*/
|
|
@@ -1329,10 +1583,18 @@ export namespace sqladmin_v1 {
|
|
|
1329
1583
|
* Database instance restore backup request.
|
|
1330
1584
|
*/
|
|
1331
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;
|
|
1332
1590
|
/**
|
|
1333
1591
|
* Parameters required to perform the restore backup operation.
|
|
1334
1592
|
*/
|
|
1335
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;
|
|
1336
1598
|
}
|
|
1337
1599
|
/**
|
|
1338
1600
|
* Rotate server CA request.
|
|
@@ -1361,6 +1623,19 @@ export namespace sqladmin_v1 {
|
|
|
1361
1623
|
*/
|
|
1362
1624
|
truncateLogContext?: Schema$TruncateLogContext;
|
|
1363
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
|
+
}
|
|
1364
1639
|
/**
|
|
1365
1640
|
* IP Management configuration.
|
|
1366
1641
|
*/
|
|
@@ -1402,7 +1677,7 @@ export namespace sqladmin_v1 {
|
|
|
1402
1677
|
*/
|
|
1403
1678
|
serverCaMode?: string | null;
|
|
1404
1679
|
/**
|
|
1405
|
-
* Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects
|
|
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\}
|
|
1406
1681
|
*/
|
|
1407
1682
|
serverCaPool?: string | null;
|
|
1408
1683
|
/**
|
|
@@ -1427,6 +1702,23 @@ export namespace sqladmin_v1 {
|
|
|
1427
1702
|
*/
|
|
1428
1703
|
type?: string | null;
|
|
1429
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
|
+
}
|
|
1430
1722
|
/**
|
|
1431
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.
|
|
1432
1724
|
*/
|
|
@@ -1482,7 +1774,7 @@ export namespace sqladmin_v1 {
|
|
|
1482
1774
|
*/
|
|
1483
1775
|
clientCertificate?: string | null;
|
|
1484
1776
|
/**
|
|
1485
|
-
* 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.
|
|
1486
1778
|
*/
|
|
1487
1779
|
clientKey?: string | null;
|
|
1488
1780
|
/**
|
|
@@ -1540,7 +1832,7 @@ export namespace sqladmin_v1 {
|
|
|
1540
1832
|
*/
|
|
1541
1833
|
clientCertificate?: string | null;
|
|
1542
1834
|
/**
|
|
1543
|
-
* 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.
|
|
1544
1836
|
*/
|
|
1545
1837
|
clientKey?: string | null;
|
|
1546
1838
|
/**
|
|
@@ -1640,6 +1932,9 @@ export namespace sqladmin_v1 {
|
|
|
1640
1932
|
* Optional. The sub operation based on the operation type.
|
|
1641
1933
|
*/
|
|
1642
1934
|
subOperationType?: Schema$SqlSubOperationType;
|
|
1935
|
+
/**
|
|
1936
|
+
* Name of the resource on which this operation runs.
|
|
1937
|
+
*/
|
|
1643
1938
|
targetId?: string | null;
|
|
1644
1939
|
targetLink?: string | null;
|
|
1645
1940
|
/**
|
|
@@ -1786,6 +2081,35 @@ export namespace sqladmin_v1 {
|
|
|
1786
2081
|
*/
|
|
1787
2082
|
targetSizeGb?: string | null;
|
|
1788
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
|
+
}
|
|
1789
2113
|
/**
|
|
1790
2114
|
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
1791
2115
|
*/
|
|
@@ -1964,6 +2288,10 @@ export namespace sqladmin_v1 {
|
|
|
1964
2288
|
* The name of server Instance collation.
|
|
1965
2289
|
*/
|
|
1966
2290
|
collation?: string | null;
|
|
2291
|
+
/**
|
|
2292
|
+
* Optional. The managed connection pooling configuration for the instance.
|
|
2293
|
+
*/
|
|
2294
|
+
connectionPoolConfig?: Schema$ConnectionPoolConfig;
|
|
1967
2295
|
/**
|
|
1968
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.
|
|
1969
2297
|
*/
|
|
@@ -1984,6 +2312,14 @@ export namespace sqladmin_v1 {
|
|
|
1984
2312
|
* Configuration for data cache.
|
|
1985
2313
|
*/
|
|
1986
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;
|
|
1987
2323
|
/**
|
|
1988
2324
|
* The size of data disk, in GB. The data disk size minimum is 10GB.
|
|
1989
2325
|
*/
|
|
@@ -2048,6 +2384,10 @@ export namespace sqladmin_v1 {
|
|
|
2048
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.
|
|
2049
2385
|
*/
|
|
2050
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;
|
|
2051
2391
|
/**
|
|
2052
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.
|
|
2053
2393
|
*/
|
|
@@ -2593,46 +2933,558 @@ export namespace sqladmin_v1 {
|
|
|
2593
2933
|
nextPageToken?: string | null;
|
|
2594
2934
|
}
|
|
2595
2935
|
|
|
2596
|
-
export class Resource$Backupruns {
|
|
2597
|
-
context: APIRequestContext;
|
|
2598
|
-
constructor(context: APIRequestContext) {
|
|
2599
|
-
this.context = context;
|
|
2936
|
+
export class Resource$Backupruns {
|
|
2937
|
+
context: APIRequestContext;
|
|
2938
|
+
constructor(context: APIRequestContext) {
|
|
2939
|
+
this.context = context;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
/**
|
|
2943
|
+
* Deletes the backup taken by a backup run.
|
|
2944
|
+
*
|
|
2945
|
+
* @param params - Parameters for request
|
|
2946
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2947
|
+
* @param callback - Optional callback that handles the response.
|
|
2948
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2949
|
+
*/
|
|
2950
|
+
delete(
|
|
2951
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2952
|
+
options: StreamMethodOptions
|
|
2953
|
+
): GaxiosPromise<Readable>;
|
|
2954
|
+
delete(
|
|
2955
|
+
params?: Params$Resource$Backupruns$Delete,
|
|
2956
|
+
options?: MethodOptions
|
|
2957
|
+
): GaxiosPromise<Schema$Operation>;
|
|
2958
|
+
delete(
|
|
2959
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2960
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2961
|
+
callback: BodyResponseCallback<Readable>
|
|
2962
|
+
): void;
|
|
2963
|
+
delete(
|
|
2964
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2965
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2966
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2967
|
+
): void;
|
|
2968
|
+
delete(
|
|
2969
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2970
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2971
|
+
): void;
|
|
2972
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2973
|
+
delete(
|
|
2974
|
+
paramsOrCallback?:
|
|
2975
|
+
| Params$Resource$Backupruns$Delete
|
|
2976
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2977
|
+
| BodyResponseCallback<Readable>,
|
|
2978
|
+
optionsOrCallback?:
|
|
2979
|
+
| MethodOptions
|
|
2980
|
+
| StreamMethodOptions
|
|
2981
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2982
|
+
| BodyResponseCallback<Readable>,
|
|
2983
|
+
callback?:
|
|
2984
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2985
|
+
| BodyResponseCallback<Readable>
|
|
2986
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
2987
|
+
let params = (paramsOrCallback ||
|
|
2988
|
+
{}) as Params$Resource$Backupruns$Delete;
|
|
2989
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2990
|
+
|
|
2991
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2992
|
+
callback = paramsOrCallback;
|
|
2993
|
+
params = {} as Params$Resource$Backupruns$Delete;
|
|
2994
|
+
options = {};
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2998
|
+
callback = optionsOrCallback;
|
|
2999
|
+
options = {};
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3003
|
+
const parameters = {
|
|
3004
|
+
options: Object.assign(
|
|
3005
|
+
{
|
|
3006
|
+
url: (
|
|
3007
|
+
rootUrl +
|
|
3008
|
+
'/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
3009
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3010
|
+
method: 'DELETE',
|
|
3011
|
+
apiVersion: '',
|
|
3012
|
+
},
|
|
3013
|
+
options
|
|
3014
|
+
),
|
|
3015
|
+
params,
|
|
3016
|
+
requiredParams: ['project', 'instance', 'id'],
|
|
3017
|
+
pathParams: ['id', 'instance', 'project'],
|
|
3018
|
+
context: this.context,
|
|
3019
|
+
};
|
|
3020
|
+
if (callback) {
|
|
3021
|
+
createAPIRequest<Schema$Operation>(
|
|
3022
|
+
parameters,
|
|
3023
|
+
callback as BodyResponseCallback<unknown>
|
|
3024
|
+
);
|
|
3025
|
+
} else {
|
|
3026
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* Retrieves a resource containing information about a backup run.
|
|
3032
|
+
*
|
|
3033
|
+
* @param params - Parameters for request
|
|
3034
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3035
|
+
* @param callback - Optional callback that handles the response.
|
|
3036
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3037
|
+
*/
|
|
3038
|
+
get(
|
|
3039
|
+
params: Params$Resource$Backupruns$Get,
|
|
3040
|
+
options: StreamMethodOptions
|
|
3041
|
+
): GaxiosPromise<Readable>;
|
|
3042
|
+
get(
|
|
3043
|
+
params?: Params$Resource$Backupruns$Get,
|
|
3044
|
+
options?: MethodOptions
|
|
3045
|
+
): GaxiosPromise<Schema$BackupRun>;
|
|
3046
|
+
get(
|
|
3047
|
+
params: Params$Resource$Backupruns$Get,
|
|
3048
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3049
|
+
callback: BodyResponseCallback<Readable>
|
|
3050
|
+
): void;
|
|
3051
|
+
get(
|
|
3052
|
+
params: Params$Resource$Backupruns$Get,
|
|
3053
|
+
options: MethodOptions | BodyResponseCallback<Schema$BackupRun>,
|
|
3054
|
+
callback: BodyResponseCallback<Schema$BackupRun>
|
|
3055
|
+
): void;
|
|
3056
|
+
get(
|
|
3057
|
+
params: Params$Resource$Backupruns$Get,
|
|
3058
|
+
callback: BodyResponseCallback<Schema$BackupRun>
|
|
3059
|
+
): void;
|
|
3060
|
+
get(callback: BodyResponseCallback<Schema$BackupRun>): void;
|
|
3061
|
+
get(
|
|
3062
|
+
paramsOrCallback?:
|
|
3063
|
+
| Params$Resource$Backupruns$Get
|
|
3064
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3065
|
+
| BodyResponseCallback<Readable>,
|
|
3066
|
+
optionsOrCallback?:
|
|
3067
|
+
| MethodOptions
|
|
3068
|
+
| StreamMethodOptions
|
|
3069
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3070
|
+
| BodyResponseCallback<Readable>,
|
|
3071
|
+
callback?:
|
|
3072
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3073
|
+
| BodyResponseCallback<Readable>
|
|
3074
|
+
): void | GaxiosPromise<Schema$BackupRun> | GaxiosPromise<Readable> {
|
|
3075
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$Get;
|
|
3076
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3077
|
+
|
|
3078
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3079
|
+
callback = paramsOrCallback;
|
|
3080
|
+
params = {} as Params$Resource$Backupruns$Get;
|
|
3081
|
+
options = {};
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3085
|
+
callback = optionsOrCallback;
|
|
3086
|
+
options = {};
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3090
|
+
const parameters = {
|
|
3091
|
+
options: Object.assign(
|
|
3092
|
+
{
|
|
3093
|
+
url: (
|
|
3094
|
+
rootUrl +
|
|
3095
|
+
'/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
3096
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3097
|
+
method: 'GET',
|
|
3098
|
+
apiVersion: '',
|
|
3099
|
+
},
|
|
3100
|
+
options
|
|
3101
|
+
),
|
|
3102
|
+
params,
|
|
3103
|
+
requiredParams: ['project', 'instance', 'id'],
|
|
3104
|
+
pathParams: ['id', 'instance', 'project'],
|
|
3105
|
+
context: this.context,
|
|
3106
|
+
};
|
|
3107
|
+
if (callback) {
|
|
3108
|
+
createAPIRequest<Schema$BackupRun>(
|
|
3109
|
+
parameters,
|
|
3110
|
+
callback as BodyResponseCallback<unknown>
|
|
3111
|
+
);
|
|
3112
|
+
} else {
|
|
3113
|
+
return createAPIRequest<Schema$BackupRun>(parameters);
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* Creates a new backup run on demand.
|
|
3119
|
+
*
|
|
3120
|
+
* @param params - Parameters for request
|
|
3121
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3122
|
+
* @param callback - Optional callback that handles the response.
|
|
3123
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3124
|
+
*/
|
|
3125
|
+
insert(
|
|
3126
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3127
|
+
options: StreamMethodOptions
|
|
3128
|
+
): GaxiosPromise<Readable>;
|
|
3129
|
+
insert(
|
|
3130
|
+
params?: Params$Resource$Backupruns$Insert,
|
|
3131
|
+
options?: MethodOptions
|
|
3132
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3133
|
+
insert(
|
|
3134
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3135
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3136
|
+
callback: BodyResponseCallback<Readable>
|
|
3137
|
+
): void;
|
|
3138
|
+
insert(
|
|
3139
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3140
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3141
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3142
|
+
): void;
|
|
3143
|
+
insert(
|
|
3144
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3145
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3146
|
+
): void;
|
|
3147
|
+
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3148
|
+
insert(
|
|
3149
|
+
paramsOrCallback?:
|
|
3150
|
+
| Params$Resource$Backupruns$Insert
|
|
3151
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3152
|
+
| BodyResponseCallback<Readable>,
|
|
3153
|
+
optionsOrCallback?:
|
|
3154
|
+
| MethodOptions
|
|
3155
|
+
| StreamMethodOptions
|
|
3156
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3157
|
+
| BodyResponseCallback<Readable>,
|
|
3158
|
+
callback?:
|
|
3159
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3160
|
+
| BodyResponseCallback<Readable>
|
|
3161
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3162
|
+
let params = (paramsOrCallback ||
|
|
3163
|
+
{}) as Params$Resource$Backupruns$Insert;
|
|
3164
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3165
|
+
|
|
3166
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3167
|
+
callback = paramsOrCallback;
|
|
3168
|
+
params = {} as Params$Resource$Backupruns$Insert;
|
|
3169
|
+
options = {};
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3173
|
+
callback = optionsOrCallback;
|
|
3174
|
+
options = {};
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3178
|
+
const parameters = {
|
|
3179
|
+
options: Object.assign(
|
|
3180
|
+
{
|
|
3181
|
+
url: (
|
|
3182
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns'
|
|
3183
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3184
|
+
method: 'POST',
|
|
3185
|
+
apiVersion: '',
|
|
3186
|
+
},
|
|
3187
|
+
options
|
|
3188
|
+
),
|
|
3189
|
+
params,
|
|
3190
|
+
requiredParams: ['project', 'instance'],
|
|
3191
|
+
pathParams: ['instance', 'project'],
|
|
3192
|
+
context: this.context,
|
|
3193
|
+
};
|
|
3194
|
+
if (callback) {
|
|
3195
|
+
createAPIRequest<Schema$Operation>(
|
|
3196
|
+
parameters,
|
|
3197
|
+
callback as BodyResponseCallback<unknown>
|
|
3198
|
+
);
|
|
3199
|
+
} else {
|
|
3200
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
|
|
3206
|
+
*
|
|
3207
|
+
* @param params - Parameters for request
|
|
3208
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3209
|
+
* @param callback - Optional callback that handles the response.
|
|
3210
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3211
|
+
*/
|
|
3212
|
+
list(
|
|
3213
|
+
params: Params$Resource$Backupruns$List,
|
|
3214
|
+
options: StreamMethodOptions
|
|
3215
|
+
): GaxiosPromise<Readable>;
|
|
3216
|
+
list(
|
|
3217
|
+
params?: Params$Resource$Backupruns$List,
|
|
3218
|
+
options?: MethodOptions
|
|
3219
|
+
): GaxiosPromise<Schema$BackupRunsListResponse>;
|
|
3220
|
+
list(
|
|
3221
|
+
params: Params$Resource$Backupruns$List,
|
|
3222
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3223
|
+
callback: BodyResponseCallback<Readable>
|
|
3224
|
+
): void;
|
|
3225
|
+
list(
|
|
3226
|
+
params: Params$Resource$Backupruns$List,
|
|
3227
|
+
options:
|
|
3228
|
+
| MethodOptions
|
|
3229
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
3230
|
+
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3231
|
+
): void;
|
|
3232
|
+
list(
|
|
3233
|
+
params: Params$Resource$Backupruns$List,
|
|
3234
|
+
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3235
|
+
): void;
|
|
3236
|
+
list(callback: BodyResponseCallback<Schema$BackupRunsListResponse>): void;
|
|
3237
|
+
list(
|
|
3238
|
+
paramsOrCallback?:
|
|
3239
|
+
| Params$Resource$Backupruns$List
|
|
3240
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3241
|
+
| BodyResponseCallback<Readable>,
|
|
3242
|
+
optionsOrCallback?:
|
|
3243
|
+
| MethodOptions
|
|
3244
|
+
| StreamMethodOptions
|
|
3245
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3246
|
+
| BodyResponseCallback<Readable>,
|
|
3247
|
+
callback?:
|
|
3248
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3249
|
+
| BodyResponseCallback<Readable>
|
|
3250
|
+
):
|
|
3251
|
+
| void
|
|
3252
|
+
| GaxiosPromise<Schema$BackupRunsListResponse>
|
|
3253
|
+
| GaxiosPromise<Readable> {
|
|
3254
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List;
|
|
3255
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3256
|
+
|
|
3257
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3258
|
+
callback = paramsOrCallback;
|
|
3259
|
+
params = {} as Params$Resource$Backupruns$List;
|
|
3260
|
+
options = {};
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3264
|
+
callback = optionsOrCallback;
|
|
3265
|
+
options = {};
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3269
|
+
const parameters = {
|
|
3270
|
+
options: Object.assign(
|
|
3271
|
+
{
|
|
3272
|
+
url: (
|
|
3273
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns'
|
|
3274
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3275
|
+
method: 'GET',
|
|
3276
|
+
apiVersion: '',
|
|
3277
|
+
},
|
|
3278
|
+
options
|
|
3279
|
+
),
|
|
3280
|
+
params,
|
|
3281
|
+
requiredParams: ['project', 'instance'],
|
|
3282
|
+
pathParams: ['instance', 'project'],
|
|
3283
|
+
context: this.context,
|
|
3284
|
+
};
|
|
3285
|
+
if (callback) {
|
|
3286
|
+
createAPIRequest<Schema$BackupRunsListResponse>(
|
|
3287
|
+
parameters,
|
|
3288
|
+
callback as BodyResponseCallback<unknown>
|
|
3289
|
+
);
|
|
3290
|
+
} else {
|
|
3291
|
+
return createAPIRequest<Schema$BackupRunsListResponse>(parameters);
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
export interface Params$Resource$Backupruns$Delete
|
|
3297
|
+
extends StandardParameters {
|
|
3298
|
+
/**
|
|
3299
|
+
* The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
|
|
3300
|
+
*/
|
|
3301
|
+
id?: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3304
|
+
*/
|
|
3305
|
+
instance?: string;
|
|
3306
|
+
/**
|
|
3307
|
+
* Project ID of the project that contains the instance.
|
|
3308
|
+
*/
|
|
3309
|
+
project?: string;
|
|
3310
|
+
}
|
|
3311
|
+
export interface Params$Resource$Backupruns$Get extends StandardParameters {
|
|
3312
|
+
/**
|
|
3313
|
+
* The ID of this backup run.
|
|
3314
|
+
*/
|
|
3315
|
+
id?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3318
|
+
*/
|
|
3319
|
+
instance?: string;
|
|
3320
|
+
/**
|
|
3321
|
+
* Project ID of the project that contains the instance.
|
|
3322
|
+
*/
|
|
3323
|
+
project?: string;
|
|
3324
|
+
}
|
|
3325
|
+
export interface Params$Resource$Backupruns$Insert
|
|
3326
|
+
extends StandardParameters {
|
|
3327
|
+
/**
|
|
3328
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3329
|
+
*/
|
|
3330
|
+
instance?: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* Project ID of the project that contains the instance.
|
|
3333
|
+
*/
|
|
3334
|
+
project?: string;
|
|
3335
|
+
|
|
3336
|
+
/**
|
|
3337
|
+
* Request body metadata
|
|
3338
|
+
*/
|
|
3339
|
+
requestBody?: Schema$BackupRun;
|
|
3340
|
+
}
|
|
3341
|
+
export interface Params$Resource$Backupruns$List extends StandardParameters {
|
|
3342
|
+
/**
|
|
3343
|
+
* Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.
|
|
3344
|
+
*/
|
|
3345
|
+
instance?: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Maximum number of backup runs per response.
|
|
3348
|
+
*/
|
|
3349
|
+
maxResults?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
3352
|
+
*/
|
|
3353
|
+
pageToken?: string;
|
|
3354
|
+
/**
|
|
3355
|
+
* Project ID of the project that contains the instance.
|
|
3356
|
+
*/
|
|
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
|
+
}
|
|
2600
3452
|
}
|
|
2601
3453
|
|
|
2602
3454
|
/**
|
|
2603
|
-
* Deletes the backup
|
|
3455
|
+
* Deletes the backup.
|
|
2604
3456
|
*
|
|
2605
3457
|
* @param params - Parameters for request
|
|
2606
3458
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2607
3459
|
* @param callback - Optional callback that handles the response.
|
|
2608
3460
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2609
3461
|
*/
|
|
2610
|
-
|
|
2611
|
-
params: Params$Resource$
|
|
3462
|
+
DeleteBackup(
|
|
3463
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2612
3464
|
options: StreamMethodOptions
|
|
2613
3465
|
): GaxiosPromise<Readable>;
|
|
2614
|
-
|
|
2615
|
-
params?: Params$Resource$
|
|
3466
|
+
DeleteBackup(
|
|
3467
|
+
params?: Params$Resource$Backups$Deletebackup,
|
|
2616
3468
|
options?: MethodOptions
|
|
2617
3469
|
): GaxiosPromise<Schema$Operation>;
|
|
2618
|
-
|
|
2619
|
-
params: Params$Resource$
|
|
3470
|
+
DeleteBackup(
|
|
3471
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2620
3472
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2621
3473
|
callback: BodyResponseCallback<Readable>
|
|
2622
3474
|
): void;
|
|
2623
|
-
|
|
2624
|
-
params: Params$Resource$
|
|
3475
|
+
DeleteBackup(
|
|
3476
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2625
3477
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2626
3478
|
callback: BodyResponseCallback<Schema$Operation>
|
|
2627
3479
|
): void;
|
|
2628
|
-
|
|
2629
|
-
params: Params$Resource$
|
|
3480
|
+
DeleteBackup(
|
|
3481
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2630
3482
|
callback: BodyResponseCallback<Schema$Operation>
|
|
2631
3483
|
): void;
|
|
2632
|
-
|
|
2633
|
-
|
|
3484
|
+
DeleteBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3485
|
+
DeleteBackup(
|
|
2634
3486
|
paramsOrCallback?:
|
|
2635
|
-
| Params$Resource$
|
|
3487
|
+
| Params$Resource$Backups$Deletebackup
|
|
2636
3488
|
| BodyResponseCallback<Schema$Operation>
|
|
2637
3489
|
| BodyResponseCallback<Readable>,
|
|
2638
3490
|
optionsOrCallback?:
|
|
@@ -2645,12 +3497,12 @@ export namespace sqladmin_v1 {
|
|
|
2645
3497
|
| BodyResponseCallback<Readable>
|
|
2646
3498
|
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
2647
3499
|
let params = (paramsOrCallback ||
|
|
2648
|
-
{}) as Params$Resource$
|
|
3500
|
+
{}) as Params$Resource$Backups$Deletebackup;
|
|
2649
3501
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2650
3502
|
|
|
2651
3503
|
if (typeof paramsOrCallback === 'function') {
|
|
2652
3504
|
callback = paramsOrCallback;
|
|
2653
|
-
params = {} as Params$Resource$
|
|
3505
|
+
params = {} as Params$Resource$Backups$Deletebackup;
|
|
2654
3506
|
options = {};
|
|
2655
3507
|
}
|
|
2656
3508
|
|
|
@@ -2663,18 +3515,15 @@ export namespace sqladmin_v1 {
|
|
|
2663
3515
|
const parameters = {
|
|
2664
3516
|
options: Object.assign(
|
|
2665
3517
|
{
|
|
2666
|
-
url: (
|
|
2667
|
-
rootUrl +
|
|
2668
|
-
'/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
2669
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3518
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2670
3519
|
method: 'DELETE',
|
|
2671
3520
|
apiVersion: '',
|
|
2672
3521
|
},
|
|
2673
3522
|
options
|
|
2674
3523
|
),
|
|
2675
3524
|
params,
|
|
2676
|
-
requiredParams: ['
|
|
2677
|
-
pathParams: ['
|
|
3525
|
+
requiredParams: ['name'],
|
|
3526
|
+
pathParams: ['name'],
|
|
2678
3527
|
context: this.context,
|
|
2679
3528
|
};
|
|
2680
3529
|
if (callback) {
|
|
@@ -2688,56 +3537,57 @@ export namespace sqladmin_v1 {
|
|
|
2688
3537
|
}
|
|
2689
3538
|
|
|
2690
3539
|
/**
|
|
2691
|
-
* Retrieves a resource containing information about a backup
|
|
3540
|
+
* Retrieves a resource containing information about a backup.
|
|
2692
3541
|
*
|
|
2693
3542
|
* @param params - Parameters for request
|
|
2694
3543
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2695
3544
|
* @param callback - Optional callback that handles the response.
|
|
2696
3545
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2697
3546
|
*/
|
|
2698
|
-
|
|
2699
|
-
params: Params$Resource$
|
|
3547
|
+
GetBackup(
|
|
3548
|
+
params: Params$Resource$Backups$Getbackup,
|
|
2700
3549
|
options: StreamMethodOptions
|
|
2701
3550
|
): GaxiosPromise<Readable>;
|
|
2702
|
-
|
|
2703
|
-
params?: Params$Resource$
|
|
3551
|
+
GetBackup(
|
|
3552
|
+
params?: Params$Resource$Backups$Getbackup,
|
|
2704
3553
|
options?: MethodOptions
|
|
2705
|
-
): GaxiosPromise<Schema$
|
|
2706
|
-
|
|
2707
|
-
params: Params$Resource$
|
|
3554
|
+
): GaxiosPromise<Schema$Backup>;
|
|
3555
|
+
GetBackup(
|
|
3556
|
+
params: Params$Resource$Backups$Getbackup,
|
|
2708
3557
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2709
3558
|
callback: BodyResponseCallback<Readable>
|
|
2710
3559
|
): void;
|
|
2711
|
-
|
|
2712
|
-
params: Params$Resource$
|
|
2713
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2714
|
-
callback: BodyResponseCallback<Schema$
|
|
3560
|
+
GetBackup(
|
|
3561
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3562
|
+
options: MethodOptions | BodyResponseCallback<Schema$Backup>,
|
|
3563
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
2715
3564
|
): void;
|
|
2716
|
-
|
|
2717
|
-
params: Params$Resource$
|
|
2718
|
-
callback: BodyResponseCallback<Schema$
|
|
3565
|
+
GetBackup(
|
|
3566
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3567
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
2719
3568
|
): void;
|
|
2720
|
-
|
|
2721
|
-
|
|
3569
|
+
GetBackup(callback: BodyResponseCallback<Schema$Backup>): void;
|
|
3570
|
+
GetBackup(
|
|
2722
3571
|
paramsOrCallback?:
|
|
2723
|
-
| Params$Resource$
|
|
2724
|
-
| BodyResponseCallback<Schema$
|
|
3572
|
+
| Params$Resource$Backups$Getbackup
|
|
3573
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2725
3574
|
| BodyResponseCallback<Readable>,
|
|
2726
3575
|
optionsOrCallback?:
|
|
2727
3576
|
| MethodOptions
|
|
2728
3577
|
| StreamMethodOptions
|
|
2729
|
-
| BodyResponseCallback<Schema$
|
|
3578
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2730
3579
|
| BodyResponseCallback<Readable>,
|
|
2731
3580
|
callback?:
|
|
2732
|
-
| BodyResponseCallback<Schema$
|
|
3581
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2733
3582
|
| BodyResponseCallback<Readable>
|
|
2734
|
-
): void | GaxiosPromise<Schema$
|
|
2735
|
-
let params = (paramsOrCallback ||
|
|
3583
|
+
): void | GaxiosPromise<Schema$Backup> | GaxiosPromise<Readable> {
|
|
3584
|
+
let params = (paramsOrCallback ||
|
|
3585
|
+
{}) as Params$Resource$Backups$Getbackup;
|
|
2736
3586
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2737
3587
|
|
|
2738
3588
|
if (typeof paramsOrCallback === 'function') {
|
|
2739
3589
|
callback = paramsOrCallback;
|
|
2740
|
-
params = {} as Params$Resource$
|
|
3590
|
+
params = {} as Params$Resource$Backups$Getbackup;
|
|
2741
3591
|
options = {};
|
|
2742
3592
|
}
|
|
2743
3593
|
|
|
@@ -2750,82 +3600,84 @@ export namespace sqladmin_v1 {
|
|
|
2750
3600
|
const parameters = {
|
|
2751
3601
|
options: Object.assign(
|
|
2752
3602
|
{
|
|
2753
|
-
url: (
|
|
2754
|
-
rootUrl +
|
|
2755
|
-
'/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
2756
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3603
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2757
3604
|
method: 'GET',
|
|
2758
3605
|
apiVersion: '',
|
|
2759
3606
|
},
|
|
2760
3607
|
options
|
|
2761
3608
|
),
|
|
2762
3609
|
params,
|
|
2763
|
-
requiredParams: ['
|
|
2764
|
-
pathParams: ['
|
|
3610
|
+
requiredParams: ['name'],
|
|
3611
|
+
pathParams: ['name'],
|
|
2765
3612
|
context: this.context,
|
|
2766
3613
|
};
|
|
2767
3614
|
if (callback) {
|
|
2768
|
-
createAPIRequest<Schema$
|
|
3615
|
+
createAPIRequest<Schema$Backup>(
|
|
2769
3616
|
parameters,
|
|
2770
3617
|
callback as BodyResponseCallback<unknown>
|
|
2771
3618
|
);
|
|
2772
3619
|
} else {
|
|
2773
|
-
return createAPIRequest<Schema$
|
|
3620
|
+
return createAPIRequest<Schema$Backup>(parameters);
|
|
2774
3621
|
}
|
|
2775
3622
|
}
|
|
2776
3623
|
|
|
2777
3624
|
/**
|
|
2778
|
-
*
|
|
3625
|
+
* Lists all backups associated with the project.
|
|
2779
3626
|
*
|
|
2780
3627
|
* @param params - Parameters for request
|
|
2781
3628
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2782
3629
|
* @param callback - Optional callback that handles the response.
|
|
2783
3630
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2784
3631
|
*/
|
|
2785
|
-
|
|
2786
|
-
params: Params$Resource$
|
|
3632
|
+
ListBackups(
|
|
3633
|
+
params: Params$Resource$Backups$Listbackups,
|
|
2787
3634
|
options: StreamMethodOptions
|
|
2788
3635
|
): GaxiosPromise<Readable>;
|
|
2789
|
-
|
|
2790
|
-
params?: Params$Resource$
|
|
3636
|
+
ListBackups(
|
|
3637
|
+
params?: Params$Resource$Backups$Listbackups,
|
|
2791
3638
|
options?: MethodOptions
|
|
2792
|
-
): GaxiosPromise<Schema$
|
|
2793
|
-
|
|
2794
|
-
params: Params$Resource$
|
|
3639
|
+
): GaxiosPromise<Schema$ListBackupsResponse>;
|
|
3640
|
+
ListBackups(
|
|
3641
|
+
params: Params$Resource$Backups$Listbackups,
|
|
2795
3642
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2796
3643
|
callback: BodyResponseCallback<Readable>
|
|
2797
3644
|
): void;
|
|
2798
|
-
|
|
2799
|
-
params: Params$Resource$
|
|
2800
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2801
|
-
callback: BodyResponseCallback<Schema$
|
|
3645
|
+
ListBackups(
|
|
3646
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3647
|
+
options: MethodOptions | BodyResponseCallback<Schema$ListBackupsResponse>,
|
|
3648
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2802
3649
|
): void;
|
|
2803
|
-
|
|
2804
|
-
params: Params$Resource$
|
|
2805
|
-
callback: BodyResponseCallback<Schema$
|
|
3650
|
+
ListBackups(
|
|
3651
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3652
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2806
3653
|
): void;
|
|
2807
|
-
|
|
2808
|
-
|
|
3654
|
+
ListBackups(
|
|
3655
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3656
|
+
): void;
|
|
3657
|
+
ListBackups(
|
|
2809
3658
|
paramsOrCallback?:
|
|
2810
|
-
| Params$Resource$
|
|
2811
|
-
| BodyResponseCallback<Schema$
|
|
3659
|
+
| Params$Resource$Backups$Listbackups
|
|
3660
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2812
3661
|
| BodyResponseCallback<Readable>,
|
|
2813
3662
|
optionsOrCallback?:
|
|
2814
3663
|
| MethodOptions
|
|
2815
3664
|
| StreamMethodOptions
|
|
2816
|
-
| BodyResponseCallback<Schema$
|
|
3665
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2817
3666
|
| BodyResponseCallback<Readable>,
|
|
2818
3667
|
callback?:
|
|
2819
|
-
| BodyResponseCallback<Schema$
|
|
3668
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2820
3669
|
| BodyResponseCallback<Readable>
|
|
2821
|
-
):
|
|
3670
|
+
):
|
|
3671
|
+
| void
|
|
3672
|
+
| GaxiosPromise<Schema$ListBackupsResponse>
|
|
3673
|
+
| GaxiosPromise<Readable> {
|
|
2822
3674
|
let params = (paramsOrCallback ||
|
|
2823
|
-
{}) as Params$Resource$
|
|
3675
|
+
{}) as Params$Resource$Backups$Listbackups;
|
|
2824
3676
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2825
3677
|
|
|
2826
3678
|
if (typeof paramsOrCallback === 'function') {
|
|
2827
3679
|
callback = paramsOrCallback;
|
|
2828
|
-
params = {} as Params$Resource$
|
|
3680
|
+
params = {} as Params$Resource$Backups$Listbackups;
|
|
2829
3681
|
options = {};
|
|
2830
3682
|
}
|
|
2831
3683
|
|
|
@@ -2838,85 +3690,82 @@ export namespace sqladmin_v1 {
|
|
|
2838
3690
|
const parameters = {
|
|
2839
3691
|
options: Object.assign(
|
|
2840
3692
|
{
|
|
2841
|
-
url: (
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
3693
|
+
url: (rootUrl + '/v1/{+parent}/backups').replace(
|
|
3694
|
+
/([^:]\/)\/+/g,
|
|
3695
|
+
'$1'
|
|
3696
|
+
),
|
|
3697
|
+
method: 'GET',
|
|
2845
3698
|
apiVersion: '',
|
|
2846
3699
|
},
|
|
2847
3700
|
options
|
|
2848
3701
|
),
|
|
2849
3702
|
params,
|
|
2850
|
-
requiredParams: ['
|
|
2851
|
-
pathParams: ['
|
|
3703
|
+
requiredParams: ['parent'],
|
|
3704
|
+
pathParams: ['parent'],
|
|
2852
3705
|
context: this.context,
|
|
2853
3706
|
};
|
|
2854
3707
|
if (callback) {
|
|
2855
|
-
createAPIRequest<Schema$
|
|
3708
|
+
createAPIRequest<Schema$ListBackupsResponse>(
|
|
2856
3709
|
parameters,
|
|
2857
3710
|
callback as BodyResponseCallback<unknown>
|
|
2858
3711
|
);
|
|
2859
3712
|
} else {
|
|
2860
|
-
return createAPIRequest<Schema$
|
|
3713
|
+
return createAPIRequest<Schema$ListBackupsResponse>(parameters);
|
|
2861
3714
|
}
|
|
2862
3715
|
}
|
|
2863
3716
|
|
|
2864
3717
|
/**
|
|
2865
|
-
*
|
|
3718
|
+
* Updates the retention period and description of the backup. You can use this API to update final backups only.
|
|
2866
3719
|
*
|
|
2867
3720
|
* @param params - Parameters for request
|
|
2868
3721
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2869
3722
|
* @param callback - Optional callback that handles the response.
|
|
2870
3723
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2871
3724
|
*/
|
|
2872
|
-
|
|
2873
|
-
params: Params$Resource$
|
|
3725
|
+
UpdateBackup(
|
|
3726
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
2874
3727
|
options: StreamMethodOptions
|
|
2875
3728
|
): GaxiosPromise<Readable>;
|
|
2876
|
-
|
|
2877
|
-
params?: Params$Resource$
|
|
3729
|
+
UpdateBackup(
|
|
3730
|
+
params?: Params$Resource$Backups$Updatebackup,
|
|
2878
3731
|
options?: MethodOptions
|
|
2879
|
-
): GaxiosPromise<Schema$
|
|
2880
|
-
|
|
2881
|
-
params: Params$Resource$
|
|
3732
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3733
|
+
UpdateBackup(
|
|
3734
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
2882
3735
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2883
3736
|
callback: BodyResponseCallback<Readable>
|
|
2884
3737
|
): void;
|
|
2885
|
-
|
|
2886
|
-
params: Params$Resource$
|
|
2887
|
-
options:
|
|
2888
|
-
|
|
2889
|
-
| BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
2890
|
-
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3738
|
+
UpdateBackup(
|
|
3739
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3740
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3741
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2891
3742
|
): void;
|
|
2892
|
-
|
|
2893
|
-
params: Params$Resource$
|
|
2894
|
-
callback: BodyResponseCallback<Schema$
|
|
3743
|
+
UpdateBackup(
|
|
3744
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3745
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2895
3746
|
): void;
|
|
2896
|
-
|
|
2897
|
-
|
|
3747
|
+
UpdateBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3748
|
+
UpdateBackup(
|
|
2898
3749
|
paramsOrCallback?:
|
|
2899
|
-
| Params$Resource$
|
|
2900
|
-
| BodyResponseCallback<Schema$
|
|
3750
|
+
| Params$Resource$Backups$Updatebackup
|
|
3751
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2901
3752
|
| BodyResponseCallback<Readable>,
|
|
2902
3753
|
optionsOrCallback?:
|
|
2903
3754
|
| MethodOptions
|
|
2904
3755
|
| StreamMethodOptions
|
|
2905
|
-
| BodyResponseCallback<Schema$
|
|
3756
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2906
3757
|
| BodyResponseCallback<Readable>,
|
|
2907
3758
|
callback?:
|
|
2908
|
-
| BodyResponseCallback<Schema$
|
|
3759
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2909
3760
|
| BodyResponseCallback<Readable>
|
|
2910
|
-
):
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
| GaxiosPromise<Readable> {
|
|
2914
|
-
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List;
|
|
3761
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3762
|
+
let params = (paramsOrCallback ||
|
|
3763
|
+
{}) as Params$Resource$Backups$Updatebackup;
|
|
2915
3764
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2916
3765
|
|
|
2917
3766
|
if (typeof paramsOrCallback === 'function') {
|
|
2918
3767
|
callback = paramsOrCallback;
|
|
2919
|
-
params = {} as Params$Resource$
|
|
3768
|
+
params = {} as Params$Resource$Backups$Updatebackup;
|
|
2920
3769
|
options = {};
|
|
2921
3770
|
}
|
|
2922
3771
|
|
|
@@ -2929,92 +3778,88 @@ export namespace sqladmin_v1 {
|
|
|
2929
3778
|
const parameters = {
|
|
2930
3779
|
options: Object.assign(
|
|
2931
3780
|
{
|
|
2932
|
-
url: (
|
|
2933
|
-
|
|
2934
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2935
|
-
method: 'GET',
|
|
3781
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3782
|
+
method: 'PATCH',
|
|
2936
3783
|
apiVersion: '',
|
|
2937
3784
|
},
|
|
2938
3785
|
options
|
|
2939
3786
|
),
|
|
2940
3787
|
params,
|
|
2941
|
-
requiredParams: ['
|
|
2942
|
-
pathParams: ['
|
|
3788
|
+
requiredParams: ['name'],
|
|
3789
|
+
pathParams: ['name'],
|
|
2943
3790
|
context: this.context,
|
|
2944
3791
|
};
|
|
2945
3792
|
if (callback) {
|
|
2946
|
-
createAPIRequest<Schema$
|
|
3793
|
+
createAPIRequest<Schema$Operation>(
|
|
2947
3794
|
parameters,
|
|
2948
3795
|
callback as BodyResponseCallback<unknown>
|
|
2949
3796
|
);
|
|
2950
3797
|
} else {
|
|
2951
|
-
return createAPIRequest<Schema$
|
|
3798
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2952
3799
|
}
|
|
2953
3800
|
}
|
|
2954
3801
|
}
|
|
2955
3802
|
|
|
2956
|
-
export interface Params$Resource$
|
|
3803
|
+
export interface Params$Resource$Backups$Createbackup
|
|
2957
3804
|
extends StandardParameters {
|
|
2958
3805
|
/**
|
|
2959
|
-
* The
|
|
2960
|
-
*/
|
|
2961
|
-
id?: string;
|
|
2962
|
-
/**
|
|
2963
|
-
* Cloud SQL instance ID. This does not include the project ID.
|
|
3806
|
+
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
2964
3807
|
*/
|
|
2965
|
-
|
|
3808
|
+
parent?: string;
|
|
3809
|
+
|
|
2966
3810
|
/**
|
|
2967
|
-
*
|
|
3811
|
+
* Request body metadata
|
|
2968
3812
|
*/
|
|
2969
|
-
|
|
3813
|
+
requestBody?: Schema$Backup;
|
|
2970
3814
|
}
|
|
2971
|
-
export interface Params$Resource$
|
|
2972
|
-
|
|
2973
|
-
* The ID of this backup run.
|
|
2974
|
-
*/
|
|
2975
|
-
id?: string;
|
|
3815
|
+
export interface Params$Resource$Backups$Deletebackup
|
|
3816
|
+
extends StandardParameters {
|
|
2976
3817
|
/**
|
|
2977
|
-
*
|
|
3818
|
+
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
2978
3819
|
*/
|
|
2979
|
-
|
|
3820
|
+
name?: string;
|
|
3821
|
+
}
|
|
3822
|
+
export interface Params$Resource$Backups$Getbackup
|
|
3823
|
+
extends StandardParameters {
|
|
2980
3824
|
/**
|
|
2981
|
-
*
|
|
3825
|
+
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
2982
3826
|
*/
|
|
2983
|
-
|
|
3827
|
+
name?: string;
|
|
2984
3828
|
}
|
|
2985
|
-
export interface Params$Resource$
|
|
3829
|
+
export interface Params$Resource$Backups$Listbackups
|
|
2986
3830
|
extends StandardParameters {
|
|
2987
3831
|
/**
|
|
2988
|
-
*
|
|
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.
|
|
2989
3833
|
*/
|
|
2990
|
-
|
|
3834
|
+
filter?: string;
|
|
2991
3835
|
/**
|
|
2992
|
-
*
|
|
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.
|
|
2993
3837
|
*/
|
|
2994
|
-
|
|
2995
|
-
|
|
3838
|
+
pageSize?: number;
|
|
2996
3839
|
/**
|
|
2997
|
-
*
|
|
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.
|
|
2998
3841
|
*/
|
|
2999
|
-
|
|
3000
|
-
}
|
|
3001
|
-
export interface Params$Resource$Backupruns$List extends StandardParameters {
|
|
3842
|
+
pageToken?: string;
|
|
3002
3843
|
/**
|
|
3003
|
-
*
|
|
3844
|
+
* Required. The parent that owns this collection of backups. Format: projects/{project\}
|
|
3004
3845
|
*/
|
|
3005
|
-
|
|
3846
|
+
parent?: string;
|
|
3847
|
+
}
|
|
3848
|
+
export interface Params$Resource$Backups$Updatebackup
|
|
3849
|
+
extends StandardParameters {
|
|
3006
3850
|
/**
|
|
3007
|
-
*
|
|
3851
|
+
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
3008
3852
|
*/
|
|
3009
|
-
|
|
3853
|
+
name?: string;
|
|
3010
3854
|
/**
|
|
3011
|
-
*
|
|
3855
|
+
* The list of fields that you can update. You can update only the description and retention period of the final backup.
|
|
3012
3856
|
*/
|
|
3013
|
-
|
|
3857
|
+
updateMask?: string;
|
|
3858
|
+
|
|
3014
3859
|
/**
|
|
3015
|
-
*
|
|
3860
|
+
* Request body metadata
|
|
3016
3861
|
*/
|
|
3017
|
-
|
|
3862
|
+
requestBody?: Schema$Backup;
|
|
3018
3863
|
}
|
|
3019
3864
|
|
|
3020
3865
|
export class Resource$Connect {
|
|
@@ -3962,6 +4807,10 @@ export namespace sqladmin_v1 {
|
|
|
3962
4807
|
* Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
|
|
3963
4808
|
*/
|
|
3964
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;
|
|
3965
4814
|
}
|
|
3966
4815
|
|
|
3967
4816
|
export class Resource$Instances {
|
|
@@ -6600,6 +7449,22 @@ export namespace sqladmin_v1 {
|
|
|
6600
7449
|
requestBody?: Schema$InstancesCloneRequest;
|
|
6601
7450
|
}
|
|
6602
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;
|
|
6603
7468
|
/**
|
|
6604
7469
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
6605
7470
|
*/
|