Ver código fonte

Argo Smart Routing实现

世祺 1 ano atrás
pai
commit
e1cbc80711
1 arquivos alterados com 24 adições e 1 exclusões
  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;
+}