@daocloud-proto/zestu 0.3.3-dev-4e120c86 → 0.4.0-dev-c1375326

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/zestu",
3
- "version":"v0.3.3-dev-4e120c86",
3
+ "version":"v0.4.0-dev-c1375326",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -63,6 +63,7 @@ export type ListContainerInstancesRequest = {
63
63
  pageSize?: number
64
64
  status?: InstanceStatus
65
65
  regionId?: string
66
+ instanceId?: string
66
67
  }
67
68
 
68
69
  export type ListContainerInstancesResponse = {
@@ -3,11 +3,22 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ import * as ZestuIoApiContainerinstanceV1alpha1Containerinstance from "../../containerinstance/v1alpha1/containerinstance.pb"
6
8
  export type Region = {
7
9
  regionId?: string
8
10
  regionName?: string
11
+ networkSupported?: ZestuIoApiContainerinstanceV1alpha1Containerinstance.NetworkProtocol[]
9
12
  }
10
13
 
11
14
  export type ListRegionsResponse = {
12
15
  items?: Region[]
16
+ }
17
+
18
+ export type ListSupportedNetworksRequest = {
19
+ regionId?: string
20
+ }
21
+
22
+ export type ListSupportedNetworksResponse = {
23
+ item?: Region
13
24
  }
@@ -7,6 +7,19 @@
7
7
  import * as ZestuIoApiTypesPage from "../../types/page.pb"
8
8
  import * as ZestuIoApiTypesTypes from "../../types/types.pb"
9
9
 
10
+ export enum SortType {
11
+ UnknownType = "UnknownType",
12
+ ASC = "ASC",
13
+ DESC = "DESC",
14
+ }
15
+
16
+ export enum SortField {
17
+ UnknownField = "UnknownField",
18
+ GPU_TYPE = "GPU_TYPE",
19
+ GPU_MEMORY = "GPU_MEMORY",
20
+ GPU_COUNT = "GPU_COUNT",
21
+ }
22
+
10
23
  export enum RegisterAction {
11
24
  AddOrUpdate = "AddOrUpdate",
12
25
  Delete = "Delete",
@@ -23,6 +36,8 @@ export type ListResourcesRequest = {
23
36
  billingType?: ZestuIoApiTypesTypes.BillingType
24
37
  page?: number
25
38
  pageSize?: number
39
+ sortField?: SortField
40
+ sortType?: SortType
26
41
  }
27
42
 
28
43
  export type ListResourcesResponse = {
@@ -116,4 +131,19 @@ export type NvidiaDevices = {
116
131
 
117
132
  export type RegisterResourceResponse = {
118
133
  message?: string
134
+ }
135
+
136
+ export type ReportResourceRequest = {
137
+ clusterName?: string
138
+ nodeName?: string
139
+ deviceVendor?: string
140
+ deviceModel?: string
141
+ gpuType?: string
142
+ cpuVendor?: string
143
+ quantity?: {[key: string]: RegisterResourceQuantity}
144
+ vgpuDevices?: NvidiaDevices[]
145
+ action?: RegisterAction
146
+ }
147
+
148
+ export type ReportResourceResponse = {
119
149
  }
@@ -46,6 +46,9 @@ export class Region {
46
46
  static ListRegions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListRegionsResponse> {
47
47
  return fm.fetchReq<GoogleProtobufEmpty.Empty, ZestuIoApiRegionV1alpha1Region.ListRegionsResponse>(`/apis/zestu.io/v1/regions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
48
48
  }
49
+ static ListSupportedNetworks(req: ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksResponse> {
50
+ return fm.fetchReq<ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksRequest, ZestuIoApiRegionV1alpha1Region.ListSupportedNetworksResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/supportednetworks?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
51
+ }
49
52
  }
50
53
  export class Resources {
51
54
  static ListResources(req: ZestuIoApiResourcesV1alpha1Resources.ListResourcesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ListResourcesResponse> {
@@ -103,6 +106,9 @@ export class Agent {
103
106
  static RegisterResource(req: ZestuIoApiResourcesV1alpha1Resources.RegisterResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.RegisterResourceResponse> {
104
107
  return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.RegisterResourceRequest, ZestuIoApiResourcesV1alpha1Resources.RegisterResourceResponse>(`/zestu.io.api.v1alpha1.Agent/RegisterResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
105
108
  }
109
+ static ReportResource(req: ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse> {
110
+ return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse>(`/zestu.io.api.v1alpha1.Agent/ReportResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
111
+ }
106
112
  }
107
113
  export class Metrics {
108
114
  static QueryMetricsRange(req: ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeRequest, initReq?: fm.InitReq): Promise<ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeResponse> {