@daocloud-proto/kcoral 0.1.0 → 0.2.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.
@@ -15,6 +15,11 @@ export type ListKCoralClustersRequest = {
15
15
  fuzzyName?: string
16
16
  }
17
17
 
18
+ export type ClusterDescription = {
19
+ clusterName?: string
20
+ veleroInstalled?: boolean
21
+ }
22
+
18
23
  export type ListKCoralClustersResponse = {
19
- items?: string[]
24
+ items?: ClusterDescription[]
20
25
  }
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kcoral",
3
- "version":"0.1.0",
3
+ "version":"0.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {