@daocloud-proto/ghippo 0.7.4 → 0.7.7
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
CHANGED
|
@@ -17,7 +17,7 @@ export type GetGProductLicensesRequest = {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type GetGProductLicensesResponse = {
|
|
20
|
-
license?:
|
|
20
|
+
license?: GProductLicenseInfo
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type UpdateGProductLicensesRequest = {
|
|
@@ -50,15 +50,33 @@ export type GetGProductLicensesESNResponse = {
|
|
|
50
50
|
esn?: string
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export type GetGProductLicensesOverQuotaRequest = {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type GetGProductLicensesOverQuotaResponse = {
|
|
57
|
+
licenses?: GProductLicense[]
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
export type GProductLicense = {
|
|
54
61
|
name?: string
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
tier?: string
|
|
62
|
+
module?: string
|
|
63
|
+
level?: string
|
|
58
64
|
status?: string
|
|
59
65
|
expiredAt?: string
|
|
60
66
|
}
|
|
61
67
|
|
|
68
|
+
export type GProductLicenseInfo = {
|
|
69
|
+
name?: string
|
|
70
|
+
module?: string
|
|
71
|
+
licenseKey?: string
|
|
72
|
+
licenseLevel?: string
|
|
73
|
+
physicalUsedCpu?: string
|
|
74
|
+
physicalMaxCpu?: string
|
|
75
|
+
virtualUsedCpu?: string
|
|
76
|
+
virtualMaxCpu?: string
|
|
77
|
+
expiredAt?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
export class GProducts {
|
|
63
81
|
static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
|
|
64
82
|
return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -127,6 +127,25 @@ export type ListFoldersResponse = {
|
|
|
127
127
|
pagination?: Pagination
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
export type FolderTree = {
|
|
131
|
+
id?: number
|
|
132
|
+
name?: string
|
|
133
|
+
alias?: string
|
|
134
|
+
isWorkspace?: boolean
|
|
135
|
+
parentId?: number
|
|
136
|
+
children?: FolderTree[]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type ListFolderTreeRequest = {
|
|
140
|
+
page?: number
|
|
141
|
+
pageSize?: number
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type ListFolderTreeResponse = {
|
|
145
|
+
folderTree?: FolderTree
|
|
146
|
+
total?: number
|
|
147
|
+
}
|
|
148
|
+
|
|
130
149
|
export type CreateFolderRequest = {
|
|
131
150
|
name?: string
|
|
132
151
|
alias?: string
|
|
@@ -276,6 +295,9 @@ export class Workspace {
|
|
|
276
295
|
static ListFolders(req: ListFoldersRequest, initReq?: fm.InitReq): Promise<ListFoldersResponse> {
|
|
277
296
|
return fm.fetchReq<ListFoldersRequest, ListFoldersResponse>(`/apis/ghippo.io/v1alpha1/folders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
278
297
|
}
|
|
298
|
+
static ListFolderTree(req: ListFolderTreeRequest, initReq?: fm.InitReq): Promise<ListFolderTreeResponse> {
|
|
299
|
+
return fm.fetchReq<ListFolderTreeRequest, ListFolderTreeResponse>(`/apis/ghippo.io/v1alpha1/folders-tree?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
300
|
+
}
|
|
279
301
|
static CreateFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<CreateFolderResponse> {
|
|
280
302
|
return fm.fetchReq<CreateFolderRequest, CreateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
281
303
|
}
|