@daocloud-proto/kangaroo 0.2.1-2 → 0.2.1-23
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/kangaroo.io/api/image/v1alpha1/image.pb.ts +202 -0
- package/kangaroo.io/api/image/v1alpha1/rpc.pb.ts +44 -0
- package/kangaroo.io/api/registryIntegrated/v1alpha1/associatedregistry.pb.ts +51 -0
- package/kangaroo.io/api/registryIntegrated/v1alpha1/registryIntegrated.pb.ts +17 -8
- package/kangaroo.io/api/registryIntegrated/v1alpha1/rpc.pb.ts +21 -3
- package/package.json +1 -1
|
@@ -0,0 +1,202 @@
|
|
|
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 ListArtifactsRequestSortBy {
|
|
10
|
+
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ListRegistryRequest = {
|
|
14
|
+
workspaceId?: string
|
|
15
|
+
page?: number
|
|
16
|
+
pageSize?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type RegistrySecret = {
|
|
20
|
+
name?: string
|
|
21
|
+
host?: string
|
|
22
|
+
registrySecretName?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListRegistryResponse = {
|
|
26
|
+
items?: RegistrySecret[]
|
|
27
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ListProjectRequest = {
|
|
31
|
+
workspaceId?: string
|
|
32
|
+
registrySecretName?: string
|
|
33
|
+
page?: number
|
|
34
|
+
pageSize?: number
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ListProjectResponse = {
|
|
38
|
+
items?: string[]
|
|
39
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Repository = {
|
|
43
|
+
name?: string
|
|
44
|
+
public?: boolean
|
|
45
|
+
tagCount?: string
|
|
46
|
+
pullCount?: string
|
|
47
|
+
updateTime?: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type ListRepositoriesRequest = {
|
|
51
|
+
workspaceId?: string
|
|
52
|
+
registrySecretName?: string
|
|
53
|
+
projectName?: string
|
|
54
|
+
page?: number
|
|
55
|
+
pageSize?: number
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ListRepositoriesResponse = {
|
|
59
|
+
items?: Repository[]
|
|
60
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type ScanOverview = {
|
|
64
|
+
scanStatus?: string
|
|
65
|
+
severity?: string
|
|
66
|
+
duration?: string
|
|
67
|
+
endTime?: string
|
|
68
|
+
startTime?: string
|
|
69
|
+
reportId?: string
|
|
70
|
+
scanner?: Scanner
|
|
71
|
+
summary?: ScanSummary
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type Scanner = {
|
|
75
|
+
name?: string
|
|
76
|
+
vendor?: string
|
|
77
|
+
version?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type ScanSummary = {
|
|
81
|
+
fixable?: string
|
|
82
|
+
summary?: VulnerabilitySummary
|
|
83
|
+
total?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type VulnerabilitySummary = {
|
|
87
|
+
critical?: string
|
|
88
|
+
high?: string
|
|
89
|
+
low?: string
|
|
90
|
+
medium?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type Artifacts = {
|
|
94
|
+
digest?: string
|
|
95
|
+
tags?: string[]
|
|
96
|
+
scanOverview?: ScanOverview
|
|
97
|
+
imageSize?: string
|
|
98
|
+
pushTime?: string
|
|
99
|
+
pullTime?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type ListArtifactsRequest = {
|
|
103
|
+
workspaceId?: string
|
|
104
|
+
registrySecretName?: string
|
|
105
|
+
projectName?: string
|
|
106
|
+
repositoriesName?: string
|
|
107
|
+
sortBy?: ListArtifactsRequestSortBy
|
|
108
|
+
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
109
|
+
page?: number
|
|
110
|
+
pageSize?: number
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type ListArtifactsResponse = {
|
|
114
|
+
items?: Artifacts[]
|
|
115
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type TagInfoRequest = {
|
|
119
|
+
workspaceId?: string
|
|
120
|
+
registrySecretName?: string
|
|
121
|
+
projectName?: string
|
|
122
|
+
repositoriesName?: string
|
|
123
|
+
digest?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type TagInfoResponse = {
|
|
127
|
+
extraAttrs?: ExtraAttrs
|
|
128
|
+
buildHistory?: BuildHistory[]
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type ExtraAttrs = {
|
|
132
|
+
architecture?: string
|
|
133
|
+
author?: string
|
|
134
|
+
digest?: string
|
|
135
|
+
imageSize?: string
|
|
136
|
+
createdTime?: string
|
|
137
|
+
pushTime?: string
|
|
138
|
+
tags?: string[]
|
|
139
|
+
repoName?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type BuildHistory = {
|
|
143
|
+
created?: string
|
|
144
|
+
createdBy?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type DeleteRepositoriesRequest = {
|
|
148
|
+
workspaceId?: string
|
|
149
|
+
registrySecretName?: string
|
|
150
|
+
projectName?: string
|
|
151
|
+
name?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type DeleteArtifactsRequest = {
|
|
155
|
+
workspaceId?: string
|
|
156
|
+
registrySecretName?: string
|
|
157
|
+
projectName?: string
|
|
158
|
+
repositoriesName?: string
|
|
159
|
+
digest?: string
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export type ListRegistryProjectRequest = {
|
|
163
|
+
filter?: string
|
|
164
|
+
registrySecretName?: string
|
|
165
|
+
page?: number
|
|
166
|
+
pageSize?: number
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type ProjectBindingWorkspace = {
|
|
170
|
+
projectId?: string
|
|
171
|
+
projectAlias?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type RegistryProjectResponse = {
|
|
175
|
+
name?: string
|
|
176
|
+
public?: boolean
|
|
177
|
+
bindingWorkspace?: ProjectBindingWorkspace[]
|
|
178
|
+
repositoriesCount?: string
|
|
179
|
+
createTime?: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type ListRegistryProjectResponse = {
|
|
183
|
+
items?: RegistryProjectResponse[]
|
|
184
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ProjectBindingRequest = {
|
|
188
|
+
registrySecretName?: string
|
|
189
|
+
name?: string
|
|
190
|
+
bindingWorkspace?: ProjectBindingWorkspace[]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type DeleteRegistryProject = {
|
|
194
|
+
registrySecretName?: string
|
|
195
|
+
name?: string
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type CreateRegistryProject = {
|
|
199
|
+
registrySecretName?: string
|
|
200
|
+
name?: string
|
|
201
|
+
public?: boolean
|
|
202
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 KangarooIoApiImageV1alpha1Image from "./image.pb"
|
|
10
|
+
export class Image {
|
|
11
|
+
static ListRegistry(req: KangarooIoApiImageV1alpha1Image.ListRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryResponse> {
|
|
12
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryRequest, KangarooIoApiImageV1alpha1Image.ListRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
13
|
+
}
|
|
14
|
+
static ListProject(req: KangarooIoApiImageV1alpha1Image.ListProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListProjectResponse> {
|
|
15
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListProjectRequest, KangarooIoApiImageV1alpha1Image.ListProjectResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects?${fm.renderURLSearchParams(req, ["workspaceId", "registrySecretName"])}`, {...initReq, method: "GET"})
|
|
16
|
+
}
|
|
17
|
+
static ListRepositories(req: KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse> {
|
|
18
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects/${req["projectName"]}/repositories?${fm.renderURLSearchParams(req, ["workspaceId", "registrySecretName", "projectName"])}`, {...initReq, method: "GET"})
|
|
19
|
+
}
|
|
20
|
+
static ListArtifacts(req: KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListArtifactsResponse> {
|
|
21
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, KangarooIoApiImageV1alpha1Image.ListArtifactsResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts?${fm.renderURLSearchParams(req, ["workspaceId", "registrySecretName", "projectName", "repositoriesName"])}`, {...initReq, method: "GET"})
|
|
22
|
+
}
|
|
23
|
+
static GetArtifactsInfo(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoResponse> {
|
|
24
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registrySecretName", "projectName", "repositoriesName", "digest"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
static DeleteRepositories(req: KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
27
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registrySecretName"]}/projects/${req["projectName"]}/repositories/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
28
|
+
}
|
|
29
|
+
static DeleteArtifacts(req: KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
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
|
+
}
|
|
32
|
+
static GetRegistryProject(req: KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse> {
|
|
33
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects?${fm.renderURLSearchParams(req, ["registrySecretName"])}`, {...initReq, method: "GET"})
|
|
34
|
+
}
|
|
35
|
+
static UpdateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects/${req["name"]}/binding`, {...initReq, method: "PUT"})
|
|
37
|
+
}
|
|
38
|
+
static DeleteRegistryProject(req: KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
39
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
40
|
+
}
|
|
41
|
+
static CreateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.CreateRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.CreateRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry/${req["registrySecretName"]}/projects`, {...initReq, method: "POST"})
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
registrySecretName?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type CreateAssociatedRegistryRequest = {
|
|
19
|
+
workspaceId?: string
|
|
20
|
+
name?: string
|
|
21
|
+
registryType?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryType
|
|
22
|
+
registryUrl?: string
|
|
23
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type UpdateAssociatedRegistryRequest = {
|
|
27
|
+
workspaceId?: string
|
|
28
|
+
registrySecretName?: string
|
|
29
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type DeleteAssociatedRegistryRequest = {
|
|
33
|
+
workspaceId?: string
|
|
34
|
+
registrySecretName?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type GetAssociatedRegistryRequest = {
|
|
38
|
+
workspaceId?: string
|
|
39
|
+
registrySecretName?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type ListAssociatedRegistryRequest = {
|
|
43
|
+
workspaceId?: string
|
|
44
|
+
page?: number
|
|
45
|
+
pageSize?: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type ListAssociatedRegistryResponse = {
|
|
49
|
+
items?: AssociatedRegistry[]
|
|
50
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
51
|
+
}
|
|
@@ -13,16 +13,20 @@ 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
|
-
|
|
24
|
-
username?: string
|
|
25
|
-
password?: string
|
|
27
|
+
integratedType?: IntegratedType
|
|
28
|
+
healthy?: boolean
|
|
29
|
+
registrySecretName?: string
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
export type CreateRegistryIntegratedRequest = {
|
|
@@ -33,15 +37,15 @@ export type CreateRegistryIntegratedRequest = {
|
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export type DeleteRegistryIntegratedRequest = {
|
|
36
|
-
|
|
40
|
+
registrySecretName?: string
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
export type GetRegistryIntegratedRequest = {
|
|
40
|
-
|
|
44
|
+
registrySecretName?: string
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
export type UpdateRegistryIntegratedRequest = {
|
|
44
|
-
|
|
48
|
+
registrySecretName?: string
|
|
45
49
|
registryAdminCredential?: RegistryAdminCredential
|
|
46
50
|
}
|
|
47
51
|
|
|
@@ -53,4 +57,9 @@ export type ListRegistryIntegratedRequest = {
|
|
|
53
57
|
export type ListRegistryIntegratedResponse = {
|
|
54
58
|
items?: RegistryIntegrated[]
|
|
55
59
|
pagination?: KangarooIoApiTypesPage.Page
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type RegistryAdminCredential = {
|
|
63
|
+
username?: string
|
|
64
|
+
password?: string
|
|
56
65
|
}
|
|
@@ -6,21 +6,39 @@
|
|
|
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> {
|
|
12
13
|
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.CreateRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
13
14
|
}
|
|
14
15
|
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["
|
|
16
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.DeleteRegistryIntegratedRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["registrySecretName"]}`, {...initReq, method: "DELETE"})
|
|
16
17
|
}
|
|
17
18
|
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["
|
|
19
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.GetRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["registrySecretName"]}?${fm.renderURLSearchParams(req, ["registrySecretName"])}`, {...initReq, method: "GET"})
|
|
19
20
|
}
|
|
20
21
|
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["
|
|
22
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.UpdateRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated>(`/apis/kangaroo.io/v1alpha1/registry_integrated/${req["registrySecretName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
22
23
|
}
|
|
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["registrySecretName"]}`, {...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["registrySecretName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registrySecretName"])}`, {...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["registrySecretName"]}`, {...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
|
}
|