@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20250129 → 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 +308 -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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250205
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -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. */
|
|
@@ -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;
|
|
@@ -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: {
|
|
@@ -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. */
|
|
@@ -4129,6 +4434,8 @@ declare namespace gapi.client {
|
|
|
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
|
@@ -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
|
*/
|