Pārlūkot izejas kodu

cloudflare增加universalCertificate接口

YuXinLong 1 gadu atpakaļ
vecāks
revīzija
fe237209c1
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  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;
+}
+