@daocloud-proto/skoala 0.6.1-48 → 0.6.1-50

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.
@@ -717,6 +717,18 @@ export type UpdateNacosConfigReq = {
717
717
  schema?: string
718
718
  }
719
719
 
720
+ export type RollbackNacosConfigReq = {
721
+ workspaceId?: string
722
+ clusterName?: string
723
+ namespaceName?: string
724
+ nacosName?: string
725
+ nacosNamespace?: string
726
+ dataId?: string
727
+ group?: string
728
+ content?: string
729
+ appName?: string
730
+ }
731
+
720
732
  export type DeleteNacosConfigReq = {
721
733
  workspaceId?: string
722
734
  clusterName?: string
@@ -213,6 +213,9 @@ export class Nacos {
213
213
  static UpdateConfig(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
214
214
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
215
215
  }
216
+ static RollbackConfig(req: SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
217
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/rollback`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
218
+ }
216
219
  static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
217
220
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
218
221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-48",
3
+ "version": "0.6.1-50",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {