Selaa lähdekoodia

增加CheckDestinationExist和ValidateOwnershipChallenge

ChenHaolong 1 vuosi sitten
vanhempi
commit
7acb3e56b7
1 muutettua tiedostoa jossa 25 lisäystä ja 0 poistoa
  1. 25 0
      logPush.proto

+ 25 - 0
logPush.proto

@@ -12,6 +12,8 @@ service LogPushCloudflare {
   rpc CreateLogPushJobByZoneId(CreateLogPushJobRequestByZoneId) returns (CreateLogPushJobReplay) {}
   rpc DeleteLogPushJobByZoneId(DeleteLogPushJobRequestByZoneId) returns (DeleteLogPushJobReplay) {}
   rpc GetOwnershipChallengeByZoneId(GetOwnershipChallengeRequestByZoneId) returns (GetOwnershipChallengeReply) {}
+  rpc CheckDestinationExist(CheckDestinationExistRequest) returns (CheckDestinationExistReply) {}
+  rpc ValidateOwnershipChallenge(ValidateOwnershipChallengeRequest) returns (ValidateOwnershipChallengeReply) {}
 }
 
 message LogPushJobEntity {
@@ -74,4 +76,27 @@ message GetOwnershipChallengeRequestByZoneId {
 
 message GetOwnershipChallengeReply {
   OwnershipChallengeEntity result = 1;
+}
+
+message CheckDestinationExistRequest {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  string destinationConf = 4;
+}
+
+message CheckDestinationExistReply {
+  bool exists = 1;
+}
+
+message ValidateOwnershipChallengeRequest {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  string destinationConf = 4;
+  string ownershipChallenge = 5;
+}
+
+message ValidateOwnershipChallengeReply {
+  bool valid = 1;
 }