@daocloud-proto/kangaroo 0.2.0 → 0.2.1-12
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,50 @@
|
|
|
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
|
+
import * as KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated from "./registryIntegrated.pb"
|
|
9
|
+
export type AssociatedRegistry = {
|
|
10
|
+
name?: string
|
|
11
|
+
registryType?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryType
|
|
12
|
+
registryUrl?: string
|
|
13
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
14
|
+
createAt?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type CreateAssociatedRegistryRequest = {
|
|
18
|
+
workspaceId?: string
|
|
19
|
+
name?: string
|
|
20
|
+
registryType?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryType
|
|
21
|
+
registryUrl?: string
|
|
22
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type UpdateAssociatedRegistryRequest = {
|
|
26
|
+
workspaceId?: string
|
|
27
|
+
name?: string
|
|
28
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DeleteAssociatedRegistryRequest = {
|
|
32
|
+
workspaceId?: string
|
|
33
|
+
name?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GetAssociatedRegistryRequest = {
|
|
37
|
+
workspaceId?: string
|
|
38
|
+
name?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ListAssociatedRegistryRequest = {
|
|
42
|
+
workspaceId?: string
|
|
43
|
+
page?: number
|
|
44
|
+
pageSize?: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListAssociatedRegistryResponse = {
|
|
48
|
+
items?: AssociatedRegistry[]
|
|
49
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
50
|
+
}
|
|
@@ -13,16 +13,19 @@ export enum RegistryType {
|
|
|
13
13
|
REGISTRY_TYPE_JFROG = "REGISTRY_TYPE_JFROG",
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export enum IntegratedType {
|
|
17
|
+
REGISTRY_INTEGRATED_UNSPECIFIED = "REGISTRY_INTEGRATED_UNSPECIFIED",
|
|
18
|
+
REGISTRY_INTEGRATED_TYPE_INTEGRATED = "REGISTRY_INTEGRATED_TYPE_INTEGRATED",
|
|
19
|
+
REGISTRY_INTEGRATED_TYPE_TRUSTEESHIP = "REGISTRY_INTEGRATED_TYPE_TRUSTEESHIP",
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
export type RegistryIntegrated = {
|
|
17
23
|
name?: string
|
|
18
24
|
registryType?: RegistryType
|
|
19
25
|
registryUrl?: string
|
|
20
26
|
registryAdminCredential?: RegistryAdminCredential
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type RegistryAdminCredential = {
|
|
24
|
-
username?: string
|
|
25
|
-
password?: string
|
|
27
|
+
integratedType?: IntegratedType
|
|
28
|
+
healthy?: boolean
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export type CreateRegistryIntegratedRequest = {
|
|
@@ -53,4 +56,9 @@ export type ListRegistryIntegratedRequest = {
|
|
|
53
56
|
export type ListRegistryIntegratedResponse = {
|
|
54
57
|
items?: RegistryIntegrated[]
|
|
55
58
|
pagination?: KangarooIoApiTypesPage.Page
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type RegistryAdminCredential = {
|
|
62
|
+
username?: string
|
|
63
|
+
password?: string
|
|
56
64
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
|
+
import * as KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry from "./associatedregistry.pb"
|
|
9
10
|
import * as KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated from "./registryIntegrated.pb"
|
|
10
11
|
export class RegistryIntegrateds {
|
|
11
12
|
static CreateRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.CreateRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated> {
|
|
@@ -23,4 +24,21 @@ export class RegistryIntegrateds {
|
|
|
23
24
|
static ListRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse> {
|
|
24
25
|
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse>(`/apis/kangaroo.io/v1alpha1/registry_integrated?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
26
|
}
|
|
27
|
+
}
|
|
28
|
+
export class AssociatedRegistries {
|
|
29
|
+
static CreateAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.CreateAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
30
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.CreateAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
31
|
+
}
|
|
32
|
+
static DeleteAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.DeleteAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
33
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.DeleteAssociatedRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
34
|
+
}
|
|
35
|
+
static GetAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.GetAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.GetAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
37
|
+
}
|
|
38
|
+
static UpdateAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.UpdateAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
39
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.UpdateAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
40
|
+
}
|
|
41
|
+
static ListAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryResponse> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
43
|
+
}
|
|
26
44
|
}
|