@daocloud-proto/skoala 0.2.0-8 → 0.2.0-81

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,56 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum Status {
8
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
+ RUNNING = "RUNNING",
10
+ STARTING = "STARTING",
11
+ DESTROYING = "DESTROYING",
12
+ EXCEPTION = "EXCEPTION",
13
+ }
14
+
15
+ export type Cluster = {
16
+ id?: string
17
+ name?: string
18
+ }
19
+
20
+ export type Workspace = {
21
+ id?: string
22
+ name?: string
23
+ parentWorkspaceId?: string
24
+ }
25
+
26
+ export type ListWorkspaceRes = {
27
+ workspaces?: Workspace[]
28
+ total?: number
29
+ }
30
+
31
+ export type ListClusterReq = {
32
+ workspaceId?: string
33
+ page?: number
34
+ size?: number
35
+ }
36
+
37
+ export type ListClusterRes = {
38
+ clusters?: Cluster[]
39
+ page?: number
40
+ size?: number
41
+ total?: number
42
+ }
43
+
44
+ export type ListNamespaceReq = {
45
+ workspaceId?: string
46
+ clusterName?: string
47
+ page?: number
48
+ size?: number
49
+ }
50
+
51
+ export type ListNamespaceRes = {
52
+ namespaceNames?: string[]
53
+ page?: number
54
+ size?: number
55
+ total?: number
56
+ }
@@ -0,0 +1,179 @@
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 SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+
9
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
10
+ type OneOf<T> =
11
+ | { [k in keyof T]?: undefined }
12
+ | (
13
+ keyof T extends infer K ?
14
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
15
+ : never)
16
+ : never);
17
+
18
+ export enum LogLogLevel {
19
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
20
+ TRACE = "TRACE",
21
+ DEBUG = "DEBUG",
22
+ INFO = "INFO",
23
+ WARNING = "WARNING",
24
+ ERROR = "ERROR",
25
+ CRITICAL = "CRITICAL",
26
+ OFF = "OFF",
27
+ }
28
+
29
+ export type Node = {
30
+ total?: number
31
+ online?: number
32
+ }
33
+
34
+ export type Gateway = {
35
+ workspaceId?: number
36
+ clusterName?: string
37
+ namespaceName?: string
38
+ name?: string
39
+ createdAt?: string
40
+ updatedAt?: string
41
+ status?: SkoalaApiGeneralV1alpha1Skoala.Status
42
+ endpoints?: string[]
43
+ master?: Node
44
+ worker?: Node
45
+ }
46
+
47
+ export type ListAllGatewayReq = {
48
+ workspaceId?: number
49
+ page?: number
50
+ size?: number
51
+ filter?: string
52
+ }
53
+
54
+ export type ListClusterGatewayReq = {
55
+ workspaceId?: number
56
+ clusterName?: string
57
+ page?: number
58
+ size?: number
59
+ }
60
+
61
+ export type ListNamespaceGatewayReq = {
62
+ workspaceId?: number
63
+ clusterName?: string
64
+ namespaceName?: string
65
+ page?: number
66
+ size?: number
67
+ }
68
+
69
+ export type ListGatewayRes = {
70
+ gateways?: Gateway[]
71
+ page?: number
72
+ size?: number
73
+ total?: number
74
+ }
75
+
76
+ export type GetGatewayReq = {
77
+ workspaceId?: number
78
+ clusterName?: string
79
+ namespaceName?: string
80
+ gatewayName?: string
81
+ }
82
+
83
+ export type GetGatewayRes = {
84
+ gateways?: Gateway
85
+ }
86
+
87
+ export type CreateGatewayReq = {
88
+ workspaceId?: number
89
+ name?: string
90
+ clusterName?: string
91
+ namespaceName?: string
92
+ config?: GatewayConfig
93
+ }
94
+
95
+ export type CreateGatewayRes = {
96
+ gateway?: Gateway
97
+ }
98
+
99
+ export type UpdateGatewayReq = {
100
+ workspaceId?: number
101
+ gatewayName?: string
102
+ clusterName?: string
103
+ namespaceName?: string
104
+ before?: GatewayConfig
105
+ after?: GatewayConfig
106
+ }
107
+
108
+ export type UpdateGatewayRes = {
109
+ gateway?: Gateway
110
+ }
111
+
112
+ export type DeleteGatewayReq = {
113
+ workspaceId?: number
114
+ clusterName?: string
115
+ namespaceName?: string
116
+ gatewayName?: string
117
+ }
118
+
119
+ export type DeleteGatewayRes = {
120
+ gateway?: Gateway
121
+ }
122
+
123
+ export type GatewayConfig = {
124
+ normal?: NormalConfig
125
+ advanced?: AdvancedConfig
126
+ }
127
+
128
+
129
+ type BaseNormalConfig = {
130
+ masterCount?: number
131
+ workerCount?: number
132
+ }
133
+
134
+ export type NormalConfig = BaseNormalConfig
135
+ & OneOf<{ clusterIp: ClusterIP; nodePort: NodePort; loadBalancer: LoadBalancer; externalName: ExternalName }>
136
+
137
+ export type NodePort = {
138
+ }
139
+
140
+ export type ClusterIP = {
141
+ }
142
+
143
+ export type LoadBalancer = {
144
+ }
145
+
146
+ export type ExternalName = {
147
+ }
148
+
149
+
150
+ type BaseAdvancedConfig = {
151
+ log?: Log
152
+ resource?: Resource
153
+ enableGlobalRateLimit?: boolean
154
+ }
155
+
156
+ export type AdvancedConfig = BaseAdvancedConfig
157
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
158
+
159
+ export type Log = {
160
+ workerLogLevel?: LogLogLevel
161
+ podLogLevel?: number
162
+ enableDebugLog?: boolean
163
+ enableLogToInsight?: boolean
164
+ }
165
+
166
+ export type Quota = {
167
+ cpuRequests?: number
168
+ cpuLimits?: number
169
+ memoryRequests?: number
170
+ memoryLimits?: number
171
+ }
172
+
173
+ export type Resource = {
174
+ master?: Quota
175
+ worker?: Quota
176
+ }
177
+
178
+ export type RollingUpdate = {
179
+ }
@@ -0,0 +1,45 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type ListNacosReq = {
7
+ workspaceId?: string
8
+ page?: number
9
+ }
10
+
11
+ export type ListNacosRes = {
12
+ }
13
+
14
+ export type GetNacosReq = {
15
+ workspaceId?: string
16
+ nacosName?: string
17
+ }
18
+
19
+ export type GetNacosRes = {
20
+ }
21
+
22
+ export type UpdateNacosReq = {
23
+ workspaceId?: string
24
+ nacosName?: string
25
+ config?: string
26
+ }
27
+
28
+ export type UpdateNacosRes = {
29
+ }
30
+
31
+ export type CreateNacosReq = {
32
+ workspaceId?: string
33
+ gatewayName?: string
34
+ }
35
+
36
+ export type CreateNacosRes = {
37
+ }
38
+
39
+ export type DeleteNacosReq = {
40
+ workspaceId?: string
41
+ nacosName?: string
42
+ }
43
+
44
+ export type DeleteNacosRes = {
45
+ }
@@ -0,0 +1,45 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type ListSentinelReq = {
7
+ workspaceId?: string
8
+ page?: number
9
+ }
10
+
11
+ export type ListSentinelRes = {
12
+ }
13
+
14
+ export type GetSentinelReq = {
15
+ workspaceId?: string
16
+ sentinelName?: string
17
+ }
18
+
19
+ export type GetSentinelRes = {
20
+ }
21
+
22
+ export type UpdateSentinelReq = {
23
+ workspaceId?: string
24
+ sentinelName?: string
25
+ config?: string
26
+ }
27
+
28
+ export type UpdateSentinelRes = {
29
+ }
30
+
31
+ export type CreateSentinelReq = {
32
+ workspaceId?: string
33
+ gatewayName?: string
34
+ }
35
+
36
+ export type CreateSentinelRes = {
37
+ }
38
+
39
+ export type DeleteSentinelReq = {
40
+ workspaceId?: string
41
+ sentinelName?: string
42
+ }
43
+
44
+ export type DeleteSentinelRes = {
45
+ }
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
8
8
  export type Instance = {
9
+ workspaceId?: string
9
10
  id?: string
10
11
  serviceName?: string
11
12
  frameworkType?: string
@@ -17,6 +18,7 @@ export type Instance = {
17
18
  }
18
19
 
19
20
  export type ListInstanceReq = {
21
+ workspaceId?: string
20
22
  registryId?: string
21
23
  namespaceId?: string
22
24
  groupName?: string
@@ -24,11 +26,13 @@ export type ListInstanceReq = {
24
26
  }
25
27
 
26
28
  export type ListAllInstanceReq = {
29
+ workspaceId?: string
27
30
  page?: number
28
31
  size?: number
29
32
  }
30
33
 
31
34
  export type ListRegistryAllInstanceReq = {
35
+ workspaceId?: string
32
36
  registryId?: string
33
37
  page?: number
34
38
  size?: number
@@ -42,6 +46,7 @@ export type ListInstanceRes = {
42
46
  }
43
47
 
44
48
  export type GetInstanceReq = {
49
+ workspaceId?: string
45
50
  registryId?: string
46
51
  namespaceId?: string
47
52
  groupName?: string
@@ -3,16 +3,47 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ export enum RegistryStatus {
8
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
+ RUNNING = "RUNNING",
10
+ ANOMALY = "ANOMALY",
11
+ }
12
+
13
+ export enum RegistryType {
14
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
15
+ NACOS = "NACOS",
16
+ EUREKA = "EUREKA",
17
+ KUBERNETES = "KUBERNETES",
18
+ ZOOKEEPER = "ZOOKEEPER",
19
+ MESH = "MESH",
20
+ }
21
+
6
22
  export type Registry = {
23
+ workspaceId?: string
7
24
  registryId?: string
8
25
  name?: string
9
- type?: string
26
+ type?: RegistryType
27
+ status?: RegistryStatus
10
28
  addresses?: string[]
11
29
  namespaces?: Namespace[]
30
+ isHosted?: boolean
31
+ version?: string
12
32
  serviceCount?: number
33
+ healthInstanceCount?: number
34
+ totalInstanceCount?: number
35
+ updatedAt?: string
36
+ createdAt?: string
37
+ }
38
+
39
+ export type RegistryOnlyID = {
40
+ registryId?: string
13
41
  }
14
42
 
15
43
  export type ListRegistryReq = {
44
+ workspaceId?: string
45
+ type?: string
46
+ name?: string
16
47
  page?: number
17
48
  size?: number
18
49
  }
@@ -25,6 +56,7 @@ export type ListRegistryRes = {
25
56
  }
26
57
 
27
58
  export type GetRegistryReq = {
59
+ workspaceId?: string
28
60
  registryId?: string
29
61
  }
30
62
 
@@ -33,11 +65,13 @@ export type GetRegistryRes = {
33
65
  }
34
66
 
35
67
  export type UpdateRegistryReq = {
68
+ workspaceId?: string
36
69
  registryId?: string
37
70
  name?: string
38
71
  type?: string
39
- addresses?: string
40
- namespaces?: string
72
+ addresses?: string[]
73
+ namespaces?: Namespace[]
74
+ isHosted?: boolean
41
75
  }
42
76
 
43
77
  export type UpdateRegistryRes = {
@@ -45,33 +79,40 @@ export type UpdateRegistryRes = {
45
79
  }
46
80
 
47
81
  export type CreateRegistryReq = {
82
+ workspaceId?: string
48
83
  name?: string
49
84
  type?: string
50
- addresses?: string
51
- namespaces?: string
85
+ addresses?: string[]
86
+ namespaces?: Namespace[]
87
+ isHosted?: boolean
52
88
  }
53
89
 
54
90
  export type CreateRegistryRes = {
55
- registry?: Registry
91
+ registry?: RegistryOnlyID
56
92
  }
57
93
 
58
94
  export type DeleteRegistryReq = {
95
+ workspaceId?: string
59
96
  registryId?: string
60
97
  }
61
98
 
99
+ export type DeleteRegistryRes = {
100
+ registry?: RegistryOnlyID
101
+ }
102
+
62
103
  export type PingRegistryReq = {
104
+ workspaceId?: string
63
105
  type?: string
64
- addresses?: string
65
- namespaces?: string
106
+ name?: string
107
+ addresses?: string[]
108
+ namespaces?: Namespace[]
66
109
  }
67
110
 
68
111
  export type PingRegistryRes = {
69
- serviceCount?: number
70
112
  namespaces?: Namespace[]
71
113
  }
72
114
 
73
115
  export type Namespace = {
74
116
  id?: string
75
117
  name?: string
76
- group?: string
77
118
  }
@@ -7,19 +7,21 @@
7
7
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
8
8
  export type Service = {
9
9
  name?: string
10
- namespace?: SkoalaApiIntegratedV1alpha1Registry.Namespace
10
+ namespace?: NamespaceWithGroup
11
11
  instanceCount?: number
12
12
  registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
13
13
  detail?: {[key: string]: string}
14
14
  }
15
15
 
16
16
  export type ListServiceReq = {
17
+ workspaceId?: string
17
18
  registryId?: string
18
19
  page?: number
19
20
  size?: number
20
21
  }
21
22
 
22
23
  export type ListAllServiceReq = {
24
+ workspaceId?: string
23
25
  page?: number
24
26
  size?: number
25
27
  }
@@ -32,6 +34,7 @@ export type ListServiceRes = {
32
34
  }
33
35
 
34
36
  export type GetServiceReq = {
37
+ workspaceId?: string
35
38
  registryId?: string
36
39
  namespaceId?: string
37
40
  groupName?: string
@@ -40,4 +43,10 @@ export type GetServiceReq = {
40
43
 
41
44
  export type GetServiceRes = {
42
45
  service?: Service
46
+ }
47
+
48
+ export type NamespaceWithGroup = {
49
+ id?: string
50
+ name?: string
51
+ group?: string
43
52
  }
File without changes
@@ -0,0 +1,130 @@
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 fm from "../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
10
+ import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
11
+ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
12
+ import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
13
+ import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
14
+ import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
15
+ import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
16
+ import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
17
+ export class Hive {
18
+ static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
19
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
20
+ }
21
+ }
22
+ export class Sesame {
23
+ static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
24
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/sesame.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
25
+ }
26
+ }
27
+ export class Skoala {
28
+ static ListCluster(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterRes> {
29
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, SkoalaApiGeneralV1alpha1Skoala.ListClusterRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
30
+ }
31
+ static ListClusterNamespace(req: SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes> {
32
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
33
+ }
34
+ static ListWorkspace(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
35
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
36
+ }
37
+ }
38
+ export class Registry {
39
+ static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
40
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
41
+ }
42
+ static Get(req: SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes> {
43
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
44
+ }
45
+ static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
46
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
47
+ }
48
+ static Update(req: SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes> {
49
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
50
+ }
51
+ static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
52
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
53
+ }
54
+ static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
55
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
56
+ }
57
+ }
58
+ export class Service {
59
+ static List(req: SkoalaApiIntegratedV1alpha1Service.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
60
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
61
+ }
62
+ static Get(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
63
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
64
+ }
65
+ }
66
+ export class Instance {
67
+ static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
68
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
69
+ }
70
+ static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
71
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
72
+ }
73
+ }
74
+ export class Nacos {
75
+ static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
76
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosReq, SkoalaApiHostedV1alpha1Nacos.ListNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
77
+ }
78
+ static Get(req: SkoalaApiHostedV1alpha1Nacos.GetNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosRes> {
79
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosReq, SkoalaApiHostedV1alpha1Nacos.GetNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
80
+ }
81
+ static Create(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosRes> {
82
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req)})
83
+ }
84
+ static Update(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes> {
85
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
86
+ }
87
+ static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes> {
88
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
89
+ }
90
+ }
91
+ export class Sentinel {
92
+ static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
93
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
94
+ }
95
+ static Get(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes> {
96
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "sentinelName"])}`, {...initReq, method: "GET"})
97
+ }
98
+ static Create(req: SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes> {
99
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req)})
100
+ }
101
+ static Update(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes> {
102
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
103
+ }
104
+ static Delete(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes> {
105
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "DELETE"})
106
+ }
107
+ }
108
+ export class Gateway {
109
+ static ListAll(req: SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
110
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
111
+ }
112
+ static ListClusterGateway(req: SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
113
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
114
+ }
115
+ static ListNamespaceGateway(req: SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
116
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName"])}`, {...initReq, method: "GET"})
117
+ }
118
+ static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
119
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
120
+ }
121
+ static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes> {
122
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req)})
123
+ }
124
+ static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes> {
125
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
126
+ }
127
+ static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes> {
128
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
129
+ }
130
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.2.0-8",
3
+ "version": "0.2.0-81",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,62 +0,0 @@
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 fm from "../../../fetch.pb"
8
- import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
- import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
10
- import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
11
- import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
12
- import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
13
- export class Hive {
14
- static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
15
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
16
- }
17
- }
18
- export class Registry {
19
- static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
20
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
21
- }
22
- static Get(req: SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes> {
23
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
24
- }
25
- static Update(req: SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes> {
26
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
27
- }
28
- static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
29
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
30
- }
31
- static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
32
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
33
- }
34
- static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
35
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
36
- }
37
- }
38
- export class Service {
39
- static ListAll(req: SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
40
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/services?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
41
- }
42
- static List(req: SkoalaApiIntegratedV1alpha1Service.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
43
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
44
- }
45
- static Get(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
46
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["registryId", "serviceName"])}`, {...initReq, method: "GET"})
47
- }
48
- }
49
- export class Instance {
50
- static ListAll(req: SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
51
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
52
- }
53
- static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
54
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/instances?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
55
- }
56
- static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
57
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["registryId", "serviceName"])}`, {...initReq, method: "GET"})
58
- }
59
- static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
60
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
61
- }
62
- }