@daocloud-proto/skoala 0.6.1-32 → 0.6.1-36

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.
@@ -0,0 +1,57 @@
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 InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
+ export type InsightBrief = {
9
+ enabled?: boolean
10
+ brief?: InsightTracingBrief
11
+ }
12
+
13
+ export type ServiceInsightDetail = {
14
+ enabled?: boolean
15
+ brief?: InsightTracingBrief
16
+ tracingMetrics?: InsightTracingMetrics
17
+ monitorMetrics?: InsightMonitorMetrics
18
+ }
19
+
20
+ export type InstanceInsightDetail = {
21
+ enabled?: boolean
22
+ brief?: InsightTracingBrief
23
+ tracingMetrics?: InsightTracingMetrics
24
+ monitorMetrics?: InsightMonitorMetrics
25
+ }
26
+
27
+ export type InsightTracingBrief = {
28
+ call?: string
29
+ successRates?: string
30
+ latencies?: string
31
+ }
32
+
33
+ export type InsightTracingMetrics = {
34
+ p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
35
+ p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
36
+ p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
37
+ p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
38
+ p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
39
+ reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
40
+ repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
41
+ errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
42
+ successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
43
+ errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
44
+ }
45
+
46
+ export type InsightMonitorMetrics = {
47
+ cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
48
+ cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
49
+ cpuUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
50
+ memoryRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
51
+ memoryLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
52
+ memoryUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
53
+ diskRead?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
54
+ diskWrite?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
55
+ netBytesReceived?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
56
+ netBytesTransmitted?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
57
+ }
@@ -121,7 +121,7 @@ export type ListMeshReq = {
121
121
  }
122
122
 
123
123
  export type ListMeshRes = {
124
- meshes?: SkoalaApiGeneralV1alpha1Common.Mesh[]
124
+ items?: SkoalaApiGeneralV1alpha1Common.Mesh[]
125
125
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
126
126
  }
127
127
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
8
9
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
10
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
10
11
 
@@ -233,6 +234,8 @@ export type NacosServiceBrief = {
233
234
  healthyInstanceCount?: number
234
235
  ipCount?: number
235
236
  triggerFlag?: boolean
237
+ nacosNamespace?: string
238
+ insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
236
239
  }
237
240
 
238
241
  export type NacosInstanceCluster = {
@@ -271,6 +274,8 @@ export type NacosServiceInstance = {
271
274
  serviceName?: string
272
275
  weight?: number
273
276
  pluginsHealthy?: boolean
277
+ nacosNamespace?: string
278
+ insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
274
279
  }
275
280
 
276
281
  export type GetNacosServiceReq = {
@@ -288,6 +293,20 @@ export type GetNacosServiceRes = {
288
293
  service?: NacosServiceDetail
289
294
  }
290
295
 
296
+ export type GetNacosServiceInsightReq = {
297
+ workspaceId?: string
298
+ clusterName?: string
299
+ nacosName?: string
300
+ namespaceName?: string
301
+ nacosNamespace?: string
302
+ nacosGroupName?: string
303
+ nacosService?: string
304
+ }
305
+
306
+ export type GetNacosServiceInsightRes = {
307
+ insight?: SkoalaApiGeneralV1alpha1Insight.ServiceInsightDetail
308
+ }
309
+
291
310
  export type UpdateNacosServiceReq = {
292
311
  workspaceId?: string
293
312
  clusterName?: string
@@ -399,6 +418,44 @@ export type ListNacosServiceInstanceRes = {
399
418
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
400
419
  }
401
420
 
421
+ export type GetNacosServiceInstanceReq = {
422
+ workspaceId?: string
423
+ clusterName?: string
424
+ nacosName?: string
425
+ namespaceName?: string
426
+ nacosNamespace?: string
427
+ nacosGroupName?: string
428
+ nacosClusterName?: string
429
+ nacosService?: string
430
+ ip?: string
431
+ port?: number
432
+ ephemeral?: boolean
433
+ nacosInstanceId?: string
434
+ }
435
+
436
+ export type GetNacosServiceInstanceRes = {
437
+ instance?: NacosServiceInstance
438
+ }
439
+
440
+ export type GetNacosServiceInstanceInsightReq = {
441
+ workspaceId?: string
442
+ clusterName?: string
443
+ nacosName?: string
444
+ namespaceName?: string
445
+ nacosNamespace?: string
446
+ nacosGroupName?: string
447
+ nacosClusterName?: string
448
+ nacosService?: string
449
+ ip?: string
450
+ port?: number
451
+ ephemeral?: boolean
452
+ nacosInstanceId?: string
453
+ }
454
+
455
+ export type GetNacosServiceInstanceInsightRes = {
456
+ insight?: SkoalaApiGeneralV1alpha1Insight.InstanceInsightDetail
457
+ }
458
+
402
459
  export type UpdateNacosServiceInstanceReq = {
403
460
  workspaceId?: string
404
461
  clusterName?: string
@@ -414,6 +471,7 @@ export type UpdateNacosServiceInstanceReq = {
414
471
  weight?: number
415
472
  enabled?: boolean
416
473
  metadata?: string
474
+ nacosInstanceId?: string
417
475
  }
418
476
 
419
477
  export type UpdateNacosServiceInstanceRes = {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
8
9
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
10
 
10
11
  export enum InstanceStatus {
@@ -25,6 +26,7 @@ export type Instance = {
25
26
  detail?: {[key: string]: string}
26
27
  updateAt?: string
27
28
  insight?: SkoalaApiIntegratedV1alpha1Insight.InstanceInsight
29
+ insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
28
30
  }
29
31
 
30
32
  export type ListInstanceReq = {
@@ -56,6 +58,19 @@ export type GetInstanceRes = {
56
58
  instance?: Instance
57
59
  }
58
60
 
61
+ export type GetInstanceInsightReq = {
62
+ workspaceId?: string
63
+ registryId?: string
64
+ namespaceId?: string
65
+ groupName?: string
66
+ serviceName?: string
67
+ instanceId?: string
68
+ }
69
+
70
+ export type GetInstanceInsightRes = {
71
+ insight?: SkoalaApiGeneralV1alpha1Insight.InstanceInsightDetail
72
+ }
73
+
59
74
  export type UpdateInstanceReq = {
60
75
  workspaceId?: string
61
76
  registryId?: string
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
8
9
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
10
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
10
11
  export type Service = {
@@ -15,6 +16,7 @@ export type Service = {
15
16
  registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
16
17
  detail?: {[key: string]: string}
17
18
  insight?: SkoalaApiIntegratedV1alpha1Insight.Insight
19
+ insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
18
20
  }
19
21
 
20
22
  export type ListServiceReq = {
@@ -44,6 +46,20 @@ export type GetServiceRes = {
44
46
  service?: Service
45
47
  }
46
48
 
49
+ export type GetServiceInsightReq = {
50
+ workspaceId?: string
51
+ registryId?: string
52
+ namespaceId?: string
53
+ groupName?: string
54
+ serviceName?: string
55
+ start?: string
56
+ end?: string
57
+ }
58
+
59
+ export type GetServiceInsightRes = {
60
+ insight?: SkoalaApiGeneralV1alpha1Insight.ServiceInsightDetail
61
+ }
62
+
47
63
  export type GetServiceAPIReq = {
48
64
  workspaceId?: string
49
65
  registryId?: string
@@ -44,10 +44,10 @@ export class Skoala {
44
44
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
45
45
  }
46
46
  static ListMeshNamespaces(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes> {
47
- return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
47
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
48
48
  }
49
49
  static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
50
- return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
50
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
51
51
  }
52
52
  static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
53
53
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -84,6 +84,9 @@ export class Registry {
84
84
  static GetService(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
85
85
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
86
86
  }
87
+ static GetServiceInsight(req: SkoalaApiIntegratedV1alpha1Service.GetServiceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceInsightRes> {
88
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceInsightReq, SkoalaApiIntegratedV1alpha1Service.GetServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/insight?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
89
+ }
87
90
  static GetServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes> {
88
91
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
89
92
  }
@@ -102,6 +105,9 @@ export class Registry {
102
105
  static GetInstance(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
103
106
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
104
107
  }
108
+ static GetInstanceInsight(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightRes> {
109
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}/insight?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
110
+ }
105
111
  static UpdateInstance(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes> {
106
112
  return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
107
113
  }
@@ -131,6 +137,9 @@ export class Nacos {
131
137
  static GetService(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceRes> {
132
138
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
133
139
  }
140
+ static GetServiceInsight(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightRes> {
141
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/insight?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
142
+ }
134
143
  static UpdateService(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceRes> {
135
144
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
136
145
  }
@@ -155,8 +164,14 @@ export class Nacos {
155
164
  static ListServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes> {
156
165
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
157
166
  }
167
+ static GetServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceRes> {
168
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService", "nacosInstanceId"])}`, {...initReq, method: "GET"})
169
+ }
170
+ static GetServiceInstanceInsight(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightRes> {
171
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}/insight?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService", "nacosInstanceId"])}`, {...initReq, method: "GET"})
172
+ }
158
173
  static UpdateServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceRes> {
159
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
174
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
160
175
  }
161
176
  static ListNamespace(req: SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceRes> {
162
177
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-32",
3
+ "version": "0.6.1-36",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {