소스 검색

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
   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;
+}