@daocloud-proto/zestu 0.4.0-dev-ae4d94f9 → 0.4.0-dev-3668e3b3

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.4.0-dev-ae4d94f9",
3
+ "version":"v0.4.0-dev-3668e3b3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,17 @@
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 NotifyType {
8
+ ContainerDeleteWarning = "ContainerDeleteWarning",
9
+ ContainerDeleted = "ContainerDeleted",
10
+ }
11
+
12
+ export type SendShortMessageRequest = {
13
+ cluster?: string
14
+ userName?: string
15
+ notifyType?: NotifyType
16
+ templateVars?: {[key: string]: string}
17
+ }
@@ -13,6 +13,7 @@ import * as ZestuIoApiMeteringV1alpha1Metering from "../metering/v1alpha1/meteri
13
13
  import * as ZestuIoApiMetricsV1alpha1Metrics from "../metrics/v1alpha1/metrics.pb"
14
14
  import * as ZestuIoApiRegionV1alpha1Region from "../region/v1alpha1/region.pb"
15
15
  import * as ZestuIoApiResourcesV1alpha1Resources from "../resources/v1alpha1/resources.pb"
16
+ import * as ZestuIoApiSmsV1alpha1Sms from "../sms/v1alpha1/sms.pb"
16
17
  import * as ZestuIoApiUserV1alpha1User from "../user/v1alpha1/user.pb"
17
18
  export class ContainerInstance {
18
19
  static ListContainerInstances(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiContainerinstanceV1alpha1Containerinstance.ListContainerInstancesResponse> {
@@ -125,6 +126,9 @@ export class Agent {
125
126
  static DeleteInventory(req: ZestuIoApiResourcesV1alpha1Resources.DeleteInventoryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
126
127
  return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.DeleteInventoryRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/DeleteInventory`, {...initReq, method: "POST", body: JSON.stringify(req)})
127
128
  }
129
+ static SendShortMessage(req: ZestuIoApiSmsV1alpha1Sms.SendShortMessageRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
130
+ return fm.fetchReq<ZestuIoApiSmsV1alpha1Sms.SendShortMessageRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/SendShortMessage`, {...initReq, method: "POST", body: JSON.stringify(req)})
131
+ }
128
132
  }
129
133
  export class Metrics {
130
134
  static QueryMetricsRange(req: ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeRequest, initReq?: fm.InitReq): Promise<ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeResponse> {