@daocloud-proto/skoala 0.18.0-23 → 0.18.0-29
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.
|
@@ -60,4 +60,21 @@ export type GatewayAPINum = {
|
|
|
60
60
|
gatewayName?: string
|
|
61
61
|
location?: string
|
|
62
62
|
apiNum?: number
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type GatewayOverviewInfoReq = {
|
|
66
|
+
workspaceId?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type GatewayOverviewInfoRes = {
|
|
70
|
+
apiNum?: number
|
|
71
|
+
normal?: number
|
|
72
|
+
abnormal?: number
|
|
73
|
+
errGatewayInfo?: ErrGatewayInfo[]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ErrGatewayInfo = {
|
|
77
|
+
gatewayName?: string
|
|
78
|
+
location?: string
|
|
79
|
+
reason?: string
|
|
63
80
|
}
|
|
@@ -843,6 +843,16 @@ export type CheckNacosConfigRes = {
|
|
|
843
843
|
use?: string
|
|
844
844
|
}
|
|
845
845
|
|
|
846
|
+
export type UpdateUserPasswordReq = {
|
|
847
|
+
workspaceId?: string
|
|
848
|
+
clusterName?: string
|
|
849
|
+
namespaceName?: string
|
|
850
|
+
nacosName?: string
|
|
851
|
+
nacosNamespace?: string
|
|
852
|
+
nacosUserName?: string
|
|
853
|
+
nacosUserNewPassword?: string
|
|
854
|
+
}
|
|
855
|
+
|
|
846
856
|
export type GetNacosGrafanaReq = {
|
|
847
857
|
workspaceId?: string
|
|
848
858
|
clusterName?: string
|
|
@@ -268,6 +268,9 @@ export class Nacos {
|
|
|
268
268
|
static CheckConfig(req: SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes> {
|
|
269
269
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/check?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "dataId"])}`, {...initReq, method: "GET"})
|
|
270
270
|
}
|
|
271
|
+
static UpdateUserPassword(req: SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
272
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/users`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
273
|
+
}
|
|
271
274
|
}
|
|
272
275
|
export class Sentinel {
|
|
273
276
|
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
@@ -627,4 +630,7 @@ export class GatewayOverview {
|
|
|
627
630
|
static GatewayOverviewRankAPINum(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes> {
|
|
628
631
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/rank/apinum?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
629
632
|
}
|
|
633
|
+
static GatewayOverviewInfo(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes> {
|
|
634
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/info?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
635
|
+
}
|
|
630
636
|
}
|