@daocloud-proto/kangaroo 0.2.1-27 → 0.2.1-29

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.
@@ -199,4 +199,18 @@ export type CreateRegistryProject = {
199
199
  registrySecretName?: string
200
200
  name?: string
201
201
  public?: boolean
202
+ }
203
+
204
+ export type StatisticRequest = {
205
+ registrySecretName?: string
206
+ }
207
+
208
+ export type StatisticResponse = {
209
+ privateProjectCount?: string
210
+ privateRepoCount?: string
211
+ publicProjectCount?: string
212
+ publicRepoCount?: string
213
+ totalProjectCount?: string
214
+ totalRepoCount?: string
215
+ totalStorageConsumption?: string
202
216
  }
@@ -29,7 +29,7 @@ export class Image {
29
29
  static DeleteArtifacts(req: KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
30
30
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts/${req["digest"]}`, {...initReq, method: "DELETE"})
31
31
  }
32
- static GetRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
32
+ static ListRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
33
33
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects?${fm.renderURLSearchParams(req, ["registrySecretName"])}`, {...initReq, method: "GET"})
34
34
  }
35
35
  static UpdateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -38,7 +38,10 @@ export class Image {
38
38
  static DeleteRegistryProject(req: KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
39
39
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects/${req["name"]}`, {...initReq, method: "DELETE"})
40
40
  }
41
- static CreateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.CreateRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
41
+ static CreateRegistryProject(req: KangarooIoApiImageV1alpha1Image.CreateRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
42
42
  return fm.fetchReq<KangarooIoApiImageV1alpha1Image.CreateRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects`, {...initReq, method: "POST"})
43
43
  }
44
+ static GetRegistryStatistic(req: KangarooIoApiImageV1alpha1Image.StatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.StatisticResponse> {
45
+ return fm.fetchReq<KangarooIoApiImageV1alpha1Image.StatisticRequest, KangarooIoApiImageV1alpha1Image.StatisticResponse>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/statistic?${fm.renderURLSearchParams(req, ["registrySecretName"])}`, {...initReq, method: "GET"})
46
+ }
44
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.2.1-27",
3
+ "version":"0.2.1-29",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {