@daocloud-proto/zestu 0.6.2-dev-2d16dd8d → 0.7.0-dev-efffb5ad
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 +34 -1
- package/zestu.io/api/file_storage/v1alpha1/storage.pb.ts +2 -0
- package/zestu.io/api/registry/v1alpha1/registry.pb.ts +9 -0
- package/zestu.io/api/resources/v1alpha1/resources.pb.ts +1 -0
- package/zestu.io/api/types/types.pb.ts +5 -1
- package/zestu.io/api/v1alpha1/zestu.pb.ts +6 -0
package/package.json
CHANGED
|
@@ -8,6 +8,12 @@ import * as ZestuIoApiResourcesV1alpha1Resources from "../../resources/v1alpha1/
|
|
|
8
8
|
import * as ZestuIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
import * as ZestuIoApiTypesTypes from "../../types/types.pb"
|
|
10
10
|
|
|
11
|
+
export enum EventType {
|
|
12
|
+
EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
|
|
13
|
+
Normal = "Normal",
|
|
14
|
+
Warning = "Warning",
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
export enum SaveImageStatus {
|
|
12
18
|
SAVE_IMAGE_STATUS_UNSPECIFIED = "SAVE_IMAGE_STATUS_UNSPECIFIED",
|
|
13
19
|
SAVE_IMAGE_STATUS_SUCCESS = "SAVE_IMAGE_STATUS_SUCCESS",
|
|
@@ -71,6 +77,23 @@ export type ListContainerInstancesResponse = {
|
|
|
71
77
|
pagination?: ZestuIoApiTypesPage.Pagination
|
|
72
78
|
}
|
|
73
79
|
|
|
80
|
+
export type Event = {
|
|
81
|
+
reason?: string
|
|
82
|
+
message?: string
|
|
83
|
+
lastTimestamp?: string
|
|
84
|
+
type?: EventType
|
|
85
|
+
firstTimestamp?: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type ListContainerInstanceEventsRequest = {
|
|
89
|
+
instanceId?: string
|
|
90
|
+
regionId?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type ListContainerInstanceEventsResponse = {
|
|
94
|
+
items?: Event[]
|
|
95
|
+
}
|
|
96
|
+
|
|
74
97
|
export type GetContainerInstanceRequest = {
|
|
75
98
|
regionId?: string
|
|
76
99
|
instanceId?: string
|
|
@@ -137,6 +160,12 @@ export type Image = {
|
|
|
137
160
|
name?: string
|
|
138
161
|
username?: string
|
|
139
162
|
password?: string
|
|
163
|
+
command?: Command
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type Command = {
|
|
167
|
+
commands?: string[]
|
|
168
|
+
args?: string[]
|
|
140
169
|
}
|
|
141
170
|
|
|
142
171
|
export type PackageSource = {
|
|
@@ -151,7 +180,10 @@ export type CreateContainerInstanceResponse = {
|
|
|
151
180
|
|
|
152
181
|
export type ChargeInfo = {
|
|
153
182
|
chargeMode?: ZestuIoApiTypesTypes.BillingType
|
|
154
|
-
|
|
183
|
+
chargeDuration?: number
|
|
184
|
+
enableRenew?: boolean
|
|
185
|
+
renewMode?: ZestuIoApiTypesTypes.BillingType
|
|
186
|
+
renewDuration?: number
|
|
155
187
|
}
|
|
156
188
|
|
|
157
189
|
export type InstanceSpec = {
|
|
@@ -163,6 +195,7 @@ export type InstanceSpec = {
|
|
|
163
195
|
export type VolumeSpec = {
|
|
164
196
|
sourcePath?: string
|
|
165
197
|
mountPath?: string
|
|
198
|
+
size?: number
|
|
166
199
|
}
|
|
167
200
|
|
|
168
201
|
export type ServiceEnable = {
|
|
@@ -116,4 +116,13 @@ export type DeleteArtifactRequest = {
|
|
|
116
116
|
export type UpdateUserPasswordRequest = {
|
|
117
117
|
regionId?: string
|
|
118
118
|
password?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type CheckUserNameExistsRequest = {
|
|
122
|
+
regionId?: string
|
|
123
|
+
username?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type CheckUserNameExistsResponse = {
|
|
127
|
+
exists?: boolean
|
|
119
128
|
}
|
|
@@ -12,7 +12,11 @@ export enum ConditionStatus {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export enum BillingType {
|
|
15
|
-
|
|
15
|
+
PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
|
|
16
|
+
SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
|
|
17
|
+
SUBSCRIPTION_WEEKLY = "SUBSCRIPTION_WEEKLY",
|
|
18
|
+
SUBSCRIPTION_MONTHLY = "SUBSCRIPTION_MONTHLY",
|
|
19
|
+
SUBSCRIPTION_YEARLY = "SUBSCRIPTION_YEARLY",
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export enum UnitType {
|
|
@@ -23,6 +23,9 @@ export class ContainerInstance {
|
|
|
23
23
|
static ListAllContainerInstances(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesResponse> {
|
|
24
24
|
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesRequest, ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesResponse>(`/apis/zestu.io/v1/containerinstances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
25
|
}
|
|
26
|
+
static ListContainerInstanceEvents(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstanceEventsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstanceEventsResponse> {
|
|
27
|
+
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstanceEventsRequest, ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstanceEventsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/events?${fm.renderURLSearchParams(req, ["regionId", "instanceId"])}`, {...initReq, method: "GET"})
|
|
28
|
+
}
|
|
26
29
|
static CreateContainerInstance(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.CreateContainerInstanceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.CreateContainerInstanceResponse> {
|
|
27
30
|
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.CreateContainerInstanceRequest, ZestuIoApiContainerinstanceV1alpha1Containerinstance.CreateContainerInstanceResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
28
31
|
}
|
|
@@ -172,4 +175,7 @@ export class Registry {
|
|
|
172
175
|
static UpdateUserPassword(req: ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
173
176
|
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
174
177
|
}
|
|
178
|
+
static CheckUserNameExists(req: ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse> {
|
|
179
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsRequest, ZestuIoApiRegistryV1alpha1Registry.CheckUserNameExistsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/checkusername`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
180
|
+
}
|
|
175
181
|
}
|