@daocloud-proto/skoala 0.28.1 → 0.29.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,151 @@
|
|
|
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 "../v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../v1alpha1/service.pb"
|
|
9
|
+
|
|
10
|
+
export enum ServiceAccessAddressAddressColor {
|
|
11
|
+
White = "White",
|
|
12
|
+
GREEN = "GREEN",
|
|
13
|
+
YELLOW = "YELLOW",
|
|
14
|
+
RED = "RED",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum ListServiceReqServiceType {
|
|
18
|
+
ALL = "ALL",
|
|
19
|
+
SESAME = "SESAME",
|
|
20
|
+
K8S = "K8S",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum RegistryServiceInfoRegistryType {
|
|
24
|
+
NACOS = "NACOS",
|
|
25
|
+
EUREKA = "EUREKA",
|
|
26
|
+
KUBERNETES = "KUBERNETES",
|
|
27
|
+
ZOOKEEPER = "ZOOKEEPER",
|
|
28
|
+
MESH = "MESH",
|
|
29
|
+
CONSUL = "CONSUL",
|
|
30
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ServiceAccessAddress = {
|
|
34
|
+
address?: string
|
|
35
|
+
color?: ServiceAccessAddressAddressColor
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ListClusterMeshReq = {
|
|
39
|
+
workspaceId?: string
|
|
40
|
+
clusterName?: string
|
|
41
|
+
page?: number
|
|
42
|
+
pageSize?: number
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type ListClusterMeshRes = {
|
|
46
|
+
items?: Mesh[]
|
|
47
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type Mesh = {
|
|
51
|
+
id?: string
|
|
52
|
+
name?: string
|
|
53
|
+
meshVersion?: string
|
|
54
|
+
includeCluster?: boolean
|
|
55
|
+
phase?: SkoalaApiGeneralV1alpha1Common.MeshPhase
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ListServiceReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
clusterName?: string
|
|
61
|
+
serviceClusterName?: string
|
|
62
|
+
serviceNamespaceName?: string[]
|
|
63
|
+
serviceType?: ListServiceReqServiceType
|
|
64
|
+
serviceName?: string
|
|
65
|
+
page?: number
|
|
66
|
+
pageSize?: number
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type ListServiceRes = {
|
|
70
|
+
items?: ListServiceInfo[]
|
|
71
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type ListServiceInfo = {
|
|
75
|
+
serviceName?: string
|
|
76
|
+
namespaceName?: string
|
|
77
|
+
labels?: {[key: string]: string}
|
|
78
|
+
createdAt?: string
|
|
79
|
+
sesameServiceName?: string
|
|
80
|
+
sesameNamespaceName?: string
|
|
81
|
+
sesameId?: string
|
|
82
|
+
servicePorts?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
83
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
84
|
+
accessAddress?: ServiceAccessAddress
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type ListMeshServiceReq = {
|
|
88
|
+
workspaceId?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
meshId?: string
|
|
91
|
+
namespaceName?: string[]
|
|
92
|
+
serviceName?: string
|
|
93
|
+
page?: number
|
|
94
|
+
pageSize?: number
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type ListMeshServiceRes = {
|
|
98
|
+
items?: MeshServiceInfo[]
|
|
99
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type MeshServiceInfo = {
|
|
103
|
+
serviceName?: string
|
|
104
|
+
namespaceName?: string
|
|
105
|
+
sesameId?: string
|
|
106
|
+
servicePorts?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
107
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
108
|
+
accessAddress?: ServiceAccessAddress
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type ListRegistryServiceReq = {
|
|
112
|
+
workspaceId?: string
|
|
113
|
+
clusterName?: string
|
|
114
|
+
registryId?: string
|
|
115
|
+
kubernetesClusterName?: string
|
|
116
|
+
kubernetesNamespaceName?: string
|
|
117
|
+
registryName?: string
|
|
118
|
+
nacosNamespaceName?: string
|
|
119
|
+
nacosK8SClusterName?: string
|
|
120
|
+
isHosted?: boolean
|
|
121
|
+
serviceName?: string
|
|
122
|
+
page?: number
|
|
123
|
+
pageSize?: number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type ListRegistryServiceRes = {
|
|
127
|
+
items?: RegistryServiceInfo[]
|
|
128
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type RegistryServiceInfo = {
|
|
132
|
+
serviceName?: string
|
|
133
|
+
sesameId?: string
|
|
134
|
+
meshId?: string
|
|
135
|
+
meshName?: string
|
|
136
|
+
meshNamespaceName?: string
|
|
137
|
+
meshType?: string
|
|
138
|
+
meshStatus?: string
|
|
139
|
+
meshDeployType?: string
|
|
140
|
+
nacosNamespaceId?: string
|
|
141
|
+
nacosGroupName?: string
|
|
142
|
+
kubernetesClusterName?: string
|
|
143
|
+
kubernetesNamespaceName?: string
|
|
144
|
+
kubernetesPorts?: string[]
|
|
145
|
+
kubernetesLabels?: string[]
|
|
146
|
+
servicePorts?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
147
|
+
registryType?: RegistryServiceInfoRegistryType
|
|
148
|
+
isHosted?: boolean
|
|
149
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
150
|
+
accessAddress?: ServiceAccessAddress
|
|
151
|
+
}
|
|
@@ -51,7 +51,6 @@ export type ListTxReq = {
|
|
|
51
51
|
page?: number
|
|
52
52
|
pageSize?: number
|
|
53
53
|
withBranch?: boolean
|
|
54
|
-
accessToken?: string
|
|
55
54
|
authorization?: string[]
|
|
56
55
|
xid?: string
|
|
57
56
|
applicationId?: string
|
|
@@ -103,7 +102,6 @@ export type ListLockReq = {
|
|
|
103
102
|
transactionId?: string
|
|
104
103
|
branchId?: string
|
|
105
104
|
authorization?: string[]
|
|
106
|
-
accessToken?: string
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
export type ListLockRes = {
|
|
@@ -0,0 +1,237 @@
|
|
|
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
|
+
import * as SkoalaApiHostedV1alpha1Http from "../v1alpha1/http.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum ServiceSource {
|
|
20
|
+
SOURCE_CLUSTER = "SOURCE_CLUSTER",
|
|
21
|
+
SOURCE_MESH = "SOURCE_MESH",
|
|
22
|
+
SOURCE_REGISTRY = "SOURCE_REGISTRY",
|
|
23
|
+
SOURCE_EXTERNAL = "SOURCE_EXTERNAL",
|
|
24
|
+
SOURCE_HOSTED_REGISTRY = "SOURCE_HOSTED_REGISTRY",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum SesameServiceType {
|
|
28
|
+
EXTERNAL_SERVICE = "EXTERNAL_SERVICE",
|
|
29
|
+
MANAGE_SERVICE = "MANAGE_SERVICE",
|
|
30
|
+
PLUGIN_SERVICE = "PLUGIN_SERVICE",
|
|
31
|
+
LANE_SERVICE = "LANE_SERVICE",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type CreateAccessServiceReq = {
|
|
35
|
+
workspaceId?: string
|
|
36
|
+
gatewayName?: string
|
|
37
|
+
clusterName?: string
|
|
38
|
+
namespaceName?: string
|
|
39
|
+
basicAccessServiceConfig?: BasicAccessServiceConfig
|
|
40
|
+
advancedAccessServiceConfig?: AdvancedAccessServiceConfig
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type AdvancedAccessServiceConfigHealthcheckPolicy = {
|
|
44
|
+
port?: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type AdvancedAccessServiceConfig = {
|
|
48
|
+
circuitBreakerPolicy?: CircuitBreakerPolicy
|
|
49
|
+
tlsPolicy?: TLSPolicy
|
|
50
|
+
healthcheckPolicy?: AdvancedAccessServiceConfigHealthcheckPolicy
|
|
51
|
+
outlierDetectionPolicy?: OutlierDetectionPolicy
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type HealthcheckPolicy = {
|
|
55
|
+
port?: number
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type OutlierDetectionPolicy = {
|
|
59
|
+
consecutiveServerErrors?: number
|
|
60
|
+
interval?: number
|
|
61
|
+
baseEjectionTime?: number
|
|
62
|
+
maxEjectionPercent?: number
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type TLSPolicySecret = {
|
|
66
|
+
secretName?: string
|
|
67
|
+
secretNamespaceName?: string
|
|
68
|
+
subjectAltName?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type TLSPolicy = {
|
|
72
|
+
enableTls?: boolean
|
|
73
|
+
port?: number
|
|
74
|
+
secret?: TLSPolicySecret
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type CircuitBreakerPolicy = {
|
|
78
|
+
maxConnections?: number
|
|
79
|
+
maxPendingRequests?: number
|
|
80
|
+
maxRequests?: number
|
|
81
|
+
maxRetries?: number
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
type BaseBasicAccessServiceConfig = {
|
|
86
|
+
address?: Address
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type BasicAccessServiceConfig = BaseBasicAccessServiceConfig
|
|
90
|
+
& OneOf<{ clusterService: ClusterService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService; hostedRegistryService: HostedRegistryService }>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
type BaseRegistryService = {
|
|
94
|
+
registrationId?: string
|
|
95
|
+
registrationName?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type RegistryService = BaseRegistryService
|
|
99
|
+
& OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; clusterService: ClusterService; meshService: MeshService; consulService: ConsulService }>
|
|
100
|
+
|
|
101
|
+
export type ConsulService = {
|
|
102
|
+
serviceName?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type MeshService = {
|
|
106
|
+
meshId?: string
|
|
107
|
+
meshName?: string
|
|
108
|
+
serviceName?: string
|
|
109
|
+
namespaceName?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ClusterService = {
|
|
113
|
+
clusterId?: string
|
|
114
|
+
clusterName?: string
|
|
115
|
+
namespaceName?: string
|
|
116
|
+
serviceName?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type EurekaService = {
|
|
120
|
+
serviceName?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type NacosService = {
|
|
124
|
+
serviceName?: string
|
|
125
|
+
namespaceId?: string
|
|
126
|
+
groupName?: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type ZookeeperService = {
|
|
130
|
+
serviceName?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type ExternalService = {
|
|
134
|
+
serviceName?: string
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
type BaseHostedRegistryService = {
|
|
139
|
+
registrationName?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type HostedRegistryService = BaseHostedRegistryService
|
|
143
|
+
& OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; clusterService: ClusterService; meshService: MeshService }>
|
|
144
|
+
|
|
145
|
+
export type Address = {
|
|
146
|
+
hostname?: string
|
|
147
|
+
port?: number
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type UpdateAccessServiceReq = {
|
|
151
|
+
workspaceId?: string
|
|
152
|
+
gatewayName?: string
|
|
153
|
+
clusterName?: string
|
|
154
|
+
namespaceName?: string
|
|
155
|
+
sesameId?: string
|
|
156
|
+
basicAccessServiceConfig?: BasicAccessServiceConfig
|
|
157
|
+
updateApi?: boolean
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type GetGatewayServiceReq = {
|
|
161
|
+
workspaceId?: string
|
|
162
|
+
clusterName?: string
|
|
163
|
+
gatewayName?: string
|
|
164
|
+
namespaceName?: string
|
|
165
|
+
sesameId?: string
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type GetGatewayServiceRes = {
|
|
169
|
+
externalServiceConf?: ExternalServiceConf
|
|
170
|
+
manageServiceConf?: ServiceInfo
|
|
171
|
+
serviceType?: SesameServiceType
|
|
172
|
+
api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
173
|
+
sesameId?: string
|
|
174
|
+
createdAt?: string
|
|
175
|
+
advancedAccessServiceConfig?: AdvancedAccessServiceConfig
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
type BaseExternalServiceConf = {
|
|
180
|
+
address?: Address
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type ExternalServiceConf = BaseExternalServiceConf
|
|
184
|
+
& OneOf<{ clusterService: ClusterService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService; hostedRegistryService: HostedRegistryService }>
|
|
185
|
+
|
|
186
|
+
export type ServiceInfo = {
|
|
187
|
+
serviceName?: string
|
|
188
|
+
address?: Address[]
|
|
189
|
+
apiCount?: number
|
|
190
|
+
sourceInfo?: ServiceSourceInfo
|
|
191
|
+
createdAt?: string
|
|
192
|
+
serviceType?: SesameServiceType
|
|
193
|
+
sesameId?: string
|
|
194
|
+
servicePort?: SkoalaApiGeneralV1alpha1Common.KubernetesServicePort[]
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type ServiceSourceInfo = {
|
|
198
|
+
serviceSource?: ServiceSource
|
|
199
|
+
kubernetesClusterName?: string
|
|
200
|
+
kubernetesNamespaceName?: string
|
|
201
|
+
registrationId?: string
|
|
202
|
+
registrationName?: string
|
|
203
|
+
registrationType?: string
|
|
204
|
+
nacosNamespaceId?: string
|
|
205
|
+
nacosGroupName?: string
|
|
206
|
+
meshId?: string
|
|
207
|
+
meshName?: string
|
|
208
|
+
meshNamespaceName?: string
|
|
209
|
+
serviceName?: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type ListGatewayServiceReq = {
|
|
213
|
+
workspaceId?: string
|
|
214
|
+
clusterName?: string
|
|
215
|
+
gatewayName?: string
|
|
216
|
+
namespaceName?: string
|
|
217
|
+
serviceNamespaceName?: string
|
|
218
|
+
serviceName?: string
|
|
219
|
+
serviceType?: SesameServiceType
|
|
220
|
+
page?: number
|
|
221
|
+
pageSize?: number
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type ListGatewayServiceRes = {
|
|
225
|
+
items?: ServiceInfo[]
|
|
226
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type UpdateGatewayServicePolicyReq = {
|
|
230
|
+
workspaceId?: string
|
|
231
|
+
gatewayName?: string
|
|
232
|
+
clusterName?: string
|
|
233
|
+
namespaceName?: string
|
|
234
|
+
sesameId?: string
|
|
235
|
+
updateApi?: boolean
|
|
236
|
+
advancedAccessServiceConfig?: AdvancedAccessServiceConfig
|
|
237
|
+
}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha2Skoala from "../../general/v1alpha2/skoala.pb"
|
|
9
10
|
import * as SkoalaApiHostedV1alpha2Gateway_api from "../../hosted/v1alpha2/gateway_api.pb"
|
|
11
|
+
import * as SkoalaApiHostedV1alpha2Gateway_service from "../../hosted/v1alpha2/gateway_service.pb"
|
|
10
12
|
export class GatewayAPI {
|
|
11
13
|
static CreateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
12
14
|
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -23,4 +25,32 @@ export class GatewayAPI {
|
|
|
23
25
|
static GetGatewayAPIDoc(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes> {
|
|
24
26
|
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/doc?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
25
27
|
}
|
|
28
|
+
}
|
|
29
|
+
export class GatewayService {
|
|
30
|
+
static CreateService(req: SkoalaApiHostedV1alpha2Gateway_service.CreateAccessServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
31
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_service.CreateAccessServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
32
|
+
}
|
|
33
|
+
static GetService(req: SkoalaApiHostedV1alpha2Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_service.GetGatewayServiceRes> {
|
|
34
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_service.GetGatewayServiceReq, SkoalaApiHostedV1alpha2Gateway_service.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha2/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"})
|
|
35
|
+
}
|
|
36
|
+
static ListService(req: SkoalaApiHostedV1alpha2Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_service.ListGatewayServiceRes> {
|
|
37
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_service.ListGatewayServiceReq, SkoalaApiHostedV1alpha2Gateway_service.ListGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
38
|
+
}
|
|
39
|
+
static UpdateService(req: SkoalaApiHostedV1alpha2Gateway_service.UpdateAccessServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
40
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_service.UpdateAccessServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
41
|
+
}
|
|
42
|
+
static UpdateServicePolicy(req: SkoalaApiHostedV1alpha2Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
43
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_service.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/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)})
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class Skoala {
|
|
47
|
+
static ListClusterNamespaceService(req: SkoalaApiGeneralV1alpha2Skoala.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha2Skoala.ListServiceRes> {
|
|
48
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha2Skoala.ListServiceReq, SkoalaApiGeneralV1alpha2Skoala.ListServiceRes>(`/apis/skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
49
|
+
}
|
|
50
|
+
static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha2Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha2Skoala.ListMeshServiceRes> {
|
|
51
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha2Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha2Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "meshId"])}`, {...initReq, method: "GET"})
|
|
52
|
+
}
|
|
53
|
+
static ListRegistryServices(req: SkoalaApiGeneralV1alpha2Skoala.ListRegistryServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha2Skoala.ListRegistryServiceRes> {
|
|
54
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha2Skoala.ListRegistryServiceReq, SkoalaApiGeneralV1alpha2Skoala.ListRegistryServiceRes>(`/apis/skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/registry/${req["registryId"]}/services/gateway?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "registryId"])}`, {...initReq, method: "GET"})
|
|
55
|
+
}
|
|
26
56
|
}
|