@daocloud-proto/zestu 0.3.0-dev-1b0ec1fe → 0.3.0-dev-acb9dc0b

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.0-dev-1b0ec1fe",
3
+ "version":"v0.3.0-dev-acb9dc0b",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
  }
@@ -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> {