@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20250129 → 0.0.20250216
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 +309 -1
- package/package.json +1 -1
- package/readme.md +25 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
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=v1beta4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250216
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -68,6 +68,48 @@ declare namespace gapi.client {
|
|
|
68
68
|
/** The database version name. For MySQL 8.0, this string provides the database major and minor version. */
|
|
69
69
|
name?: string;
|
|
70
70
|
}
|
|
71
|
+
interface Backup {
|
|
72
|
+
/** 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. */
|
|
73
|
+
backupInterval?: Interval;
|
|
74
|
+
/** Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. */
|
|
75
|
+
backupKind?: string;
|
|
76
|
+
/** Output only. The mapping to backup run resource used for IAM validations. */
|
|
77
|
+
backupRun?: string;
|
|
78
|
+
/** The description of this backup. */
|
|
79
|
+
description?: string;
|
|
80
|
+
/** Output only. Information about why the backup operation fails (for example, when the backup state fails). */
|
|
81
|
+
error?: OperationError;
|
|
82
|
+
/** Backup expiration time. A UTC timestamp of when this resource expired. */
|
|
83
|
+
expiryTime?: string;
|
|
84
|
+
/** The name of the database instance. */
|
|
85
|
+
instance?: string;
|
|
86
|
+
/** Output only. This is always `sql#backup`. */
|
|
87
|
+
kind?: string;
|
|
88
|
+
/** Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption. */
|
|
89
|
+
kmsKey?: string;
|
|
90
|
+
/** 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. */
|
|
91
|
+
kmsKeyVersion?: string;
|
|
92
|
+
/** The storage location of the backups. The location can be multi-regional. */
|
|
93
|
+
location?: string;
|
|
94
|
+
/** Output only. The maximum chargeable bytes for the backup. */
|
|
95
|
+
maxChargeableBytes?: string;
|
|
96
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}. */
|
|
97
|
+
name?: string;
|
|
98
|
+
/** Output only. This status indicates whether the backup satisfies PZI. The status is reserved for future use. */
|
|
99
|
+
satisfiesPzi?: boolean;
|
|
100
|
+
/** Output only. This status indicates whether the backup satisfies PZS. The status is reserved for future use. */
|
|
101
|
+
satisfiesPzs?: boolean;
|
|
102
|
+
/** Output only. The URI of this resource. */
|
|
103
|
+
selfLink?: string;
|
|
104
|
+
/** Output only. The state of this backup. */
|
|
105
|
+
state?: string;
|
|
106
|
+
/** Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen. */
|
|
107
|
+
timeZone?: string;
|
|
108
|
+
/** Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7 means 7 days. */
|
|
109
|
+
ttlDays?: string;
|
|
110
|
+
/** Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", or “FINAL”. */
|
|
111
|
+
type?: string;
|
|
112
|
+
}
|
|
71
113
|
interface BackupConfiguration {
|
|
72
114
|
/** Backup retention settings. */
|
|
73
115
|
backupRetentionSettings?: BackupRetentionSettings;
|
|
@@ -95,6 +137,8 @@ declare namespace gapi.client {
|
|
|
95
137
|
backupId?: string;
|
|
96
138
|
/** This is always `sql#backupContext`. */
|
|
97
139
|
kind?: string;
|
|
140
|
+
/** The name of the backup. Format: projects/{project}/backups/{backup} */
|
|
141
|
+
name?: string;
|
|
98
142
|
}
|
|
99
143
|
interface BackupReencryptionConfig {
|
|
100
144
|
/** Backup re-encryption limit */
|
|
@@ -263,6 +307,8 @@ declare namespace gapi.client {
|
|
|
263
307
|
gceZone?: string;
|
|
264
308
|
/** Gemini instance configuration. */
|
|
265
309
|
geminiConfig?: GeminiInstanceConfig;
|
|
310
|
+
/** 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. */
|
|
311
|
+
includeReplicasForMajorVersionUpgrade?: boolean;
|
|
266
312
|
/** The instance type. */
|
|
267
313
|
instanceType?: string;
|
|
268
314
|
/** The assigned IP addresses for the instance. */
|
|
@@ -461,6 +507,17 @@ declare namespace gapi.client {
|
|
|
461
507
|
/** Optional. The number of threads to use for parallel export. */
|
|
462
508
|
threads?: number;
|
|
463
509
|
};
|
|
510
|
+
/** Optional. Export parameters specific to SQL Server TDE certificates */
|
|
511
|
+
tdeExportOptions?: {
|
|
512
|
+
/** Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances. */
|
|
513
|
+
certificatePath?: string;
|
|
514
|
+
/** Required. Certificate name. Applicable only for SQL Server instances. */
|
|
515
|
+
name?: string;
|
|
516
|
+
/** Required. Password that encrypts the private key. */
|
|
517
|
+
privateKeyPassword?: string;
|
|
518
|
+
/** 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. */
|
|
519
|
+
privateKeyPath?: string;
|
|
520
|
+
};
|
|
464
521
|
/** 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. */
|
|
465
522
|
uri?: string;
|
|
466
523
|
}
|
|
@@ -538,6 +595,8 @@ declare namespace gapi.client {
|
|
|
538
595
|
encryptionOptions?: {
|
|
539
596
|
/** 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. */
|
|
540
597
|
certPath?: string;
|
|
598
|
+
/** Optional. Whether the imported file remains encrypted. */
|
|
599
|
+
keepEncrypted?: boolean;
|
|
541
600
|
/** Password that encrypts the private key */
|
|
542
601
|
pvkPassword?: string;
|
|
543
602
|
/** 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. */
|
|
@@ -591,6 +650,17 @@ declare namespace gapi.client {
|
|
|
591
650
|
/** Optional. The number of threads to use for parallel import. */
|
|
592
651
|
threads?: number;
|
|
593
652
|
};
|
|
653
|
+
/** Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates */
|
|
654
|
+
tdeImportOptions?: {
|
|
655
|
+
/** 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. */
|
|
656
|
+
certificatePath?: string;
|
|
657
|
+
/** Required. Certificate name. Applicable only for SQL Server instances. */
|
|
658
|
+
name?: string;
|
|
659
|
+
/** Required. Password that encrypts the private key. */
|
|
660
|
+
privateKeyPassword?: string;
|
|
661
|
+
/** 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. */
|
|
662
|
+
privateKeyPath?: string;
|
|
663
|
+
};
|
|
594
664
|
/** 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. */
|
|
595
665
|
uri?: string;
|
|
596
666
|
}
|
|
@@ -674,8 +744,12 @@ declare namespace gapi.client {
|
|
|
674
744
|
backupReencryptionConfig?: BackupReencryptionConfig;
|
|
675
745
|
}
|
|
676
746
|
interface InstancesRestoreBackupRequest {
|
|
747
|
+
/** 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. */
|
|
748
|
+
backup?: string;
|
|
677
749
|
/** Parameters required to perform the restore backup operation. */
|
|
678
750
|
restoreBackupContext?: RestoreBackupContext;
|
|
751
|
+
/** Optional. By using this parameter, Cloud SQL overrides any instance settings that it stored 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. */
|
|
752
|
+
restoreInstanceSettings?: DatabaseInstance;
|
|
679
753
|
}
|
|
680
754
|
interface InstancesRotateServerCaRequest {
|
|
681
755
|
/** Contains details about the rotate server CA operation. */
|
|
@@ -689,6 +763,12 @@ declare namespace gapi.client {
|
|
|
689
763
|
/** Contains details about the truncate log operation. */
|
|
690
764
|
truncateLogContext?: TruncateLogContext;
|
|
691
765
|
}
|
|
766
|
+
interface Interval {
|
|
767
|
+
/** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. */
|
|
768
|
+
endTime?: string;
|
|
769
|
+
/** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. */
|
|
770
|
+
startTime?: string;
|
|
771
|
+
}
|
|
692
772
|
interface IpConfiguration {
|
|
693
773
|
/** 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])?.` */
|
|
694
774
|
allocatedIpRange?: string;
|
|
@@ -721,6 +801,14 @@ declare namespace gapi.client {
|
|
|
721
801
|
/** 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. */
|
|
722
802
|
type?: string;
|
|
723
803
|
}
|
|
804
|
+
interface ListBackupsResponse {
|
|
805
|
+
/** A list of backups. */
|
|
806
|
+
backups?: Backup[];
|
|
807
|
+
/** 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. */
|
|
808
|
+
nextPageToken?: string;
|
|
809
|
+
/** If a region isn't unavailable or if an unknown error occurs, then a warning message is returned. */
|
|
810
|
+
warnings?: ApiWarning[];
|
|
811
|
+
}
|
|
724
812
|
interface LocationPreference {
|
|
725
813
|
/** 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. */
|
|
726
814
|
followGaeApplication?: string;
|
|
@@ -824,6 +912,7 @@ declare namespace gapi.client {
|
|
|
824
912
|
status?: string;
|
|
825
913
|
/** Optional. The sub operation based on the operation type. */
|
|
826
914
|
subOperationType?: SqlSubOperationType;
|
|
915
|
+
/** Name of the resource on which this operation runs. */
|
|
827
916
|
targetId?: string;
|
|
828
917
|
targetLink?: string;
|
|
829
918
|
/** The project ID of the target instance related to this operation. */
|
|
@@ -1439,6 +1528,215 @@ declare namespace gapi.client {
|
|
|
1439
1528
|
uploadType?: string;
|
|
1440
1529
|
}): Request<BackupRunsListResponse>;
|
|
1441
1530
|
}
|
|
1531
|
+
interface BackupsResource {
|
|
1532
|
+
/** Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups. */
|
|
1533
|
+
createBackup(request: {
|
|
1534
|
+
/** V1 error format. */
|
|
1535
|
+
'$.xgafv'?: string;
|
|
1536
|
+
/** OAuth access token. */
|
|
1537
|
+
access_token?: string;
|
|
1538
|
+
/** Data format for response. */
|
|
1539
|
+
alt?: string;
|
|
1540
|
+
/** JSONP */
|
|
1541
|
+
callback?: string;
|
|
1542
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1543
|
+
fields?: string;
|
|
1544
|
+
/** 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. */
|
|
1545
|
+
key?: string;
|
|
1546
|
+
/** OAuth 2.0 token for the current user. */
|
|
1547
|
+
oauth_token?: string;
|
|
1548
|
+
/** Required. The parent resource where this backup is created. Format: projects/{project} */
|
|
1549
|
+
parent: string;
|
|
1550
|
+
/** Returns response with indentations and line breaks. */
|
|
1551
|
+
prettyPrint?: boolean;
|
|
1552
|
+
/** 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. */
|
|
1553
|
+
quotaUser?: string;
|
|
1554
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1555
|
+
upload_protocol?: string;
|
|
1556
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1557
|
+
uploadType?: string;
|
|
1558
|
+
/** Request body */
|
|
1559
|
+
resource: Backup;
|
|
1560
|
+
}): Request<Operation>;
|
|
1561
|
+
createBackup(
|
|
1562
|
+
request: {
|
|
1563
|
+
/** V1 error format. */
|
|
1564
|
+
'$.xgafv'?: string;
|
|
1565
|
+
/** OAuth access token. */
|
|
1566
|
+
access_token?: string;
|
|
1567
|
+
/** Data format for response. */
|
|
1568
|
+
alt?: string;
|
|
1569
|
+
/** JSONP */
|
|
1570
|
+
callback?: string;
|
|
1571
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1572
|
+
fields?: string;
|
|
1573
|
+
/** 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. */
|
|
1574
|
+
key?: string;
|
|
1575
|
+
/** OAuth 2.0 token for the current user. */
|
|
1576
|
+
oauth_token?: string;
|
|
1577
|
+
/** Required. The parent resource where this backup is created. Format: projects/{project} */
|
|
1578
|
+
parent: string;
|
|
1579
|
+
/** Returns response with indentations and line breaks. */
|
|
1580
|
+
prettyPrint?: boolean;
|
|
1581
|
+
/** 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. */
|
|
1582
|
+
quotaUser?: string;
|
|
1583
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1584
|
+
upload_protocol?: string;
|
|
1585
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1586
|
+
uploadType?: string;
|
|
1587
|
+
},
|
|
1588
|
+
body: Backup,
|
|
1589
|
+
): Request<Operation>;
|
|
1590
|
+
/** Deletes the backup. */
|
|
1591
|
+
deleteBackup(request?: {
|
|
1592
|
+
/** V1 error format. */
|
|
1593
|
+
'$.xgafv'?: string;
|
|
1594
|
+
/** OAuth access token. */
|
|
1595
|
+
access_token?: string;
|
|
1596
|
+
/** Data format for response. */
|
|
1597
|
+
alt?: string;
|
|
1598
|
+
/** JSONP */
|
|
1599
|
+
callback?: string;
|
|
1600
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1601
|
+
fields?: string;
|
|
1602
|
+
/** 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. */
|
|
1603
|
+
key?: string;
|
|
1604
|
+
/** Required. The name of the backup to delete. Format: projects/{project}/backups/{backup} */
|
|
1605
|
+
name: string;
|
|
1606
|
+
/** OAuth 2.0 token for the current user. */
|
|
1607
|
+
oauth_token?: string;
|
|
1608
|
+
/** Returns response with indentations and line breaks. */
|
|
1609
|
+
prettyPrint?: boolean;
|
|
1610
|
+
/** 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. */
|
|
1611
|
+
quotaUser?: string;
|
|
1612
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1613
|
+
upload_protocol?: string;
|
|
1614
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1615
|
+
uploadType?: string;
|
|
1616
|
+
}): Request<Operation>;
|
|
1617
|
+
/** Retrieves a resource containing information about a backup. */
|
|
1618
|
+
getBackup(request?: {
|
|
1619
|
+
/** V1 error format. */
|
|
1620
|
+
'$.xgafv'?: string;
|
|
1621
|
+
/** OAuth access token. */
|
|
1622
|
+
access_token?: string;
|
|
1623
|
+
/** Data format for response. */
|
|
1624
|
+
alt?: string;
|
|
1625
|
+
/** JSONP */
|
|
1626
|
+
callback?: string;
|
|
1627
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1628
|
+
fields?: string;
|
|
1629
|
+
/** 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. */
|
|
1630
|
+
key?: string;
|
|
1631
|
+
/** Required. The name of the backup to retrieve. Format: projects/{project}/backups/{backup} */
|
|
1632
|
+
name: string;
|
|
1633
|
+
/** OAuth 2.0 token for the current user. */
|
|
1634
|
+
oauth_token?: string;
|
|
1635
|
+
/** Returns response with indentations and line breaks. */
|
|
1636
|
+
prettyPrint?: boolean;
|
|
1637
|
+
/** 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. */
|
|
1638
|
+
quotaUser?: string;
|
|
1639
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1640
|
+
upload_protocol?: string;
|
|
1641
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1642
|
+
uploadType?: string;
|
|
1643
|
+
}): Request<Backup>;
|
|
1644
|
+
/** Lists all backups associated with the project. */
|
|
1645
|
+
listBackups(request?: {
|
|
1646
|
+
/** V1 error format. */
|
|
1647
|
+
'$.xgafv'?: string;
|
|
1648
|
+
/** OAuth access token. */
|
|
1649
|
+
access_token?: string;
|
|
1650
|
+
/** Data format for response. */
|
|
1651
|
+
alt?: string;
|
|
1652
|
+
/** JSONP */
|
|
1653
|
+
callback?: string;
|
|
1654
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1655
|
+
fields?: string;
|
|
1656
|
+
/** Multiple filter queries are separated by spaces. For example, 'instance:abc type:FINAL. You can filter by type, instance name, creation time, or location. */
|
|
1657
|
+
filter?: string;
|
|
1658
|
+
/** 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. */
|
|
1659
|
+
key?: string;
|
|
1660
|
+
/** OAuth 2.0 token for the current user. */
|
|
1661
|
+
oauth_token?: string;
|
|
1662
|
+
/** 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. */
|
|
1663
|
+
pageSize?: number;
|
|
1664
|
+
/** 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. */
|
|
1665
|
+
pageToken?: string;
|
|
1666
|
+
/** Required. The parent that owns this collection of backups. Format: projects/{project} */
|
|
1667
|
+
parent: string;
|
|
1668
|
+
/** Returns response with indentations and line breaks. */
|
|
1669
|
+
prettyPrint?: boolean;
|
|
1670
|
+
/** 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. */
|
|
1671
|
+
quotaUser?: string;
|
|
1672
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1673
|
+
upload_protocol?: string;
|
|
1674
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1675
|
+
uploadType?: string;
|
|
1676
|
+
}): Request<ListBackupsResponse>;
|
|
1677
|
+
/** Updates the retention period and the description of the backup. You can use this API to update final backups only. */
|
|
1678
|
+
updateBackup(request: {
|
|
1679
|
+
/** V1 error format. */
|
|
1680
|
+
'$.xgafv'?: string;
|
|
1681
|
+
/** OAuth access token. */
|
|
1682
|
+
access_token?: string;
|
|
1683
|
+
/** Data format for response. */
|
|
1684
|
+
alt?: string;
|
|
1685
|
+
/** JSONP */
|
|
1686
|
+
callback?: string;
|
|
1687
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1688
|
+
fields?: string;
|
|
1689
|
+
/** 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. */
|
|
1690
|
+
key?: string;
|
|
1691
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}. */
|
|
1692
|
+
name: string;
|
|
1693
|
+
/** OAuth 2.0 token for the current user. */
|
|
1694
|
+
oauth_token?: string;
|
|
1695
|
+
/** Returns response with indentations and line breaks. */
|
|
1696
|
+
prettyPrint?: boolean;
|
|
1697
|
+
/** 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. */
|
|
1698
|
+
quotaUser?: string;
|
|
1699
|
+
/** The list of fields that you can update. You can update only the description and retention period of the final backup. */
|
|
1700
|
+
updateMask?: string;
|
|
1701
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1702
|
+
upload_protocol?: string;
|
|
1703
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1704
|
+
uploadType?: string;
|
|
1705
|
+
/** Request body */
|
|
1706
|
+
resource: Backup;
|
|
1707
|
+
}): Request<Operation>;
|
|
1708
|
+
updateBackup(
|
|
1709
|
+
request: {
|
|
1710
|
+
/** V1 error format. */
|
|
1711
|
+
'$.xgafv'?: string;
|
|
1712
|
+
/** OAuth access token. */
|
|
1713
|
+
access_token?: string;
|
|
1714
|
+
/** Data format for response. */
|
|
1715
|
+
alt?: string;
|
|
1716
|
+
/** JSONP */
|
|
1717
|
+
callback?: string;
|
|
1718
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1719
|
+
fields?: string;
|
|
1720
|
+
/** 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. */
|
|
1721
|
+
key?: string;
|
|
1722
|
+
/** Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}. */
|
|
1723
|
+
name: string;
|
|
1724
|
+
/** OAuth 2.0 token for the current user. */
|
|
1725
|
+
oauth_token?: string;
|
|
1726
|
+
/** Returns response with indentations and line breaks. */
|
|
1727
|
+
prettyPrint?: boolean;
|
|
1728
|
+
/** 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. */
|
|
1729
|
+
quotaUser?: string;
|
|
1730
|
+
/** The list of fields that you can update. You can update only the description and retention period of the final backup. */
|
|
1731
|
+
updateMask?: string;
|
|
1732
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1733
|
+
upload_protocol?: string;
|
|
1734
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1735
|
+
uploadType?: string;
|
|
1736
|
+
},
|
|
1737
|
+
body: Backup,
|
|
1738
|
+
): Request<Operation>;
|
|
1739
|
+
}
|
|
1442
1740
|
interface ConnectResource {
|
|
1443
1741
|
/** 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. */
|
|
1444
1742
|
generateEphemeralCert(request: {
|
|
@@ -2043,8 +2341,16 @@ declare namespace gapi.client {
|
|
|
2043
2341
|
alt?: string;
|
|
2044
2342
|
/** JSONP */
|
|
2045
2343
|
callback?: string;
|
|
2344
|
+
/** Flag to opt-in for final backup. By default, it is turned off. */
|
|
2345
|
+
enableFinalBackup?: boolean;
|
|
2046
2346
|
/** Selector specifying which fields to include in a partial response. */
|
|
2047
2347
|
fields?: string;
|
|
2348
|
+
/** Optional. The description of the final backup. */
|
|
2349
|
+
finalBackupDescription?: string;
|
|
2350
|
+
/** Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired. */
|
|
2351
|
+
finalBackupExpiryTime?: string;
|
|
2352
|
+
/** Optional. Retention period of the final backup. */
|
|
2353
|
+
finalBackupTtlDays?: string;
|
|
2048
2354
|
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
2049
2355
|
instance: string;
|
|
2050
2356
|
/** 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. */
|
|
@@ -4136,6 +4442,8 @@ declare namespace gapi.client {
|
|
|
4136
4442
|
|
|
4137
4443
|
const backupRuns: BackupRunsResource;
|
|
4138
4444
|
|
|
4445
|
+
const backups: BackupsResource;
|
|
4446
|
+
|
|
4139
4447
|
const connect: ConnectResource;
|
|
4140
4448
|
|
|
4141
4449
|
const databases: DatabasesResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -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 the 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
|
*/
|