@daocloud-proto/zestu 0.9.0 → 0.10.0-dev-c0b0fe5e
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 +1 -1
- package/zestu.io/api/containerinstance/v1alpha1/containerinstance.pb.ts +16 -0
- package/zestu.io/api/region/v1alpha1/region.pb.ts +10 -0
- package/zestu.io/api/resources/v1alpha1/resources.pb.ts +7 -0
- package/zestu.io/api/user/v1alpha1/user.pb.ts +1 -0
- package/zestu.io/api/v1alpha1/zestu.pb.ts +6 -0
package/package.json
CHANGED
|
@@ -147,6 +147,7 @@ export type ContainerInstance = {
|
|
|
147
147
|
ssh?: SSHInfo
|
|
148
148
|
schedule?: Schedule
|
|
149
149
|
serviceEnable?: ServiceEnable
|
|
150
|
+
enableDockerInDocker?: boolean
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
export type Schedule = {
|
|
@@ -181,6 +182,7 @@ export type CreateContainerInstanceRequest = {
|
|
|
181
182
|
volumeSpec?: VolumeSpec[]
|
|
182
183
|
sshKeyLoginEnable?: boolean
|
|
183
184
|
schedule?: Schedule
|
|
185
|
+
enableDockerInDocker?: boolean
|
|
184
186
|
}
|
|
185
187
|
|
|
186
188
|
export type Image = {
|
|
@@ -212,6 +214,7 @@ export type ChargeInfo = {
|
|
|
212
214
|
enableRenew?: boolean
|
|
213
215
|
renewMode?: ZestuIoApiTypesTypes.BillingType
|
|
214
216
|
renewDuration?: number
|
|
217
|
+
subscriptionEndTimestamp?: string
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
export type InstanceSpec = {
|
|
@@ -308,6 +311,7 @@ export type UpdateContainerInstanceRequest = {
|
|
|
308
311
|
schedule?: Schedule
|
|
309
312
|
volumeSpec?: VolumeSpec[]
|
|
310
313
|
instanceSpec?: InstanceSpec
|
|
314
|
+
enableDockerInDocker?: boolean
|
|
311
315
|
}
|
|
312
316
|
|
|
313
317
|
export type UpdateContainerInstanceResponse = {
|
|
@@ -319,4 +323,16 @@ export type SaveContainerInstanceRequest = {
|
|
|
319
323
|
regionId?: string
|
|
320
324
|
repository?: string
|
|
321
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
|
|
322
338
|
}
|
|
@@ -21,4 +21,14 @@ export type ListSupportedNetworksRequest = {
|
|
|
21
21
|
|
|
22
22
|
export type ListSupportedNetworksResponse = {
|
|
23
23
|
item?: Region
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetFeatureGatesRequest = {
|
|
27
|
+
regionId?: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type GetFeatureGatesResponse = {
|
|
31
|
+
enableLocalStorage?: boolean
|
|
32
|
+
enableImageRegistry?: boolean
|
|
33
|
+
enableCertification?: boolean
|
|
24
34
|
}
|
|
@@ -62,6 +62,7 @@ export type Resource = {
|
|
|
62
62
|
detail?: ResourceDetail
|
|
63
63
|
gpu?: ResourceGPU
|
|
64
64
|
prices?: ResourcePrice
|
|
65
|
+
meteringAmountsDiscounts?: MeteringAmountsDiscount[]
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
export type ResourceDetail = {
|
|
@@ -76,6 +77,7 @@ export type ResourceDetail = {
|
|
|
76
77
|
gpuCore?: string
|
|
77
78
|
gpuVendor?: string
|
|
78
79
|
dataDiskSize?: string
|
|
80
|
+
maxDataDiskSize?: string
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
export type ResourceGPU = {
|
|
@@ -93,6 +95,11 @@ export type ResourcePrice = {
|
|
|
93
95
|
currency?: ZestuIoApiTypesTypes.Currency
|
|
94
96
|
}
|
|
95
97
|
|
|
98
|
+
export type MeteringAmountsDiscount = {
|
|
99
|
+
meteringAmounts?: number
|
|
100
|
+
discountPercentage?: number
|
|
101
|
+
}
|
|
102
|
+
|
|
96
103
|
export type ListResourceModelRequest = {
|
|
97
104
|
regionId?: string
|
|
98
105
|
billingType?: ZestuIoApiTypesTypes.BillingType
|
|
@@ -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> {
|
|
@@ -68,6 +71,9 @@ export class Region {
|
|
|
68
71
|
static ListSupportedNetworks(req: ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksResponse> {
|
|
69
72
|
return fm.fetchReq<ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksRequest, ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/supportednetworks?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
70
73
|
}
|
|
74
|
+
static GetFeatureGates(req: ZestuIoApiRegionV1alpha1Region.GetFeatureGatesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.GetFeatureGatesResponse> {
|
|
75
|
+
return fm.fetchReq<ZestuIoApiRegionV1alpha1Region.GetFeatureGatesRequest, ZestuIoApiRegionV1alpha1Region.GetFeatureGatesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/featuregates?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
export class Resources {
|
|
73
79
|
static ListResources(req: ZestuIoApiResourcesV1alpha1Resources.ListResourcesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ListResourcesResponse> {
|