Jelajahi Sumber

feature: Cloudflare支持原生创建域名与更改付费计划API

世祺 8 bulan lalu
induk
melakukan
190a665e4a
1 mengubah file dengan 22 tambahan dan 0 penghapusan
  1. 22 0
      zone.proto

+ 22 - 0
zone.proto

@@ -17,6 +17,8 @@ service ZoneCloudflare {
   rpc ListZones(ListZonesRequestCloudflare) returns (ZonesList){}
   rpc ListZonesByAccountId(ListZonesByAccountIdRequestCloudflare) returns (ZonesList){}
   rpc ActivationCheck(ActivationCheckRequestCloudflare) returns (ActivationCheckReplyCloudflare){}
+  rpc CreateZone (CreateZoneRequestCloudflare) returns (CreateZoneReplyCloudflare){}
+  rpc SetZonePlan (SetZonePlanRequestCloudflare)returns (SetZonePlanReplyCloudflare){}
 
   //PageRule CURD
   rpc ListPageRule(ListPageRuleRequestCloudflare) returns (PageRuleList){}
@@ -117,6 +119,26 @@ message DeleteZoneReplyCloudflare{
   string id = 2;
 }
 
+message CreateZoneRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string accountId = 3;
+  string domain = 4;
+}
+message CreateZoneReplyCloudflare{
+  bool success = 1;
+  string id = 2;
+}
+message SetZonePlanRequestCloudflare{
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  string zonePlan = 4;
+}
+message SetZonePlanReplyCloudflare{
+  bool success = 1;
+}
+
 
 message ActivationCheckRequestCloudflare {
   string apiKey = 1;