Browse Source

cloudflare增加universalCertificate接口

YuXinLong 1 year ago
parent
commit
888830822a

+ 252 - 73
cloudflareApi/certificate/certificate.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 // 	protoc-gen-go v1.28.1
-// 	protoc        v3.21.4
+// 	protoc        v3.19.1
 // source: proto/certificate.proto
 
 package certificate
@@ -257,6 +257,77 @@ func (x *EditCertificateRequestCloudflare) GetPrivateKey() string {
 	return ""
 }
 
+type UniversalCertificateRequestCloudflare struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	ApiKey   string `protobuf:"bytes,1,opt,name=apiKey,proto3" json:"apiKey,omitempty"`
+	ApiEmail string `protobuf:"bytes,2,opt,name=apiEmail,proto3" json:"apiEmail,omitempty"`
+	ZoneName string `protobuf:"bytes,3,opt,name=zoneName,proto3" json:"zoneName,omitempty"`
+	Enable   bool   `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
+}
+
+func (x *UniversalCertificateRequestCloudflare) Reset() {
+	*x = UniversalCertificateRequestCloudflare{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_proto_certificate_proto_msgTypes[3]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *UniversalCertificateRequestCloudflare) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UniversalCertificateRequestCloudflare) ProtoMessage() {}
+
+func (x *UniversalCertificateRequestCloudflare) ProtoReflect() protoreflect.Message {
+	mi := &file_proto_certificate_proto_msgTypes[3]
+	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 UniversalCertificateRequestCloudflare.ProtoReflect.Descriptor instead.
+func (*UniversalCertificateRequestCloudflare) Descriptor() ([]byte, []int) {
+	return file_proto_certificate_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *UniversalCertificateRequestCloudflare) GetApiKey() string {
+	if x != nil {
+		return x.ApiKey
+	}
+	return ""
+}
+
+func (x *UniversalCertificateRequestCloudflare) GetApiEmail() string {
+	if x != nil {
+		return x.ApiEmail
+	}
+	return ""
+}
+
+func (x *UniversalCertificateRequestCloudflare) GetZoneName() string {
+	if x != nil {
+		return x.ZoneName
+	}
+	return ""
+}
+
+func (x *UniversalCertificateRequestCloudflare) GetEnable() bool {
+	if x != nil {
+		return x.Enable
+	}
+	return false
+}
+
 type CreateCertificateReplyCloudflare struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -269,7 +340,7 @@ type CreateCertificateReplyCloudflare struct {
 func (x *CreateCertificateReplyCloudflare) Reset() {
 	*x = CreateCertificateReplyCloudflare{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_proto_certificate_proto_msgTypes[3]
+		mi := &file_proto_certificate_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -282,7 +353,7 @@ func (x *CreateCertificateReplyCloudflare) String() string {
 func (*CreateCertificateReplyCloudflare) ProtoMessage() {}
 
 func (x *CreateCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
-	mi := &file_proto_certificate_proto_msgTypes[3]
+	mi := &file_proto_certificate_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -295,7 +366,7 @@ func (x *CreateCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use CreateCertificateReplyCloudflare.ProtoReflect.Descriptor instead.
 func (*CreateCertificateReplyCloudflare) Descriptor() ([]byte, []int) {
-	return file_proto_certificate_proto_rawDescGZIP(), []int{3}
+	return file_proto_certificate_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *CreateCertificateReplyCloudflare) GetSuccess() bool {
@@ -324,7 +395,7 @@ type DeleteCertificateReplyCloudflare struct {
 func (x *DeleteCertificateReplyCloudflare) Reset() {
 	*x = DeleteCertificateReplyCloudflare{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_proto_certificate_proto_msgTypes[4]
+		mi := &file_proto_certificate_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -337,7 +408,7 @@ func (x *DeleteCertificateReplyCloudflare) String() string {
 func (*DeleteCertificateReplyCloudflare) ProtoMessage() {}
 
 func (x *DeleteCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
-	mi := &file_proto_certificate_proto_msgTypes[4]
+	mi := &file_proto_certificate_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -350,7 +421,7 @@ func (x *DeleteCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use DeleteCertificateReplyCloudflare.ProtoReflect.Descriptor instead.
 func (*DeleteCertificateReplyCloudflare) Descriptor() ([]byte, []int) {
-	return file_proto_certificate_proto_rawDescGZIP(), []int{4}
+	return file_proto_certificate_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *DeleteCertificateReplyCloudflare) GetSuccess() bool {
@@ -379,7 +450,7 @@ type EditCertificateReplyCloudflare struct {
 func (x *EditCertificateReplyCloudflare) Reset() {
 	*x = EditCertificateReplyCloudflare{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_proto_certificate_proto_msgTypes[5]
+		mi := &file_proto_certificate_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -392,7 +463,7 @@ func (x *EditCertificateReplyCloudflare) String() string {
 func (*EditCertificateReplyCloudflare) ProtoMessage() {}
 
 func (x *EditCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
-	mi := &file_proto_certificate_proto_msgTypes[5]
+	mi := &file_proto_certificate_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -405,7 +476,7 @@ func (x *EditCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use EditCertificateReplyCloudflare.ProtoReflect.Descriptor instead.
 func (*EditCertificateReplyCloudflare) Descriptor() ([]byte, []int) {
-	return file_proto_certificate_proto_rawDescGZIP(), []int{5}
+	return file_proto_certificate_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *EditCertificateReplyCloudflare) GetSuccess() bool {
@@ -422,6 +493,61 @@ func (x *EditCertificateReplyCloudflare) GetId() string {
 	return ""
 }
 
+type UniversalCertificateReplyCloudflare struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
+	Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
+}
+
+func (x *UniversalCertificateReplyCloudflare) Reset() {
+	*x = UniversalCertificateReplyCloudflare{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_proto_certificate_proto_msgTypes[7]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *UniversalCertificateReplyCloudflare) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UniversalCertificateReplyCloudflare) ProtoMessage() {}
+
+func (x *UniversalCertificateReplyCloudflare) ProtoReflect() protoreflect.Message {
+	mi := &file_proto_certificate_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 UniversalCertificateReplyCloudflare.ProtoReflect.Descriptor instead.
+func (*UniversalCertificateReplyCloudflare) Descriptor() ([]byte, []int) {
+	return file_proto_certificate_proto_rawDescGZIP(), []int{7}
+}
+
+func (x *UniversalCertificateReplyCloudflare) GetSuccess() bool {
+	if x != nil {
+		return x.Success
+	}
+	return false
+}
+
+func (x *UniversalCertificateReplyCloudflare) GetEnabled() bool {
+	if x != nil {
+		return x.Enabled
+	}
+	return false
+}
+
 var File_proto_certificate_proto protoreflect.FileDescriptor
 
 var file_proto_certificate_proto_rawDesc = []byte{
@@ -463,59 +589,84 @@ var file_proto_certificate_proto_rawDesc = []byte{
 	0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
 	0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a,
 	0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x4c, 0x0a,
-	0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x8f, 0x01,
+	0x0a, 0x25, 0x55, 0x6e, 0x69, 0x76, 0x65, 0x72, 0x73, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69,
+	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f,
+	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x70, 0x69, 0x4b, 0x65,
+	0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x12,
+	0x1a, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x08, 0x61, 0x70, 0x69, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x7a,
+	0x6f, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x7a,
+	0x6f, 0x6e, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22,
+	0x4c, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
+	0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c,
+	0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a,
+	0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4c, 0x0a,
+	0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
 	0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72,
 	0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
 	0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69,
-	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4c, 0x0a, 0x20, 0x44,
-	0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
-	0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12,
-	0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
-	0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
-	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4a, 0x0a, 0x1e, 0x45, 0x64, 0x69,
-	0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c,
-	0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73,
-	0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75,
-	0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x02, 0x69, 0x64, 0x32, 0xf1, 0x03, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
-	0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12,
-	0x9d, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
-	0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x43, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61,
-	0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74,
-	0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65,
-	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
-	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x41, 0x2e, 0x63, 0x6c, 0x6f,
-	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65,
-	0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65,
-	0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x12,
-	0x9d, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
-	0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x43, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61,
-	0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74,
-	0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65,
-	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
-	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x41, 0x2e, 0x63, 0x6c, 0x6f,
-	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65,
-	0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x65, 0x6c,
-	0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x12,
-	0x97, 0x01, 0x0a, 0x0f, 0x45, 0x64, 0x69, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
-	0x61, 0x74, 0x65, 0x12, 0x41, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65,
+	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4a, 0x0a, 0x1e, 0x45,
+	0x64, 0x69, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
+	0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a,
+	0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
+	0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x59, 0x0a, 0x23, 0x55, 0x6e, 0x69, 0x76, 0x65,
+	0x72, 0x73, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12, 0x18,
+	0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
+	0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,
+	0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
+	0x65, 0x64, 0x32, 0x9a, 0x05, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x12, 0x9d, 0x01, 0x0a,
+	0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x12, 0x43, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41,
+	0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
+	0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69,
+	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f,
+	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x41, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66,
+	0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65,
+	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+	0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x12, 0x9d, 0x01, 0x0a,
+	0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x12, 0x43, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41,
+	0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
+	0x63, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69,
+	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f,
+	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x41, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66,
+	0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65,
+	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+	0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x12, 0x97, 0x01, 0x0a,
+	0x0f, 0x45, 0x64, 0x69, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
+	0x12, 0x41, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69,
+	0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c,
+	0x61, 0x72, 0x65, 0x1a, 0x3f, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65,
 	0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
 	0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
-	0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x75,
-	0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x3f, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c,
-	0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72,
-	0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x43, 0x65, 0x72,
-	0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f,
-	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x42, 0x51, 0x0a, 0x1e, 0x69, 0x6f, 0x2e,
-	0x67, 0x72, 0x70, 0x63, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x2e,
-	0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x10, 0x63, 0x65, 0x72,
-	0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
-	0x1b, 0x2e, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69,
-	0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x33,
+	0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66,
+	0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x55, 0x6e, 0x69, 0x76, 0x65,
+	0x72, 0x73, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12,
+	0x46, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e,
+	0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
+	0x65, 0x2e, 0x55, 0x6e, 0x69, 0x76, 0x65, 0x72, 0x73, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69,
+	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6c, 0x6f,
+	0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x1a, 0x44, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66,
+	0x6c, 0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x65,
+	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x6e, 0x69, 0x76, 0x65, 0x72,
+	0x73, 0x61, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
+	0x70, 0x6c, 0x79, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c, 0x61, 0x72, 0x65, 0x22, 0x00, 0x42,
+	0x51, 0x0a, 0x1e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
+	0x66, 0x6c, 0x61, 0x72, 0x65, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
+	0x65, 0x42, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x72,
+	0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1b, 0x2e, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6c,
+	0x61, 0x72, 0x65, 0x41, 0x70, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
+	0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -530,24 +681,28 @@ func file_proto_certificate_proto_rawDescGZIP() []byte {
 	return file_proto_certificate_proto_rawDescData
 }
 
-var file_proto_certificate_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_proto_certificate_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
 var file_proto_certificate_proto_goTypes = []interface{}{
-	(*CreateCertificateRequestCloudflare)(nil), // 0: cloudflareApi.cache.Certificate.CreateCertificateRequestCloudflare
-	(*DeleteCertificateRequestCloudflare)(nil), // 1: cloudflareApi.cache.Certificate.DeleteCertificateRequestCloudflare
-	(*EditCertificateRequestCloudflare)(nil),   // 2: cloudflareApi.cache.Certificate.EditCertificateRequestCloudflare
-	(*CreateCertificateReplyCloudflare)(nil),   // 3: cloudflareApi.cache.Certificate.CreateCertificateReplyCloudflare
-	(*DeleteCertificateReplyCloudflare)(nil),   // 4: cloudflareApi.cache.Certificate.DeleteCertificateReplyCloudflare
-	(*EditCertificateReplyCloudflare)(nil),     // 5: cloudflareApi.cache.Certificate.EditCertificateReplyCloudflare
+	(*CreateCertificateRequestCloudflare)(nil),    // 0: cloudflareApi.cache.Certificate.CreateCertificateRequestCloudflare
+	(*DeleteCertificateRequestCloudflare)(nil),    // 1: cloudflareApi.cache.Certificate.DeleteCertificateRequestCloudflare
+	(*EditCertificateRequestCloudflare)(nil),      // 2: cloudflareApi.cache.Certificate.EditCertificateRequestCloudflare
+	(*UniversalCertificateRequestCloudflare)(nil), // 3: cloudflareApi.cache.Certificate.UniversalCertificateRequestCloudflare
+	(*CreateCertificateReplyCloudflare)(nil),      // 4: cloudflareApi.cache.Certificate.CreateCertificateReplyCloudflare
+	(*DeleteCertificateReplyCloudflare)(nil),      // 5: cloudflareApi.cache.Certificate.DeleteCertificateReplyCloudflare
+	(*EditCertificateReplyCloudflare)(nil),        // 6: cloudflareApi.cache.Certificate.EditCertificateReplyCloudflare
+	(*UniversalCertificateReplyCloudflare)(nil),   // 7: cloudflareApi.cache.Certificate.UniversalCertificateReplyCloudflare
 }
 var file_proto_certificate_proto_depIdxs = []int32{
 	0, // 0: cloudflareApi.cache.Certificate.CertificateCloudflare.CreateCertificate:input_type -> cloudflareApi.cache.Certificate.CreateCertificateRequestCloudflare
 	1, // 1: cloudflareApi.cache.Certificate.CertificateCloudflare.DeleteCertificate:input_type -> cloudflareApi.cache.Certificate.DeleteCertificateRequestCloudflare
 	2, // 2: cloudflareApi.cache.Certificate.CertificateCloudflare.EditCertificate:input_type -> cloudflareApi.cache.Certificate.EditCertificateRequestCloudflare
-	3, // 3: cloudflareApi.cache.Certificate.CertificateCloudflare.CreateCertificate:output_type -> cloudflareApi.cache.Certificate.CreateCertificateReplyCloudflare
-	4, // 4: cloudflareApi.cache.Certificate.CertificateCloudflare.DeleteCertificate:output_type -> cloudflareApi.cache.Certificate.DeleteCertificateReplyCloudflare
-	5, // 5: cloudflareApi.cache.Certificate.CertificateCloudflare.EditCertificate:output_type -> cloudflareApi.cache.Certificate.EditCertificateReplyCloudflare
-	3, // [3:6] is the sub-list for method output_type
-	0, // [0:3] is the sub-list for method input_type
+	3, // 3: cloudflareApi.cache.Certificate.CertificateCloudflare.UniversalCertificate:input_type -> cloudflareApi.cache.Certificate.UniversalCertificateRequestCloudflare
+	4, // 4: cloudflareApi.cache.Certificate.CertificateCloudflare.CreateCertificate:output_type -> cloudflareApi.cache.Certificate.CreateCertificateReplyCloudflare
+	5, // 5: cloudflareApi.cache.Certificate.CertificateCloudflare.DeleteCertificate:output_type -> cloudflareApi.cache.Certificate.DeleteCertificateReplyCloudflare
+	6, // 6: cloudflareApi.cache.Certificate.CertificateCloudflare.EditCertificate:output_type -> cloudflareApi.cache.Certificate.EditCertificateReplyCloudflare
+	7, // 7: cloudflareApi.cache.Certificate.CertificateCloudflare.UniversalCertificate:output_type -> cloudflareApi.cache.Certificate.UniversalCertificateReplyCloudflare
+	4, // [4:8] is the sub-list for method output_type
+	0, // [0:4] is the sub-list for method input_type
 	0, // [0:0] is the sub-list for extension type_name
 	0, // [0:0] is the sub-list for extension extendee
 	0, // [0:0] is the sub-list for field type_name
@@ -596,7 +751,7 @@ func file_proto_certificate_proto_init() {
 			}
 		}
 		file_proto_certificate_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CreateCertificateReplyCloudflare); i {
+			switch v := v.(*UniversalCertificateRequestCloudflare); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -608,7 +763,7 @@ func file_proto_certificate_proto_init() {
 			}
 		}
 		file_proto_certificate_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*DeleteCertificateReplyCloudflare); i {
+			switch v := v.(*CreateCertificateReplyCloudflare); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -620,6 +775,18 @@ func file_proto_certificate_proto_init() {
 			}
 		}
 		file_proto_certificate_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*DeleteCertificateReplyCloudflare); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_proto_certificate_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*EditCertificateReplyCloudflare); i {
 			case 0:
 				return &v.state
@@ -631,6 +798,18 @@ func file_proto_certificate_proto_init() {
 				return nil
 			}
 		}
+		file_proto_certificate_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*UniversalCertificateReplyCloudflare); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -638,7 +817,7 @@ func file_proto_certificate_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_proto_certificate_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   6,
+			NumMessages:   8,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 37 - 1
cloudflareApi/certificate/certificate_grpc.pb.go

@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 // versions:
 // - protoc-gen-go-grpc v1.2.0
-// - protoc             v3.21.4
+// - protoc             v3.19.1
 // source: proto/certificate.proto
 
 package certificate
@@ -26,6 +26,7 @@ type CertificateCloudflareClient interface {
 	CreateCertificate(ctx context.Context, in *CreateCertificateRequestCloudflare, opts ...grpc.CallOption) (*CreateCertificateReplyCloudflare, error)
 	DeleteCertificate(ctx context.Context, in *DeleteCertificateRequestCloudflare, opts ...grpc.CallOption) (*DeleteCertificateReplyCloudflare, error)
 	EditCertificate(ctx context.Context, in *EditCertificateRequestCloudflare, opts ...grpc.CallOption) (*EditCertificateReplyCloudflare, error)
+	UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error)
 }
 
 type certificateCloudflareClient struct {
@@ -63,6 +64,15 @@ func (c *certificateCloudflareClient) EditCertificate(ctx context.Context, in *E
 	return out, nil
 }
 
+func (c *certificateCloudflareClient) UniversalCertificate(ctx context.Context, in *UniversalCertificateRequestCloudflare, opts ...grpc.CallOption) (*UniversalCertificateReplyCloudflare, error) {
+	out := new(UniversalCertificateReplyCloudflare)
+	err := c.cc.Invoke(ctx, "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // CertificateCloudflareServer is the server API for CertificateCloudflare service.
 // All implementations must embed UnimplementedCertificateCloudflareServer
 // for forward compatibility
@@ -71,6 +81,7 @@ type CertificateCloudflareServer interface {
 	CreateCertificate(context.Context, *CreateCertificateRequestCloudflare) (*CreateCertificateReplyCloudflare, error)
 	DeleteCertificate(context.Context, *DeleteCertificateRequestCloudflare) (*DeleteCertificateReplyCloudflare, error)
 	EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error)
+	UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error)
 	mustEmbedUnimplementedCertificateCloudflareServer()
 }
 
@@ -87,6 +98,9 @@ func (UnimplementedCertificateCloudflareServer) DeleteCertificate(context.Contex
 func (UnimplementedCertificateCloudflareServer) EditCertificate(context.Context, *EditCertificateRequestCloudflare) (*EditCertificateReplyCloudflare, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method EditCertificate not implemented")
 }
+func (UnimplementedCertificateCloudflareServer) UniversalCertificate(context.Context, *UniversalCertificateRequestCloudflare) (*UniversalCertificateReplyCloudflare, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UniversalCertificate not implemented")
+}
 func (UnimplementedCertificateCloudflareServer) mustEmbedUnimplementedCertificateCloudflareServer() {}
 
 // UnsafeCertificateCloudflareServer may be embedded to opt out of forward compatibility for this service.
@@ -154,6 +168,24 @@ func _CertificateCloudflare_EditCertificate_Handler(srv interface{}, ctx context
 	return interceptor(ctx, in, info, handler)
 }
 
+func _CertificateCloudflare_UniversalCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UniversalCertificateRequestCloudflare)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/cloudflareApi.cache.Certificate.CertificateCloudflare/UniversalCertificate",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(CertificateCloudflareServer).UniversalCertificate(ctx, req.(*UniversalCertificateRequestCloudflare))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // CertificateCloudflare_ServiceDesc is the grpc.ServiceDesc for CertificateCloudflare service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -173,6 +205,10 @@ var CertificateCloudflare_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "EditCertificate",
 			Handler:    _CertificateCloudflare_EditCertificate_Handler,
 		},
+		{
+			MethodName: "UniversalCertificate",
+			Handler:    _CertificateCloudflare_UniversalCertificate_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "proto/certificate.proto",

+ 1 - 1
proto

@@ -1 +1 @@
-Subproject commit 7acb3e56b7ebf188ff626b8ec7b7c8036457d19e
+Subproject commit fe237209c10ccd3a425d1c398b7c16c701ad3146

+ 28 - 1
server/CertificateCloudflareServer.go

@@ -11,6 +11,34 @@ type CertificateServer struct {
 	cert.UnimplementedCertificateCloudflareServer
 }
 
+func (s *CertificateServer) UniversalCertificate(ctx context.Context, requestCloudflare *cert.UniversalCertificateRequestCloudflare) (*cert.UniversalCertificateReplyCloudflare, error) {
+	log.Printf("apiKey Received: %v", requestCloudflare.GetApiKey())
+	log.Printf("apiEmail Received: %v", requestCloudflare.GetApiEmail())
+	log.Printf("zoneName Received: %v", requestCloudflare.GetZoneName())
+	api, err := cloudflare.New(requestCloudflare.GetApiKey(), requestCloudflare.GetApiEmail())
+	if err != nil {
+		return nil, err
+	}
+	id, err := api.ZoneIDByName(requestCloudflare.GetZoneName())
+	if err != nil {
+		return nil, err
+	}
+	ctxAPI := context.Background()
+	editUniversalSSLSettings := cloudflare.UniversalSSLSetting{Enabled: requestCloudflare.GetEnable()}
+	universalCertificate, err := api.EditUniversalSSLSetting(ctxAPI, id, editUniversalSSLSettings)
+
+	if err != nil {
+		return &cert.UniversalCertificateReplyCloudflare{
+			Success: false, Enabled: false,
+		}, err
+	}
+	return &cert.UniversalCertificateReplyCloudflare{
+		Success: true,
+		Enabled: universalCertificate.Enabled,
+	}, err
+
+}
+
 func (s *CertificateServer) CreateCertificate(ctx context.Context, requestCloudflare *cert.CreateCertificateRequestCloudflare) (*cert.CreateCertificateReplyCloudflare, error) {
 	log.Printf("apiKey Received: %v", requestCloudflare.GetApiKey())
 	log.Printf("apiEmail Received: %v", requestCloudflare.GetApiEmail())
@@ -25,7 +53,6 @@ func (s *CertificateServer) CreateCertificate(ctx context.Context, requestCloudf
 	if err != nil {
 		return nil, err
 	}
-
 	ctxAPI := context.Background()
 
 	geoRestrictions := cloudflare.ZoneCustomSSLGeoRestrictions{Label: "us"}