@daocloud-proto/skoala 0.26.2-4 → 0.26.2-8
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.
|
@@ -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 = {
|
|
@@ -496,6 +496,9 @@ export class Mesh {
|
|
|
496
496
|
static ListServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes> {
|
|
497
497
|
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
498
|
}
|
|
499
|
+
static GetServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes> {
|
|
500
|
+
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"})
|
|
501
|
+
}
|
|
499
502
|
static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
500
503
|
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
504
|
}
|
|
@@ -885,6 +888,6 @@ export class Lane {
|
|
|
885
888
|
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
889
|
}
|
|
887
890
|
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: "
|
|
891
|
+
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)})
|
|
889
892
|
}
|
|
890
893
|
}
|