@daocloud-proto/mcamel-postgresql 0.18.4-2 → 0.22.0-8-g641e2a84
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 +79 -0
- package/common.pb.ts +15 -2
- package/package.json +1 -1
- package/postgresql.pb.ts +19 -0
- package/template.pb.ts +5 -0
package/cluster.pb.ts
CHANGED
|
@@ -40,6 +40,12 @@ export enum EventType {
|
|
|
40
40
|
Warning = "Warning",
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
export enum GetClusterNodeTaintListRespTaintEffect {
|
|
44
|
+
NoSchedule = "NoSchedule",
|
|
45
|
+
PreferNoSchedule = "PreferNoSchedule",
|
|
46
|
+
NoExecute = "NoExecute",
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
export enum InstallFileReqGVR {
|
|
44
50
|
None = "None",
|
|
45
51
|
CustomResourceDefinition = "CustomResourceDefinition",
|
|
@@ -90,6 +96,58 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
90
96
|
Install = "Install",
|
|
91
97
|
}
|
|
92
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
|
+
|
|
123
|
+
export type GetClusterNodeTaintListReq = {
|
|
124
|
+
cluster?: string
|
|
125
|
+
nodeName?: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type GetClusterNodeTaintListRespTaint = {
|
|
129
|
+
key?: string
|
|
130
|
+
value?: string
|
|
131
|
+
effect?: GetClusterNodeTaintListRespTaintEffect
|
|
132
|
+
nodeName?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetClusterNodeTaintListResp = {
|
|
136
|
+
items?: GetClusterNodeTaintListRespTaint[]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetClusterNodeListReq = {
|
|
140
|
+
cluster?: string
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type GetClusterNodeListRespNode = {
|
|
144
|
+
name?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type GetClusterNodeListResp = {
|
|
148
|
+
items?: GetClusterNodeListRespNode[]
|
|
149
|
+
}
|
|
150
|
+
|
|
93
151
|
export type GetClusterReq = {
|
|
94
152
|
workspaceId?: number
|
|
95
153
|
name?: string
|
|
@@ -386,6 +444,7 @@ export type ClusterItemStatus = {
|
|
|
386
444
|
networkMode?: ClusterItemNetworkMode[]
|
|
387
445
|
setting?: ClusterSetting
|
|
388
446
|
clusterStatus?: CommonCommon.ClusterStatus
|
|
447
|
+
workspace?: Workspace
|
|
389
448
|
}
|
|
390
449
|
|
|
391
450
|
export type ClusterItem = {
|
|
@@ -393,6 +452,11 @@ export type ClusterItem = {
|
|
|
393
452
|
status?: ClusterItemStatus
|
|
394
453
|
}
|
|
395
454
|
|
|
455
|
+
export type Workspace = {
|
|
456
|
+
id?: number
|
|
457
|
+
name?: string
|
|
458
|
+
}
|
|
459
|
+
|
|
396
460
|
export type ClusterSettingPlugin = {
|
|
397
461
|
name?: ClusterSettingPluginPluginName
|
|
398
462
|
enabled?: boolean
|
|
@@ -461,6 +525,9 @@ export class Cluster {
|
|
|
461
525
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
462
526
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
463
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
|
+
}
|
|
464
531
|
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
465
532
|
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
466
533
|
}
|
|
@@ -470,6 +537,9 @@ export class Cluster {
|
|
|
470
537
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
471
538
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
472
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
|
+
}
|
|
473
543
|
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
474
544
|
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
475
545
|
}
|
|
@@ -500,6 +570,9 @@ export class Cluster {
|
|
|
500
570
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
501
571
|
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
502
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
|
+
}
|
|
503
576
|
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
504
577
|
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
505
578
|
}
|
|
@@ -512,4 +585,10 @@ export class Cluster {
|
|
|
512
585
|
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
513
586
|
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
514
587
|
}
|
|
588
|
+
static GetClusterNodeTaintList(req: GetClusterNodeTaintListReq, initReq?: fm.InitReq): Promise<GetClusterNodeTaintListResp> {
|
|
589
|
+
return fm.fetchReq<GetClusterNodeTaintListReq, GetClusterNodeTaintListResp>(`/apis/mcamel.io/postgresql/v1alpha2/clusters/${req["cluster"]}/nodes/taints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
590
|
+
}
|
|
591
|
+
static GetClusterNodeList(req: GetClusterNodeListReq, initReq?: fm.InitReq): Promise<GetClusterNodeListResp> {
|
|
592
|
+
return fm.fetchReq<GetClusterNodeListReq, GetClusterNodeListResp>(`/apis/mcamel.io/postgresql/v1alpha2/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
593
|
+
}
|
|
515
594
|
}
|
package/common.pb.ts
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum TolerationOperator {
|
|
8
|
+
TOLERATION_OPERATOR_UNSPECIFIED = "TOLERATION_OPERATOR_UNSPECIFIED",
|
|
9
|
+
Exists = "Exists",
|
|
10
|
+
Equal = "Equal",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum TaintEffect {
|
|
14
|
+
TAINT_EFFECT_UNSPECIFIED = "TAINT_EFFECT_UNSPECIFIED",
|
|
15
|
+
NoSchedule = "NoSchedule",
|
|
16
|
+
NoExecute = "NoExecute",
|
|
17
|
+
PreferNoSchedule = "PreferNoSchedule",
|
|
18
|
+
}
|
|
19
|
+
|
|
7
20
|
export enum FilterPodStatus {
|
|
8
21
|
FILTER_POD_STATUS_UNSPECIFIED = "FILTER_POD_STATUS_UNSPECIFIED",
|
|
9
22
|
FILTER_POD_STATUS_RUNNING = "FILTER_POD_STATUS_RUNNING",
|
|
@@ -124,9 +137,9 @@ export type LabelSelectorRequirement = {
|
|
|
124
137
|
|
|
125
138
|
export type Toleration = {
|
|
126
139
|
key?: string
|
|
127
|
-
operator?:
|
|
140
|
+
operator?: TolerationOperator
|
|
128
141
|
value?: string
|
|
129
|
-
effect?:
|
|
142
|
+
effect?: TaintEffect
|
|
130
143
|
tolerationSeconds?: string
|
|
131
144
|
}
|
|
132
145
|
|
package/package.json
CHANGED
package/postgresql.pb.ts
CHANGED
|
@@ -379,6 +379,21 @@ export type GetPostgresqlListReq = {
|
|
|
379
379
|
workspaceId?: number
|
|
380
380
|
filterCluster?: string
|
|
381
381
|
filterNamespace?: string
|
|
382
|
+
filterNamespaces?: string[]
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type GetAllVisibleWorkspacePostgresqlListReq = {
|
|
386
|
+
page?: number
|
|
387
|
+
pageSize?: number
|
|
388
|
+
searchKey?: string
|
|
389
|
+
filterCluster?: string
|
|
390
|
+
filterNamespace?: string
|
|
391
|
+
filterNamespaces?: string[]
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export type GetAllVisibleWorkspacePostgresqlListResp = {
|
|
395
|
+
items?: PostgresqlItem[]
|
|
396
|
+
pagination?: CommonCommon.Pagination
|
|
382
397
|
}
|
|
383
398
|
|
|
384
399
|
export type GetPostgresqlConfReq = {
|
|
@@ -452,6 +467,7 @@ export type CreatePostgresqlReq = {
|
|
|
452
467
|
pgAdminLbAddress?: string
|
|
453
468
|
initSourcePostgresqlClusterName?: string
|
|
454
469
|
initSourceBackupName?: string
|
|
470
|
+
tolerations?: CommonCommon.Toleration[]
|
|
455
471
|
}
|
|
456
472
|
|
|
457
473
|
export type UpdatePostgresqlConfReq = {
|
|
@@ -650,6 +666,9 @@ export class PostgresqlV2 {
|
|
|
650
666
|
static GetPostgresqlList(req: GetPostgresqlListReq, initReq?: fm.InitReq): Promise<GetPostgresqlListResp> {
|
|
651
667
|
return fm.fetchReq<GetPostgresqlListReq, GetPostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["workspaceId"]}/postgresqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
652
668
|
}
|
|
669
|
+
static GetAllVisibleWorkspacePostgresqlList(req: GetAllVisibleWorkspacePostgresqlListReq, initReq?: fm.InitReq): Promise<GetAllVisibleWorkspacePostgresqlListResp> {
|
|
670
|
+
return fm.fetchReq<GetAllVisibleWorkspacePostgresqlListReq, GetAllVisibleWorkspacePostgresqlListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgresqls?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
671
|
+
}
|
|
653
672
|
static GetPostgresqlOperatorVersionList(req: GetPostgresqlOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetPostgresqlOperatorVersionListResp> {
|
|
654
673
|
return fm.fetchReq<GetPostgresqlOperatorVersionListReq, GetPostgresqlOperatorVersionListResp>(`/apis/mcamel.io/postgresql/v1alpha2/postgres-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
655
674
|
}
|
package/template.pb.ts
CHANGED
|
@@ -53,6 +53,7 @@ export type GetTemplateConfigVersionsReq = {
|
|
|
53
53
|
|
|
54
54
|
export type GetTemplateConfigVersionsResp = {
|
|
55
55
|
versions?: string[]
|
|
56
|
+
templateTypeMap?: {[key: string]: TemplateInstanceTypeList}
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
export type GetTemplateConfigStringResp = {
|
|
@@ -160,6 +161,10 @@ export type GetTemplateInstanceTypeListReq = {
|
|
|
160
161
|
workspaceId?: number
|
|
161
162
|
}
|
|
162
163
|
|
|
164
|
+
export type TemplateInstanceTypeList = {
|
|
165
|
+
values?: TemplateInstanceType[]
|
|
166
|
+
}
|
|
167
|
+
|
|
163
168
|
export type GetTemplateInstanceTypeListResp = {
|
|
164
169
|
type?: TemplateInstanceType[]
|
|
165
170
|
}
|