@daocloud-proto/skoala 0.3.3-22 → 0.3.3-28

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.
@@ -4,17 +4,23 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
7
+ export enum InstanceInstanceStatus {
8
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
+ RUNNING = "RUNNING",
10
+ Failed = "Failed",
11
+ }
12
+
8
13
  export type Instance = {
9
- workspaceId?: string
10
14
  id?: string
11
15
  serviceName?: string
12
16
  frameworkType?: string
13
17
  host?: string
14
- port?: number
18
+ ports?: number[]
19
+ instanceStatus?: InstanceInstanceStatus
20
+ enabled?: boolean
15
21
  metadata?: {[key: string]: string}
16
- registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
17
22
  detail?: {[key: string]: string}
23
+ lastUpdatedTimestamp?: string
18
24
  }
19
25
 
20
26
  export type ListInstanceReq = {
@@ -23,19 +29,9 @@ export type ListInstanceReq = {
23
29
  namespaceId?: string
24
30
  groupName?: string
25
31
  serviceName?: string
26
- }
27
-
28
- export type ListAllInstanceReq = {
29
- workspaceId?: string
30
- page?: number
31
- size?: number
32
- }
33
-
34
- export type ListRegistryAllInstanceReq = {
35
- workspaceId?: string
36
- registryId?: string
37
32
  page?: number
38
33
  size?: number
34
+ total?: number
39
35
  }
40
36
 
41
37
  export type ListInstanceRes = {
@@ -56,4 +52,18 @@ export type GetInstanceReq = {
56
52
 
57
53
  export type GetInstanceRes = {
58
54
  instance?: Instance
55
+ }
56
+
57
+ export type UpdateInstanceReq = {
58
+ workspaceId?: string
59
+ registryId?: string
60
+ namespaceId?: string
61
+ groupName?: string
62
+ instanceId?: string
63
+ serviceName?: string
64
+ enabled?: boolean
65
+ }
66
+
67
+ export type UpdateInstanceRes = {
68
+ instance?: Instance
59
69
  }
@@ -4,13 +4,13 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- export enum RegistryStatus {
7
+ export enum RegistryRegistryStatus {
8
8
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
9
  RUNNING = "RUNNING",
10
10
  ANOMALY = "ANOMALY",
11
11
  }
12
12
 
13
- export enum RegistryType {
13
+ export enum RegistryRegistryType {
14
14
  TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
15
15
  NACOS = "NACOS",
16
16
  EUREKA = "EUREKA",
@@ -23,8 +23,8 @@ export type Registry = {
23
23
  workspaceId?: string
24
24
  registryId?: string
25
25
  name?: string
26
- type?: RegistryType
27
- status?: RegistryStatus
26
+ type?: RegistryRegistryType
27
+ status?: RegistryRegistryStatus
28
28
  addresses?: string[]
29
29
  namespaces?: Namespace[]
30
30
  isHosted?: boolean
@@ -9,6 +9,7 @@ import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
9
9
  export type Service = {
10
10
  name?: string
11
11
  namespace?: NamespaceWithGroup
12
+ healthInstanceCount?: number
12
13
  instanceCount?: number
13
14
  registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
14
15
  detail?: {[key: string]: string}
@@ -70,6 +70,9 @@ export class Instance {
70
70
  static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
71
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
72
  }
73
+ static Update(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes> {
74
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
75
+ }
73
76
  }
74
77
  export class Nacos {
75
78
  static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.3.3-22",
3
+ "version": "0.3.3-28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {