@daocloud-proto/kangaroo 0.5.2 → 0.6.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.
- package/kangaroo.io/api/core/v1alpha1/auth.pb.ts +27 -2
- package/kangaroo.io/api/harbor/v1alpha1/harbor.pb.ts +19 -0
- package/kangaroo.io/api/harbor/v1alpha1/rpc.pb.ts +3 -0
- package/kangaroo.io/api/image/v1alpha1/image.pb.ts +12 -1
- package/kangaroo.io/api/image/v1alpha1/rpc.pb.ts +3 -0
- package/kangaroo.io/api/registry/v1alpha1/replication.pb.ts +273 -0
- package/kangaroo.io/api/registry/v1alpha1/rpc.pb.ts +45 -0
- package/package.json +1 -1
|
@@ -3,12 +3,37 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
export enum PermissionsType {
|
|
8
|
+
ScanImage = "ScanImage",
|
|
9
|
+
DeleteImage = "DeleteImage",
|
|
10
|
+
GetImage = "GetImage",
|
|
11
|
+
CreateImageKey = "CreateImageKey",
|
|
12
|
+
CreateConnectedRegistry = "CreateConnectedRegistry",
|
|
13
|
+
DeleteConnectedRegistry = "DeleteConnectedRegistry",
|
|
14
|
+
UpdateConnectedRegistry = "UpdateConnectedRegistry",
|
|
15
|
+
GetConnectedRegistry = "GetConnectedRegistry",
|
|
16
|
+
CreateRegistryIntegration = "CreateRegistryIntegration",
|
|
17
|
+
DeleteRegistryIntegration = "DeleteRegistryIntegration",
|
|
18
|
+
UpdateRegistryIntegration = "UpdateRegistryIntegration",
|
|
19
|
+
GetRegistryIntegration = "GetRegistryIntegration",
|
|
20
|
+
CreateRegistrySpace = "CreateRegistrySpace",
|
|
21
|
+
DeleteRegistrySpace = "DeleteRegistrySpace",
|
|
22
|
+
UpdateRegistrySpace = "UpdateRegistrySpace",
|
|
23
|
+
GetRegistrySpace = "GetRegistrySpace",
|
|
24
|
+
BindRegistrySpace = "BindRegistrySpace",
|
|
25
|
+
CreateManagedHarbor = "CreateManagedHarbor",
|
|
26
|
+
DeleteManagedHarbor = "DeleteManagedHarbor",
|
|
27
|
+
UpdateManagedHarbor = "UpdateManagedHarbor",
|
|
28
|
+
GetManagedHarbor = "GetManagedHarbor",
|
|
29
|
+
}
|
|
30
|
+
|
|
6
31
|
export type GlobalPermissionsResponse = {
|
|
7
|
-
permissions?:
|
|
32
|
+
permissions?: PermissionsType[]
|
|
8
33
|
}
|
|
9
34
|
|
|
10
35
|
export type WorkspacePermissionsResponse = {
|
|
11
|
-
permissions?:
|
|
36
|
+
permissions?: PermissionsType[]
|
|
12
37
|
}
|
|
13
38
|
|
|
14
39
|
export type WorkspacePermissionsRequest = {
|
|
@@ -179,6 +179,12 @@ export type ExposeSpec = {
|
|
|
179
179
|
nodePortSpec?: ExposeNodePortSpec
|
|
180
180
|
externalUrl?: string
|
|
181
181
|
exposeHttps?: boolean
|
|
182
|
+
httpsSpec?: HttpsSpec
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type HttpsSpec = {
|
|
186
|
+
namespace?: string
|
|
187
|
+
name?: string
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
export type ExposeIngressSpec = {
|
|
@@ -244,4 +250,17 @@ export type VerifyNodePortRequest = {
|
|
|
244
250
|
|
|
245
251
|
export type VerifyNodePortResponse = {
|
|
246
252
|
status?: boolean
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type ListTLSRequest = {
|
|
256
|
+
cluster?: string
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type ListTLSResponse = {
|
|
260
|
+
items?: ListTLSResponseItem[]
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export type ListTLSResponseItem = {
|
|
264
|
+
namespace?: string
|
|
265
|
+
name?: string
|
|
247
266
|
}
|
|
@@ -39,4 +39,7 @@ export class Harbor {
|
|
|
39
39
|
static ListRedis(req: KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Redis.ListRedisResponse> {
|
|
40
40
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, KangarooIoApiHarborV1alpha1Redis.ListRedisResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/redis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
41
41
|
}
|
|
42
|
+
static ListTLSSecret(req: KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse> {
|
|
43
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/tls?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
44
|
+
}
|
|
42
45
|
}
|
|
@@ -66,10 +66,17 @@ export type ListProjectRequest = {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export type ListProjectResponse = {
|
|
69
|
-
items?:
|
|
69
|
+
items?: ListProjectResponseItem[]
|
|
70
70
|
pagination?: KangarooIoApiTypesPage.Page
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
export type ListProjectResponseItem = {
|
|
74
|
+
name?: string
|
|
75
|
+
public?: boolean
|
|
76
|
+
total?: string
|
|
77
|
+
createTime?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
73
80
|
export type Repository = {
|
|
74
81
|
name?: string
|
|
75
82
|
public?: boolean
|
|
@@ -180,6 +187,10 @@ export type TagInfoResponse = {
|
|
|
180
187
|
references?: Reference[]
|
|
181
188
|
}
|
|
182
189
|
|
|
190
|
+
export type TagInfoBuildHistoryResponse = {
|
|
191
|
+
buildHistory?: BuildHistory[]
|
|
192
|
+
}
|
|
193
|
+
|
|
183
194
|
export type ExtraAttrs = {
|
|
184
195
|
architecture?: string
|
|
185
196
|
author?: string
|
|
@@ -23,6 +23,9 @@ export class Image {
|
|
|
23
23
|
static GetArtifactsInfo(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoResponse> {
|
|
24
24
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest"])}`, {...initReq, method: "GET"})
|
|
25
25
|
}
|
|
26
|
+
static GetArtifactsInfoBuildHistory(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoBuildHistoryResponse> {
|
|
27
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoBuildHistoryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/history/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest"])}`, {...initReq, method: "GET"})
|
|
28
|
+
}
|
|
26
29
|
static DeleteRepositories(req: KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
27
30
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}`, {...initReq, method: "DELETE"})
|
|
28
31
|
}
|
|
@@ -0,0 +1,273 @@
|
|
|
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 native_registry_type {
|
|
10
|
+
NATIVE_REGISTRY_UNSPECIFIED = "NATIVE_REGISTRY_UNSPECIFIED",
|
|
11
|
+
NATIVE_REGISTRY_DOCKER_REGISTRY = "NATIVE_REGISTRY_DOCKER_REGISTRY",
|
|
12
|
+
NATIVE_REGISTRY_HARBOR = "NATIVE_REGISTRY_HARBOR",
|
|
13
|
+
NATIVE_REGISTRY_JFROG_ARTIFACTORY = "NATIVE_REGISTRY_JFROG_ARTIFACTORY",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum TriggerMode {
|
|
17
|
+
TRIGGER_MODEL_UNSPECIFIED = "TRIGGER_MODEL_UNSPECIFIED",
|
|
18
|
+
TRIGGER_MODEL_MANUAL = "TRIGGER_MODEL_MANUAL",
|
|
19
|
+
TRIGGER_MODEL_SCHEDULE = "TRIGGER_MODEL_SCHEDULE",
|
|
20
|
+
TRIGGER_MODEL_EVENT_BASED = "TRIGGER_MODEL_EVENT_BASED",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum NativeRegistryregistry_status {
|
|
24
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
25
|
+
HEALTHY = "HEALTHY",
|
|
26
|
+
UNHEALTHY = "UNHEALTHY",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export enum NativeRegistryCredentialcredential_type {
|
|
30
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
31
|
+
BASIC = "BASIC",
|
|
32
|
+
OAUTH = "OAUTH",
|
|
33
|
+
SECRET = "SECRET",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum CreateNativeRegistryRequestType {
|
|
37
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
38
|
+
INTEGRATION = "INTEGRATION",
|
|
39
|
+
NATIVE = "NATIVE",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export enum FilterFilterType {
|
|
43
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
44
|
+
NAME = "NAME",
|
|
45
|
+
TAG = "TAG",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export enum ExecutionStatus {
|
|
49
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
50
|
+
STATUS_STOPPED = "STATUS_STOPPED",
|
|
51
|
+
STATUS_SUCCEED = "STATUS_SUCCEED",
|
|
52
|
+
STATUS_FAILED = "STATUS_FAILED",
|
|
53
|
+
STATUS_IN_PROGRESS = "STATUS_IN_PROGRESS",
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export enum ReplicationTaskOperation {
|
|
57
|
+
OPERATION_UNSPECIFIED = "OPERATION_UNSPECIFIED",
|
|
58
|
+
OPERATION_DELETE = "OPERATION_DELETE",
|
|
59
|
+
OPERATION_COPY = "OPERATION_COPY",
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export enum ReplicationTaskStatus {
|
|
63
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
64
|
+
STATUS_STOPPED = "STATUS_STOPPED",
|
|
65
|
+
STATUS_SUCCEED = "STATUS_SUCCEED",
|
|
66
|
+
STATUS_FAILED = "STATUS_FAILED",
|
|
67
|
+
STATUS_PENDING = "STATUS_PENDING",
|
|
68
|
+
STATUS_IN_PROGRESS = "STATUS_IN_PROGRESS",
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type ListNativeRegistryRequest = {
|
|
72
|
+
registry?: string
|
|
73
|
+
page?: number
|
|
74
|
+
pageSize?: number
|
|
75
|
+
fuzzyName?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type NativeRegistry = {
|
|
79
|
+
id?: string
|
|
80
|
+
type?: native_registry_type
|
|
81
|
+
name?: string
|
|
82
|
+
url?: string
|
|
83
|
+
nativeRegistryCredential?: NativeRegistryCredential
|
|
84
|
+
insecure?: boolean
|
|
85
|
+
description?: string
|
|
86
|
+
status?: NativeRegistryregistry_status
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type NativeRegistryCredential = {
|
|
90
|
+
accessKey?: string
|
|
91
|
+
accessSecret?: string
|
|
92
|
+
type?: NativeRegistryCredentialcredential_type
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ListNativeRegistryResponse = {
|
|
96
|
+
items?: NativeRegistry[]
|
|
97
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type NativeRegistrySpec = {
|
|
101
|
+
type?: native_registry_type
|
|
102
|
+
name?: string
|
|
103
|
+
url?: string
|
|
104
|
+
nativeRegistryCredential?: NativeRegistryCredential
|
|
105
|
+
insecure?: boolean
|
|
106
|
+
description?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type CreateNativeRegistryRequest = {
|
|
110
|
+
registry?: string
|
|
111
|
+
createType?: CreateNativeRegistryRequestType
|
|
112
|
+
integrationRegistry?: string[]
|
|
113
|
+
nativeRegistry?: NativeRegistrySpec
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type UpdateNativeRegistryRequest = {
|
|
117
|
+
registry?: string
|
|
118
|
+
nativeRegistryId?: string
|
|
119
|
+
nativeRegistry?: NativeRegistrySpec
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type DeleteNativeRegistryRequest = {
|
|
123
|
+
registry?: string
|
|
124
|
+
nativeRegistryId?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type Policy = {
|
|
128
|
+
disRegistry?: NativeRegistry
|
|
129
|
+
srcRegistry?: NativeRegistry
|
|
130
|
+
enabled?: boolean
|
|
131
|
+
creationTime?: string
|
|
132
|
+
updateTime?: string
|
|
133
|
+
speed?: string
|
|
134
|
+
id?: string
|
|
135
|
+
override?: boolean
|
|
136
|
+
name?: string
|
|
137
|
+
description?: string
|
|
138
|
+
filters?: Filter[]
|
|
139
|
+
trigger?: Trigger
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type Trigger = {
|
|
143
|
+
cron?: string
|
|
144
|
+
type?: TriggerMode
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type Filter = {
|
|
148
|
+
type?: FilterFilterType
|
|
149
|
+
value?: string
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type ListPoliciesRequest = {
|
|
153
|
+
registry?: string
|
|
154
|
+
page?: number
|
|
155
|
+
pageSize?: number
|
|
156
|
+
fuzzyName?: string
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type ListPoliciesResponse = {
|
|
160
|
+
items?: Policy[]
|
|
161
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type DeletePolicyRequest = {
|
|
165
|
+
registry?: string
|
|
166
|
+
policyId?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type CreateExecutionRequest = {
|
|
170
|
+
registry?: string
|
|
171
|
+
policyId?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type StopExecutionRequest = {
|
|
175
|
+
registry?: string
|
|
176
|
+
executionId?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type Execution = {
|
|
180
|
+
endTime?: string
|
|
181
|
+
failed?: string
|
|
182
|
+
id?: string
|
|
183
|
+
inProgress?: string
|
|
184
|
+
policyId?: string
|
|
185
|
+
startTime?: string
|
|
186
|
+
status?: ExecutionStatus
|
|
187
|
+
statusText?: string
|
|
188
|
+
stopped?: string
|
|
189
|
+
succeed?: string
|
|
190
|
+
total?: string
|
|
191
|
+
trigger?: TriggerMode
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type ListExecutionsRequest = {
|
|
195
|
+
registry?: string
|
|
196
|
+
page?: number
|
|
197
|
+
pageSize?: number
|
|
198
|
+
policyId?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type ListExecutionsResponse = {
|
|
202
|
+
items?: Execution[]
|
|
203
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type CreatePolicyRequest = {
|
|
207
|
+
registry?: string
|
|
208
|
+
name?: string
|
|
209
|
+
description?: string
|
|
210
|
+
trigger?: Trigger
|
|
211
|
+
filters?: Filter[]
|
|
212
|
+
srcRegistry?: NativeRegistry
|
|
213
|
+
disRegistry?: NativeRegistry
|
|
214
|
+
enabled?: boolean
|
|
215
|
+
override?: boolean
|
|
216
|
+
destNamespace?: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type UpdatePolicyRequest = {
|
|
220
|
+
registry?: string
|
|
221
|
+
policyId?: string
|
|
222
|
+
name?: string
|
|
223
|
+
description?: string
|
|
224
|
+
trigger?: Trigger
|
|
225
|
+
filters?: Filter[]
|
|
226
|
+
srcRegistry?: NativeRegistry
|
|
227
|
+
disRegistry?: NativeRegistry
|
|
228
|
+
enabled?: boolean
|
|
229
|
+
override?: boolean
|
|
230
|
+
destNamespace?: string
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type GetExecutionRequest = {
|
|
234
|
+
registry?: string
|
|
235
|
+
executionId?: string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type ListReplicationTasksRequest = {
|
|
239
|
+
registry?: string
|
|
240
|
+
executionId?: string
|
|
241
|
+
page?: number
|
|
242
|
+
pageSize?: number
|
|
243
|
+
resourceType?: string
|
|
244
|
+
status?: string
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type ListReplicationTasksResponse = {
|
|
248
|
+
items?: ReplicationTask[]
|
|
249
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type ReplicationTask = {
|
|
253
|
+
dstResource?: string
|
|
254
|
+
endTime?: string
|
|
255
|
+
executionId?: string
|
|
256
|
+
id?: string
|
|
257
|
+
jobId?: string
|
|
258
|
+
operation?: ReplicationTaskOperation
|
|
259
|
+
resourceType?: string
|
|
260
|
+
srcResource?: string
|
|
261
|
+
startTime?: string
|
|
262
|
+
status?: ReplicationTaskStatus
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type GetReplicationTaskLogRequest = {
|
|
266
|
+
registry?: string
|
|
267
|
+
executionId?: string
|
|
268
|
+
taskId?: string
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type GetReplicationTaskLogResponse = {
|
|
272
|
+
log?: string
|
|
273
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiRegistryV1alpha1Registry from "./registry.pb"
|
|
10
|
+
import * as KangarooIoApiRegistryV1alpha1Replication from "./replication.pb"
|
|
10
11
|
export class Registries {
|
|
11
12
|
static CreateRegistry(req: KangarooIoApiRegistryV1alpha1Registry.CreateRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
12
13
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.CreateRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
@@ -47,4 +48,48 @@ export class Registries {
|
|
|
47
48
|
static GetStorageStatistic(req: KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse> {
|
|
48
49
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/storage_statistic?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
49
50
|
}
|
|
51
|
+
}
|
|
52
|
+
export class Replications {
|
|
53
|
+
static ListNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryResponse> {
|
|
54
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryRequest, KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/native/registries?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
55
|
+
}
|
|
56
|
+
static CreateNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.CreateNativeRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
57
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.CreateNativeRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/native/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
58
|
+
}
|
|
59
|
+
static UpdateNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.UpdateNativeRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.NativeRegistry> {
|
|
60
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.UpdateNativeRegistryRequest, KangarooIoApiRegistryV1alpha1Replication.NativeRegistry>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/native/registries/${req["nativeRegistryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
61
|
+
}
|
|
62
|
+
static DeleteNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.DeleteNativeRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
63
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.DeleteNativeRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/native/registries/${req["nativeRegistryId"]}`, {...initReq, method: "DELETE"})
|
|
64
|
+
}
|
|
65
|
+
static ListPolicies(req: KangarooIoApiRegistryV1alpha1Replication.ListPoliciesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListPoliciesResponse> {
|
|
66
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.ListPoliciesRequest, KangarooIoApiRegistryV1alpha1Replication.ListPoliciesResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
67
|
+
}
|
|
68
|
+
static DeletePolicy(req: KangarooIoApiRegistryV1alpha1Replication.DeletePolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
69
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.DeletePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies/${req["policyId"]}`, {...initReq, method: "DELETE"})
|
|
70
|
+
}
|
|
71
|
+
static CreateExecution(req: KangarooIoApiRegistryV1alpha1Replication.CreateExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
72
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.CreateExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions`, {...initReq, method: "POST"})
|
|
73
|
+
}
|
|
74
|
+
static StopExecution(req: KangarooIoApiRegistryV1alpha1Replication.StopExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
75
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.StopExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions/${req["executionId"]}`, {...initReq, method: "PUT"})
|
|
76
|
+
}
|
|
77
|
+
static ListExecutions(req: KangarooIoApiRegistryV1alpha1Replication.ListExecutionsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListExecutionsResponse> {
|
|
78
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.ListExecutionsRequest, KangarooIoApiRegistryV1alpha1Replication.ListExecutionsResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
79
|
+
}
|
|
80
|
+
static GetExecution(req: KangarooIoApiRegistryV1alpha1Replication.GetExecutionRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.Execution> {
|
|
81
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.GetExecutionRequest, KangarooIoApiRegistryV1alpha1Replication.Execution>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions/${req["executionId"]}?${fm.renderURLSearchParams(req, ["registry", "executionId"])}`, {...initReq, method: "GET"})
|
|
82
|
+
}
|
|
83
|
+
static ListReplicationTasks(req: KangarooIoApiRegistryV1alpha1Replication.ListReplicationTasksRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListReplicationTasksResponse> {
|
|
84
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.ListReplicationTasksRequest, KangarooIoApiRegistryV1alpha1Replication.ListReplicationTasksResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions/${req["executionId"]}/tasks?${fm.renderURLSearchParams(req, ["registry", "executionId"])}`, {...initReq, method: "GET"})
|
|
85
|
+
}
|
|
86
|
+
static GetReplicationTasksLog(req: KangarooIoApiRegistryV1alpha1Replication.GetReplicationTaskLogRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.GetReplicationTaskLogResponse> {
|
|
87
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.GetReplicationTaskLogRequest, KangarooIoApiRegistryV1alpha1Replication.GetReplicationTaskLogResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions/${req["executionId"]}/tasks/${req["taskId"]}/log?${fm.renderURLSearchParams(req, ["registry", "executionId", "taskId"])}`, {...initReq, method: "GET"})
|
|
88
|
+
}
|
|
89
|
+
static CreatePolicy(req: KangarooIoApiRegistryV1alpha1Replication.CreatePolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
90
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.CreatePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
91
|
+
}
|
|
92
|
+
static UpdatePolicy(req: KangarooIoApiRegistryV1alpha1Replication.UpdatePolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
93
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.UpdatePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies/${req["policyId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
94
|
+
}
|
|
50
95
|
}
|