@daocloud-proto/skoala 0.26.2-8 → 0.27.0
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/api/general/v1alpha1/skoala.pb.ts +8 -15
- package/api/hosted/v1alpha1/api.pb.ts +36 -1
- package/api/hosted/v1alpha1/gateway.pb.ts +1 -1
- package/api/hosted/v1alpha1/gateway_overview.pb.ts +14 -0
- package/api/hosted/v1alpha1/http.pb.ts +1 -1
- package/api/hosted/v1alpha1/lane.pb.ts +41 -10
- package/api/hosted/v1alpha1/nacos.pb.ts +33 -0
- package/api/hosted/v1alpha1/plugins.pb.ts +2 -0
- package/api/hosted/v1alpha1/virtualhost.pb.ts +10 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +30 -3
- package/package.json +1 -1
|
@@ -98,21 +98,6 @@ export type ListMeshServiceReq = {
|
|
|
98
98
|
pageSize?: number
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export type ListMeshServiceVersion = {
|
|
102
|
-
versionName?: string
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type ListMeshServiceVersionReq = {
|
|
106
|
-
workspaceId?: string
|
|
107
|
-
meshId?: string
|
|
108
|
-
namespaceName?: string
|
|
109
|
-
serviceName?: string
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export type ListMeshServiceVersionRes = {
|
|
113
|
-
items?: ListMeshServiceVersion[]
|
|
114
|
-
}
|
|
115
|
-
|
|
116
101
|
export type ListRegistryServiceReq = {
|
|
117
102
|
workspaceId?: string
|
|
118
103
|
registryId?: string
|
|
@@ -341,4 +326,12 @@ export type AuditItem = {
|
|
|
341
326
|
export type ListAuditRes = {
|
|
342
327
|
items?: AuditItem[]
|
|
343
328
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export type ListWorkspaceRolePermissionsReq = {
|
|
332
|
+
workspaceId?: string
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export type ListWorkspaceRolePermissionsRes = {
|
|
336
|
+
permissions?: string[]
|
|
344
337
|
}
|
|
@@ -74,6 +74,41 @@ export type CreateAPIReq = {
|
|
|
74
74
|
advancedApiConfig?: AdvancedAPIConfig
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
export type ExportAPIReq = {
|
|
78
|
+
workspaceId?: string
|
|
79
|
+
gatewayName?: string
|
|
80
|
+
clusterName?: string
|
|
81
|
+
namespaceName?: string
|
|
82
|
+
apiName?: string[]
|
|
83
|
+
all?: boolean
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type ImportAPIReq = {
|
|
87
|
+
workspaceId?: string
|
|
88
|
+
gatewayName?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
apiName?: string[]
|
|
92
|
+
data?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ImportAPIRes = {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type ImportAPICheckReq = {
|
|
99
|
+
workspaceId?: string
|
|
100
|
+
gatewayName?: string
|
|
101
|
+
clusterName?: string
|
|
102
|
+
namespaceName?: string
|
|
103
|
+
data?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type ImportAPICheckRes = {
|
|
107
|
+
result?: boolean
|
|
108
|
+
successApi?: string[]
|
|
109
|
+
failApi?: OperationFailReason[]
|
|
110
|
+
}
|
|
111
|
+
|
|
77
112
|
export type ListAPIGroupReq = {
|
|
78
113
|
workspaceId?: string
|
|
79
114
|
gatewayName?: string
|
|
@@ -279,7 +314,7 @@ type BaseMatchRule = {
|
|
|
279
314
|
}
|
|
280
315
|
|
|
281
316
|
export type MatchRule = BaseMatchRule
|
|
282
|
-
& OneOf<{ path: string; prefix: string }>
|
|
317
|
+
& OneOf<{ path: string; prefix: string; regex: string }>
|
|
283
318
|
|
|
284
319
|
export type RouteAction = {
|
|
285
320
|
routeService?: RouteService[]
|
|
@@ -78,4 +78,18 @@ export type ErrGatewayInfo = {
|
|
|
78
78
|
gatewayName?: string
|
|
79
79
|
location?: string
|
|
80
80
|
reason?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GatewayOverviewBasicDataReq = {
|
|
84
|
+
workspaceId?: string
|
|
85
|
+
clusterName?: string
|
|
86
|
+
namespaceName?: string
|
|
87
|
+
gatewayName?: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type GatewayOverviewBasicDataRes = {
|
|
91
|
+
manualServiceNum?: number
|
|
92
|
+
autoServiceNum?: number
|
|
93
|
+
apiNum?: number
|
|
94
|
+
virtualhostNum?: number
|
|
81
95
|
}
|
|
@@ -115,7 +115,7 @@ type BaseHeaderRule = {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export type HeaderRule = BaseHeaderRule
|
|
118
|
-
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
|
|
118
|
+
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean; regex: string }>
|
|
119
119
|
|
|
120
120
|
export type APIStatus = {
|
|
121
121
|
currentStatus?: APIStatusEnum
|
|
@@ -27,6 +27,7 @@ export type ListLaneReq = {
|
|
|
27
27
|
meshId?: string
|
|
28
28
|
page?: number
|
|
29
29
|
pageSize?: number
|
|
30
|
+
pageSearch?: string
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export type ListLaneRes = {
|
|
@@ -35,21 +36,22 @@ export type ListLaneRes = {
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export type ListLane = {
|
|
38
|
-
|
|
39
|
+
laneName?: string
|
|
39
40
|
meshId?: string
|
|
40
41
|
phase?: LaneStatusPhase
|
|
41
42
|
services?: LaneService[]
|
|
43
|
+
failedReason?: string[]
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export type LaneService = {
|
|
45
|
-
|
|
47
|
+
serviceName?: string
|
|
46
48
|
subset?: string
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
export type CreateLaneReq = {
|
|
50
52
|
workspaceId?: string
|
|
51
53
|
meshId?: string
|
|
52
|
-
|
|
54
|
+
laneName?: string
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export type CreateLaneRes = {
|
|
@@ -84,13 +86,20 @@ export type GetLaneRes = {
|
|
|
84
86
|
lane?: ListLane
|
|
85
87
|
}
|
|
86
88
|
|
|
89
|
+
export type FailedMessage = {
|
|
90
|
+
serviceInfo?: string[]
|
|
91
|
+
instancesInfo?: string[]
|
|
92
|
+
workloadsInfo?: string[]
|
|
93
|
+
}
|
|
94
|
+
|
|
87
95
|
export type ListLaneService = {
|
|
88
|
-
|
|
89
|
-
|
|
96
|
+
namespaceName?: string
|
|
97
|
+
serviceName?: string
|
|
90
98
|
subset?: string
|
|
91
99
|
status?: SkoalaApiHostedV1alpha1Mesh.ServiceStatus
|
|
92
100
|
replicas?: number
|
|
93
101
|
availableReplicas?: number
|
|
102
|
+
failedMessage?: FailedMessage
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
export type ListLaneServiceReq = {
|
|
@@ -103,9 +112,9 @@ export type ListLaneServiceRes = {
|
|
|
103
112
|
items?: ListLaneService[]
|
|
104
113
|
}
|
|
105
114
|
|
|
106
|
-
export type
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
export type LaneServiceDetail = {
|
|
116
|
+
namespaceName?: string
|
|
117
|
+
serviceName?: string
|
|
109
118
|
subset?: string
|
|
110
119
|
}
|
|
111
120
|
|
|
@@ -113,12 +122,34 @@ export type AddLaneServiceReq = {
|
|
|
113
122
|
workspaceId?: string
|
|
114
123
|
meshId?: string
|
|
115
124
|
laneName?: string
|
|
116
|
-
service?:
|
|
125
|
+
service?: LaneServiceDetail
|
|
117
126
|
}
|
|
118
127
|
|
|
119
128
|
export type DeleteLaneServiceReq = {
|
|
120
129
|
workspaceId?: string
|
|
121
130
|
meshId?: string
|
|
122
131
|
laneName?: string
|
|
123
|
-
services?:
|
|
132
|
+
services?: LaneServiceDetail[]
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type ListMeshServiceReq = {
|
|
136
|
+
workspaceId?: string
|
|
137
|
+
meshId?: string
|
|
138
|
+
namespaceName?: string
|
|
139
|
+
laneName?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type ListMeshServiceRes = {
|
|
143
|
+
services?: string[]
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type ListMeshServiceVersionReq = {
|
|
147
|
+
workspaceId?: string
|
|
148
|
+
meshId?: string
|
|
149
|
+
namespaceName?: string
|
|
150
|
+
serviceName?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type ListMeshServiceVersionRes = {
|
|
154
|
+
subsets?: string[]
|
|
124
155
|
}
|
|
@@ -742,6 +742,7 @@ export type CreateNacosConfigReq = {
|
|
|
742
742
|
import?: boolean
|
|
743
743
|
policy?: CreateNacosConfigReqPolicy
|
|
744
744
|
file?: Uint8Array
|
|
745
|
+
betaIps?: string
|
|
745
746
|
}
|
|
746
747
|
|
|
747
748
|
export type UpdateNacosConfigReq = {
|
|
@@ -902,4 +903,36 @@ export type GetResourceInfoRes = {
|
|
|
902
903
|
namespaceName?: string
|
|
903
904
|
nacos?: GetResourceInfoResResourceInfo
|
|
904
905
|
sentinel?: GetResourceInfoResResourceInfo
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export type GetBetaConfigReq = {
|
|
909
|
+
workspaceId?: string
|
|
910
|
+
clusterName?: string
|
|
911
|
+
namespaceName?: string
|
|
912
|
+
nacosName?: string
|
|
913
|
+
nacosNamespace?: string
|
|
914
|
+
dataId?: string
|
|
915
|
+
group?: string
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export type GetBetaConfigRes = {
|
|
919
|
+
appName?: string
|
|
920
|
+
content?: string
|
|
921
|
+
dataId?: string
|
|
922
|
+
group?: string
|
|
923
|
+
id?: string
|
|
924
|
+
md5?: string
|
|
925
|
+
tenant?: string
|
|
926
|
+
type?: NacosConfigFileType
|
|
927
|
+
betaIps?: string
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
export type DeleteBetaConfigReq = {
|
|
931
|
+
workspaceId?: string
|
|
932
|
+
clusterName?: string
|
|
933
|
+
namespaceName?: string
|
|
934
|
+
nacosName?: string
|
|
935
|
+
nacosNamespace?: string
|
|
936
|
+
dataId?: string
|
|
937
|
+
group?: string
|
|
905
938
|
}
|
|
@@ -79,6 +79,7 @@ export type GetSentinelPluginRes = {
|
|
|
79
79
|
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
80
80
|
visitAddress?: string
|
|
81
81
|
workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
|
|
82
|
+
pwd?: string
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
export type GetMeshPluginReq = {
|
|
@@ -111,6 +112,7 @@ export type UpdateSentinelPluginReq = {
|
|
|
111
112
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
112
113
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
113
114
|
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
115
|
+
pwd?: string
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export type UpdateMeshPluginReq = {
|
|
@@ -216,4 +216,14 @@ export type LocalRateLimitPolicy = {
|
|
|
216
216
|
export type TimeUnit = {
|
|
217
217
|
time?: number
|
|
218
218
|
unit?: TimeUnitUnit
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type CheckVirtualhostReq = {
|
|
222
|
+
workspaceId?: string
|
|
223
|
+
clusterName?: string
|
|
224
|
+
fqdn?: string
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type CheckVirtualhostRes = {
|
|
228
|
+
exists?: boolean
|
|
219
229
|
}
|
|
@@ -74,9 +74,6 @@ export class Skoala {
|
|
|
74
74
|
static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
|
|
75
75
|
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"})
|
|
76
76
|
}
|
|
77
|
-
static ListMeshServiceVersion(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes> {
|
|
78
|
-
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceVersionRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
79
|
-
}
|
|
80
77
|
static ListRegistryServices(req: SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes> {
|
|
81
78
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListRegistryServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryId"]}/services/gateway?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
82
79
|
}
|
|
@@ -116,6 +113,9 @@ export class Skoala {
|
|
|
116
113
|
static ListAudit(req: SkoalaApiGeneralV1alpha1Skoala.ListAuditReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListAuditRes> {
|
|
117
114
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListAuditReq, SkoalaApiGeneralV1alpha1Skoala.ListAuditRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/audits?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
118
115
|
}
|
|
116
|
+
static ListWorkspaceRolePermissions(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes> {
|
|
117
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
118
|
+
}
|
|
119
119
|
}
|
|
120
120
|
export class Registry {
|
|
121
121
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -305,6 +305,12 @@ export class Nacos {
|
|
|
305
305
|
static GetResourceInfo(req: SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes> {
|
|
306
306
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/info?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
307
307
|
}
|
|
308
|
+
static GetBetaConfig(req: SkoalaApiHostedV1alpha1Nacos.GetBetaConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetBetaConfigRes> {
|
|
309
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetBetaConfigReq, SkoalaApiHostedV1alpha1Nacos.GetBetaConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/beta?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "dataId"])}`, {...initReq, method: "GET"})
|
|
310
|
+
}
|
|
311
|
+
static DeleteBetaConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteBetaConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
312
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteBetaConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/beta`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
313
|
+
}
|
|
308
314
|
}
|
|
309
315
|
export class Sentinel {
|
|
310
316
|
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
@@ -763,6 +769,9 @@ export class Virtualhost {
|
|
|
763
769
|
static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
764
770
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
765
771
|
}
|
|
772
|
+
static CheckVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CheckVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CheckVirtualhostRes> {
|
|
773
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CheckVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CheckVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/virtualhosts/check?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
774
|
+
}
|
|
766
775
|
}
|
|
767
776
|
export class GatewayAPI {
|
|
768
777
|
static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -792,6 +801,15 @@ export class GatewayAPI {
|
|
|
792
801
|
static BatchOperationAPI(req: SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIBatchOperationRes> {
|
|
793
802
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, SkoalaApiHostedV1alpha1Api.APIBatchOperationRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/batch`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
794
803
|
}
|
|
804
|
+
static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
805
|
+
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api.ExportAPIReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
|
|
806
|
+
}
|
|
807
|
+
static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
|
|
808
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, SkoalaApiHostedV1alpha1Api.ImportAPICheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
809
|
+
}
|
|
810
|
+
static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
|
|
811
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPIReq, SkoalaApiHostedV1alpha1Api.ImportAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
812
|
+
}
|
|
795
813
|
}
|
|
796
814
|
export class GatewayService {
|
|
797
815
|
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -832,6 +850,9 @@ export class GatewayOverview {
|
|
|
832
850
|
static GatewayOverviewInfo(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes> {
|
|
833
851
|
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"})
|
|
834
852
|
}
|
|
853
|
+
static GatewayOverviewBasicData(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataRes> {
|
|
854
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/stats/basicdata?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
855
|
+
}
|
|
835
856
|
}
|
|
836
857
|
export class SkoalaPlugin {
|
|
837
858
|
static CreatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -890,4 +911,10 @@ export class Lane {
|
|
|
890
911
|
static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
891
912
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
892
913
|
}
|
|
914
|
+
static ListMeshService(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes> {
|
|
915
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName"])}`, {...initReq, method: "GET"})
|
|
916
|
+
}
|
|
917
|
+
static ListMeshServiceVersion(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes> {
|
|
918
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
919
|
+
}
|
|
893
920
|
}
|