@daocloud-proto/zestu 0.5.5-dev-ecd60bed → 0.6.0-dev-40f7a6b1
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
|
@@ -233,8 +233,16 @@ export type UpdateContainerInstanceRequest = {
|
|
|
233
233
|
regionId?: string
|
|
234
234
|
image?: Image
|
|
235
235
|
schedule?: Schedule
|
|
236
|
+
volumeSpec?: VolumeSpec[]
|
|
236
237
|
}
|
|
237
238
|
|
|
238
239
|
export type UpdateContainerInstanceResponse = {
|
|
239
240
|
containerInstance?: ContainerInstance
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type SaveContainerInstanceRequest = {
|
|
244
|
+
instanceId?: string
|
|
245
|
+
regionId?: string
|
|
246
|
+
repository?: string
|
|
247
|
+
tag?: string
|
|
240
248
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as ZestuIoApiTypesPage from "../../types/page.pb"
|
|
8
|
+
|
|
9
|
+
export enum RegionRegistryStatus {
|
|
10
|
+
unspecified = "unspecified",
|
|
11
|
+
uninitialized = "uninitialized",
|
|
12
|
+
initialized = "initialized",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GetRegistryDetailRequest = {
|
|
16
|
+
regionId?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type GetRegistryDetailResponse = {
|
|
20
|
+
details?: UserRegistryDetail
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type UserRegistryDetail = {
|
|
24
|
+
address?: string
|
|
25
|
+
status?: RegionRegistryStatus
|
|
26
|
+
quota?: string
|
|
27
|
+
used?: string
|
|
28
|
+
freeSize?: string
|
|
29
|
+
project?: string
|
|
30
|
+
username?: string
|
|
31
|
+
password?: string
|
|
32
|
+
accessible?: boolean
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type InitRegistryRequest = {
|
|
36
|
+
regionId?: string
|
|
37
|
+
username?: string
|
|
38
|
+
password?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type InitRegistryResponse = {
|
|
42
|
+
details?: UserRegistryDetail
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type ListRepositoriesRequest = {
|
|
46
|
+
regionId?: string
|
|
47
|
+
fuzzyName?: string
|
|
48
|
+
page?: number
|
|
49
|
+
pageSize?: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ListRepositoriesResponse = {
|
|
53
|
+
items?: Repository[]
|
|
54
|
+
pagination?: ZestuIoApiTypesPage.Pagination
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Repository = {
|
|
58
|
+
name?: string
|
|
59
|
+
tagCount?: string
|
|
60
|
+
pullCount?: string
|
|
61
|
+
updateTimestamp?: string
|
|
62
|
+
description?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type Artifacts = {
|
|
66
|
+
digest?: string
|
|
67
|
+
tags?: Tag[]
|
|
68
|
+
references?: ArtifactReference[]
|
|
69
|
+
imageSize?: string
|
|
70
|
+
pushTime?: string
|
|
71
|
+
pullTime?: string
|
|
72
|
+
imagePullUrl?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ArtifactReference = {
|
|
76
|
+
childDigest?: string
|
|
77
|
+
platform?: ArtifactPlatform
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type ArtifactPlatform = {
|
|
81
|
+
osVersion?: string
|
|
82
|
+
architecture?: string
|
|
83
|
+
os?: string
|
|
84
|
+
variant?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type Tag = {
|
|
88
|
+
name?: string
|
|
89
|
+
pushTime?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type ListArtifactsResponse = {
|
|
93
|
+
items?: Artifacts[]
|
|
94
|
+
pagination?: ZestuIoApiTypesPage.Pagination
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type ListArtifactsRequest = {
|
|
98
|
+
regionId?: string
|
|
99
|
+
repository?: string
|
|
100
|
+
fuzzyName?: string
|
|
101
|
+
page?: number
|
|
102
|
+
pageSize?: number
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type DeleteRepositoryRequest = {
|
|
106
|
+
regionId?: string
|
|
107
|
+
repository?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type DeleteArtifactRequest = {
|
|
111
|
+
regionId?: string
|
|
112
|
+
repository?: string
|
|
113
|
+
artifact?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type UpdateUserPasswordRequest = {
|
|
117
|
+
regionId?: string
|
|
118
|
+
password?: string
|
|
119
|
+
}
|
|
@@ -12,6 +12,7 @@ import * as ZestuIoApiImageV1alpha1Image from "../image/v1alpha1/image.pb"
|
|
|
12
12
|
import * as ZestuIoApiMeteringV1alpha1Metering from "../metering/v1alpha1/metering.pb"
|
|
13
13
|
import * as ZestuIoApiMetricsV1alpha1Metrics from "../metrics/v1alpha1/metrics.pb"
|
|
14
14
|
import * as ZestuIoApiRegionV1alpha1Region from "../region/v1alpha1/region.pb"
|
|
15
|
+
import * as ZestuIoApiRegistryV1alpha1Registry from "../registry/v1alpha1/registry.pb"
|
|
15
16
|
import * as ZestuIoApiResourcesV1alpha1Resources from "../resources/v1alpha1/resources.pb"
|
|
16
17
|
import * as ZestuIoApiSmsV1alpha1Sms from "../sms/v1alpha1/sms.pb"
|
|
17
18
|
import * as ZestuIoApiUserV1alpha1User from "../user/v1alpha1/user.pb"
|
|
@@ -46,6 +47,9 @@ export class ContainerInstance {
|
|
|
46
47
|
static DeleteContainerInstanceNetwork(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.DeleteContainerInstanceNetworkRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
47
48
|
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.DeleteContainerInstanceNetworkRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/ports/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
48
49
|
}
|
|
50
|
+
static SaveContainerInstanceImage(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.SaveContainerInstanceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
51
|
+
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)})
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
export class Region {
|
|
51
55
|
static ListRegions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListRegionsResponse> {
|
|
@@ -142,4 +146,27 @@ export class User {
|
|
|
142
146
|
static GetUserInfo(req: ZestuIoApiUserV1alpha1User.GetUserInfoRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.GetUserInfoResponse> {
|
|
143
147
|
return fm.fetchReq<ZestuIoApiUserV1alpha1User.GetUserInfoRequest, ZestuIoApiUserV1alpha1User.GetUserInfoResponse>(`/apis/zestu.io/v1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
144
148
|
}
|
|
149
|
+
}
|
|
150
|
+
export class Registry {
|
|
151
|
+
static GetRegistryDetail(req: ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse> {
|
|
152
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/details?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
153
|
+
}
|
|
154
|
+
static InitRegistry(req: ZestuIoApiRegistryV1alpha1Registry.InitRegistryRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.InitRegistryResponse> {
|
|
155
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.InitRegistryRequest, ZestuIoApiRegistryV1alpha1Registry.InitRegistryResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/init`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
156
|
+
}
|
|
157
|
+
static ListRepositories(req: ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesResponse> {
|
|
158
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesRequest, ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
159
|
+
}
|
|
160
|
+
static ListArtifacts(req: ZestuIoApiRegistryV1alpha1Registry.ListArtifactsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.ListArtifactsResponse> {
|
|
161
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.ListArtifactsRequest, ZestuIoApiRegistryV1alpha1Registry.ListArtifactsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["regionId", "repository"])}`, {...initReq, method: "GET"})
|
|
162
|
+
}
|
|
163
|
+
static DeleteRepository(req: ZestuIoApiRegistryV1alpha1Registry.DeleteRepositoryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
164
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.DeleteRepositoryRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
165
|
+
}
|
|
166
|
+
static DeleteArtifact(req: ZestuIoApiRegistryV1alpha1Registry.DeleteArtifactRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
167
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.DeleteArtifactRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}/artifacts/${req["artifact"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
168
|
+
}
|
|
169
|
+
static UpdateUserPassword(req: ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
170
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.UpdateUserPasswordRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
171
|
+
}
|
|
145
172
|
}
|