@daocloud-proto/skoala 0.26.2-4 → 0.26.2-40
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 +1 -1
- package/api/hosted/v1alpha1/gateway.pb.ts +1 -1
- package/api/hosted/v1alpha1/http.pb.ts +1 -1
- package/api/hosted/v1alpha1/lane.pb.ts +39 -9
- package/api/hosted/v1alpha1/mesh.pb.ts +27 -4
- 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 +22 -4
- 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
|
}
|
|
@@ -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,21 @@ 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[]
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export type LaneService = {
|
|
45
|
-
|
|
46
|
+
serviceName?: string
|
|
46
47
|
subset?: string
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export type CreateLaneReq = {
|
|
50
51
|
workspaceId?: string
|
|
51
52
|
meshId?: string
|
|
52
|
-
|
|
53
|
+
laneName?: string
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export type CreateLaneRes = {
|
|
@@ -84,13 +85,20 @@ export type GetLaneRes = {
|
|
|
84
85
|
lane?: ListLane
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
export type FailedMessage = {
|
|
89
|
+
serviceInfo?: string[]
|
|
90
|
+
instancesInfo?: string[]
|
|
91
|
+
workloadsInfo?: string[]
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
export type ListLaneService = {
|
|
88
95
|
namespace?: string
|
|
89
|
-
|
|
96
|
+
serviceName?: string
|
|
90
97
|
subset?: string
|
|
91
98
|
status?: SkoalaApiHostedV1alpha1Mesh.ServiceStatus
|
|
92
99
|
replicas?: number
|
|
93
100
|
availableReplicas?: number
|
|
101
|
+
failedMessage?: FailedMessage
|
|
94
102
|
}
|
|
95
103
|
|
|
96
104
|
export type ListLaneServiceReq = {
|
|
@@ -103,9 +111,9 @@ export type ListLaneServiceRes = {
|
|
|
103
111
|
items?: ListLaneService[]
|
|
104
112
|
}
|
|
105
113
|
|
|
106
|
-
export type
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
export type LaneServiceDetail = {
|
|
115
|
+
namespaceName?: string
|
|
116
|
+
serviceName?: string
|
|
109
117
|
subset?: string
|
|
110
118
|
}
|
|
111
119
|
|
|
@@ -113,12 +121,34 @@ export type AddLaneServiceReq = {
|
|
|
113
121
|
workspaceId?: string
|
|
114
122
|
meshId?: string
|
|
115
123
|
laneName?: string
|
|
116
|
-
|
|
124
|
+
service?: LaneServiceDetail
|
|
117
125
|
}
|
|
118
126
|
|
|
119
127
|
export type DeleteLaneServiceReq = {
|
|
120
128
|
workspaceId?: string
|
|
121
129
|
meshId?: string
|
|
122
130
|
laneName?: string
|
|
123
|
-
services?:
|
|
131
|
+
services?: LaneServiceDetail[]
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type ListMeshServiceReq = {
|
|
135
|
+
workspaceId?: string
|
|
136
|
+
meshId?: string
|
|
137
|
+
namespaceName?: string
|
|
138
|
+
laneName?: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type ListMeshServiceRes = {
|
|
142
|
+
services?: string[]
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type ListMeshServiceVersionReq = {
|
|
146
|
+
workspaceId?: string
|
|
147
|
+
meshId?: string
|
|
148
|
+
namespaceName?: string
|
|
149
|
+
serviceName?: string
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type ListMeshServiceVersionRes = {
|
|
153
|
+
subsets?: string[]
|
|
124
154
|
}
|
|
@@ -404,7 +404,28 @@ export type ListServiceIstioPluginRLSPortsReq = {
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
export type ListServiceIstioPluginRLSPortsRes = {
|
|
407
|
-
ports?:
|
|
407
|
+
ports?: portRlsPluginInfo[]
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export type portRlsPluginInfo = {
|
|
411
|
+
port?: number
|
|
412
|
+
ratelimitPluginName?: string
|
|
413
|
+
domain?: string
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type GetServiceIstioPluginRLSRulesReq = {
|
|
417
|
+
workspaceId?: string
|
|
418
|
+
meshId?: string
|
|
419
|
+
namespaceName?: string
|
|
420
|
+
serviceName?: string
|
|
421
|
+
port?: number
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export type GetServiceIstioPluginRLSRulesRes = {
|
|
425
|
+
port?: number
|
|
426
|
+
ratelimitPluginName?: string
|
|
427
|
+
domain?: string
|
|
428
|
+
rlsRuleName?: string
|
|
408
429
|
}
|
|
409
430
|
|
|
410
431
|
export type ListServiceIstioPluginRLSRulesReq = {
|
|
@@ -415,12 +436,14 @@ export type ListServiceIstioPluginRLSRulesReq = {
|
|
|
415
436
|
}
|
|
416
437
|
|
|
417
438
|
export type ListServiceIstioPluginRLSRulesRes = {
|
|
418
|
-
items?:
|
|
439
|
+
items?: PortRlsRule[]
|
|
419
440
|
}
|
|
420
441
|
|
|
421
|
-
export type
|
|
442
|
+
export type PortRlsRule = {
|
|
422
443
|
port?: number
|
|
423
|
-
|
|
444
|
+
ratelimitPluginName?: string
|
|
445
|
+
domain?: string
|
|
446
|
+
rlsRuleName?: string
|
|
424
447
|
}
|
|
425
448
|
|
|
426
449
|
export type CreateServiceIstioPluginRLSRulesReq = {
|
|
@@ -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> {
|
|
@@ -496,6 +502,9 @@ export class Mesh {
|
|
|
496
502
|
static ListServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes> {
|
|
497
503
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
498
504
|
}
|
|
505
|
+
static GetServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes> {
|
|
506
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
507
|
+
}
|
|
499
508
|
static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
500
509
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
501
510
|
}
|
|
@@ -760,6 +769,9 @@ export class Virtualhost {
|
|
|
760
769
|
static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
761
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)})
|
|
762
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
|
+
}
|
|
763
775
|
}
|
|
764
776
|
export class GatewayAPI {
|
|
765
777
|
static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -885,6 +897,12 @@ export class Lane {
|
|
|
885
897
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.AddLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
886
898
|
}
|
|
887
899
|
static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
888
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "
|
|
900
|
+
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)})
|
|
901
|
+
}
|
|
902
|
+
static ListMeshService(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes> {
|
|
903
|
+
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"})
|
|
904
|
+
}
|
|
905
|
+
static ListMeshServiceVersion(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes> {
|
|
906
|
+
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"})
|
|
889
907
|
}
|
|
890
908
|
}
|