@daocloud-proto/zestu 0.2.0-dev-f5b045c3 → 0.2.0-dev-8a7c3e6e

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/zestu",
3
- "version":"v0.2.0-dev-f5b045c3",
3
+ "version":"v0.2.0-dev-8a7c3e6e",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -127,6 +127,9 @@ export type CreateContainerInstanceRequest = {
127
127
  export type Image = {
128
128
  imageType?: ImageType
129
129
  name?: string
130
+ hasAuth?: boolean
131
+ username?: string
132
+ password?: string
130
133
  }
131
134
 
132
135
  export type PackageSource = {
@@ -97,4 +97,13 @@ export type GenerateFileDownloadSignatureRequest = {
97
97
 
98
98
  export type GenerateFileDownloadSignatureResponse = {
99
99
  signatureUrl?: string
100
+ }
101
+
102
+ export type UpdateQuotaRequest = {
103
+ regionId?: string
104
+ quota?: string
105
+ }
106
+
107
+ export type UpdateQuotaResponse = {
108
+ quota?: string
100
109
  }
@@ -77,6 +77,9 @@ export class FileStorage {
77
77
  static DeleteFile(req: ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
78
78
  return fm.fetchReq<ZestuIoApiFile_storageV1alpha1Storage.DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/filestorage/file`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
79
79
  }
80
+ static UpdateQuota(req: ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaRequest, initReq?: fm.InitReq): Promise<ZestuIoApiFile_storageV1alpha1Storage.UpdateQuotaResponse> {
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
+ }
80
83
  }
81
84
  export class Image {
82
85
  static ListPublicImages(req: ZestuIoApiImageV1alpha1Image.ListPublicImagesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiImageV1alpha1Image.ListPublicImagesResponse> {