@daocloud-proto/skoala 0.26.2 → 0.27.0-2

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.
@@ -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[]
@@ -295,7 +295,7 @@ export type GatewayConfig = {
295
295
 
296
296
  export type PluginConfig = {
297
297
  globalRatelimitConfig?: GlobalRatelimitConfig
298
- golbalAuthConfig?: GlobalAuthConfig
298
+ globalAuthConfig?: GlobalAuthConfig
299
299
  }
300
300
 
301
301
  export type GlobalRatelimitConfig = {
@@ -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
- name?: string
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
- name?: string
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
- name?: string
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
- namespace?: string
89
- name?: string
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 AddLaneService = {
107
- namespace?: string
108
- name?: string
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
- services?: AddLaneService[]
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?: AddLaneService[]
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
  }
@@ -404,7 +404,28 @@ export type ListServiceIstioPluginRLSPortsReq = {
404
404
  }
405
405
 
406
406
  export type ListServiceIstioPluginRLSPortsRes = {
407
- ports?: number[]
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?: PortRuleName[]
439
+ items?: PortRlsRule[]
419
440
  }
420
441
 
421
- export type PortRuleName = {
442
+ export type PortRlsRule = {
422
443
  port?: number
423
- ruleName?: string
444
+ ratelimitPluginName?: string
445
+ domain?: string
446
+ rlsRuleName?: string
424
447
  }
425
448
 
426
449
  export type CreateServiceIstioPluginRLSRulesReq = {
@@ -630,7 +653,7 @@ export type CreateConnectionPoolReq = {
630
653
  meshId?: string
631
654
  namespaceName?: string
632
655
  serviceName?: string
633
- port?: number
656
+ ports?: number[]
634
657
  cp?: ConnectionPool
635
658
  }
636
659
 
@@ -694,7 +717,7 @@ export type CreateOutlierDetectionReq = {
694
717
  meshId?: string
695
718
  namespaceName?: string
696
719
  serviceName?: string
697
- port?: number
720
+ ports?: number[]
698
721
  od?: OutlierDetection
699
722
  }
700
723
 
@@ -758,7 +781,7 @@ export type CreateRewriteReq = {
758
781
  meshId?: string
759
782
  namespaceName?: string
760
783
  serviceName?: string
761
- port?: number
784
+ ports?: number[]
762
785
  rewrite?: HTTPRewrite
763
786
  }
764
787
 
@@ -886,7 +909,7 @@ export type CreateRetryReq = {
886
909
  meshId?: string
887
910
  namespaceName?: string
888
911
  serviceName?: string
889
- port?: number
912
+ ports?: number[]
890
913
  retry?: HTTPRetry
891
914
  }
892
915
 
@@ -950,7 +973,7 @@ export type CreateTimeoutReq = {
950
973
  meshId?: string
951
974
  namespaceName?: string
952
975
  serviceName?: string
953
- port?: number
976
+ ports?: number[]
954
977
  timeout?: GoogleProtobufDuration.Duration
955
978
  }
956
979
 
@@ -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
  }
@@ -530,7 +539,7 @@ export class Mesh {
530
539
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.GetConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
531
540
  }
532
541
  static CreateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes> {
533
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
542
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.CreateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
534
543
  }
535
544
  static UpdateConnectionPool(req: SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes> {
536
545
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolReq, SkoalaApiHostedV1alpha1Mesh.UpdateConnectionPoolRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/connection_pool/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -545,7 +554,7 @@ export class Mesh {
545
554
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.GetOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
546
555
  }
547
556
  static CreateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes> {
548
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
557
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.CreateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
549
558
  }
550
559
  static UpdateOutlierDetection(req: SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes> {
551
560
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionReq, SkoalaApiHostedV1alpha1Mesh.UpdateOutlierDetectionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/outlier_detection/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -560,7 +569,7 @@ export class Mesh {
560
569
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRewriteReq, SkoalaApiHostedV1alpha1Mesh.GetRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
561
570
  }
562
571
  static CreateRewrite(req: SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes> {
563
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
572
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRewriteReq, SkoalaApiHostedV1alpha1Mesh.CreateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
564
573
  }
565
574
  static UpdateRewrite(req: SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes> {
566
575
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRewriteReq, SkoalaApiHostedV1alpha1Mesh.UpdateRewriteRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/rewrite/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -590,7 +599,7 @@ export class Mesh {
590
599
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetRetryReq, SkoalaApiHostedV1alpha1Mesh.GetRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
591
600
  }
592
601
  static CreateRetry(req: SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateRetryRes> {
593
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, SkoalaApiHostedV1alpha1Mesh.CreateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
602
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateRetryReq, SkoalaApiHostedV1alpha1Mesh.CreateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
594
603
  }
595
604
  static UpdateRetry(req: SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes> {
596
605
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateRetryReq, SkoalaApiHostedV1alpha1Mesh.UpdateRetryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/retry/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -605,7 +614,7 @@ export class Mesh {
605
614
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetTimeoutReq, SkoalaApiHostedV1alpha1Mesh.GetTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
606
615
  }
607
616
  static CreateTimeout(req: SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes> {
608
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
617
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.CreateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
609
618
  }
610
619
  static UpdateTimeout(req: SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes> {
611
620
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutReq, SkoalaApiHostedV1alpha1Mesh.UpdateTimeoutRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/timeout/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -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> {
@@ -789,6 +801,15 @@ export class GatewayAPI {
789
801
  static BatchOperationAPI(req: SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIBatchOperationRes> {
790
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)})
791
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
+ }
792
813
  }
793
814
  export class GatewayService {
794
815
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -829,6 +850,9 @@ export class GatewayOverview {
829
850
  static GatewayOverviewInfo(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes> {
830
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"})
831
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
+ }
832
856
  }
833
857
  export class SkoalaPlugin {
834
858
  static CreatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -885,6 +909,12 @@ export class Lane {
885
909
  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
910
  }
887
911
  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: "DELETE", body: JSON.stringify(req, fm.replacer)})
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)})
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"})
889
919
  }
890
920
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.26.2",
3
+ "version": "0.27.0-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {