@daocloud-proto/mcamel-rabbitmq 0.12.1-9 → 0.12.1-94

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
@@ -25,6 +25,10 @@ export enum PermissionsType {
25
25
  CreateBackupConf = "CreateBackupConf",
26
26
  UpdateBackupConf = "UpdateBackupConf",
27
27
  DeleteBackupConf = "DeleteBackupConf",
28
+ GetTemplate = "GetTemplate",
29
+ CreateTemplate = "CreateTemplate",
30
+ UpdateTemplate = "UpdateTemplate",
31
+ DeleteTemplate = "DeleteTemplate",
28
32
  }
29
33
 
30
34
  export enum EventType {
@@ -48,11 +52,49 @@ export enum GetWorkspaceListReqSortDir {
48
52
  DESC = "DESC",
49
53
  }
50
54
 
55
+ export enum ClusterItemNetworkMode {
56
+ Unknown = "Unknown",
57
+ Flannel = "Flannel",
58
+ Calico = "Calico",
59
+ }
60
+
51
61
  export enum GetInsightAgentStatusRespInsightAgentStatus {
52
62
  NotInstall = "NotInstall",
53
63
  Install = "Install",
54
64
  }
55
65
 
66
+ export type GetInstallVersionReq = {
67
+ cluster?: string
68
+ }
69
+
70
+ export type GetInstallVersionRespSupportVersion = {
71
+ minVersion?: string
72
+ maxVersion?: string
73
+ }
74
+
75
+ export type GetInstallVersionRespStatus = {
76
+ inRange?: boolean
77
+ }
78
+
79
+ export type GetInstallVersionResp = {
80
+ clusterVersion?: string
81
+ supportVersion?: GetInstallVersionRespSupportVersion
82
+ status?: GetInstallVersionRespStatus
83
+ }
84
+
85
+ export type RestartInstanceReq = {
86
+ workspaceId?: number
87
+ cluster?: string
88
+ namespace?: string
89
+ name?: string
90
+ extra?: string
91
+ instanceType?: string
92
+ }
93
+
94
+ export type RestartInstanceResp = {
95
+ message?: string
96
+ }
97
+
56
98
  export type GetPermissionsListReq = {
57
99
  workspaceId?: number
58
100
  }
@@ -74,6 +116,10 @@ export type GetPermissionsListRespPermissions = {
74
116
  createBackupConf?: boolean
75
117
  updateBackupConf?: boolean
76
118
  deleteBackupConf?: boolean
119
+ getTemplate?: boolean
120
+ createTemplate?: boolean
121
+ updateTemplate?: boolean
122
+ deleteTemplate?: boolean
77
123
  }
78
124
 
79
125
  export type GetPermissionsListResp = {
@@ -249,6 +295,7 @@ export type GetWorkspaceListReq = {
249
295
  export type GetWorkspaceListRespItem = {
250
296
  workspaceId?: number
251
297
  alias?: string
298
+ visible?: boolean
252
299
  }
253
300
 
254
301
  export type GetWorkspaceListResp = {
@@ -256,15 +303,39 @@ export type GetWorkspaceListResp = {
256
303
  pagination?: CommonCommon.Pagination
257
304
  }
258
305
 
306
+ export type GetClusterHostnetworkPortsReq = {
307
+ workspaceId?: number
308
+ cluster?: string
309
+ }
310
+
259
311
  export type GetClusterListReq = {
260
312
  workspaceId?: number
313
+ searchKey?: string
314
+ }
315
+
316
+ export type GetClusterHostnetworkPortsResp = {
317
+ items?: string[]
261
318
  }
262
319
 
263
320
  export type GetClusterListResp = {
264
321
  items?: string[]
322
+ clusters?: ClusterItem[]
265
323
  pagination?: CommonCommon.Pagination
266
324
  }
267
325
 
326
+ export type ClusterItemMetadata = {
327
+ name?: string
328
+ }
329
+
330
+ export type ClusterItemStatus = {
331
+ networkMode?: ClusterItemNetworkMode[]
332
+ }
333
+
334
+ export type ClusterItem = {
335
+ metadata?: ClusterItemMetadata
336
+ status?: ClusterItemStatus
337
+ }
338
+
268
339
  export type GetClusterNamespaceListReq = {
269
340
  workspaceId?: number
270
341
  cluster?: string
@@ -287,6 +358,9 @@ export class Cluster {
287
358
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
288
359
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
289
360
  }
361
+ static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
362
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
363
+ }
290
364
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
291
365
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
292
366
  }
@@ -320,4 +394,10 @@ export class Cluster {
320
394
  static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
321
395
  return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
322
396
  }
397
+ static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
398
+ return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
399
+ }
400
+ static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
401
+ return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
402
+ }
323
403
  }
package/common.pb.ts CHANGED
@@ -152,6 +152,7 @@ export type PodCommon = {
152
152
  ownerReference?: OwnerReference[]
153
153
  initContainersName?: string[]
154
154
  initContainersStatuses?: ContainerStatus[]
155
+ containersStatuses?: ContainerStatus[]
155
156
  }
156
157
 
157
158
  export type OwnerReference = {
@@ -167,6 +168,9 @@ export type CommonItemStatus = {
167
168
  webLogAddress?: string
168
169
  avgPvAllocatedInGb?: number
169
170
  avgPvUsedInGb?: number
171
+ cpuUtilization?: number
172
+ memoryUtilization?: number
173
+ isClusterUnknown?: boolean
170
174
  }
171
175
 
172
176
  export type AccessWhitelistInternal = {
package/metric.pb.ts CHANGED
@@ -7,7 +7,18 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
  import * as InsightIoApiInsightV1alpha1Insight from "./insight.pb"
10
+
11
+ export enum GetAlertsListReqSortDir {
12
+ ASC = "ASC",
13
+ DESC = "DESC",
14
+ }
15
+
10
16
  export type GetAlertsListReq = {
17
+ page?: number
18
+ pageSize?: number
19
+ sortDir?: GetAlertsListReqSortDir
20
+ sortBy?: string
21
+ searchKey?: string
11
22
  cluster?: string
12
23
  namespace?: string
13
24
  name?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.12.1-9",
3
+ "version":"0.12.1-94",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,188 @@
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 CommonCommon from "./common.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
18
+
19
+ export enum GetStorageConfigParamRespSelectSelectType {
20
+ Single = "Single",
21
+ Multiple = "Multiple",
22
+ }
23
+
24
+ export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
25
+ STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
26
+ STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
27
+ STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
28
+ }
29
+
30
+ export enum GetStorageConfigListReqSortDir {
31
+ ASC = "ASC",
32
+ DESC = "DESC",
33
+ }
34
+
35
+ export type GetStorageConfigParamReq = {
36
+ }
37
+
38
+ export type GetStorageConfigParamRespSelectDataStringValue = {
39
+ value?: string
40
+ }
41
+
42
+ export type GetStorageConfigParamRespSelectDataIntValue = {
43
+ value?: number
44
+ }
45
+
46
+
47
+ type BaseGetStorageConfigParamRespSelectData = {
48
+ }
49
+
50
+ export type GetStorageConfigParamRespSelectData = BaseGetStorageConfigParamRespSelectData
51
+ & OneOf<{ sValue: GetStorageConfigParamRespSelectDataStringValue; iValue: GetStorageConfigParamRespSelectDataIntValue }>
52
+
53
+ export type GetStorageConfigParamRespSelect = {
54
+ selectType?: GetStorageConfigParamRespSelectSelectType
55
+ data?: GetStorageConfigParamRespSelectData[]
56
+ }
57
+
58
+ export type GetStorageConfigParamResp = {
59
+ storageType?: GetStorageConfigParamRespSelect
60
+ }
61
+
62
+ export type CreateStorageConfigBucketCheckJobReq = {
63
+ storageType?: string
64
+ endpoint?: string
65
+ accessKey?: string
66
+ secretKey?: string
67
+ bucket?: string
68
+ cluster?: string
69
+ namespace?: string
70
+ name?: string
71
+ }
72
+
73
+ export type CreateStorageConfigBucketCheckJobResp = {
74
+ message?: string
75
+ }
76
+
77
+ export type CreateStorageConfigReq = {
78
+ workspaceId?: number
79
+ cluster?: string
80
+ namespace?: string
81
+ name?: string
82
+ storageType?: string
83
+ accessKey?: string
84
+ secretKey?: string
85
+ bucket?: string
86
+ endpoint?: string
87
+ minioCluster?: string
88
+ minioNamespace?: string
89
+ minioName?: string
90
+ description?: string
91
+ }
92
+
93
+ export type CreateStorageConfigResp = {
94
+ message?: string
95
+ }
96
+
97
+ export type GetStorageConfigConsumersReq = {
98
+ workspaceId?: number
99
+ name?: string
100
+ }
101
+
102
+ export type GetStorageConfigConsumersRespConsumer = {
103
+ type?: GetStorageConfigConsumersRespStorageConfigConsumerType
104
+ cluster?: string
105
+ namespace?: string
106
+ name?: string
107
+ }
108
+
109
+ export type GetStorageConfigConsumersResp = {
110
+ consumers?: GetStorageConfigConsumersRespConsumer[]
111
+ }
112
+
113
+ export type DeleteStorageConfigReq = {
114
+ workspaceId?: number
115
+ name?: string
116
+ cluster?: string
117
+ namespace?: string
118
+ }
119
+
120
+ export type DeleteStorageConfigResp = {
121
+ message?: string
122
+ }
123
+
124
+ export type UpdateStorageConfigResp = {
125
+ message?: string
126
+ }
127
+
128
+ export type StorageConfigItemStorageConfigStatus = {
129
+ lastUpdateTimestamp?: string
130
+ createTimestamp?: string
131
+ }
132
+
133
+ export type StorageConfigItem = {
134
+ spec?: CreateStorageConfigReq
135
+ status?: StorageConfigItemStorageConfigStatus
136
+ }
137
+
138
+ export type GetStorageConfigReq = {
139
+ workspaceId?: number
140
+ name?: string
141
+ namespace?: string
142
+ cluster?: string
143
+ }
144
+
145
+ export type GetStorageConfigResp = {
146
+ item?: StorageConfigItem
147
+ }
148
+
149
+ export type GetStorageConfigListReq = {
150
+ page?: number
151
+ pageSize?: number
152
+ sortDir?: GetStorageConfigListReqSortDir
153
+ sortBy?: string
154
+ searchKey?: string
155
+ workspaceId?: number
156
+ }
157
+
158
+ export type GetStorageConfigListResp = {
159
+ items?: StorageConfigItem[]
160
+ pagination?: CommonCommon.Pagination
161
+ }
162
+
163
+ export class StorageConfig {
164
+ static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
165
+ return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
166
+ }
167
+ static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
168
+ return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
169
+ }
170
+ static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
171
+ return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
172
+ }
173
+ static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
174
+ return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
175
+ }
176
+ static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
177
+ return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
178
+ }
179
+ static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
180
+ return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
181
+ }
182
+ static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
183
+ return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
184
+ }
185
+ static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
186
+ return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
187
+ }
188
+ }
package/template.pb.ts ADDED
@@ -0,0 +1,170 @@
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 CommonCommon from "./common.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ export enum TemplateInstanceType {
11
+ MysqlMasterReplica = "MysqlMasterReplica",
12
+ RedisStandalone = "RedisStandalone",
13
+ RedisFailover = "RedisFailover",
14
+ RedisCluster = "RedisCluster",
15
+ KafkaConfig = "KafkaConfig",
16
+ MysqlMgrConfig = "MysqlMgrConfig",
17
+ }
18
+
19
+ export enum GetTemplateConfigReqSortDir {
20
+ ASC = "ASC",
21
+ DESC = "DESC",
22
+ }
23
+
24
+ export enum GetTemplateConfigListReqSortDir {
25
+ ASC = "ASC",
26
+ DESC = "DESC",
27
+ }
28
+
29
+ export enum TemplateConfigItemValueType {
30
+ String = "String",
31
+ SingleSelection = "SingleSelection",
32
+ MultiString = "MultiString",
33
+ }
34
+
35
+ export type GetTemplateConfigVersionsReq = {
36
+ workspaceId?: number
37
+ }
38
+
39
+ export type GetTemplateConfigVersionsResp = {
40
+ versions?: string[]
41
+ }
42
+
43
+ export type GetTemplateConfigStringResp = {
44
+ conf?: string
45
+ }
46
+
47
+ export type DeleteTemplateReq = {
48
+ workspaceId?: number
49
+ name?: string
50
+ version?: string
51
+ }
52
+
53
+ export type DeleteTemplateConfigResp = {
54
+ message?: string
55
+ }
56
+
57
+ export type CreateOrUpdateTemplateConfigResp = {
58
+ message?: string
59
+ }
60
+
61
+ export type GetTemplateConfigReq = {
62
+ page?: number
63
+ pageSize?: number
64
+ sortDir?: GetTemplateConfigReqSortDir
65
+ sortBy?: string
66
+ searchKey?: string
67
+ workspaceId?: number
68
+ name?: string
69
+ version?: string
70
+ templateType?: string
71
+ type?: string
72
+ createTimestamp?: string
73
+ templateInstanceType?: TemplateInstanceType
74
+ }
75
+
76
+ export type CreateTemplateConfigResp = {
77
+ message?: string
78
+ }
79
+
80
+ export type UpdateTemplateConfigResp = {
81
+ message?: string
82
+ }
83
+
84
+ export type CreateTemplateConfigReq = {
85
+ workspaceId?: number
86
+ targetName?: string
87
+ targetVersion?: string
88
+ targetType?: string
89
+ targetTemplateType?: string
90
+ targetConf?: string
91
+ fromTemplateName?: string
92
+ }
93
+
94
+ export type UpdateTemplateConfigReq = {
95
+ workspaceId?: number
96
+ name?: string
97
+ version?: string
98
+ type?: string
99
+ templateType?: string
100
+ items?: TemplateConfigItem[]
101
+ conf?: string
102
+ }
103
+
104
+ export type GetTemplateConfigResp = {
105
+ data?: UpdateTemplateConfigReq
106
+ pagination?: CommonCommon.Pagination
107
+ }
108
+
109
+ export type GetTemplateConfigListReq = {
110
+ page?: number
111
+ pageSize?: number
112
+ sortDir?: GetTemplateConfigListReqSortDir
113
+ sortBy?: string
114
+ searchKey?: string
115
+ workspaceId?: number
116
+ version?: string
117
+ templateInstanceType?: TemplateInstanceType
118
+ }
119
+
120
+ export type TemplateConfigItem = {
121
+ name?: string
122
+ default?: string
123
+ current?: string
124
+ value?: string
125
+ isNeedRestart?: boolean
126
+ valueType?: TemplateConfigItemValueType
127
+ valueRemarksZh?: string
128
+ valueRemarksEn?: string
129
+ updateTimestamp?: string
130
+ }
131
+
132
+ export type GetTemplateConfigListResp = {
133
+ items?: GetTemplateConfigReq[]
134
+ pagination?: CommonCommon.Pagination
135
+ }
136
+
137
+ export type GetTemplateInstanceTypeListReq = {
138
+ workspaceId?: number
139
+ }
140
+
141
+ export type GetTemplateInstanceTypeListResp = {
142
+ type?: TemplateInstanceType[]
143
+ }
144
+
145
+ export class Template {
146
+ static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
147
+ return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
148
+ }
149
+ static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
150
+ return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
151
+ }
152
+ static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
153
+ return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
154
+ }
155
+ static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
156
+ return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
157
+ }
158
+ static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
159
+ return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
160
+ }
161
+ static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
162
+ return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
163
+ }
164
+ static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
165
+ return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
166
+ }
167
+ static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
168
+ return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
169
+ }
170
+ }