@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/v1beta4.ts
CHANGED
|
@@ -113,6 +113,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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 resource expired.
|
|
262
|
+
*/
|
|
263
|
+
expiryTime?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* The name of the 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. 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 state 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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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 instance.
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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
|
*/
|
|
@@ -838,7 +1044,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
838
1044
|
*/
|
|
839
1045
|
clientCertificate?: string | null;
|
|
840
1046
|
/**
|
|
841
|
-
* PEM representation of the replica's private key. The
|
|
1047
|
+
* 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.
|
|
842
1048
|
*/
|
|
843
1049
|
clientKey?: string | null;
|
|
844
1050
|
/**
|
|
@@ -897,6 +1103,23 @@ export namespace sqladmin_v1beta4 {
|
|
|
897
1103
|
*/
|
|
898
1104
|
kmsKeyVersionName?: string | null;
|
|
899
1105
|
}
|
|
1106
|
+
/**
|
|
1107
|
+
* DNS metadata.
|
|
1108
|
+
*/
|
|
1109
|
+
export interface Schema$DnsNameMapping {
|
|
1110
|
+
/**
|
|
1111
|
+
* Output only. The connection type of the DNS name.
|
|
1112
|
+
*/
|
|
1113
|
+
connectionType?: string | null;
|
|
1114
|
+
/**
|
|
1115
|
+
* Output only. The scope that the DNS name applies to.
|
|
1116
|
+
*/
|
|
1117
|
+
dnsScope?: string | null;
|
|
1118
|
+
/**
|
|
1119
|
+
* The DNS name.
|
|
1120
|
+
*/
|
|
1121
|
+
name?: string | null;
|
|
1122
|
+
}
|
|
900
1123
|
/**
|
|
901
1124
|
* 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); \}
|
|
902
1125
|
*/
|
|
@@ -928,7 +1151,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
928
1151
|
selectQuery?: string;
|
|
929
1152
|
} | null;
|
|
930
1153
|
/**
|
|
931
|
-
* 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:`
|
|
1154
|
+
* 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`.
|
|
932
1155
|
*/
|
|
933
1156
|
databases?: string[] | null;
|
|
934
1157
|
/**
|
|
@@ -954,6 +1177,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
954
1177
|
tables?: string[];
|
|
955
1178
|
threads?: number;
|
|
956
1179
|
} | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Optional. Export parameters specific to SQL Server TDE certificates
|
|
1182
|
+
*/
|
|
1183
|
+
tdeExportOptions?: {
|
|
1184
|
+
certificatePath?: string;
|
|
1185
|
+
name?: string;
|
|
1186
|
+
privateKeyPassword?: string;
|
|
1187
|
+
privateKeyPath?: string;
|
|
1188
|
+
} | null;
|
|
957
1189
|
/**
|
|
958
1190
|
* 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.
|
|
959
1191
|
*/
|
|
@@ -997,6 +1229,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
997
1229
|
* 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).
|
|
998
1230
|
*/
|
|
999
1231
|
appliesTo?: string[] | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Scope of flag.
|
|
1234
|
+
*/
|
|
1235
|
+
flagScope?: string | null;
|
|
1000
1236
|
/**
|
|
1001
1237
|
* Whether or not the flag is considered in beta.
|
|
1002
1238
|
*/
|
|
@@ -1017,6 +1253,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
1017
1253
|
* This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
|
|
1018
1254
|
*/
|
|
1019
1255
|
name?: string | null;
|
|
1256
|
+
/**
|
|
1257
|
+
* Recommended flag value in integer format for UI display.
|
|
1258
|
+
*/
|
|
1259
|
+
recommendedIntValue?: string | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Recommended flag value in string format for UI display.
|
|
1262
|
+
*/
|
|
1263
|
+
recommendedStringValue?: string | null;
|
|
1020
1264
|
/**
|
|
1021
1265
|
* Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
|
|
1022
1266
|
*/
|
|
@@ -1109,6 +1353,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1109
1353
|
bakType?: string;
|
|
1110
1354
|
encryptionOptions?: {
|
|
1111
1355
|
certPath?: string;
|
|
1356
|
+
keepEncrypted?: boolean;
|
|
1112
1357
|
pvkPassword?: string;
|
|
1113
1358
|
pvkPath?: string;
|
|
1114
1359
|
};
|
|
@@ -1130,7 +1375,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1130
1375
|
table?: string;
|
|
1131
1376
|
} | null;
|
|
1132
1377
|
/**
|
|
1133
|
-
* 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.
|
|
1378
|
+
* 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.
|
|
1134
1379
|
*/
|
|
1135
1380
|
database?: string | null;
|
|
1136
1381
|
/**
|
|
@@ -1153,6 +1398,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
1153
1398
|
postgresImportOptions?: {clean?: boolean; ifExists?: boolean};
|
|
1154
1399
|
threads?: number;
|
|
1155
1400
|
} | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates
|
|
1403
|
+
*/
|
|
1404
|
+
tdeImportOptions?: {
|
|
1405
|
+
certificatePath?: string;
|
|
1406
|
+
name?: string;
|
|
1407
|
+
privateKeyPassword?: string;
|
|
1408
|
+
privateKeyPath?: string;
|
|
1409
|
+
} | null;
|
|
1156
1410
|
/**
|
|
1157
1411
|
* 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.
|
|
1158
1412
|
*/
|
|
@@ -1332,10 +1586,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
1332
1586
|
* Database instance restore backup request.
|
|
1333
1587
|
*/
|
|
1334
1588
|
export interface Schema$InstancesRestoreBackupRequest {
|
|
1589
|
+
/**
|
|
1590
|
+
* The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id\}/backups/{backup-uid\}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
|
|
1591
|
+
*/
|
|
1592
|
+
backup?: string | null;
|
|
1335
1593
|
/**
|
|
1336
1594
|
* Parameters required to perform the restore backup operation.
|
|
1337
1595
|
*/
|
|
1338
1596
|
restoreBackupContext?: Schema$RestoreBackupContext;
|
|
1597
|
+
/**
|
|
1598
|
+
* 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.
|
|
1599
|
+
*/
|
|
1600
|
+
restoreInstanceSettings?: Schema$DatabaseInstance;
|
|
1339
1601
|
}
|
|
1340
1602
|
/**
|
|
1341
1603
|
* Rotate Server CA request.
|
|
@@ -1364,6 +1626,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
1364
1626
|
*/
|
|
1365
1627
|
truncateLogContext?: Schema$TruncateLogContext;
|
|
1366
1628
|
}
|
|
1629
|
+
/**
|
|
1630
|
+
* 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.
|
|
1631
|
+
*/
|
|
1632
|
+
export interface Schema$Interval {
|
|
1633
|
+
/**
|
|
1634
|
+
* Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
|
|
1635
|
+
*/
|
|
1636
|
+
endTime?: string | null;
|
|
1637
|
+
/**
|
|
1638
|
+
* Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
|
|
1639
|
+
*/
|
|
1640
|
+
startTime?: string | null;
|
|
1641
|
+
}
|
|
1367
1642
|
/**
|
|
1368
1643
|
* IP Management configuration.
|
|
1369
1644
|
*/
|
|
@@ -1405,7 +1680,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1405
1680
|
*/
|
|
1406
1681
|
serverCaMode?: string | null;
|
|
1407
1682
|
/**
|
|
1408
|
-
* Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects
|
|
1683
|
+
* 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\}
|
|
1409
1684
|
*/
|
|
1410
1685
|
serverCaPool?: string | null;
|
|
1411
1686
|
/**
|
|
@@ -1430,6 +1705,23 @@ export namespace sqladmin_v1beta4 {
|
|
|
1430
1705
|
*/
|
|
1431
1706
|
type?: string | null;
|
|
1432
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
* The response payload containing a list of the backups.
|
|
1710
|
+
*/
|
|
1711
|
+
export interface Schema$ListBackupsResponse {
|
|
1712
|
+
/**
|
|
1713
|
+
* A list of backups.
|
|
1714
|
+
*/
|
|
1715
|
+
backups?: Schema$Backup[];
|
|
1716
|
+
/**
|
|
1717
|
+
* 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.
|
|
1718
|
+
*/
|
|
1719
|
+
nextPageToken?: string | null;
|
|
1720
|
+
/**
|
|
1721
|
+
* If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.
|
|
1722
|
+
*/
|
|
1723
|
+
warnings?: Schema$ApiWarning[];
|
|
1724
|
+
}
|
|
1433
1725
|
/**
|
|
1434
1726
|
* 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.
|
|
1435
1727
|
*/
|
|
@@ -1485,7 +1777,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1485
1777
|
*/
|
|
1486
1778
|
clientCertificate?: string | null;
|
|
1487
1779
|
/**
|
|
1488
|
-
* PEM representation of the replica's private key. The
|
|
1780
|
+
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1489
1781
|
*/
|
|
1490
1782
|
clientKey?: string | null;
|
|
1491
1783
|
/**
|
|
@@ -1543,7 +1835,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
1543
1835
|
*/
|
|
1544
1836
|
clientCertificate?: string | null;
|
|
1545
1837
|
/**
|
|
1546
|
-
* PEM representation of the replica's private key. The
|
|
1838
|
+
* PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
|
|
1547
1839
|
*/
|
|
1548
1840
|
clientKey?: string | null;
|
|
1549
1841
|
/**
|
|
@@ -1643,6 +1935,9 @@ export namespace sqladmin_v1beta4 {
|
|
|
1643
1935
|
* Optional. The sub operation based on the operation type.
|
|
1644
1936
|
*/
|
|
1645
1937
|
subOperationType?: Schema$SqlSubOperationType;
|
|
1938
|
+
/**
|
|
1939
|
+
* Name of the resource on which this operation runs.
|
|
1940
|
+
*/
|
|
1646
1941
|
targetId?: string | null;
|
|
1647
1942
|
targetLink?: string | null;
|
|
1648
1943
|
/**
|
|
@@ -1789,6 +2084,35 @@ export namespace sqladmin_v1beta4 {
|
|
|
1789
2084
|
*/
|
|
1790
2085
|
targetSizeGb?: string | null;
|
|
1791
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Details of a single node of a read pool.
|
|
2089
|
+
*/
|
|
2090
|
+
export interface Schema$PoolNodeConfig {
|
|
2091
|
+
/**
|
|
2092
|
+
* Output only. The DNS name of the node.
|
|
2093
|
+
*/
|
|
2094
|
+
dnsName?: string | null;
|
|
2095
|
+
/**
|
|
2096
|
+
* Output only. The list of DNS names used by this node.
|
|
2097
|
+
*/
|
|
2098
|
+
dnsNames?: Schema$DnsNameMapping[];
|
|
2099
|
+
/**
|
|
2100
|
+
* Output only. The serving zone of the node.
|
|
2101
|
+
*/
|
|
2102
|
+
gceZone?: string | null;
|
|
2103
|
+
/**
|
|
2104
|
+
* Output only. Mappings containing IP addresses that can be used to connect to the node.
|
|
2105
|
+
*/
|
|
2106
|
+
ipAddresses?: Schema$IpMapping[];
|
|
2107
|
+
/**
|
|
2108
|
+
* Output only. The name of the node, to be used for retrieving metrics and logs for the node.
|
|
2109
|
+
*/
|
|
2110
|
+
name?: string | null;
|
|
2111
|
+
/**
|
|
2112
|
+
* Output only. The current state of the node.
|
|
2113
|
+
*/
|
|
2114
|
+
state?: string | null;
|
|
2115
|
+
}
|
|
1792
2116
|
/**
|
|
1793
2117
|
* Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
|
|
1794
2118
|
*/
|
|
@@ -1967,6 +2291,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1967
2291
|
* The name of server Instance collation.
|
|
1968
2292
|
*/
|
|
1969
2293
|
collation?: string | null;
|
|
2294
|
+
/**
|
|
2295
|
+
* Optional. The managed connection pooling configuration for the instance.
|
|
2296
|
+
*/
|
|
2297
|
+
connectionPoolConfig?: Schema$ConnectionPoolConfig;
|
|
1970
2298
|
/**
|
|
1971
2299
|
* 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.
|
|
1972
2300
|
*/
|
|
@@ -1987,6 +2315,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
1987
2315
|
* Configuration for data cache.
|
|
1988
2316
|
*/
|
|
1989
2317
|
dataCacheConfig?: Schema$DataCacheConfig;
|
|
2318
|
+
/**
|
|
2319
|
+
* Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
|
|
2320
|
+
*/
|
|
2321
|
+
dataDiskProvisionedIops?: string | null;
|
|
2322
|
+
/**
|
|
2323
|
+
* Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
|
|
2324
|
+
*/
|
|
2325
|
+
dataDiskProvisionedThroughput?: string | null;
|
|
1990
2326
|
/**
|
|
1991
2327
|
* The size of data disk, in GB. The data disk size minimum is 10GB.
|
|
1992
2328
|
*/
|
|
@@ -2051,6 +2387,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2051
2387
|
* The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
|
|
2052
2388
|
*/
|
|
2053
2389
|
replicationType?: string | null;
|
|
2390
|
+
/**
|
|
2391
|
+
* 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.
|
|
2392
|
+
*/
|
|
2393
|
+
retainBackupsOnDelete?: boolean | null;
|
|
2054
2394
|
/**
|
|
2055
2395
|
* 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.
|
|
2056
2396
|
*/
|
|
@@ -2590,46 +2930,560 @@ export namespace sqladmin_v1beta4 {
|
|
|
2590
2930
|
nextPageToken?: string | null;
|
|
2591
2931
|
}
|
|
2592
2932
|
|
|
2593
|
-
export class Resource$Backupruns {
|
|
2594
|
-
context: APIRequestContext;
|
|
2595
|
-
constructor(context: APIRequestContext) {
|
|
2596
|
-
this.context = context;
|
|
2933
|
+
export class Resource$Backupruns {
|
|
2934
|
+
context: APIRequestContext;
|
|
2935
|
+
constructor(context: APIRequestContext) {
|
|
2936
|
+
this.context = context;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
/**
|
|
2940
|
+
* Deletes the backup taken by a backup run.
|
|
2941
|
+
*
|
|
2942
|
+
* @param params - Parameters for request
|
|
2943
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2944
|
+
* @param callback - Optional callback that handles the response.
|
|
2945
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2946
|
+
*/
|
|
2947
|
+
delete(
|
|
2948
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2949
|
+
options: StreamMethodOptions
|
|
2950
|
+
): GaxiosPromise<Readable>;
|
|
2951
|
+
delete(
|
|
2952
|
+
params?: Params$Resource$Backupruns$Delete,
|
|
2953
|
+
options?: MethodOptions
|
|
2954
|
+
): GaxiosPromise<Schema$Operation>;
|
|
2955
|
+
delete(
|
|
2956
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2957
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2958
|
+
callback: BodyResponseCallback<Readable>
|
|
2959
|
+
): void;
|
|
2960
|
+
delete(
|
|
2961
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2962
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2963
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2964
|
+
): void;
|
|
2965
|
+
delete(
|
|
2966
|
+
params: Params$Resource$Backupruns$Delete,
|
|
2967
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2968
|
+
): void;
|
|
2969
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2970
|
+
delete(
|
|
2971
|
+
paramsOrCallback?:
|
|
2972
|
+
| Params$Resource$Backupruns$Delete
|
|
2973
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2974
|
+
| BodyResponseCallback<Readable>,
|
|
2975
|
+
optionsOrCallback?:
|
|
2976
|
+
| MethodOptions
|
|
2977
|
+
| StreamMethodOptions
|
|
2978
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2979
|
+
| BodyResponseCallback<Readable>,
|
|
2980
|
+
callback?:
|
|
2981
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2982
|
+
| BodyResponseCallback<Readable>
|
|
2983
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
2984
|
+
let params = (paramsOrCallback ||
|
|
2985
|
+
{}) as Params$Resource$Backupruns$Delete;
|
|
2986
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2987
|
+
|
|
2988
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2989
|
+
callback = paramsOrCallback;
|
|
2990
|
+
params = {} as Params$Resource$Backupruns$Delete;
|
|
2991
|
+
options = {};
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2995
|
+
callback = optionsOrCallback;
|
|
2996
|
+
options = {};
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3000
|
+
const parameters = {
|
|
3001
|
+
options: Object.assign(
|
|
3002
|
+
{
|
|
3003
|
+
url: (
|
|
3004
|
+
rootUrl +
|
|
3005
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
3006
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3007
|
+
method: 'DELETE',
|
|
3008
|
+
apiVersion: '',
|
|
3009
|
+
},
|
|
3010
|
+
options
|
|
3011
|
+
),
|
|
3012
|
+
params,
|
|
3013
|
+
requiredParams: ['project', 'instance', 'id'],
|
|
3014
|
+
pathParams: ['id', 'instance', 'project'],
|
|
3015
|
+
context: this.context,
|
|
3016
|
+
};
|
|
3017
|
+
if (callback) {
|
|
3018
|
+
createAPIRequest<Schema$Operation>(
|
|
3019
|
+
parameters,
|
|
3020
|
+
callback as BodyResponseCallback<unknown>
|
|
3021
|
+
);
|
|
3022
|
+
} else {
|
|
3023
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Retrieves a resource containing information about a backup run.
|
|
3029
|
+
*
|
|
3030
|
+
* @param params - Parameters for request
|
|
3031
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3032
|
+
* @param callback - Optional callback that handles the response.
|
|
3033
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3034
|
+
*/
|
|
3035
|
+
get(
|
|
3036
|
+
params: Params$Resource$Backupruns$Get,
|
|
3037
|
+
options: StreamMethodOptions
|
|
3038
|
+
): GaxiosPromise<Readable>;
|
|
3039
|
+
get(
|
|
3040
|
+
params?: Params$Resource$Backupruns$Get,
|
|
3041
|
+
options?: MethodOptions
|
|
3042
|
+
): GaxiosPromise<Schema$BackupRun>;
|
|
3043
|
+
get(
|
|
3044
|
+
params: Params$Resource$Backupruns$Get,
|
|
3045
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3046
|
+
callback: BodyResponseCallback<Readable>
|
|
3047
|
+
): void;
|
|
3048
|
+
get(
|
|
3049
|
+
params: Params$Resource$Backupruns$Get,
|
|
3050
|
+
options: MethodOptions | BodyResponseCallback<Schema$BackupRun>,
|
|
3051
|
+
callback: BodyResponseCallback<Schema$BackupRun>
|
|
3052
|
+
): void;
|
|
3053
|
+
get(
|
|
3054
|
+
params: Params$Resource$Backupruns$Get,
|
|
3055
|
+
callback: BodyResponseCallback<Schema$BackupRun>
|
|
3056
|
+
): void;
|
|
3057
|
+
get(callback: BodyResponseCallback<Schema$BackupRun>): void;
|
|
3058
|
+
get(
|
|
3059
|
+
paramsOrCallback?:
|
|
3060
|
+
| Params$Resource$Backupruns$Get
|
|
3061
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3062
|
+
| BodyResponseCallback<Readable>,
|
|
3063
|
+
optionsOrCallback?:
|
|
3064
|
+
| MethodOptions
|
|
3065
|
+
| StreamMethodOptions
|
|
3066
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3067
|
+
| BodyResponseCallback<Readable>,
|
|
3068
|
+
callback?:
|
|
3069
|
+
| BodyResponseCallback<Schema$BackupRun>
|
|
3070
|
+
| BodyResponseCallback<Readable>
|
|
3071
|
+
): void | GaxiosPromise<Schema$BackupRun> | GaxiosPromise<Readable> {
|
|
3072
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$Get;
|
|
3073
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3074
|
+
|
|
3075
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3076
|
+
callback = paramsOrCallback;
|
|
3077
|
+
params = {} as Params$Resource$Backupruns$Get;
|
|
3078
|
+
options = {};
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3082
|
+
callback = optionsOrCallback;
|
|
3083
|
+
options = {};
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3087
|
+
const parameters = {
|
|
3088
|
+
options: Object.assign(
|
|
3089
|
+
{
|
|
3090
|
+
url: (
|
|
3091
|
+
rootUrl +
|
|
3092
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}'
|
|
3093
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3094
|
+
method: 'GET',
|
|
3095
|
+
apiVersion: '',
|
|
3096
|
+
},
|
|
3097
|
+
options
|
|
3098
|
+
),
|
|
3099
|
+
params,
|
|
3100
|
+
requiredParams: ['project', 'instance', 'id'],
|
|
3101
|
+
pathParams: ['id', 'instance', 'project'],
|
|
3102
|
+
context: this.context,
|
|
3103
|
+
};
|
|
3104
|
+
if (callback) {
|
|
3105
|
+
createAPIRequest<Schema$BackupRun>(
|
|
3106
|
+
parameters,
|
|
3107
|
+
callback as BodyResponseCallback<unknown>
|
|
3108
|
+
);
|
|
3109
|
+
} else {
|
|
3110
|
+
return createAPIRequest<Schema$BackupRun>(parameters);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* Creates a new backup run on demand.
|
|
3116
|
+
*
|
|
3117
|
+
* @param params - Parameters for request
|
|
3118
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3119
|
+
* @param callback - Optional callback that handles the response.
|
|
3120
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3121
|
+
*/
|
|
3122
|
+
insert(
|
|
3123
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3124
|
+
options: StreamMethodOptions
|
|
3125
|
+
): GaxiosPromise<Readable>;
|
|
3126
|
+
insert(
|
|
3127
|
+
params?: Params$Resource$Backupruns$Insert,
|
|
3128
|
+
options?: MethodOptions
|
|
3129
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3130
|
+
insert(
|
|
3131
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3132
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3133
|
+
callback: BodyResponseCallback<Readable>
|
|
3134
|
+
): void;
|
|
3135
|
+
insert(
|
|
3136
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3137
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3138
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3139
|
+
): void;
|
|
3140
|
+
insert(
|
|
3141
|
+
params: Params$Resource$Backupruns$Insert,
|
|
3142
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3143
|
+
): void;
|
|
3144
|
+
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3145
|
+
insert(
|
|
3146
|
+
paramsOrCallback?:
|
|
3147
|
+
| Params$Resource$Backupruns$Insert
|
|
3148
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3149
|
+
| BodyResponseCallback<Readable>,
|
|
3150
|
+
optionsOrCallback?:
|
|
3151
|
+
| MethodOptions
|
|
3152
|
+
| StreamMethodOptions
|
|
3153
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3154
|
+
| BodyResponseCallback<Readable>,
|
|
3155
|
+
callback?:
|
|
3156
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3157
|
+
| BodyResponseCallback<Readable>
|
|
3158
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3159
|
+
let params = (paramsOrCallback ||
|
|
3160
|
+
{}) as Params$Resource$Backupruns$Insert;
|
|
3161
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3162
|
+
|
|
3163
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3164
|
+
callback = paramsOrCallback;
|
|
3165
|
+
params = {} as Params$Resource$Backupruns$Insert;
|
|
3166
|
+
options = {};
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3170
|
+
callback = optionsOrCallback;
|
|
3171
|
+
options = {};
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3175
|
+
const parameters = {
|
|
3176
|
+
options: Object.assign(
|
|
3177
|
+
{
|
|
3178
|
+
url: (
|
|
3179
|
+
rootUrl +
|
|
3180
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns'
|
|
3181
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3182
|
+
method: 'POST',
|
|
3183
|
+
apiVersion: '',
|
|
3184
|
+
},
|
|
3185
|
+
options
|
|
3186
|
+
),
|
|
3187
|
+
params,
|
|
3188
|
+
requiredParams: ['project', 'instance'],
|
|
3189
|
+
pathParams: ['instance', 'project'],
|
|
3190
|
+
context: this.context,
|
|
3191
|
+
};
|
|
3192
|
+
if (callback) {
|
|
3193
|
+
createAPIRequest<Schema$Operation>(
|
|
3194
|
+
parameters,
|
|
3195
|
+
callback as BodyResponseCallback<unknown>
|
|
3196
|
+
);
|
|
3197
|
+
} else {
|
|
3198
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
|
|
3204
|
+
*
|
|
3205
|
+
* @param params - Parameters for request
|
|
3206
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3207
|
+
* @param callback - Optional callback that handles the response.
|
|
3208
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3209
|
+
*/
|
|
3210
|
+
list(
|
|
3211
|
+
params: Params$Resource$Backupruns$List,
|
|
3212
|
+
options: StreamMethodOptions
|
|
3213
|
+
): GaxiosPromise<Readable>;
|
|
3214
|
+
list(
|
|
3215
|
+
params?: Params$Resource$Backupruns$List,
|
|
3216
|
+
options?: MethodOptions
|
|
3217
|
+
): GaxiosPromise<Schema$BackupRunsListResponse>;
|
|
3218
|
+
list(
|
|
3219
|
+
params: Params$Resource$Backupruns$List,
|
|
3220
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3221
|
+
callback: BodyResponseCallback<Readable>
|
|
3222
|
+
): void;
|
|
3223
|
+
list(
|
|
3224
|
+
params: Params$Resource$Backupruns$List,
|
|
3225
|
+
options:
|
|
3226
|
+
| MethodOptions
|
|
3227
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
3228
|
+
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3229
|
+
): void;
|
|
3230
|
+
list(
|
|
3231
|
+
params: Params$Resource$Backupruns$List,
|
|
3232
|
+
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3233
|
+
): void;
|
|
3234
|
+
list(callback: BodyResponseCallback<Schema$BackupRunsListResponse>): void;
|
|
3235
|
+
list(
|
|
3236
|
+
paramsOrCallback?:
|
|
3237
|
+
| Params$Resource$Backupruns$List
|
|
3238
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3239
|
+
| BodyResponseCallback<Readable>,
|
|
3240
|
+
optionsOrCallback?:
|
|
3241
|
+
| MethodOptions
|
|
3242
|
+
| StreamMethodOptions
|
|
3243
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3244
|
+
| BodyResponseCallback<Readable>,
|
|
3245
|
+
callback?:
|
|
3246
|
+
| BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3247
|
+
| BodyResponseCallback<Readable>
|
|
3248
|
+
):
|
|
3249
|
+
| void
|
|
3250
|
+
| GaxiosPromise<Schema$BackupRunsListResponse>
|
|
3251
|
+
| GaxiosPromise<Readable> {
|
|
3252
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List;
|
|
3253
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3254
|
+
|
|
3255
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3256
|
+
callback = paramsOrCallback;
|
|
3257
|
+
params = {} as Params$Resource$Backupruns$List;
|
|
3258
|
+
options = {};
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3262
|
+
callback = optionsOrCallback;
|
|
3263
|
+
options = {};
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3267
|
+
const parameters = {
|
|
3268
|
+
options: Object.assign(
|
|
3269
|
+
{
|
|
3270
|
+
url: (
|
|
3271
|
+
rootUrl +
|
|
3272
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns'
|
|
3273
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
3274
|
+
method: 'GET',
|
|
3275
|
+
apiVersion: '',
|
|
3276
|
+
},
|
|
3277
|
+
options
|
|
3278
|
+
),
|
|
3279
|
+
params,
|
|
3280
|
+
requiredParams: ['project', 'instance'],
|
|
3281
|
+
pathParams: ['instance', 'project'],
|
|
3282
|
+
context: this.context,
|
|
3283
|
+
};
|
|
3284
|
+
if (callback) {
|
|
3285
|
+
createAPIRequest<Schema$BackupRunsListResponse>(
|
|
3286
|
+
parameters,
|
|
3287
|
+
callback as BodyResponseCallback<unknown>
|
|
3288
|
+
);
|
|
3289
|
+
} else {
|
|
3290
|
+
return createAPIRequest<Schema$BackupRunsListResponse>(parameters);
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
export interface Params$Resource$Backupruns$Delete
|
|
3296
|
+
extends StandardParameters {
|
|
3297
|
+
/**
|
|
3298
|
+
* 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/v1beta4/backupRuns/list) method.
|
|
3299
|
+
*/
|
|
3300
|
+
id?: string;
|
|
3301
|
+
/**
|
|
3302
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3303
|
+
*/
|
|
3304
|
+
instance?: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* Project ID of the project that contains the instance.
|
|
3307
|
+
*/
|
|
3308
|
+
project?: string;
|
|
3309
|
+
}
|
|
3310
|
+
export interface Params$Resource$Backupruns$Get extends StandardParameters {
|
|
3311
|
+
/**
|
|
3312
|
+
* The ID of this backup run.
|
|
3313
|
+
*/
|
|
3314
|
+
id?: string;
|
|
3315
|
+
/**
|
|
3316
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3317
|
+
*/
|
|
3318
|
+
instance?: string;
|
|
3319
|
+
/**
|
|
3320
|
+
* Project ID of the project that contains the instance.
|
|
3321
|
+
*/
|
|
3322
|
+
project?: string;
|
|
3323
|
+
}
|
|
3324
|
+
export interface Params$Resource$Backupruns$Insert
|
|
3325
|
+
extends StandardParameters {
|
|
3326
|
+
/**
|
|
3327
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
3328
|
+
*/
|
|
3329
|
+
instance?: string;
|
|
3330
|
+
/**
|
|
3331
|
+
* Project ID of the project that contains the instance.
|
|
3332
|
+
*/
|
|
3333
|
+
project?: string;
|
|
3334
|
+
|
|
3335
|
+
/**
|
|
3336
|
+
* Request body metadata
|
|
3337
|
+
*/
|
|
3338
|
+
requestBody?: Schema$BackupRun;
|
|
3339
|
+
}
|
|
3340
|
+
export interface Params$Resource$Backupruns$List extends StandardParameters {
|
|
3341
|
+
/**
|
|
3342
|
+
* Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.
|
|
3343
|
+
*/
|
|
3344
|
+
instance?: string;
|
|
3345
|
+
/**
|
|
3346
|
+
* Maximum number of backup runs per response.
|
|
3347
|
+
*/
|
|
3348
|
+
maxResults?: number;
|
|
3349
|
+
/**
|
|
3350
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
3351
|
+
*/
|
|
3352
|
+
pageToken?: string;
|
|
3353
|
+
/**
|
|
3354
|
+
* Project ID of the project that contains the instance.
|
|
3355
|
+
*/
|
|
3356
|
+
project?: string;
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
export class Resource$Backups {
|
|
3360
|
+
context: APIRequestContext;
|
|
3361
|
+
constructor(context: APIRequestContext) {
|
|
3362
|
+
this.context = context;
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
/**
|
|
3366
|
+
* Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
|
|
3367
|
+
*
|
|
3368
|
+
* @param params - Parameters for request
|
|
3369
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3370
|
+
* @param callback - Optional callback that handles the response.
|
|
3371
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3372
|
+
*/
|
|
3373
|
+
createBackup(
|
|
3374
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3375
|
+
options: StreamMethodOptions
|
|
3376
|
+
): GaxiosPromise<Readable>;
|
|
3377
|
+
createBackup(
|
|
3378
|
+
params?: Params$Resource$Backups$Createbackup,
|
|
3379
|
+
options?: MethodOptions
|
|
3380
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3381
|
+
createBackup(
|
|
3382
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3383
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3384
|
+
callback: BodyResponseCallback<Readable>
|
|
3385
|
+
): void;
|
|
3386
|
+
createBackup(
|
|
3387
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3388
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3389
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3390
|
+
): void;
|
|
3391
|
+
createBackup(
|
|
3392
|
+
params: Params$Resource$Backups$Createbackup,
|
|
3393
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3394
|
+
): void;
|
|
3395
|
+
createBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3396
|
+
createBackup(
|
|
3397
|
+
paramsOrCallback?:
|
|
3398
|
+
| Params$Resource$Backups$Createbackup
|
|
3399
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3400
|
+
| BodyResponseCallback<Readable>,
|
|
3401
|
+
optionsOrCallback?:
|
|
3402
|
+
| MethodOptions
|
|
3403
|
+
| StreamMethodOptions
|
|
3404
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3405
|
+
| BodyResponseCallback<Readable>,
|
|
3406
|
+
callback?:
|
|
3407
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3408
|
+
| BodyResponseCallback<Readable>
|
|
3409
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3410
|
+
let params = (paramsOrCallback ||
|
|
3411
|
+
{}) as Params$Resource$Backups$Createbackup;
|
|
3412
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3413
|
+
|
|
3414
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3415
|
+
callback = paramsOrCallback;
|
|
3416
|
+
params = {} as Params$Resource$Backups$Createbackup;
|
|
3417
|
+
options = {};
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3421
|
+
callback = optionsOrCallback;
|
|
3422
|
+
options = {};
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
3426
|
+
const parameters = {
|
|
3427
|
+
options: Object.assign(
|
|
3428
|
+
{
|
|
3429
|
+
url: (rootUrl + '/sql/v1beta4/{+parent}/backups').replace(
|
|
3430
|
+
/([^:]\/)\/+/g,
|
|
3431
|
+
'$1'
|
|
3432
|
+
),
|
|
3433
|
+
method: 'POST',
|
|
3434
|
+
apiVersion: '',
|
|
3435
|
+
},
|
|
3436
|
+
options
|
|
3437
|
+
),
|
|
3438
|
+
params,
|
|
3439
|
+
requiredParams: ['parent'],
|
|
3440
|
+
pathParams: ['parent'],
|
|
3441
|
+
context: this.context,
|
|
3442
|
+
};
|
|
3443
|
+
if (callback) {
|
|
3444
|
+
createAPIRequest<Schema$Operation>(
|
|
3445
|
+
parameters,
|
|
3446
|
+
callback as BodyResponseCallback<unknown>
|
|
3447
|
+
);
|
|
3448
|
+
} else {
|
|
3449
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3450
|
+
}
|
|
2597
3451
|
}
|
|
2598
3452
|
|
|
2599
3453
|
/**
|
|
2600
|
-
* Deletes the backup
|
|
3454
|
+
* Deletes the backup.
|
|
2601
3455
|
*
|
|
2602
3456
|
* @param params - Parameters for request
|
|
2603
3457
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2604
3458
|
* @param callback - Optional callback that handles the response.
|
|
2605
3459
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2606
3460
|
*/
|
|
2607
|
-
|
|
2608
|
-
params: Params$Resource$
|
|
3461
|
+
deleteBackup(
|
|
3462
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2609
3463
|
options: StreamMethodOptions
|
|
2610
3464
|
): GaxiosPromise<Readable>;
|
|
2611
|
-
|
|
2612
|
-
params?: Params$Resource$
|
|
3465
|
+
deleteBackup(
|
|
3466
|
+
params?: Params$Resource$Backups$Deletebackup,
|
|
2613
3467
|
options?: MethodOptions
|
|
2614
3468
|
): GaxiosPromise<Schema$Operation>;
|
|
2615
|
-
|
|
2616
|
-
params: Params$Resource$
|
|
3469
|
+
deleteBackup(
|
|
3470
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2617
3471
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2618
3472
|
callback: BodyResponseCallback<Readable>
|
|
2619
3473
|
): void;
|
|
2620
|
-
|
|
2621
|
-
params: Params$Resource$
|
|
3474
|
+
deleteBackup(
|
|
3475
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2622
3476
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2623
3477
|
callback: BodyResponseCallback<Schema$Operation>
|
|
2624
3478
|
): void;
|
|
2625
|
-
|
|
2626
|
-
params: Params$Resource$
|
|
3479
|
+
deleteBackup(
|
|
3480
|
+
params: Params$Resource$Backups$Deletebackup,
|
|
2627
3481
|
callback: BodyResponseCallback<Schema$Operation>
|
|
2628
3482
|
): void;
|
|
2629
|
-
|
|
2630
|
-
|
|
3483
|
+
deleteBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3484
|
+
deleteBackup(
|
|
2631
3485
|
paramsOrCallback?:
|
|
2632
|
-
| Params$Resource$
|
|
3486
|
+
| Params$Resource$Backups$Deletebackup
|
|
2633
3487
|
| BodyResponseCallback<Schema$Operation>
|
|
2634
3488
|
| BodyResponseCallback<Readable>,
|
|
2635
3489
|
optionsOrCallback?:
|
|
@@ -2642,12 +3496,12 @@ export namespace sqladmin_v1beta4 {
|
|
|
2642
3496
|
| BodyResponseCallback<Readable>
|
|
2643
3497
|
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
2644
3498
|
let params = (paramsOrCallback ||
|
|
2645
|
-
{}) as Params$Resource$
|
|
3499
|
+
{}) as Params$Resource$Backups$Deletebackup;
|
|
2646
3500
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2647
3501
|
|
|
2648
3502
|
if (typeof paramsOrCallback === 'function') {
|
|
2649
3503
|
callback = paramsOrCallback;
|
|
2650
|
-
params = {} as Params$Resource$
|
|
3504
|
+
params = {} as Params$Resource$Backups$Deletebackup;
|
|
2651
3505
|
options = {};
|
|
2652
3506
|
}
|
|
2653
3507
|
|
|
@@ -2660,18 +3514,18 @@ export namespace sqladmin_v1beta4 {
|
|
|
2660
3514
|
const parameters = {
|
|
2661
3515
|
options: Object.assign(
|
|
2662
3516
|
{
|
|
2663
|
-
url: (
|
|
2664
|
-
|
|
2665
|
-
'
|
|
2666
|
-
)
|
|
3517
|
+
url: (rootUrl + '/sql/v1beta4/{+name}').replace(
|
|
3518
|
+
/([^:]\/)\/+/g,
|
|
3519
|
+
'$1'
|
|
3520
|
+
),
|
|
2667
3521
|
method: 'DELETE',
|
|
2668
3522
|
apiVersion: '',
|
|
2669
3523
|
},
|
|
2670
3524
|
options
|
|
2671
3525
|
),
|
|
2672
3526
|
params,
|
|
2673
|
-
requiredParams: ['
|
|
2674
|
-
pathParams: ['
|
|
3527
|
+
requiredParams: ['name'],
|
|
3528
|
+
pathParams: ['name'],
|
|
2675
3529
|
context: this.context,
|
|
2676
3530
|
};
|
|
2677
3531
|
if (callback) {
|
|
@@ -2685,56 +3539,57 @@ export namespace sqladmin_v1beta4 {
|
|
|
2685
3539
|
}
|
|
2686
3540
|
|
|
2687
3541
|
/**
|
|
2688
|
-
* Retrieves a resource containing information about a backup
|
|
3542
|
+
* Retrieves a resource containing information about a backup.
|
|
2689
3543
|
*
|
|
2690
3544
|
* @param params - Parameters for request
|
|
2691
3545
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2692
3546
|
* @param callback - Optional callback that handles the response.
|
|
2693
3547
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2694
3548
|
*/
|
|
2695
|
-
|
|
2696
|
-
params: Params$Resource$
|
|
3549
|
+
getBackup(
|
|
3550
|
+
params: Params$Resource$Backups$Getbackup,
|
|
2697
3551
|
options: StreamMethodOptions
|
|
2698
3552
|
): GaxiosPromise<Readable>;
|
|
2699
|
-
|
|
2700
|
-
params?: Params$Resource$
|
|
3553
|
+
getBackup(
|
|
3554
|
+
params?: Params$Resource$Backups$Getbackup,
|
|
2701
3555
|
options?: MethodOptions
|
|
2702
|
-
): GaxiosPromise<Schema$
|
|
2703
|
-
|
|
2704
|
-
params: Params$Resource$
|
|
3556
|
+
): GaxiosPromise<Schema$Backup>;
|
|
3557
|
+
getBackup(
|
|
3558
|
+
params: Params$Resource$Backups$Getbackup,
|
|
2705
3559
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2706
3560
|
callback: BodyResponseCallback<Readable>
|
|
2707
3561
|
): void;
|
|
2708
|
-
|
|
2709
|
-
params: Params$Resource$
|
|
2710
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2711
|
-
callback: BodyResponseCallback<Schema$
|
|
3562
|
+
getBackup(
|
|
3563
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3564
|
+
options: MethodOptions | BodyResponseCallback<Schema$Backup>,
|
|
3565
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
2712
3566
|
): void;
|
|
2713
|
-
|
|
2714
|
-
params: Params$Resource$
|
|
2715
|
-
callback: BodyResponseCallback<Schema$
|
|
3567
|
+
getBackup(
|
|
3568
|
+
params: Params$Resource$Backups$Getbackup,
|
|
3569
|
+
callback: BodyResponseCallback<Schema$Backup>
|
|
2716
3570
|
): void;
|
|
2717
|
-
|
|
2718
|
-
|
|
3571
|
+
getBackup(callback: BodyResponseCallback<Schema$Backup>): void;
|
|
3572
|
+
getBackup(
|
|
2719
3573
|
paramsOrCallback?:
|
|
2720
|
-
| Params$Resource$
|
|
2721
|
-
| BodyResponseCallback<Schema$
|
|
3574
|
+
| Params$Resource$Backups$Getbackup
|
|
3575
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2722
3576
|
| BodyResponseCallback<Readable>,
|
|
2723
3577
|
optionsOrCallback?:
|
|
2724
3578
|
| MethodOptions
|
|
2725
3579
|
| StreamMethodOptions
|
|
2726
|
-
| BodyResponseCallback<Schema$
|
|
3580
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2727
3581
|
| BodyResponseCallback<Readable>,
|
|
2728
3582
|
callback?:
|
|
2729
|
-
| BodyResponseCallback<Schema$
|
|
3583
|
+
| BodyResponseCallback<Schema$Backup>
|
|
2730
3584
|
| BodyResponseCallback<Readable>
|
|
2731
|
-
): void | GaxiosPromise<Schema$
|
|
2732
|
-
let params = (paramsOrCallback ||
|
|
3585
|
+
): void | GaxiosPromise<Schema$Backup> | GaxiosPromise<Readable> {
|
|
3586
|
+
let params = (paramsOrCallback ||
|
|
3587
|
+
{}) as Params$Resource$Backups$Getbackup;
|
|
2733
3588
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2734
3589
|
|
|
2735
3590
|
if (typeof paramsOrCallback === 'function') {
|
|
2736
3591
|
callback = paramsOrCallback;
|
|
2737
|
-
params = {} as Params$Resource$
|
|
3592
|
+
params = {} as Params$Resource$Backups$Getbackup;
|
|
2738
3593
|
options = {};
|
|
2739
3594
|
}
|
|
2740
3595
|
|
|
@@ -2747,82 +3602,87 @@ export namespace sqladmin_v1beta4 {
|
|
|
2747
3602
|
const parameters = {
|
|
2748
3603
|
options: Object.assign(
|
|
2749
3604
|
{
|
|
2750
|
-
url: (
|
|
2751
|
-
|
|
2752
|
-
'
|
|
2753
|
-
)
|
|
3605
|
+
url: (rootUrl + '/sql/v1beta4/{+name}').replace(
|
|
3606
|
+
/([^:]\/)\/+/g,
|
|
3607
|
+
'$1'
|
|
3608
|
+
),
|
|
2754
3609
|
method: 'GET',
|
|
2755
3610
|
apiVersion: '',
|
|
2756
3611
|
},
|
|
2757
3612
|
options
|
|
2758
3613
|
),
|
|
2759
3614
|
params,
|
|
2760
|
-
requiredParams: ['
|
|
2761
|
-
pathParams: ['
|
|
3615
|
+
requiredParams: ['name'],
|
|
3616
|
+
pathParams: ['name'],
|
|
2762
3617
|
context: this.context,
|
|
2763
3618
|
};
|
|
2764
3619
|
if (callback) {
|
|
2765
|
-
createAPIRequest<Schema$
|
|
3620
|
+
createAPIRequest<Schema$Backup>(
|
|
2766
3621
|
parameters,
|
|
2767
3622
|
callback as BodyResponseCallback<unknown>
|
|
2768
3623
|
);
|
|
2769
3624
|
} else {
|
|
2770
|
-
return createAPIRequest<Schema$
|
|
3625
|
+
return createAPIRequest<Schema$Backup>(parameters);
|
|
2771
3626
|
}
|
|
2772
3627
|
}
|
|
2773
3628
|
|
|
2774
3629
|
/**
|
|
2775
|
-
*
|
|
3630
|
+
* Lists all backups associated with the project.
|
|
2776
3631
|
*
|
|
2777
3632
|
* @param params - Parameters for request
|
|
2778
3633
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2779
3634
|
* @param callback - Optional callback that handles the response.
|
|
2780
3635
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2781
3636
|
*/
|
|
2782
|
-
|
|
2783
|
-
params: Params$Resource$
|
|
3637
|
+
listBackups(
|
|
3638
|
+
params: Params$Resource$Backups$Listbackups,
|
|
2784
3639
|
options: StreamMethodOptions
|
|
2785
3640
|
): GaxiosPromise<Readable>;
|
|
2786
|
-
|
|
2787
|
-
params?: Params$Resource$
|
|
3641
|
+
listBackups(
|
|
3642
|
+
params?: Params$Resource$Backups$Listbackups,
|
|
2788
3643
|
options?: MethodOptions
|
|
2789
|
-
): GaxiosPromise<Schema$
|
|
2790
|
-
|
|
2791
|
-
params: Params$Resource$
|
|
3644
|
+
): GaxiosPromise<Schema$ListBackupsResponse>;
|
|
3645
|
+
listBackups(
|
|
3646
|
+
params: Params$Resource$Backups$Listbackups,
|
|
2792
3647
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2793
3648
|
callback: BodyResponseCallback<Readable>
|
|
2794
3649
|
): void;
|
|
2795
|
-
|
|
2796
|
-
params: Params$Resource$
|
|
2797
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2798
|
-
callback: BodyResponseCallback<Schema$
|
|
3650
|
+
listBackups(
|
|
3651
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3652
|
+
options: MethodOptions | BodyResponseCallback<Schema$ListBackupsResponse>,
|
|
3653
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2799
3654
|
): void;
|
|
2800
|
-
|
|
2801
|
-
params: Params$Resource$
|
|
2802
|
-
callback: BodyResponseCallback<Schema$
|
|
3655
|
+
listBackups(
|
|
3656
|
+
params: Params$Resource$Backups$Listbackups,
|
|
3657
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2803
3658
|
): void;
|
|
2804
|
-
|
|
2805
|
-
|
|
3659
|
+
listBackups(
|
|
3660
|
+
callback: BodyResponseCallback<Schema$ListBackupsResponse>
|
|
3661
|
+
): void;
|
|
3662
|
+
listBackups(
|
|
2806
3663
|
paramsOrCallback?:
|
|
2807
|
-
| Params$Resource$
|
|
2808
|
-
| BodyResponseCallback<Schema$
|
|
3664
|
+
| Params$Resource$Backups$Listbackups
|
|
3665
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2809
3666
|
| BodyResponseCallback<Readable>,
|
|
2810
3667
|
optionsOrCallback?:
|
|
2811
3668
|
| MethodOptions
|
|
2812
3669
|
| StreamMethodOptions
|
|
2813
|
-
| BodyResponseCallback<Schema$
|
|
3670
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2814
3671
|
| BodyResponseCallback<Readable>,
|
|
2815
3672
|
callback?:
|
|
2816
|
-
| BodyResponseCallback<Schema$
|
|
3673
|
+
| BodyResponseCallback<Schema$ListBackupsResponse>
|
|
2817
3674
|
| BodyResponseCallback<Readable>
|
|
2818
|
-
):
|
|
3675
|
+
):
|
|
3676
|
+
| void
|
|
3677
|
+
| GaxiosPromise<Schema$ListBackupsResponse>
|
|
3678
|
+
| GaxiosPromise<Readable> {
|
|
2819
3679
|
let params = (paramsOrCallback ||
|
|
2820
|
-
{}) as Params$Resource$
|
|
3680
|
+
{}) as Params$Resource$Backups$Listbackups;
|
|
2821
3681
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2822
3682
|
|
|
2823
3683
|
if (typeof paramsOrCallback === 'function') {
|
|
2824
3684
|
callback = paramsOrCallback;
|
|
2825
|
-
params = {} as Params$Resource$
|
|
3685
|
+
params = {} as Params$Resource$Backups$Listbackups;
|
|
2826
3686
|
options = {};
|
|
2827
3687
|
}
|
|
2828
3688
|
|
|
@@ -2835,86 +3695,82 @@ export namespace sqladmin_v1beta4 {
|
|
|
2835
3695
|
const parameters = {
|
|
2836
3696
|
options: Object.assign(
|
|
2837
3697
|
{
|
|
2838
|
-
url: (
|
|
2839
|
-
|
|
2840
|
-
'
|
|
2841
|
-
)
|
|
2842
|
-
method: '
|
|
3698
|
+
url: (rootUrl + '/sql/v1beta4/{+parent}/backups').replace(
|
|
3699
|
+
/([^:]\/)\/+/g,
|
|
3700
|
+
'$1'
|
|
3701
|
+
),
|
|
3702
|
+
method: 'GET',
|
|
2843
3703
|
apiVersion: '',
|
|
2844
3704
|
},
|
|
2845
3705
|
options
|
|
2846
3706
|
),
|
|
2847
3707
|
params,
|
|
2848
|
-
requiredParams: ['
|
|
2849
|
-
pathParams: ['
|
|
3708
|
+
requiredParams: ['parent'],
|
|
3709
|
+
pathParams: ['parent'],
|
|
2850
3710
|
context: this.context,
|
|
2851
3711
|
};
|
|
2852
3712
|
if (callback) {
|
|
2853
|
-
createAPIRequest<Schema$
|
|
3713
|
+
createAPIRequest<Schema$ListBackupsResponse>(
|
|
2854
3714
|
parameters,
|
|
2855
3715
|
callback as BodyResponseCallback<unknown>
|
|
2856
3716
|
);
|
|
2857
3717
|
} else {
|
|
2858
|
-
return createAPIRequest<Schema$
|
|
3718
|
+
return createAPIRequest<Schema$ListBackupsResponse>(parameters);
|
|
2859
3719
|
}
|
|
2860
3720
|
}
|
|
2861
3721
|
|
|
2862
3722
|
/**
|
|
2863
|
-
*
|
|
3723
|
+
* Updates the retention period and the description of the backup. You can use this API to update final backups only.
|
|
2864
3724
|
*
|
|
2865
3725
|
* @param params - Parameters for request
|
|
2866
3726
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2867
3727
|
* @param callback - Optional callback that handles the response.
|
|
2868
3728
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2869
3729
|
*/
|
|
2870
|
-
|
|
2871
|
-
params: Params$Resource$
|
|
3730
|
+
updateBackup(
|
|
3731
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
2872
3732
|
options: StreamMethodOptions
|
|
2873
3733
|
): GaxiosPromise<Readable>;
|
|
2874
|
-
|
|
2875
|
-
params?: Params$Resource$
|
|
3734
|
+
updateBackup(
|
|
3735
|
+
params?: Params$Resource$Backups$Updatebackup,
|
|
2876
3736
|
options?: MethodOptions
|
|
2877
|
-
): GaxiosPromise<Schema$
|
|
2878
|
-
|
|
2879
|
-
params: Params$Resource$
|
|
3737
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3738
|
+
updateBackup(
|
|
3739
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
2880
3740
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2881
3741
|
callback: BodyResponseCallback<Readable>
|
|
2882
3742
|
): void;
|
|
2883
|
-
|
|
2884
|
-
params: Params$Resource$
|
|
2885
|
-
options:
|
|
2886
|
-
|
|
2887
|
-
| BodyResponseCallback<Schema$BackupRunsListResponse>,
|
|
2888
|
-
callback: BodyResponseCallback<Schema$BackupRunsListResponse>
|
|
3743
|
+
updateBackup(
|
|
3744
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3745
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3746
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2889
3747
|
): void;
|
|
2890
|
-
|
|
2891
|
-
params: Params$Resource$
|
|
2892
|
-
callback: BodyResponseCallback<Schema$
|
|
3748
|
+
updateBackup(
|
|
3749
|
+
params: Params$Resource$Backups$Updatebackup,
|
|
3750
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2893
3751
|
): void;
|
|
2894
|
-
|
|
2895
|
-
|
|
3752
|
+
updateBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3753
|
+
updateBackup(
|
|
2896
3754
|
paramsOrCallback?:
|
|
2897
|
-
| Params$Resource$
|
|
2898
|
-
| BodyResponseCallback<Schema$
|
|
3755
|
+
| Params$Resource$Backups$Updatebackup
|
|
3756
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2899
3757
|
| BodyResponseCallback<Readable>,
|
|
2900
3758
|
optionsOrCallback?:
|
|
2901
3759
|
| MethodOptions
|
|
2902
3760
|
| StreamMethodOptions
|
|
2903
|
-
| BodyResponseCallback<Schema$
|
|
3761
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2904
3762
|
| BodyResponseCallback<Readable>,
|
|
2905
3763
|
callback?:
|
|
2906
|
-
| BodyResponseCallback<Schema$
|
|
3764
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2907
3765
|
| BodyResponseCallback<Readable>
|
|
2908
|
-
):
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
| GaxiosPromise<Readable> {
|
|
2912
|
-
let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List;
|
|
3766
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3767
|
+
let params = (paramsOrCallback ||
|
|
3768
|
+
{}) as Params$Resource$Backups$Updatebackup;
|
|
2913
3769
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2914
3770
|
|
|
2915
3771
|
if (typeof paramsOrCallback === 'function') {
|
|
2916
3772
|
callback = paramsOrCallback;
|
|
2917
|
-
params = {} as Params$Resource$
|
|
3773
|
+
params = {} as Params$Resource$Backups$Updatebackup;
|
|
2918
3774
|
options = {};
|
|
2919
3775
|
}
|
|
2920
3776
|
|
|
@@ -2927,93 +3783,91 @@ export namespace sqladmin_v1beta4 {
|
|
|
2927
3783
|
const parameters = {
|
|
2928
3784
|
options: Object.assign(
|
|
2929
3785
|
{
|
|
2930
|
-
url: (
|
|
2931
|
-
|
|
2932
|
-
'
|
|
2933
|
-
)
|
|
2934
|
-
method: '
|
|
3786
|
+
url: (rootUrl + '/sql/v1beta4/{+name}').replace(
|
|
3787
|
+
/([^:]\/)\/+/g,
|
|
3788
|
+
'$1'
|
|
3789
|
+
),
|
|
3790
|
+
method: 'PATCH',
|
|
2935
3791
|
apiVersion: '',
|
|
2936
3792
|
},
|
|
2937
3793
|
options
|
|
2938
3794
|
),
|
|
2939
3795
|
params,
|
|
2940
|
-
requiredParams: ['
|
|
2941
|
-
pathParams: ['
|
|
3796
|
+
requiredParams: ['name'],
|
|
3797
|
+
pathParams: ['name'],
|
|
2942
3798
|
context: this.context,
|
|
2943
3799
|
};
|
|
2944
3800
|
if (callback) {
|
|
2945
|
-
createAPIRequest<Schema$
|
|
3801
|
+
createAPIRequest<Schema$Operation>(
|
|
2946
3802
|
parameters,
|
|
2947
3803
|
callback as BodyResponseCallback<unknown>
|
|
2948
3804
|
);
|
|
2949
3805
|
} else {
|
|
2950
|
-
return createAPIRequest<Schema$
|
|
3806
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2951
3807
|
}
|
|
2952
3808
|
}
|
|
2953
3809
|
}
|
|
2954
3810
|
|
|
2955
|
-
export interface Params$Resource$
|
|
3811
|
+
export interface Params$Resource$Backups$Createbackup
|
|
2956
3812
|
extends StandardParameters {
|
|
2957
3813
|
/**
|
|
2958
|
-
* The
|
|
2959
|
-
*/
|
|
2960
|
-
id?: string;
|
|
2961
|
-
/**
|
|
2962
|
-
* Cloud SQL instance ID. This does not include the project ID.
|
|
3814
|
+
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
2963
3815
|
*/
|
|
2964
|
-
|
|
3816
|
+
parent?: string;
|
|
3817
|
+
|
|
2965
3818
|
/**
|
|
2966
|
-
*
|
|
3819
|
+
* Request body metadata
|
|
2967
3820
|
*/
|
|
2968
|
-
|
|
3821
|
+
requestBody?: Schema$Backup;
|
|
2969
3822
|
}
|
|
2970
|
-
export interface Params$Resource$
|
|
2971
|
-
|
|
2972
|
-
* The ID of this backup run.
|
|
2973
|
-
*/
|
|
2974
|
-
id?: string;
|
|
3823
|
+
export interface Params$Resource$Backups$Deletebackup
|
|
3824
|
+
extends StandardParameters {
|
|
2975
3825
|
/**
|
|
2976
|
-
*
|
|
3826
|
+
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
2977
3827
|
*/
|
|
2978
|
-
|
|
3828
|
+
name?: string;
|
|
3829
|
+
}
|
|
3830
|
+
export interface Params$Resource$Backups$Getbackup
|
|
3831
|
+
extends StandardParameters {
|
|
2979
3832
|
/**
|
|
2980
|
-
*
|
|
3833
|
+
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
2981
3834
|
*/
|
|
2982
|
-
|
|
3835
|
+
name?: string;
|
|
2983
3836
|
}
|
|
2984
|
-
export interface Params$Resource$
|
|
3837
|
+
export interface Params$Resource$Backups$Listbackups
|
|
2985
3838
|
extends StandardParameters {
|
|
2986
3839
|
/**
|
|
2987
|
-
*
|
|
3840
|
+
* 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.
|
|
2988
3841
|
*/
|
|
2989
|
-
|
|
3842
|
+
filter?: string;
|
|
2990
3843
|
/**
|
|
2991
|
-
*
|
|
3844
|
+
* 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.
|
|
2992
3845
|
*/
|
|
2993
|
-
|
|
2994
|
-
|
|
3846
|
+
pageSize?: number;
|
|
2995
3847
|
/**
|
|
2996
|
-
*
|
|
3848
|
+
* 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.
|
|
2997
3849
|
*/
|
|
2998
|
-
|
|
2999
|
-
}
|
|
3000
|
-
export interface Params$Resource$Backupruns$List extends StandardParameters {
|
|
3850
|
+
pageToken?: string;
|
|
3001
3851
|
/**
|
|
3002
|
-
*
|
|
3852
|
+
* Required. The parent that owns this collection of backups. Format: projects/{project\}
|
|
3003
3853
|
*/
|
|
3004
|
-
|
|
3854
|
+
parent?: string;
|
|
3855
|
+
}
|
|
3856
|
+
export interface Params$Resource$Backups$Updatebackup
|
|
3857
|
+
extends StandardParameters {
|
|
3005
3858
|
/**
|
|
3006
|
-
*
|
|
3859
|
+
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
3007
3860
|
*/
|
|
3008
|
-
|
|
3861
|
+
name?: string;
|
|
3009
3862
|
/**
|
|
3010
|
-
*
|
|
3863
|
+
* The list of fields that you can update. You can update only the description and retention period of the final backup.
|
|
3011
3864
|
*/
|
|
3012
|
-
|
|
3865
|
+
updateMask?: string;
|
|
3866
|
+
|
|
3013
3867
|
/**
|
|
3014
|
-
*
|
|
3868
|
+
* Request body metadata
|
|
3015
3869
|
*/
|
|
3016
|
-
|
|
3870
|
+
requestBody?: Schema$Backup;
|
|
3017
3871
|
}
|
|
3018
3872
|
|
|
3019
3873
|
export class Resource$Connect {
|
|
@@ -3963,6 +4817,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
3963
4817
|
* Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
|
|
3964
4818
|
*/
|
|
3965
4819
|
databaseVersion?: string;
|
|
4820
|
+
/**
|
|
4821
|
+
* Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
|
|
4822
|
+
*/
|
|
4823
|
+
flagScope?: string;
|
|
3966
4824
|
}
|
|
3967
4825
|
|
|
3968
4826
|
export class Resource$Instances {
|
|
@@ -6607,6 +7465,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
6607
7465
|
requestBody?: Schema$InstancesCloneRequest;
|
|
6608
7466
|
}
|
|
6609
7467
|
export interface Params$Resource$Instances$Delete extends StandardParameters {
|
|
7468
|
+
/**
|
|
7469
|
+
* Flag to opt-in for final backup. By default, it is turned off.
|
|
7470
|
+
*/
|
|
7471
|
+
enableFinalBackup?: boolean;
|
|
7472
|
+
/**
|
|
7473
|
+
* Optional. The description of the final backup.
|
|
7474
|
+
*/
|
|
7475
|
+
finalBackupDescription?: string;
|
|
7476
|
+
/**
|
|
7477
|
+
* Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.
|
|
7478
|
+
*/
|
|
7479
|
+
finalBackupExpiryTime?: string;
|
|
7480
|
+
/**
|
|
7481
|
+
* Optional. Retention period of the final backup.
|
|
7482
|
+
*/
|
|
7483
|
+
finalBackupTtlDays?: string;
|
|
6610
7484
|
/**
|
|
6611
7485
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
6612
7486
|
*/
|