123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- syntax = "proto3";
- package cloudflareApi.dns;
- option go_package = "./cloudflareApi/dns";
- option java_multiple_files = true;
- option java_package = "io.grpc.cloudflare.dns";
- option java_outer_classname = "dnsProto";
- service DnsCloudflare {
- rpc List(ListRequest)returns(DnsRecordList){}
- rpc Create(DnsRecordRequest)returns(DnsRecord){}
- rpc Update(DnsRecordRequest)returns(Empty){}
- rpc Delete(DeleteRequest)returns(Empty){}
- }
- message DnsRecord{
- string id = 1;
- string name = 2;
- string type = 3;
- string content = 4;
- int64 ttl = 5;
- string zone_id = 6;
- string zone_name = 7;
- bool proxied = 8;
- }
- message DnsRecordList{
- repeated DnsRecord dnsRecord = 1;
- }
- message Empty{}
- message ListRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- }
- message DnsRecordRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- DnsRecord dnsRecord = 4;
- }
- message DeleteRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- string id = 4;
- }
- //message CreateReply {
- // DnsEntity
- //}
|