@daocloud-proto/zestu 0.6.0-dev-801c512a → 0.6.0-dev-6e4b04be
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
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
export enum NotifyType {
|
|
8
8
|
ContainerDeleteWarning = "ContainerDeleteWarning",
|
|
9
9
|
ContainerDeleted = "ContainerDeleted",
|
|
10
|
+
FileStorageDeleteWarning = "FileStorageDeleteWarning",
|
|
11
|
+
FileStorageDeleted = "FileStorageDeleted",
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export type SendShortMessageRequest = {
|
|
@@ -95,6 +95,9 @@ export class FileStorage {
|
|
|
95
95
|
static GetCurrentUsage(req: ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse> {
|
|
96
96
|
return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageRequest, ZestuIoApiFile_storageV1alpha1Storage.GetCurrentUsageResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/currentusage?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
97
97
|
}
|
|
98
|
+
static ForceDecreaseQuota(req: ZestuIoApiFile_storageV1alpha1Storage.ForceDecreaseQuotaRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
99
|
+
return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.ForceDecreaseQuotaRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/user/${req["userNs"]}/filestorage/quota`, {...initReq, method: "POST"})
|
|
100
|
+
}
|
|
98
101
|
}
|
|
99
102
|
export class StorageResource {
|
|
100
103
|
static GetStoragePrice(req: ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.GetStoragePriceResponse> {
|