@daocloud-proto/mcamel-mongodb 0.14.0-rc1-1 → 0.16.0-rc2-1

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/cloudshell.pb.ts CHANGED
@@ -67,12 +67,12 @@ export type GetorDeleteCloudShellRequest = {
67
67
 
68
68
  export class CloudShellService {
69
69
  static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
70
- return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mongodb/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
70
+ return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mongodb/v1alpha2/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
71
71
  }
72
72
  static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
73
- return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mongodb/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
73
+ return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mongodb/v1alpha2/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
74
74
  }
75
75
  static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
76
- return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mongodb/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
76
+ return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mongodb/v1alpha2/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
77
77
  }
78
78
  }
package/cluster.pb.ts CHANGED
@@ -81,6 +81,8 @@ export enum ClusterSettingPluginPluginName {
81
81
  KubeOvn = "KubeOvn",
82
82
  OLM = "OLM",
83
83
  EgressGateway = "EgressGateway",
84
+ Snapshot = "Snapshot",
85
+ DRA = "DRA",
84
86
  }
85
87
 
86
88
  export enum GetInsightAgentStatusRespInsightAgentStatus {
@@ -192,6 +194,7 @@ export type GetAllEventListReq = {
192
194
  name?: string
193
195
  eventType?: EventType
194
196
  kindName?: string
197
+ workspaceId?: number
195
198
  }
196
199
 
197
200
  export type GetAllEventListRespItemsSource = {
@@ -456,57 +459,57 @@ export type GetResourceQuotaResp = {
456
459
 
457
460
  export class Cluster {
458
461
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
459
- return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
462
+ return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
460
463
  }
461
464
  static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
462
- return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
465
+ return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
463
466
  }
464
467
  static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
465
- return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
468
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
466
469
  }
467
470
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
468
- return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
471
+ return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
469
472
  }
470
473
  static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
471
- return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
474
+ return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
472
475
  }
473
476
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
474
- return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
477
+ return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
475
478
  }
476
479
  static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
477
- return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
480
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
478
481
  }
479
482
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
480
- return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mongodb/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
483
+ return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mongodb/v1alpha2/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
481
484
  }
482
485
  static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
483
- return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
486
+ return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
484
487
  }
485
488
  static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
486
- return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
489
+ return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
487
490
  }
488
491
  static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
489
- return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
492
+ return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
490
493
  }
491
494
  static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
492
- return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
495
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
493
496
  }
494
497
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
495
- return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
498
+ return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
496
499
  }
497
500
  static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
498
- return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
501
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
499
502
  }
500
503
  static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
501
- return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
504
+ return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
502
505
  }
503
506
  static InstallFile(req: InstallFileReq, initReq?: fm.InitReq): Promise<InstallFileResp> {
504
- return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
507
+ return fm.fetchReq<InstallFileReq, InstallFileResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/install-file`, {...initReq, method: "POST", body: JSON.stringify(req)})
505
508
  }
506
509
  static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
507
- return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
510
+ return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
508
511
  }
509
512
  static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
510
- return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
513
+ return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
511
514
  }
512
515
  }
package/common.pb.ts CHANGED
@@ -4,6 +4,14 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum FilterPodStatus {
8
+ FILTER_POD_STATUS_UNSPECIFIED = "FILTER_POD_STATUS_UNSPECIFIED",
9
+ FILTER_POD_STATUS_RUNNING = "FILTER_POD_STATUS_RUNNING",
10
+ FILTER_POD_STATUS_ERROR = "FILTER_POD_STATUS_ERROR",
11
+ FILTER_POD_STATUS_COMPLETED = "FILTER_POD_STATUS_COMPLETED",
12
+ FILTER_POD_STATUS_WAITING = "FILTER_POD_STATUS_WAITING",
13
+ }
14
+
7
15
  export enum ExternalTrafficPolicy {
8
16
  Cluster = "Cluster",
9
17
  Local = "Local",
@@ -50,14 +58,6 @@ export enum PodCommonConditionStatus {
50
58
  PodConditionStatusFalse = "PodConditionStatusFalse",
51
59
  }
52
60
 
53
- export enum PodCommonFilterPodStatus {
54
- UNSPECIFIED = "UNSPECIFIED",
55
- RUNNING = "RUNNING",
56
- ERROR = "ERROR",
57
- COMPLETED = "COMPLETED",
58
- WAITING = "WAITING",
59
- }
60
-
61
61
  export type Affinity = {
62
62
  nodeAffinity?: NodeAffinity
63
63
  podAffinity?: PodAffinity
@@ -173,6 +173,7 @@ export type PodCommon = {
173
173
  containersStatuses?: ContainerStatus[]
174
174
  podStatus?: string
175
175
  annotations?: {[key: string]: string}
176
+ filterPodStatus?: FilterPodStatus
176
177
  }
177
178
 
178
179
  export type OwnerReference = {
package/metric.pb.ts CHANGED
@@ -22,6 +22,7 @@ export type GetAlertsListReq = {
22
22
  cluster?: string
23
23
  namespace?: string
24
24
  name?: string
25
+ workspaceId?: number
25
26
  }
26
27
 
27
28
  export type GetAlertsListResp = {
@@ -31,6 +32,6 @@ export type GetAlertsListResp = {
31
32
 
32
33
  export class Metric {
33
34
  static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
34
- return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
35
+ return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
35
36
  }
36
37
  }
package/mongodb.pb.ts CHANGED
@@ -136,6 +136,7 @@ export type GetMongodbUsersReq = {
136
136
  cluster?: string
137
137
  namespace?: string
138
138
  name?: string
139
+ workspaceId?: number
139
140
  }
140
141
 
141
142
  export type GetMongodbUsersRespUserItem = {
@@ -167,10 +168,12 @@ export type GetMongodbConfReq = {
167
168
  cluster?: string
168
169
  namespace?: string
169
170
  name?: string
171
+ workspaceId?: number
170
172
  }
171
173
 
172
174
  export type GetMongodbParamReq = {
173
175
  cluster?: string
176
+ workspaceId?: number
174
177
  }
175
178
 
176
179
  export type CreateMongodbReqPorts = {
@@ -241,6 +244,7 @@ export type DeleteMongodbBackupReq = {
241
244
  backupName?: string
242
245
  isOpenAutoBackup?: boolean
243
246
  removeRemoteBackup?: boolean
247
+ workspaceId?: number
244
248
  }
245
249
 
246
250
  export type DeleteMongodbBackupResp = {
@@ -271,6 +275,7 @@ export type GetMongodbBackupListReq = {
271
275
  cluster?: string
272
276
  namespace?: string
273
277
  name?: string
278
+ workspaceId?: number
274
279
  }
275
280
 
276
281
  export type GetMongodbBackupListResp = {
@@ -307,6 +312,7 @@ export type UpdateMongodbConfReq = {
307
312
  conf?: string
308
313
  confItems?: TemplateTemplate.TemplateConfigItem[]
309
314
  reloadFromConfTemplateName?: string
315
+ workspaceId?: number
310
316
  }
311
317
 
312
318
  export type UpdateMongodbParamsResp = {
@@ -375,10 +381,12 @@ export type DeleteMongodbReq = {
375
381
  cluster?: string
376
382
  namespace?: string
377
383
  name?: string
384
+ workspaceId?: number
378
385
  }
379
386
 
380
387
  export type DeleteMongodbsReq = {
381
388
  data?: DeleteMongodbReq[]
389
+ workspaceId?: number
382
390
  }
383
391
 
384
392
  export type DeleteMongodbResp = {
@@ -398,6 +406,7 @@ export type GetMongodbPodListReq = {
398
406
  sortDir?: GetMongodbPodListReqSortDir
399
407
  sortBy?: string
400
408
  searchKey?: string
409
+ workspaceId?: number
401
410
  }
402
411
 
403
412
  export type GetMongodbPodListRespData = {
@@ -425,6 +434,7 @@ export type GetMongodbGrafanaAddrReq = {
425
434
  name?: string
426
435
  from?: string
427
436
  to?: string
437
+ workspaceId?: number
428
438
  }
429
439
 
430
440
  export type GetMongodbGrafanaAddrResp = {
@@ -435,6 +445,7 @@ export type GetMongodbReq = {
435
445
  cluster?: string
436
446
  namespace?: string
437
447
  name?: string
448
+ workspaceId?: number
438
449
  }
439
450
 
440
451
  export type GetMongodbResp = {
@@ -518,62 +529,62 @@ export type CreateMongodbBackupResp = {
518
529
  message?: string
519
530
  }
520
531
 
521
- export class Mongodb {
532
+ export class MongodbV2 {
522
533
  static GetMongodbList(req: GetMongodbListReq, initReq?: fm.InitReq): Promise<GetMongodbListResp> {
523
- return fm.fetchReq<GetMongodbListReq, GetMongodbListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/mongodbs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
534
+ return fm.fetchReq<GetMongodbListReq, GetMongodbListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodbs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
524
535
  }
525
536
  static GetMongodbOperatorVersionList(req: GetMongodbOperatorVersionListReq, initReq?: fm.InitReq): Promise<GetMongodbOperatorVersionListResp> {
526
- return fm.fetchReq<GetMongodbOperatorVersionListReq, GetMongodbOperatorVersionListResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
537
+ return fm.fetchReq<GetMongodbOperatorVersionListReq, GetMongodbOperatorVersionListResp>(`/apis/mcamel.io/mongodb/v1alpha2/mongodb-operator/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
527
538
  }
528
539
  static GetMongodb(req: GetMongodbReq, initReq?: fm.InitReq): Promise<GetMongodbResp> {
529
- return fm.fetchReq<GetMongodbReq, GetMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
540
+ return fm.fetchReq<GetMongodbReq, GetMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
530
541
  }
531
542
  static GetMongodbParam(req: GetMongodbParamReq, initReq?: fm.InitReq): Promise<GetMongodbParamResp> {
532
- return fm.fetchReq<GetMongodbParamReq, GetMongodbParamResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
543
+ return fm.fetchReq<GetMongodbParamReq, GetMongodbParamResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb-params/${req["cluster"]}?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
533
544
  }
534
545
  static GetMongodbPodList(req: GetMongodbPodListReq, initReq?: fm.InitReq): Promise<GetMongodbPodListResp> {
535
- return fm.fetchReq<GetMongodbPodListReq, GetMongodbPodListResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/pods?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
546
+ return fm.fetchReq<GetMongodbPodListReq, GetMongodbPodListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
536
547
  }
537
548
  static GetMongodbGrafanaAddr(req: GetMongodbGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetMongodbGrafanaAddrResp> {
538
- return fm.fetchReq<GetMongodbGrafanaAddrReq, GetMongodbGrafanaAddrResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
549
+ return fm.fetchReq<GetMongodbGrafanaAddrReq, GetMongodbGrafanaAddrResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
539
550
  }
540
551
  static CreateMongodb(req: CreateMongodbReq, initReq?: fm.InitReq): Promise<CreateMongodbResp> {
541
- return fm.fetchReq<CreateMongodbReq, CreateMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb`, {...initReq, method: "POST", body: JSON.stringify(req)})
552
+ return fm.fetchReq<CreateMongodbReq, CreateMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb`, {...initReq, method: "POST", body: JSON.stringify(req)})
542
553
  }
543
554
  static GetMongodbConfs(req: GetMongodbConfReq, initReq?: fm.InitReq): Promise<GetMongodbConfResp> {
544
- return fm.fetchReq<GetMongodbConfReq, GetMongodbConfResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
555
+ return fm.fetchReq<GetMongodbConfReq, GetMongodbConfResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/confs?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
545
556
  }
546
557
  static UpdateMongodbConf(req: UpdateMongodbConfReq, initReq?: fm.InitReq): Promise<UpdateMongodbConfResp> {
547
- return fm.fetchReq<UpdateMongodbConfReq, UpdateMongodbConfResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
558
+ return fm.fetchReq<UpdateMongodbConfReq, UpdateMongodbConfResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/conf`, {...initReq, method: "PUT", body: JSON.stringify(req)})
548
559
  }
549
560
  static UpdateMongodbParams(req: CreateMongodbReq, initReq?: fm.InitReq): Promise<UpdateMongodbParamsResp> {
550
- return fm.fetchReq<CreateMongodbReq, UpdateMongodbParamsResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
561
+ return fm.fetchReq<CreateMongodbReq, UpdateMongodbParamsResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/params`, {...initReq, method: "PUT", body: JSON.stringify(req)})
551
562
  }
552
563
  static DeleteMongodb(req: DeleteMongodbReq, initReq?: fm.InitReq): Promise<DeleteMongodbResp> {
553
- return fm.fetchReq<DeleteMongodbReq, DeleteMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
564
+ return fm.fetchReq<DeleteMongodbReq, DeleteMongodbResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
554
565
  }
555
566
  static DeleteMongodbs(req: DeleteMongodbsReq, initReq?: fm.InitReq): Promise<DeleteMongodbsResp> {
556
- return fm.fetchReq<DeleteMongodbsReq, DeleteMongodbsResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodbs`, {...initReq, method: "POST", body: JSON.stringify(req)})
567
+ return fm.fetchReq<DeleteMongodbsReq, DeleteMongodbsResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodbs`, {...initReq, method: "POST", body: JSON.stringify(req)})
557
568
  }
558
569
  static GetMongodbUsers(req: GetMongodbUsersReq, initReq?: fm.InitReq): Promise<GetMongodbUsersResp> {
559
- return fm.fetchReq<GetMongodbUsersReq, GetMongodbUsersResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
570
+ return fm.fetchReq<GetMongodbUsersReq, GetMongodbUsersResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
560
571
  }
561
572
  static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
562
- return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
573
+ return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
563
574
  }
564
575
  static UpdateMongodbBackupConfig(req: UpdateMongodbBackupConfigReq, initReq?: fm.InitReq): Promise<UpdateMongodbBackupConfigResp> {
565
- return fm.fetchReq<UpdateMongodbBackupConfigReq, UpdateMongodbBackupConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
576
+ return fm.fetchReq<UpdateMongodbBackupConfigReq, UpdateMongodbBackupConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
566
577
  }
567
578
  static CreateMongodbBackup(req: CreateMongodbBackupReq, initReq?: fm.InitReq): Promise<CreateMongodbBackupResp> {
568
- return fm.fetchReq<CreateMongodbBackupReq, CreateMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
579
+ return fm.fetchReq<CreateMongodbBackupReq, CreateMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
569
580
  }
570
581
  static GetMongodbBackupList(req: GetMongodbBackupListReq, initReq?: fm.InitReq): Promise<GetMongodbBackupListResp> {
571
- return fm.fetchReq<GetMongodbBackupListReq, GetMongodbBackupListResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
582
+ return fm.fetchReq<GetMongodbBackupListReq, GetMongodbBackupListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/backups?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
572
583
  }
573
584
  static DeleteMongodbBackup(req: DeleteMongodbBackupReq, initReq?: fm.InitReq): Promise<DeleteMongodbBackupResp> {
574
- return fm.fetchReq<DeleteMongodbBackupReq, DeleteMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
585
+ return fm.fetchReq<DeleteMongodbBackupReq, DeleteMongodbBackupResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
575
586
  }
576
587
  static CreateMongodbRecover(req: CreateMongodbRecoverReq, initReq?: fm.InitReq): Promise<CreateMongodbRecoverResp> {
577
- return fm.fetchReq<CreateMongodbRecoverReq, CreateMongodbRecoverResp>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
588
+ return fm.fetchReq<CreateMongodbRecoverReq, CreateMongodbRecoverResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/mongodb/${req["cluster"]}/${req["namespace"]}/${req["name"]}/recover`, {...initReq, method: "POST", body: JSON.stringify(req)})
578
589
  }
579
590
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mongodb",
3
- "version":"0.14.0-rc1-1",
3
+ "version":"0.16.0-rc2-1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -162,27 +162,27 @@ export type GetStorageConfigListResp = {
162
162
 
163
163
  export class StorageConfig {
164
164
  static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
165
- return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mongodb/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
165
+ return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mongodb/v1alpha2/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
166
166
  }
167
167
  static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
168
- return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mongodb/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
168
+ return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mongodb/v1alpha2/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
169
169
  }
170
170
  static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
171
- return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
171
+ return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
172
172
  }
173
173
  static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
174
- return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
174
+ return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
175
175
  }
176
176
  static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
177
- return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
177
+ return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
178
178
  }
179
179
  static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
180
- return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
180
+ return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
181
181
  }
182
182
  static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
183
- return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
183
+ return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
184
184
  }
185
185
  static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
186
- return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
186
+ return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
187
187
  }
188
188
  }
package/template.pb.ts CHANGED
@@ -8,6 +8,7 @@ import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
 
10
10
  export enum TemplateInstanceType {
11
+ TemplateInstanceTypeUnspecified = "TemplateInstanceTypeUnspecified",
11
12
  MysqlMasterReplica = "MysqlMasterReplica",
12
13
  RedisStandalone = "RedisStandalone",
13
14
  RedisFailover = "RedisFailover",
@@ -165,30 +166,30 @@ export type GetTemplateInstanceTypeListResp = {
165
166
 
166
167
  export class Template {
167
168
  static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
168
- return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
169
+ return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
169
170
  }
170
171
  static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
171
- return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
172
+ return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
172
173
  }
173
174
  static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
174
- return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
175
+ return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
175
176
  }
176
177
  static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
177
- return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
178
+ return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
178
179
  }
179
180
  static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
180
- return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
181
+ return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
181
182
  }
182
183
  static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
183
- return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
184
+ return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
184
185
  }
185
186
  static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
186
- return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
187
+ return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
187
188
  }
188
189
  static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
189
- return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
190
+ return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
190
191
  }
191
192
  static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
192
- return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
193
+ return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/mongodb/v1alpha2/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
193
194
  }
194
195
  }
package/version.pb.ts CHANGED
@@ -26,7 +26,7 @@ export type Empty = {
26
26
 
27
27
  export class Version {
28
28
  static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
29
- return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mongodb/v1alpha1/mongodb/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
29
+ return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/mongodb/v1alpha2/mongodb/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
30
30
  }
31
31
  static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
32
32
  return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})