@daocloud-proto/kangaroo 0.4.4 → 0.5.0-101

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.
@@ -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?: string[]
32
+ permissions?: PermissionsType[]
8
33
  }
9
34
 
10
35
  export type WorkspacePermissionsResponse = {
11
- permissions?: string[]
36
+ permissions?: PermissionsType[]
12
37
  }
13
38
 
14
39
  export type WorkspacePermissionsRequest = {
@@ -141,6 +141,7 @@ export type CacheMcamelModeSpec = {
141
141
  name?: string
142
142
  namespace?: string
143
143
  cluster?: string
144
+ workspace?: string
144
145
  type?: KangarooIoApiHarborV1alpha1Redis.RedisInstanceType
145
146
  }
146
147
 
@@ -178,6 +179,12 @@ export type ExposeSpec = {
178
179
  nodePortSpec?: ExposeNodePortSpec
179
180
  externalUrl?: string
180
181
  exposeHttps?: boolean
182
+ httpsSpec?: HttpsSpec
183
+ }
184
+
185
+ export type HttpsSpec = {
186
+ namespace?: string
187
+ name?: string
181
188
  }
182
189
 
183
190
  export type ExposeIngressSpec = {
@@ -243,4 +250,17 @@ export type VerifyNodePortRequest = {
243
250
 
244
251
  export type VerifyNodePortResponse = {
245
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
246
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?: string[]
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
@@ -390,11 +401,11 @@ export type GetPushCommandRequest = {
390
401
  workspace?: string
391
402
  registry?: string
392
403
  project?: string
393
- expired?: number
404
+ expired?: string
394
405
  }
395
406
 
396
407
  export type GetPushCommandResponse = {
397
408
  cmd?: string
398
- expired?: number
409
+ expired?: string
399
410
  expiredAt?: string
400
411
  }
@@ -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,280 @@
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 FilterDecoration {
49
+ DECORATION_UNSPECIFIED = "DECORATION_UNSPECIFIED",
50
+ DECORATION_MATCHES = "DECORATION_MATCHES",
51
+ DECORATION_EXCLUDES = "DECORATION_EXCLUDES",
52
+ }
53
+
54
+ export enum ExecutionStatus {
55
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
56
+ STATUS_STOPPED = "STATUS_STOPPED",
57
+ STATUS_SUCCEED = "STATUS_SUCCEED",
58
+ STATUS_FAILED = "STATUS_FAILED",
59
+ STATUS_IN_PROGRESS = "STATUS_IN_PROGRESS",
60
+ }
61
+
62
+ export enum ReplicationTaskOperation {
63
+ OPERATION_UNSPECIFIED = "OPERATION_UNSPECIFIED",
64
+ OPERATION_DELETE = "OPERATION_DELETE",
65
+ OPERATION_COPY = "OPERATION_COPY",
66
+ }
67
+
68
+ export enum ReplicationTaskStatus {
69
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
70
+ STATUS_STOPPED = "STATUS_STOPPED",
71
+ STATUS_SUCCEED = "STATUS_SUCCEED",
72
+ STATUS_FAILED = "STATUS_FAILED",
73
+ STATUS_PENDING = "STATUS_PENDING",
74
+ STATUS_IN_PROGRESS = "STATUS_IN_PROGRESS",
75
+ }
76
+
77
+ export type ListNativeRegistryRequest = {
78
+ registry?: string
79
+ page?: number
80
+ pageSize?: number
81
+ fuzzyName?: string
82
+ }
83
+
84
+ export type NativeRegistry = {
85
+ id?: string
86
+ type?: native_registry_type
87
+ name?: string
88
+ url?: string
89
+ nativeRegistryCredential?: NativeRegistryCredential
90
+ insecure?: boolean
91
+ description?: string
92
+ status?: NativeRegistryregistry_status
93
+ }
94
+
95
+ export type NativeRegistryCredential = {
96
+ accessKey?: string
97
+ accessSecret?: string
98
+ type?: NativeRegistryCredentialcredential_type
99
+ }
100
+
101
+ export type ListNativeRegistryResponse = {
102
+ items?: NativeRegistry[]
103
+ pagination?: KangarooIoApiTypesPage.Page
104
+ }
105
+
106
+ export type NativeRegistrySpec = {
107
+ type?: native_registry_type
108
+ name?: string
109
+ url?: string
110
+ nativeRegistryCredential?: NativeRegistryCredential
111
+ insecure?: boolean
112
+ description?: string
113
+ }
114
+
115
+ export type CreateNativeRegistryRequest = {
116
+ registry?: string
117
+ createType?: CreateNativeRegistryRequestType
118
+ integrationRegistry?: string[]
119
+ nativeRegistry?: NativeRegistrySpec
120
+ }
121
+
122
+ export type UpdateNativeRegistryRequest = {
123
+ registry?: string
124
+ nativeRegistryId?: string
125
+ nativeRegistry?: NativeRegistrySpec
126
+ }
127
+
128
+ export type DeleteNativeRegistryRequest = {
129
+ registry?: string
130
+ nativeRegistryId?: string
131
+ }
132
+
133
+ export type Policy = {
134
+ disRegistry?: NativeRegistry
135
+ srcRegistry?: NativeRegistry
136
+ enabled?: boolean
137
+ creationTime?: string
138
+ updateTime?: string
139
+ speed?: string
140
+ id?: string
141
+ override?: boolean
142
+ name?: string
143
+ description?: string
144
+ filters?: Filter[]
145
+ trigger?: Trigger
146
+ }
147
+
148
+ export type Trigger = {
149
+ cron?: string
150
+ type?: TriggerMode
151
+ }
152
+
153
+ export type Filter = {
154
+ type?: FilterFilterType
155
+ value?: string
156
+ decoration?: FilterDecoration
157
+ }
158
+
159
+ export type ListPoliciesRequest = {
160
+ registry?: string
161
+ page?: number
162
+ pageSize?: number
163
+ fuzzyName?: string
164
+ }
165
+
166
+ export type ListPoliciesResponse = {
167
+ items?: Policy[]
168
+ pagination?: KangarooIoApiTypesPage.Page
169
+ }
170
+
171
+ export type DeletePolicyRequest = {
172
+ registry?: string
173
+ policyId?: string
174
+ }
175
+
176
+ export type CreateExecutionRequest = {
177
+ registry?: string
178
+ policyId?: string
179
+ }
180
+
181
+ export type StopExecutionRequest = {
182
+ registry?: string
183
+ executionId?: string
184
+ }
185
+
186
+ export type Execution = {
187
+ endTime?: string
188
+ failed?: string
189
+ id?: string
190
+ inProgress?: string
191
+ policyId?: string
192
+ startTime?: string
193
+ status?: ExecutionStatus
194
+ statusText?: string
195
+ stopped?: string
196
+ succeed?: string
197
+ total?: string
198
+ trigger?: TriggerMode
199
+ }
200
+
201
+ export type ListExecutionsRequest = {
202
+ registry?: string
203
+ page?: number
204
+ pageSize?: number
205
+ policyId?: string
206
+ }
207
+
208
+ export type ListExecutionsResponse = {
209
+ items?: Execution[]
210
+ pagination?: KangarooIoApiTypesPage.Page
211
+ }
212
+
213
+ export type CreatePolicyRequest = {
214
+ registry?: string
215
+ name?: string
216
+ description?: string
217
+ trigger?: Trigger
218
+ filters?: Filter[]
219
+ srcRegistryId?: string
220
+ destRegistryId?: string
221
+ enabled?: boolean
222
+ override?: boolean
223
+ destNamespace?: string
224
+ }
225
+
226
+ export type UpdatePolicyRequest = {
227
+ registry?: string
228
+ policyId?: string
229
+ name?: string
230
+ description?: string
231
+ trigger?: Trigger
232
+ filters?: Filter[]
233
+ srcRegistry?: NativeRegistry
234
+ disRegistry?: NativeRegistry
235
+ enabled?: boolean
236
+ override?: boolean
237
+ destNamespace?: string
238
+ }
239
+
240
+ export type GetExecutionRequest = {
241
+ registry?: string
242
+ executionId?: string
243
+ }
244
+
245
+ export type ListReplicationTasksRequest = {
246
+ registry?: string
247
+ executionId?: string
248
+ page?: number
249
+ pageSize?: number
250
+ resourceType?: string
251
+ status?: string
252
+ }
253
+
254
+ export type ListReplicationTasksResponse = {
255
+ items?: ReplicationTask[]
256
+ pagination?: KangarooIoApiTypesPage.Page
257
+ }
258
+
259
+ export type ReplicationTask = {
260
+ dstResource?: string
261
+ endTime?: string
262
+ executionId?: string
263
+ id?: string
264
+ jobId?: string
265
+ operation?: ReplicationTaskOperation
266
+ resourceType?: string
267
+ srcResource?: string
268
+ startTime?: string
269
+ status?: ReplicationTaskStatus
270
+ }
271
+
272
+ export type GetReplicationTaskLogRequest = {
273
+ registry?: string
274
+ executionId?: string
275
+ taskId?: string
276
+ }
277
+
278
+ export type GetReplicationTaskLogResponse = {
279
+ log?: string
280
+ }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kangaroo",
3
- "version":"0.4.4",
3
+ "version":"0.5.0-101",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {