@daocloud-proto/zestu 0.11.1-dev-b7720764 → 0.12.0-rc1
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
|
@@ -57,6 +57,11 @@ export enum InstanceStatus {
|
|
|
57
57
|
CREATING = "CREATING",
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export enum StartMode {
|
|
61
|
+
GPU = "GPU",
|
|
62
|
+
CPU = "CPU",
|
|
63
|
+
}
|
|
64
|
+
|
|
60
65
|
export enum NetworkType {
|
|
61
66
|
NETWORK_TYPE_UNSPECIFIED = "NETWORK_TYPE_UNSPECIFIED",
|
|
62
67
|
SSH = "SSH",
|
|
@@ -149,6 +154,7 @@ export type ContainerInstance = {
|
|
|
149
154
|
serviceEnable?: ServiceEnable
|
|
150
155
|
enableDockerInDocker?: boolean
|
|
151
156
|
enablePersistentRootfs?: boolean
|
|
157
|
+
startMode?: StartMode
|
|
152
158
|
}
|
|
153
159
|
|
|
154
160
|
export type Schedule = {
|
|
@@ -261,6 +267,7 @@ export type StopContainerInstanceResponse = {
|
|
|
261
267
|
export type StartContainerInstanceRequest = {
|
|
262
268
|
instanceId?: string
|
|
263
269
|
regionId?: string
|
|
270
|
+
startMode?: StartMode
|
|
264
271
|
}
|
|
265
272
|
|
|
266
273
|
export type StartContainerInstanceResponse = {
|
|
@@ -336,4 +343,19 @@ export type UpdateContainerInstanceRenewalRequest = {
|
|
|
336
343
|
|
|
337
344
|
export type UpdateContainerInstanceRenewalResponse = {
|
|
338
345
|
containerInstance?: ContainerInstance
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type GetCPUModeResourceRequest = {
|
|
349
|
+
regionId?: string
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export type GetCPUModeResourceResponse = {
|
|
353
|
+
cpuModeResource?: CPUModeResource
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type CPUModeResource = {
|
|
357
|
+
cpuRequest?: string
|
|
358
|
+
memoryRequest?: string
|
|
359
|
+
cpuLimit?: string
|
|
360
|
+
memoryLimit?: string
|
|
339
361
|
}
|
|
@@ -78,6 +78,9 @@ export class Region {
|
|
|
78
78
|
static ListFeatureGates(req: ZestuIoApiRegionV1alpha1Region.ListFeatureGatesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListFeatureGatesResponse> {
|
|
79
79
|
return fm.fetchReq<ZestuIoApiRegionV1alpha1Region.ListFeatureGatesRequest, ZestuIoApiRegionV1alpha1Region.ListFeatureGatesResponse>(`/apis/zestu.io/v1/featuregates?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
80
80
|
}
|
|
81
|
+
static GetCPUModeResource(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.GetCPUModeResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.GetCPUModeResourceResponse> {
|
|
82
|
+
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.GetCPUModeResourceRequest, ZestuIoApiContainerinstanceV1alpha1Containerinstance.GetCPUModeResourceResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/cpumoderesource?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
export class Resources {
|
|
83
86
|
static ListResources(req: ZestuIoApiResourcesV1alpha1Resources.ListResourcesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ListResourcesResponse> {
|