@daocloud-proto/virtnest 0.6.0 → 0.7.0-dev1
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/v1alpha1/image.pb.ts +0 -7
- package/v1alpha1/vm.pb.ts +7 -1
package/package.json
CHANGED
package/v1alpha1/image.pb.ts
CHANGED
|
@@ -83,10 +83,6 @@ export type ListArtifactsRequest = {
|
|
|
83
83
|
public?: boolean
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export type ListArtifactsResponse = {
|
|
87
|
-
items?: Artifact[]
|
|
88
|
-
}
|
|
89
|
-
|
|
90
86
|
export type Artifact = {
|
|
91
87
|
digest?: string
|
|
92
88
|
tags?: Tag[]
|
|
@@ -144,9 +140,6 @@ export class Image {
|
|
|
144
140
|
static ListRepositories(req: ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ListRepositoriesResponse> {
|
|
145
141
|
return fm.fetchReq<ListRepositoriesRequest, ListRepositoriesResponse>(`/apis/virtnest.io/v1alpha1/repositories?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
146
142
|
}
|
|
147
|
-
static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
|
|
148
|
-
return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/virtnest.io/v1alpha1/artifacts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
149
|
-
}
|
|
150
143
|
static ListSecrets(req: ListSecretsRequest, initReq?: fm.InitReq): Promise<ListSecretsResponse> {
|
|
151
144
|
return fm.fetchReq<ListSecretsRequest, ListSecretsResponse>(`/apis/virtnest.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
152
145
|
}
|
package/v1alpha1/vm.pb.ts
CHANGED
|
@@ -80,6 +80,12 @@ export enum PersistentVolumeAccessMode {
|
|
|
80
80
|
ReadWriteOncePod = "ReadWriteOncePod",
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
export enum EventLevel {
|
|
84
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
85
|
+
Normal = "Normal",
|
|
86
|
+
Warning = "Warning",
|
|
87
|
+
}
|
|
88
|
+
|
|
83
89
|
export type Pagination = {
|
|
84
90
|
page?: number
|
|
85
91
|
pageSize?: number
|
|
@@ -568,7 +574,7 @@ export type ListVMEventsResponse = {
|
|
|
568
574
|
}
|
|
569
575
|
|
|
570
576
|
export type VmEvents = {
|
|
571
|
-
level?:
|
|
577
|
+
level?: EventLevel
|
|
572
578
|
component?: string
|
|
573
579
|
object?: Object
|
|
574
580
|
name?: string
|