@daocloud-proto/ghippo 0.9.23 → 0.9.26
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/package.json +1 -1
- package/v1alpha1/workspace.pb.ts +1 -2
package/package.json
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -49,7 +49,6 @@ export type WorkspacesResourceInfo = {
|
|
|
49
49
|
export type ListResourcesRequest = {
|
|
50
50
|
page?: number
|
|
51
51
|
pageSize?: number
|
|
52
|
-
workspaceId?: number
|
|
53
52
|
resourceName?: string
|
|
54
53
|
resourceType?: string
|
|
55
54
|
}
|
|
@@ -404,7 +403,7 @@ export class Workspace {
|
|
|
404
403
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
405
404
|
}
|
|
406
405
|
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
407
|
-
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/
|
|
406
|
+
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
408
407
|
}
|
|
409
408
|
static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
|
|
410
409
|
return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|