@daocloud-proto/zestu 0.3.0-dev-bfab0538 → 0.3.0-dev-fb6bd0b1
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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as ZestuIoApiResourcesV1alpha1Resources from "../../resources/v1alpha1/resources.pb"
|
|
7
8
|
import * as ZestuIoApiTypesPage from "../../types/page.pb"
|
|
8
9
|
|
|
9
10
|
export enum RegionStorageStatus {
|
|
@@ -106,4 +107,12 @@ export type UpdateQuotaRequest = {
|
|
|
106
107
|
|
|
107
108
|
export type UpdateQuotaResponse = {
|
|
108
109
|
quota?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type GetStoragePriceRequest = {
|
|
113
|
+
regionId?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type GetStoragePriceResponse = {
|
|
117
|
+
price?: ZestuIoApiResourcesV1alpha1Resources.ResourcePrice
|
|
109
118
|
}
|
|
@@ -81,6 +81,11 @@ export class FileStorage {
|
|
|
81
81
|
return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaRequest, ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/quota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
export class StorageResource {
|
|
85
|
+
static GetStoragePrice(req: ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceResponse> {
|
|
86
|
+
return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceRequest, ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/storageresource/price?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
87
|
+
}
|
|
88
|
+
}
|
|
84
89
|
export class Image {
|
|
85
90
|
static ListPublicImages(req: ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse> {
|
|
86
91
|
return fm.fetchReq<ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/public-images?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|