diff --git a/api/client/notification/microsoft_teams.pb.go b/api/client/notification/microsoft_teams.pb.go new file mode 100644 index 00000000..64f57c06 --- /dev/null +++ b/api/client/notification/microsoft_teams.pb.go @@ -0,0 +1,160 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 +// source: notification/microsoft_teams.proto + +package notification + +import ( + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// Configuration for Microsoft Teams notifications. +type MicrosoftTeams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Whether Microsoft Teams notifications are enabled. + Enabled *wrappers.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *MicrosoftTeams) Reset() { + *x = MicrosoftTeams{} + if protoimpl.UnsafeEnabled { + mi := &file_notification_microsoft_teams_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MicrosoftTeams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MicrosoftTeams) ProtoMessage() {} + +func (x *MicrosoftTeams) ProtoReflect() protoreflect.Message { + mi := &file_notification_microsoft_teams_proto_msgTypes[0] + 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 MicrosoftTeams.ProtoReflect.Descriptor instead. +func (*MicrosoftTeams) Descriptor() ([]byte, []int) { + return file_notification_microsoft_teams_proto_rawDescGZIP(), []int{0} +} + +func (x *MicrosoftTeams) GetEnabled() *wrappers.BoolValue { + if x != nil { + return x.Enabled + } + return nil +} + +var File_notification_microsoft_teams_proto protoreflect.FileDescriptor + +var file_notification_microsoft_teams_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x0e, 0x4d, 0x69, 0x63, 0x72, + 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x54, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, + 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x70, 0x69, 0x6e, 0x6e, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x6b, 0x6c, 0x65, 0x61, 0x74, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_notification_microsoft_teams_proto_rawDescOnce sync.Once + file_notification_microsoft_teams_proto_rawDescData = file_notification_microsoft_teams_proto_rawDesc +) + +func file_notification_microsoft_teams_proto_rawDescGZIP() []byte { + file_notification_microsoft_teams_proto_rawDescOnce.Do(func() { + file_notification_microsoft_teams_proto_rawDescData = protoimpl.X.CompressGZIP(file_notification_microsoft_teams_proto_rawDescData) + }) + return file_notification_microsoft_teams_proto_rawDescData +} + +var file_notification_microsoft_teams_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_notification_microsoft_teams_proto_goTypes = []interface{}{ + (*MicrosoftTeams)(nil), // 0: proto.notification.MicrosoftTeams + (*wrappers.BoolValue)(nil), // 1: google.protobuf.BoolValue +} +var file_notification_microsoft_teams_proto_depIdxs = []int32{ + 1, // 0: proto.notification.MicrosoftTeams.enabled:type_name -> google.protobuf.BoolValue + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_notification_microsoft_teams_proto_init() } +func file_notification_microsoft_teams_proto_init() { + if File_notification_microsoft_teams_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_notification_microsoft_teams_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MicrosoftTeams); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_notification_microsoft_teams_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_notification_microsoft_teams_proto_goTypes, + DependencyIndexes: file_notification_microsoft_teams_proto_depIdxs, + MessageInfos: file_notification_microsoft_teams_proto_msgTypes, + }.Build() + File_notification_microsoft_teams_proto = out.File + file_notification_microsoft_teams_proto_rawDesc = nil + file_notification_microsoft_teams_proto_goTypes = nil + file_notification_microsoft_teams_proto_depIdxs = nil +} diff --git a/api/client/notification/notifications.pb.go b/api/client/notification/notifications.pb.go index ad4c9d42..37352e18 100644 --- a/api/client/notification/notifications.pb.go +++ b/api/client/notification/notifications.pb.go @@ -31,13 +31,14 @@ type Notifications struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Slack *Slack `protobuf:"bytes,1,opt,name=slack,proto3" json:"slack,omitempty"` - Twilio *Twilio `protobuf:"bytes,2,opt,name=twilio,proto3" json:"twilio,omitempty"` - GithubStatus *GithubStatus `protobuf:"bytes,3,opt,name=githubStatus,proto3" json:"githubStatus,omitempty"` - Bearychat *BearyChat `protobuf:"bytes,4,opt,name=bearychat,proto3" json:"bearychat,omitempty"` - Email *Email `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` - Googlechat *GoogleChat `protobuf:"bytes,6,opt,name=googlechat,proto3" json:"googlechat,omitempty"` - Pubsub *PubSub `protobuf:"bytes,7,opt,name=pubsub,proto3" json:"pubsub,omitempty"` + Slack *Slack `protobuf:"bytes,1,opt,name=slack,proto3" json:"slack,omitempty"` + Twilio *Twilio `protobuf:"bytes,2,opt,name=twilio,proto3" json:"twilio,omitempty"` + GithubStatus *GithubStatus `protobuf:"bytes,3,opt,name=githubStatus,proto3" json:"githubStatus,omitempty"` + Bearychat *BearyChat `protobuf:"bytes,4,opt,name=bearychat,proto3" json:"bearychat,omitempty"` + Email *Email `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` + Googlechat *GoogleChat `protobuf:"bytes,6,opt,name=googlechat,proto3" json:"googlechat,omitempty"` + Pubsub *PubSub `protobuf:"bytes,7,opt,name=pubsub,proto3" json:"pubsub,omitempty"` + Microsoftteams *MicrosoftTeams `protobuf:"bytes,8,opt,name=microsoftteams,proto3" json:"microsoftteams,omitempty"` } func (x *Notifications) Reset() { @@ -121,6 +122,13 @@ func (x *Notifications) GetPubsub() *PubSub { return nil } +func (x *Notifications) GetMicrosoftteams() *MicrosoftTeams { + if x != nil { + return x.Microsoftteams + } + return nil +} + var File_notification_notifications_proto protoreflect.FileDescriptor var file_notification_notifications_proto_rawDesc = []byte{ @@ -140,32 +148,39 @@ var file_notification_notifications_proto_rawDesc = []byte{ 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x9c, 0x03, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x73, 0x6c, - 0x61, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x06, 0x74, 0x77, 0x69, 0x6c, 0x69, 0x6f, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x77, 0x69, 0x6c, 0x69, 0x6f, 0x52, - 0x06, 0x74, 0x77, 0x69, 0x6c, 0x69, 0x6f, 0x12, 0x44, 0x0a, 0x0c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x1a, 0x22, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe8, 0x03, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, + 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x32, 0x0a, 0x06, 0x74, 0x77, 0x69, 0x6c, 0x69, + 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x77, 0x69, + 0x6c, 0x69, 0x6f, 0x52, 0x06, 0x74, 0x77, 0x69, 0x6c, 0x69, 0x6f, 0x12, 0x44, 0x0a, 0x0c, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x0c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x62, 0x65, 0x61, 0x72, 0x79, 0x63, 0x68, 0x61, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x65, 0x61, 0x72, 0x79, 0x43, + 0x68, 0x61, 0x74, 0x52, 0x09, 0x62, 0x65, 0x61, 0x72, 0x79, 0x63, 0x68, 0x61, 0x74, 0x12, 0x2f, + 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x47, 0x69, 0x74, 0x68, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x0c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, - 0x09, 0x62, 0x65, 0x61, 0x72, 0x79, 0x63, 0x68, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x65, 0x61, 0x72, 0x79, 0x43, 0x68, 0x61, 0x74, 0x52, - 0x09, 0x62, 0x65, 0x61, 0x72, 0x79, 0x63, 0x68, 0x61, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3e, 0x0a, 0x0a, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x63, 0x68, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x74, 0x52, - 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, + 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, + 0x3e, 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x63, 0x68, 0x61, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, + 0x68, 0x61, 0x74, 0x52, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, + 0x32, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, 0x06, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x12, 0x4a, 0x0a, 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, + 0x74, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, 0x06, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x42, + 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x54, 0x65, 0x61, 0x6d, 0x73, 0x52, + 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x69, 0x6e, 0x6e, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x6b, 0x6c, 0x65, 0x61, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, @@ -186,14 +201,15 @@ func file_notification_notifications_proto_rawDescGZIP() []byte { var file_notification_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_notification_notifications_proto_goTypes = []interface{}{ - (*Notifications)(nil), // 0: proto.notification.Notifications - (*Slack)(nil), // 1: proto.notification.Slack - (*Twilio)(nil), // 2: proto.notification.Twilio - (*GithubStatus)(nil), // 3: proto.notification.GithubStatus - (*BearyChat)(nil), // 4: proto.notification.BearyChat - (*Email)(nil), // 5: proto.notification.Email - (*GoogleChat)(nil), // 6: proto.notification.GoogleChat - (*PubSub)(nil), // 7: proto.notification.PubSub + (*Notifications)(nil), // 0: proto.notification.Notifications + (*Slack)(nil), // 1: proto.notification.Slack + (*Twilio)(nil), // 2: proto.notification.Twilio + (*GithubStatus)(nil), // 3: proto.notification.GithubStatus + (*BearyChat)(nil), // 4: proto.notification.BearyChat + (*Email)(nil), // 5: proto.notification.Email + (*GoogleChat)(nil), // 6: proto.notification.GoogleChat + (*PubSub)(nil), // 7: proto.notification.PubSub + (*MicrosoftTeams)(nil), // 8: proto.notification.MicrosoftTeams } var file_notification_notifications_proto_depIdxs = []int32{ 1, // 0: proto.notification.Notifications.slack:type_name -> proto.notification.Slack @@ -203,11 +219,12 @@ var file_notification_notifications_proto_depIdxs = []int32{ 5, // 4: proto.notification.Notifications.email:type_name -> proto.notification.Email 6, // 5: proto.notification.Notifications.googlechat:type_name -> proto.notification.GoogleChat 7, // 6: proto.notification.Notifications.pubsub:type_name -> proto.notification.PubSub - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 8, // 7: proto.notification.Notifications.microsoftteams:type_name -> proto.notification.MicrosoftTeams + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_notification_notifications_proto_init() } @@ -222,6 +239,7 @@ func file_notification_notifications_proto_init() { file_notification_email_proto_init() file_notification_google_chat_proto_init() file_notification_pubsub_proto_init() + file_notification_microsoft_teams_proto_init() if !protoimpl.UnsafeEnabled { file_notification_notifications_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Notifications); i { diff --git a/api/proto/notification/microsoft_teams.proto b/api/proto/notification/microsoft_teams.proto new file mode 100644 index 00000000..1dd7f6d9 --- /dev/null +++ b/api/proto/notification/microsoft_teams.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package proto.notification; + +option go_package = "github.com/spinnaker/kleat/api/client/notification"; + +import "google/protobuf/wrappers.proto"; + +// Configuration for Microsoft Teams notifications. +message MicrosoftTeams { + // Whether Microsoft Teams notifications are enabled. + google.protobuf.BoolValue enabled = 1; +} diff --git a/api/proto/notification/notifications.proto b/api/proto/notification/notifications.proto index 0cca2367..eaa2a2a8 100644 --- a/api/proto/notification/notifications.proto +++ b/api/proto/notification/notifications.proto @@ -10,6 +10,7 @@ import "notification/bearychat.proto"; import "notification/email.proto"; import "notification/google_chat.proto"; import "notification/pubsub.proto"; +import "notification/microsoft_teams.proto"; // Configuration for notifications. message Notifications { @@ -20,4 +21,5 @@ message Notifications { Email email = 5; GoogleChat googlechat = 6; PubSub pubsub = 7; + MicrosoftTeams microsoftteams = 8; } diff --git a/docs/docs.md b/docs/docs.md index aabec304..842aeb9a 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -328,6 +328,9 @@ - [notification/google_chat.proto](#notification/google_chat.proto) - [GoogleChat](#proto.notification.GoogleChat) +- [notification/microsoft_teams.proto](#notification/microsoft_teams.proto) + - [MicrosoftTeams](#proto.notification.MicrosoftTeams) + - [notification/notifications.proto](#notification/notifications.proto) - [Notifications](#proto.notification.Notifications) @@ -4932,6 +4935,37 @@ Configuration for Google Chat notifications. + +
+ +## notification/microsoft_teams.proto + + + + + +### MicrosoftTeams +Configuration for Microsoft Teams notifications. + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| enabled | [google.protobuf.BoolValue](#google.protobuf.BoolValue) | | Whether Microsoft Teams notifications are enabled. | + + + + + + + + + + + + + + + @@ -4954,6 +4988,7 @@ Configuration for notifications. | email | [Email](#proto.notification.Email) | | | | googlechat | [GoogleChat](#proto.notification.GoogleChat) | | | | pubsub | [PubSub](#proto.notification.PubSub) | | | +| microsoftteams | [MicrosoftTeams](#proto.notification.MicrosoftTeams) | | |