浏览代码

Argo Smart Routing实现

世祺 1 年之前
父节点
当前提交
e1cbc80711
共有 1 个文件被更改,包括 24 次插入1 次删除
  1. 24 1
      zone.proto

+ 24 - 1
zone.proto

@@ -28,6 +28,12 @@ service ZoneCloudflare {
   //RuleSet UR
   //RuleSet UR
   rpc UpdateRuleSet(UpdateRuleSetRequestCloudflare) returns (RuleList){}
   rpc UpdateRuleSet(UpdateRuleSetRequestCloudflare) returns (RuleList){}
   rpc GetRuleSet(GetRuleSetRequestCloudflare) returns (RuleList){}
   rpc GetRuleSet(GetRuleSetRequestCloudflare) returns (RuleList){}
+
+  //Argo Smart Routing Setting UR
+  rpc UpdateArgoSetting(UpdateArgoRequestCloudflare) returns(ArgoSetting){}
+  rpc GetArgoSetting(IdRequest) returns(ArgoSetting){}
+  rpc GetArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
+  rpc CreateArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
 }
 }
 
 
 //Zone CURD
 //Zone CURD
@@ -224,4 +230,21 @@ message UpdatePageRulesPrioritiesRequestCloudflare{
   string apiEmail = 2;
   string apiEmail = 2;
   string zoneId = 3;
   string zoneId = 3;
   repeated UpdatePageRulesPrioritiesStruct data = 4;
   repeated UpdatePageRulesPrioritiesStruct data = 4;
-}
+}
+
+message ArgoSetting{
+  bool enabled = 1;
+}
+
+message UpdateArgoRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  ArgoSetting argo_setting = 4;
+}
+
+message IdRequest{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+}