@daocloud-proto/skoala 0.5.1-84 → 0.6.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.
@@ -45,6 +45,14 @@ export enum PodPhase {
45
45
  PodPhaseFailed = "PodPhaseFailed",
46
46
  }
47
47
 
48
+ export enum TimeUnit {
49
+ TIME_UNIT_UNSPECIFIED = "TIME_UNIT_UNSPECIFIED",
50
+ Day = "Day",
51
+ Hour = "Hour",
52
+ Minute = "Minute",
53
+ Second = "Second",
54
+ }
55
+
48
56
  export type Cluster = {
49
57
  id?: string
50
58
  name?: string
@@ -55,6 +55,36 @@ export type ListNamespaceReq = {
55
55
  pageSize?: number
56
56
  }
57
57
 
58
+ export type ListMeshNamespaceReq = {
59
+ workspaceId?: string
60
+ meshId?: string
61
+ page?: number
62
+ pageSize?: number
63
+ }
64
+
65
+ export type ListMeshNamespaceRes = {
66
+ items?: string[]
67
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
68
+ }
69
+
70
+ export type ListMeshServiceReq = {
71
+ workspaceId?: string
72
+ meshId?: string
73
+ namespaceName?: string[]
74
+ page?: number
75
+ pageSize?: number
76
+ }
77
+
78
+ export type ListMeshServiceRes = {
79
+ items?: MeshServiceInfo[]
80
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
81
+ }
82
+
83
+ export type MeshServiceInfo = {
84
+ serviceName?: string
85
+ namespaceName?: string
86
+ }
87
+
58
88
  export type ListServiceReq = {
59
89
  workspaceId?: string
60
90
  clusterName?: string
@@ -93,4 +123,13 @@ export type ListMeshReq = {
93
123
  export type ListMeshRes = {
94
124
  meshes?: SkoalaApiGeneralV1alpha1Common.Mesh[]
95
125
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
126
+ }
127
+
128
+ export type ListClaimReq = {
129
+ workspaceId?: string
130
+ clusterName?: string
131
+ }
132
+
133
+ export type ListClaimRes = {
134
+ items?: string[]
96
135
  }
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
+ import * as SkoalaApiHostedV1alpha1Virtualhost from "./virtualhost.pb"
9
10
 
10
11
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
12
  type OneOf<T> =
@@ -98,6 +99,7 @@ export type AdvancedAPIConfig = {
98
99
  retryPolicy?: RetryPolicy
99
100
  websocketPolicy?: WebsocketPolicy
100
101
  healthCheckPolicy?: HealthCheckPolicy
102
+ rateLimitPolicy?: SkoalaApiHostedV1alpha1Virtualhost.RateLimitPolicy
101
103
  }
102
104
 
103
105
  export type HealthCheckPolicy = {
@@ -138,12 +140,17 @@ export type RequestHashPolicies = {
138
140
  hashSourceIp?: boolean
139
141
  terminal?: boolean
140
142
  headerHashPolicy?: HeaderHashPolicy
143
+ queryParameterHashPolicy?: QueryParameterHashPolicy
141
144
  }
142
145
 
143
146
  export type HeaderHashPolicy = {
144
147
  headerName?: string
145
148
  }
146
149
 
150
+ export type QueryParameterHashPolicy = {
151
+ parameterName?: string
152
+ }
153
+
147
154
  export type UpdateAPIReq = {
148
155
  apiName?: string
149
156
  workspaceId?: string
@@ -151,6 +158,7 @@ export type UpdateAPIReq = {
151
158
  clusterName?: string
152
159
  namespaceName?: string
153
160
  apiConfig?: APIConfig
161
+ advancedApiConfig?: AdvancedAPIConfig
154
162
  }
155
163
 
156
164
  export type UpdateAPIStatusReq = {
@@ -0,0 +1,97 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ export type GatewayRLSConfig = {
9
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
10
+ requestsPerUnit?: number
11
+ }
12
+
13
+ export type CreateGatewayRLSReq = {
14
+ workspaceId?: string
15
+ clusterName?: string
16
+ namespaceName?: string
17
+ gatewayName?: string
18
+ config?: GatewayRLSConfig
19
+ }
20
+
21
+ export type CreateGatewayRLSRes = {
22
+ }
23
+
24
+ export type GetGatewayRLSReq = {
25
+ workspaceId?: string
26
+ clusterName?: string
27
+ namespaceName?: string
28
+ gatewayName?: string
29
+ }
30
+
31
+ export type GetGatewayRLSRes = {
32
+ config?: GatewayRLSConfig
33
+ }
34
+
35
+ export type DeleteGatewayRLSReq = {
36
+ workspaceId?: string
37
+ clusterName?: string
38
+ namespaceName?: string
39
+ gatewayName?: string
40
+ }
41
+
42
+ export type DeleteGatewayRLSRes = {
43
+ }
44
+
45
+ export type UpdateGatewayRLSReq = {
46
+ workspaceId?: string
47
+ clusterName?: string
48
+ namespaceName?: string
49
+ gatewayName?: string
50
+ config?: GatewayRLSConfig
51
+ }
52
+
53
+ export type UpdateGatewayRLSRes = {
54
+ }
55
+
56
+ export type GatewayAuthzConfig = {
57
+ }
58
+
59
+ export type CreateGatewayAuthzReq = {
60
+ workspaceId?: string
61
+ clusterName?: string
62
+ namespaceName?: string
63
+ gatewayName?: string
64
+ }
65
+
66
+ export type CreateGatewayAuthzRes = {
67
+ }
68
+
69
+ export type GetGatewayAuthzReq = {
70
+ workspaceId?: string
71
+ clusterName?: string
72
+ namespaceName?: string
73
+ gatewayName?: string
74
+ }
75
+
76
+ export type GetGatewayAuthzRes = {
77
+ }
78
+
79
+ export type DeleteGatewayAuthzReq = {
80
+ workspaceId?: string
81
+ clusterName?: string
82
+ namespaceName?: string
83
+ gatewayName?: string
84
+ }
85
+
86
+ export type DeleteGatewayAuthzRes = {
87
+ }
88
+
89
+ export type UpdateGatewayAuthzReq = {
90
+ workspaceId?: string
91
+ clusterName?: string
92
+ namespaceName?: string
93
+ gatewayName?: string
94
+ }
95
+
96
+ export type UpdateGatewayAuthzRes = {
97
+ }
@@ -37,8 +37,7 @@ export type CreateExternalServiceReq = {
37
37
  }
38
38
 
39
39
  export type CreateExternalServiceRes = {
40
- serviceName?: string
41
- namespaceName?: string
40
+ sesameId?: string
42
41
  }
43
42
 
44
43
  export type GetGatewayServiceReq = {
@@ -46,7 +45,18 @@ export type GetGatewayServiceReq = {
46
45
  clusterName?: string
47
46
  gatewayName?: string
48
47
  namespaceName?: string
49
- serviceName?: string
48
+ sesameId?: string
49
+ }
50
+
51
+ export type GetGatewayNamespaceReq = {
52
+ workspaceId?: string
53
+ clusterName?: string
54
+ gatewayName?: string
55
+ namespaceName?: string
56
+ }
57
+
58
+ export type GetGatewayNamespaceRes = {
59
+ namespaces?: string[]
50
60
  }
51
61
 
52
62
  export type UpdateGatewayServiceReq = {
@@ -54,13 +64,12 @@ export type UpdateGatewayServiceReq = {
54
64
  clusterName?: string
55
65
  gatewayName?: string
56
66
  namespaceName?: string
57
- serviceName?: string
67
+ sesameId?: string
58
68
  externalServiceConf?: ExternalServiceConf
59
69
  }
60
70
 
61
71
  export type UpdateGatewayServiceRes = {
62
- serviceName?: string
63
- namespaceName?: string
72
+ sesameId?: string
64
73
  }
65
74
 
66
75
  export type DeleteGatewayServiceReq = {
@@ -68,17 +77,20 @@ export type DeleteGatewayServiceReq = {
68
77
  clusterName?: string
69
78
  gatewayName?: string
70
79
  namespaceName?: string
71
- serviceName?: string
80
+ sesameId?: string
72
81
  }
73
82
 
74
83
  export type DeleteGatewayServiceRes = {
75
- serviceName?: string
76
- namespaceName?: string
84
+ sesameId?: string
77
85
  }
78
86
 
79
87
  export type GetGatewayServiceRes = {
80
- serviceInfo?: ServiceInfo
88
+ externalServiceConf?: ExternalServiceConf
89
+ manageServiceConf?: ServiceInfo
90
+ serviceType?: SesameServiceType
81
91
  api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
92
+ sesameId?: string
93
+ createdAt?: string
82
94
  }
83
95
 
84
96
  export type ListGatewayServiceReq = {
@@ -102,10 +114,9 @@ export type ServiceInfo = {
102
114
  address?: Address
103
115
  apiCount?: number
104
116
  sourceInfo?: ServiceSourceInfo
105
- createAt?: string
117
+ createdAt?: string
106
118
  serviceType?: SesameServiceType
107
- sesameServiceName?: string
108
- sesameServiceNamespace?: string
119
+ sesameId?: string
109
120
  }
110
121
 
111
122
  export type ServiceSourceInfo = {
@@ -117,6 +128,9 @@ export type ServiceSourceInfo = {
117
128
  registrationType?: string
118
129
  nacosNamespaceId?: string
119
130
  nacosGroupName?: string
131
+ meshId?: string
132
+ meshName?: string
133
+ meshNamespaceName?: string
120
134
  }
121
135
 
122
136
 
@@ -124,7 +138,15 @@ type BaseExternalServiceConf = {
124
138
  }
125
139
 
126
140
  export type ExternalServiceConf = BaseExternalServiceConf
127
- & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService }>
141
+ & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService }>
142
+
143
+ export type MeshService = {
144
+ meshId?: string
145
+ meshName?: string
146
+ serviceName?: string
147
+ namespaceName?: string
148
+ address?: Address
149
+ }
128
150
 
129
151
  export type KubernetesService = {
130
152
  clusterId?: string
@@ -20,7 +20,6 @@ export enum HttpMethod {
20
20
  PUT = "PUT",
21
21
  PATCH = "PATCH",
22
22
  OPTIONS = "OPTIONS",
23
- ALL = "ALL",
24
23
  }
25
24
 
26
25
  export enum Protocol {
@@ -28,12 +27,6 @@ export enum Protocol {
28
27
  HTTPS = "HTTPS",
29
28
  }
30
29
 
31
- export enum TimeUnit {
32
- SECOND = "SECOND",
33
- MINUTE = "MINUTE",
34
- HOUR = "HOUR",
35
- }
36
-
37
30
  export enum RouteType {
38
31
  CLUSTRE_SERVER = "CLUSTRE_SERVER",
39
32
  DIRECT = "DIRECT",
@@ -53,6 +53,8 @@ export type Nacos = {
53
53
  database?: NacosDatabase
54
54
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
55
55
  condition?: NacosCondition[]
56
+ volume?: Volume
57
+ plugins?: Plugins
56
58
  createAt?: string
57
59
  }
58
60
 
@@ -92,6 +94,21 @@ export type UpdateNacosReq = {
92
94
  nacosName?: string
93
95
  namespaceName?: string
94
96
  config?: NacosConfig
97
+ plugins?: Plugins
98
+ }
99
+
100
+ export type Plugins = {
101
+ sentinel?: Sentinel
102
+ }
103
+
104
+ export type Sentinel = {
105
+ enabled?: boolean
106
+ image?: string
107
+ replicas?: number
108
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
109
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
110
+ port?: number
111
+ nodePort?: number
95
112
  }
96
113
 
97
114
  export type UpdateNacosRes = {
@@ -104,6 +121,7 @@ export type CreateNacosReq = {
104
121
  namespaceName?: string
105
122
  createNamespace?: boolean
106
123
  config?: NacosConfig
124
+ plugins?: Plugins
107
125
  }
108
126
 
109
127
  export type CreateNacosRes = {
@@ -119,6 +137,16 @@ export type DeleteNacosReq = {
119
137
  export type DeleteNacosRes = {
120
138
  }
121
139
 
140
+ export type RestartNacosReq = {
141
+ workspaceId?: string
142
+ clusterName?: string
143
+ nacosName?: string
144
+ namespaceName?: string
145
+ }
146
+
147
+ export type RestartNacosRes = {
148
+ }
149
+
122
150
  export type NacosConfig = {
123
151
  type?: NacosConfigType
124
152
  version?: string
@@ -128,6 +156,13 @@ export type NacosConfig = {
128
156
  nodePort?: string
129
157
  databaseEnabled?: boolean
130
158
  databaseParam?: DatabaseParam
159
+ volume?: Volume
160
+ }
161
+
162
+ export type Volume = {
163
+ enabled?: boolean
164
+ requests?: SkoalaApiGeneralV1alpha1Resource.ResourceList
165
+ storageClass?: string
131
166
  }
132
167
 
133
168
  export type DatabaseParam = {
@@ -210,17 +245,74 @@ export type GetNacosServiceRes = {
210
245
  service?: NacosServiceDetail
211
246
  }
212
247
 
248
+ export type API = {
249
+ isHosted?: boolean
250
+ registry?: string
251
+ serviceName?: string
252
+ nacosNamespace?: string
253
+ nacosGroupName?: string
254
+ dataType?: string
255
+ detail?: string
256
+ }
257
+
213
258
  export type GetNacosServiceAPIReq = {
214
259
  workspaceId?: string
215
260
  clusterName?: string
216
- nacosName?: string
217
261
  namespaceName?: string
262
+ nacosName?: string
218
263
  nacosNamespace?: string
219
264
  nacosGroupName?: string
220
265
  nacosService?: string
221
266
  }
222
267
 
223
268
  export type GetNacosServiceAPIRes = {
269
+ api?: API
270
+ }
271
+
272
+ export type CreateNacosServiceAPIReq = {
273
+ workspaceId?: string
274
+ clusterName?: string
275
+ namespaceName?: string
276
+ nacosName?: string
277
+ nacosNamespace?: string
278
+ nacosGroupName?: string
279
+ nacosService?: string
280
+ dataType?: string
281
+ detail?: string
282
+ }
283
+
284
+ export type CreateNacosServiceAPIRes = {
285
+ api?: API
286
+ }
287
+
288
+ export type UpdateNacosServiceAPIReq = {
289
+ workspaceId?: string
290
+ clusterName?: string
291
+ namespaceName?: string
292
+ nacosName?: string
293
+ nacosNamespace?: string
294
+ nacosGroupName?: string
295
+ nacosService?: string
296
+ dataType?: string
297
+ detail?: string
298
+ }
299
+
300
+ export type UpdateNacosServiceAPIRes = {
301
+ api?: API
302
+ }
303
+
304
+ export type DeleteNacosServiceAPIReq = {
305
+ workspaceId?: string
306
+ clusterName?: string
307
+ namespaceName?: string
308
+ nacosName?: string
309
+ nacosNamespace?: string
310
+ nacosGroupName?: string
311
+ nacosService?: string
312
+ }
313
+
314
+ export type DeleteNacosServiceAPIRes = {
315
+ success?: boolean
224
316
  }
225
317
 
226
318
  export type ListNacosServiceInstanceReq = {
@@ -359,7 +451,7 @@ export type CheckNacosNamespaceRes = {
359
451
  duplicate?: boolean
360
452
  }
361
453
 
362
- export type NacosConfigData = {
454
+ export type NacosConfigBrief = {
363
455
  appName?: string
364
456
  content?: string
365
457
  dataId?: string
@@ -386,6 +478,200 @@ export type ListNacosConfigReq = {
386
478
  }
387
479
 
388
480
  export type ListNacosConfigRes = {
389
- items?: NacosConfigData[]
481
+ items?: NacosConfigBrief[]
482
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
483
+ }
484
+
485
+ export type GetNacosConfigReq = {
486
+ workspaceId?: string
487
+ clusterName?: string
488
+ namespaceName?: string
489
+ nacosName?: string
490
+ nacosNamespace?: string
491
+ nacosConfigDataId?: string
492
+ nacosConfigGroup?: string
493
+ }
494
+
495
+ export type GetNacosConfigRes = {
496
+ appName?: string
497
+ configTags?: string
498
+ content?: string
499
+ createIp?: string
500
+ createTime?: string
501
+ createUser?: string
502
+ dataId?: string
503
+ desc?: string
504
+ effect?: string
505
+ group?: string
506
+ id?: string
507
+ md5?: string
508
+ modifyTime?: string
509
+ schema?: string
510
+ tenant?: string
511
+ type?: string
512
+ use?: string
513
+ }
514
+
515
+ export type NacosConfigHistoryBrief = {
516
+ appName?: string
517
+ content?: string
518
+ createTime?: string
519
+ dataId?: string
520
+ group?: string
521
+ id?: string
522
+ lastId?: number
523
+ lastModifyTime?: string
524
+ md5?: string
525
+ opType?: string
526
+ srcIp?: string
527
+ srcUser?: string
528
+ tenant?: string
529
+ }
530
+
531
+ export type ListNacosConfigHistoryReq = {
532
+ workspaceId?: string
533
+ clusterName?: string
534
+ namespaceName?: string
535
+ nacosName?: string
536
+ nacosNamespace?: string
537
+ nacosConfigDataId?: string
538
+ nacosConfigGroup?: string
539
+ page?: number
540
+ pageSize?: number
541
+ }
542
+
543
+ export type ListNacosConfigHistoryRes = {
544
+ items?: NacosConfigHistoryBrief[]
390
545
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
546
+ }
547
+
548
+ export type GetNacosConfigHistoryReq = {
549
+ workspaceId?: string
550
+ clusterName?: string
551
+ namespaceName?: string
552
+ nacosName?: string
553
+ nacosNamespace?: string
554
+ nacosConfigDataId?: string
555
+ nacosConfigGroup?: string
556
+ nacosConfigHistoryNid?: string
557
+ }
558
+
559
+ export type GetNacosConfigHistoryRes = {
560
+ appName?: string
561
+ content?: string
562
+ createTime?: string
563
+ dataId?: string
564
+ group?: string
565
+ id?: string
566
+ lastId?: number
567
+ lastModifyTime?: string
568
+ md5?: string
569
+ opType?: string
570
+ srcIp?: string
571
+ srcUser?: string
572
+ tenant?: string
573
+ }
574
+
575
+ export type ListNacosConfigListenerReq = {
576
+ workspaceId?: string
577
+ clusterName?: string
578
+ namespaceName?: string
579
+ nacosName?: string
580
+ nacosNamespace?: string
581
+ nacosConfigDataId?: string
582
+ nacosConfigGroup?: string
583
+ }
584
+
585
+ export type ListNacosConfigListenerRes = {
586
+ }
587
+
588
+ export type CreateNacosConfigReq = {
589
+ workspaceId?: string
590
+ clusterName?: string
591
+ namespaceName?: string
592
+ nacosName?: string
593
+ nacosNamespace?: string
594
+ nacosConfigDataId?: string
595
+ nacosConfigGroup?: string
596
+ nacosConfigContent?: string
597
+ nacosConfigDesc?: string
598
+ nacosConfigConfigTags?: string
599
+ nacosConfigType?: string
600
+ nacosConfigAppName?: string
601
+ }
602
+
603
+ export type CreateNacosConfigRes = {
604
+ success?: boolean
605
+ }
606
+
607
+ export type UpdateNacosConfigReq = {
608
+ workspaceId?: string
609
+ clusterName?: string
610
+ namespaceName?: string
611
+ nacosName?: string
612
+ nacosNamespace?: string
613
+ nacosConfigDataId?: string
614
+ nacosConfigGroup?: string
615
+ nacosConfigContent?: string
616
+ nacosConfigAppName?: string
617
+ nacosConfigDesc?: string
618
+ nacosConfigConfigTags?: string
619
+ nacosConfigType?: string
620
+ nacosConfigId?: string
621
+ nacosConfigMd5?: string
622
+ nacosConfigCreateTime?: string
623
+ nacosConfigModifyTime?: string
624
+ nacosConfigCreateUser?: string
625
+ nacosConfigCreateIp?: string
626
+ nacosConfigUse?: string
627
+ nacosConfigEffect?: string
628
+ nacosConfigSchema?: string
629
+ }
630
+
631
+ export type UpdateNacosConfigRes = {
632
+ success?: boolean
633
+ }
634
+
635
+ export type DeleteNacosConfigReq = {
636
+ workspaceId?: string
637
+ clusterName?: string
638
+ namespaceName?: string
639
+ nacosName?: string
640
+ nacosNamespace?: string
641
+ nacosConfigDataId?: string
642
+ nacosConfigGroup?: string
643
+ }
644
+
645
+ export type DeleteNacosConfigRes = {
646
+ success?: boolean
647
+ }
648
+
649
+ export type CheckNacosConfigReq = {
650
+ workspaceId?: string
651
+ clusterName?: string
652
+ namespaceName?: string
653
+ nacosName?: string
654
+ nacosNamespace?: string
655
+ nacosConfigDataId?: string
656
+ nacosConfigGroup?: string
657
+ }
658
+
659
+ export type CheckNacosConfigRes = {
660
+ appName?: string
661
+ configTags?: string
662
+ content?: string
663
+ createIp?: string
664
+ createTime?: string
665
+ createUser?: string
666
+ dataId?: string
667
+ desc?: string
668
+ effect?: string
669
+ group?: string
670
+ id?: string
671
+ md5?: string
672
+ modifyTime?: string
673
+ schema?: string
674
+ tenant?: string
675
+ type?: string
676
+ use?: string
391
677
  }
@@ -5,77 +5,71 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
- import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
- export type ListSentinelReq = {
8
+ export type FlowRule = {
9
+ id?: number
10
+ app?: string
11
+ ip?: string
12
+ port?: number
13
+ limitApp?: string
14
+ resource?: string
15
+ grade?: number
16
+ count?: number
17
+ strategy?: number
18
+ refResource?: string
19
+ controlBehavior?: number
20
+ warmUpPeriodSec?: number
21
+ maxQueueingTimeMs?: number
22
+ clusterMode?: boolean
23
+ }
24
+
25
+ export type ListFlowRuleReq = {
10
26
  workspace?: string
11
27
  cluster?: string
12
28
  namespace?: string
29
+ sentinelName?: string
13
30
  page?: number
14
31
  pageSize?: number
32
+ app?: string
15
33
  }
16
34
 
17
- export type ListSentinelRes = {
18
- items?: Sentinel[]
35
+ export type ListFlowRuleRes = {
36
+ items?: FlowRule[]
19
37
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
20
38
  }
21
39
 
22
- export type Sentinel = {
23
- workspace?: string
24
- cluster?: string
25
- namespace?: string
26
- name?: string
27
- config?: SentinelConfig
28
- }
29
-
30
- export type GetSentinelReq = {
31
- workspace?: string
32
- cluster?: string
33
- namespace?: string
34
- name?: string
35
- }
36
-
37
- export type GetSentinelRes = {
38
- sentinel?: Sentinel
39
- }
40
-
41
- export type UpdateSentinelReq = {
40
+ export type CreateFlowRuleReq = {
42
41
  workspace?: string
43
42
  cluster?: string
44
43
  namespace?: string
45
- name?: string
46
- nacosAddress?: string
47
- config?: SentinelConfig
48
- }
49
-
50
- export type UpdateSentinelRes = {
44
+ sentinelName?: string
45
+ flowRule?: FlowRule
51
46
  }
52
47
 
53
- export type SentinelConfig = {
54
- type?: string
55
- port?: number
56
- nodePort?: number
57
- resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
58
- image?: string
48
+ export type CreateFlowRuleRes = {
49
+ success?: boolean
59
50
  }
60
51
 
61
- export type CreateSentinelReq = {
52
+ export type UpdateFlowRuleReq = {
62
53
  workspace?: string
63
54
  cluster?: string
64
55
  namespace?: string
65
- name?: string
66
- nacosAddress?: string
67
- config?: SentinelConfig
56
+ sentinelName?: string
57
+ flowRuleId?: number
58
+ flowRule?: FlowRule
68
59
  }
69
60
 
70
- export type CreateSentinelRes = {
61
+ export type UpdateFlowRuleRes = {
62
+ success?: boolean
71
63
  }
72
64
 
73
- export type DeleteSentinelReq = {
65
+ export type DeleteFlowRuleReq = {
74
66
  workspace?: string
75
67
  cluster?: string
76
68
  namespace?: string
77
- name?: string
69
+ sentinelName?: string
70
+ flowRuleId?: number
78
71
  }
79
72
 
80
- export type DeleteSentinelRes = {
73
+ export type DeleteFlowRuleRes = {
74
+ success?: boolean
81
75
  }
@@ -151,7 +151,7 @@ export type LocalRateLimitPolicy = {
151
151
  request?: number
152
152
  responseHeadersToAdd?: SkoalaApiHostedV1alpha1Http.Header[]
153
153
  responseStatusCode?: number
154
- unit?: SkoalaApiHostedV1alpha1Http.TimeUnit
154
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
155
155
  }
156
156
 
157
157
  export type Tls = {
@@ -10,9 +10,11 @@ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.p
10
10
  import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
11
11
  import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
12
12
  import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
13
+ import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extension.pb"
13
14
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
14
15
  import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
15
16
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
17
+ import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
16
18
  import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
17
19
  import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
18
20
  import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
@@ -40,12 +42,21 @@ export class Skoala {
40
42
  static ListClusterNamespaceService(req: SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListServiceRes> {
41
43
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
42
44
  }
45
+ static ListMeshNamespaces(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes> {
46
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
47
+ }
48
+ static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
49
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
50
+ }
43
51
  static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
44
52
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
45
53
  }
46
54
  static GetWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes> {
47
55
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
48
56
  }
57
+ static ListClusterPersistentVolumeClaim(req: SkoalaApiGeneralV1alpha1Skoala.ListClaimReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClaimRes> {
58
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClaimReq, SkoalaApiGeneralV1alpha1Skoala.ListClaimRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/persistent_volume_claims?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
59
+ }
49
60
  }
50
61
  export class Registry {
51
62
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -101,6 +112,9 @@ export class Nacos {
101
112
  static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
102
113
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
103
114
  }
115
+ static Restart(req: SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
116
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RestartNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/restart?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
117
+ }
104
118
  static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
105
119
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace"])}`, {...initReq, method: "GET"})
106
120
  }
@@ -113,6 +127,15 @@ export class Nacos {
113
127
  static GetServiceAPI(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes> {
114
128
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
115
129
  }
130
+ static CreateServiceAPI(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosServiceAPIRes> {
131
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosServiceAPIReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
132
+ }
133
+ static UpdateServiceAPI(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceAPIRes> {
134
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceAPIReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/apis`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
135
+ }
136
+ static DeleteServiceAPI(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosServiceAPIRes> {
137
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosServiceAPIReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/apis`, {...initReq, method: "DELETE"})
138
+ }
116
139
  static ListServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes> {
117
140
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
118
141
  }
@@ -120,10 +143,10 @@ export class Nacos {
120
143
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
121
144
  }
122
145
  static CreateNamespace(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceRes> {
123
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces`, {...initReq, method: "POST"})
146
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
124
147
  }
125
148
  static UpdateNamespace(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceRes> {
126
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}`, {...initReq, method: "PUT"})
149
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
127
150
  }
128
151
  static DeleteNamespace(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosNamespaceRes> {
129
152
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosNamespaceReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosNamespaceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}`, {...initReq, method: "DELETE"})
@@ -137,10 +160,43 @@ export class Nacos {
137
160
  static ListConfig(req: SkoalaApiHostedV1alpha1Nacos.ListNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigRes> {
138
161
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.ListNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace"])}`, {...initReq, method: "GET"})
139
162
  }
163
+ static GetConfig(req: SkoalaApiHostedV1alpha1Nacos.GetNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosConfigRes> {
164
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.GetNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosConfigDataId"])}`, {...initReq, method: "GET"})
165
+ }
166
+ static ListConfigHistory(req: SkoalaApiHostedV1alpha1Nacos.ListNacosConfigHistoryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigHistoryRes> {
167
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigHistoryReq, SkoalaApiHostedV1alpha1Nacos.ListNacosConfigHistoryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}/histories?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosConfigDataId"])}`, {...initReq, method: "GET"})
168
+ }
169
+ static GetConfigHistory(req: SkoalaApiHostedV1alpha1Nacos.GetNacosConfigHistoryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosConfigHistoryRes> {
170
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosConfigHistoryReq, SkoalaApiHostedV1alpha1Nacos.GetNacosConfigHistoryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}/histories/${req["nacosConfigHistoryNid"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosConfigDataId", "nacosConfigHistoryNid"])}`, {...initReq, method: "GET"})
171
+ }
172
+ static ListConfigListener(req: SkoalaApiHostedV1alpha1Nacos.ListNacosConfigListenerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigListenerRes> {
173
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosConfigListenerReq, SkoalaApiHostedV1alpha1Nacos.ListNacosConfigListenerRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}/listeners?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosConfigDataId"])}`, {...initReq, method: "GET"})
174
+ }
175
+ static CreateConfig(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosConfigRes> {
176
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
177
+ }
178
+ static UpdateConfig(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigRes> {
179
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
180
+ }
181
+ static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigRes> {
182
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["nacosConfigDataId"]}`, {...initReq, method: "DELETE"})
183
+ }
184
+ static CheckConfig(req: SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes> {
185
+ 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["nacosConfigDataId"]}/check?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosConfigDataId"])}`, {...initReq, method: "GET"})
186
+ }
140
187
  }
141
188
  export class Sentinel {
142
- static ListFlowRule(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
143
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/sentinel/flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
189
+ static ListFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes> {
190
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/flowrules?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "sentinelName"])}`, {...initReq, method: "GET"})
191
+ }
192
+ static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleRes> {
193
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/flowrules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
194
+ }
195
+ static UpdateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleRes> {
196
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/flowrules/${req["flowRuleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
197
+ }
198
+ static DeleteFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleRes> {
199
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/flowrules/${req["flowRuleId"]}`, {...initReq, method: "DELETE"})
144
200
  }
145
201
  }
146
202
  export class Gateway {
@@ -189,6 +245,9 @@ export class Gateway {
189
245
  static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
190
246
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/pods/${req["podName"]}/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
191
247
  }
248
+ static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceRes> {
249
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
250
+ }
192
251
  static CreateService(req: SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceRes> {
193
252
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
194
253
  }
@@ -196,13 +255,13 @@ export class Gateway {
196
255
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
197
256
  }
198
257
  static GetService(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes> {
199
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "serviceName"])}`, {...initReq, method: "GET"})
258
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "sesameId"])}`, {...initReq, method: "GET"})
200
259
  }
201
260
  static UpdateService(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceRes> {
202
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
261
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
203
262
  }
204
263
  static DeleteService(req: SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceRes> {
205
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}`, {...initReq, method: "DELETE"})
264
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
206
265
  }
207
266
  static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
208
267
  return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -237,7 +296,34 @@ export class Gateway {
237
296
  static UpdateAPIPolicy(req: SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.AdvancedAPIRes> {
238
297
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, SkoalaApiHostedV1alpha1Api.AdvancedAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
239
298
  }
299
+ static UpdateAPIStatus(req: SkoalaApiHostedV1alpha1Api.UpdateAPIStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.UpdateAPIStatusRes> {
300
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIStatusReq, SkoalaApiHostedV1alpha1Api.UpdateAPIStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/status/${req["enabled"]}`, {...initReq, method: "PUT"})
301
+ }
240
302
  static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
241
303
  return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
242
304
  }
305
+ static CreateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSRes> {
306
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
307
+ }
308
+ static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes> {
309
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
310
+ }
311
+ static DeleteGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSRes> {
312
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "DELETE"})
313
+ }
314
+ static UpdateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSRes> {
315
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
316
+ }
317
+ static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzRes> {
318
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
319
+ }
320
+ static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes> {
321
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
322
+ }
323
+ static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzRes> {
324
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "DELETE"})
325
+ }
326
+ static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzRes> {
327
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
328
+ }
243
329
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.5.1-84",
3
+ "version": "0.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- export default {}