@daocloud-proto/kangaroo 0.10.1 → 0.12.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.
|
@@ -100,6 +100,13 @@ export type VerifyNamespaceQuotaRequest = {
|
|
|
100
100
|
|
|
101
101
|
export type VerifyNamespaceQuotaResponse = {
|
|
102
102
|
status?: boolean
|
|
103
|
+
cpu?: QuotaResponse
|
|
104
|
+
memory?: QuotaResponse
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type QuotaResponse = {
|
|
108
|
+
request?: string
|
|
109
|
+
allocatable?: string
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
export type HarborCluster = {
|
|
@@ -249,6 +256,7 @@ export type UpdateHarborClusterRequest = {
|
|
|
249
256
|
namespace?: string
|
|
250
257
|
name?: string
|
|
251
258
|
spec?: HarborClusterSpec
|
|
259
|
+
metadata?: KangarooIoApiTypesObjectmeta.ObjectMeta
|
|
252
260
|
}
|
|
253
261
|
|
|
254
262
|
export type GetHarborClusterRequest = {
|
|
@@ -51,6 +51,9 @@ export class Registries {
|
|
|
51
51
|
static ListFilterRegistry(req: KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryResponse> {
|
|
52
52
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryResponse>(`/apis/kangaroo.io/v1alpha1/filter_registries/${req["registry"]}/registries?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
53
53
|
}
|
|
54
|
+
static GetRegistryRobotInfo(req: KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse> {
|
|
55
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/robot_info?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
56
|
+
}
|
|
54
57
|
}
|
|
55
58
|
export class Replications {
|
|
56
59
|
static ListNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryResponse> {
|
|
@@ -95,7 +98,4 @@ export class Replications {
|
|
|
95
98
|
static UpdatePolicy(req: KangarooIoApiRegistryV1alpha1Replication.UpdatePolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
96
99
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.UpdatePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies/${req["policyId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
97
100
|
}
|
|
98
|
-
static GetRegistryRobotInfo(req: KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse> {
|
|
99
|
-
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/robot_info?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
100
|
-
}
|
|
101
101
|
}
|