@daocloud-proto/kangaroo 0.1.1-8 → 0.2.0

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.
@@ -0,0 +1,25 @@
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 KangarooIoApiTypesPage from "../../types/page.pb"
8
+
9
+ export enum ListClusterRequestSortBy {
10
+ SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
11
+ field_name = "field_name",
12
+ creation_time = "creation_time",
13
+ }
14
+
15
+ export type ListClusterRequest = {
16
+ page?: number
17
+ pageSize?: number
18
+ sortBy?: ListClusterRequestSortBy
19
+ orderBy?: KangarooIoApiTypesPage.OrderBy
20
+ }
21
+
22
+ export type ListClusterResponse = {
23
+ items?: string[]
24
+ pagination?: KangarooIoApiTypesPage.Page
25
+ }
@@ -6,30 +6,12 @@
6
6
 
7
7
  import * as KangarooIoApiTypesPage from "../../types/page.pb"
8
8
 
9
- export enum ListClusterRequestSortBy {
10
- SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
11
- field_name = "field_name",
12
- creation_time = "creation_time",
13
- }
14
-
15
9
  export enum ListNamespaceRequestSortBy {
16
10
  SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
17
11
  field_name = "field_name",
18
12
  creation_time = "creation_time",
19
13
  }
20
14
 
21
- export type ListClusterRequest = {
22
- page?: number
23
- pageSize?: number
24
- sortBy?: ListClusterRequestSortBy
25
- orderBy?: KangarooIoApiTypesPage.OrderBy
26
- }
27
-
28
- export type ListClusterResponse = {
29
- items?: string[]
30
- pagination?: KangarooIoApiTypesPage.Page
31
- }
32
-
33
15
  export type ListNamespaceRequest = {
34
16
  cluster?: string
35
17
  page?: number
@@ -0,0 +1,21 @@
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 fm from "../../../../fetch.pb"
8
+ import * as KangarooIoApiCoreV1alpha1Cluster from "./cluster.pb"
9
+ import * as KangarooIoApiCoreV1alpha1Namespace from "./namespace.pb"
10
+ import * as KangarooIoApiCoreV1alpha1Workspace from "./workspace.pb"
11
+ export class Core {
12
+ static ListCluster(req: KangarooIoApiCoreV1alpha1Cluster.ListClusterRequest, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Cluster.ListClusterResponse> {
13
+ return fm.fetchReq<KangarooIoApiCoreV1alpha1Cluster.ListClusterRequest, KangarooIoApiCoreV1alpha1Cluster.ListClusterResponse>(`/apis/kangaroo.io/v1alpha1/cluster?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
14
+ }
15
+ static ListNamespace(req: KangarooIoApiCoreV1alpha1Namespace.ListNamespaceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Namespace.ListNamespaceResponse> {
16
+ return fm.fetchReq<KangarooIoApiCoreV1alpha1Namespace.ListNamespaceRequest, KangarooIoApiCoreV1alpha1Namespace.ListNamespaceResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
17
+ }
18
+ static ListVisibleWorkspaces(req: KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceResponse> {
19
+ return fm.fetchReq<KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceRequest, KangarooIoApiCoreV1alpha1Workspace.ListWorkspaceResponse>(`/apis/kangaroo.io/v1alpha1/workspace?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
20
+ }
21
+ }
@@ -0,0 +1,22 @@
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 KangarooIoApiTypesPage from "../../types/page.pb"
8
+ export type ListWorkspaceResponse = {
9
+ items?: Workspace[]
10
+ pagination?: KangarooIoApiTypesPage.Page
11
+ }
12
+
13
+ export type ListWorkspaceRequest = {
14
+ name?: string
15
+ page?: number
16
+ pageSize?: number
17
+ }
18
+
19
+ export type Workspace = {
20
+ workspaceId?: number
21
+ alias?: string
22
+ }
@@ -6,7 +6,6 @@
6
6
 
7
7
  import * as fm from "../../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
9
- import * as KangarooIoApiHarborV1alpha1Cluster from "./cluster.pb"
10
9
  import * as KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
11
10
  import * as KangarooIoApiHarborV1alpha1Project from "./project.pb"
12
11
  import * as KangarooIoApiHarborV1alpha1Repository from "./repository.pb"
@@ -32,12 +31,6 @@ export class Harbor {
32
31
  static DeleteHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
33
32
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE"})
34
33
  }
35
- static ListCluster(req: KangarooIoApiHarborV1alpha1Cluster.ListClusterRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Cluster.ListClusterResponse> {
36
- return fm.fetchReq<KangarooIoApiHarborV1alpha1Cluster.ListClusterRequest, KangarooIoApiHarborV1alpha1Cluster.ListClusterResponse>(`/apis/kangaroo.io/v1alpha1/cluster?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
37
- }
38
- static ListNamespace(req: KangarooIoApiHarborV1alpha1Cluster.ListNamespaceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Cluster.ListNamespaceResponse> {
39
- return fm.fetchReq<KangarooIoApiHarborV1alpha1Cluster.ListNamespaceRequest, KangarooIoApiHarborV1alpha1Cluster.ListNamespaceResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
40
- }
41
34
  static GetStorageStatistic(req: KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticResponse> {
42
35
  return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticRequest, KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}/storage_statistic?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
43
36
  }
@@ -0,0 +1,56 @@
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 KangarooIoApiTypesPage from "../../types/page.pb"
8
+
9
+ export enum RegistryType {
10
+ REGISTRY_UNSPECIFIED = "REGISTRY_UNSPECIFIED",
11
+ REGISTRY_TYPE_DOCKER_REGISTRY = "REGISTRY_TYPE_DOCKER_REGISTRY",
12
+ REGISTRY_TYPE_HARBOR = "REGISTRY_TYPE_HARBOR",
13
+ REGISTRY_TYPE_JFROG = "REGISTRY_TYPE_JFROG",
14
+ }
15
+
16
+ export type RegistryIntegrated = {
17
+ name?: string
18
+ registryType?: RegistryType
19
+ registryUrl?: string
20
+ registryAdminCredential?: RegistryAdminCredential
21
+ }
22
+
23
+ export type RegistryAdminCredential = {
24
+ username?: string
25
+ password?: string
26
+ }
27
+
28
+ export type CreateRegistryIntegratedRequest = {
29
+ name?: string
30
+ registryType?: RegistryType
31
+ registryUrl?: string
32
+ registryAdminCredential?: RegistryAdminCredential
33
+ }
34
+
35
+ export type DeleteRegistryIntegratedRequest = {
36
+ name?: string
37
+ }
38
+
39
+ export type GetRegistryIntegratedRequest = {
40
+ name?: string
41
+ }
42
+
43
+ export type UpdateRegistryIntegratedRequest = {
44
+ name?: string
45
+ registryAdminCredential?: RegistryAdminCredential
46
+ }
47
+
48
+ export type ListRegistryIntegratedRequest = {
49
+ page?: number
50
+ pageSize?: number
51
+ }
52
+
53
+ export type ListRegistryIntegratedResponse = {
54
+ items?: RegistryIntegrated[]
55
+ pagination?: KangarooIoApiTypesPage.Page
56
+ }
@@ -0,0 +1,26 @@
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 fm from "../../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
9
+ import * as KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated from "./registryIntegrated.pb"
10
+ export class RegistryIntegrateds {
11
+ static CreateRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.CreateRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated> {
12
+ return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.CreateRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated`, {...initReq, method: "POST", body: JSON.stringify(req)})
13
+ }
14
+ static DeleteRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.DeleteRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
15
+ return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.DeleteRegistryIntegratedRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["name"]}`, {...initReq, method: "DELETE"})
16
+ }
17
+ static GetRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.GetRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated> {
18
+ return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.GetRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
19
+ }
20
+ static UpdateRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.UpdateRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated> {
21
+ return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.UpdateRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
22
+ }
23
+ static ListRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse> {
24
+ return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse>(`/apis/kangaroo.io/v1alpha1/registry_integrated?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
25
+ }
26
+ }
@@ -17,7 +17,7 @@ export enum SortBy {
17
17
 
18
18
  export type Page = {
19
19
  page?: number
20
- size?: number
20
+ pageSize?: number
21
21
  total?: number
22
22
  pages?: number
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.1.1-8",
3
+ "version":"0.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {