Procházet zdrojové kódy

cloudflare增加universalCertificate接口

YuXinLong před 1 rokem
rodič
revize
fe237209c1
1 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 12 0
      certificate.proto

+ 12 - 0
certificate.proto

@@ -12,6 +12,7 @@ service CertificateCloudflare {
   rpc CreateCertificate (CreateCertificateRequestCloudflare) returns  (CreateCertificateReplyCloudflare) {}
   rpc DeleteCertificate (DeleteCertificateRequestCloudflare) returns (DeleteCertificateReplyCloudflare) {}
   rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
+  rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
 }
 
 message CreateCertificateRequestCloudflare {
@@ -35,6 +36,12 @@ message EditCertificateRequestCloudflare {
   string certificate = 5;
   string privateKey = 6;
 }
+message UniversalCertificateRequestCloudflare {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneName = 3;
+  bool enable = 4;
+}
 
 
 message CreateCertificateReplyCloudflare{
@@ -49,3 +56,8 @@ message EditCertificateReplyCloudflare{
   bool success = 1;
   string id = 2;
 }
+message UniversalCertificateReplyCloudflare{
+  bool success = 1;
+  bool enabled = 2;
+}
+