@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20250117 → 0.0.20250205
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/index.d.ts +341 -34
- package/package.json +1 -1
- package/readme.md +27 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250205
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load Cloud SQL Admin API v1 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://sqladmin.googleapis.com/$discovery/rest?version=v1'
|
|
19
|
+
urlOrObject: 'https://sqladmin.googleapis.com/$discovery/rest?version=v1',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'sqladmin', version: 'v1'): Promise<void>;
|
|
@@ -64,6 +64,48 @@ declare namespace gapi.client {
|
|
|
64
64
|
/** The database version name. For MySQL 8.0, this string provides the database major and minor version. */
|
|
65
65
|
name?: string;
|
|
66
66
|
}
|
|
67
|
+
interface Backup {
|
|
68
|
+
/** 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. */
|
|
69
|
+
backupInterval?: Interval;
|
|
70
|
+
/** Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. */
|
|
71
|
+
backupKind?: string;
|
|
72
|
+
/** Output only. The mapping to backup run resource used for IAM validations. */
|
|
73
|
+
backupRun?: string;
|
|
74
|
+
/** The description of this backup. */
|
|
75
|
+
description?: string;
|
|
76
|
+
/** Output only. Information about why the backup operation fails (for example, when the backup state fails). */
|
|
77
|
+
error?: OperationError;
|
|
78
|
+
/** Backup expiration time. A UTC timestamp of when this backup expired. */
|
|
79
|
+
expiryTime?: string;
|
|
80
|
+
/** The name of the source database instance. */
|
|
81
|
+
instance?: string;
|
|
82
|
+
/** Output only. This is always `sql#backup`. */
|
|
83
|
+
kind?: string;
|
|
84
|
+
/** Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption. */
|
|
85
|
+
kmsKey?: string;
|
|
86
|
+
/** 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. */
|
|
87
|
+
kmsKeyVersion?: string;
|
|
88
|
+
/** The storage location of the backups. The location can be multi-regional. */
|
|
89
|
+
location?: string;
|
|
90
|
+
/** Output only. The maximum chargeable bytes for the backup. */
|
|
91
|
+
maxChargeableBytes?: string;
|
|
92
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup} */
|
|
93
|
+
name?: string;
|
|
94
|
+
/** Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use. */
|
|
95
|
+
satisfiesPzi?: boolean;
|
|
96
|
+
/** Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use. */
|
|
97
|
+
satisfiesPzs?: boolean;
|
|
98
|
+
/** Output only. The URI of this resource. */
|
|
99
|
+
selfLink?: string;
|
|
100
|
+
/** Output only. The status of this backup. */
|
|
101
|
+
state?: string;
|
|
102
|
+
/** 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 restores to the instance won't happen. */
|
|
103
|
+
timeZone?: string;
|
|
104
|
+
/** Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7 means 7 days. */
|
|
105
|
+
ttlDays?: string;
|
|
106
|
+
/** Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”. */
|
|
107
|
+
type?: string;
|
|
108
|
+
}
|
|
67
109
|
interface BackupConfiguration {
|
|
68
110
|
/** Backup retention settings. */
|
|
69
111
|
backupRetentionSettings?: BackupRetentionSettings;
|
|
@@ -91,6 +133,8 @@ declare namespace gapi.client {
|
|
|
91
133
|
backupId?: string;
|
|
92
134
|
/** This is always `sql#backupContext`. */
|
|
93
135
|
kind?: string;
|
|
136
|
+
/** The name of the backup. Format: projects/{project}/backups/{backup} */
|
|
137
|
+
name?: string;
|
|
94
138
|
}
|
|
95
139
|
interface BackupReencryptionConfig {
|
|
96
140
|
/** Backup re-encryption limit */
|
|
@@ -259,6 +303,8 @@ declare namespace gapi.client {
|
|
|
259
303
|
gceZone?: string;
|
|
260
304
|
/** Gemini instance configuration. */
|
|
261
305
|
geminiConfig?: GeminiInstanceConfig;
|
|
306
|
+
/** 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. */
|
|
307
|
+
includeReplicasForMajorVersionUpgrade?: boolean;
|
|
262
308
|
/** The instance type. */
|
|
263
309
|
instanceType?: string;
|
|
264
310
|
/** The assigned IP addresses for the instance. */
|
|
@@ -364,7 +410,7 @@ declare namespace gapi.client {
|
|
|
364
410
|
caCertificate?: string;
|
|
365
411
|
/** PEM representation of the replica's x509 certificate. */
|
|
366
412
|
clientCertificate?: string;
|
|
367
|
-
/** PEM representation of the replica's private key. The
|
|
413
|
+
/** 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. */
|
|
368
414
|
clientKey?: string;
|
|
369
415
|
/** This is always `sql#demoteMasterMysqlReplicaConfiguration`. */
|
|
370
416
|
kind?: string;
|
|
@@ -456,6 +502,17 @@ declare namespace gapi.client {
|
|
|
456
502
|
/** Optional. The number of threads to use for parallel export. */
|
|
457
503
|
threads?: number;
|
|
458
504
|
};
|
|
505
|
+
/** Optional. Export parameters specific to SQL Server TDE certificates */
|
|
506
|
+
tdeExportOptions?: {
|
|
507
|
+
/** Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances. */
|
|
508
|
+
certificatePath?: string;
|
|
509
|
+
/** Required. Certificate name. Applicable only for SQL Server instances. */
|
|
510
|
+
name?: string;
|
|
511
|
+
/** Required. Password that encrypts the private key. */
|
|
512
|
+
privateKeyPassword?: string;
|
|
513
|
+
/** Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances. */
|
|
514
|
+
privateKeyPath?: string;
|
|
515
|
+
};
|
|
459
516
|
/** 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. */
|
|
460
517
|
uri?: string;
|
|
461
518
|
}
|
|
@@ -533,6 +590,8 @@ declare namespace gapi.client {
|
|
|
533
590
|
encryptionOptions?: {
|
|
534
591
|
/** Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. */
|
|
535
592
|
certPath?: string;
|
|
593
|
+
/** Optional. Whether the imported file remains encrypted. */
|
|
594
|
+
keepEncrypted?: boolean;
|
|
536
595
|
/** Password that encrypts the private key */
|
|
537
596
|
pvkPassword?: string;
|
|
538
597
|
/** Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. */
|
|
@@ -586,6 +645,17 @@ declare namespace gapi.client {
|
|
|
586
645
|
/** Optional. The number of threads to use for parallel import. */
|
|
587
646
|
threads?: number;
|
|
588
647
|
};
|
|
648
|
+
/** Optional. Import parameters specific to SQL Server TDE certificates */
|
|
649
|
+
tdeImportOptions?: {
|
|
650
|
+
/** Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances. */
|
|
651
|
+
certificatePath?: string;
|
|
652
|
+
/** Required. Certificate name. Applicable only for SQL Server instances. */
|
|
653
|
+
name?: string;
|
|
654
|
+
/** Required. Password that encrypts the private key. */
|
|
655
|
+
privateKeyPassword?: string;
|
|
656
|
+
/** Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances. */
|
|
657
|
+
privateKeyPath?: string;
|
|
658
|
+
};
|
|
589
659
|
/** 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. */
|
|
590
660
|
uri?: string;
|
|
591
661
|
}
|
|
@@ -669,8 +739,12 @@ declare namespace gapi.client {
|
|
|
669
739
|
backupReencryptionConfig?: BackupReencryptionConfig;
|
|
670
740
|
}
|
|
671
741
|
interface InstancesRestoreBackupRequest {
|
|
742
|
+
/** 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. */
|
|
743
|
+
backup?: string;
|
|
672
744
|
/** Parameters required to perform the restore backup operation. */
|
|
673
745
|
restoreBackupContext?: RestoreBackupContext;
|
|
746
|
+
/** Optional. By using this parameter, Cloud SQL overrides the instance settings existed at time of backup with the instance settings that you want to restore. 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. */
|
|
747
|
+
restoreInstanceSettings?: DatabaseInstance;
|
|
674
748
|
}
|
|
675
749
|
interface InstancesRotateServerCaRequest {
|
|
676
750
|
/** Contains details about the rotate server CA operation. */
|
|
@@ -684,6 +758,12 @@ declare namespace gapi.client {
|
|
|
684
758
|
/** Contains details about the truncate log operation. */
|
|
685
759
|
truncateLogContext?: TruncateLogContext;
|
|
686
760
|
}
|
|
761
|
+
interface Interval {
|
|
762
|
+
/** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. */
|
|
763
|
+
endTime?: string;
|
|
764
|
+
/** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. */
|
|
765
|
+
startTime?: string;
|
|
766
|
+
}
|
|
687
767
|
interface IpConfiguration {
|
|
688
768
|
/** The name of the allocated ip range for the private ip Cloud SQL 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])?.` */
|
|
689
769
|
allocatedIpRange?: string;
|
|
@@ -716,6 +796,14 @@ declare namespace gapi.client {
|
|
|
716
796
|
/** 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. */
|
|
717
797
|
type?: string;
|
|
718
798
|
}
|
|
799
|
+
interface ListBackupsResponse {
|
|
800
|
+
/** A list of backups. */
|
|
801
|
+
backups?: Backup[];
|
|
802
|
+
/** 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. */
|
|
803
|
+
nextPageToken?: string;
|
|
804
|
+
/** If a region isn't unavailable or if an unknown error occurs, then a warning message is returned. */
|
|
805
|
+
warnings?: ApiWarning[];
|
|
806
|
+
}
|
|
719
807
|
interface LocationPreference {
|
|
720
808
|
/** 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. */
|
|
721
809
|
followGaeApplication?: string;
|
|
@@ -741,7 +829,7 @@ declare namespace gapi.client {
|
|
|
741
829
|
caCertificate?: string;
|
|
742
830
|
/** PEM representation of the replica's x509 certificate. */
|
|
743
831
|
clientCertificate?: string;
|
|
744
|
-
/** PEM representation of the replica's private key. The
|
|
832
|
+
/** PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. */
|
|
745
833
|
clientKey?: string;
|
|
746
834
|
/** Seconds to wait between connect retries. MySQL's default is 60 seconds. */
|
|
747
835
|
connectRetryInterval?: number;
|
|
@@ -769,7 +857,7 @@ declare namespace gapi.client {
|
|
|
769
857
|
caCertificate?: string;
|
|
770
858
|
/** PEM representation of the replica's x509 certificate. */
|
|
771
859
|
clientCertificate?: string;
|
|
772
|
-
/** PEM representation of the replica's private key. The
|
|
860
|
+
/** PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. */
|
|
773
861
|
clientKey?: string;
|
|
774
862
|
/** The dump file to create the Cloud SQL replica. */
|
|
775
863
|
dumpFilePath?: string;
|
|
@@ -1398,7 +1486,7 @@ declare namespace gapi.client {
|
|
|
1398
1486
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1399
1487
|
uploadType?: string;
|
|
1400
1488
|
},
|
|
1401
|
-
body: BackupRun
|
|
1489
|
+
body: BackupRun,
|
|
1402
1490
|
): Request<Operation>;
|
|
1403
1491
|
/** Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. */
|
|
1404
1492
|
list(request?: {
|
|
@@ -1434,6 +1522,215 @@ declare namespace gapi.client {
|
|
|
1434
1522
|
uploadType?: string;
|
|
1435
1523
|
}): Request<BackupRunsListResponse>;
|
|
1436
1524
|
}
|
|
1525
|
+
interface BackupsResource {
|
|
1526
|
+
/** Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups. */
|
|
1527
|
+
CreateBackup(request: {
|
|
1528
|
+
/** V1 error format. */
|
|
1529
|
+
'$.xgafv'?: string;
|
|
1530
|
+
/** OAuth access token. */
|
|
1531
|
+
access_token?: string;
|
|
1532
|
+
/** Data format for response. */
|
|
1533
|
+
alt?: string;
|
|
1534
|
+
/** JSONP */
|
|
1535
|
+
callback?: string;
|
|
1536
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1537
|
+
fields?: string;
|
|
1538
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1539
|
+
key?: string;
|
|
1540
|
+
/** OAuth 2.0 token for the current user. */
|
|
1541
|
+
oauth_token?: string;
|
|
1542
|
+
/** Required. The parent resource where this backup is created. Format: projects/{project} */
|
|
1543
|
+
parent: string;
|
|
1544
|
+
/** Returns response with indentations and line breaks. */
|
|
1545
|
+
prettyPrint?: boolean;
|
|
1546
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1547
|
+
quotaUser?: string;
|
|
1548
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1549
|
+
upload_protocol?: string;
|
|
1550
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1551
|
+
uploadType?: string;
|
|
1552
|
+
/** Request body */
|
|
1553
|
+
resource: Backup;
|
|
1554
|
+
}): Request<Operation>;
|
|
1555
|
+
CreateBackup(
|
|
1556
|
+
request: {
|
|
1557
|
+
/** V1 error format. */
|
|
1558
|
+
'$.xgafv'?: string;
|
|
1559
|
+
/** OAuth access token. */
|
|
1560
|
+
access_token?: string;
|
|
1561
|
+
/** Data format for response. */
|
|
1562
|
+
alt?: string;
|
|
1563
|
+
/** JSONP */
|
|
1564
|
+
callback?: string;
|
|
1565
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1566
|
+
fields?: string;
|
|
1567
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1568
|
+
key?: string;
|
|
1569
|
+
/** OAuth 2.0 token for the current user. */
|
|
1570
|
+
oauth_token?: string;
|
|
1571
|
+
/** Required. The parent resource where this backup is created. Format: projects/{project} */
|
|
1572
|
+
parent: string;
|
|
1573
|
+
/** Returns response with indentations and line breaks. */
|
|
1574
|
+
prettyPrint?: boolean;
|
|
1575
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1576
|
+
quotaUser?: string;
|
|
1577
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1578
|
+
upload_protocol?: string;
|
|
1579
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1580
|
+
uploadType?: string;
|
|
1581
|
+
},
|
|
1582
|
+
body: Backup,
|
|
1583
|
+
): Request<Operation>;
|
|
1584
|
+
/** Deletes the backup. */
|
|
1585
|
+
DeleteBackup(request?: {
|
|
1586
|
+
/** V1 error format. */
|
|
1587
|
+
'$.xgafv'?: string;
|
|
1588
|
+
/** OAuth access token. */
|
|
1589
|
+
access_token?: string;
|
|
1590
|
+
/** Data format for response. */
|
|
1591
|
+
alt?: string;
|
|
1592
|
+
/** JSONP */
|
|
1593
|
+
callback?: string;
|
|
1594
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1595
|
+
fields?: string;
|
|
1596
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1597
|
+
key?: string;
|
|
1598
|
+
/** Required. The name of the backup to delete. Format: projects/{project}/backups/{backup} */
|
|
1599
|
+
name: string;
|
|
1600
|
+
/** OAuth 2.0 token for the current user. */
|
|
1601
|
+
oauth_token?: string;
|
|
1602
|
+
/** Returns response with indentations and line breaks. */
|
|
1603
|
+
prettyPrint?: boolean;
|
|
1604
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1605
|
+
quotaUser?: string;
|
|
1606
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1607
|
+
upload_protocol?: string;
|
|
1608
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1609
|
+
uploadType?: string;
|
|
1610
|
+
}): Request<Operation>;
|
|
1611
|
+
/** Retrieves a resource containing information about a backup. */
|
|
1612
|
+
GetBackup(request?: {
|
|
1613
|
+
/** V1 error format. */
|
|
1614
|
+
'$.xgafv'?: string;
|
|
1615
|
+
/** OAuth access token. */
|
|
1616
|
+
access_token?: string;
|
|
1617
|
+
/** Data format for response. */
|
|
1618
|
+
alt?: string;
|
|
1619
|
+
/** JSONP */
|
|
1620
|
+
callback?: string;
|
|
1621
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1622
|
+
fields?: string;
|
|
1623
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1624
|
+
key?: string;
|
|
1625
|
+
/** Required. The name of the backup to retrieve. Format: projects/{project}/backups/{backup} */
|
|
1626
|
+
name: string;
|
|
1627
|
+
/** OAuth 2.0 token for the current user. */
|
|
1628
|
+
oauth_token?: string;
|
|
1629
|
+
/** Returns response with indentations and line breaks. */
|
|
1630
|
+
prettyPrint?: boolean;
|
|
1631
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1632
|
+
quotaUser?: string;
|
|
1633
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1634
|
+
upload_protocol?: string;
|
|
1635
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1636
|
+
uploadType?: string;
|
|
1637
|
+
}): Request<Backup>;
|
|
1638
|
+
/** Lists all backups associated with the project. */
|
|
1639
|
+
ListBackups(request?: {
|
|
1640
|
+
/** V1 error format. */
|
|
1641
|
+
'$.xgafv'?: string;
|
|
1642
|
+
/** OAuth access token. */
|
|
1643
|
+
access_token?: string;
|
|
1644
|
+
/** Data format for response. */
|
|
1645
|
+
alt?: string;
|
|
1646
|
+
/** JSONP */
|
|
1647
|
+
callback?: string;
|
|
1648
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1649
|
+
fields?: string;
|
|
1650
|
+
/** Multiple filter queries are separated by spaces. For example, 'instance:abc type:FINAL. You can filter by type, instance name, creation time or location. */
|
|
1651
|
+
filter?: string;
|
|
1652
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1653
|
+
key?: string;
|
|
1654
|
+
/** OAuth 2.0 token for the current user. */
|
|
1655
|
+
oauth_token?: string;
|
|
1656
|
+
/** 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. */
|
|
1657
|
+
pageSize?: number;
|
|
1658
|
+
/** 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. */
|
|
1659
|
+
pageToken?: string;
|
|
1660
|
+
/** Required. The parent that owns this collection of backups. Format: projects/{project} */
|
|
1661
|
+
parent: string;
|
|
1662
|
+
/** Returns response with indentations and line breaks. */
|
|
1663
|
+
prettyPrint?: boolean;
|
|
1664
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1665
|
+
quotaUser?: string;
|
|
1666
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1667
|
+
upload_protocol?: string;
|
|
1668
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1669
|
+
uploadType?: string;
|
|
1670
|
+
}): Request<ListBackupsResponse>;
|
|
1671
|
+
/** Updates the retention period and description of the backup. You can use this API to update final backups only. */
|
|
1672
|
+
UpdateBackup(request: {
|
|
1673
|
+
/** V1 error format. */
|
|
1674
|
+
'$.xgafv'?: string;
|
|
1675
|
+
/** OAuth access token. */
|
|
1676
|
+
access_token?: string;
|
|
1677
|
+
/** Data format for response. */
|
|
1678
|
+
alt?: string;
|
|
1679
|
+
/** JSONP */
|
|
1680
|
+
callback?: string;
|
|
1681
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1682
|
+
fields?: string;
|
|
1683
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1684
|
+
key?: string;
|
|
1685
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup} */
|
|
1686
|
+
name: string;
|
|
1687
|
+
/** OAuth 2.0 token for the current user. */
|
|
1688
|
+
oauth_token?: string;
|
|
1689
|
+
/** Returns response with indentations and line breaks. */
|
|
1690
|
+
prettyPrint?: boolean;
|
|
1691
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1692
|
+
quotaUser?: string;
|
|
1693
|
+
/** The list of fields that you can update. You can update only the description and retention period of the final backup. */
|
|
1694
|
+
updateMask?: string;
|
|
1695
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1696
|
+
upload_protocol?: string;
|
|
1697
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1698
|
+
uploadType?: string;
|
|
1699
|
+
/** Request body */
|
|
1700
|
+
resource: Backup;
|
|
1701
|
+
}): Request<Operation>;
|
|
1702
|
+
UpdateBackup(
|
|
1703
|
+
request: {
|
|
1704
|
+
/** V1 error format. */
|
|
1705
|
+
'$.xgafv'?: string;
|
|
1706
|
+
/** OAuth access token. */
|
|
1707
|
+
access_token?: string;
|
|
1708
|
+
/** Data format for response. */
|
|
1709
|
+
alt?: string;
|
|
1710
|
+
/** JSONP */
|
|
1711
|
+
callback?: string;
|
|
1712
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1713
|
+
fields?: string;
|
|
1714
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1715
|
+
key?: string;
|
|
1716
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup} */
|
|
1717
|
+
name: string;
|
|
1718
|
+
/** OAuth 2.0 token for the current user. */
|
|
1719
|
+
oauth_token?: string;
|
|
1720
|
+
/** Returns response with indentations and line breaks. */
|
|
1721
|
+
prettyPrint?: boolean;
|
|
1722
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1723
|
+
quotaUser?: string;
|
|
1724
|
+
/** The list of fields that you can update. You can update only the description and retention period of the final backup. */
|
|
1725
|
+
updateMask?: string;
|
|
1726
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1727
|
+
upload_protocol?: string;
|
|
1728
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1729
|
+
uploadType?: string;
|
|
1730
|
+
},
|
|
1731
|
+
body: Backup,
|
|
1732
|
+
): Request<Operation>;
|
|
1733
|
+
}
|
|
1437
1734
|
interface ConnectResource {
|
|
1438
1735
|
/** Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database. */
|
|
1439
1736
|
generateEphemeralCert(request: {
|
|
@@ -1495,7 +1792,7 @@ declare namespace gapi.client {
|
|
|
1495
1792
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1496
1793
|
uploadType?: string;
|
|
1497
1794
|
},
|
|
1498
|
-
body: GenerateEphemeralCertRequest
|
|
1795
|
+
body: GenerateEphemeralCertRequest,
|
|
1499
1796
|
): Request<GenerateEphemeralCertResponse>;
|
|
1500
1797
|
/** Retrieves connect settings about a Cloud SQL instance. */
|
|
1501
1798
|
get(request?: {
|
|
@@ -1652,7 +1949,7 @@ declare namespace gapi.client {
|
|
|
1652
1949
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1653
1950
|
uploadType?: string;
|
|
1654
1951
|
},
|
|
1655
|
-
body: Database
|
|
1952
|
+
body: Database,
|
|
1656
1953
|
): Request<Operation>;
|
|
1657
1954
|
/** Lists databases in the specified Cloud SQL instance. */
|
|
1658
1955
|
list(request?: {
|
|
@@ -1747,7 +2044,7 @@ declare namespace gapi.client {
|
|
|
1747
2044
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1748
2045
|
uploadType?: string;
|
|
1749
2046
|
},
|
|
1750
|
-
body: Database
|
|
2047
|
+
body: Database,
|
|
1751
2048
|
): Request<Operation>;
|
|
1752
2049
|
/** Updates a resource containing information about a database inside a Cloud SQL instance. */
|
|
1753
2050
|
update(request: {
|
|
@@ -1813,7 +2110,7 @@ declare namespace gapi.client {
|
|
|
1813
2110
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1814
2111
|
uploadType?: string;
|
|
1815
2112
|
},
|
|
1816
|
-
body: Database
|
|
2113
|
+
body: Database,
|
|
1817
2114
|
): Request<Operation>;
|
|
1818
2115
|
}
|
|
1819
2116
|
interface FlagsResource {
|
|
@@ -1906,7 +2203,7 @@ declare namespace gapi.client {
|
|
|
1906
2203
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1907
2204
|
uploadType?: string;
|
|
1908
2205
|
},
|
|
1909
|
-
body: InstancesAcquireSsrsLeaseRequest
|
|
2206
|
+
body: InstancesAcquireSsrsLeaseRequest,
|
|
1910
2207
|
): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
1911
2208
|
/** Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate. */
|
|
1912
2209
|
addServerCa(request?: {
|
|
@@ -2026,7 +2323,7 @@ declare namespace gapi.client {
|
|
|
2026
2323
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2027
2324
|
uploadType?: string;
|
|
2028
2325
|
},
|
|
2029
|
-
body: InstancesCloneRequest
|
|
2326
|
+
body: InstancesCloneRequest,
|
|
2030
2327
|
): Request<Operation>;
|
|
2031
2328
|
/** Deletes a Cloud SQL instance. */
|
|
2032
2329
|
delete(request?: {
|
|
@@ -2038,8 +2335,16 @@ declare namespace gapi.client {
|
|
|
2038
2335
|
alt?: string;
|
|
2039
2336
|
/** JSONP */
|
|
2040
2337
|
callback?: string;
|
|
2338
|
+
/** Flag to opt-in for final backup. By default, it is turned off. */
|
|
2339
|
+
enableFinalBackup?: boolean;
|
|
2041
2340
|
/** Selector specifying which fields to include in a partial response. */
|
|
2042
2341
|
fields?: string;
|
|
2342
|
+
/** Optional. The description of the final backup. */
|
|
2343
|
+
finalBackupDescription?: string;
|
|
2344
|
+
/** Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired. */
|
|
2345
|
+
finalBackupExpiryTime?: string;
|
|
2346
|
+
/** Optional. Retention period of the final backup. */
|
|
2347
|
+
finalBackupTtlDays?: string;
|
|
2043
2348
|
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
2044
2349
|
instance: string;
|
|
2045
2350
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
@@ -2117,7 +2422,7 @@ declare namespace gapi.client {
|
|
|
2117
2422
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2118
2423
|
uploadType?: string;
|
|
2119
2424
|
},
|
|
2120
|
-
body: InstancesDemoteRequest
|
|
2425
|
+
body: InstancesDemoteRequest,
|
|
2121
2426
|
): Request<Operation>;
|
|
2122
2427
|
/** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
|
|
2123
2428
|
demoteMaster(request: {
|
|
@@ -2179,7 +2484,7 @@ declare namespace gapi.client {
|
|
|
2179
2484
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2180
2485
|
uploadType?: string;
|
|
2181
2486
|
},
|
|
2182
|
-
body: InstancesDemoteMasterRequest
|
|
2487
|
+
body: InstancesDemoteMasterRequest,
|
|
2183
2488
|
): Request<Operation>;
|
|
2184
2489
|
/** Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file. */
|
|
2185
2490
|
export(request: {
|
|
@@ -2241,7 +2546,7 @@ declare namespace gapi.client {
|
|
|
2241
2546
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2242
2547
|
uploadType?: string;
|
|
2243
2548
|
},
|
|
2244
|
-
body: InstancesExportRequest
|
|
2549
|
+
body: InstancesExportRequest,
|
|
2245
2550
|
): Request<Operation>;
|
|
2246
2551
|
/** Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance. */
|
|
2247
2552
|
failover(request: {
|
|
@@ -2303,7 +2608,7 @@ declare namespace gapi.client {
|
|
|
2303
2608
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2304
2609
|
uploadType?: string;
|
|
2305
2610
|
},
|
|
2306
|
-
body: InstancesFailoverRequest
|
|
2611
|
+
body: InstancesFailoverRequest,
|
|
2307
2612
|
): Request<Operation>;
|
|
2308
2613
|
/** Retrieves a resource containing information about a Cloud SQL instance. */
|
|
2309
2614
|
get(request?: {
|
|
@@ -2394,7 +2699,7 @@ declare namespace gapi.client {
|
|
|
2394
2699
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2395
2700
|
uploadType?: string;
|
|
2396
2701
|
},
|
|
2397
|
-
body: InstancesImportRequest
|
|
2702
|
+
body: InstancesImportRequest,
|
|
2398
2703
|
): Request<Operation>;
|
|
2399
2704
|
/** Creates a new Cloud SQL instance. */
|
|
2400
2705
|
insert(request: {
|
|
@@ -2452,7 +2757,7 @@ declare namespace gapi.client {
|
|
|
2452
2757
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2453
2758
|
uploadType?: string;
|
|
2454
2759
|
},
|
|
2455
|
-
body: DatabaseInstance
|
|
2760
|
+
body: DatabaseInstance,
|
|
2456
2761
|
): Request<Operation>;
|
|
2457
2762
|
/** Lists instances under a given project. */
|
|
2458
2763
|
list(request?: {
|
|
@@ -2605,7 +2910,7 @@ declare namespace gapi.client {
|
|
|
2605
2910
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2606
2911
|
uploadType?: string;
|
|
2607
2912
|
},
|
|
2608
|
-
body: DatabaseInstance
|
|
2913
|
+
body: DatabaseInstance,
|
|
2609
2914
|
): Request<Operation>;
|
|
2610
2915
|
/** Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart. */
|
|
2611
2916
|
promoteReplica(request?: {
|
|
@@ -2698,7 +3003,7 @@ declare namespace gapi.client {
|
|
|
2698
3003
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2699
3004
|
uploadType?: string;
|
|
2700
3005
|
},
|
|
2701
|
-
body: InstancesReencryptRequest
|
|
3006
|
+
body: InstancesReencryptRequest,
|
|
2702
3007
|
): Request<Operation>;
|
|
2703
3008
|
/** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
|
|
2704
3009
|
releaseSsrsLease(request?: {
|
|
@@ -2847,7 +3152,7 @@ declare namespace gapi.client {
|
|
|
2847
3152
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2848
3153
|
uploadType?: string;
|
|
2849
3154
|
},
|
|
2850
|
-
body: InstancesRestoreBackupRequest
|
|
3155
|
+
body: InstancesRestoreBackupRequest,
|
|
2851
3156
|
): Request<Operation>;
|
|
2852
3157
|
/** Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate. */
|
|
2853
3158
|
rotateServerCa(request: {
|
|
@@ -2909,7 +3214,7 @@ declare namespace gapi.client {
|
|
|
2909
3214
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2910
3215
|
uploadType?: string;
|
|
2911
3216
|
},
|
|
2912
|
-
body: InstancesRotateServerCaRequest
|
|
3217
|
+
body: InstancesRotateServerCaRequest,
|
|
2913
3218
|
): Request<Operation>;
|
|
2914
3219
|
/** Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead. */
|
|
2915
3220
|
RotateServerCertificate(request: {
|
|
@@ -2971,7 +3276,7 @@ declare namespace gapi.client {
|
|
|
2971
3276
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2972
3277
|
uploadType?: string;
|
|
2973
3278
|
},
|
|
2974
|
-
body: InstancesRotateServerCertificateRequest
|
|
3279
|
+
body: InstancesRotateServerCertificateRequest,
|
|
2975
3280
|
): Request<Operation>;
|
|
2976
3281
|
/** Starts the replication in the read replica instance. */
|
|
2977
3282
|
startReplica(request?: {
|
|
@@ -3122,7 +3427,7 @@ declare namespace gapi.client {
|
|
|
3122
3427
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3123
3428
|
uploadType?: string;
|
|
3124
3429
|
},
|
|
3125
|
-
body: InstancesTruncateLogRequest
|
|
3430
|
+
body: InstancesTruncateLogRequest,
|
|
3126
3431
|
): Request<Operation>;
|
|
3127
3432
|
/** Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart. */
|
|
3128
3433
|
update(request: {
|
|
@@ -3184,7 +3489,7 @@ declare namespace gapi.client {
|
|
|
3184
3489
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3185
3490
|
uploadType?: string;
|
|
3186
3491
|
},
|
|
3187
|
-
body: DatabaseInstance
|
|
3492
|
+
body: DatabaseInstance,
|
|
3188
3493
|
): Request<Operation>;
|
|
3189
3494
|
}
|
|
3190
3495
|
interface OperationsResource {
|
|
@@ -3399,7 +3704,7 @@ declare namespace gapi.client {
|
|
|
3399
3704
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3400
3705
|
uploadType?: string;
|
|
3401
3706
|
},
|
|
3402
|
-
body: PerformDiskShrinkContext
|
|
3707
|
+
body: PerformDiskShrinkContext,
|
|
3403
3708
|
): Request<Operation>;
|
|
3404
3709
|
/** Reschedules the maintenance on the given instance. */
|
|
3405
3710
|
rescheduleMaintenance(request: {
|
|
@@ -3461,7 +3766,7 @@ declare namespace gapi.client {
|
|
|
3461
3766
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3462
3767
|
uploadType?: string;
|
|
3463
3768
|
},
|
|
3464
|
-
body: SqlInstancesRescheduleMaintenanceRequestBody
|
|
3769
|
+
body: SqlInstancesRescheduleMaintenanceRequestBody,
|
|
3465
3770
|
): Request<Operation>;
|
|
3466
3771
|
/** Reset Replica Size to primary instance disk size. */
|
|
3467
3772
|
resetReplicaSize(request: {
|
|
@@ -3523,7 +3828,7 @@ declare namespace gapi.client {
|
|
|
3523
3828
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3524
3829
|
uploadType?: string;
|
|
3525
3830
|
},
|
|
3526
|
-
body: SqlInstancesResetReplicaSizeRequest
|
|
3831
|
+
body: SqlInstancesResetReplicaSizeRequest,
|
|
3527
3832
|
): Request<Operation>;
|
|
3528
3833
|
/** Start External primary instance migration. */
|
|
3529
3834
|
startExternalSync(request: {
|
|
@@ -3585,7 +3890,7 @@ declare namespace gapi.client {
|
|
|
3585
3890
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3586
3891
|
uploadType?: string;
|
|
3587
3892
|
},
|
|
3588
|
-
body: SqlInstancesStartExternalSyncRequest
|
|
3893
|
+
body: SqlInstancesStartExternalSyncRequest,
|
|
3589
3894
|
): Request<Operation>;
|
|
3590
3895
|
/** Verify External primary instance external sync settings. */
|
|
3591
3896
|
verifyExternalSyncSettings(request: {
|
|
@@ -3647,7 +3952,7 @@ declare namespace gapi.client {
|
|
|
3647
3952
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3648
3953
|
uploadType?: string;
|
|
3649
3954
|
},
|
|
3650
|
-
body: SqlInstancesVerifyExternalSyncSettingsRequest
|
|
3955
|
+
body: SqlInstancesVerifyExternalSyncSettingsRequest,
|
|
3651
3956
|
): Request<SqlInstancesVerifyExternalSyncSettingsResponse>;
|
|
3652
3957
|
}
|
|
3653
3958
|
interface ProjectsResource {
|
|
@@ -3714,7 +4019,7 @@ declare namespace gapi.client {
|
|
|
3714
4019
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3715
4020
|
uploadType?: string;
|
|
3716
4021
|
},
|
|
3717
|
-
body: SslCertsCreateEphemeralRequest
|
|
4022
|
+
body: SslCertsCreateEphemeralRequest,
|
|
3718
4023
|
): Request<SslCert>;
|
|
3719
4024
|
/** Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted. */
|
|
3720
4025
|
delete(request?: {
|
|
@@ -3838,7 +4143,7 @@ declare namespace gapi.client {
|
|
|
3838
4143
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3839
4144
|
uploadType?: string;
|
|
3840
4145
|
},
|
|
3841
|
-
body: SslCertsInsertRequest
|
|
4146
|
+
body: SslCertsInsertRequest,
|
|
3842
4147
|
): Request<SslCertsInsertResponse>;
|
|
3843
4148
|
/** Lists all of the current SSL certificates for the instance. */
|
|
3844
4149
|
list(request?: {
|
|
@@ -4026,7 +4331,7 @@ declare namespace gapi.client {
|
|
|
4026
4331
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4027
4332
|
uploadType?: string;
|
|
4028
4333
|
},
|
|
4029
|
-
body: User
|
|
4334
|
+
body: User,
|
|
4030
4335
|
): Request<Operation>;
|
|
4031
4336
|
/** Lists users in the specified Cloud SQL instance. */
|
|
4032
4337
|
list(request?: {
|
|
@@ -4125,10 +4430,12 @@ declare namespace gapi.client {
|
|
|
4125
4430
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4126
4431
|
uploadType?: string;
|
|
4127
4432
|
},
|
|
4128
|
-
body: User
|
|
4433
|
+
body: User,
|
|
4129
4434
|
): Request<Operation>;
|
|
4130
4435
|
}
|
|
4131
4436
|
|
|
4437
|
+
const Backups: BackupsResource;
|
|
4438
|
+
|
|
4132
4439
|
const backupRuns: BackupRunsResource;
|
|
4133
4440
|
|
|
4134
4441
|
const connect: ConnectResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -30,7 +30,7 @@ gapi.client.load(
|
|
|
30
30
|
() => {
|
|
31
31
|
// now we can use:
|
|
32
32
|
// gapi.client.sql
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
34
|
);
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -65,7 +65,7 @@ gapi.auth.authorize(
|
|
|
65
65
|
} else {
|
|
66
66
|
/* handle authorization error */
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
},
|
|
69
69
|
);
|
|
70
70
|
```
|
|
71
71
|
|
|
@@ -106,6 +106,31 @@ await gapi.client.sql.backupRuns.list({
|
|
|
106
106
|
project: 'project',
|
|
107
107
|
});
|
|
108
108
|
|
|
109
|
+
/*
|
|
110
|
+
Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.
|
|
111
|
+
*/
|
|
112
|
+
await gapi.client.sql.Backups.CreateBackup({parent: 'parent'});
|
|
113
|
+
|
|
114
|
+
/*
|
|
115
|
+
Deletes the backup.
|
|
116
|
+
*/
|
|
117
|
+
await gapi.client.sql.Backups.DeleteBackup({name: 'name'});
|
|
118
|
+
|
|
119
|
+
/*
|
|
120
|
+
Retrieves a resource containing information about a backup.
|
|
121
|
+
*/
|
|
122
|
+
await gapi.client.sql.Backups.GetBackup({name: 'name'});
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
Lists all backups associated with the project.
|
|
126
|
+
*/
|
|
127
|
+
await gapi.client.sql.Backups.ListBackups({parent: 'parent'});
|
|
128
|
+
|
|
129
|
+
/*
|
|
130
|
+
Updates the retention period and description of the backup. You can use this API to update final backups only.
|
|
131
|
+
*/
|
|
132
|
+
await gapi.client.sql.Backups.UpdateBackup({name: 'name'});
|
|
133
|
+
|
|
109
134
|
/*
|
|
110
135
|
Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
|
|
111
136
|
*/
|