@daocloud-proto/kcoral 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kcoral.io/api/kcoralcluster/v1alpha1/kcoralcluster.pb.ts +7 -1
- package/kcoral.io/api/storage/v1alpha1/volumesnapshotclass.pb.ts +1 -0
- package/kcoral.io/api/v1alpha1/kcoral.pb.ts +3 -0
- package/kcoral.io/api/velero/v1alpha1/backup.pb.ts +1 -0
- package/kcoral.io/api/velero/v1alpha1/backupstoragelocation.pb.ts +8 -0
- package/kcoral.io/api/velero/v1alpha1/schedule.pb.ts +1 -0
- package/package.json +1 -1
|
@@ -15,6 +15,12 @@ export type ListKCoralClustersRequest = {
|
|
|
15
15
|
fuzzyName?: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export type ClusterDescription = {
|
|
19
|
+
clusterName?: string
|
|
20
|
+
veleroInstalled?: boolean
|
|
21
|
+
running?: boolean
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
export type ListKCoralClustersResponse = {
|
|
19
|
-
items?:
|
|
25
|
+
items?: ClusterDescription[]
|
|
20
26
|
}
|
|
@@ -31,6 +31,9 @@ export class BackupStorageLocation {
|
|
|
31
31
|
static ListBackupStorageLocations(req: KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsRequest, initReq?: fm.InitReq): Promise<KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsResponse> {
|
|
32
32
|
return fm.fetchReq<KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsRequest, KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsResponse>(`/apis/kcoral.io/v1alpha1/clusters/${req["cluster"]}/backupstoragelocations?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
33
33
|
}
|
|
34
|
+
static ListBackupStorageLocationsWithIdenticalBackend(req: KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsWithIdenticalBackendRequest, initReq?: fm.InitReq): Promise<KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsWithIdenticalBackendResponse> {
|
|
35
|
+
return fm.fetchReq<KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsWithIdenticalBackendRequest, KcoralIoApiVeleroV1alpha1Backupstoragelocation.ListBackupStorageLocationsWithIdenticalBackendResponse>(`/apis/kcoral.io/v1alpha1/clusters/${req["cluster"]}/backupstoragelocationswithidenticalbackend?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
36
|
+
}
|
|
34
37
|
static GetBackupStorageLocation(req: KcoralIoApiVeleroV1alpha1Backupstoragelocation.GetBackupStorageLocationRequest, initReq?: fm.InitReq): Promise<KcoralIoApiVeleroV1alpha1Backupstoragelocation.BackupStorageLocation> {
|
|
35
38
|
return fm.fetchReq<KcoralIoApiVeleroV1alpha1Backupstoragelocation.GetBackupStorageLocationRequest, KcoralIoApiVeleroV1alpha1Backupstoragelocation.BackupStorageLocation>(`/apis/kcoral.io/v1alpha1/clusters/${req["cluster"]}/backupstoragelocations/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
36
39
|
}
|
|
@@ -19,6 +19,14 @@ export enum BackupStorageLocationStatusBackupStorageLocationPhase {
|
|
|
19
19
|
Unavailable = "Unavailable",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export type ListBackupStorageLocationsWithIdenticalBackendRequest = {
|
|
23
|
+
cluster?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListBackupStorageLocationsWithIdenticalBackendResponse = {
|
|
27
|
+
clusterName?: string[]
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
export type ListBackupStorageLocationsResponse = {
|
|
23
31
|
items?: BackupStorageLocation[]
|
|
24
32
|
pagination?: KcoralIoApiTypesPage.Pagination
|