@daocloud-proto/kangaroo 0.4.2-26 → 0.4.2-30
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.
|
@@ -223,6 +223,12 @@ export type RegistryProjectResponse = {
|
|
|
223
223
|
createTime?: string
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
export type UpdateProjectRequest = {
|
|
227
|
+
registry?: string
|
|
228
|
+
project?: string
|
|
229
|
+
public?: boolean
|
|
230
|
+
}
|
|
231
|
+
|
|
226
232
|
export type ListRegistryProjectResponse = {
|
|
227
233
|
items?: RegistryProjectResponse[]
|
|
228
234
|
pagination?: KangarooIoApiTypesPage.Page
|
|
@@ -41,6 +41,9 @@ export class Image {
|
|
|
41
41
|
static ListRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
|
|
42
42
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
43
43
|
}
|
|
44
|
+
static UpdateProject(req: KangarooIoApiImageV1alpha1Image.UpdateProjectRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
45
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.UpdateProjectRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects/${req["project"]}`, {...initReq, method: "PUT"})
|
|
46
|
+
}
|
|
44
47
|
static UpdateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
45
48
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects/${req["project"]}/binding`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
46
49
|
}
|