@daocloud-proto/mcamel-postgresql 0.0.2-666-g1aa85647 → 0.0.2-667-g3bc0394e

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 CHANGED
@@ -96,6 +96,30 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
96
96
  Install = "Install",
97
97
  }
98
98
 
99
+ export type GetAllVisibleWorkspaceClusterListReq = {
100
+ }
101
+
102
+ export type GetAllVisibleWorkspaceClusterListResp = {
103
+ clusters?: ClusterItem[]
104
+ pagination?: CommonCommon.Pagination
105
+ }
106
+
107
+ export type GetAllVisibleWorkspaceClusterNamespaceListReq = {
108
+ cluster?: string
109
+ }
110
+
111
+ export type GetAllVisibleWorkspaceClusterNamespaceListResp = {
112
+ items?: WorkspaceClusterNamespace[]
113
+ pagination?: CommonCommon.Pagination
114
+ }
115
+
116
+ export type WorkspaceClusterNamespace = {
117
+ namespace?: string
118
+ cluster?: string
119
+ workspaceId?: string
120
+ workspaceName?: string
121
+ }
122
+
99
123
  export type GetClusterNodeTaintListReq = {
100
124
  cluster?: string
101
125
  nodeName?: string
@@ -420,6 +444,7 @@ export type ClusterItemStatus = {
420
444
  networkMode?: ClusterItemNetworkMode[]
421
445
  setting?: ClusterSetting
422
446
  clusterStatus?: CommonCommon.ClusterStatus
447
+ workspace?: Workspace
423
448
  }
424
449
 
425
450
  export type ClusterItem = {
@@ -427,6 +452,11 @@ export type ClusterItem = {
427
452
  status?: ClusterItemStatus
428
453
  }
429
454
 
455
+ export type Workspace = {
456
+ id?: number
457
+ name?: string
458
+ }
459
+
430
460
  export type ClusterSettingPlugin = {
431
461
  name?: ClusterSettingPluginPluginName
432
462
  enabled?: boolean
@@ -495,6 +525,9 @@ export class Cluster {
495
525
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
496
526
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
497
527
  }
528
+ static GetAllVisibleWorkspaceClusterList(req: GetAllVisibleWorkspaceClusterListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspaceClusterListResp> {
529
+ return fm.fetchReq<GetAllVisibleWorkspaceClusterListReq, GetAllVisibleWorkspaceClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha2/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
530
+ }
498
531
  static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
499
532
  return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
500
533
  }
@@ -504,6 +537,9 @@ export class Cluster {
504
537
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
505
538
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
506
539
  }
540
+ static GetAllVisibleWorkspaceClusterNamespaceList(req: GetAllVisibleWorkspaceClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspaceClusterNamespaceListResp> {
541
+ return fm.fetchReq<GetAllVisibleWorkspaceClusterNamespaceListReq, GetAllVisibleWorkspaceClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
542
+ }
507
543
  static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
508
544
  return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
509
545
  }
@@ -534,6 +570,9 @@ export class Cluster {
534
570
  static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
535
571
  return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
536
572
  }
573
+ static GetAllVisibleWorkspacePermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
574
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/postgresql/v1alpha2/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
575
+ }
537
576
  static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
538
577
  return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
539
578
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-666-g1aa85647",
3
+ "version":"0.0.2-667-g3bc0394e",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postgresql.pb.ts CHANGED
@@ -381,6 +381,19 @@ export type GetPostgresqlListReq = {
381
381
  filterNamespace?: string
382
382
  }
383
383
 
384
+ export type GetAllVisibleWorkspacePostgresqlListReq = {
385
+ page?: number
386
+ pageSize?: number
387
+ searchKey?: string
388
+ filterCluster?: string
389
+ filterNamespaces?: string[]
390
+ }
391
+
392
+ export type GetAllVisibleWorkspacePostgresqlListResp = {
393
+ items?: PostgresqlItem[]
394
+ pagination?: CommonCommon.Pagination
395
+ }
396
+
384
397
  export type GetPostgresqlConfReq = {
385
398
  page?: number
386
399
  pageSize?: number
@@ -651,6 +664,9 @@ export class PostgresqlV2 {
651
664
  static GetPostgresqlList(req: GetPostgresqlListReq, initReq?: fm.InitReq): Promise<GetPostgresqlListResp> {
652
665
  return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
653
666
  }
667
+ static GetAllVisibleWorkspacePostgresqlList(req: GetAllVisibleWorkspacePostgresqlListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspacePostgresqlListResp> {
668
+ return fm.fetchReq<GetAllVisibleWorkspacePostgresqlListReq, GetAllVisibleWorkspacePostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgresqls?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
669
+ }
654
670
  static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
655
671
  return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
656
672
  }