@daocloud-proto/zestu 0.9.0-dev-c5c0506a → 0.9.0-dev-5310bdfb

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.9.0-dev-c5c0506a",
3
+ "version":"v0.9.0-dev-5310bdfb",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -323,4 +323,16 @@ export type SaveContainerInstanceRequest = {
323
323
  regionId?: string
324
324
  repository?: string
325
325
  tag?: string
326
+ }
327
+
328
+ export type UpdateContainerInstanceRenewalRequest = {
329
+ instanceId?: string
330
+ regionId?: string
331
+ renewMode?: ZestuIoApiTypesTypes.BillingType
332
+ renewDuration?: number
333
+ enableRenew?: boolean
334
+ }
335
+
336
+ export type UpdateContainerInstanceRenewalResponse = {
337
+ containerInstance?: ContainerInstance
326
338
  }
@@ -60,6 +60,9 @@ export class ContainerInstance {
60
60
  static SaveContainerInstanceImage(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.SaveContainerInstanceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
61
61
  return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.SaveContainerInstanceRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/saveimage`, {...initReq, method: "POST", body: JSON.stringify(req)})
62
62
  }
63
+ static UpdateContainerInstanceRenewal(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.UpdateContainerInstanceRenewalRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.UpdateContainerInstanceRenewalResponse> {
64
+ return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.UpdateContainerInstanceRenewalRequest, ZestuIoApiContainerinstanceV1alpha1Containerinstance.UpdateContainerInstanceRenewalResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/renewal`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
65
+ }
63
66
  }
64
67
  export class Region {
65
68
  static ListRegions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListRegionsResponse> {