浏览代码

增加CheckDestinationExist和ValidateOwnershipChallenge

ChenHaolong 1 年之前
父节点
当前提交
7acb3e56b7
共有 1 个文件被更改,包括 25 次插入0 次删除
  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;
 }