@daocloud-proto/skoala 0.10.1 → 0.11.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.
@@ -111,7 +111,7 @@ export type Image = {
111
111
  pullPolicy?: string
112
112
  }
113
113
 
114
- export type Chart = {
115
- version?: string
114
+ export type Component = {
115
+ name?: string
116
116
  images?: {[key: string]: Image}
117
117
  }
@@ -19,6 +19,7 @@ export enum ListServiceReqServiceType {
19
19
  }
20
20
 
21
21
  export type ListWorkspaceReq = {
22
+ name?: string
22
23
  page?: number
23
24
  pageSize?: number
24
25
  }
@@ -84,6 +85,7 @@ export type ListMeshServiceRes = {
84
85
  export type MeshServiceInfo = {
85
86
  serviceName?: string
86
87
  namespaceName?: string
88
+ sesameId?: string
87
89
  }
88
90
 
89
91
  export type ListServiceReq = {
@@ -108,6 +110,7 @@ export type ListServiceInfo = {
108
110
  createdAt?: string
109
111
  sesameServiceName?: string
110
112
  sesameNamespaceName?: string
113
+ sesameId?: string
111
114
  }
112
115
 
113
116
  export type ListNamespaceRes = {
@@ -17,5 +17,5 @@ export type GetVersionRes = {
17
17
  }
18
18
 
19
19
  export type GetHiveChartsRes = {
20
- nacos?: SkoalaApiGeneralV1alpha1Common.Chart
20
+ nacos?: SkoalaApiGeneralV1alpha1Common.Component
21
21
  }
@@ -200,6 +200,9 @@ type BaseGetAPIRes = {
200
200
  fqdn?: string
201
201
  matchRule?: MatchRule
202
202
  advancedPolicy?: AdvancedAPIConfig
203
+ apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
204
+ status?: string
205
+ statusDescription?: string
203
206
  }
204
207
 
205
208
  export type GetAPIRes = BaseGetAPIRes
@@ -141,10 +141,17 @@ export type GetGatewayReq = {
141
141
  gatewayName?: string
142
142
  }
143
143
 
144
- export type GetGatewayChartsRes = {
145
- sesame?: SkoalaApiGeneralV1alpha1Common.Chart
146
- rls?: SkoalaApiGeneralV1alpha1Common.Chart
147
- authz?: SkoalaApiGeneralV1alpha1Common.Chart
144
+ export type GetGatewayComponentsReq = {
145
+ workspaceId?: string
146
+ clusterName?: string
147
+ namespaceName?: string
148
+ gatewayName?: string
149
+ }
150
+
151
+ export type GetGatewayComponentsRes = {
152
+ gatway?: SkoalaApiGeneralV1alpha1Common.Component
153
+ rls?: SkoalaApiGeneralV1alpha1Common.Component
154
+ authz?: SkoalaApiGeneralV1alpha1Common.Component
148
155
  }
149
156
 
150
157
  export type GetGatewayRes = {
@@ -235,7 +242,7 @@ export type NormalConfig = {
235
242
  }
236
243
 
237
244
  export type GatewayConfig = {
238
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
245
+ component?: SkoalaApiGeneralV1alpha1Common.Component
239
246
  normal?: NormalConfig
240
247
  advanced?: AdvancedConfig
241
248
  }
@@ -275,18 +282,6 @@ export type RollingUpdate = {
275
282
  maxUnavailable?: string
276
283
  }
277
284
 
278
- export type GetImagesRes = {
279
- contour?: string
280
- envoy?: string
281
- }
282
-
283
- export type GetImagesReq = {
284
- workspaceId?: string
285
- clusterName?: string
286
- namespaceName?: string
287
- gatewayName?: string
288
- }
289
-
290
285
  export type GetGatewayStatusReq = {
291
286
  workspaceId?: string
292
287
  clusterName?: string
@@ -6,17 +6,27 @@
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
- export type GatewayRLSRule = {
9
+ export type GatewayRLSRuleRateLimit = {
10
10
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
11
11
  requestsPerUnit?: number
12
12
  }
13
13
 
14
+ export type GatewayRLSRule = {
15
+ name?: string
16
+ key?: string
17
+ value?: string
18
+ unlimited?: boolean
19
+ rateLimit?: GatewayRLSRuleRateLimit
20
+ aliasName?: string
21
+ }
22
+
14
23
  export type SwitchGatewayRLSReq = {
15
24
  workspaceId?: string
16
25
  clusterName?: string
17
26
  namespaceName?: string
18
27
  gatewayName?: string
19
28
  switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
29
+ config?: GatewayRLSConfig
20
30
  }
21
31
 
22
32
  export type GetGatewayRLSReq = {
@@ -35,7 +45,7 @@ export type SetGatewayRLSConfigReq = {
35
45
  clusterName?: string
36
46
  namespaceName?: string
37
47
  gatewayName?: string
38
- config?: GatewayPluginConfig
48
+ config?: GatewayRLSConfig
39
49
  }
40
50
 
41
51
  export type GetGatewayRLSConfigReq = {
@@ -46,22 +56,55 @@ export type GetGatewayRLSConfigReq = {
46
56
  }
47
57
 
48
58
  export type GetGatewayRLSConfigRes = {
49
- config?: GatewayPluginConfig
59
+ config?: GatewayRLSConfig
60
+ }
61
+
62
+ export type CreateGatewayRLSRuleReq = {
63
+ workspaceId?: string
64
+ clusterName?: string
65
+ namespaceName?: string
66
+ gatewayName?: string
67
+ rule?: GatewayRLSRule
50
68
  }
51
69
 
52
- export type SetGatewayRLSRuleReq = {
70
+ export type UpdateGatewayRLSRuleReq = {
53
71
  workspaceId?: string
54
72
  clusterName?: string
55
73
  namespaceName?: string
56
74
  gatewayName?: string
75
+ ruleName?: string
57
76
  rule?: GatewayRLSRule
58
77
  }
59
78
 
79
+ export type ListGatewayRLSRuleReq = {
80
+ workspaceId?: string
81
+ clusterName?: string
82
+ namespaceName?: string
83
+ gatewayName?: string
84
+ ruleName?: string
85
+ page?: number
86
+ pageSize?: number
87
+ }
88
+
89
+ export type DeleteGatewayRLSRuleReq = {
90
+ workspaceId?: string
91
+ clusterName?: string
92
+ namespaceName?: string
93
+ gatewayName?: string
94
+ ruleName?: string
95
+ }
96
+
97
+ export type ListGatewayRLSRuleRes = {
98
+ items?: GatewayRLSRule[]
99
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
100
+ }
101
+
60
102
  export type GetGatewayRLSRuleReq = {
61
103
  workspaceId?: string
62
104
  clusterName?: string
63
105
  namespaceName?: string
64
106
  gatewayName?: string
107
+ ruleName?: string
65
108
  }
66
109
 
67
110
  export type GetGatewayRLSRuleRes = {
@@ -69,9 +112,16 @@ export type GetGatewayRLSRuleRes = {
69
112
  }
70
113
 
71
114
  export type GatewayPluginConfig = {
72
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
115
+ component?: SkoalaApiGeneralV1alpha1Common.Component
116
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
117
+ replicas?: number
118
+ }
119
+
120
+ export type GatewayRLSConfig = {
121
+ component?: SkoalaApiGeneralV1alpha1Common.Component
73
122
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
74
123
  replicas?: number
124
+ redisUrl?: string
75
125
  }
76
126
 
77
127
  export type SwitchGatewayAuthzReq = {
@@ -200,7 +200,7 @@ type BaseRegistryService = {
200
200
  }
201
201
 
202
202
  export type RegistryService = BaseRegistryService
203
- & OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; kubernetesService: KubernetesService }>
203
+ & OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; kubernetesService: KubernetesService; meshService: MeshService }>
204
204
 
205
205
  export type EurekaService = {
206
206
  address?: Address
@@ -37,6 +37,66 @@ export enum RouteType {
37
37
  UNKNOW = "UNKNOW",
38
38
  }
39
39
 
40
+ export enum StatusCode {
41
+ Empty = "Empty",
42
+ Continue = "Continue",
43
+ OK = "OK",
44
+ Created = "Created",
45
+ Accepted = "Accepted",
46
+ NonAuthoritativeInformation = "NonAuthoritativeInformation",
47
+ NoContent = "NoContent",
48
+ ResetContent = "ResetContent",
49
+ PartialContent = "PartialContent",
50
+ MultiStatus = "MultiStatus",
51
+ AlreadyReported = "AlreadyReported",
52
+ IMUsed = "IMUsed",
53
+ MultipleChoices = "MultipleChoices",
54
+ MovedPermanently = "MovedPermanently",
55
+ Found = "Found",
56
+ SeeOther = "SeeOther",
57
+ NotModified = "NotModified",
58
+ UseProxy = "UseProxy",
59
+ TemporaryRedirect = "TemporaryRedirect",
60
+ PermanentRedirect = "PermanentRedirect",
61
+ BadRequest = "BadRequest",
62
+ Unauthorized = "Unauthorized",
63
+ PaymentRequired = "PaymentRequired",
64
+ Forbidden = "Forbidden",
65
+ NotFound = "NotFound",
66
+ MethodNotAllowed = "MethodNotAllowed",
67
+ NotAcceptable = "NotAcceptable",
68
+ ProxyAuthenticationRequired = "ProxyAuthenticationRequired",
69
+ RequestTimeout = "RequestTimeout",
70
+ Conflict = "Conflict",
71
+ Gone = "Gone",
72
+ LengthRequired = "LengthRequired",
73
+ PreconditionFailed = "PreconditionFailed",
74
+ PayloadTooLarge = "PayloadTooLarge",
75
+ URITooLong = "URITooLong",
76
+ UnsupportedMediaType = "UnsupportedMediaType",
77
+ RangeNotSatisfiable = "RangeNotSatisfiable",
78
+ ExpectationFailed = "ExpectationFailed",
79
+ MisdirectedRequest = "MisdirectedRequest",
80
+ UnprocessableEntity = "UnprocessableEntity",
81
+ Locked = "Locked",
82
+ FailedDependency = "FailedDependency",
83
+ UpgradeRequired = "UpgradeRequired",
84
+ PreconditionRequired = "PreconditionRequired",
85
+ TooManyRequests = "TooManyRequests",
86
+ RequestHeaderFieldsTooLarge = "RequestHeaderFieldsTooLarge",
87
+ InternalServerError = "InternalServerError",
88
+ NotImplemented = "NotImplemented",
89
+ BadGateway = "BadGateway",
90
+ ServiceUnavailable = "ServiceUnavailable",
91
+ GatewayTimeout = "GatewayTimeout",
92
+ HTTPVersionNotSupported = "HTTPVersionNotSupported",
93
+ VariantAlsoNegotiates = "VariantAlsoNegotiates",
94
+ InsufficientStorage = "InsufficientStorage",
95
+ LoopDetected = "LoopDetected",
96
+ NotExtended = "NotExtended",
97
+ NetworkAuthenticationRequired = "NetworkAuthenticationRequired",
98
+ }
99
+
40
100
  export type Header = {
41
101
  name?: string
42
102
  value?: string
@@ -85,4 +145,8 @@ export type APIInfo = {
85
145
  status?: string
86
146
  statusDescription?: string
87
147
  updatedAt?: string
148
+ }
149
+
150
+ export type HttpStatus = {
151
+ code?: StatusCode
88
152
  }
@@ -100,6 +100,9 @@ export type Nacos = {
100
100
  version?: string
101
101
  nodeCount?: number
102
102
  healthNodeCount?: number
103
+ serviceCount?: number
104
+ configCount?: number
105
+ insightEnabled?: boolean
103
106
  database?: NacosDatabase
104
107
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
105
108
  condition?: NacosCondition[]
@@ -143,6 +146,7 @@ export type UpdateNacosReq = {
143
146
  clusterName?: string
144
147
  nacosName?: string
145
148
  namespaceName?: string
149
+ insightEnabled?: boolean
146
150
  config?: NacosConfig
147
151
  }
148
152
 
@@ -152,6 +156,7 @@ export type CreateNacosReq = {
152
156
  nacosName?: string
153
157
  namespaceName?: string
154
158
  createNamespace?: boolean
159
+ insightEnabled?: boolean
155
160
  config?: NacosConfig
156
161
  }
157
162
 
@@ -171,7 +176,7 @@ export type RestartNacosReq = {
171
176
 
172
177
  export type NacosConfig = {
173
178
  type?: NacosConfigType
174
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
179
+ component?: SkoalaApiGeneralV1alpha1Common.Component
175
180
  replicas?: number
176
181
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
177
182
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -8,6 +8,15 @@ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.p
8
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
9
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
10
10
 
11
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
12
+ type OneOf<T> =
13
+ | { [k in keyof T]?: undefined }
14
+ | (
15
+ keyof T extends infer K ?
16
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
17
+ : never)
18
+ : never);
19
+
11
20
  export enum GetMeshPluginResMeshMode {
12
21
  MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
13
22
  HOSTED = "HOSTED",
@@ -52,11 +61,13 @@ export type GetPluginReq = {
52
61
  name?: string
53
62
  }
54
63
 
55
- export type GetPluginRes = {
56
- sentinel?: GetSentinelPluginRes
57
- mesh?: GetMeshPluginRes
64
+
65
+ type BaseGetPluginRes = {
58
66
  }
59
67
 
68
+ export type GetPluginRes = BaseGetPluginRes
69
+ & OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes }>
70
+
60
71
  export type GetSentinelPluginReq = {
61
72
  }
62
73
 
@@ -81,18 +92,20 @@ export type GetMeshPluginRes = {
81
92
  capacity?: string
82
93
  }
83
94
 
84
- export type UpdatePluginReq = {
95
+
96
+ type BaseUpdatePluginReq = {
85
97
  workspaceId?: string
86
98
  clusterName?: string
87
99
  namespace?: string
88
100
  nacosName?: string
89
- sentinel?: UpdateSentinelPluginReq
90
- mesh?: UpdateMeshPluginReq
91
101
  }
92
102
 
103
+ export type UpdatePluginReq = BaseUpdatePluginReq
104
+ & OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq }>
105
+
93
106
  export type UpdateSentinelPluginReq = {
94
107
  enabled?: boolean
95
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
108
+ chart?: SkoalaApiGeneralV1alpha1Common.Component
96
109
  replicas?: number
97
110
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
98
111
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -102,6 +115,7 @@ export type UpdateSentinelPluginReq = {
102
115
  export type UpdateMeshPluginReq = {
103
116
  enabled?: boolean
104
117
  name?: string
118
+ address?: string
105
119
  }
106
120
 
107
121
  export type GetGovernReq = {
@@ -81,6 +81,7 @@ export type VirtualhostInfo = {
81
81
  protocol?: SkoalaApiHostedV1alpha1Http.Protocol
82
82
  secretName?: string
83
83
  secretNamespaceName?: string
84
+ healthCheckUrl?: string
84
85
  namespaceName?: string
85
86
  apiCount?: number
86
87
  updatedAt?: string
@@ -105,6 +106,7 @@ export type GetVirtualhostRes = {
105
106
  apiCount?: number
106
107
  createAt?: string
107
108
  updatedAt?: string
109
+ healthCheckUrl?: string
108
110
  rateLimitPolicy?: RateLimitPolicy
109
111
  corsPolicy?: CorsPolicy
110
112
  tlsPolicy?: VirtualhostTLSPolicy
@@ -142,7 +144,7 @@ export type RateLimitPolicy = {
142
144
  }
143
145
 
144
146
  export type GlobalRateLimitPolicy = {
145
- descriptors?: RateLimitDescriptor[]
147
+ rlsRuleName?: string
146
148
  }
147
149
 
148
150
  export type RateLimitDescriptor = {
@@ -179,7 +181,7 @@ export type LocalRateLimitPolicy = {
179
181
  burst?: number
180
182
  request?: number
181
183
  responseHeadersToAdd?: SkoalaApiHostedV1alpha1Http.Header[]
182
- responseStatusCode?: number
184
+ responseStatusCode?: SkoalaApiHostedV1alpha1Http.HttpStatus
183
185
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
184
186
  }
185
187
 
@@ -100,6 +100,7 @@ export type PingRegistryReq = {
100
100
  }
101
101
 
102
102
  export type PingRegistryRes = {
103
+ status?: {[key: string]: boolean}
103
104
  namespaces?: Namespace[]
104
105
  }
105
106
 
@@ -50,7 +50,7 @@ export type GetServiceInsightReq = {
50
50
  namespaceId?: string
51
51
  groupName?: string
52
52
  serviceName?: string
53
- regType?: string
53
+ registryType?: SkoalaApiIntegratedV1alpha1Registry.RegistryType
54
54
  detail?: {[key: string]: string}
55
55
  start?: string
56
56
  end?: string
@@ -386,8 +386,8 @@ export class Gateway {
386
386
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
387
387
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
388
388
  }
389
- static GetImages(req: SkoalaApiHostedV1alpha1Gateway.GetImagesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
390
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetImagesReq, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/images?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
389
+ static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
390
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
391
391
  }
392
392
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
393
393
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
@@ -395,8 +395,8 @@ export class Gateway {
395
395
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
396
396
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
397
397
  }
398
- static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes> {
399
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes>(`/apis/sesame.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
398
+ static GetProvisionedComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
399
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
400
400
  }
401
401
  static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
402
402
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
@@ -425,27 +425,65 @@ export class Gateway {
425
425
  static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
426
426
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
427
427
  }
428
- static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
429
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, GoogleProtobufEmpty.Empty>(`/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)})
428
+ static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
429
+ 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"})
430
430
  }
431
- static ListService(req: SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceRes> {
432
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
431
+ static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes> {
432
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
433
433
  }
434
- static GetService(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes> {
435
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
434
+ static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
435
+ return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
436
436
  }
437
- static UpdateService(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
438
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/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)})
437
+ static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
438
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
439
439
  }
440
- static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
441
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
440
+ static ListSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes> {
441
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
442
442
  }
443
- static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes> {
444
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/servicesecrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
443
+ static SwitchGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
444
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
445
445
  }
446
- static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
447
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
446
+ static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes> {
447
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
448
+ }
449
+ static SetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
450
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
451
+ }
452
+ static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
453
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
454
+ }
455
+ static CreateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
456
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
457
+ }
458
+ static ListGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes> {
459
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
460
+ }
461
+ static UpdateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
462
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
463
+ }
464
+ static DeleteGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
465
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "DELETE"})
466
+ }
467
+ static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
468
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "ruleName"])}`, {...initReq, method: "GET"})
469
+ }
470
+ static SwitchGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
471
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
472
+ }
473
+ static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
474
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
475
+ }
476
+ static SetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
477
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
478
+ }
479
+ static GetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes> {
480
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
481
+ }
482
+ static GetGatewayMetricDashboard(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes> {
483
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/metrics/dashboard/${req["dashboardType"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "dashboardType"])}`, {...initReq, method: "GET"})
448
484
  }
485
+ }
486
+ export class Virtualhost {
449
487
  static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
450
488
  return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, GoogleProtobufEmpty.Empty>(`/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)})
451
489
  }
@@ -461,6 +499,8 @@ export class Gateway {
461
499
  static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
462
500
  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)})
463
501
  }
502
+ }
503
+ export class GatewayAPI {
464
504
  static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
465
505
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
466
506
  }
@@ -485,52 +525,27 @@ export class Gateway {
485
525
  static ListAPIGroup(req: SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ListAPIGroupRes> {
486
526
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, SkoalaApiHostedV1alpha1Api.ListAPIGroupRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/groups?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
487
527
  }
488
- static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
489
- 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"})
490
- }
491
- static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes> {
492
- return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
493
- }
494
- static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
495
- return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
496
- }
497
- static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
498
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
499
- }
500
- static ListSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes> {
501
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
502
- }
503
- static SwitchGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
504
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
505
- }
506
- static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes> {
507
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
508
- }
509
- static SetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
510
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
511
- }
512
- static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
513
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
514
- }
515
- static SetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
516
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
528
+ }
529
+ export class GatewayService {
530
+ static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
531
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, GoogleProtobufEmpty.Empty>(`/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)})
517
532
  }
518
- static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
519
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
533
+ static ListService(req: SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceRes> {
534
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
520
535
  }
521
- static SwitchGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
522
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
536
+ static GetService(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes> {
537
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
523
538
  }
524
- static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
525
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
539
+ static UpdateService(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
540
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/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)})
526
541
  }
527
- static SetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
528
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
542
+ static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
543
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
529
544
  }
530
- static GetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes> {
531
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
545
+ static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes> {
546
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/servicesecrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
532
547
  }
533
- static GetGatewayMetricDashboard(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes> {
534
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/metrics/dashboard/${req["dashboardType"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "dashboardType"])}`, {...initReq, method: "GET"})
548
+ static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
549
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
535
550
  }
536
551
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {