@googleapis/sqladmin 3.1.2 → 3.3.1
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 +28 -0
- package/build/v1.d.ts +208 -111
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +207 -110
- package/build/v1beta4.js.map +1 -1
- package/package.json +2 -2
- package/v1.ts +208 -111
- package/v1beta4.ts +207 -110
package/build/v1.d.ts
CHANGED
|
@@ -85,11 +85,11 @@ export declare namespace sqladmin_v1 {
|
|
|
85
85
|
*/
|
|
86
86
|
export interface Schema$AclEntry {
|
|
87
87
|
/**
|
|
88
|
-
* The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
88
|
+
* The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
89
89
|
*/
|
|
90
90
|
expirationTime?: string | null;
|
|
91
91
|
/**
|
|
92
|
-
* This is always
|
|
92
|
+
* This is always `sql#aclEntry`.
|
|
93
93
|
*/
|
|
94
94
|
kind?: string | null;
|
|
95
95
|
/**
|
|
@@ -135,7 +135,7 @@ export declare namespace sqladmin_v1 {
|
|
|
135
135
|
*/
|
|
136
136
|
enabled?: boolean | null;
|
|
137
137
|
/**
|
|
138
|
-
* This is always
|
|
138
|
+
* This is always `sql#backupConfiguration`.
|
|
139
139
|
*/
|
|
140
140
|
kind?: string | null;
|
|
141
141
|
/**
|
|
@@ -151,7 +151,7 @@ export declare namespace sqladmin_v1 {
|
|
|
151
151
|
*/
|
|
152
152
|
replicationLogArchivingEnabled?: boolean | null;
|
|
153
153
|
/**
|
|
154
|
-
* Start time for the daily backup configuration in UTC timezone in the 24 hour format -
|
|
154
|
+
* Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
|
|
155
155
|
*/
|
|
156
156
|
startTime?: string | null;
|
|
157
157
|
/**
|
|
@@ -168,7 +168,7 @@ export declare namespace sqladmin_v1 {
|
|
|
168
168
|
*/
|
|
169
169
|
backupId?: string | null;
|
|
170
170
|
/**
|
|
171
|
-
* This is always
|
|
171
|
+
* This is always `sql#backupContext`.
|
|
172
172
|
*/
|
|
173
173
|
kind?: string | null;
|
|
174
174
|
}
|
|
@@ -206,11 +206,11 @@ export declare namespace sqladmin_v1 {
|
|
|
206
206
|
*/
|
|
207
207
|
diskEncryptionStatus?: Schema$DiskEncryptionStatus;
|
|
208
208
|
/**
|
|
209
|
-
* The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
209
|
+
* The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
210
210
|
*/
|
|
211
211
|
endTime?: string | null;
|
|
212
212
|
/**
|
|
213
|
-
* The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
213
|
+
* The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
214
214
|
*/
|
|
215
215
|
enqueuedTime?: string | null;
|
|
216
216
|
/**
|
|
@@ -226,7 +226,7 @@ export declare namespace sqladmin_v1 {
|
|
|
226
226
|
*/
|
|
227
227
|
instance?: string | null;
|
|
228
228
|
/**
|
|
229
|
-
* This is always
|
|
229
|
+
* This is always `sql#backupRun`.
|
|
230
230
|
*/
|
|
231
231
|
kind?: string | null;
|
|
232
232
|
/**
|
|
@@ -238,7 +238,7 @@ export declare namespace sqladmin_v1 {
|
|
|
238
238
|
*/
|
|
239
239
|
selfLink?: string | null;
|
|
240
240
|
/**
|
|
241
|
-
* The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
241
|
+
* The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
242
242
|
*/
|
|
243
243
|
startTime?: string | null;
|
|
244
244
|
/**
|
|
@@ -250,7 +250,7 @@ export declare namespace sqladmin_v1 {
|
|
|
250
250
|
*/
|
|
251
251
|
type?: string | null;
|
|
252
252
|
/**
|
|
253
|
-
* The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
253
|
+
* The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
254
254
|
*/
|
|
255
255
|
windowStartTime?: string | null;
|
|
256
256
|
}
|
|
@@ -263,7 +263,7 @@ export declare namespace sqladmin_v1 {
|
|
|
263
263
|
*/
|
|
264
264
|
items?: Schema$BackupRun[];
|
|
265
265
|
/**
|
|
266
|
-
* This is always
|
|
266
|
+
* This is always `sql#backupRunsList`.
|
|
267
267
|
*/
|
|
268
268
|
kind?: string | null;
|
|
269
269
|
/**
|
|
@@ -284,7 +284,7 @@ export declare namespace sqladmin_v1 {
|
|
|
284
284
|
*/
|
|
285
285
|
binLogPosition?: string | null;
|
|
286
286
|
/**
|
|
287
|
-
* This is always
|
|
287
|
+
* This is always `sql#binLogCoordinates`.
|
|
288
288
|
*/
|
|
289
289
|
kind?: string | null;
|
|
290
290
|
}
|
|
@@ -292,6 +292,10 @@ export declare namespace sqladmin_v1 {
|
|
|
292
292
|
* Database instance clone context.
|
|
293
293
|
*/
|
|
294
294
|
export interface Schema$CloneContext {
|
|
295
|
+
/**
|
|
296
|
+
* The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
|
|
297
|
+
*/
|
|
298
|
+
allocatedIpRange?: string | null;
|
|
295
299
|
/**
|
|
296
300
|
* Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
|
|
297
301
|
*/
|
|
@@ -301,7 +305,7 @@ export declare namespace sqladmin_v1 {
|
|
|
301
305
|
*/
|
|
302
306
|
destinationInstanceName?: string | null;
|
|
303
307
|
/**
|
|
304
|
-
* This is always
|
|
308
|
+
* This is always `sql#cloneContext`.
|
|
305
309
|
*/
|
|
306
310
|
kind?: string | null;
|
|
307
311
|
/**
|
|
@@ -318,11 +322,11 @@ export declare namespace sqladmin_v1 {
|
|
|
318
322
|
*/
|
|
319
323
|
export interface Schema$ConnectSettings {
|
|
320
324
|
/**
|
|
321
|
-
*
|
|
325
|
+
* `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
|
|
322
326
|
*/
|
|
323
327
|
backendType?: string | null;
|
|
324
328
|
/**
|
|
325
|
-
* The database engine type and version. The
|
|
329
|
+
* The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
|
|
326
330
|
*/
|
|
327
331
|
databaseVersion?: string | null;
|
|
328
332
|
/**
|
|
@@ -334,7 +338,7 @@ export declare namespace sqladmin_v1 {
|
|
|
334
338
|
*/
|
|
335
339
|
kind?: string | null;
|
|
336
340
|
/**
|
|
337
|
-
* The cloud region for the instance.
|
|
341
|
+
* The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
|
|
338
342
|
*/
|
|
339
343
|
region?: string | null;
|
|
340
344
|
/**
|
|
@@ -363,7 +367,7 @@ export declare namespace sqladmin_v1 {
|
|
|
363
367
|
*/
|
|
364
368
|
instance?: string | null;
|
|
365
369
|
/**
|
|
366
|
-
* This is always
|
|
370
|
+
* This is always `sql#database`.
|
|
367
371
|
*/
|
|
368
372
|
kind?: string | null;
|
|
369
373
|
/**
|
|
@@ -389,7 +393,7 @@ export declare namespace sqladmin_v1 {
|
|
|
389
393
|
*/
|
|
390
394
|
name?: string | null;
|
|
391
395
|
/**
|
|
392
|
-
* The value of the flag.
|
|
396
|
+
* 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.
|
|
393
397
|
*/
|
|
394
398
|
value?: string | null;
|
|
395
399
|
}
|
|
@@ -398,7 +402,11 @@ export declare namespace sqladmin_v1 {
|
|
|
398
402
|
*/
|
|
399
403
|
export interface Schema$DatabaseInstance {
|
|
400
404
|
/**
|
|
401
|
-
*
|
|
405
|
+
* List all maintenance versions applicable on the instance
|
|
406
|
+
*/
|
|
407
|
+
availableMaintenanceVersions?: string[] | null;
|
|
408
|
+
/**
|
|
409
|
+
* The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
|
|
402
410
|
*/
|
|
403
411
|
backendType?: string | null;
|
|
404
412
|
/**
|
|
@@ -406,7 +414,7 @@ export declare namespace sqladmin_v1 {
|
|
|
406
414
|
*/
|
|
407
415
|
connectionName?: string | null;
|
|
408
416
|
/**
|
|
409
|
-
* Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
417
|
+
* Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
410
418
|
*/
|
|
411
419
|
createTime?: string | null;
|
|
412
420
|
/**
|
|
@@ -414,7 +422,11 @@ export declare namespace sqladmin_v1 {
|
|
|
414
422
|
*/
|
|
415
423
|
currentDiskSize?: string | null;
|
|
416
424
|
/**
|
|
417
|
-
*
|
|
425
|
+
* Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
|
|
426
|
+
*/
|
|
427
|
+
databaseInstalledVersion?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
|
|
418
430
|
*/
|
|
419
431
|
databaseVersion?: string | null;
|
|
420
432
|
/**
|
|
@@ -426,7 +438,7 @@ export declare namespace sqladmin_v1 {
|
|
|
426
438
|
*/
|
|
427
439
|
diskEncryptionStatus?: Schema$DiskEncryptionStatus;
|
|
428
440
|
/**
|
|
429
|
-
* This field is deprecated and will be removed from a future version of the API. Use the
|
|
441
|
+
* This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
|
|
430
442
|
*/
|
|
431
443
|
etag?: string | null;
|
|
432
444
|
/**
|
|
@@ -437,11 +449,11 @@ export declare namespace sqladmin_v1 {
|
|
|
437
449
|
name?: string;
|
|
438
450
|
} | null;
|
|
439
451
|
/**
|
|
440
|
-
* The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone.
|
|
452
|
+
* The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
|
|
441
453
|
*/
|
|
442
454
|
gceZone?: string | null;
|
|
443
455
|
/**
|
|
444
|
-
* The instance type.
|
|
456
|
+
* The instance type.
|
|
445
457
|
*/
|
|
446
458
|
instanceType?: string | null;
|
|
447
459
|
/**
|
|
@@ -453,9 +465,13 @@ export declare namespace sqladmin_v1 {
|
|
|
453
465
|
*/
|
|
454
466
|
ipv6Address?: string | null;
|
|
455
467
|
/**
|
|
456
|
-
* This is always
|
|
468
|
+
* This is always `sql#instance`.
|
|
457
469
|
*/
|
|
458
470
|
kind?: string | null;
|
|
471
|
+
/**
|
|
472
|
+
* The current software version on the instance.
|
|
473
|
+
*/
|
|
474
|
+
maintenanceVersion?: string | null;
|
|
459
475
|
/**
|
|
460
476
|
* The name of the instance which will act as primary in the replication setup.
|
|
461
477
|
*/
|
|
@@ -481,7 +497,7 @@ export declare namespace sqladmin_v1 {
|
|
|
481
497
|
*/
|
|
482
498
|
project?: string | null;
|
|
483
499
|
/**
|
|
484
|
-
* The geographical region. Can be: *
|
|
500
|
+
* The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation.
|
|
485
501
|
*/
|
|
486
502
|
region?: string | null;
|
|
487
503
|
/**
|
|
@@ -505,7 +521,7 @@ export declare namespace sqladmin_v1 {
|
|
|
505
521
|
*/
|
|
506
522
|
scheduledMaintenance?: Schema$SqlScheduledMaintenance;
|
|
507
523
|
/**
|
|
508
|
-
* The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
|
|
524
|
+
* The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
|
|
509
525
|
*/
|
|
510
526
|
secondaryGceZone?: string | null;
|
|
511
527
|
/**
|
|
@@ -517,7 +533,7 @@ export declare namespace sqladmin_v1 {
|
|
|
517
533
|
*/
|
|
518
534
|
serverCaCert?: Schema$SslCert;
|
|
519
535
|
/**
|
|
520
|
-
* The service account email address assigned to the instance
|
|
536
|
+
* The service account email address assigned to the instance.\This property is read-only.
|
|
521
537
|
*/
|
|
522
538
|
serviceAccountEmailAddress?: string | null;
|
|
523
539
|
/**
|
|
@@ -542,7 +558,7 @@ export declare namespace sqladmin_v1 {
|
|
|
542
558
|
*/
|
|
543
559
|
items?: Schema$Database[];
|
|
544
560
|
/**
|
|
545
|
-
* This is always
|
|
561
|
+
* This is always `sql#databasesList`.
|
|
546
562
|
*/
|
|
547
563
|
kind?: string | null;
|
|
548
564
|
}
|
|
@@ -551,11 +567,11 @@ export declare namespace sqladmin_v1 {
|
|
|
551
567
|
*/
|
|
552
568
|
export interface Schema$DemoteMasterConfiguration {
|
|
553
569
|
/**
|
|
554
|
-
* This is always
|
|
570
|
+
* This is always `sql#demoteMasterConfiguration`.
|
|
555
571
|
*/
|
|
556
572
|
kind?: string | null;
|
|
557
573
|
/**
|
|
558
|
-
* MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named
|
|
574
|
+
* MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
|
|
559
575
|
*/
|
|
560
576
|
mysqlReplicaConfiguration?: Schema$DemoteMasterMySqlReplicaConfiguration;
|
|
561
577
|
}
|
|
@@ -564,7 +580,7 @@ export declare namespace sqladmin_v1 {
|
|
|
564
580
|
*/
|
|
565
581
|
export interface Schema$DemoteMasterContext {
|
|
566
582
|
/**
|
|
567
|
-
* This is always
|
|
583
|
+
* This is always `sql#demoteMasterContext`.
|
|
568
584
|
*/
|
|
569
585
|
kind?: string | null;
|
|
570
586
|
/**
|
|
@@ -580,7 +596,7 @@ export declare namespace sqladmin_v1 {
|
|
|
580
596
|
*/
|
|
581
597
|
skipReplicationSetup?: boolean | null;
|
|
582
598
|
/**
|
|
583
|
-
* Verify GTID consistency for demote operation. Default value:
|
|
599
|
+
* Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
|
|
584
600
|
*/
|
|
585
601
|
verifyGtidConsistency?: boolean | null;
|
|
586
602
|
}
|
|
@@ -601,7 +617,7 @@ export declare namespace sqladmin_v1 {
|
|
|
601
617
|
*/
|
|
602
618
|
clientKey?: string | null;
|
|
603
619
|
/**
|
|
604
|
-
* This is always
|
|
620
|
+
* This is always `sql#demoteMasterMysqlReplicaConfiguration`.
|
|
605
621
|
*/
|
|
606
622
|
kind?: string | null;
|
|
607
623
|
/**
|
|
@@ -635,7 +651,7 @@ export declare namespace sqladmin_v1 {
|
|
|
635
651
|
*/
|
|
636
652
|
export interface Schema$DiskEncryptionConfiguration {
|
|
637
653
|
/**
|
|
638
|
-
* This is always
|
|
654
|
+
* This is always `sql#diskEncryptionConfiguration`.
|
|
639
655
|
*/
|
|
640
656
|
kind?: string | null;
|
|
641
657
|
/**
|
|
@@ -648,7 +664,7 @@ export declare namespace sqladmin_v1 {
|
|
|
648
664
|
*/
|
|
649
665
|
export interface Schema$DiskEncryptionStatus {
|
|
650
666
|
/**
|
|
651
|
-
* This is always
|
|
667
|
+
* This is always `sql#diskEncryptionStatus`.
|
|
652
668
|
*/
|
|
653
669
|
kind?: string | null;
|
|
654
670
|
/**
|
|
@@ -661,7 +677,7 @@ export declare namespace sqladmin_v1 {
|
|
|
661
677
|
*/
|
|
662
678
|
export interface Schema$ExportContext {
|
|
663
679
|
/**
|
|
664
|
-
* Options for exporting data as CSV.
|
|
680
|
+
* Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
|
|
665
681
|
*/
|
|
666
682
|
csvExportOptions?: {
|
|
667
683
|
escapeCharacter?: string;
|
|
@@ -671,15 +687,15 @@ export declare namespace sqladmin_v1 {
|
|
|
671
687
|
selectQuery?: string;
|
|
672
688
|
} | null;
|
|
673
689
|
/**
|
|
674
|
-
* Databases to be exported.
|
|
690
|
+
* 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:` You must specify one database to be exported. 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`.
|
|
675
691
|
*/
|
|
676
692
|
databases?: string[] | null;
|
|
677
693
|
/**
|
|
678
|
-
* The file type for the specified uri.
|
|
694
|
+
* The file type for the specified uri.
|
|
679
695
|
*/
|
|
680
696
|
fileType?: string | null;
|
|
681
697
|
/**
|
|
682
|
-
* This is always
|
|
698
|
+
* This is always `sql#exportContext`.
|
|
683
699
|
*/
|
|
684
700
|
kind?: string | null;
|
|
685
701
|
/**
|
|
@@ -697,7 +713,7 @@ export declare namespace sqladmin_v1 {
|
|
|
697
713
|
tables?: string[];
|
|
698
714
|
} | null;
|
|
699
715
|
/**
|
|
700
|
-
* The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form
|
|
716
|
+
* 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.
|
|
701
717
|
*/
|
|
702
718
|
uri?: string | null;
|
|
703
719
|
}
|
|
@@ -706,7 +722,7 @@ export declare namespace sqladmin_v1 {
|
|
|
706
722
|
*/
|
|
707
723
|
export interface Schema$FailoverContext {
|
|
708
724
|
/**
|
|
709
|
-
* This is always
|
|
725
|
+
* This is always `sql#failoverContext`.
|
|
710
726
|
*/
|
|
711
727
|
kind?: string | null;
|
|
712
728
|
/**
|
|
@@ -723,11 +739,11 @@ export declare namespace sqladmin_v1 {
|
|
|
723
739
|
*/
|
|
724
740
|
allowedIntValues?: string[] | null;
|
|
725
741
|
/**
|
|
726
|
-
* For
|
|
742
|
+
* For `STRING` flags, a list of strings that the value can be set to.
|
|
727
743
|
*/
|
|
728
744
|
allowedStringValues?: string[] | null;
|
|
729
745
|
/**
|
|
730
|
-
* The database version this flag applies to. Can be
|
|
746
|
+
* 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).
|
|
731
747
|
*/
|
|
732
748
|
appliesTo?: string[] | null;
|
|
733
749
|
/**
|
|
@@ -735,19 +751,19 @@ export declare namespace sqladmin_v1 {
|
|
|
735
751
|
*/
|
|
736
752
|
inBeta?: boolean | null;
|
|
737
753
|
/**
|
|
738
|
-
* This is always
|
|
754
|
+
* This is always `sql#flag`.
|
|
739
755
|
*/
|
|
740
756
|
kind?: string | null;
|
|
741
757
|
/**
|
|
742
|
-
* For
|
|
758
|
+
* For `INTEGER` flags, the maximum allowed value.
|
|
743
759
|
*/
|
|
744
760
|
maxValue?: string | null;
|
|
745
761
|
/**
|
|
746
|
-
* For
|
|
762
|
+
* For `INTEGER` flags, the minimum allowed value.
|
|
747
763
|
*/
|
|
748
764
|
minValue?: string | null;
|
|
749
765
|
/**
|
|
750
|
-
* This is the name of the flag. Flag names always use underscores, not hyphens, for example:
|
|
766
|
+
* This is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
|
|
751
767
|
*/
|
|
752
768
|
name?: string | null;
|
|
753
769
|
/**
|
|
@@ -755,7 +771,7 @@ export declare namespace sqladmin_v1 {
|
|
|
755
771
|
*/
|
|
756
772
|
requiresRestart?: boolean | null;
|
|
757
773
|
/**
|
|
758
|
-
* The type of the flag. Flags are typed to being
|
|
774
|
+
* The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags that do not take a value, such as `skip_grant_tables`.
|
|
759
775
|
*/
|
|
760
776
|
type?: string | null;
|
|
761
777
|
}
|
|
@@ -768,7 +784,7 @@ export declare namespace sqladmin_v1 {
|
|
|
768
784
|
*/
|
|
769
785
|
items?: Schema$Flag[];
|
|
770
786
|
/**
|
|
771
|
-
* This is always
|
|
787
|
+
* This is always `sql#flagsList`.
|
|
772
788
|
*/
|
|
773
789
|
kind?: string | null;
|
|
774
790
|
}
|
|
@@ -828,11 +844,11 @@ export declare namespace sqladmin_v1 {
|
|
|
828
844
|
table?: string;
|
|
829
845
|
} | null;
|
|
830
846
|
/**
|
|
831
|
-
* The target database for the import. If
|
|
847
|
+
* 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.
|
|
832
848
|
*/
|
|
833
849
|
database?: string | null;
|
|
834
850
|
/**
|
|
835
|
-
* The file type for the specified uri
|
|
851
|
+
* The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
|
|
836
852
|
*/
|
|
837
853
|
fileType?: string | null;
|
|
838
854
|
/**
|
|
@@ -840,11 +856,11 @@ export declare namespace sqladmin_v1 {
|
|
|
840
856
|
*/
|
|
841
857
|
importUser?: string | null;
|
|
842
858
|
/**
|
|
843
|
-
* This is always
|
|
859
|
+
* This is always `sql#importContext`.
|
|
844
860
|
*/
|
|
845
861
|
kind?: string | null;
|
|
846
862
|
/**
|
|
847
|
-
* Path to the import file in Cloud Storage, in the form
|
|
863
|
+
* 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.
|
|
848
864
|
*/
|
|
849
865
|
uri?: string | null;
|
|
850
866
|
}
|
|
@@ -944,7 +960,7 @@ export declare namespace sqladmin_v1 {
|
|
|
944
960
|
*/
|
|
945
961
|
items?: Schema$DatabaseInstance[];
|
|
946
962
|
/**
|
|
947
|
-
* This is always
|
|
963
|
+
* This is always `sql#instancesList`.
|
|
948
964
|
*/
|
|
949
965
|
kind?: string | null;
|
|
950
966
|
/**
|
|
@@ -966,7 +982,7 @@ export declare namespace sqladmin_v1 {
|
|
|
966
982
|
*/
|
|
967
983
|
certs?: Schema$SslCert[];
|
|
968
984
|
/**
|
|
969
|
-
* This is always
|
|
985
|
+
* This is always `sql#instancesListServerCas`.
|
|
970
986
|
*/
|
|
971
987
|
kind?: string | null;
|
|
972
988
|
}
|
|
@@ -1002,11 +1018,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1002
1018
|
*/
|
|
1003
1019
|
export interface Schema$IpConfiguration {
|
|
1004
1020
|
/**
|
|
1005
|
-
* The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
|
1021
|
+
* The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
|
1006
1022
|
*/
|
|
1007
1023
|
allocatedIpRange?: string | null;
|
|
1008
1024
|
/**
|
|
1009
|
-
* The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
|
1025
|
+
* The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
|
|
1010
1026
|
*/
|
|
1011
1027
|
authorizedNetworks?: Schema$AclEntry[];
|
|
1012
1028
|
/**
|
|
@@ -1014,7 +1030,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1014
1030
|
*/
|
|
1015
1031
|
ipv4Enabled?: boolean | null;
|
|
1016
1032
|
/**
|
|
1017
|
-
* The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example,
|
|
1033
|
+
* The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
|
|
1018
1034
|
*/
|
|
1019
1035
|
privateNetwork?: string | null;
|
|
1020
1036
|
/**
|
|
@@ -1031,11 +1047,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1031
1047
|
*/
|
|
1032
1048
|
ipAddress?: string | null;
|
|
1033
1049
|
/**
|
|
1034
|
-
* The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1050
|
+
* The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
|
|
1035
1051
|
*/
|
|
1036
1052
|
timeToRetire?: string | null;
|
|
1037
1053
|
/**
|
|
1038
|
-
* The type of this IP address. A
|
|
1054
|
+
* The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
|
|
1039
1055
|
*/
|
|
1040
1056
|
type?: string | null;
|
|
1041
1057
|
}
|
|
@@ -1044,19 +1060,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1044
1060
|
*/
|
|
1045
1061
|
export interface Schema$LocationPreference {
|
|
1046
1062
|
/**
|
|
1047
|
-
* The App Engine application to follow, it must be in the same region as the Cloud SQL instance.
|
|
1063
|
+
* The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
|
|
1048
1064
|
*/
|
|
1049
1065
|
followGaeApplication?: string | null;
|
|
1050
1066
|
/**
|
|
1051
|
-
* This is always
|
|
1067
|
+
* This is always `sql#locationPreference`.
|
|
1052
1068
|
*/
|
|
1053
1069
|
kind?: string | null;
|
|
1054
1070
|
/**
|
|
1055
|
-
* The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.).
|
|
1071
|
+
* The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.).
|
|
1056
1072
|
*/
|
|
1057
1073
|
secondaryZone?: string | null;
|
|
1058
1074
|
/**
|
|
1059
|
-
* The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
|
|
1075
|
+
* The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
|
|
1060
1076
|
*/
|
|
1061
1077
|
zone?: string | null;
|
|
1062
1078
|
}
|
|
@@ -1073,11 +1089,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1073
1089
|
*/
|
|
1074
1090
|
hour?: number | null;
|
|
1075
1091
|
/**
|
|
1076
|
-
* This is always
|
|
1092
|
+
* This is always `sql#maintenanceWindow`.
|
|
1077
1093
|
*/
|
|
1078
1094
|
kind?: string | null;
|
|
1079
1095
|
/**
|
|
1080
|
-
* Maintenance timing setting:
|
|
1096
|
+
* Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
|
|
1081
1097
|
*/
|
|
1082
1098
|
updateTrack?: string | null;
|
|
1083
1099
|
}
|
|
@@ -1106,7 +1122,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1106
1122
|
*/
|
|
1107
1123
|
dumpFilePath?: string | null;
|
|
1108
1124
|
/**
|
|
1109
|
-
* This is always
|
|
1125
|
+
* This is always `sql#mysqlReplicaConfiguration`.
|
|
1110
1126
|
*/
|
|
1111
1127
|
kind?: string | null;
|
|
1112
1128
|
/**
|
|
@@ -1164,7 +1180,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1164
1180
|
*/
|
|
1165
1181
|
hostPort?: string | null;
|
|
1166
1182
|
/**
|
|
1167
|
-
* This is always
|
|
1183
|
+
* This is always `sql#onPremisesConfiguration`.
|
|
1168
1184
|
*/
|
|
1169
1185
|
kind?: string | null;
|
|
1170
1186
|
/**
|
|
@@ -1189,7 +1205,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1189
1205
|
*/
|
|
1190
1206
|
backupContext?: Schema$BackupContext;
|
|
1191
1207
|
/**
|
|
1192
|
-
* The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1208
|
+
* The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
1193
1209
|
*/
|
|
1194
1210
|
endTime?: string | null;
|
|
1195
1211
|
/**
|
|
@@ -1205,11 +1221,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1205
1221
|
*/
|
|
1206
1222
|
importContext?: Schema$ImportContext;
|
|
1207
1223
|
/**
|
|
1208
|
-
* The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1224
|
+
* The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
1209
1225
|
*/
|
|
1210
1226
|
insertTime?: string | null;
|
|
1211
1227
|
/**
|
|
1212
|
-
* This is always
|
|
1228
|
+
* This is always `sql#operation`.
|
|
1213
1229
|
*/
|
|
1214
1230
|
kind?: string | null;
|
|
1215
1231
|
/**
|
|
@@ -1217,7 +1233,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1217
1233
|
*/
|
|
1218
1234
|
name?: string | null;
|
|
1219
1235
|
/**
|
|
1220
|
-
* The type of the operation. Valid values are: *
|
|
1236
|
+
* The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
|
|
1221
1237
|
*/
|
|
1222
1238
|
operationType?: string | null;
|
|
1223
1239
|
/**
|
|
@@ -1225,11 +1241,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1225
1241
|
*/
|
|
1226
1242
|
selfLink?: string | null;
|
|
1227
1243
|
/**
|
|
1228
|
-
* The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1244
|
+
* The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
1229
1245
|
*/
|
|
1230
1246
|
startTime?: string | null;
|
|
1231
1247
|
/**
|
|
1232
|
-
* The status of an operation.
|
|
1248
|
+
* The status of an operation.
|
|
1233
1249
|
*/
|
|
1234
1250
|
status?: string | null;
|
|
1235
1251
|
/**
|
|
@@ -1255,7 +1271,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1255
1271
|
*/
|
|
1256
1272
|
code?: string | null;
|
|
1257
1273
|
/**
|
|
1258
|
-
* This is always
|
|
1274
|
+
* This is always `sql#operationError`.
|
|
1259
1275
|
*/
|
|
1260
1276
|
kind?: string | null;
|
|
1261
1277
|
/**
|
|
@@ -1272,7 +1288,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1272
1288
|
*/
|
|
1273
1289
|
errors?: Schema$OperationError[];
|
|
1274
1290
|
/**
|
|
1275
|
-
* This is always
|
|
1291
|
+
* This is always `sql#operationErrors`.
|
|
1276
1292
|
*/
|
|
1277
1293
|
kind?: string | null;
|
|
1278
1294
|
}
|
|
@@ -1285,7 +1301,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1285
1301
|
*/
|
|
1286
1302
|
items?: Schema$Operation[];
|
|
1287
1303
|
/**
|
|
1288
|
-
* This is always
|
|
1304
|
+
* This is always `sql#operationsList`.
|
|
1289
1305
|
*/
|
|
1290
1306
|
kind?: string | null;
|
|
1291
1307
|
/**
|
|
@@ -1293,20 +1309,58 @@ export declare namespace sqladmin_v1 {
|
|
|
1293
1309
|
*/
|
|
1294
1310
|
nextPageToken?: string | null;
|
|
1295
1311
|
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Read-only password status.
|
|
1314
|
+
*/
|
|
1315
|
+
export interface Schema$PasswordStatus {
|
|
1316
|
+
/**
|
|
1317
|
+
* If true, user does not have login privileges.
|
|
1318
|
+
*/
|
|
1319
|
+
locked?: boolean | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* The expiration time of the current password.
|
|
1322
|
+
*/
|
|
1323
|
+
passwordExpirationTime?: string | null;
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Database instance local user password validation policy
|
|
1327
|
+
*/
|
|
1328
|
+
export interface Schema$PasswordValidationPolicy {
|
|
1329
|
+
/**
|
|
1330
|
+
* The complexity of the password.
|
|
1331
|
+
*/
|
|
1332
|
+
complexity?: string | null;
|
|
1333
|
+
/**
|
|
1334
|
+
* Disallow username as a part of the password.
|
|
1335
|
+
*/
|
|
1336
|
+
disallowUsernameSubstring?: boolean | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* Minimum number of characters allowed.
|
|
1339
|
+
*/
|
|
1340
|
+
minLength?: number | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
|
|
1343
|
+
*/
|
|
1344
|
+
passwordChangeInterval?: string | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* Number of previous passwords that cannot be reused.
|
|
1347
|
+
*/
|
|
1348
|
+
reuseInterval?: number | null;
|
|
1349
|
+
}
|
|
1296
1350
|
/**
|
|
1297
1351
|
* Read-replica configuration for connecting to the primary instance.
|
|
1298
1352
|
*/
|
|
1299
1353
|
export interface Schema$ReplicaConfiguration {
|
|
1300
1354
|
/**
|
|
1301
|
-
* Specifies if the replica is the failover target. If the field is set to
|
|
1355
|
+
* Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
|
|
1302
1356
|
*/
|
|
1303
1357
|
failoverTarget?: boolean | null;
|
|
1304
1358
|
/**
|
|
1305
|
-
* This is always
|
|
1359
|
+
* This is always `sql#replicaConfiguration`.
|
|
1306
1360
|
*/
|
|
1307
1361
|
kind?: string | null;
|
|
1308
1362
|
/**
|
|
1309
|
-
* MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named
|
|
1363
|
+
* MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
|
|
1310
1364
|
*/
|
|
1311
1365
|
mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
|
|
1312
1366
|
}
|
|
@@ -1316,7 +1370,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1316
1370
|
*/
|
|
1317
1371
|
rescheduleType?: string | null;
|
|
1318
1372
|
/**
|
|
1319
|
-
* Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1373
|
+
* Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
1320
1374
|
*/
|
|
1321
1375
|
scheduleTime?: string | null;
|
|
1322
1376
|
}
|
|
@@ -1333,7 +1387,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1333
1387
|
*/
|
|
1334
1388
|
instanceId?: string | null;
|
|
1335
1389
|
/**
|
|
1336
|
-
* This is always
|
|
1390
|
+
* This is always `sql#restoreBackupContext`.
|
|
1337
1391
|
*/
|
|
1338
1392
|
kind?: string | null;
|
|
1339
1393
|
/**
|
|
@@ -1346,7 +1400,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1346
1400
|
*/
|
|
1347
1401
|
export interface Schema$RotateServerCaContext {
|
|
1348
1402
|
/**
|
|
1349
|
-
* This is always
|
|
1403
|
+
* This is always `sql#rotateServerCaContext`.
|
|
1350
1404
|
*/
|
|
1351
1405
|
kind?: string | null;
|
|
1352
1406
|
/**
|
|
@@ -1359,7 +1413,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1359
1413
|
*/
|
|
1360
1414
|
export interface Schema$Settings {
|
|
1361
1415
|
/**
|
|
1362
|
-
* The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: *
|
|
1416
|
+
* The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
|
|
1363
1417
|
*/
|
|
1364
1418
|
activationPolicy?: string | null;
|
|
1365
1419
|
/**
|
|
@@ -1371,7 +1425,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1371
1425
|
*/
|
|
1372
1426
|
authorizedGaeApplications?: string[] | null;
|
|
1373
1427
|
/**
|
|
1374
|
-
* Availability type. Potential values: *
|
|
1428
|
+
* Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
|
|
1375
1429
|
*/
|
|
1376
1430
|
availabilityType?: string | null;
|
|
1377
1431
|
/**
|
|
@@ -1391,7 +1445,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1391
1445
|
*/
|
|
1392
1446
|
databaseFlags?: Schema$DatabaseFlags[];
|
|
1393
1447
|
/**
|
|
1394
|
-
* Configuration specific to read replica instances. Indicates whether replication is enabled or not.
|
|
1448
|
+
* Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
|
|
1395
1449
|
*/
|
|
1396
1450
|
databaseReplicationEnabled?: boolean | null;
|
|
1397
1451
|
/**
|
|
@@ -1399,7 +1453,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1399
1453
|
*/
|
|
1400
1454
|
dataDiskSizeGb?: string | null;
|
|
1401
1455
|
/**
|
|
1402
|
-
* The type of data disk:
|
|
1456
|
+
* The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
|
|
1403
1457
|
*/
|
|
1404
1458
|
dataDiskType?: string | null;
|
|
1405
1459
|
/**
|
|
@@ -1415,7 +1469,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1415
1469
|
*/
|
|
1416
1470
|
ipConfiguration?: Schema$IpConfiguration;
|
|
1417
1471
|
/**
|
|
1418
|
-
* This is always
|
|
1472
|
+
* This is always `sql#settings`.
|
|
1419
1473
|
*/
|
|
1420
1474
|
kind?: string | null;
|
|
1421
1475
|
/**
|
|
@@ -1427,11 +1481,15 @@ export declare namespace sqladmin_v1 {
|
|
|
1427
1481
|
*/
|
|
1428
1482
|
maintenanceWindow?: Schema$MaintenanceWindow;
|
|
1429
1483
|
/**
|
|
1430
|
-
* The
|
|
1484
|
+
* The local user password validation policy of the instance.
|
|
1485
|
+
*/
|
|
1486
|
+
passwordValidationPolicy?: Schema$PasswordValidationPolicy;
|
|
1487
|
+
/**
|
|
1488
|
+
* The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
|
|
1431
1489
|
*/
|
|
1432
1490
|
pricingPlan?: string | null;
|
|
1433
1491
|
/**
|
|
1434
|
-
* The type of replication this instance uses. This can be either
|
|
1492
|
+
* The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
|
|
1435
1493
|
*/
|
|
1436
1494
|
replicationType?: string | null;
|
|
1437
1495
|
/**
|
|
@@ -1451,7 +1509,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1451
1509
|
*/
|
|
1452
1510
|
storageAutoResizeLimit?: string | null;
|
|
1453
1511
|
/**
|
|
1454
|
-
* The tier (or machine type) for this instance, for example
|
|
1512
|
+
* The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
|
|
1455
1513
|
*/
|
|
1456
1514
|
tier?: string | null;
|
|
1457
1515
|
/**
|
|
@@ -1483,7 +1541,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1483
1541
|
*/
|
|
1484
1542
|
detail?: string | null;
|
|
1485
1543
|
/**
|
|
1486
|
-
* Can be
|
|
1544
|
+
* Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
|
|
1487
1545
|
*/
|
|
1488
1546
|
kind?: string | null;
|
|
1489
1547
|
/**
|
|
@@ -1547,7 +1605,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1547
1605
|
*/
|
|
1548
1606
|
errors?: Schema$SqlExternalSyncSettingError[];
|
|
1549
1607
|
/**
|
|
1550
|
-
* This is always
|
|
1608
|
+
* This is always `sql#migrationSettingErrorList`.
|
|
1551
1609
|
*/
|
|
1552
1610
|
kind?: string | null;
|
|
1553
1611
|
/**
|
|
@@ -1642,11 +1700,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1642
1700
|
*/
|
|
1643
1701
|
commonName?: string | null;
|
|
1644
1702
|
/**
|
|
1645
|
-
* The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1703
|
+
* The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
|
|
1646
1704
|
*/
|
|
1647
1705
|
createTime?: string | null;
|
|
1648
1706
|
/**
|
|
1649
|
-
* The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
|
1707
|
+
* The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
|
1650
1708
|
*/
|
|
1651
1709
|
expirationTime?: string | null;
|
|
1652
1710
|
/**
|
|
@@ -1654,7 +1712,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1654
1712
|
*/
|
|
1655
1713
|
instance?: string | null;
|
|
1656
1714
|
/**
|
|
1657
|
-
* This is always
|
|
1715
|
+
* This is always `sql#sslCert`.
|
|
1658
1716
|
*/
|
|
1659
1717
|
kind?: string | null;
|
|
1660
1718
|
/**
|
|
@@ -1710,7 +1768,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1710
1768
|
*/
|
|
1711
1769
|
clientCert?: Schema$SslCertDetail;
|
|
1712
1770
|
/**
|
|
1713
|
-
* This is always
|
|
1771
|
+
* This is always `sql#sslCertsInsert`.
|
|
1714
1772
|
*/
|
|
1715
1773
|
kind?: string | null;
|
|
1716
1774
|
/**
|
|
@@ -1731,7 +1789,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1731
1789
|
*/
|
|
1732
1790
|
items?: Schema$SslCert[];
|
|
1733
1791
|
/**
|
|
1734
|
-
* This is always
|
|
1792
|
+
* This is always `sql#sslCertsList`.
|
|
1735
1793
|
*/
|
|
1736
1794
|
kind?: string | null;
|
|
1737
1795
|
}
|
|
@@ -1757,7 +1815,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1757
1815
|
*/
|
|
1758
1816
|
DiskQuota?: string | null;
|
|
1759
1817
|
/**
|
|
1760
|
-
* This is always
|
|
1818
|
+
* This is always `sql#tier`.
|
|
1761
1819
|
*/
|
|
1762
1820
|
kind?: string | null;
|
|
1763
1821
|
/**
|
|
@@ -1769,7 +1827,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1769
1827
|
*/
|
|
1770
1828
|
region?: string[] | null;
|
|
1771
1829
|
/**
|
|
1772
|
-
* An identifier for the machine type, for example, db-custom-1-3840
|
|
1830
|
+
* An identifier for the machine type, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).
|
|
1773
1831
|
*/
|
|
1774
1832
|
tier?: string | null;
|
|
1775
1833
|
}
|
|
@@ -1782,7 +1840,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1782
1840
|
*/
|
|
1783
1841
|
items?: Schema$Tier[];
|
|
1784
1842
|
/**
|
|
1785
|
-
* This is always
|
|
1843
|
+
* This is always `sql#tiersList`.
|
|
1786
1844
|
*/
|
|
1787
1845
|
kind?: string | null;
|
|
1788
1846
|
}
|
|
@@ -1791,11 +1849,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1791
1849
|
*/
|
|
1792
1850
|
export interface Schema$TruncateLogContext {
|
|
1793
1851
|
/**
|
|
1794
|
-
* This is always
|
|
1852
|
+
* This is always `sql#truncateLogContext`.
|
|
1795
1853
|
*/
|
|
1796
1854
|
kind?: string | null;
|
|
1797
1855
|
/**
|
|
1798
|
-
* The type of log to truncate. Valid values are
|
|
1856
|
+
* The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.
|
|
1799
1857
|
*/
|
|
1800
1858
|
logType?: string | null;
|
|
1801
1859
|
}
|
|
@@ -1808,19 +1866,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1808
1866
|
*/
|
|
1809
1867
|
etag?: string | null;
|
|
1810
1868
|
/**
|
|
1811
|
-
* The host
|
|
1869
|
+
* Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional.
|
|
1812
1870
|
*/
|
|
1813
1871
|
host?: string | null;
|
|
1814
1872
|
/**
|
|
1815
|
-
* The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for
|
|
1873
|
+
* The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for `update` because it is already specified on the URL.
|
|
1816
1874
|
*/
|
|
1817
1875
|
instance?: string | null;
|
|
1818
1876
|
/**
|
|
1819
|
-
* This is always
|
|
1877
|
+
* This is always `sql#user`.
|
|
1820
1878
|
*/
|
|
1821
1879
|
kind?: string | null;
|
|
1822
1880
|
/**
|
|
1823
|
-
* The name of the user in the Cloud SQL instance. Can be omitted for
|
|
1881
|
+
* The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is already specified in the URL.
|
|
1824
1882
|
*/
|
|
1825
1883
|
name?: string | null;
|
|
1826
1884
|
/**
|
|
@@ -1828,7 +1886,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1828
1886
|
*/
|
|
1829
1887
|
password?: string | null;
|
|
1830
1888
|
/**
|
|
1831
|
-
*
|
|
1889
|
+
* User level password validation policy.
|
|
1890
|
+
*/
|
|
1891
|
+
passwordPolicy?: Schema$UserPasswordValidationPolicy;
|
|
1892
|
+
/**
|
|
1893
|
+
* The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for `update` because it is already specified on the URL.
|
|
1832
1894
|
*/
|
|
1833
1895
|
project?: string | null;
|
|
1834
1896
|
sqlserverUserDetails?: Schema$SqlServerUserDetails;
|
|
@@ -1837,6 +1899,27 @@ export declare namespace sqladmin_v1 {
|
|
|
1837
1899
|
*/
|
|
1838
1900
|
type?: string | null;
|
|
1839
1901
|
}
|
|
1902
|
+
/**
|
|
1903
|
+
* User level password validation policy.
|
|
1904
|
+
*/
|
|
1905
|
+
export interface Schema$UserPasswordValidationPolicy {
|
|
1906
|
+
/**
|
|
1907
|
+
* Number of failed login attempts allowed before user get locked.
|
|
1908
|
+
*/
|
|
1909
|
+
allowedFailedAttempts?: number | null;
|
|
1910
|
+
/**
|
|
1911
|
+
* If true, failed login attempts check will be enabled.
|
|
1912
|
+
*/
|
|
1913
|
+
enableFailedAttemptsCheck?: boolean | null;
|
|
1914
|
+
/**
|
|
1915
|
+
* Expiration duration after password is updated.
|
|
1916
|
+
*/
|
|
1917
|
+
passwordExpirationDuration?: string | null;
|
|
1918
|
+
/**
|
|
1919
|
+
* Output only. Read-only password status.
|
|
1920
|
+
*/
|
|
1921
|
+
status?: Schema$PasswordStatus;
|
|
1922
|
+
}
|
|
1840
1923
|
/**
|
|
1841
1924
|
* User list response.
|
|
1842
1925
|
*/
|
|
@@ -1846,7 +1929,7 @@ export declare namespace sqladmin_v1 {
|
|
|
1846
1929
|
*/
|
|
1847
1930
|
items?: Schema$User[];
|
|
1848
1931
|
/**
|
|
1849
|
-
* This is always
|
|
1932
|
+
* This is always `sql#usersList`.
|
|
1850
1933
|
*/
|
|
1851
1934
|
kind?: string | null;
|
|
1852
1935
|
/**
|
|
@@ -3592,10 +3675,12 @@ export declare namespace sqladmin_v1 {
|
|
|
3592
3675
|
*
|
|
3593
3676
|
* // Example response
|
|
3594
3677
|
* // {
|
|
3678
|
+
* // "availableMaintenanceVersions": [],
|
|
3595
3679
|
* // "backendType": "my_backendType",
|
|
3596
3680
|
* // "connectionName": "my_connectionName",
|
|
3597
3681
|
* // "createTime": "my_createTime",
|
|
3598
3682
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
3683
|
+
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
3599
3684
|
* // "databaseVersion": "my_databaseVersion",
|
|
3600
3685
|
* // "diskEncryptionConfiguration": {},
|
|
3601
3686
|
* // "diskEncryptionStatus": {},
|
|
@@ -3606,6 +3691,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3606
3691
|
* // "ipAddresses": [],
|
|
3607
3692
|
* // "ipv6Address": "my_ipv6Address",
|
|
3608
3693
|
* // "kind": "my_kind",
|
|
3694
|
+
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
3609
3695
|
* // "masterInstanceName": "my_masterInstanceName",
|
|
3610
3696
|
* // "maxDiskSize": "my_maxDiskSize",
|
|
3611
3697
|
* // "name": "my_name",
|
|
@@ -3764,10 +3850,12 @@ export declare namespace sqladmin_v1 {
|
|
|
3764
3850
|
* requestBody: {
|
|
3765
3851
|
* // request body parameters
|
|
3766
3852
|
* // {
|
|
3853
|
+
* // "availableMaintenanceVersions": [],
|
|
3767
3854
|
* // "backendType": "my_backendType",
|
|
3768
3855
|
* // "connectionName": "my_connectionName",
|
|
3769
3856
|
* // "createTime": "my_createTime",
|
|
3770
3857
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
3858
|
+
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
3771
3859
|
* // "databaseVersion": "my_databaseVersion",
|
|
3772
3860
|
* // "diskEncryptionConfiguration": {},
|
|
3773
3861
|
* // "diskEncryptionStatus": {},
|
|
@@ -3778,6 +3866,7 @@ export declare namespace sqladmin_v1 {
|
|
|
3778
3866
|
* // "ipAddresses": [],
|
|
3779
3867
|
* // "ipv6Address": "my_ipv6Address",
|
|
3780
3868
|
* // "kind": "my_kind",
|
|
3869
|
+
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
3781
3870
|
* // "masterInstanceName": "my_masterInstanceName",
|
|
3782
3871
|
* // "maxDiskSize": "my_maxDiskSize",
|
|
3783
3872
|
* // "name": "my_name",
|
|
@@ -4011,10 +4100,12 @@ export declare namespace sqladmin_v1 {
|
|
|
4011
4100
|
* requestBody: {
|
|
4012
4101
|
* // request body parameters
|
|
4013
4102
|
* // {
|
|
4103
|
+
* // "availableMaintenanceVersions": [],
|
|
4014
4104
|
* // "backendType": "my_backendType",
|
|
4015
4105
|
* // "connectionName": "my_connectionName",
|
|
4016
4106
|
* // "createTime": "my_createTime",
|
|
4017
4107
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
4108
|
+
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
4018
4109
|
* // "databaseVersion": "my_databaseVersion",
|
|
4019
4110
|
* // "diskEncryptionConfiguration": {},
|
|
4020
4111
|
* // "diskEncryptionStatus": {},
|
|
@@ -4025,6 +4116,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4025
4116
|
* // "ipAddresses": [],
|
|
4026
4117
|
* // "ipv6Address": "my_ipv6Address",
|
|
4027
4118
|
* // "kind": "my_kind",
|
|
4119
|
+
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
4028
4120
|
* // "masterInstanceName": "my_masterInstanceName",
|
|
4029
4121
|
* // "maxDiskSize": "my_maxDiskSize",
|
|
4030
4122
|
* // "name": "my_name",
|
|
@@ -4759,10 +4851,12 @@ export declare namespace sqladmin_v1 {
|
|
|
4759
4851
|
* requestBody: {
|
|
4760
4852
|
* // request body parameters
|
|
4761
4853
|
* // {
|
|
4854
|
+
* // "availableMaintenanceVersions": [],
|
|
4762
4855
|
* // "backendType": "my_backendType",
|
|
4763
4856
|
* // "connectionName": "my_connectionName",
|
|
4764
4857
|
* // "createTime": "my_createTime",
|
|
4765
4858
|
* // "currentDiskSize": "my_currentDiskSize",
|
|
4859
|
+
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
4766
4860
|
* // "databaseVersion": "my_databaseVersion",
|
|
4767
4861
|
* // "diskEncryptionConfiguration": {},
|
|
4768
4862
|
* // "diskEncryptionStatus": {},
|
|
@@ -4773,6 +4867,7 @@ export declare namespace sqladmin_v1 {
|
|
|
4773
4867
|
* // "ipAddresses": [],
|
|
4774
4868
|
* // "ipv6Address": "my_ipv6Address",
|
|
4775
4869
|
* // "kind": "my_kind",
|
|
4870
|
+
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
4776
4871
|
* // "masterInstanceName": "my_masterInstanceName",
|
|
4777
4872
|
* // "maxDiskSize": "my_maxDiskSize",
|
|
4778
4873
|
* // "name": "my_name",
|
|
@@ -6000,7 +6095,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6000
6095
|
context: APIRequestContext;
|
|
6001
6096
|
constructor(context: APIRequestContext);
|
|
6002
6097
|
/**
|
|
6003
|
-
* Lists all available machine types (tiers) for Cloud SQL, for example, db-custom-1-3840
|
|
6098
|
+
* Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For more information, see https://cloud.google.com/sql/pricing.
|
|
6004
6099
|
* @example
|
|
6005
6100
|
* ```js
|
|
6006
6101
|
* // Before running the sample:
|
|
@@ -6194,6 +6289,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6194
6289
|
* // "kind": "my_kind",
|
|
6195
6290
|
* // "name": "my_name",
|
|
6196
6291
|
* // "password": "my_password",
|
|
6292
|
+
* // "passwordPolicy": {},
|
|
6197
6293
|
* // "project": "my_project",
|
|
6198
6294
|
* // "sqlserverUserDetails": {},
|
|
6199
6295
|
* // "type": "my_type"
|
|
@@ -6353,6 +6449,7 @@ export declare namespace sqladmin_v1 {
|
|
|
6353
6449
|
* // "kind": "my_kind",
|
|
6354
6450
|
* // "name": "my_name",
|
|
6355
6451
|
* // "password": "my_password",
|
|
6452
|
+
* // "passwordPolicy": {},
|
|
6356
6453
|
* // "project": "my_project",
|
|
6357
6454
|
* // "sqlserverUserDetails": {},
|
|
6358
6455
|
* // "type": "my_type"
|