Browse Source

feature: Cloudflare添加域名时,默认开启智能分层缓存

liufan 5 months ago
parent
commit
871300b771
1 changed files with 11 additions and 0 deletions
  1. 11 0
      zone.proto

+ 11 - 0
zone.proto

@@ -36,6 +36,7 @@ service ZoneCloudflare {
   rpc GetArgoSetting(IdRequest) returns(ArgoSetting){}
   rpc GetArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
   rpc CreateArgoSettingSubscription(IdRequest)returns(ArgoSetting){}
+  rpc SetSmartTieredCache(SetSmartTieredCacheRequestCloudflare)returns(SetSmartTieredCacheReplyCloudflare){}
 }
 
 //Zone CURD
@@ -270,3 +271,13 @@ message IdRequest{
   string apiEmail = 2;
   string zoneId = 3;
 }
+
+message SetSmartTieredCacheRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+}
+
+message SetSmartTieredCacheReplyCloudflare{
+  bool enabled = 1;
+}