@daocloud-proto/hydra 0.11.0-dev-22 → 0.11.0-dev-24

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.
@@ -221,7 +221,7 @@ export class AdminFilesStorageService {
221
221
  return fm.fetchReq<ListFilesRequest, ListFilesResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
222
222
  }
223
223
  static DeleteFile(req: DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
224
- return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files/${req["fileName"]}`, {...initReq, method: "DELETE"})
224
+ return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files/${req["fileName"]}:delete`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
225
225
  }
226
226
  static ListFilesStorageClusters(req: ListFilesStorageClustersRequest, initReq?: fm.InitReq): Promise<ListFilesStorageClustersResponse> {
227
227
  return fm.fetchReq<ListFilesStorageClustersRequest, ListFilesStorageClustersResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorage-clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -423,7 +423,7 @@ export class WSFilesStorageService {
423
423
  return fm.fetchReq<ListFilesRequest, ListFilesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/files?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
424
424
  }
425
425
  static DeleteWSFile(req: DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
426
- return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/files/${req["fileName"]}`, {...initReq, method: "DELETE"})
426
+ return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/files/${req["fileName"]}:delete`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
427
427
  }
428
428
  static CreateWSFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
429
429
  return fm.fetchReq<CreateFolderRequest, GoogleProtobufEmpty.Empty>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/folders/${req["folderName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -38,6 +38,14 @@ export type Cluster = {
38
38
  status?: ClusterStatus
39
39
  agentInstalled?: boolean
40
40
  baseUrl?: string
41
+ components?: Component[]
42
+ }
43
+
44
+ export type Component = {
45
+ name?: string
46
+ installedVersion?: string
47
+ recommendedVersion?: string
48
+ ready?: boolean
41
49
  }
42
50
 
43
51
  export type ListClustersResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.11.0-dev-22",
3
+ "version": "v0.11.0-dev-24",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"