Browse Source

Argo Smart Routing实现

世祺 1 year ago
parent
commit
e1cbc80711
1 changed files with 24 additions and 1 deletions
  1. 24 1
      zone.proto

+ 24 - 1
zone.proto

@@ -28,6 +28,12 @@ service ZoneCloudflare {
   //RuleSet UR
   rpc UpdateRuleSet(UpdateRuleSetRequestCloudflare) 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
@@ -224,4 +230,21 @@ message UpdatePageRulesPrioritiesRequestCloudflare{
   string apiEmail = 2;
   string zoneId = 3;
   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;
+}