@daocloud-proto/mcamel-postgresql 0.0.2-401 → 0.0.2-403
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/cluster.pb.ts +34 -2
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -334,7 +334,7 @@ export type GetClusterListReq = {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
export type GetClusterHostnetworkPortsResp = {
|
|
337
|
-
items?:
|
|
337
|
+
items?: number[]
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
export type GetClusterListResp = {
|
|
@@ -375,12 +375,41 @@ export type GetInsightAgentStatusResp = {
|
|
|
375
375
|
clusterStatus?: CommonCommon.ClusterStatus
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
+
export type GetResourceQuotaReq = {
|
|
379
|
+
cluster?: string
|
|
380
|
+
namespace?: string
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type GetResourceQuotaRespMetadata = {
|
|
384
|
+
uid?: string
|
|
385
|
+
name?: string
|
|
386
|
+
namespace?: string
|
|
387
|
+
annotations?: {[key: string]: string}
|
|
388
|
+
resourceVersion?: string
|
|
389
|
+
creationTimestamp?: string
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export type GetResourceQuotaRespSpec = {
|
|
393
|
+
hard?: {[key: string]: string}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type GetResourceQuotaRespStatus = {
|
|
397
|
+
hard?: {[key: string]: string}
|
|
398
|
+
used?: {[key: string]: string}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export type GetResourceQuotaResp = {
|
|
402
|
+
metadata?: GetResourceQuotaRespMetadata
|
|
403
|
+
spec?: GetResourceQuotaRespSpec
|
|
404
|
+
status?: GetResourceQuotaRespStatus
|
|
405
|
+
}
|
|
406
|
+
|
|
378
407
|
export class Cluster {
|
|
379
408
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
380
409
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
381
410
|
}
|
|
382
411
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
383
|
-
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/
|
|
412
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
384
413
|
}
|
|
385
414
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
386
415
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -424,4 +453,7 @@ export class Cluster {
|
|
|
424
453
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
425
454
|
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
426
455
|
}
|
|
456
|
+
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
457
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
458
|
+
}
|
|
427
459
|
}
|