From 0a764bc08cda26ed1412cbda45c69f8ed3930d4d Mon Sep 17 00:00:00 2001 From: Robert Kopaczewski Date: Mon, 24 Aug 2020 16:59:59 +0200 Subject: [PATCH] feat: get and status filtering for hosting (#5) * feat: get and status filtering for hosting * fix python --- gen/go/syncano/codebox/broker/v1/broker.pb.go | 2 +- gen/go/syncano/codebox/filerepo/v1/repo.pb.go | 2 +- gen/go/syncano/codebox/lb/v1/runner.pb.go | 2 +- gen/go/syncano/codebox/lb/v1/workerplug.pb.go | 2 +- gen/go/syncano/codebox/script/v1/script.pb.go | 2 +- gen/go/syncano/hosting/acme/v1/acme.pb.go | 584 ++++++++++++------ .../syncano/hosting/acme/v1/acme_pb2.py | 263 +++++--- .../syncano/hosting/acme/v1/acme_pb2_grpc.py | 85 ++- syncano/hosting/acme/v1/acme.proto | 36 +- 9 files changed, 664 insertions(+), 314 deletions(-) diff --git a/gen/go/syncano/codebox/broker/v1/broker.pb.go b/gen/go/syncano/codebox/broker/v1/broker.pb.go index 19bb7cb..866edba 100644 --- a/gen/go/syncano/codebox/broker/v1/broker.pb.go +++ b/gen/go/syncano/codebox/broker/v1/broker.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/codebox/broker/v1/broker.proto package broker diff --git a/gen/go/syncano/codebox/filerepo/v1/repo.pb.go b/gen/go/syncano/codebox/filerepo/v1/repo.pb.go index 190cfae..e95018b 100644 --- a/gen/go/syncano/codebox/filerepo/v1/repo.pb.go +++ b/gen/go/syncano/codebox/filerepo/v1/repo.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/codebox/filerepo/v1/repo.proto package filerepo diff --git a/gen/go/syncano/codebox/lb/v1/runner.pb.go b/gen/go/syncano/codebox/lb/v1/runner.pb.go index 9e11683..aed7a54 100644 --- a/gen/go/syncano/codebox/lb/v1/runner.pb.go +++ b/gen/go/syncano/codebox/lb/v1/runner.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/codebox/lb/v1/runner.proto package lb diff --git a/gen/go/syncano/codebox/lb/v1/workerplug.pb.go b/gen/go/syncano/codebox/lb/v1/workerplug.pb.go index e36fe14..d411a27 100644 --- a/gen/go/syncano/codebox/lb/v1/workerplug.pb.go +++ b/gen/go/syncano/codebox/lb/v1/workerplug.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/codebox/lb/v1/workerplug.proto package lb diff --git a/gen/go/syncano/codebox/script/v1/script.pb.go b/gen/go/syncano/codebox/script/v1/script.pb.go index f005b1c..c8845cb 100644 --- a/gen/go/syncano/codebox/script/v1/script.pb.go +++ b/gen/go/syncano/codebox/script/v1/script.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/codebox/script/v1/script.proto package script diff --git a/gen/go/syncano/hosting/acme/v1/acme.pb.go b/gen/go/syncano/hosting/acme/v1/acme.pb.go index 19f6023..d30a37f 100644 --- a/gen/go/syncano/hosting/acme/v1/acme.pb.go +++ b/gen/go/syncano/hosting/acme/v1/acme.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.24.0-devel -// protoc v3.12.4 +// protoc v3.13.0 // source: syncano/hosting/acme/v1/acme.proto package acme @@ -322,8 +322,8 @@ func (x *CreateResponse) GetCertificate() *Certificate { return nil } -// Delete -type DeleteRequest struct { +// Get +type GetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -331,8 +331,8 @@ type DeleteRequest struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` } -func (x *DeleteRequest) Reset() { - *x = DeleteRequest{} +func (x *GetRequest) Reset() { + *x = GetRequest{} if protoimpl.UnsafeEnabled { mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -340,13 +340,13 @@ func (x *DeleteRequest) Reset() { } } -func (x *DeleteRequest) String() string { +func (x *GetRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteRequest) ProtoMessage() {} +func (*GetRequest) ProtoMessage() {} -func (x *DeleteRequest) ProtoReflect() protoreflect.Message { +func (x *GetRequest) ProtoReflect() protoreflect.Message { mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -358,26 +358,28 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. -func (*DeleteRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. +func (*GetRequest) Descriptor() ([]byte, []int) { return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{4} } -func (x *DeleteRequest) GetDomain() string { +func (x *GetRequest) GetDomain() string { if x != nil { return x.Domain } return "" } -type DeleteResponse struct { +type GetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (x *DeleteResponse) Reset() { - *x = DeleteResponse{} +func (x *GetResponse) Reset() { + *x = GetResponse{} if protoimpl.UnsafeEnabled { mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -385,13 +387,13 @@ func (x *DeleteResponse) Reset() { } } -func (x *DeleteResponse) String() string { +func (x *GetResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteResponse) ProtoMessage() {} +func (*GetResponse) ProtoMessage() {} -func (x *DeleteResponse) ProtoReflect() protoreflect.Message { +func (x *GetResponse) ProtoReflect() protoreflect.Message { mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -403,25 +405,144 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. -func (*DeleteResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{5} } +func (x *GetResponse) GetCertificate() *Certificate { + if x != nil { + return x.Certificate + } + return nil +} + +// List +type ListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` // optional + ExpirationLte *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_lte,json=expirationLte,proto3" json:"expiration_lte,omitempty"` // optional + Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=syncano.hosting.acme.v1.Status" json:"status,omitempty"` // optional +} + +func (x *ListRequest) Reset() { + *x = ListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListRequest) ProtoMessage() {} + +func (x *ListRequest) ProtoReflect() protoreflect.Message { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. +func (*ListRequest) Descriptor() ([]byte, []int) { + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{6} +} + +func (x *ListRequest) GetDomains() []string { + if x != nil { + return x.Domains + } + return nil +} + +func (x *ListRequest) GetExpirationLte() *timestamp.Timestamp { + if x != nil { + return x.ExpirationLte + } + return nil +} + +func (x *ListRequest) GetStatus() Status { + if x != nil { + return x.Status + } + return Status_UNKNOWN +} + +type ListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Certificates []*Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` +} + +func (x *ListResponse) Reset() { + *x = ListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListResponse) ProtoMessage() {} + +func (x *ListResponse) ProtoReflect() protoreflect.Message { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. +func (*ListResponse) Descriptor() ([]byte, []int) { + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{7} +} + +func (x *ListResponse) GetCertificates() []*Certificate { + if x != nil { + return x.Certificates + } + return nil +} + // Refresh type RefreshRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` // optional - ExpirationLte *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_lte,json=expirationLte,proto3" json:"expiration_lte,omitempty"` // optional + Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` // optional + ExpirationLte *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_lte,json=expirationLte,proto3" json:"expiration_lte,omitempty"` // optional + Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=syncano.hosting.acme.v1.Status" json:"status,omitempty"` // optional } func (x *RefreshRequest) Reset() { *x = RefreshRequest{} if protoimpl.UnsafeEnabled { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[6] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -434,7 +555,7 @@ func (x *RefreshRequest) String() string { func (*RefreshRequest) ProtoMessage() {} func (x *RefreshRequest) ProtoReflect() protoreflect.Message { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[6] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -447,7 +568,7 @@ func (x *RefreshRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead. func (*RefreshRequest) Descriptor() ([]byte, []int) { - return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{6} + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{8} } func (x *RefreshRequest) GetDomains() []string { @@ -464,6 +585,13 @@ func (x *RefreshRequest) GetExpirationLte() *timestamp.Timestamp { return nil } +func (x *RefreshRequest) GetStatus() Status { + if x != nil { + return x.Status + } + return Status_UNKNOWN +} + type RefreshResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -476,7 +604,7 @@ type RefreshResponse struct { func (x *RefreshResponse) Reset() { *x = RefreshResponse{} if protoimpl.UnsafeEnabled { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[7] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -489,7 +617,7 @@ func (x *RefreshResponse) String() string { func (*RefreshResponse) ProtoMessage() {} func (x *RefreshResponse) ProtoReflect() protoreflect.Message { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[7] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -502,7 +630,7 @@ func (x *RefreshResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RefreshResponse.ProtoReflect.Descriptor instead. func (*RefreshResponse) Descriptor() ([]byte, []int) { - return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{7} + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{9} } func (x *RefreshResponse) GetRefreshed() []*Certificate { @@ -519,33 +647,32 @@ func (x *RefreshResponse) GetFailed() []*Certificate { return nil } -// List -type ListRequest struct { +// Delete +type DeleteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` // optional - ExpirationLte *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_lte,json=expirationLte,proto3" json:"expiration_lte,omitempty"` // optional + Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` } -func (x *ListRequest) Reset() { - *x = ListRequest{} +func (x *DeleteRequest) Reset() { + *x = DeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[8] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListRequest) String() string { +func (x *DeleteRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListRequest) ProtoMessage() {} +func (*DeleteRequest) ProtoMessage() {} -func (x *ListRequest) ProtoReflect() protoreflect.Message { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[8] +func (x *DeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -556,50 +683,41 @@ func (x *ListRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. -func (*ListRequest) Descriptor() ([]byte, []int) { - return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{8} -} - -func (x *ListRequest) GetDomains() []string { - if x != nil { - return x.Domains - } - return nil +// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. +func (*DeleteRequest) Descriptor() ([]byte, []int) { + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{10} } -func (x *ListRequest) GetExpirationLte() *timestamp.Timestamp { +func (x *DeleteRequest) GetDomain() string { if x != nil { - return x.ExpirationLte + return x.Domain } - return nil + return "" } -type ListResponse struct { +type DeleteResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - Certificates []*Certificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` } -func (x *ListResponse) Reset() { - *x = ListResponse{} +func (x *DeleteResponse) Reset() { + *x = DeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[9] + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListResponse) String() string { +func (x *DeleteResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListResponse) ProtoMessage() {} +func (*DeleteResponse) ProtoMessage() {} -func (x *ListResponse) ProtoReflect() protoreflect.Message { - mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[9] +func (x *DeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_syncano_hosting_acme_v1_acme_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -610,16 +728,9 @@ func (x *ListResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. -func (*ListResponse) Descriptor() ([]byte, []int) { - return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{9} -} - -func (x *ListResponse) GetCertificates() []*Certificate { - if x != nil { - return x.Certificates - } - return nil +// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. +func (*DeleteResponse) Descriptor() ([]byte, []int) { + return file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP(), []int{11} } var File_syncano_hosting_acme_v1_acme_proto protoreflect.FileDescriptor @@ -663,74 +774,94 @@ var file_syncano_hosting_acme_v1_acme_proto_rawDesc = []byte{ 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x27, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x0e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x24, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x55, + 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, + 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, - 0x74, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, - 0x68, 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, - 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, - 0x09, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x06, 0x66, 0x61, - 0x69, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, - 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0x6a, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x6c, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4c, 0x74, 0x65, 0x22, 0x58, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, + 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x58, 0x0a, 0x0c, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0xa6, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6c, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, + 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x93, + 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, + 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x09, 0x72, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, + 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x06, 0x66, 0x61, + 0x69, 0x6c, 0x65, 0x64, 0x22, 0x27, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x10, 0x0a, + 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, + 0x61, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, + 0x0a, 0x0e, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, + 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x56, 0x45, 0x52, + 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x43, 0x4d, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x10, 0x04, 0x32, 0xc6, 0x03, 0x0a, 0x09, 0x41, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x12, 0x59, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x52, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x2a, 0x61, - 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x12, 0x0a, - 0x0e, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, - 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x56, 0x45, 0x52, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, - 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x43, 0x4d, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, - 0x04, 0x32, 0xf4, 0x02, 0x0a, 0x09, 0x41, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, - 0x59, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x73, 0x79, 0x6e, 0x63, - 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, - 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, - 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, - 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x07, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x12, 0x27, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x79, 0x6e, 0x63, - 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x24, 0x2e, 0x73, 0x79, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x03, 0x47, + 0x65, 0x74, 0x12, 0x23, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, + 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, + 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x24, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, + 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x25, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2f, 0x73, - 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, - 0x6f, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, - 0x67, 0x2f, 0x61, 0x63, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x63, 0x6d, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x07, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x27, 0x2e, + 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, + 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, + 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x59, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x73, 0x79, 0x6e, + 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2e, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x61, 0x63, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x44, 0x5a, 0x42, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x79, 0x6e, 0x63, 0x61, 0x6e, + 0x6f, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x61, 0x6e, 0x6f, 0x2f, 0x68, 0x6f, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x63, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x63, 0x6d, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -746,45 +877,52 @@ func file_syncano_hosting_acme_v1_acme_proto_rawDescGZIP() []byte { } var file_syncano_hosting_acme_v1_acme_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_syncano_hosting_acme_v1_acme_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_syncano_hosting_acme_v1_acme_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_syncano_hosting_acme_v1_acme_proto_goTypes = []interface{}{ (Status)(0), // 0: syncano.hosting.acme.v1.Status (*Refresh)(nil), // 1: syncano.hosting.acme.v1.Refresh (*Certificate)(nil), // 2: syncano.hosting.acme.v1.Certificate (*CreateRequest)(nil), // 3: syncano.hosting.acme.v1.CreateRequest (*CreateResponse)(nil), // 4: syncano.hosting.acme.v1.CreateResponse - (*DeleteRequest)(nil), // 5: syncano.hosting.acme.v1.DeleteRequest - (*DeleteResponse)(nil), // 6: syncano.hosting.acme.v1.DeleteResponse - (*RefreshRequest)(nil), // 7: syncano.hosting.acme.v1.RefreshRequest - (*RefreshResponse)(nil), // 8: syncano.hosting.acme.v1.RefreshResponse - (*ListRequest)(nil), // 9: syncano.hosting.acme.v1.ListRequest - (*ListResponse)(nil), // 10: syncano.hosting.acme.v1.ListResponse - (*timestamp.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*GetRequest)(nil), // 5: syncano.hosting.acme.v1.GetRequest + (*GetResponse)(nil), // 6: syncano.hosting.acme.v1.GetResponse + (*ListRequest)(nil), // 7: syncano.hosting.acme.v1.ListRequest + (*ListResponse)(nil), // 8: syncano.hosting.acme.v1.ListResponse + (*RefreshRequest)(nil), // 9: syncano.hosting.acme.v1.RefreshRequest + (*RefreshResponse)(nil), // 10: syncano.hosting.acme.v1.RefreshResponse + (*DeleteRequest)(nil), // 11: syncano.hosting.acme.v1.DeleteRequest + (*DeleteResponse)(nil), // 12: syncano.hosting.acme.v1.DeleteResponse + (*timestamp.Timestamp)(nil), // 13: google.protobuf.Timestamp } var file_syncano_hosting_acme_v1_acme_proto_depIdxs = []int32{ 0, // 0: syncano.hosting.acme.v1.Certificate.status:type_name -> syncano.hosting.acme.v1.Status - 11, // 1: syncano.hosting.acme.v1.Certificate.expiration:type_name -> google.protobuf.Timestamp + 13, // 1: syncano.hosting.acme.v1.Certificate.expiration:type_name -> google.protobuf.Timestamp 1, // 2: syncano.hosting.acme.v1.Certificate.refresh:type_name -> syncano.hosting.acme.v1.Refresh 1, // 3: syncano.hosting.acme.v1.CreateRequest.refresh:type_name -> syncano.hosting.acme.v1.Refresh 2, // 4: syncano.hosting.acme.v1.CreateResponse.certificate:type_name -> syncano.hosting.acme.v1.Certificate - 11, // 5: syncano.hosting.acme.v1.RefreshRequest.expiration_lte:type_name -> google.protobuf.Timestamp - 2, // 6: syncano.hosting.acme.v1.RefreshResponse.refreshed:type_name -> syncano.hosting.acme.v1.Certificate - 2, // 7: syncano.hosting.acme.v1.RefreshResponse.failed:type_name -> syncano.hosting.acme.v1.Certificate - 11, // 8: syncano.hosting.acme.v1.ListRequest.expiration_lte:type_name -> google.protobuf.Timestamp - 2, // 9: syncano.hosting.acme.v1.ListResponse.certificates:type_name -> syncano.hosting.acme.v1.Certificate - 3, // 10: syncano.hosting.acme.v1.AcmeProxy.Create:input_type -> syncano.hosting.acme.v1.CreateRequest - 5, // 11: syncano.hosting.acme.v1.AcmeProxy.Delete:input_type -> syncano.hosting.acme.v1.DeleteRequest - 7, // 12: syncano.hosting.acme.v1.AcmeProxy.Refresh:input_type -> syncano.hosting.acme.v1.RefreshRequest - 9, // 13: syncano.hosting.acme.v1.AcmeProxy.List:input_type -> syncano.hosting.acme.v1.ListRequest - 4, // 14: syncano.hosting.acme.v1.AcmeProxy.Create:output_type -> syncano.hosting.acme.v1.CreateResponse - 6, // 15: syncano.hosting.acme.v1.AcmeProxy.Delete:output_type -> syncano.hosting.acme.v1.DeleteResponse - 8, // 16: syncano.hosting.acme.v1.AcmeProxy.Refresh:output_type -> syncano.hosting.acme.v1.RefreshResponse - 10, // 17: syncano.hosting.acme.v1.AcmeProxy.List:output_type -> syncano.hosting.acme.v1.ListResponse - 14, // [14:18] is the sub-list for method output_type - 10, // [10:14] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 2, // 5: syncano.hosting.acme.v1.GetResponse.certificate:type_name -> syncano.hosting.acme.v1.Certificate + 13, // 6: syncano.hosting.acme.v1.ListRequest.expiration_lte:type_name -> google.protobuf.Timestamp + 0, // 7: syncano.hosting.acme.v1.ListRequest.status:type_name -> syncano.hosting.acme.v1.Status + 2, // 8: syncano.hosting.acme.v1.ListResponse.certificates:type_name -> syncano.hosting.acme.v1.Certificate + 13, // 9: syncano.hosting.acme.v1.RefreshRequest.expiration_lte:type_name -> google.protobuf.Timestamp + 0, // 10: syncano.hosting.acme.v1.RefreshRequest.status:type_name -> syncano.hosting.acme.v1.Status + 2, // 11: syncano.hosting.acme.v1.RefreshResponse.refreshed:type_name -> syncano.hosting.acme.v1.Certificate + 2, // 12: syncano.hosting.acme.v1.RefreshResponse.failed:type_name -> syncano.hosting.acme.v1.Certificate + 3, // 13: syncano.hosting.acme.v1.AcmeProxy.Create:input_type -> syncano.hosting.acme.v1.CreateRequest + 5, // 14: syncano.hosting.acme.v1.AcmeProxy.Get:input_type -> syncano.hosting.acme.v1.GetRequest + 7, // 15: syncano.hosting.acme.v1.AcmeProxy.List:input_type -> syncano.hosting.acme.v1.ListRequest + 9, // 16: syncano.hosting.acme.v1.AcmeProxy.Refresh:input_type -> syncano.hosting.acme.v1.RefreshRequest + 11, // 17: syncano.hosting.acme.v1.AcmeProxy.Delete:input_type -> syncano.hosting.acme.v1.DeleteRequest + 4, // 18: syncano.hosting.acme.v1.AcmeProxy.Create:output_type -> syncano.hosting.acme.v1.CreateResponse + 6, // 19: syncano.hosting.acme.v1.AcmeProxy.Get:output_type -> syncano.hosting.acme.v1.GetResponse + 8, // 20: syncano.hosting.acme.v1.AcmeProxy.List:output_type -> syncano.hosting.acme.v1.ListResponse + 10, // 21: syncano.hosting.acme.v1.AcmeProxy.Refresh:output_type -> syncano.hosting.acme.v1.RefreshResponse + 12, // 22: syncano.hosting.acme.v1.AcmeProxy.Delete:output_type -> syncano.hosting.acme.v1.DeleteResponse + 18, // [18:23] is the sub-list for method output_type + 13, // [13:18] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_syncano_hosting_acme_v1_acme_proto_init() } @@ -842,7 +980,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRequest); i { + switch v := v.(*GetRequest); i { case 0: return &v.state case 1: @@ -854,7 +992,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteResponse); i { + switch v := v.(*GetResponse); i { case 0: return &v.state case 1: @@ -866,7 +1004,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshRequest); i { + switch v := v.(*ListRequest); i { case 0: return &v.state case 1: @@ -878,7 +1016,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RefreshResponse); i { + switch v := v.(*ListResponse); i { case 0: return &v.state case 1: @@ -890,7 +1028,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { + switch v := v.(*RefreshRequest); i { case 0: return &v.state case 1: @@ -902,7 +1040,31 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { } } file_syncano_hosting_acme_v1_acme_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponse); i { + switch v := v.(*RefreshResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_syncano_hosting_acme_v1_acme_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_syncano_hosting_acme_v1_acme_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteResponse); i { case 0: return &v.state case 1: @@ -920,7 +1082,7 @@ func file_syncano_hosting_acme_v1_acme_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_syncano_hosting_acme_v1_acme_proto_rawDesc, NumEnums: 1, - NumMessages: 10, + NumMessages: 12, NumExtensions: 0, NumServices: 1, }, @@ -948,9 +1110,10 @@ const _ = grpc.SupportPackageIsVersion6 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AcmeProxyClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) - Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) - Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error) + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) + Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error) + Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) } type acmeProxyClient struct { @@ -970,9 +1133,18 @@ func (c *acmeProxyClient) Create(ctx context.Context, in *CreateRequest, opts .. return out, nil } -func (c *acmeProxyClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { - out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/syncano.hosting.acme.v1.AcmeProxy/Delete", in, out, opts...) +func (c *acmeProxyClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { + out := new(GetResponse) + err := c.cc.Invoke(ctx, "/syncano.hosting.acme.v1.AcmeProxy/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *acmeProxyClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { + out := new(ListResponse) + err := c.cc.Invoke(ctx, "/syncano.hosting.acme.v1.AcmeProxy/List", in, out, opts...) if err != nil { return nil, err } @@ -988,9 +1160,9 @@ func (c *acmeProxyClient) Refresh(ctx context.Context, in *RefreshRequest, opts return out, nil } -func (c *acmeProxyClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { - out := new(ListResponse) - err := c.cc.Invoke(ctx, "/syncano.hosting.acme.v1.AcmeProxy/List", in, out, opts...) +func (c *acmeProxyClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { + out := new(DeleteResponse) + err := c.cc.Invoke(ctx, "/syncano.hosting.acme.v1.AcmeProxy/Delete", in, out, opts...) if err != nil { return nil, err } @@ -1000,9 +1172,10 @@ func (c *acmeProxyClient) List(ctx context.Context, in *ListRequest, opts ...grp // AcmeProxyServer is the server API for AcmeProxy service. type AcmeProxyServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) - Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) - Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) + Get(context.Context, *GetRequest) (*GetResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) + Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) + Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) } // UnimplementedAcmeProxyServer can be embedded to have forward compatible implementations. @@ -1012,14 +1185,17 @@ type UnimplementedAcmeProxyServer struct { func (*UnimplementedAcmeProxyServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") } -func (*UnimplementedAcmeProxyServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +func (*UnimplementedAcmeProxyServer) Get(context.Context, *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (*UnimplementedAcmeProxyServer) List(context.Context, *ListRequest) (*ListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func (*UnimplementedAcmeProxyServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Refresh not implemented") } -func (*UnimplementedAcmeProxyServer) List(context.Context, *ListRequest) (*ListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +func (*UnimplementedAcmeProxyServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func RegisterAcmeProxyServer(s *grpc.Server, srv AcmeProxyServer) { @@ -1044,20 +1220,38 @@ func _AcmeProxy_Create_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _AcmeProxy_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRequest) +func _AcmeProxy_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AcmeProxyServer).Delete(ctx, in) + return srv.(AcmeProxyServer).Get(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/syncano.hosting.acme.v1.AcmeProxy/Delete", + FullMethod: "/syncano.hosting.acme.v1.AcmeProxy/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AcmeProxyServer).Delete(ctx, req.(*DeleteRequest)) + return srv.(AcmeProxyServer).Get(ctx, req.(*GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AcmeProxy_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AcmeProxyServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/syncano.hosting.acme.v1.AcmeProxy/List", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AcmeProxyServer).List(ctx, req.(*ListRequest)) } return interceptor(ctx, in, info, handler) } @@ -1080,20 +1274,20 @@ func _AcmeProxy_Refresh_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _AcmeProxy_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRequest) +func _AcmeProxy_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AcmeProxyServer).List(ctx, in) + return srv.(AcmeProxyServer).Delete(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/syncano.hosting.acme.v1.AcmeProxy/List", + FullMethod: "/syncano.hosting.acme.v1.AcmeProxy/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AcmeProxyServer).List(ctx, req.(*ListRequest)) + return srv.(AcmeProxyServer).Delete(ctx, req.(*DeleteRequest)) } return interceptor(ctx, in, info, handler) } @@ -1107,16 +1301,20 @@ var _AcmeProxy_serviceDesc = grpc.ServiceDesc{ Handler: _AcmeProxy_Create_Handler, }, { - MethodName: "Delete", - Handler: _AcmeProxy_Delete_Handler, + MethodName: "Get", + Handler: _AcmeProxy_Get_Handler, + }, + { + MethodName: "List", + Handler: _AcmeProxy_List_Handler, }, { MethodName: "Refresh", Handler: _AcmeProxy_Refresh_Handler, }, { - MethodName: "List", - Handler: _AcmeProxy_List_Handler, + MethodName: "Delete", + Handler: _AcmeProxy_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/gen/python/syncano/hosting/acme/v1/acme_pb2.py b/gen/python/syncano/hosting/acme/v1/acme_pb2.py index 8cdfc2d..741bd5e 100644 --- a/gen/python/syncano/hosting/acme/v1/acme_pb2.py +++ b/gen/python/syncano/hosting/acme/v1/acme_pb2.py @@ -21,7 +21,7 @@ syntax='proto3', serialized_options=b'ZBgithub.com/Syncano/syncanoapis/gen/go/syncano/hosting/acme/v1;acme', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\"syncano/hosting/acme/v1/acme.proto\x12\x17syncano.hosting.acme.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"<\n\x07Refresh\x12\x14\n\x0c\x61uto_refresh\x18\x01 \x01(\x08\x12\x1b\n\x13refresh_before_days\x18\x02 \x01(\r\"\xb1\x01\n\x0b\x43\x65rtificate\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.syncano.hosting.acme.v1.Status\x12.\n\nexpiration\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x07refresh\x18\x04 \x01(\x0b\x32 .syncano.hosting.acme.v1.Refresh\"`\n\rCreateRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x31\n\x07refresh\x18\x02 \x01(\x0b\x32 .syncano.hosting.acme.v1.Refresh\x12\x0c\n\x04wait\x18\x03 \x01(\x08\"K\n\x0e\x43reateResponse\x12\x39\n\x0b\x63\x65rtificate\x18\x01 \x01(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"\x1f\n\rDeleteRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\"\x10\n\x0e\x44\x65leteResponse\"U\n\x0eRefreshRequest\x12\x0f\n\x07\x64omains\x18\x01 \x03(\t\x12\x32\n\x0e\x65xpiration_lte\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x80\x01\n\x0fRefreshResponse\x12\x37\n\trefreshed\x18\x01 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate\x12\x34\n\x06\x66\x61iled\x18\x02 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"R\n\x0bListRequest\x12\x0f\n\x07\x64omains\x18\x01 \x03(\t\x12\x32\n\x0e\x65xpiration_lte\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"J\n\x0cListResponse\x12:\n\x0c\x63\x65rtificates\x18\x01 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate*a\n\x06Status\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x12\n\x0eINVALID_DOMAIN\x10\x02\x12\x1e\n\x1a\x44OMAIN_VERIFICATION_FAILED\x10\x03\x12\x0e\n\nACME_ERROR\x10\x04\x32\xf4\x02\n\tAcmeProxy\x12Y\n\x06\x43reate\x12&.syncano.hosting.acme.v1.CreateRequest\x1a\'.syncano.hosting.acme.v1.CreateResponse\x12Y\n\x06\x44\x65lete\x12&.syncano.hosting.acme.v1.DeleteRequest\x1a\'.syncano.hosting.acme.v1.DeleteResponse\x12\\\n\x07Refresh\x12\'.syncano.hosting.acme.v1.RefreshRequest\x1a(.syncano.hosting.acme.v1.RefreshResponse\x12S\n\x04List\x12$.syncano.hosting.acme.v1.ListRequest\x1a%.syncano.hosting.acme.v1.ListResponseBDZBgithub.com/Syncano/syncanoapis/gen/go/syncano/hosting/acme/v1;acmeb\x06proto3' + serialized_pb=b'\n\"syncano/hosting/acme/v1/acme.proto\x12\x17syncano.hosting.acme.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"<\n\x07Refresh\x12\x14\n\x0c\x61uto_refresh\x18\x01 \x01(\x08\x12\x1b\n\x13refresh_before_days\x18\x02 \x01(\r\"\xb1\x01\n\x0b\x43\x65rtificate\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12/\n\x06status\x18\x02 \x01(\x0e\x32\x1f.syncano.hosting.acme.v1.Status\x12.\n\nexpiration\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x07refresh\x18\x04 \x01(\x0b\x32 .syncano.hosting.acme.v1.Refresh\"`\n\rCreateRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x31\n\x07refresh\x18\x02 \x01(\x0b\x32 .syncano.hosting.acme.v1.Refresh\x12\x0c\n\x04wait\x18\x03 \x01(\x08\"K\n\x0e\x43reateResponse\x12\x39\n\x0b\x63\x65rtificate\x18\x01 \x01(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"\x1c\n\nGetRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\"H\n\x0bGetResponse\x12\x39\n\x0b\x63\x65rtificate\x18\x01 \x01(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"\x83\x01\n\x0bListRequest\x12\x0f\n\x07\x64omains\x18\x01 \x03(\t\x12\x32\n\x0e\x65xpiration_lte\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x06status\x18\x03 \x01(\x0e\x32\x1f.syncano.hosting.acme.v1.Status\"J\n\x0cListResponse\x12:\n\x0c\x63\x65rtificates\x18\x01 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"\x86\x01\n\x0eRefreshRequest\x12\x0f\n\x07\x64omains\x18\x01 \x03(\t\x12\x32\n\x0e\x65xpiration_lte\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x06status\x18\x03 \x01(\x0e\x32\x1f.syncano.hosting.acme.v1.Status\"\x80\x01\n\x0fRefreshResponse\x12\x37\n\trefreshed\x18\x01 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate\x12\x34\n\x06\x66\x61iled\x18\x02 \x03(\x0b\x32$.syncano.hosting.acme.v1.Certificate\"\x1f\n\rDeleteRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\"\x10\n\x0e\x44\x65leteResponse*a\n\x06Status\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x12\n\x0eINVALID_DOMAIN\x10\x02\x12\x1e\n\x1a\x44OMAIN_VERIFICATION_FAILED\x10\x03\x12\x0e\n\nACME_ERROR\x10\x04\x32\xc6\x03\n\tAcmeProxy\x12Y\n\x06\x43reate\x12&.syncano.hosting.acme.v1.CreateRequest\x1a\'.syncano.hosting.acme.v1.CreateResponse\x12P\n\x03Get\x12#.syncano.hosting.acme.v1.GetRequest\x1a$.syncano.hosting.acme.v1.GetResponse\x12S\n\x04List\x12$.syncano.hosting.acme.v1.ListRequest\x1a%.syncano.hosting.acme.v1.ListResponse\x12\\\n\x07Refresh\x12\'.syncano.hosting.acme.v1.RefreshRequest\x1a(.syncano.hosting.acme.v1.RefreshResponse\x12Y\n\x06\x44\x65lete\x12&.syncano.hosting.acme.v1.DeleteRequest\x1a\'.syncano.hosting.acme.v1.DeleteResponseBDZBgithub.com/Syncano/syncanoapis/gen/go/syncano/hosting/acme/v1;acmeb\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -60,8 +60,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=942, - serialized_end=1039, + serialized_start=1146, + serialized_end=1243, ) _sym_db.RegisterEnumDescriptor(_STATUS) @@ -244,16 +244,16 @@ ) -_DELETEREQUEST = _descriptor.Descriptor( - name='DeleteRequest', - full_name='syncano.hosting.acme.v1.DeleteRequest', +_GETREQUEST = _descriptor.Descriptor( + name='GetRequest', + full_name='syncano.hosting.acme.v1.GetRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='domain', full_name='syncano.hosting.acme.v1.DeleteRequest.domain', index=0, + name='domain', full_name='syncano.hosting.acme.v1.GetRequest.domain', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -272,18 +272,25 @@ oneofs=[ ], serialized_start=513, - serialized_end=544, + serialized_end=541, ) -_DELETERESPONSE = _descriptor.Descriptor( - name='DeleteResponse', - full_name='syncano.hosting.acme.v1.DeleteResponse', +_GETRESPONSE = _descriptor.Descriptor( + name='GetResponse', + full_name='syncano.hosting.acme.v1.GetResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ + _descriptor.FieldDescriptor( + name='certificate', full_name='syncano.hosting.acme.v1.GetResponse.certificate', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -296,8 +303,86 @@ extension_ranges=[], oneofs=[ ], - serialized_start=546, - serialized_end=562, + serialized_start=543, + serialized_end=615, +) + + +_LISTREQUEST = _descriptor.Descriptor( + name='ListRequest', + full_name='syncano.hosting.acme.v1.ListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='domains', full_name='syncano.hosting.acme.v1.ListRequest.domains', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='expiration_lte', full_name='syncano.hosting.acme.v1.ListRequest.expiration_lte', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='syncano.hosting.acme.v1.ListRequest.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=618, + serialized_end=749, +) + + +_LISTRESPONSE = _descriptor.Descriptor( + name='ListResponse', + full_name='syncano.hosting.acme.v1.ListResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='certificates', full_name='syncano.hosting.acme.v1.ListResponse.certificates', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=751, + serialized_end=825, ) @@ -323,6 +408,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='status', full_name='syncano.hosting.acme.v1.RefreshRequest.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -335,8 +427,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=564, - serialized_end=649, + serialized_start=828, + serialized_end=962, ) @@ -374,30 +466,23 @@ extension_ranges=[], oneofs=[ ], - serialized_start=652, - serialized_end=780, + serialized_start=965, + serialized_end=1093, ) -_LISTREQUEST = _descriptor.Descriptor( - name='ListRequest', - full_name='syncano.hosting.acme.v1.ListRequest', +_DELETEREQUEST = _descriptor.Descriptor( + name='DeleteRequest', + full_name='syncano.hosting.acme.v1.DeleteRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='domains', full_name='syncano.hosting.acme.v1.ListRequest.domains', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='expiration_lte', full_name='syncano.hosting.acme.v1.ListRequest.expiration_lte', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='domain', full_name='syncano.hosting.acme.v1.DeleteRequest.domain', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), @@ -413,26 +498,19 @@ extension_ranges=[], oneofs=[ ], - serialized_start=782, - serialized_end=864, + serialized_start=1095, + serialized_end=1126, ) -_LISTRESPONSE = _descriptor.Descriptor( - name='ListResponse', - full_name='syncano.hosting.acme.v1.ListResponse', +_DELETERESPONSE = _descriptor.Descriptor( + name='DeleteResponse', + full_name='syncano.hosting.acme.v1.DeleteResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ - _descriptor.FieldDescriptor( - name='certificates', full_name='syncano.hosting.acme.v1.ListResponse.certificates', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -445,8 +523,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=866, - serialized_end=940, + serialized_start=1128, + serialized_end=1144, ) _CERTIFICATE.fields_by_name['status'].enum_type = _STATUS @@ -454,21 +532,26 @@ _CERTIFICATE.fields_by_name['refresh'].message_type = _REFRESH _CREATEREQUEST.fields_by_name['refresh'].message_type = _REFRESH _CREATERESPONSE.fields_by_name['certificate'].message_type = _CERTIFICATE +_GETRESPONSE.fields_by_name['certificate'].message_type = _CERTIFICATE +_LISTREQUEST.fields_by_name['expiration_lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LISTREQUEST.fields_by_name['status'].enum_type = _STATUS +_LISTRESPONSE.fields_by_name['certificates'].message_type = _CERTIFICATE _REFRESHREQUEST.fields_by_name['expiration_lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_REFRESHREQUEST.fields_by_name['status'].enum_type = _STATUS _REFRESHRESPONSE.fields_by_name['refreshed'].message_type = _CERTIFICATE _REFRESHRESPONSE.fields_by_name['failed'].message_type = _CERTIFICATE -_LISTREQUEST.fields_by_name['expiration_lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_LISTRESPONSE.fields_by_name['certificates'].message_type = _CERTIFICATE DESCRIPTOR.message_types_by_name['Refresh'] = _REFRESH DESCRIPTOR.message_types_by_name['Certificate'] = _CERTIFICATE DESCRIPTOR.message_types_by_name['CreateRequest'] = _CREATEREQUEST DESCRIPTOR.message_types_by_name['CreateResponse'] = _CREATERESPONSE -DESCRIPTOR.message_types_by_name['DeleteRequest'] = _DELETEREQUEST -DESCRIPTOR.message_types_by_name['DeleteResponse'] = _DELETERESPONSE -DESCRIPTOR.message_types_by_name['RefreshRequest'] = _REFRESHREQUEST -DESCRIPTOR.message_types_by_name['RefreshResponse'] = _REFRESHRESPONSE +DESCRIPTOR.message_types_by_name['GetRequest'] = _GETREQUEST +DESCRIPTOR.message_types_by_name['GetResponse'] = _GETRESPONSE DESCRIPTOR.message_types_by_name['ListRequest'] = _LISTREQUEST DESCRIPTOR.message_types_by_name['ListResponse'] = _LISTRESPONSE +DESCRIPTOR.message_types_by_name['RefreshRequest'] = _REFRESHREQUEST +DESCRIPTOR.message_types_by_name['RefreshResponse'] = _REFRESHRESPONSE +DESCRIPTOR.message_types_by_name['DeleteRequest'] = _DELETEREQUEST +DESCRIPTOR.message_types_by_name['DeleteResponse'] = _DELETERESPONSE DESCRIPTOR.enum_types_by_name['Status'] = _STATUS _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -500,19 +583,33 @@ }) _sym_db.RegisterMessage(CreateResponse) -DeleteRequest = _reflection.GeneratedProtocolMessageType('DeleteRequest', (_message.Message,), { - 'DESCRIPTOR' : _DELETEREQUEST, +GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETREQUEST, '__module__' : 'syncano.hosting.acme.v1.acme_pb2' - # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.DeleteRequest) + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.GetRequest) }) -_sym_db.RegisterMessage(DeleteRequest) +_sym_db.RegisterMessage(GetRequest) -DeleteResponse = _reflection.GeneratedProtocolMessageType('DeleteResponse', (_message.Message,), { - 'DESCRIPTOR' : _DELETERESPONSE, +GetResponse = _reflection.GeneratedProtocolMessageType('GetResponse', (_message.Message,), { + 'DESCRIPTOR' : _GETRESPONSE, '__module__' : 'syncano.hosting.acme.v1.acme_pb2' - # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.DeleteResponse) + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.GetResponse) }) -_sym_db.RegisterMessage(DeleteResponse) +_sym_db.RegisterMessage(GetResponse) + +ListRequest = _reflection.GeneratedProtocolMessageType('ListRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTREQUEST, + '__module__' : 'syncano.hosting.acme.v1.acme_pb2' + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.ListRequest) + }) +_sym_db.RegisterMessage(ListRequest) + +ListResponse = _reflection.GeneratedProtocolMessageType('ListResponse', (_message.Message,), { + 'DESCRIPTOR' : _LISTRESPONSE, + '__module__' : 'syncano.hosting.acme.v1.acme_pb2' + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.ListResponse) + }) +_sym_db.RegisterMessage(ListResponse) RefreshRequest = _reflection.GeneratedProtocolMessageType('RefreshRequest', (_message.Message,), { 'DESCRIPTOR' : _REFRESHREQUEST, @@ -528,19 +625,19 @@ }) _sym_db.RegisterMessage(RefreshResponse) -ListRequest = _reflection.GeneratedProtocolMessageType('ListRequest', (_message.Message,), { - 'DESCRIPTOR' : _LISTREQUEST, +DeleteRequest = _reflection.GeneratedProtocolMessageType('DeleteRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEREQUEST, '__module__' : 'syncano.hosting.acme.v1.acme_pb2' - # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.ListRequest) + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.DeleteRequest) }) -_sym_db.RegisterMessage(ListRequest) +_sym_db.RegisterMessage(DeleteRequest) -ListResponse = _reflection.GeneratedProtocolMessageType('ListResponse', (_message.Message,), { - 'DESCRIPTOR' : _LISTRESPONSE, +DeleteResponse = _reflection.GeneratedProtocolMessageType('DeleteResponse', (_message.Message,), { + 'DESCRIPTOR' : _DELETERESPONSE, '__module__' : 'syncano.hosting.acme.v1.acme_pb2' - # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.ListResponse) + # @@protoc_insertion_point(class_scope:syncano.hosting.acme.v1.DeleteResponse) }) -_sym_db.RegisterMessage(ListResponse) +_sym_db.RegisterMessage(DeleteResponse) DESCRIPTOR._options = None @@ -552,8 +649,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=1042, - serialized_end=1414, + serialized_start=1246, + serialized_end=1700, methods=[ _descriptor.MethodDescriptor( name='Create', @@ -566,19 +663,29 @@ create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( - name='Delete', - full_name='syncano.hosting.acme.v1.AcmeProxy.Delete', + name='Get', + full_name='syncano.hosting.acme.v1.AcmeProxy.Get', index=1, containing_service=None, - input_type=_DELETEREQUEST, - output_type=_DELETERESPONSE, + input_type=_GETREQUEST, + output_type=_GETRESPONSE, + serialized_options=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.MethodDescriptor( + name='List', + full_name='syncano.hosting.acme.v1.AcmeProxy.List', + index=2, + containing_service=None, + input_type=_LISTREQUEST, + output_type=_LISTRESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='Refresh', full_name='syncano.hosting.acme.v1.AcmeProxy.Refresh', - index=2, + index=3, containing_service=None, input_type=_REFRESHREQUEST, output_type=_REFRESHRESPONSE, @@ -586,12 +693,12 @@ create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( - name='List', - full_name='syncano.hosting.acme.v1.AcmeProxy.List', - index=3, + name='Delete', + full_name='syncano.hosting.acme.v1.AcmeProxy.Delete', + index=4, containing_service=None, - input_type=_LISTREQUEST, - output_type=_LISTRESPONSE, + input_type=_DELETEREQUEST, + output_type=_DELETERESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, ), diff --git a/gen/python/syncano/hosting/acme/v1/acme_pb2_grpc.py b/gen/python/syncano/hosting/acme/v1/acme_pb2_grpc.py index 976a48f..1b51986 100644 --- a/gen/python/syncano/hosting/acme/v1/acme_pb2_grpc.py +++ b/gen/python/syncano/hosting/acme/v1/acme_pb2_grpc.py @@ -19,20 +19,25 @@ def __init__(self, channel): request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.CreateRequest.SerializeToString, response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.CreateResponse.FromString, ) - self.Delete = channel.unary_unary( - '/syncano.hosting.acme.v1.AcmeProxy/Delete', - request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.SerializeToString, - response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.FromString, + self.Get = channel.unary_unary( + '/syncano.hosting.acme.v1.AcmeProxy/Get', + request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetRequest.SerializeToString, + response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetResponse.FromString, + ) + self.List = channel.unary_unary( + '/syncano.hosting.acme.v1.AcmeProxy/List', + request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.SerializeToString, + response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.FromString, ) self.Refresh = channel.unary_unary( '/syncano.hosting.acme.v1.AcmeProxy/Refresh', request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.RefreshRequest.SerializeToString, response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.RefreshResponse.FromString, ) - self.List = channel.unary_unary( - '/syncano.hosting.acme.v1.AcmeProxy/List', - request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.SerializeToString, - response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.FromString, + self.Delete = channel.unary_unary( + '/syncano.hosting.acme.v1.AcmeProxy/Delete', + request_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.SerializeToString, + response_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.FromString, ) @@ -45,7 +50,13 @@ def Create(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def Delete(self, request, context): + def Get(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def List(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -57,7 +68,7 @@ def Refresh(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def List(self, request, context): + def Delete(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -71,20 +82,25 @@ def add_AcmeProxyServicer_to_server(servicer, server): request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.CreateRequest.FromString, response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.CreateResponse.SerializeToString, ), - 'Delete': grpc.unary_unary_rpc_method_handler( - servicer.Delete, - request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.FromString, - response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.SerializeToString, + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetRequest.FromString, + response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetResponse.SerializeToString, + ), + 'List': grpc.unary_unary_rpc_method_handler( + servicer.List, + request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.FromString, + response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.SerializeToString, ), 'Refresh': grpc.unary_unary_rpc_method_handler( servicer.Refresh, request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.RefreshRequest.FromString, response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.RefreshResponse.SerializeToString, ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.FromString, - response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.SerializeToString, + 'Delete': grpc.unary_unary_rpc_method_handler( + servicer.Delete, + request_deserializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.FromString, + response_serializer=syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -114,7 +130,7 @@ def Create(request, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def Delete(request, + def Get(request, target, options=(), channel_credentials=None, @@ -124,9 +140,26 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/syncano.hosting.acme.v1.AcmeProxy/Delete', - syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.SerializeToString, - syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/syncano.hosting.acme.v1.AcmeProxy/Get', + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetRequest.SerializeToString, + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.GetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/syncano.hosting.acme.v1.AcmeProxy/List', + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.SerializeToString, + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -148,7 +181,7 @@ def Refresh(request, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod - def List(request, + def Delete(request, target, options=(), channel_credentials=None, @@ -158,8 +191,8 @@ def List(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/syncano.hosting.acme.v1.AcmeProxy/List', - syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListRequest.SerializeToString, - syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.ListResponse.FromString, + return grpc.experimental.unary_unary(request, target, '/syncano.hosting.acme.v1.AcmeProxy/Delete', + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteRequest.SerializeToString, + syncano_dot_hosting_dot_acme_dot_v1_dot_acme__pb2.DeleteResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/syncano/hosting/acme/v1/acme.proto b/syncano/hosting/acme/v1/acme.proto index ab518c4..a35faf9 100644 --- a/syncano/hosting/acme/v1/acme.proto +++ b/syncano/hosting/acme/v1/acme.proto @@ -6,9 +6,10 @@ import "google/protobuf/timestamp.proto"; service AcmeProxy { rpc Create (CreateRequest) returns (CreateResponse); - rpc Delete (DeleteRequest) returns (DeleteResponse); - rpc Refresh (RefreshRequest) returns (RefreshResponse); + rpc Get (GetRequest) returns (GetResponse); rpc List (ListRequest) returns (ListResponse); + rpc Refresh (RefreshRequest) returns (RefreshResponse); + rpc Delete (DeleteRequest) returns (DeleteResponse); } enum Status { @@ -43,18 +44,31 @@ message CreateResponse { Certificate certificate = 1; } -// Delete -message DeleteRequest { - string domain = 1; +// Get +message GetRequest { + string domain = 1; } -message DeleteResponse { +message GetResponse { + Certificate certificate = 1; +} + +// List +message ListRequest { + repeated string domains = 1; // optional + google.protobuf.Timestamp expiration_lte = 2; // optional + Status status = 3; // optional +} + +message ListResponse { + repeated Certificate certificates = 1; } // Refresh message RefreshRequest { repeated string domains = 1; // optional google.protobuf.Timestamp expiration_lte = 2; // optional + Status status = 3; // optional } message RefreshResponse { @@ -62,12 +76,10 @@ message RefreshResponse { repeated Certificate failed = 2; } -// List -message ListRequest { - repeated string domains = 1; // optional - google.protobuf.Timestamp expiration_lte = 2; // optional +// Delete +message DeleteRequest { + string domain = 1; } -message ListResponse { - repeated Certificate certificates = 1; +message DeleteResponse { }