From 5ffbc0a2a48970a118fc31147bbbf3c42560fbdc Mon Sep 17 00:00:00 2001 From: Luigi Taglialatela Date: Fri, 25 Apr 2025 13:03:59 +0300 Subject: [PATCH] Upgrade notification center SDK --- .../notification_center/common/common.pb.go | 170 ++---- .../common/config_overrides.pb.go | 104 ++-- .../common/rpc_common.pb.go | 152 ----- .../common/v1/config_fields.pb.go | 97 ++- .../common/v1/identifier.pb.go | 354 +++++++++++ .../common/v1/routing.pb.go | 411 ------------- .../common/v1/routing/routing.pb.go | 465 ++++++++++++++ .../connectors/v1/connector.pb.go | 183 +++--- .../connectors/v1/connectors_service.pb.go | 279 ++++++--- .../entities/v1/entities_service.pb.go | 159 ++++- .../entities/v1/entities_service_grpc.pb.go | 40 +- .../notifications/v1/notification.pb.go | 67 +- .../notifications/v1/testing.pb.go | 89 +-- .../notifications/v1/testing_service.pb.go | 574 +++++++++++++----- .../presets/v1/preset.pb.go | 159 ++--- .../presets/v1/presets_service.pb.go | 515 ++++++++-------- .../routers/v1/global_routers_service.pb.go | 240 +++++--- .../routers/v1/private_routing.pb.go | 249 ++++++++ .../routers/v1/router.pb.go | 117 ++-- go/notifications-client.go | 11 +- .../notification_center/common/common.proto | 17 +- .../common/config_overrides.proto | 13 +- .../common/rpc_common.proto | 10 - .../common/v1/config_fields.proto | 7 + .../common/v1/identifier.proto | 37 ++ .../common/v1/{ => routing}/routing.proto | 20 +- .../connectors/v1/connector.proto | 27 +- .../connectors/v1/connectors_service.proto | 30 +- .../entities/v1/entities_service.proto | 34 +- .../notifications/v1/notification.proto | 9 +- .../notifications/v1/testing.proto | 9 +- .../notifications/v1/testing_service.proto | 62 +- .../presets/v1/preset.proto | 23 +- .../presets/v1/presets_service.proto | 67 +- .../routers/v1/global_routers_service.proto | 40 +- .../routers/v1/private_routing.proto | 28 + .../routers/v1/router.proto | 24 +- protofetch.lock | 4 +- protofetch.toml | 3 +- rust/cx-api/Cargo.toml | 1 + rust/cx-api/build.rs | 4 - rust/cx-sdk/src/client.rs | 3 + rust/cx-sdk/src/client/notifications.rs | 138 +++-- rust/cx-sdk/src/lib.rs | 1 + rust/examples/Cargo.lock | 17 +- rust/examples/Cargo.toml | 1 + rust/examples/alerts/src/lib.rs | 8 +- rust/examples/recording-rules/src/lib.rs | 4 +- 48 files changed, 3188 insertions(+), 1888 deletions(-) delete mode 100644 go/internal/coralogixapis/notification_center/common/rpc_common.pb.go create mode 100644 go/internal/coralogixapis/notification_center/common/v1/identifier.pb.go delete mode 100644 go/internal/coralogixapis/notification_center/common/v1/routing.pb.go create mode 100644 go/internal/coralogixapis/notification_center/common/v1/routing/routing.pb.go create mode 100644 go/internal/coralogixapis/notification_center/routers/v1/private_routing.pb.go delete mode 100644 proto/com/coralogixapis/notification_center/common/rpc_common.proto create mode 100644 proto/com/coralogixapis/notification_center/common/v1/identifier.proto rename proto/com/coralogixapis/notification_center/common/v1/{ => routing}/routing.proto (75%) create mode 100644 proto/com/coralogixapis/notification_center/routers/v1/private_routing.proto diff --git a/go/internal/coralogixapis/notification_center/common/common.pb.go b/go/internal/coralogixapis/notification_center/common/common.pb.go index acba69d2..7fdb0c35 100644 --- a/go/internal/coralogixapis/notification_center/common/common.pb.go +++ b/go/internal/coralogixapis/notification_center/common/common.pb.go @@ -4,7 +4,7 @@ // protoc v5.29.3 // source: com/coralogixapis/notification_center/common/common.proto -package common +package notification_center import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -21,55 +21,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type OrderByDirection int32 - -const ( - OrderByDirection_ORDER_BY_DIRECTION_UNSPECIFIED OrderByDirection = 0 - OrderByDirection_ASC OrderByDirection = 1 - OrderByDirection_DESC OrderByDirection = 2 -) - -// Enum value maps for OrderByDirection. -var ( - OrderByDirection_name = map[int32]string{ - 0: "ORDER_BY_DIRECTION_UNSPECIFIED", - 1: "ASC", - 2: "DESC", - } - OrderByDirection_value = map[string]int32{ - "ORDER_BY_DIRECTION_UNSPECIFIED": 0, - "ASC": 1, - "DESC": 2, - } -) - -func (x OrderByDirection) Enum() *OrderByDirection { - p := new(OrderByDirection) - *p = x - return p -} - -func (x OrderByDirection) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrderByDirection) Descriptor() protoreflect.EnumDescriptor { - return file_com_coralogixapis_notification_center_common_common_proto_enumTypes[0].Descriptor() -} - -func (OrderByDirection) Type() protoreflect.EnumType { - return &file_com_coralogixapis_notification_center_common_common_proto_enumTypes[0] -} - -func (x OrderByDirection) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrderByDirection.Descriptor instead. -func (OrderByDirection) EnumDescriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP(), []int{0} -} - type ConnectorType int32 const ( @@ -112,11 +63,11 @@ func (x ConnectorType) String() string { } func (ConnectorType) Descriptor() protoreflect.EnumDescriptor { - return file_com_coralogixapis_notification_center_common_common_proto_enumTypes[1].Descriptor() + return file_com_coralogixapis_notification_center_common_common_proto_enumTypes[0].Descriptor() } func (ConnectorType) Type() protoreflect.EnumType { - return &file_com_coralogixapis_notification_center_common_common_proto_enumTypes[1] + return &file_com_coralogixapis_notification_center_common_common_proto_enumTypes[0] } func (x ConnectorType) Number() protoreflect.EnumNumber { @@ -125,81 +76,76 @@ func (x ConnectorType) Number() protoreflect.EnumNumber { // Deprecated: Use ConnectorType.Descriptor instead. func (ConnectorType) EnumDescriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP(), []int{1} + return file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP(), []int{0} } -type OrderBy struct { - state protoimpl.MessageState `protogen:"open.v1"` - FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - Direction OrderByDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=com.coralogixapis.notification_center.OrderByDirection" json:"direction,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} +type EntityType int32 -func (x *OrderBy) Reset() { - *x = OrderBy{} - mi := &file_com_coralogixapis_notification_center_common_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} +const ( + EntityType_ENTITY_TYPE_UNSPECIFIED EntityType = 0 + EntityType_ALERTS EntityType = 1 + EntityType_TEST_NOTIFICATIONS EntityType = 2 +) -func (x *OrderBy) String() string { - return protoimpl.X.MessageStringOf(x) +// Enum value maps for EntityType. +var ( + EntityType_name = map[int32]string{ + 0: "ENTITY_TYPE_UNSPECIFIED", + 1: "ALERTS", + 2: "TEST_NOTIFICATIONS", + } + EntityType_value = map[string]int32{ + "ENTITY_TYPE_UNSPECIFIED": 0, + "ALERTS": 1, + "TEST_NOTIFICATIONS": 2, + } +) + +func (x EntityType) Enum() *EntityType { + p := new(EntityType) + *p = x + return p } -func (*OrderBy) ProtoMessage() {} +func (x EntityType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} -func (x *OrderBy) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_common_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (EntityType) Descriptor() protoreflect.EnumDescriptor { + return file_com_coralogixapis_notification_center_common_common_proto_enumTypes[1].Descriptor() } -// Deprecated: Use OrderBy.ProtoReflect.Descriptor instead. -func (*OrderBy) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP(), []int{0} +func (EntityType) Type() protoreflect.EnumType { + return &file_com_coralogixapis_notification_center_common_common_proto_enumTypes[1] } -func (x *OrderBy) GetFieldName() string { - if x != nil { - return x.FieldName - } - return "" +func (x EntityType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (x *OrderBy) GetDirection() OrderByDirection { - if x != nil { - return x.Direction - } - return OrderByDirection_ORDER_BY_DIRECTION_UNSPECIFIED +// Deprecated: Use EntityType.Descriptor instead. +func (EntityType) EnumDescriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP(), []int{1} } var File_com_coralogixapis_notification_center_common_common_proto protoreflect.FileDescriptor const file_com_coralogixapis_notification_center_common_common_proto_rawDesc = "" + "\n" + - "9com/coralogixapis/notification_center/common/common.proto\x12%com.coralogixapis.notification_center\"\x7f\n" + - "\aOrderBy\x12\x1d\n" + - "\n" + - "field_name\x18\x01 \x01(\tR\tfieldName\x12U\n" + - "\tdirection\x18\x02 \x01(\x0e27.com.coralogixapis.notification_center.OrderByDirectionR\tdirection*I\n" + - "\x10OrderByDirection\x12\"\n" + - "\x1eORDER_BY_DIRECTION_UNSPECIFIED\x10\x00\x12\a\n" + - "\x03ASC\x10\x01\x12\b\n" + - "\x04DESC\x10\x02*\x82\x01\n" + + "9com/coralogixapis/notification_center/common/common.proto\x12%com.coralogixapis.notification_center*\x82\x01\n" + "\rConnectorType\x12\x1e\n" + "\x1aCONNECTOR_TYPE_UNSPECIFIED\x10\x00\x12\t\n" + "\x05SLACK\x10\x01\x12\x11\n" + "\rGENERIC_HTTPS\x10\x02\x12\r\n" + "\tPAGERDUTY\x10\x03\x12\a\n" + "\x03AWS\x10\x04\x12\x1b\n" + - "\x17IBM_EVENT_NOTIFICATIONS\x10\x05b\x06proto3" + "\x17IBM_EVENT_NOTIFICATIONS\x10\x05*M\n" + + "\n" + + "EntityType\x12\x1b\n" + + "\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\n" + + "\n" + + "\x06ALERTS\x10\x01\x12\x16\n" + + "\x12TEST_NOTIFICATIONS\x10\x02B'Z%com/coralogixapis/notification_centerb\x06proto3" var ( file_com_coralogixapis_notification_center_common_common_proto_rawDescOnce sync.Once @@ -214,19 +160,16 @@ func file_com_coralogixapis_notification_center_common_common_proto_rawDescGZIP( } var file_com_coralogixapis_notification_center_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_com_coralogixapis_notification_center_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_com_coralogixapis_notification_center_common_common_proto_goTypes = []any{ - (OrderByDirection)(0), // 0: com.coralogixapis.notification_center.OrderByDirection - (ConnectorType)(0), // 1: com.coralogixapis.notification_center.ConnectorType - (*OrderBy)(nil), // 2: com.coralogixapis.notification_center.OrderBy + (ConnectorType)(0), // 0: com.coralogixapis.notification_center.ConnectorType + (EntityType)(0), // 1: com.coralogixapis.notification_center.EntityType } var file_com_coralogixapis_notification_center_common_common_proto_depIdxs = []int32{ - 0, // 0: com.coralogixapis.notification_center.OrderBy.direction:type_name -> com.coralogixapis.notification_center.OrderByDirection - 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 + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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 } func init() { file_com_coralogixapis_notification_center_common_common_proto_init() } @@ -240,14 +183,13 @@ func file_com_coralogixapis_notification_center_common_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_common_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_common_proto_rawDesc)), NumEnums: 2, - NumMessages: 1, + NumMessages: 0, NumExtensions: 0, NumServices: 0, }, GoTypes: file_com_coralogixapis_notification_center_common_common_proto_goTypes, DependencyIndexes: file_com_coralogixapis_notification_center_common_common_proto_depIdxs, EnumInfos: file_com_coralogixapis_notification_center_common_common_proto_enumTypes, - MessageInfos: file_com_coralogixapis_notification_center_common_common_proto_msgTypes, }.Build() File_com_coralogixapis_notification_center_common_common_proto = out.File file_com_coralogixapis_notification_center_common_common_proto_goTypes = nil diff --git a/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go b/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go index bb08457d..d226f087 100644 --- a/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go +++ b/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go @@ -4,7 +4,7 @@ // protoc v5.29.3 // source: com/coralogixapis/notification_center/common/config_overrides.proto -package common +package notification_center import ( v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" @@ -23,12 +23,12 @@ const ( ) type ConfigOverrides struct { - state protoimpl.MessageState `protogen:"open.v1"` - ConditionType *ConditionType `protobuf:"bytes,1,opt,name=condition_type,json=conditionType,proto3" json:"condition_type,omitempty"` - OutputSchemaId string `protobuf:"bytes,2,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - MessageConfig *MessageConfig `protobuf:"bytes,3,opt,name=message_config,json=messageConfig,proto3" json:"message_config,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ConditionType *ConditionType `protobuf:"bytes,1,opt,name=condition_type,json=conditionType,proto3" json:"condition_type,omitempty"` + PayloadType *string `protobuf:"bytes,2,opt,name=payload_type,json=payloadType,proto3,oneof" json:"payload_type,omitempty"` + MessageConfig *MessageConfig `protobuf:"bytes,3,opt,name=message_config,json=messageConfig,proto3" json:"message_config,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConfigOverrides) Reset() { @@ -68,9 +68,9 @@ func (x *ConfigOverrides) GetConditionType() *ConditionType { return nil } -func (x *ConfigOverrides) GetOutputSchemaId() string { - if x != nil { - return x.OutputSchemaId +func (x *ConfigOverrides) GetPayloadType() string { + if x != nil && x.PayloadType != nil { + return *x.PayloadType } return "" } @@ -209,8 +209,11 @@ func (x *MessageConfig) GetFields() []*v1.MessageConfigField { } type MatchEntityTypeCondition struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. + EntityType EntityType `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -245,17 +248,29 @@ func (*MatchEntityTypeCondition) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_common_config_overrides_proto_rawDescGZIP(), []int{3} } -func (x *MatchEntityTypeCondition) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. +func (x *MatchEntityTypeCondition) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. +func (x *MatchEntityTypeCondition) GetEntityType() EntityType { + if x != nil { + return x.EntityType + } + return EntityType_ENTITY_TYPE_UNSPECIFIED +} + type MatchEntityTypeAndSubTypeCondition struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - EntitySubType string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3" json:"entity_sub_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntitySubType string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3" json:"entity_sub_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. + EntityType EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -290,9 +305,10 @@ func (*MatchEntityTypeAndSubTypeCondition) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_common_config_overrides_proto_rawDescGZIP(), []int{4} } -func (x *MatchEntityTypeAndSubTypeCondition) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. +func (x *MatchEntityTypeAndSubTypeCondition) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -304,28 +320,39 @@ func (x *MatchEntityTypeAndSubTypeCondition) GetEntitySubType() string { return "" } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/config_overrides.proto. +func (x *MatchEntityTypeAndSubTypeCondition) GetEntityType() EntityType { + if x != nil { + return x.EntityType + } + return EntityType_ENTITY_TYPE_UNSPECIFIED +} + var File_com_coralogixapis_notification_center_common_config_overrides_proto protoreflect.FileDescriptor const file_com_coralogixapis_notification_center_common_config_overrides_proto_rawDesc = "" + "\n" + - "Ccom/coralogixapis/notification_center/common/config_overrides.proto\x12%com.coralogixapis.notification_center\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\"\xf5\x01\n" + + "Ccom/coralogixapis/notification_center/common/config_overrides.proto\x12%com.coralogixapis.notification_center\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\"\x8a\x02\n" + "\x0fConfigOverrides\x12[\n" + - "\x0econdition_type\x18\x01 \x01(\v24.com.coralogixapis.notification_center.ConditionTypeR\rconditionType\x12(\n" + - "\x10output_schema_id\x18\x02 \x01(\tR\x0eoutputSchemaId\x12[\n" + - "\x0emessage_config\x18\x03 \x01(\v24.com.coralogixapis.notification_center.MessageConfigR\rmessageConfig\"\x9c\x02\n" + + "\x0econdition_type\x18\x01 \x01(\v24.com.coralogixapis.notification_center.ConditionTypeR\rconditionType\x12&\n" + + "\fpayload_type\x18\x02 \x01(\tH\x00R\vpayloadType\x88\x01\x01\x12[\n" + + "\x0emessage_config\x18\x03 \x01(\v24.com.coralogixapis.notification_center.MessageConfigR\rmessageConfigB\x0f\n" + + "\r_payload_typeJ\x04\b\x04\x10\x05\"\x9c\x02\n" + "\rConditionType\x12m\n" + "\x11match_entity_type\x18\x01 \x01(\v2?.com.coralogixapis.notification_center.MatchEntityTypeConditionH\x00R\x0fmatchEntityType\x12\x8e\x01\n" + "\x1ematch_entity_type_and_sub_type\x18\x02 \x01(\v2I.com.coralogixapis.notification_center.MatchEntityTypeAndSubTypeConditionH\x00R\x19matchEntityTypeAndSubTypeB\v\n" + "\tcondition\"b\n" + "\rMessageConfig\x12Q\n" + - "\x06fields\x18\x01 \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x06fields\";\n" + - "\x18MatchEntityTypeCondition\x12\x1f\n" + - "\ventity_type\x18\x01 \x01(\tR\n" + - "entityType\"m\n" + - "\"MatchEntityTypeAndSubTypeCondition\x12\x1f\n" + - "\ventity_type\x18\x01 \x01(\tR\n" + - "entityType\x12&\n" + - "\x0fentity_sub_type\x18\x02 \x01(\tR\rentitySubTypeb\x06proto3" + "\x06fields\x18\x01 \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x06fields\"\xac\x01\n" + + "\x18MatchEntityTypeCondition\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12V\n" + + "\ventity_type\x18\x02 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\x02\x18\x01R\n" + + "entityType\"\xde\x01\n" + + "\"MatchEntityTypeAndSubTypeCondition\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12&\n" + + "\x0fentity_sub_type\x18\x02 \x01(\tR\rentitySubType\x12V\n" + + "\ventity_type\x18\x03 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\x02\x18\x01R\n" + + "entityTypeB'Z%com/coralogixapis/notification_centerb\x06proto3" var ( file_com_coralogixapis_notification_center_common_config_overrides_proto_rawDescOnce sync.Once @@ -347,6 +374,7 @@ var file_com_coralogixapis_notification_center_common_config_overrides_proto_goT (*MatchEntityTypeCondition)(nil), // 3: com.coralogixapis.notification_center.MatchEntityTypeCondition (*MatchEntityTypeAndSubTypeCondition)(nil), // 4: com.coralogixapis.notification_center.MatchEntityTypeAndSubTypeCondition (*v1.MessageConfigField)(nil), // 5: com.coralogixapis.notification_center.MessageConfigField + (EntityType)(0), // 6: com.coralogixapis.notification_center.EntityType } var file_com_coralogixapis_notification_center_common_config_overrides_proto_depIdxs = []int32{ 1, // 0: com.coralogixapis.notification_center.ConfigOverrides.condition_type:type_name -> com.coralogixapis.notification_center.ConditionType @@ -354,11 +382,13 @@ var file_com_coralogixapis_notification_center_common_config_overrides_proto_dep 3, // 2: com.coralogixapis.notification_center.ConditionType.match_entity_type:type_name -> com.coralogixapis.notification_center.MatchEntityTypeCondition 4, // 3: com.coralogixapis.notification_center.ConditionType.match_entity_type_and_sub_type:type_name -> com.coralogixapis.notification_center.MatchEntityTypeAndSubTypeCondition 5, // 4: com.coralogixapis.notification_center.MessageConfig.fields:type_name -> com.coralogixapis.notification_center.MessageConfigField - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 6, // 5: com.coralogixapis.notification_center.MatchEntityTypeCondition.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 6, // 6: com.coralogixapis.notification_center.MatchEntityTypeAndSubTypeCondition.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 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 } func init() { file_com_coralogixapis_notification_center_common_config_overrides_proto_init() } @@ -366,6 +396,8 @@ func file_com_coralogixapis_notification_center_common_config_overrides_proto_in if File_com_coralogixapis_notification_center_common_config_overrides_proto != nil { return } + file_com_coralogixapis_notification_center_common_common_proto_init() + file_com_coralogixapis_notification_center_common_config_overrides_proto_msgTypes[0].OneofWrappers = []any{} file_com_coralogixapis_notification_center_common_config_overrides_proto_msgTypes[1].OneofWrappers = []any{ (*ConditionType_MatchEntityType)(nil), (*ConditionType_MatchEntityTypeAndSubType)(nil), diff --git a/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go b/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go deleted file mode 100644 index 16d737ba..00000000 --- a/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.6 -// protoc v5.29.3 -// source: com/coralogixapis/notification_center/common/rpc_common.proto - -package common - -import ( - code "google.golang.org/genproto/googleapis/rpc/code" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -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) -) - -type ResponseStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` - StatusCode code.Code `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3,enum=google.rpc.Code" json:"status_code,omitempty"` - Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"` - Details map[string]string `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ResponseStatus) Reset() { - *x = ResponseStatus{} - mi := &file_com_coralogixapis_notification_center_common_rpc_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ResponseStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResponseStatus) ProtoMessage() {} - -func (x *ResponseStatus) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_rpc_common_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResponseStatus.ProtoReflect.Descriptor instead. -func (*ResponseStatus) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescGZIP(), []int{0} -} - -func (x *ResponseStatus) GetStatusCode() code.Code { - if x != nil { - return x.StatusCode - } - return code.Code(0) -} - -func (x *ResponseStatus) GetMessage() string { - if x != nil && x.Message != nil { - return *x.Message - } - return "" -} - -func (x *ResponseStatus) GetDetails() map[string]string { - if x != nil { - return x.Details - } - return nil -} - -var File_com_coralogixapis_notification_center_common_rpc_common_proto protoreflect.FileDescriptor - -const file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDesc = "" + - "\n" + - "=com/coralogixapis/notification_center/common/rpc_common.proto\x12%com.coralogixapis.notification_center\x1a\x15google/rpc/code.proto\"\x88\x02\n" + - "\x0eResponseStatus\x121\n" + - "\vstatus_code\x18\x01 \x01(\x0e2\x10.google.rpc.CodeR\n" + - "statusCode\x12\x1d\n" + - "\amessage\x18\x02 \x01(\tH\x00R\amessage\x88\x01\x01\x12\\\n" + - "\adetails\x18\x03 \x03(\v2B.com.coralogixapis.notification_center.ResponseStatus.DetailsEntryR\adetails\x1a:\n" + - "\fDetailsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\n" + - "\n" + - "\b_messageb\x06proto3" - -var ( - file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescOnce sync.Once - file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescData []byte -) - -func file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescGZIP() []byte { - file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescOnce.Do(func() { - file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDesc))) - }) - return file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDescData -} - -var file_com_coralogixapis_notification_center_common_rpc_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_com_coralogixapis_notification_center_common_rpc_common_proto_goTypes = []any{ - (*ResponseStatus)(nil), // 0: com.coralogixapis.notification_center.ResponseStatus - nil, // 1: com.coralogixapis.notification_center.ResponseStatus.DetailsEntry - (code.Code)(0), // 2: google.rpc.Code -} -var file_com_coralogixapis_notification_center_common_rpc_common_proto_depIdxs = []int32{ - 2, // 0: com.coralogixapis.notification_center.ResponseStatus.status_code:type_name -> google.rpc.Code - 1, // 1: com.coralogixapis.notification_center.ResponseStatus.details:type_name -> com.coralogixapis.notification_center.ResponseStatus.DetailsEntry - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_com_coralogixapis_notification_center_common_rpc_common_proto_init() } -func file_com_coralogixapis_notification_center_common_rpc_common_proto_init() { - if File_com_coralogixapis_notification_center_common_rpc_common_proto != nil { - return - } - file_com_coralogixapis_notification_center_common_rpc_common_proto_msgTypes[0].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_rpc_common_proto_rawDesc)), - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_com_coralogixapis_notification_center_common_rpc_common_proto_goTypes, - DependencyIndexes: file_com_coralogixapis_notification_center_common_rpc_common_proto_depIdxs, - MessageInfos: file_com_coralogixapis_notification_center_common_rpc_common_proto_msgTypes, - }.Build() - File_com_coralogixapis_notification_center_common_rpc_common_proto = out.File - file_com_coralogixapis_notification_center_common_rpc_common_proto_goTypes = nil - file_com_coralogixapis_notification_center_common_rpc_common_proto_depIdxs = nil -} diff --git a/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go b/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go index 7ac258f8..e70d44fe 100644 --- a/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go +++ b/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go @@ -4,7 +4,7 @@ // protoc v5.29.3 // source: com/coralogixapis/notification_center/common/v1/config_fields.proto -package v1 +package notification_center import ( _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" @@ -25,7 +25,7 @@ const ( type ConnectorConfigField struct { state protoimpl.MessageState `protogen:"open.v1"` FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` - Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -67,7 +67,59 @@ func (x *ConnectorConfigField) GetFieldName() string { return "" } -func (x *ConnectorConfigField) GetTemplate() string { +func (x *ConnectorConfigField) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type TemplatedConnectorConfigField struct { + state protoimpl.MessageState `protogen:"open.v1"` + FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` + Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TemplatedConnectorConfigField) Reset() { + *x = TemplatedConnectorConfigField{} + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TemplatedConnectorConfigField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TemplatedConnectorConfigField) ProtoMessage() {} + +func (x *TemplatedConnectorConfigField) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TemplatedConnectorConfigField.ProtoReflect.Descriptor instead. +func (*TemplatedConnectorConfigField) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{1} +} + +func (x *TemplatedConnectorConfigField) GetFieldName() string { + if x != nil { + return x.FieldName + } + return "" +} + +func (x *TemplatedConnectorConfigField) GetTemplate() string { if x != nil { return x.Template } @@ -84,7 +136,7 @@ type MessageConfigField struct { func (x *MessageConfigField) Reset() { *x = MessageConfigField{} - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[1] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -96,7 +148,7 @@ func (x *MessageConfigField) String() string { func (*MessageConfigField) ProtoMessage() {} func (x *MessageConfigField) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[1] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -109,7 +161,7 @@ func (x *MessageConfigField) ProtoReflect() protoreflect.Message { // Deprecated: Use MessageConfigField.ProtoReflect.Descriptor instead. func (*MessageConfigField) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{1} + return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{2} } func (x *MessageConfigField) GetFieldName() string { @@ -136,7 +188,7 @@ type RenderedConnectorConfigField struct { func (x *RenderedConnectorConfigField) Reset() { *x = RenderedConnectorConfigField{} - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[2] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -148,7 +200,7 @@ func (x *RenderedConnectorConfigField) String() string { func (*RenderedConnectorConfigField) ProtoMessage() {} func (x *RenderedConnectorConfigField) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[2] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -161,7 +213,7 @@ func (x *RenderedConnectorConfigField) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderedConnectorConfigField.ProtoReflect.Descriptor instead. func (*RenderedConnectorConfigField) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{2} + return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{3} } func (x *RenderedConnectorConfigField) GetFieldName() string { @@ -188,7 +240,7 @@ type RenderedMessageConfigField struct { func (x *RenderedMessageConfigField) Reset() { *x = RenderedMessageConfigField{} - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[3] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -200,7 +252,7 @@ func (x *RenderedMessageConfigField) String() string { func (*RenderedMessageConfigField) ProtoMessage() {} func (x *RenderedMessageConfigField) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[3] + mi := &file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -213,7 +265,7 @@ func (x *RenderedMessageConfigField) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderedMessageConfigField.ProtoReflect.Descriptor instead. func (*RenderedMessageConfigField) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{3} + return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescGZIP(), []int{4} } func (x *RenderedMessageConfigField) GetFieldName() string { @@ -234,9 +286,13 @@ var File_com_coralogixapis_notification_center_common_v1_config_fields_proto pro const file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDesc = "" + "\n" + - "Ccom/coralogixapis/notification_center/common/v1/config_fields.proto\x12%com.coralogixapis.notification_center\x1a.protoc-gen-openapiv2/options/annotations.proto\"Q\n" + + "Ccom/coralogixapis/notification_center/common/v1/config_fields.proto\x12%com.coralogixapis.notification_center\x1a.protoc-gen-openapiv2/options/annotations.proto\"K\n" + "\x14ConnectorConfigField\x12\x1d\n" + "\n" + + "field_name\x18\x01 \x01(\tR\tfieldName\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\"Z\n" + + "\x1dTemplatedConnectorConfigField\x12\x1d\n" + + "\n" + "field_name\x18\x01 \x01(\tR\tfieldName\x12\x1a\n" + "\btemplate\x18\x02 \x01(\tR\btemplate\"\xc3\x03\n" + "\x12MessageConfigField\x12+\n" + @@ -253,7 +309,7 @@ const file_com_coralogixapis_notification_center_common_v1_config_fields_proto_r "\x1aRenderedMessageConfigField\x12\x1d\n" + "\n" + "field_name\x18\x01 \x01(\tR\tfieldName\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05valueb\x06proto3" + "\x05value\x18\x02 \x01(\tR\x05valueB'Z%com/coralogixapis/notification_centerb\x06proto3" var ( file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescOnce sync.Once @@ -267,12 +323,13 @@ func file_com_coralogixapis_notification_center_common_v1_config_fields_proto_ra return file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDescData } -var file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_com_coralogixapis_notification_center_common_v1_config_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_com_coralogixapis_notification_center_common_v1_config_fields_proto_goTypes = []any{ - (*ConnectorConfigField)(nil), // 0: com.coralogixapis.notification_center.ConnectorConfigField - (*MessageConfigField)(nil), // 1: com.coralogixapis.notification_center.MessageConfigField - (*RenderedConnectorConfigField)(nil), // 2: com.coralogixapis.notification_center.RenderedConnectorConfigField - (*RenderedMessageConfigField)(nil), // 3: com.coralogixapis.notification_center.RenderedMessageConfigField + (*ConnectorConfigField)(nil), // 0: com.coralogixapis.notification_center.ConnectorConfigField + (*TemplatedConnectorConfigField)(nil), // 1: com.coralogixapis.notification_center.TemplatedConnectorConfigField + (*MessageConfigField)(nil), // 2: com.coralogixapis.notification_center.MessageConfigField + (*RenderedConnectorConfigField)(nil), // 3: com.coralogixapis.notification_center.RenderedConnectorConfigField + (*RenderedMessageConfigField)(nil), // 4: com.coralogixapis.notification_center.RenderedMessageConfigField } var file_com_coralogixapis_notification_center_common_v1_config_fields_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -293,7 +350,7 @@ func file_com_coralogixapis_notification_center_common_v1_config_fields_proto_in GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_config_fields_proto_rawDesc)), NumEnums: 0, - NumMessages: 4, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/go/internal/coralogixapis/notification_center/common/v1/identifier.pb.go b/go/internal/coralogixapis/notification_center/common/v1/identifier.pb.go new file mode 100644 index 00000000..7a2a43ae --- /dev/null +++ b/go/internal/coralogixapis/notification_center/common/v1/identifier.pb.go @@ -0,0 +1,354 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: com/coralogixapis/notification_center/common/v1/identifier.proto + +package notification_center + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +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) +) + +type ConnectorIdentifier struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // + // *ConnectorIdentifier_Id + // *ConnectorIdentifier_UserDefinedId + Value isConnectorIdentifier_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorIdentifier) Reset() { + *x = ConnectorIdentifier{} + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorIdentifier) ProtoMessage() {} + +func (x *ConnectorIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectorIdentifier.ProtoReflect.Descriptor instead. +func (*ConnectorIdentifier) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescGZIP(), []int{0} +} + +func (x *ConnectorIdentifier) GetValue() isConnectorIdentifier_Value { + if x != nil { + return x.Value + } + return nil +} + +func (x *ConnectorIdentifier) GetId() string { + if x != nil { + if x, ok := x.Value.(*ConnectorIdentifier_Id); ok { + return x.Id + } + } + return "" +} + +func (x *ConnectorIdentifier) GetUserDefinedId() string { + if x != nil { + if x, ok := x.Value.(*ConnectorIdentifier_UserDefinedId); ok { + return x.UserDefinedId + } + } + return "" +} + +type isConnectorIdentifier_Value interface { + isConnectorIdentifier_Value() +} + +type ConnectorIdentifier_Id struct { + // The unique identifier automatically generated by the service + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type ConnectorIdentifier_UserDefinedId struct { + // The unique identifier provided by the user + UserDefinedId string `protobuf:"bytes,2,opt,name=user_defined_id,json=userDefinedId,proto3,oneof"` +} + +func (*ConnectorIdentifier_Id) isConnectorIdentifier_Value() {} + +func (*ConnectorIdentifier_UserDefinedId) isConnectorIdentifier_Value() {} + +type PresetIdentifier struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // + // *PresetIdentifier_Id + // *PresetIdentifier_UserDefinedId + Value isPresetIdentifier_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PresetIdentifier) Reset() { + *x = PresetIdentifier{} + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PresetIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PresetIdentifier) ProtoMessage() {} + +func (x *PresetIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PresetIdentifier.ProtoReflect.Descriptor instead. +func (*PresetIdentifier) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescGZIP(), []int{1} +} + +func (x *PresetIdentifier) GetValue() isPresetIdentifier_Value { + if x != nil { + return x.Value + } + return nil +} + +func (x *PresetIdentifier) GetId() string { + if x != nil { + if x, ok := x.Value.(*PresetIdentifier_Id); ok { + return x.Id + } + } + return "" +} + +func (x *PresetIdentifier) GetUserDefinedId() string { + if x != nil { + if x, ok := x.Value.(*PresetIdentifier_UserDefinedId); ok { + return x.UserDefinedId + } + } + return "" +} + +type isPresetIdentifier_Value interface { + isPresetIdentifier_Value() +} + +type PresetIdentifier_Id struct { + // The unique identifier automatically generated by the service + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type PresetIdentifier_UserDefinedId struct { + // The unique identifier provided by the user + UserDefinedId string `protobuf:"bytes,2,opt,name=user_defined_id,json=userDefinedId,proto3,oneof"` +} + +func (*PresetIdentifier_Id) isPresetIdentifier_Value() {} + +func (*PresetIdentifier_UserDefinedId) isPresetIdentifier_Value() {} + +type GlobalRouterIdentifier struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // + // *GlobalRouterIdentifier_Id + // *GlobalRouterIdentifier_UserDefinedId + Value isGlobalRouterIdentifier_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GlobalRouterIdentifier) Reset() { + *x = GlobalRouterIdentifier{} + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GlobalRouterIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GlobalRouterIdentifier) ProtoMessage() {} + +func (x *GlobalRouterIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GlobalRouterIdentifier.ProtoReflect.Descriptor instead. +func (*GlobalRouterIdentifier) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescGZIP(), []int{2} +} + +func (x *GlobalRouterIdentifier) GetValue() isGlobalRouterIdentifier_Value { + if x != nil { + return x.Value + } + return nil +} + +func (x *GlobalRouterIdentifier) GetId() string { + if x != nil { + if x, ok := x.Value.(*GlobalRouterIdentifier_Id); ok { + return x.Id + } + } + return "" +} + +func (x *GlobalRouterIdentifier) GetUserDefinedId() string { + if x != nil { + if x, ok := x.Value.(*GlobalRouterIdentifier_UserDefinedId); ok { + return x.UserDefinedId + } + } + return "" +} + +type isGlobalRouterIdentifier_Value interface { + isGlobalRouterIdentifier_Value() +} + +type GlobalRouterIdentifier_Id struct { + // The unique identifier automatically generated by the service + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type GlobalRouterIdentifier_UserDefinedId struct { + // The unique identifier provided by the user + UserDefinedId string `protobuf:"bytes,2,opt,name=user_defined_id,json=userDefinedId,proto3,oneof"` +} + +func (*GlobalRouterIdentifier_Id) isGlobalRouterIdentifier_Value() {} + +func (*GlobalRouterIdentifier_UserDefinedId) isGlobalRouterIdentifier_Value() {} + +var File_com_coralogixapis_notification_center_common_v1_identifier_proto protoreflect.FileDescriptor + +const file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDesc = "" + + "\n" + + "@com/coralogixapis/notification_center/common/v1/identifier.proto\x12%com.coralogixapis.notification_center\"Z\n" + + "\x13ConnectorIdentifier\x12\x10\n" + + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12(\n" + + "\x0fuser_defined_id\x18\x02 \x01(\tH\x00R\ruserDefinedIdB\a\n" + + "\x05value\"W\n" + + "\x10PresetIdentifier\x12\x10\n" + + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12(\n" + + "\x0fuser_defined_id\x18\x02 \x01(\tH\x00R\ruserDefinedIdB\a\n" + + "\x05value\"]\n" + + "\x16GlobalRouterIdentifier\x12\x10\n" + + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12(\n" + + "\x0fuser_defined_id\x18\x02 \x01(\tH\x00R\ruserDefinedIdB\a\n" + + "\x05valueB'Z%com/coralogixapis/notification_centerb\x06proto3" + +var ( + file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescOnce sync.Once + file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescData []byte +) + +func file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescGZIP() []byte { + file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescOnce.Do(func() { + file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDesc))) + }) + return file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDescData +} + +var file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_com_coralogixapis_notification_center_common_v1_identifier_proto_goTypes = []any{ + (*ConnectorIdentifier)(nil), // 0: com.coralogixapis.notification_center.ConnectorIdentifier + (*PresetIdentifier)(nil), // 1: com.coralogixapis.notification_center.PresetIdentifier + (*GlobalRouterIdentifier)(nil), // 2: com.coralogixapis.notification_center.GlobalRouterIdentifier +} +var file_com_coralogixapis_notification_center_common_v1_identifier_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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 +} + +func init() { file_com_coralogixapis_notification_center_common_v1_identifier_proto_init() } +func file_com_coralogixapis_notification_center_common_v1_identifier_proto_init() { + if File_com_coralogixapis_notification_center_common_v1_identifier_proto != nil { + return + } + file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[0].OneofWrappers = []any{ + (*ConnectorIdentifier_Id)(nil), + (*ConnectorIdentifier_UserDefinedId)(nil), + } + file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[1].OneofWrappers = []any{ + (*PresetIdentifier_Id)(nil), + (*PresetIdentifier_UserDefinedId)(nil), + } + file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes[2].OneofWrappers = []any{ + (*GlobalRouterIdentifier_Id)(nil), + (*GlobalRouterIdentifier_UserDefinedId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_identifier_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_com_coralogixapis_notification_center_common_v1_identifier_proto_goTypes, + DependencyIndexes: file_com_coralogixapis_notification_center_common_v1_identifier_proto_depIdxs, + MessageInfos: file_com_coralogixapis_notification_center_common_v1_identifier_proto_msgTypes, + }.Build() + File_com_coralogixapis_notification_center_common_v1_identifier_proto = out.File + file_com_coralogixapis_notification_center_common_v1_identifier_proto_goTypes = nil + file_com_coralogixapis_notification_center_common_v1_identifier_proto_depIdxs = nil +} diff --git a/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go b/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go deleted file mode 100644 index bb278b4a..00000000 --- a/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go +++ /dev/null @@ -1,411 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.6 -// protoc v5.29.3 -// source: com/coralogixapis/notification_center/common/v1/routing.proto - -package v1 - -import ( - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -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) -) - -type RoutingRule struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Condition template that is rendered to true or false and used to determine if the rule should be applied - Condition string `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` - // List of targets to send the notification to - Targets []*RoutingTarget `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"` - CustomDetails map[string]string `protobuf:"bytes,3,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RoutingRule) Reset() { - *x = RoutingRule{} - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RoutingRule) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RoutingRule) ProtoMessage() {} - -func (x *RoutingRule) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead. -func (*RoutingRule) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescGZIP(), []int{0} -} - -func (x *RoutingRule) GetCondition() string { - if x != nil { - return x.Condition - } - return "" -} - -func (x *RoutingRule) GetTargets() []*RoutingTarget { - if x != nil { - return x.Targets - } - return nil -} - -func (x *RoutingRule) GetCustomDetails() map[string]string { - if x != nil { - return x.CustomDetails - } - return nil -} - -func (x *RoutingRule) GetName() string { - if x != nil && x.Name != nil { - return *x.Name - } - return "" -} - -type RoutingTarget struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Connector ID to send the notification to - ConnectorId string `protobuf:"bytes,1,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - // Preset to use for rendering notification content, default preset is used if not provided - PresetId *string `protobuf:"bytes,2,opt,name=preset_id,json=presetId,proto3,oneof" json:"preset_id,omitempty"` - ConfigOverrides *SourceOverrides `protobuf:"bytes,3,opt,name=config_overrides,json=configOverrides,proto3,oneof" json:"config_overrides,omitempty"` - CustomDetails map[string]string `protobuf:"bytes,4,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *RoutingTarget) Reset() { - *x = RoutingTarget{} - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RoutingTarget) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RoutingTarget) ProtoMessage() {} - -func (x *RoutingTarget) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RoutingTarget.ProtoReflect.Descriptor instead. -func (*RoutingTarget) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescGZIP(), []int{1} -} - -func (x *RoutingTarget) GetConnectorId() string { - if x != nil { - return x.ConnectorId - } - return "" -} - -func (x *RoutingTarget) GetPresetId() string { - if x != nil && x.PresetId != nil { - return *x.PresetId - } - return "" -} - -func (x *RoutingTarget) GetConfigOverrides() *SourceOverrides { - if x != nil { - return x.ConfigOverrides - } - return nil -} - -func (x *RoutingTarget) GetCustomDetails() map[string]string { - if x != nil { - return x.CustomDetails - } - return nil -} - -type SourceOverrides struct { - state protoimpl.MessageState `protogen:"open.v1"` - OutputSchemaId string `protobuf:"bytes,1,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - MessageConfigFields []*MessageConfigField `protobuf:"bytes,3,rep,name=message_config_fields,json=messageConfigFields,proto3" json:"message_config_fields,omitempty"` - ConnectorConfigFields []*ConnectorConfigField `protobuf:"bytes,4,rep,name=connector_config_fields,json=connectorConfigFields,proto3" json:"connector_config_fields,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SourceOverrides) Reset() { - *x = SourceOverrides{} - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SourceOverrides) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SourceOverrides) ProtoMessage() {} - -func (x *SourceOverrides) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SourceOverrides.ProtoReflect.Descriptor instead. -func (*SourceOverrides) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescGZIP(), []int{2} -} - -func (x *SourceOverrides) GetOutputSchemaId() string { - if x != nil { - return x.OutputSchemaId - } - return "" -} - -func (x *SourceOverrides) GetMessageConfigFields() []*MessageConfigField { - if x != nil { - return x.MessageConfigFields - } - return nil -} - -func (x *SourceOverrides) GetConnectorConfigFields() []*ConnectorConfigField { - if x != nil { - return x.ConnectorConfigFields - } - return nil -} - -type GlobalRouterIdentifier struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Value: - // - // *GlobalRouterIdentifier_Id - // *GlobalRouterIdentifier_UserFacingId - Value isGlobalRouterIdentifier_Value `protobuf_oneof:"value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GlobalRouterIdentifier) Reset() { - *x = GlobalRouterIdentifier{} - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GlobalRouterIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GlobalRouterIdentifier) ProtoMessage() {} - -func (x *GlobalRouterIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GlobalRouterIdentifier.ProtoReflect.Descriptor instead. -func (*GlobalRouterIdentifier) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescGZIP(), []int{3} -} - -func (x *GlobalRouterIdentifier) GetValue() isGlobalRouterIdentifier_Value { - if x != nil { - return x.Value - } - return nil -} - -func (x *GlobalRouterIdentifier) GetId() string { - if x != nil { - if x, ok := x.Value.(*GlobalRouterIdentifier_Id); ok { - return x.Id - } - } - return "" -} - -func (x *GlobalRouterIdentifier) GetUserFacingId() string { - if x != nil { - if x, ok := x.Value.(*GlobalRouterIdentifier_UserFacingId); ok { - return x.UserFacingId - } - } - return "" -} - -type isGlobalRouterIdentifier_Value interface { - isGlobalRouterIdentifier_Value() -} - -type GlobalRouterIdentifier_Id struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` -} - -type GlobalRouterIdentifier_UserFacingId struct { - UserFacingId string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` -} - -func (*GlobalRouterIdentifier_Id) isGlobalRouterIdentifier_Value() {} - -func (*GlobalRouterIdentifier_UserFacingId) isGlobalRouterIdentifier_Value() {} - -var File_com_coralogixapis_notification_center_common_v1_routing_proto protoreflect.FileDescriptor - -const file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDesc = "" + - "\n" + - "=com/coralogixapis/notification_center/common/v1/routing.proto\x12-com.coralogixapis.notification_center.routing\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xd1\x04\n" + - "\vRoutingRule\x12>\n" + - "\tcondition\x18\x01 \x01(\tB \x92A\x1dJ\x1b\"alertDef.priority == 'P3'\"R\tcondition\x12V\n" + - "\atargets\x18\x02 \x03(\v2<.com.coralogixapis.notification_center.routing.RoutingTargetR\atargets\x12t\n" + - "\x0ecustom_details\x18\x03 \x03(\v2M.com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntryR\rcustomDetails\x12\x17\n" + - "\x04name\x18\x04 \x01(\tH\x00R\x04name\x88\x01\x01\x1a@\n" + - "\x12CustomDetailsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\xcf\x01\x92A\xcb\x01\n" + - "L*\fRouting Rule2&Defines routing rule for notifications\xd2\x01\tcondition\xd2\x01\atargets*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\a\n" + - "\x05_name\"\xf0\x04\n" + - "\rRoutingTarget\x12!\n" + - "\fconnector_id\x18\x01 \x01(\tR\vconnectorId\x12 \n" + - "\tpreset_id\x18\x02 \x01(\tH\x00R\bpresetId\x88\x01\x01\x12n\n" + - "\x10config_overrides\x18\x03 \x01(\v2>.com.coralogixapis.notification_center.routing.SourceOverridesH\x01R\x0fconfigOverrides\x88\x01\x01\x12v\n" + - "\x0ecustom_details\x18\x04 \x03(\v2O.com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntryR\rcustomDetails\x1a@\n" + - "\x12CustomDetailsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\xcc\x01\x92A\xc8\x01\n" + - "I*\x0eRouting Target2(Defines routing target for notifications\xd2\x01\fconnector_id*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\f\n" + - "\n" + - "_preset_idB\x13\n" + - "\x11_config_overrides\"\x9f\x02\n" + - "\x0fSourceOverrides\x12(\n" + - "\x10output_schema_id\x18\x01 \x01(\tR\x0eoutputSchemaId\x12m\n" + - "\x15message_config_fields\x18\x03 \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x13messageConfigFields\x12s\n" + - "\x17connector_config_fields\x18\x04 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x15connectorConfigFields\"[\n" + - "\x16GlobalRouterIdentifier\x12\x10\n" + - "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12&\n" + - "\x0euser_facing_id\x18\x02 \x01(\tH\x00R\fuserFacingIdB\a\n" + - "\x05valueb\x06proto3" - -var ( - file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescOnce sync.Once - file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescData []byte -) - -func file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescGZIP() []byte { - file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescOnce.Do(func() { - file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDesc))) - }) - return file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDescData -} - -var file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_com_coralogixapis_notification_center_common_v1_routing_proto_goTypes = []any{ - (*RoutingRule)(nil), // 0: com.coralogixapis.notification_center.routing.RoutingRule - (*RoutingTarget)(nil), // 1: com.coralogixapis.notification_center.routing.RoutingTarget - (*SourceOverrides)(nil), // 2: com.coralogixapis.notification_center.routing.SourceOverrides - (*GlobalRouterIdentifier)(nil), // 3: com.coralogixapis.notification_center.routing.GlobalRouterIdentifier - nil, // 4: com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntry - nil, // 5: com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntry - (*MessageConfigField)(nil), // 6: com.coralogixapis.notification_center.MessageConfigField - (*ConnectorConfigField)(nil), // 7: com.coralogixapis.notification_center.ConnectorConfigField -} -var file_com_coralogixapis_notification_center_common_v1_routing_proto_depIdxs = []int32{ - 1, // 0: com.coralogixapis.notification_center.routing.RoutingRule.targets:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget - 4, // 1: com.coralogixapis.notification_center.routing.RoutingRule.custom_details:type_name -> com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntry - 2, // 2: com.coralogixapis.notification_center.routing.RoutingTarget.config_overrides:type_name -> com.coralogixapis.notification_center.routing.SourceOverrides - 5, // 3: com.coralogixapis.notification_center.routing.RoutingTarget.custom_details:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntry - 6, // 4: com.coralogixapis.notification_center.routing.SourceOverrides.message_config_fields:type_name -> com.coralogixapis.notification_center.MessageConfigField - 7, // 5: com.coralogixapis.notification_center.routing.SourceOverrides.connector_config_fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_com_coralogixapis_notification_center_common_v1_routing_proto_init() } -func file_com_coralogixapis_notification_center_common_v1_routing_proto_init() { - if File_com_coralogixapis_notification_center_common_v1_routing_proto != nil { - return - } - file_com_coralogixapis_notification_center_common_v1_config_fields_proto_init() - file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[0].OneofWrappers = []any{} - file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[1].OneofWrappers = []any{} - file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes[3].OneofWrappers = []any{ - (*GlobalRouterIdentifier_Id)(nil), - (*GlobalRouterIdentifier_UserFacingId)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_routing_proto_rawDesc)), - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_com_coralogixapis_notification_center_common_v1_routing_proto_goTypes, - DependencyIndexes: file_com_coralogixapis_notification_center_common_v1_routing_proto_depIdxs, - MessageInfos: file_com_coralogixapis_notification_center_common_v1_routing_proto_msgTypes, - }.Build() - File_com_coralogixapis_notification_center_common_v1_routing_proto = out.File - file_com_coralogixapis_notification_center_common_v1_routing_proto_goTypes = nil - file_com_coralogixapis_notification_center_common_v1_routing_proto_depIdxs = nil -} diff --git a/go/internal/coralogixapis/notification_center/common/v1/routing/routing.pb.go b/go/internal/coralogixapis/notification_center/common/v1/routing/routing.pb.go new file mode 100644 index 00000000..dca2ad84 --- /dev/null +++ b/go/internal/coralogixapis/notification_center/common/v1/routing/routing.pb.go @@ -0,0 +1,465 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: com/coralogixapis/notification_center/common/v1/routing/routing.proto + +package routing + +import ( + v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +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) +) + +type RoutingRule struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Condition template that is rendered to true or false and used to determine if the rule should be applied + Condition string `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + // List of targets to send the notification to + Targets []*RoutingTarget `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"` + CustomDetails map[string]string `protobuf:"bytes,3,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RoutingRule) Reset() { + *x = RoutingRule{} + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RoutingRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RoutingRule) ProtoMessage() {} + +func (x *RoutingRule) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead. +func (*RoutingRule) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescGZIP(), []int{0} +} + +func (x *RoutingRule) GetCondition() string { + if x != nil { + return x.Condition + } + return "" +} + +func (x *RoutingRule) GetTargets() []*RoutingTarget { + if x != nil { + return x.Targets + } + return nil +} + +func (x *RoutingRule) GetCustomDetails() map[string]string { + if x != nil { + return x.CustomDetails + } + return nil +} + +func (x *RoutingRule) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +type RoutingTarget struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Connector ID to send the notification to + // + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. + DeprecatedConnectorId string `protobuf:"bytes,1,opt,name=deprecated_connector_id,json=deprecatedConnectorId,proto3" json:"deprecated_connector_id,omitempty"` + // Preset to use for rendering notification content, default preset is used if not provided + // + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. + DeprecatedPresetId *string `protobuf:"bytes,2,opt,name=deprecated_preset_id,json=deprecatedPresetId,proto3,oneof" json:"deprecated_preset_id,omitempty"` + CustomDetails map[string]string `protobuf:"bytes,4,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,5,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. + PresetIdentifier *v1.PresetIdentifier `protobuf:"bytes,6,opt,name=preset_identifier,json=presetIdentifier,proto3,oneof" json:"preset_identifier,omitempty"` + ConnectorId string `protobuf:"bytes,7,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` + PresetId *string `protobuf:"bytes,8,opt,name=preset_id,json=presetId,proto3,oneof" json:"preset_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RoutingTarget) Reset() { + *x = RoutingTarget{} + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RoutingTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RoutingTarget) ProtoMessage() {} + +func (x *RoutingTarget) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RoutingTarget.ProtoReflect.Descriptor instead. +func (*RoutingTarget) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescGZIP(), []int{1} +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. +func (x *RoutingTarget) GetDeprecatedConnectorId() string { + if x != nil { + return x.DeprecatedConnectorId + } + return "" +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. +func (x *RoutingTarget) GetDeprecatedPresetId() string { + if x != nil && x.DeprecatedPresetId != nil { + return *x.DeprecatedPresetId + } + return "" +} + +func (x *RoutingTarget) GetCustomDetails() map[string]string { + if x != nil { + return x.CustomDetails + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. +func (x *RoutingTarget) GetConnectorIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.ConnectorIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. +func (x *RoutingTarget) GetPresetIdentifier() *v1.PresetIdentifier { + if x != nil { + return x.PresetIdentifier + } + return nil +} + +func (x *RoutingTarget) GetConnectorId() string { + if x != nil { + return x.ConnectorId + } + return "" +} + +func (x *RoutingTarget) GetPresetId() string { + if x != nil && x.PresetId != nil { + return *x.PresetId + } + return "" +} + +type SourceOverrides struct { + state protoimpl.MessageState `protogen:"open.v1"` + PayloadType string `protobuf:"bytes,1,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"` + MessageConfigFields []*v1.MessageConfigField `protobuf:"bytes,3,rep,name=message_config_fields,json=messageConfigFields,proto3" json:"message_config_fields,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. + DeprecatedConnectorConfigFields []*v1.ConnectorConfigField `protobuf:"bytes,4,rep,name=deprecated_connector_config_fields,json=deprecatedConnectorConfigFields,proto3" json:"deprecated_connector_config_fields,omitempty"` + ConnectorConfigFields []*v1.TemplatedConnectorConfigField `protobuf:"bytes,5,rep,name=connector_config_fields,json=connectorConfigFields,proto3" json:"connector_config_fields,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SourceOverrides) Reset() { + *x = SourceOverrides{} + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SourceOverrides) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceOverrides) ProtoMessage() {} + +func (x *SourceOverrides) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceOverrides.ProtoReflect.Descriptor instead. +func (*SourceOverrides) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescGZIP(), []int{2} +} + +func (x *SourceOverrides) GetPayloadType() string { + if x != nil { + return x.PayloadType + } + return "" +} + +func (x *SourceOverrides) GetMessageConfigFields() []*v1.MessageConfigField { + if x != nil { + return x.MessageConfigFields + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/common/v1/routing/routing.proto. +func (x *SourceOverrides) GetDeprecatedConnectorConfigFields() []*v1.ConnectorConfigField { + if x != nil { + return x.DeprecatedConnectorConfigFields + } + return nil +} + +func (x *SourceOverrides) GetConnectorConfigFields() []*v1.TemplatedConnectorConfigField { + if x != nil { + return x.ConnectorConfigFields + } + return nil +} + +type GlobalRouterIdentifier struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Value: + // + // *GlobalRouterIdentifier_Id + // *GlobalRouterIdentifier_UserFacingId + Value isGlobalRouterIdentifier_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GlobalRouterIdentifier) Reset() { + *x = GlobalRouterIdentifier{} + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GlobalRouterIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GlobalRouterIdentifier) ProtoMessage() {} + +func (x *GlobalRouterIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GlobalRouterIdentifier.ProtoReflect.Descriptor instead. +func (*GlobalRouterIdentifier) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescGZIP(), []int{3} +} + +func (x *GlobalRouterIdentifier) GetValue() isGlobalRouterIdentifier_Value { + if x != nil { + return x.Value + } + return nil +} + +func (x *GlobalRouterIdentifier) GetId() string { + if x != nil { + if x, ok := x.Value.(*GlobalRouterIdentifier_Id); ok { + return x.Id + } + } + return "" +} + +func (x *GlobalRouterIdentifier) GetUserFacingId() string { + if x != nil { + if x, ok := x.Value.(*GlobalRouterIdentifier_UserFacingId); ok { + return x.UserFacingId + } + } + return "" +} + +type isGlobalRouterIdentifier_Value interface { + isGlobalRouterIdentifier_Value() +} + +type GlobalRouterIdentifier_Id struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` +} + +type GlobalRouterIdentifier_UserFacingId struct { + UserFacingId string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` +} + +func (*GlobalRouterIdentifier_Id) isGlobalRouterIdentifier_Value() {} + +func (*GlobalRouterIdentifier_UserFacingId) isGlobalRouterIdentifier_Value() {} + +var File_com_coralogixapis_notification_center_common_v1_routing_routing_proto protoreflect.FileDescriptor + +const file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDesc = "" + + "\n" + + "Ecom/coralogixapis/notification_center/common/v1/routing/routing.proto\x12-com.coralogixapis.notification_center.routing\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\"\xd1\x04\n" + + "\vRoutingRule\x12>\n" + + "\tcondition\x18\x01 \x01(\tB \x92A\x1dJ\x1b\"alertDef.priority == 'P3'\"R\tcondition\x12V\n" + + "\atargets\x18\x02 \x03(\v2<.com.coralogixapis.notification_center.routing.RoutingTargetR\atargets\x12t\n" + + "\x0ecustom_details\x18\x03 \x03(\v2M.com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntryR\rcustomDetails\x12\x17\n" + + "\x04name\x18\x04 \x01(\tH\x00R\x04name\x88\x01\x01\x1a@\n" + + "\x12CustomDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\xcf\x01\x92A\xcb\x01\n" + + "L*\fRouting Rule2&Defines routing rule for notifications\xd2\x01\tcondition\xd2\x01\atargets*{\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\a\n" + + "\x05_name\"\x8b\a\n" + + "\rRoutingTarget\x12:\n" + + "\x17deprecated_connector_id\x18\x01 \x01(\tB\x02\x18\x01R\x15deprecatedConnectorId\x129\n" + + "\x14deprecated_preset_id\x18\x02 \x01(\tB\x02\x18\x01H\x00R\x12deprecatedPresetId\x88\x01\x01\x12v\n" + + "\x0ecustom_details\x18\x04 \x03(\v2O.com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntryR\rcustomDetails\x12q\n" + + "\x14connector_identifier\x18\x05 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x13connectorIdentifier\x12m\n" + + "\x11preset_identifier\x18\x06 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01H\x01R\x10presetIdentifier\x88\x01\x01\x12!\n" + + "\fconnector_id\x18\a \x01(\tR\vconnectorId\x12 \n" + + "\tpreset_id\x18\b \x01(\tH\x02R\bpresetId\x88\x01\x01\x1a@\n" + + "\x12CustomDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\xcc\x01\x92A\xc8\x01\n" + + "I*\x0eRouting Target2(Defines routing target for notifications\xd2\x01\fconnector_id*{\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x17\n" + + "\x15_deprecated_preset_idB\x14\n" + + "\x12_preset_identifierB\f\n" + + "\n" + + "_preset_idJ\x04\b\x03\x10\x04R\x10config_overrides\"\xb0\x03\n" + + "\x0fSourceOverrides\x12!\n" + + "\fpayload_type\x18\x01 \x01(\tR\vpayloadType\x12m\n" + + "\x15message_config_fields\x18\x03 \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x13messageConfigFields\x12\x8c\x01\n" + + "\"deprecated_connector_config_fields\x18\x04 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldB\x02\x18\x01R\x1fdeprecatedConnectorConfigFields\x12|\n" + + "\x17connector_config_fields\x18\x05 \x03(\v2D.com.coralogixapis.notification_center.TemplatedConnectorConfigFieldR\x15connectorConfigFields\"[\n" + + "\x16GlobalRouterIdentifier\x12\x10\n" + + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12&\n" + + "\x0euser_facing_id\x18\x02 \x01(\tH\x00R\fuserFacingIdB\a\n" + + "\x05valueB/Z-com/coralogixapis/notification_center/routingb\x06proto3" + +var ( + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescOnce sync.Once + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescData []byte +) + +func file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescGZIP() []byte { + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescOnce.Do(func() { + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDesc))) + }) + return file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDescData +} + +var file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_goTypes = []any{ + (*RoutingRule)(nil), // 0: com.coralogixapis.notification_center.routing.RoutingRule + (*RoutingTarget)(nil), // 1: com.coralogixapis.notification_center.routing.RoutingTarget + (*SourceOverrides)(nil), // 2: com.coralogixapis.notification_center.routing.SourceOverrides + (*GlobalRouterIdentifier)(nil), // 3: com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + nil, // 4: com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntry + nil, // 5: com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntry + (*v1.ConnectorIdentifier)(nil), // 6: com.coralogixapis.notification_center.ConnectorIdentifier + (*v1.PresetIdentifier)(nil), // 7: com.coralogixapis.notification_center.PresetIdentifier + (*v1.MessageConfigField)(nil), // 8: com.coralogixapis.notification_center.MessageConfigField + (*v1.ConnectorConfigField)(nil), // 9: com.coralogixapis.notification_center.ConnectorConfigField + (*v1.TemplatedConnectorConfigField)(nil), // 10: com.coralogixapis.notification_center.TemplatedConnectorConfigField +} +var file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_depIdxs = []int32{ + 1, // 0: com.coralogixapis.notification_center.routing.RoutingRule.targets:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget + 4, // 1: com.coralogixapis.notification_center.routing.RoutingRule.custom_details:type_name -> com.coralogixapis.notification_center.routing.RoutingRule.CustomDetailsEntry + 5, // 2: com.coralogixapis.notification_center.routing.RoutingTarget.custom_details:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget.CustomDetailsEntry + 6, // 3: com.coralogixapis.notification_center.routing.RoutingTarget.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 7, // 4: com.coralogixapis.notification_center.routing.RoutingTarget.preset_identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 8, // 5: com.coralogixapis.notification_center.routing.SourceOverrides.message_config_fields:type_name -> com.coralogixapis.notification_center.MessageConfigField + 9, // 6: com.coralogixapis.notification_center.routing.SourceOverrides.deprecated_connector_config_fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField + 10, // 7: com.coralogixapis.notification_center.routing.SourceOverrides.connector_config_fields:type_name -> com.coralogixapis.notification_center.TemplatedConnectorConfigField + 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_com_coralogixapis_notification_center_common_v1_routing_routing_proto_init() } +func file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_init() { + if File_com_coralogixapis_notification_center_common_v1_routing_routing_proto != nil { + return + } + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[0].OneofWrappers = []any{} + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[1].OneofWrappers = []any{} + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes[3].OneofWrappers = []any{ + (*GlobalRouterIdentifier_Id)(nil), + (*GlobalRouterIdentifier_UserFacingId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_goTypes, + DependencyIndexes: file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_depIdxs, + MessageInfos: file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_msgTypes, + }.Build() + File_com_coralogixapis_notification_center_common_v1_routing_routing_proto = out.File + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_goTypes = nil + file_com_coralogixapis_notification_center_common_v1_routing_routing_proto_depIdxs = nil +} diff --git a/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go b/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go index ae81aa41..cb907ccf 100644 --- a/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go +++ b/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go @@ -27,21 +27,19 @@ const ( type Connector struct { state protoimpl.MessageState `protogen:"open.v1"` - // A unique identifier automatically generated by the service (do not provide this from the client side) - Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - // A unique identifier provided by the user - UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` - Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` - TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + // A unique identifier (generated by the system if not provided) + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` + TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // System-generated timestamp for when the connector was last updated CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` // System-generated timestamp for when the connector was last updated - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` - ConnectorConfigs []*ConnectorConfig `protobuf:"bytes,9,rep,name=connector_configs,json=connectorConfigs,proto3" json:"connector_configs,omitempty"` + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` // Configuration override templates for specific entity types, values from connector_configs will be used if not overridden ConfigOverrides []*EntityTypeConfigOverrides `protobuf:"bytes,11,rep,name=config_overrides,json=configOverrides,proto3" json:"config_overrides,omitempty"` + ConnectorConfig *ConnectorConfig `protobuf:"bytes,12,opt,name=connector_config,json=connectorConfig,proto3" json:"connector_config,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -83,13 +81,6 @@ func (x *Connector) GetId() string { return "" } -func (x *Connector) GetUserFacingId() string { - if x != nil && x.UserFacingId != nil { - return *x.UserFacingId - } - return "" -} - func (x *Connector) GetType() common.ConnectorType { if x != nil { return x.Type @@ -132,26 +123,28 @@ func (x *Connector) GetUpdateTime() *timestamppb.Timestamp { return nil } -func (x *Connector) GetConnectorConfigs() []*ConnectorConfig { +func (x *Connector) GetConfigOverrides() []*EntityTypeConfigOverrides { if x != nil { - return x.ConnectorConfigs + return x.ConfigOverrides } return nil } -func (x *Connector) GetConfigOverrides() []*EntityTypeConfigOverrides { +func (x *Connector) GetConnectorConfig() *ConnectorConfig { if x != nil { - return x.ConfigOverrides + return x.ConnectorConfig } return nil } type EntityTypeConfigOverrides struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - ConnectorConfigs []*ConnectorConfig `protobuf:"bytes,2,rep,name=connector_configs,json=connectorConfigs,proto3" json:"connector_configs,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connector.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + Fields []*v1.TemplatedConnectorConfigField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EntityTypeConfigOverrides) Reset() { @@ -184,16 +177,24 @@ func (*EntityTypeConfigOverrides) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{1} } -func (x *EntityTypeConfigOverrides) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connector.proto. +func (x *EntityTypeConfigOverrides) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } -func (x *EntityTypeConfigOverrides) GetConnectorConfigs() []*ConnectorConfig { +func (x *EntityTypeConfigOverrides) GetEntityType() common.EntityType { if x != nil { - return x.ConnectorConfigs + return x.EntityType + } + return common.EntityType(0) +} + +func (x *EntityTypeConfigOverrides) GetFields() []*v1.TemplatedConnectorConfigField { + if x != nil { + return x.Fields } return nil } @@ -202,7 +203,7 @@ type ConnectorSummary struct { state protoimpl.MessageState `protogen:"open.v1"` Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // for declarative API - UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` + UserDefinedId *string `protobuf:"bytes,2,opt,name=user_defined_id,json=userDefinedId,proto3,oneof" json:"user_defined_id,omitempty"` Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` @@ -250,9 +251,9 @@ func (x *ConnectorSummary) GetId() string { return "" } -func (x *ConnectorSummary) GetUserFacingId() string { - if x != nil && x.UserFacingId != nil { - return *x.UserFacingId +func (x *ConnectorSummary) GetUserDefinedId() string { + if x != nil && x.UserDefinedId != nil { + return *x.UserDefinedId } return "" } @@ -300,11 +301,10 @@ func (x *ConnectorSummary) GetUpdateTime() *timestamppb.Timestamp { } type ConnectorConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` - OutputSchemaId string `protobuf:"bytes,1,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - Fields []*v1.ConnectorConfigField `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Fields []*v1.ConnectorConfigField `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConnectorConfig) Reset() { @@ -337,13 +337,6 @@ func (*ConnectorConfig) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{3} } -func (x *ConnectorConfig) GetOutputSchemaId() string { - if x != nil { - return x.OutputSchemaId - } - return "" -} - func (x *ConnectorConfig) GetFields() []*v1.ConnectorConfigField { if x != nil { return x.Fields @@ -407,37 +400,37 @@ var File_com_coralogixapis_notification_center_connectors_v1_connector_proto pro const file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDesc = "" + "\n" + - "Ccom/coralogixapis/notification_center/connectors/v1/connector.proto\x123com.coralogixapis.notification_center.connectors.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xbb\b\n" + + "Ccom/coralogixapis/notification_center/connectors/v1/connector.proto\x123com.coralogixapis.notification_center.connectors.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x80\b\n" + "\tConnector\x12@\n" + - "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x12C\n" + - "\x0euser_facing_id\x18\x02 \x01(\tB\x18\x92A\x15J\x13\"user-connector-id\"H\x01R\fuserFacingId\x88\x01\x01\x12H\n" + + "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x12H\n" + "\x04type\x18\x03 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\x04type\x12*\n" + - "\ateam_id\x18\x04 \x01(\rB\f\x92A\tJ\a\"12345\"H\x02R\x06teamId\x88\x01\x01\x120\n" + + "\ateam_id\x18\x04 \x01(\rB\f\x92A\tJ\a\"12345\"H\x01R\x06teamId\x88\x01\x01\x120\n" + "\x04name\x18\x05 \x01(\tB\x1c\x92A\x19J\x14\"My Slack Connector\"x\xc8\x01R\x04name\x12L\n" + "\vdescription\x18\x06 \x01(\tB*\x92A'J\"\"Connector for team notifications\"x\x88'R\vdescription\x12@\n" + - "\vcreate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampH\x03R\n" + + "\vcreate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampH\x02R\n" + "createTime\x88\x01\x01\x12@\n" + - "\vupdate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x04R\n" + - "updateTime\x88\x01\x01\x12q\n" + - "\x11connector_configs\x18\t \x03(\v2D.com.coralogixapis.notification_center.connectors.v1.ConnectorConfigR\x10connectorConfigs\x12y\n" + - "\x10config_overrides\x18\v \x03(\v2N.com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverridesR\x0fconfigOverrides:\xe5\x01\x92A\xe1\x01\n" + + "\vupdate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x03R\n" + + "updateTime\x88\x01\x01\x12y\n" + + "\x10config_overrides\x18\v \x03(\v2N.com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverridesR\x0fconfigOverrides\x12o\n" + + "\x10connector_config\x18\f \x01(\v2D.com.coralogixapis.notification_center.connectors.v1.ConnectorConfigR\x0fconnectorConfig:\xe5\x01\x92A\xe1\x01\n" + "b*\tConnector23A connector configuration for sending notifications\xd2\x01\x04type\xd2\x01\x04name\xd2\x01\x11connector_configs*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x05\n" + - "\x03_idB\x11\n" + - "\x0f_user_facing_idB\n" + + "\x03_idB\n" + "\n" + "\b_team_idB\x0e\n" + "\f_create_timeB\x0e\n" + - "\f_update_timeJ\x04\b\n" + - "\x10\vR\ventity_type\"\xbe\x01\n" + - "\x19EntityTypeConfigOverrides\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12q\n" + - "\x11connector_configs\x18\x02 \x03(\v2D.com.coralogixapis.notification_center.connectors.v1.ConnectorConfigR\x10connectorConfigs\"\xcd\x03\n" + + "\f_update_timeJ\x04\b\x02\x10\x03J\x04\b\t\x10\n" + + "J\x04\b\n" + + "\x10\vR\x11connector_configsR\ventity_type\"\xaf\x02\n" + + "\x19EntityTypeConfigOverrides\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12a\n" + + "\ventity_type\x18\x03 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x12\\\n" + + "\x06fields\x18\x04 \x03(\v2D.com.coralogixapis.notification_center.TemplatedConnectorConfigFieldR\x06fieldsJ\x04\b\x02\x10\x03R\x11connector_configs\"\xd0\x03\n" + "\x10ConnectorSummary\x12\x13\n" + - "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12)\n" + - "\x0euser_facing_id\x18\x02 \x01(\tH\x01R\fuserFacingId\x88\x01\x01\x12H\n" + + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12+\n" + + "\x0fuser_defined_id\x18\x02 \x01(\tH\x01R\ruserDefinedId\x88\x01\x01\x12H\n" + "\x04type\x18\x03 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\x04type\x12\x1c\n" + "\ateam_id\x18\x04 \x01(\rH\x02R\x06teamId\x88\x01\x01\x12\x12\n" + "\x04name\x18\x05 \x01(\tR\x04name\x12 \n" + @@ -446,23 +439,22 @@ const file_com_coralogixapis_notification_center_connectors_v1_connector_proto_r "createTime\x88\x01\x01\x12@\n" + "\vupdate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x04R\n" + "updateTime\x88\x01\x01B\x05\n" + - "\x03_idB\x11\n" + - "\x0f_user_facing_idB\n" + + "\x03_idB\x12\n" + + "\x10_user_defined_idB\n" + "\n" + "\b_team_idB\x0e\n" + "\f_create_timeB\x0e\n" + "\f_update_timeJ\x04\b\t\x10\n" + - "R\ventity_type\"\xf5\x02\n" + - "\x0fConnectorConfig\x12:\n" + - "\x10output_schema_id\x18\x01 \x01(\tB\x10\x92A\rJ\v\"schema-id\"R\x0eoutputSchemaId\x12S\n" + + "R\ventity_type\"\xd1\x02\n" + + "\x0fConnectorConfig\x12S\n" + "\x06fields\x18\x02 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x06fields:\xd0\x01\x92A\xcc\x01\n" + "M*\x10Connector Config29Configuration for a specific output schema of a connector*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xca\x02\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x01\x10\x02R\x10output_schema_id\"\xca\x02\n" + "\x14ConnectorTypeSummary\x12H\n" + "\x04type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\x04type\x12\x1e\n" + "\x05count\x18\x02 \x01(\rB\b\x92A\x05J\x03\"5\"R\x05count:\xc7\x01\x92A\xc3\x01\n" + "D*\x16Connector Type Summary2*Summary information about a connector type*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/b\x06proto3" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B5Z3com/coralogixapis/notification_center/connectors/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescOnce sync.Once @@ -478,32 +470,35 @@ func file_com_coralogixapis_notification_center_connectors_v1_connector_proto_ra var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_goTypes = []any{ - (*Connector)(nil), // 0: com.coralogixapis.notification_center.connectors.v1.Connector - (*EntityTypeConfigOverrides)(nil), // 1: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides - (*ConnectorSummary)(nil), // 2: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary - (*ConnectorConfig)(nil), // 3: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig - (*ConnectorTypeSummary)(nil), // 4: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary - (common.ConnectorType)(0), // 5: com.coralogixapis.notification_center.ConnectorType - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - (*v1.ConnectorConfigField)(nil), // 7: com.coralogixapis.notification_center.ConnectorConfigField + (*Connector)(nil), // 0: com.coralogixapis.notification_center.connectors.v1.Connector + (*EntityTypeConfigOverrides)(nil), // 1: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides + (*ConnectorSummary)(nil), // 2: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + (*ConnectorConfig)(nil), // 3: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig + (*ConnectorTypeSummary)(nil), // 4: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + (common.ConnectorType)(0), // 5: com.coralogixapis.notification_center.ConnectorType + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (common.EntityType)(0), // 7: com.coralogixapis.notification_center.EntityType + (*v1.TemplatedConnectorConfigField)(nil), // 8: com.coralogixapis.notification_center.TemplatedConnectorConfigField + (*v1.ConnectorConfigField)(nil), // 9: com.coralogixapis.notification_center.ConnectorConfigField } var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_depIdxs = []int32{ 5, // 0: com.coralogixapis.notification_center.connectors.v1.Connector.type:type_name -> com.coralogixapis.notification_center.ConnectorType 6, // 1: com.coralogixapis.notification_center.connectors.v1.Connector.create_time:type_name -> google.protobuf.Timestamp 6, // 2: com.coralogixapis.notification_center.connectors.v1.Connector.update_time:type_name -> google.protobuf.Timestamp - 3, // 3: com.coralogixapis.notification_center.connectors.v1.Connector.connector_configs:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig - 1, // 4: com.coralogixapis.notification_center.connectors.v1.Connector.config_overrides:type_name -> com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides - 3, // 5: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides.connector_configs:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig - 5, // 6: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType - 6, // 7: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.create_time:type_name -> google.protobuf.Timestamp - 6, // 8: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.update_time:type_name -> google.protobuf.Timestamp - 7, // 9: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig.fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 5, // 10: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType - 11, // [11:11] is the sub-list for method output_type - 11, // [11:11] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 1, // 3: com.coralogixapis.notification_center.connectors.v1.Connector.config_overrides:type_name -> com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides + 3, // 4: com.coralogixapis.notification_center.connectors.v1.Connector.connector_config:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig + 7, // 5: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 8, // 6: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides.fields:type_name -> com.coralogixapis.notification_center.TemplatedConnectorConfigField + 5, // 7: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType + 6, // 8: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.create_time:type_name -> google.protobuf.Timestamp + 6, // 9: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.update_time:type_name -> google.protobuf.Timestamp + 9, // 10: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig.fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField + 5, // 11: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_connectors_v1_connector_proto_init() } diff --git a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go index 81ec3dde..091d2936 100644 --- a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go +++ b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go @@ -8,6 +8,7 @@ package v1 import ( common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" + v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -202,8 +203,12 @@ func (x *ReplaceConnectorResponse) GetConnector() *Connector { } type DeleteConnectorRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedId string `protobuf:"bytes,1,opt,name=deprecated_id,json=deprecatedId,proto3" json:"deprecated_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + Identifier *v1.ConnectorIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -238,6 +243,22 @@ func (*DeleteConnectorRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{4} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *DeleteConnectorRequest) GetDeprecatedId() string { + if x != nil { + return x.DeprecatedId + } + return "" +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *DeleteConnectorRequest) GetIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.Identifier + } + return nil +} + func (x *DeleteConnectorRequest) GetId() string { if x != nil { return x.Id @@ -282,8 +303,12 @@ func (*DeleteConnectorResponse) Descriptor() ([]byte, []int) { } type GetConnectorRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedId string `protobuf:"bytes,1,opt,name=deprecated_id,json=deprecatedId,proto3" json:"deprecated_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + Identifier *v1.ConnectorIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -318,6 +343,22 @@ func (*GetConnectorRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{6} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *GetConnectorRequest) GetDeprecatedId() string { + if x != nil { + return x.DeprecatedId + } + return "" +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *GetConnectorRequest) GetIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.Identifier + } + return nil +} + func (x *GetConnectorRequest) GetId() string { if x != nil { return x.Id @@ -372,7 +413,6 @@ func (x *GetConnectorResponse) GetConnector() *Connector { type ListConnectorsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - OrderBys []*common.OrderBy `protobuf:"bytes,2,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -414,13 +454,6 @@ func (x *ListConnectorsRequest) GetConnectorType() common.ConnectorType { return common.ConnectorType(0) } -func (x *ListConnectorsRequest) GetOrderBys() []*common.OrderBy { - if x != nil { - return x.OrderBys - } - return nil -} - type ListConnectorsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"` @@ -466,10 +499,14 @@ func (x *ListConnectorsResponse) GetConnectors() []*Connector { } type BatchGetConnectorsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedIds []string `protobuf:"bytes,1,rep,name=deprecated_ids,json=deprecatedIds,proto3" json:"deprecated_ids,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedIdentifiers []*v1.ConnectorIdentifier `protobuf:"bytes,2,rep,name=deprecated_identifiers,json=deprecatedIdentifiers,proto3" json:"deprecated_identifiers,omitempty"` + Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatchGetConnectorsRequest) Reset() { @@ -502,6 +539,22 @@ func (*BatchGetConnectorsRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{10} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *BatchGetConnectorsRequest) GetDeprecatedIds() []string { + if x != nil { + return x.DeprecatedIds + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *BatchGetConnectorsRequest) GetDeprecatedIdentifiers() []*v1.ConnectorIdentifier { + if x != nil { + return x.DeprecatedIdentifiers + } + return nil +} + func (x *BatchGetConnectorsRequest) GetIds() []string { if x != nil { return x.Ids @@ -562,10 +615,14 @@ func (x *BatchGetConnectorsResponse) GetNotFoundIds() []string { } type BatchGetConnectorSummariesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedIds []string `protobuf:"bytes,1,rep,name=deprecated_ids,json=deprecatedIds,proto3" json:"deprecated_ids,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. + DeprecatedIdentifiers []*v1.ConnectorIdentifier `protobuf:"bytes,2,rep,name=deprecated_identifiers,json=deprecatedIdentifiers,proto3" json:"deprecated_identifiers,omitempty"` + Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatchGetConnectorSummariesRequest) Reset() { @@ -598,6 +655,22 @@ func (*BatchGetConnectorSummariesRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{12} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *BatchGetConnectorSummariesRequest) GetDeprecatedIds() []string { + if x != nil { + return x.DeprecatedIds + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/connectors/v1/connectors_service.proto. +func (x *BatchGetConnectorSummariesRequest) GetDeprecatedIdentifiers() []*v1.ConnectorIdentifier { + if x != nil { + return x.DeprecatedIdentifiers + } + return nil +} + func (x *BatchGetConnectorSummariesRequest) GetIds() []string { if x != nil { return x.Ids @@ -696,7 +769,6 @@ func (*GetConnectorTypeSummariesRequest) Descriptor() ([]byte, []int) { type ListConnectorSummariesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - OrderBys []*common.OrderBy `protobuf:"bytes,2,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -738,18 +810,11 @@ func (x *ListConnectorSummariesRequest) GetConnectorType() common.ConnectorType return common.ConnectorType(0) } -func (x *ListConnectorSummariesRequest) GetOrderBys() []*common.OrderBy { - if x != nil { - return x.OrderBys - } - return nil -} - type ListConnectorSummariesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - ConnectorSummaries []*ConnectorSummary `protobuf:"bytes,1,rep,name=connector_summaries,json=connectorSummaries,proto3" json:"connector_summaries,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Connectors []*ConnectorSummary `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListConnectorSummariesResponse) Reset() { @@ -782,9 +847,9 @@ func (*ListConnectorSummariesResponse) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{16} } -func (x *ListConnectorSummariesResponse) GetConnectorSummaries() []*ConnectorSummary { +func (x *ListConnectorSummariesResponse) GetConnectors() []*ConnectorSummary { if x != nil { - return x.ConnectorSummaries + return x.Connectors } return nil } @@ -837,7 +902,7 @@ var File_com_coralogixapis_notification_center_connectors_v1_connectors_service_ const file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDesc = "" + "\n" + - "Lcom/coralogixapis/notification_center/connectors/v1/connectors_service.proto\x123com.coralogixapis.notification_center.connectors.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/connectors/v1/connector.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xb9\x02\n" + + "Lcom/coralogixapis/notification_center/connectors/v1/connectors_service.proto\x123com.coralogixapis.notification_center.connectors.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/connectors/v1/connector.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\"\xb9\x02\n" + "\x16CreateConnectorRequest\x12\\\n" + "\tconnector\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.connectors.v1.ConnectorR\tconnector:\xc0\x01\x92A\xbc\x01\n" + "=*\x18Create Connector Request2!Request to create a new connector*{\n" + @@ -853,33 +918,42 @@ const file_com_coralogixapis_notification_center_connectors_v1_connectors_servic "\x18ReplaceConnectorResponse\x12\\\n" + "\tconnector\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.connectors.v1.ConnectorR\tconnector:\xca\x01\x92A\xc6\x01\n" + "G*\x1aReplace Connector Response2)Response containing the updated connector*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xfc\x01\n" + - "\x16DeleteConnectorRequest\x12#\n" + - "\x02id\x18\x01 \x01(\tB\x13\x92A\x10J\x0e\"connector-id\"R\x02id:\xbc\x01\x92A\xb8\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xf0\x02\n" + + "\x16DeleteConnectorRequest\x12'\n" + + "\rdeprecated_id\x18\x01 \x01(\tB\x02\x18\x01R\fdeprecatedId\x12^\n" + + "\n" + + "identifier\x18\x02 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id:\xbc\x01\x92A\xb8\x01\n" + "9*\x18Delete Connector Request2\x1dRequest to delete a connector*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x19\n" + - "\x17DeleteConnectorResponse\"\xf8\x01\n" + - "\x13GetConnectorRequest\x12#\n" + - "\x02id\x18\x01 \x01(\tB\x13\x92A\x10J\x0e\"connector-id\"R\x02id:\xbb\x01\x92A\xb7\x01\n" + + "\x17DeleteConnectorResponse\"\xec\x02\n" + + "\x13GetConnectorRequest\x12'\n" + + "\rdeprecated_id\x18\x01 \x01(\tB\x02\x18\x01R\fdeprecatedId\x12^\n" + + "\n" + + "identifier\x18\x02 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id:\xbb\x01\x92A\xb7\x01\n" + "8*\x15Get Connector Request2\x1fRequest to retrieve a connector*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xbf\x02\n" + "\x14GetConnectorResponse\x12\\\n" + "\tconnector\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.connectors.v1.ConnectorR\tconnector:\xc8\x01\x92A\xc4\x01\n" + "E*\x16Get Connector Response2+Response containing the requested connector*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xa7\x03\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xe0\x02\n" + "\x15ListConnectorsRequest\x12[\n" + - "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12K\n" + - "\torder_bys\x18\x02 \x03(\v2..com.coralogixapis.notification_center.OrderByR\borderBys:\xd0\x01\x92A\xcc\x01\n" + + "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType:\xd0\x01\x92A\xcc\x01\n" + "M*\x17List Connectors Request22Request to list connectors with optional filtering*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x03\x10\x04R\ventity_type\"\xc2\x02\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x02\x10\x03J\x04\b\x03\x10\x04R\ventity_type\"\xc2\x02\n" + "\x16ListConnectorsResponse\x12^\n" + "\n" + "connectors\x18\x01 \x03(\v2>.com.coralogixapis.notification_center.connectors.v1.ConnectorR\n" + "connectors:\xc7\x01\x92A\xc3\x01\n" + "D*\x18List Connectors Response2(Response containing a list of connectors*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xb2\x02\n" + - "\x19BatchGetConnectorsRequest\x12;\n" + - "\x03ids\x18\x01 \x03(\tB)\x92A&J$[\"connector-id-1\", \"connector-id-2\"]R\x03ids:\xd7\x01\x92A\xd3\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xa9\x03\n" + + "\x19BatchGetConnectorsRequest\x12)\n" + + "\x0edeprecated_ids\x18\x01 \x03(\tB\x02\x18\x01R\rdeprecatedIds\x12u\n" + + "\x16deprecated_identifiers\x18\x02 \x03(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x15deprecatedIdentifiers\x12\x10\n" + + "\x03ids\x18\x03 \x03(\tR\x03ids:\xd7\x01\x92A\xd3\x01\n" + "T*\x1cBatch Get Connectors Request24Request to retrieve multiple connectors by their IDs*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc2\x04\n" + "\x1aBatchGetConnectorsResponse\x12\x7f\n" + @@ -891,9 +965,11 @@ const file_com_coralogixapis_notification_center_connectors_v1_connectors_servic "\x03key\x18\x01 \x01(\tR\x03key\x12T\n" + "\x05value\x18\x02 \x01(\v2>.com.coralogixapis.notification_center.connectors.v1.ConnectorR\x05value:\x028\x01:\xe6\x01\x92A\xe2\x01\n" + "c*\x1dBatch Get Connectors Response2BResponse containing the requested connectors and any IDs not found*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xcc\x02\n" + - "!BatchGetConnectorSummariesRequest\x12;\n" + - "\x03ids\x18\x01 \x03(\tB)\x92A&J$[\"connector-id-1\", \"connector-id-2\"]R\x03ids:\xe9\x01\x92A\xe5\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc3\x03\n" + + "!BatchGetConnectorSummariesRequest\x12)\n" + + "\x0edeprecated_ids\x18\x01 \x03(\tB\x02\x18\x01R\rdeprecatedIds\x12u\n" + + "\x16deprecated_identifiers\x18\x02 \x03(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x15deprecatedIdentifiers\x12\x10\n" + + "\x03ids\x18\x03 \x03(\tR\x03ids:\xe9\x01\x92A\xe5\x01\n" + "f*%Batch Get Connector Summaries Request2=Request to retrieve multiple connector summaries by their IDs*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x8e\x05\n" + "\"BatchGetConnectorSummariesResponse\x12\xa0\x01\n" + @@ -906,14 +982,15 @@ const file_com_coralogixapis_notification_center_connectors_v1_connectors_servic "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x80\x02\n" + " GetConnectorTypeSummariesRequest:\xdb\x01\x92A\xd7\x01\n" + "X*$Get Connector Type Summaries Request20Request to retrieve summaries of connector types*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc5\x03\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xfe\x02\n" + "\x1dListConnectorSummariesRequest\x12[\n" + - "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12K\n" + - "\torder_bys\x18\x02 \x03(\v2..com.coralogixapis.notification_center.OrderByR\borderBys:\xe6\x01\x92A\xe2\x01\n" + + "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType:\xe6\x01\x92A\xe2\x01\n" + "c* List Connector Summaries Request2?Request to list summaries of connectors with optional filtering*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x03\x10\x04R\ventity_type\"\xee\x02\n" + - "\x1eListConnectorSummariesResponse\x12v\n" + - "\x13connector_summaries\x18\x01 \x03(\v2E.com.coralogixapis.notification_center.connectors.v1.ConnectorSummaryR\x12connectorSummaries:\xd3\x01\x92A\xcf\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x02\x10\x03J\x04\b\x03\x10\x04R\ventity_type\"\xdd\x02\n" + + "\x1eListConnectorSummariesResponse\x12e\n" + + "\n" + + "connectors\x18\x01 \x03(\v2E.com.coralogixapis.notification_center.connectors.v1.ConnectorSummaryR\n" + + "connectors:\xd3\x01\x92A\xcf\x01\n" + "P*!List Connector Summaries Response2+Response containing summaries of connectors*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x88\x03\n" + "!GetConnectorTypeSummariesResponse\x12\x83\x01\n" + @@ -929,7 +1006,7 @@ const file_com_coralogixapis_notification_center_connectors_v1_connectors_servic "\x12BatchGetConnectors\x12N.com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest\x1aO.com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1/notification-center/connectors:batchGet\x12\x8b\x02\n" + "\x1aBatchGetConnectorSummaries\x12V.com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesRequest\x1aW.com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse\"<\x82\xd3\xe4\x93\x026\x124/v1/notification-center/connectors:batchGetSummaries\x12\xfb\x01\n" + "\x16ListConnectorSummaries\x12R.com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest\x1aS.com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse\"8\x82\xd3\xe4\x93\x022\x120/v1/notification-center/connectors:listSummaries\x12\x87\x02\n" + - "\x19GetConnectorTypeSummaries\x12U.com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest\x1aV.com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse\";\x82\xd3\xe4\x93\x025\x123/v1/notification-center/connectors:getTypeSummariesb\x06proto3" + "\x19GetConnectorTypeSummaries\x12U.com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest\x1aV.com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse\";\x82\xd3\xe4\x93\x025\x123/v1/notification-center/connectors:getTypeSummariesB5Z3com/coralogixapis/notification_center/connectors/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescOnce sync.Once @@ -963,54 +1040,56 @@ var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_ (*ListConnectorSummariesRequest)(nil), // 15: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest (*ListConnectorSummariesResponse)(nil), // 16: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse (*GetConnectorTypeSummariesResponse)(nil), // 17: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse - nil, // 18: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry - nil, // 19: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry - (*Connector)(nil), // 20: com.coralogixapis.notification_center.connectors.v1.Connector - (common.ConnectorType)(0), // 21: com.coralogixapis.notification_center.ConnectorType - (*common.OrderBy)(nil), // 22: com.coralogixapis.notification_center.OrderBy - (*ConnectorSummary)(nil), // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary - (*ConnectorTypeSummary)(nil), // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + nil, // 18: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry + nil, // 19: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry + (*Connector)(nil), // 20: com.coralogixapis.notification_center.connectors.v1.Connector + (*v1.ConnectorIdentifier)(nil), // 21: com.coralogixapis.notification_center.ConnectorIdentifier + (common.ConnectorType)(0), // 22: com.coralogixapis.notification_center.ConnectorType + (*ConnectorSummary)(nil), // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + (*ConnectorTypeSummary)(nil), // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary } var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_depIdxs = []int32{ 20, // 0: com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector 20, // 1: com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector 20, // 2: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector 20, // 3: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 20, // 4: com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 21, // 5: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 22, // 6: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy - 20, // 7: com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 18, // 8: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry - 19, // 9: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.connector_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry - 21, // 10: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 22, // 11: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy - 23, // 12: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse.connector_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorSummary - 24, // 13: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse.connector_type_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary - 20, // 14: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 23, // 15: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorSummary - 0, // 16: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest - 2, // 17: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest - 4, // 18: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorRequest - 6, // 19: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorRequest - 8, // 20: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest - 10, // 21: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest - 12, // 22: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectorSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesRequest - 15, // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest - 14, // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest - 1, // 25: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse - 3, // 26: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse - 5, // 27: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorResponse - 7, // 28: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse - 9, // 29: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse - 11, // 30: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse - 13, // 31: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectorSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse - 16, // 32: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse - 17, // 33: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse - 25, // [25:34] is the sub-list for method output_type - 16, // [16:25] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 21, // 4: com.coralogixapis.notification_center.connectors.v1.DeleteConnectorRequest.identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 21, // 5: com.coralogixapis.notification_center.connectors.v1.GetConnectorRequest.identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 20, // 6: com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 22, // 7: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 20, // 8: com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 21, // 9: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest.deprecated_identifiers:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 18, // 10: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry + 21, // 11: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesRequest.deprecated_identifiers:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 19, // 12: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.connector_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry + 22, // 13: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 23, // 14: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + 24, // 15: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse.connector_type_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + 20, // 16: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 23, // 17: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse.ConnectorSummariesEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + 0, // 18: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest + 2, // 19: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest + 4, // 20: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorRequest + 6, // 21: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorRequest + 8, // 22: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest + 10, // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest + 12, // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectorSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesRequest + 15, // 25: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest + 14, // 26: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest + 1, // 27: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse + 3, // 28: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse + 5, // 29: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorResponse + 7, // 30: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse + 9, // 31: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse + 11, // 32: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse + 13, // 33: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectorSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorSummariesResponse + 16, // 34: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse + 17, // 35: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse + 27, // [27:36] is the sub-list for method output_type + 18, // [18:27] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_init() } diff --git a/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go b/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go index dc81c07c..11d0a7d0 100644 --- a/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go +++ b/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go @@ -7,6 +7,7 @@ package v1 import ( + common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -61,10 +62,12 @@ func (*ListEntityTypesRequest) Descriptor() ([]byte, []int) { } type ListEntityTypesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityTypes []string `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/entities/v1/entities_service.proto. + DeprecatedEntityTypes []string `protobuf:"bytes,1,rep,name=deprecated_entity_types,json=deprecatedEntityTypes,proto3" json:"deprecated_entity_types,omitempty"` + EntityTypes []common.EntityType `protobuf:"varint,2,rep,packed,name=entity_types,json=entityTypes,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListEntityTypesResponse) Reset() { @@ -97,25 +100,130 @@ func (*ListEntityTypesResponse) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDescGZIP(), []int{1} } -func (x *ListEntityTypesResponse) GetEntityTypes() []string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/entities/v1/entities_service.proto. +func (x *ListEntityTypesResponse) GetDeprecatedEntityTypes() []string { + if x != nil { + return x.DeprecatedEntityTypes + } + return nil +} + +func (x *ListEntityTypesResponse) GetEntityTypes() []common.EntityType { if x != nil { return x.EntityTypes } return nil } +type ListEntitySubTypesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + EntityType common.EntityType `protobuf:"varint,1,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEntitySubTypesRequest) Reset() { + *x = ListEntitySubTypesRequest{} + mi := &file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEntitySubTypesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEntitySubTypesRequest) ProtoMessage() {} + +func (x *ListEntitySubTypesRequest) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListEntitySubTypesRequest.ProtoReflect.Descriptor instead. +func (*ListEntitySubTypesRequest) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDescGZIP(), []int{2} +} + +func (x *ListEntitySubTypesRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + +type ListEntitySubTypesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + EntitySubTypes []string `protobuf:"bytes,2,rep,name=entity_sub_types,json=entitySubTypes,proto3" json:"entity_sub_types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEntitySubTypesResponse) Reset() { + *x = ListEntitySubTypesResponse{} + mi := &file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEntitySubTypesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEntitySubTypesResponse) ProtoMessage() {} + +func (x *ListEntitySubTypesResponse) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListEntitySubTypesResponse.ProtoReflect.Descriptor instead. +func (*ListEntitySubTypesResponse) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDescGZIP(), []int{3} +} + +func (x *ListEntitySubTypesResponse) GetEntitySubTypes() []string { + if x != nil { + return x.EntitySubTypes + } + return nil +} + var File_com_coralogixapis_notification_center_entities_v1_entities_service_proto protoreflect.FileDescriptor const file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDesc = "" + "\n" + - "Hcom/coralogixapis/notification_center/entities/v1/entities_service.proto\x121com.coralogixapis.notification_center.entities.v1\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xf0\x01\n" + + "Hcom/coralogixapis/notification_center/entities/v1/entities_service.proto\x121com.coralogixapis.notification_center.entities.v1\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a9com/coralogixapis/notification_center/common/common.proto\"\xf0\x01\n" + "\x16ListEntityTypesRequest:\xd5\x01\x92A\xd1\x01\n" + "R*\x11List Entity Types2=Request to list entity types supported by Notification Center*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"<\n" + - "\x17ListEntityTypesResponse\x12!\n" + - "\fentity_types\x18\x01 \x03(\tR\ventityTypes2\xf6\x01\n" + - "\x0fEntitiesService\x12\xe2\x01\n" + - "\x0fListEntityTypes\x12I.com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest\x1aJ.com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse\"8\x82\xd3\xe4\x93\x022\x120/v1/notification-center/entities:listEntityTypesb\x06proto3" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xab\x01\n" + + "\x17ListEntityTypesResponse\x12:\n" + + "\x17deprecated_entity_types\x18\x01 \x03(\tB\x02\x18\x01R\x15deprecatedEntityTypes\x12T\n" + + "\fentity_types\x18\x02 \x03(\x0e21.com.coralogixapis.notification_center.EntityTypeR\ventityTypes\"\xdd\x02\n" + + "\x19ListEntitySubTypesRequest\x12R\n" + + "\ventity_type\x18\x01 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeR\n" + + "entityType:\xeb\x01\x92A\xe7\x01\n" + + "h*\x15List Entity Sub Types2ORequest to list entity subtypes by entity type supported by Notification Center*{\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"F\n" + + "\x1aListEntitySubTypesResponse\x12(\n" + + "\x10entity_sub_types\x18\x02 \x03(\tR\x0eentitySubTypes2\xea\x03\n" + + "\x0fEntitiesService\x12\xd6\x01\n" + + "\x0fListEntityTypes\x12I.com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest\x1aJ.com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse\",\x82\xd3\xe4\x93\x02&\x12$/v1/notification-center/entity-types\x12\xfd\x01\n" + + "\x12ListEntitySubTypes\x12L.com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesRequest\x1aM.com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesResponse\"J\x82\xd3\xe4\x93\x02D\x12B/v1/notification-center/entity-types/{entity_type}/entity-subtypesB3Z1com/coralogixapis/notification_center/entities/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDescOnce sync.Once @@ -129,19 +237,26 @@ func file_com_coralogixapis_notification_center_entities_v1_entities_service_pro return file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDescData } -var file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_goTypes = []any{ - (*ListEntityTypesRequest)(nil), // 0: com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest - (*ListEntityTypesResponse)(nil), // 1: com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse + (*ListEntityTypesRequest)(nil), // 0: com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest + (*ListEntityTypesResponse)(nil), // 1: com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse + (*ListEntitySubTypesRequest)(nil), // 2: com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesRequest + (*ListEntitySubTypesResponse)(nil), // 3: com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesResponse + (common.EntityType)(0), // 4: com.coralogixapis.notification_center.EntityType } var file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_depIdxs = []int32{ - 0, // 0: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntityTypes:input_type -> com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest - 1, // 1: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntityTypes:output_type -> com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] 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 + 4, // 0: com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse.entity_types:type_name -> com.coralogixapis.notification_center.EntityType + 4, // 1: com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 0, // 2: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntityTypes:input_type -> com.coralogixapis.notification_center.entities.v1.ListEntityTypesRequest + 2, // 3: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntitySubTypes:input_type -> com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesRequest + 1, // 4: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntityTypes:output_type -> com.coralogixapis.notification_center.entities.v1.ListEntityTypesResponse + 3, // 5: com.coralogixapis.notification_center.entities.v1.EntitiesService.ListEntitySubTypes:output_type -> com.coralogixapis.notification_center.entities.v1.ListEntitySubTypesResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_init() } @@ -155,7 +270,7 @@ func file_com_coralogixapis_notification_center_entities_v1_entities_service_pro GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDesc), len(file_com_coralogixapis_notification_center_entities_v1_entities_service_proto_rawDesc)), NumEnums: 0, - NumMessages: 2, + NumMessages: 4, NumExtensions: 0, NumServices: 1, }, diff --git a/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go b/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go index 3b75984b..11fd55a8 100644 --- a/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go +++ b/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go @@ -19,7 +19,8 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - EntitiesService_ListEntityTypes_FullMethodName = "/com.coralogixapis.notification_center.entities.v1.EntitiesService/ListEntityTypes" + EntitiesService_ListEntityTypes_FullMethodName = "/com.coralogixapis.notification_center.entities.v1.EntitiesService/ListEntityTypes" + EntitiesService_ListEntitySubTypes_FullMethodName = "/com.coralogixapis.notification_center.entities.v1.EntitiesService/ListEntitySubTypes" ) // EntitiesServiceClient is the client API for EntitiesService service. @@ -29,6 +30,7 @@ const ( // Public API to query information on registered entities in the Notification Center type EntitiesServiceClient interface { ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) + ListEntitySubTypes(ctx context.Context, in *ListEntitySubTypesRequest, opts ...grpc.CallOption) (*ListEntitySubTypesResponse, error) } type entitiesServiceClient struct { @@ -49,6 +51,16 @@ func (c *entitiesServiceClient) ListEntityTypes(ctx context.Context, in *ListEnt return out, nil } +func (c *entitiesServiceClient) ListEntitySubTypes(ctx context.Context, in *ListEntitySubTypesRequest, opts ...grpc.CallOption) (*ListEntitySubTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListEntitySubTypesResponse) + err := c.cc.Invoke(ctx, EntitiesService_ListEntitySubTypes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // EntitiesServiceServer is the server API for EntitiesService service. // All implementations must embed UnimplementedEntitiesServiceServer // for forward compatibility. @@ -56,6 +68,7 @@ func (c *entitiesServiceClient) ListEntityTypes(ctx context.Context, in *ListEnt // Public API to query information on registered entities in the Notification Center type EntitiesServiceServer interface { ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) + ListEntitySubTypes(context.Context, *ListEntitySubTypesRequest) (*ListEntitySubTypesResponse, error) mustEmbedUnimplementedEntitiesServiceServer() } @@ -69,6 +82,9 @@ type UnimplementedEntitiesServiceServer struct{} func (UnimplementedEntitiesServiceServer) ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEntityTypes not implemented") } +func (UnimplementedEntitiesServiceServer) ListEntitySubTypes(context.Context, *ListEntitySubTypesRequest) (*ListEntitySubTypesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEntitySubTypes not implemented") +} func (UnimplementedEntitiesServiceServer) mustEmbedUnimplementedEntitiesServiceServer() {} func (UnimplementedEntitiesServiceServer) testEmbeddedByValue() {} @@ -108,6 +124,24 @@ func _EntitiesService_ListEntityTypes_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } +func _EntitiesService_ListEntitySubTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEntitySubTypesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EntitiesServiceServer).ListEntitySubTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EntitiesService_ListEntitySubTypes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EntitiesServiceServer).ListEntitySubTypes(ctx, req.(*ListEntitySubTypesRequest)) + } + return interceptor(ctx, in, info, handler) +} + // EntitiesService_ServiceDesc is the grpc.ServiceDesc for EntitiesService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -119,6 +153,10 @@ var EntitiesService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListEntityTypes", Handler: _EntitiesService_ListEntityTypes_Handler, }, + { + MethodName: "ListEntitySubTypes", + Handler: _EntitiesService_ListEntitySubTypes_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "com/coralogixapis/notification_center/entities/v1/entities_service.proto", diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go index c7e3e710..c21ef577 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go @@ -8,6 +8,7 @@ package v1 import ( v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" + routing "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1/routing" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -441,8 +442,12 @@ func (*Trigger_ManualTrigger_) isTrigger_TriggerDetail() {} func (*Trigger_AutomaticTrigger_) isTrigger_TriggerDetail() {} type NotificationTarget_GlobalRouterConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/notification.proto. + DeprecatedIdentifier *routing.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=deprecated_identifier,json=deprecatedIdentifier,proto3" json:"deprecated_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/notification.proto. + Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -477,6 +482,15 @@ func (*NotificationTarget_GlobalRouterConfig) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_notification_proto_rawDescGZIP(), []int{0, 0} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/notification.proto. +func (x *NotificationTarget_GlobalRouterConfig) GetDeprecatedIdentifier() *routing.GlobalRouterIdentifier { + if x != nil { + return x.DeprecatedIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/notification.proto. func (x *NotificationTarget_GlobalRouterConfig) GetIdentifier() *v1.GlobalRouterIdentifier { if x != nil { return x.Identifier @@ -484,6 +498,13 @@ func (x *NotificationTarget_GlobalRouterConfig) GetIdentifier() *v1.GlobalRouter return nil } +func (x *NotificationTarget_GlobalRouterConfig) GetId() string { + if x != nil { + return x.Id + } + return "" +} + type NotificationTarget_PrivateRouterConfig struct { state protoimpl.MessageState `protogen:"open.v1"` RouterKey string `protobuf:"bytes,1,opt,name=router_key,json=routerKey,proto3" json:"router_key,omitempty"` @@ -768,14 +789,16 @@ var File_com_coralogixapis_notification_center_notifications_v1_notification_pro const file_com_coralogixapis_notification_center_notifications_v1_notification_proto_rawDesc = "" + "\n" + - "Icom/coralogixapis/notification_center/notifications/v1/notification.proto\x126com.coralogixapis.notification_center.notifications.v1\x1a=com/coralogixapis/notification_center/common/v1/routing.proto\"\xc6\x03\n" + + "Icom/coralogixapis/notification_center/notifications/v1/notification.proto\x126com.coralogixapis.notification_center.notifications.v1\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\x1aEcom/coralogixapis/notification_center/common/v1/routing/routing.proto\"\xd3\x04\n" + "\x12NotificationTarget\x12z\n" + "\aprivate\x18\x01 \x01(\v2^.com.coralogixapis.notification_center.notifications.v1.NotificationTarget.PrivateRouterConfigH\x00R\aprivate\x12w\n" + - "\x06global\x18\x02 \x01(\v2].com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfigH\x00R\x06global\x1a{\n" + - "\x12GlobalRouterConfig\x12e\n" + + "\x06global\x18\x02 \x01(\v2].com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfigH\x00R\x06global\x1a\x87\x02\n" + + "\x12GlobalRouterConfig\x12~\n" + + "\x15deprecated_identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierB\x02\x18\x01R\x14deprecatedIdentifier\x12a\n" + "\n" + - "identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierR\n" + - "identifier\x1a4\n" + + "identifier\x18\x02 \x01(\v2=.com.coralogixapis.notification_center.GlobalRouterIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id\x1a4\n" + "\x13PrivateRouterConfig\x12\x1d\n" + "\n" + "router_key\x18\x01 \x01(\tR\trouterKeyB\b\n" + @@ -818,7 +841,7 @@ const file_com_coralogixapis_notification_center_notifications_v1_notification_p "\x18TRIGGER_TYPE_UNSPECIFIED\x10\x00\x12\n" + "\n" + "\x06MANUAL\x10\x01\x12\r\n" + - "\tAUTOMATIC\x10\x02b\x06proto3" + "\tAUTOMATIC\x10\x02B8Z6com/coralogixapis/notification_center/notifications/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_notifications_v1_notification_proto_rawDescOnce sync.Once @@ -843,12 +866,13 @@ var file_com_coralogixapis_notification_center_notifications_v1_notification_pro (*NotificationTarget_GlobalRouterConfig)(nil), // 5: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfig (*NotificationTarget_PrivateRouterConfig)(nil), // 6: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.PrivateRouterConfig (*NotificationOperation_HttpOperation)(nil), // 7: com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation - nil, // 8: com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.HeadersEntry - (*NotificationAttachment_Raw)(nil), // 9: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.Raw - (*NotificationAttachment_Url)(nil), // 10: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.Url - (*Trigger_ManualTrigger)(nil), // 11: com.coralogixapis.notification_center.notifications.v1.Trigger.ManualTrigger - (*Trigger_AutomaticTrigger)(nil), // 12: com.coralogixapis.notification_center.notifications.v1.Trigger.AutomaticTrigger - (*v1.GlobalRouterIdentifier)(nil), // 13: com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + nil, // 8: com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.HeadersEntry + (*NotificationAttachment_Raw)(nil), // 9: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.Raw + (*NotificationAttachment_Url)(nil), // 10: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.Url + (*Trigger_ManualTrigger)(nil), // 11: com.coralogixapis.notification_center.notifications.v1.Trigger.ManualTrigger + (*Trigger_AutomaticTrigger)(nil), // 12: com.coralogixapis.notification_center.notifications.v1.Trigger.AutomaticTrigger + (*routing.GlobalRouterIdentifier)(nil), // 13: com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + (*v1.GlobalRouterIdentifier)(nil), // 14: com.coralogixapis.notification_center.GlobalRouterIdentifier } var file_com_coralogixapis_notification_center_notifications_v1_notification_proto_depIdxs = []int32{ 6, // 0: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.private:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationTarget.PrivateRouterConfig @@ -858,13 +882,14 @@ var file_com_coralogixapis_notification_center_notifications_v1_notification_pro 10, // 4: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.url:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationAttachment.Url 11, // 5: com.coralogixapis.notification_center.notifications.v1.Trigger.manual_trigger:type_name -> com.coralogixapis.notification_center.notifications.v1.Trigger.ManualTrigger 12, // 6: com.coralogixapis.notification_center.notifications.v1.Trigger.automatic_trigger:type_name -> com.coralogixapis.notification_center.notifications.v1.Trigger.AutomaticTrigger - 13, // 7: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfig.identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier - 8, // 8: com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.headers:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.HeadersEntry - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 13, // 7: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfig.deprecated_identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + 14, // 8: com.coralogixapis.notification_center.notifications.v1.NotificationTarget.GlobalRouterConfig.identifier:type_name -> com.coralogixapis.notification_center.GlobalRouterIdentifier + 8, // 9: com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.headers:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationOperation.HttpOperation.HeadersEntry + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] 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 } func init() { file_com_coralogixapis_notification_center_notifications_v1_notification_proto_init() } diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go index 08a53176..337d1865 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go @@ -10,7 +10,6 @@ import ( v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" unsafe "unsafe" @@ -106,20 +105,17 @@ func (*TestResult_Success_) isTestResult_Result() {} func (*TestResult_Failure_) isTestResult_Result() {} type TestNotification struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TeamId uint32 `protobuf:"varint,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` - ConnectorId string `protobuf:"bytes,3,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - OutputSchemaId string `protobuf:"bytes,4,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing.proto. - DeprecatedEntityData *structpb.Struct `protobuf:"bytes,5,opt,name=deprecated_entity_data,json=deprecatedEntityData,proto3,oneof" json:"deprecated_entity_data,omitempty"` - ConnectorConfig []*v1.ConnectorConfigField `protobuf:"bytes,6,rep,name=connector_config,json=connectorConfig,proto3" json:"connector_config,omitempty"` - MessageConfig []*v1.MessageConfigField `protobuf:"bytes,7,rep,name=message_config,json=messageConfig,proto3" json:"message_config,omitempty"` - AvailableOperations []*NotificationOperation `protobuf:"bytes,8,rep,name=available_operations,json=availableOperations,proto3" json:"available_operations,omitempty"` - Attachments []*NotificationAttachment `protobuf:"bytes,9,rep,name=attachments,proto3" json:"attachments,omitempty"` - EntityData string `protobuf:"bytes,10,opt,name=entity_data,json=entityData,proto3" json:"entity_data,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TeamId uint32 `protobuf:"varint,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` + ConnectorId string `protobuf:"bytes,3,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` + PayloadType string `protobuf:"bytes,4,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"` + ConnectorConfig []*v1.ConnectorConfigField `protobuf:"bytes,6,rep,name=connector_config,json=connectorConfig,proto3" json:"connector_config,omitempty"` + MessageConfig []*v1.MessageConfigField `protobuf:"bytes,7,rep,name=message_config,json=messageConfig,proto3" json:"message_config,omitempty"` + AvailableOperations []*NotificationOperation `protobuf:"bytes,8,rep,name=available_operations,json=availableOperations,proto3" json:"available_operations,omitempty"` + Attachments []*NotificationAttachment `protobuf:"bytes,9,rep,name=attachments,proto3" json:"attachments,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestNotification) Reset() { @@ -173,21 +169,13 @@ func (x *TestNotification) GetConnectorId() string { return "" } -func (x *TestNotification) GetOutputSchemaId() string { +func (x *TestNotification) GetPayloadType() string { if x != nil { - return x.OutputSchemaId + return x.PayloadType } return "" } -// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing.proto. -func (x *TestNotification) GetDeprecatedEntityData() *structpb.Struct { - if x != nil { - return x.DeprecatedEntityData - } - return nil -} - func (x *TestNotification) GetConnectorConfig() []*v1.ConnectorConfigField { if x != nil { return x.ConnectorConfig @@ -216,13 +204,6 @@ func (x *TestNotification) GetAttachments() []*NotificationAttachment { return nil } -func (x *TestNotification) GetEntityData() string { - if x != nil { - return x.EntityData - } - return "" -} - type TestResult_Success struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -315,7 +296,7 @@ var File_com_coralogixapis_notification_center_notifications_v1_testing_proto pr const file_com_coralogixapis_notification_center_notifications_v1_testing_proto_rawDesc = "" + "\n" + - "Dcom/coralogixapis/notification_center/notifications/v1/testing.proto\x126com.coralogixapis.notification_center.notifications.v1\x1aIcom/coralogixapis/notification_center/notifications/v1/notification.proto\x1a\x1cgoogle/protobuf/struct.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\"\xcc\x02\n" + + "Dcom/coralogixapis/notification_center/notifications/v1/testing.proto\x126com.coralogixapis.notification_center.notifications.v1\x1aIcom/coralogixapis/notification_center/notifications/v1/notification.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\"\xcc\x02\n" + "\n" + "TestResult\x12f\n" + "\asuccess\x18\x01 \x01(\v2J.com.coralogixapis.notification_center.notifications.v1.TestResult.SuccessH\x00R\asuccess\x12f\n" + @@ -326,21 +307,16 @@ const file_com_coralogixapis_notification_center_notifications_v1_testing_proto_ "\vstatus_code\x18\x02 \x01(\rH\x00R\n" + "statusCode\x88\x01\x01B\x0e\n" + "\f_status_codeB\b\n" + - "\x06result\"\xdb\x05\n" + + "\x06result\"\xc0\x04\n" + "\x10TestNotification\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" + "\ateam_id\x18\x02 \x01(\rR\x06teamId\x12!\n" + - "\fconnector_id\x18\x03 \x01(\tR\vconnectorId\x12(\n" + - "\x10output_schema_id\x18\x04 \x01(\tR\x0eoutputSchemaId\x12V\n" + - "\x16deprecated_entity_data\x18\x05 \x01(\v2\x17.google.protobuf.StructB\x02\x18\x01H\x00R\x14deprecatedEntityData\x88\x01\x01\x12f\n" + + "\fconnector_id\x18\x03 \x01(\tR\vconnectorId\x12!\n" + + "\fpayload_type\x18\x04 \x01(\tR\vpayloadType\x12f\n" + "\x10connector_config\x18\x06 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x0fconnectorConfig\x12`\n" + "\x0emessage_config\x18\a \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\rmessageConfig\x12\x80\x01\n" + "\x14available_operations\x18\b \x03(\v2M.com.coralogixapis.notification_center.notifications.v1.NotificationOperationR\x13availableOperations\x12p\n" + - "\vattachments\x18\t \x03(\v2N.com.coralogixapis.notification_center.notifications.v1.NotificationAttachmentR\vattachments\x12\x1f\n" + - "\ventity_data\x18\n" + - " \x01(\tR\n" + - "entityDataB\x19\n" + - "\x17_deprecated_entity_datab\x06proto3" + "\vattachments\x18\t \x03(\v2N.com.coralogixapis.notification_center.notifications.v1.NotificationAttachmentR\vattachmentsB8Z6com/coralogixapis/notification_center/notifications/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_notifications_v1_testing_proto_rawDescOnce sync.Once @@ -360,25 +336,23 @@ var file_com_coralogixapis_notification_center_notifications_v1_testing_proto_go (*TestNotification)(nil), // 1: com.coralogixapis.notification_center.notifications.v1.TestNotification (*TestResult_Success)(nil), // 2: com.coralogixapis.notification_center.notifications.v1.TestResult.Success (*TestResult_Failure)(nil), // 3: com.coralogixapis.notification_center.notifications.v1.TestResult.Failure - (*structpb.Struct)(nil), // 4: google.protobuf.Struct - (*v1.ConnectorConfigField)(nil), // 5: com.coralogixapis.notification_center.ConnectorConfigField - (*v1.MessageConfigField)(nil), // 6: com.coralogixapis.notification_center.MessageConfigField - (*NotificationOperation)(nil), // 7: com.coralogixapis.notification_center.notifications.v1.NotificationOperation - (*NotificationAttachment)(nil), // 8: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment + (*v1.ConnectorConfigField)(nil), // 4: com.coralogixapis.notification_center.ConnectorConfigField + (*v1.MessageConfigField)(nil), // 5: com.coralogixapis.notification_center.MessageConfigField + (*NotificationOperation)(nil), // 6: com.coralogixapis.notification_center.notifications.v1.NotificationOperation + (*NotificationAttachment)(nil), // 7: com.coralogixapis.notification_center.notifications.v1.NotificationAttachment } var file_com_coralogixapis_notification_center_notifications_v1_testing_proto_depIdxs = []int32{ 2, // 0: com.coralogixapis.notification_center.notifications.v1.TestResult.success:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult.Success 3, // 1: com.coralogixapis.notification_center.notifications.v1.TestResult.failure:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult.Failure - 4, // 2: com.coralogixapis.notification_center.notifications.v1.TestNotification.deprecated_entity_data:type_name -> google.protobuf.Struct - 5, // 3: com.coralogixapis.notification_center.notifications.v1.TestNotification.connector_config:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 6, // 4: com.coralogixapis.notification_center.notifications.v1.TestNotification.message_config:type_name -> com.coralogixapis.notification_center.MessageConfigField - 7, // 5: com.coralogixapis.notification_center.notifications.v1.TestNotification.available_operations:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationOperation - 8, // 6: com.coralogixapis.notification_center.notifications.v1.TestNotification.attachments:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationAttachment - 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 + 4, // 2: com.coralogixapis.notification_center.notifications.v1.TestNotification.connector_config:type_name -> com.coralogixapis.notification_center.ConnectorConfigField + 5, // 3: com.coralogixapis.notification_center.notifications.v1.TestNotification.message_config:type_name -> com.coralogixapis.notification_center.MessageConfigField + 6, // 4: com.coralogixapis.notification_center.notifications.v1.TestNotification.available_operations:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationOperation + 7, // 5: com.coralogixapis.notification_center.notifications.v1.TestNotification.attachments:type_name -> com.coralogixapis.notification_center.notifications.v1.NotificationAttachment + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_notifications_v1_testing_proto_init() } @@ -391,7 +365,6 @@ func file_com_coralogixapis_notification_center_notifications_v1_testing_proto_i (*TestResult_Success_)(nil), (*TestResult_Failure_)(nil), } - file_com_coralogixapis_notification_center_notifications_v1_testing_proto_msgTypes[1].OneofWrappers = []any{} file_com_coralogixapis_notification_center_notifications_v1_testing_proto_msgTypes[3].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go index 66daeb1b..1ed61af2 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go @@ -82,13 +82,15 @@ func (TestTemplateRenderResult_FailureReason) EnumDescriptor() ([]byte, []int) { } type TestConnectorConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Type common.ConnectorType `protobuf:"varint,1,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` - OutputSchemaId string `protobuf:"bytes,2,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - Fields []*v1.ConnectorConfigField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` - EntityType *string `protobuf:"bytes,4,opt,name=entity_type,json=entityType,proto3,oneof" json:"entity_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type common.ConnectorType `protobuf:"varint,1,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` + PayloadType string `protobuf:"bytes,2,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"` + Fields []*v1.ConnectorConfigField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType *string `protobuf:"bytes,4,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3,oneof" json:"deprecated_entity_type,omitempty"` + EntityType *common.EntityType `protobuf:"varint,5,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType,oneof" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestConnectorConfigRequest) Reset() { @@ -128,9 +130,9 @@ func (x *TestConnectorConfigRequest) GetType() common.ConnectorType { return common.ConnectorType(0) } -func (x *TestConnectorConfigRequest) GetOutputSchemaId() string { +func (x *TestConnectorConfigRequest) GetPayloadType() string { if x != nil { - return x.OutputSchemaId + return x.PayloadType } return "" } @@ -142,11 +144,19 @@ func (x *TestConnectorConfigRequest) GetFields() []*v1.ConnectorConfigField { return nil } -func (x *TestConnectorConfigRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestConnectorConfigRequest) GetDeprecatedEntityType() string { + if x != nil && x.DeprecatedEntityType != nil { + return *x.DeprecatedEntityType + } + return "" +} + +func (x *TestConnectorConfigRequest) GetEntityType() common.EntityType { if x != nil && x.EntityType != nil { return *x.EntityType } - return "" + return common.EntityType(0) } type TestConnectorConfigResponse struct { @@ -194,11 +204,15 @@ func (x *TestConnectorConfigResponse) GetResult() *TestResult { } type TestExistingConnectorRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - ConnectorId string `protobuf:"bytes,1,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - OutputSchemaId string `protobuf:"bytes,2,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedConnectorId string `protobuf:"bytes,1,opt,name=deprecated_connector_id,json=deprecatedConnectorId,proto3" json:"deprecated_connector_id,omitempty"` + PayloadType string `protobuf:"bytes,2,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,3,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + ConnectorId string `protobuf:"bytes,4,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestExistingConnectorRequest) Reset() { @@ -231,16 +245,32 @@ func (*TestExistingConnectorRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{2} } -func (x *TestExistingConnectorRequest) GetConnectorId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingConnectorRequest) GetDeprecatedConnectorId() string { if x != nil { - return x.ConnectorId + return x.DeprecatedConnectorId + } + return "" +} + +func (x *TestExistingConnectorRequest) GetPayloadType() string { + if x != nil { + return x.PayloadType } return "" } -func (x *TestExistingConnectorRequest) GetOutputSchemaId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingConnectorRequest) GetConnectorIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.ConnectorIdentifier + } + return nil +} + +func (x *TestExistingConnectorRequest) GetConnectorId() string { if x != nil { - return x.OutputSchemaId + return x.ConnectorId } return "" } @@ -290,14 +320,24 @@ func (x *TestExistingConnectorResponse) GetResult() *TestResult { } type TestPresetConfigRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` - ConnectorId string `protobuf:"bytes,3,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - PresetId string `protobuf:"bytes,6,opt,name=preset_id,json=presetId,proto3" json:"preset_id,omitempty"` - ConfigOverrides []*common.ConfigOverrides `protobuf:"bytes,7,rep,name=config_overrides,json=configOverrides,proto3" json:"config_overrides,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedConnectorId string `protobuf:"bytes,3,opt,name=deprecated_connector_id,json=deprecatedConnectorId,proto3" json:"deprecated_connector_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedPresetId string `protobuf:"bytes,6,opt,name=deprecated_preset_id,json=deprecatedPresetId,proto3" json:"deprecated_preset_id,omitempty"` + ConfigOverrides []*common.ConfigOverrides `protobuf:"bytes,7,rep,name=config_overrides,json=configOverrides,proto3" json:"config_overrides,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,8,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + PresetIdentifier *v1.PresetIdentifier `protobuf:"bytes,9,opt,name=preset_identifier,json=presetIdentifier,proto3" json:"preset_identifier,omitempty"` + EntityType common.EntityType `protobuf:"varint,10,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + ParentPresetId string `protobuf:"bytes,11,opt,name=parent_preset_id,json=parentPresetId,proto3" json:"parent_preset_id,omitempty"` + ConnectorId string `protobuf:"bytes,12,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestPresetConfigRequest) Reset() { @@ -330,9 +370,10 @@ func (*TestPresetConfigRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{4} } -func (x *TestPresetConfigRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestPresetConfigRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -344,16 +385,18 @@ func (x *TestPresetConfigRequest) GetEntitySubType() string { return "" } -func (x *TestPresetConfigRequest) GetConnectorId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestPresetConfigRequest) GetDeprecatedConnectorId() string { if x != nil { - return x.ConnectorId + return x.DeprecatedConnectorId } return "" } -func (x *TestPresetConfigRequest) GetPresetId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestPresetConfigRequest) GetDeprecatedPresetId() string { if x != nil { - return x.PresetId + return x.DeprecatedPresetId } return "" } @@ -365,6 +408,43 @@ func (x *TestPresetConfigRequest) GetConfigOverrides() []*common.ConfigOverrides return nil } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestPresetConfigRequest) GetConnectorIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.ConnectorIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestPresetConfigRequest) GetPresetIdentifier() *v1.PresetIdentifier { + if x != nil { + return x.PresetIdentifier + } + return nil +} + +func (x *TestPresetConfigRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + +func (x *TestPresetConfigRequest) GetParentPresetId() string { + if x != nil { + return x.ParentPresetId + } + return "" +} + +func (x *TestPresetConfigRequest) GetConnectorId() string { + if x != nil { + return x.ConnectorId + } + return "" +} + type TestPresetConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Result *TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` @@ -410,13 +490,23 @@ func (x *TestPresetConfigResponse) GetResult() *TestResult { } type TestExistingPresetRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` - PresetId string `protobuf:"bytes,3,opt,name=preset_id,json=presetId,proto3" json:"preset_id,omitempty"` - ConnectorId string `protobuf:"bytes,4,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedPresetId string `protobuf:"bytes,3,opt,name=deprecated_preset_id,json=deprecatedPresetId,proto3" json:"deprecated_preset_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedConnectorId string `protobuf:"bytes,4,opt,name=deprecated_connector_id,json=deprecatedConnectorId,proto3" json:"deprecated_connector_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,5,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + PresetIdentifier *v1.PresetIdentifier `protobuf:"bytes,6,opt,name=preset_identifier,json=presetIdentifier,proto3" json:"preset_identifier,omitempty"` + EntityType common.EntityType `protobuf:"varint,7,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + PresetId string `protobuf:"bytes,8,opt,name=preset_id,json=presetId,proto3" json:"preset_id,omitempty"` + ConnectorId string `protobuf:"bytes,9,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestExistingPresetRequest) Reset() { @@ -449,9 +539,10 @@ func (*TestExistingPresetRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{6} } -func (x *TestExistingPresetRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingPresetRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -463,6 +554,45 @@ func (x *TestExistingPresetRequest) GetEntitySubType() string { return "" } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingPresetRequest) GetDeprecatedPresetId() string { + if x != nil { + return x.DeprecatedPresetId + } + return "" +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingPresetRequest) GetDeprecatedConnectorId() string { + if x != nil { + return x.DeprecatedConnectorId + } + return "" +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingPresetRequest) GetConnectorIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.ConnectorIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestExistingPresetRequest) GetPresetIdentifier() *v1.PresetIdentifier { + if x != nil { + return x.PresetIdentifier + } + return nil +} + +func (x *TestExistingPresetRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + func (x *TestExistingPresetRequest) GetPresetId() string { if x != nil { return x.PresetId @@ -522,14 +652,24 @@ func (x *TestExistingPresetResponse) GetResult() *TestResult { } type TestDestinationRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` - ConnectorId string `protobuf:"bytes,3,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` - PresetId string `protobuf:"bytes,4,opt,name=preset_id,json=presetId,proto3" json:"preset_id,omitempty"` - OutputSchemaId string `protobuf:"bytes,5,opt,name=output_schema_id,json=outputSchemaId,proto3" json:"output_schema_id,omitempty"` - ConnectorConfigFields []*v1.ConnectorConfigField `protobuf:"bytes,6,rep,name=connector_config_fields,json=connectorConfigFields,proto3" json:"connector_config_fields,omitempty"` - MessageConfigFields []*v1.MessageConfigField `protobuf:"bytes,7,rep,name=message_config_fields,json=messageConfigFields,proto3" json:"message_config_fields,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedConnectorId string `protobuf:"bytes,3,opt,name=deprecated_connector_id,json=deprecatedConnectorId,proto3" json:"deprecated_connector_id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedPresetId string `protobuf:"bytes,4,opt,name=deprecated_preset_id,json=deprecatedPresetId,proto3" json:"deprecated_preset_id,omitempty"` + PayloadType string `protobuf:"bytes,5,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"` + MessageConfigFields []*v1.MessageConfigField `protobuf:"bytes,7,rep,name=message_config_fields,json=messageConfigFields,proto3" json:"message_config_fields,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,8,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + PresetIdentifier *v1.PresetIdentifier `protobuf:"bytes,9,opt,name=preset_identifier,json=presetIdentifier,proto3" json:"preset_identifier,omitempty"` + EntityType common.EntityType `protobuf:"varint,10,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + ConnectorConfigFields []*v1.TemplatedConnectorConfigField `protobuf:"bytes,11,rep,name=connector_config_fields,json=connectorConfigFields,proto3" json:"connector_config_fields,omitempty"` + PresetId string `protobuf:"bytes,12,opt,name=preset_id,json=presetId,proto3" json:"preset_id,omitempty"` + ConnectorId string `protobuf:"bytes,13,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -564,9 +704,10 @@ func (*TestDestinationRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{8} } -func (x *TestDestinationRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestDestinationRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -578,41 +719,80 @@ func (x *TestDestinationRequest) GetEntitySubType() string { return "" } -func (x *TestDestinationRequest) GetConnectorId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestDestinationRequest) GetDeprecatedConnectorId() string { if x != nil { - return x.ConnectorId + return x.DeprecatedConnectorId } return "" } -func (x *TestDestinationRequest) GetPresetId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestDestinationRequest) GetDeprecatedPresetId() string { if x != nil { - return x.PresetId + return x.DeprecatedPresetId } return "" } -func (x *TestDestinationRequest) GetOutputSchemaId() string { +func (x *TestDestinationRequest) GetPayloadType() string { if x != nil { - return x.OutputSchemaId + return x.PayloadType } return "" } -func (x *TestDestinationRequest) GetConnectorConfigFields() []*v1.ConnectorConfigField { +func (x *TestDestinationRequest) GetMessageConfigFields() []*v1.MessageConfigField { if x != nil { - return x.ConnectorConfigFields + return x.MessageConfigFields } return nil } -func (x *TestDestinationRequest) GetMessageConfigFields() []*v1.MessageConfigField { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestDestinationRequest) GetConnectorIdentifier() *v1.ConnectorIdentifier { if x != nil { - return x.MessageConfigFields + return x.ConnectorIdentifier } return nil } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestDestinationRequest) GetPresetIdentifier() *v1.PresetIdentifier { + if x != nil { + return x.PresetIdentifier + } + return nil +} + +func (x *TestDestinationRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + +func (x *TestDestinationRequest) GetConnectorConfigFields() []*v1.TemplatedConnectorConfigField { + if x != nil { + return x.ConnectorConfigFields + } + return nil +} + +func (x *TestDestinationRequest) GetPresetId() string { + if x != nil { + return x.PresetId + } + return "" +} + +func (x *TestDestinationRequest) GetConnectorId() string { + if x != nil { + return x.ConnectorId + } + return "" +} + type TestDestinationResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Result *TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` @@ -658,12 +838,14 @@ func (x *TestDestinationResponse) GetResult() *TestResult { } type TestTemplateRenderRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` - Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntitySubType *string `protobuf:"bytes,2,opt,name=entity_sub_type,json=entitySubType,proto3,oneof" json:"entity_sub_type,omitempty"` + Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` + EntityType common.EntityType `protobuf:"varint,4,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestTemplateRenderRequest) Reset() { @@ -696,9 +878,10 @@ func (*TestTemplateRenderRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{10} } -func (x *TestTemplateRenderRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestTemplateRenderRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -717,6 +900,13 @@ func (x *TestTemplateRenderRequest) GetTemplate() string { return "" } +func (x *TestTemplateRenderRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + type TestTemplateRenderResult struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Result: @@ -844,11 +1034,13 @@ func (x *TestTemplateRenderResponse) GetResult() *TestTemplateRenderResult { } type TestRoutingConditionValidRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. + DeprecatedEntityType string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + EntityType common.EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TestRoutingConditionValidRequest) Reset() { @@ -881,9 +1073,10 @@ func (*TestRoutingConditionValidRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescGZIP(), []int{13} } -func (x *TestRoutingConditionValidRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/notifications/v1/testing_service.proto. +func (x *TestRoutingConditionValidRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -895,6 +1088,13 @@ func (x *TestRoutingConditionValidRequest) GetTemplate() string { return "" } +func (x *TestRoutingConditionValidRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + type TestRoutingConditionValidResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Result: @@ -1165,65 +1365,87 @@ var File_com_coralogixapis_notification_center_notifications_v1_testing_service_ const file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDesc = "" + "\n" + - "Lcom/coralogixapis/notification_center/notifications/v1/testing_service.proto\x126com.coralogixapis.notification_center.notifications.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/config_overrides.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1aDcom/coralogixapis/notification_center/notifications/v1/testing.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x8a\x04\n" + + "Lcom/coralogixapis/notification_center/notifications/v1/testing_service.proto\x126com.coralogixapis.notification_center.notifications.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\x1aCcom/coralogixapis/notification_center/common/config_overrides.proto\x1aCcom/coralogixapis/notification_center/common/v1/config_fields.proto\x1aDcom/coralogixapis/notification_center/notifications/v1/testing.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x90\x05\n" + "\x1aTestConnectorConfigRequest\x12H\n" + - "\x04type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\x04type\x128\n" + - "\x10output_schema_id\x18\x02 \x01(\tB\x0e\x92A\vJ\t\"default\"R\x0eoutputSchemaId\x12S\n" + - "\x06fields\x18\x03 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x06fields\x123\n" + - "\ventity_type\x18\x04 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"H\x00R\n" + + "\x04type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\x04type\x121\n" + + "\fpayload_type\x18\x02 \x01(\tB\x0e\x92A\vJ\t\"default\"R\vpayloadType\x12S\n" + + "\x06fields\x18\x03 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x06fields\x12=\n" + + "\x16deprecated_entity_type\x18\x04 \x01(\tB\x02\x18\x01H\x00R\x14deprecatedEntityType\x88\x01\x01\x12f\n" + + "\ventity_type\x18\x05 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"H\x01R\n" + "entityType\x88\x01\x01:\xcd\x01\x92A\xc9\x01\n" + "J*\x1dTest Connector Config Request2)Request to test a connector configuration*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x0e\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x19\n" + + "\x17_deprecated_entity_typeB\x0e\n" + "\f_entity_type\"y\n" + "\x1bTestConnectorConfigResponse\x12Z\n" + - "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xa8\x01\n" + - "\x1cTestExistingConnectorRequest\x12N\n" + - "\fconnector_id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\vconnectorId\x128\n" + - "\x10output_schema_id\x18\x02 \x01(\tB\x0e\x92A\vJ\t\"default\"R\x0eoutputSchemaId\"{\n" + + "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xa3\x02\n" + + "\x1cTestExistingConnectorRequest\x12:\n" + + "\x17deprecated_connector_id\x18\x01 \x01(\tB\x02\x18\x01R\x15deprecatedConnectorId\x121\n" + + "\fpayload_type\x18\x02 \x01(\tB\x0e\x92A\vJ\t\"default\"R\vpayloadType\x12q\n" + + "\x14connector_identifier\x18\x03 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x13connectorIdentifier\x12!\n" + + "\fconnector_id\x18\x04 \x01(\tR\vconnectorId\"{\n" + "\x1dTestExistingConnectorResponse\x12Z\n" + - "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\x96\x03\n" + - "\x17TestPresetConfigRequest\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12:\n" + + "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\x85\x06\n" + + "\x17TestPresetConfigRequest\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12:\n" + "\x0fentity_sub_type\x18\x02 \x01(\tB\r\x92A\n" + - "J\b\"metric\"H\x00R\rentitySubType\x88\x01\x01\x12N\n" + - "\fconnector_id\x18\x03 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\vconnectorId\x12H\n" + - "\tpreset_id\x18\x06 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\bpresetId\x12a\n" + - "\x10config_overrides\x18\a \x03(\v26.com.coralogixapis.notification_center.ConfigOverridesR\x0fconfigOverridesB\x12\n" + + "J\b\"metric\"H\x00R\rentitySubType\x88\x01\x01\x12:\n" + + "\x17deprecated_connector_id\x18\x03 \x01(\tB\x02\x18\x01R\x15deprecatedConnectorId\x124\n" + + "\x14deprecated_preset_id\x18\x06 \x01(\tB\x02\x18\x01R\x12deprecatedPresetId\x12a\n" + + "\x10config_overrides\x18\a \x03(\v26.com.coralogixapis.notification_center.ConfigOverridesR\x0fconfigOverrides\x12q\n" + + "\x14connector_identifier\x18\b \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x13connectorIdentifier\x12h\n" + + "\x11preset_identifier\x18\t \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\x10presetIdentifier\x12a\n" + + "\ventity_type\x18\n" + + " \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x12(\n" + + "\x10parent_preset_id\x18\v \x01(\tR\x0eparentPresetId\x12!\n" + + "\fconnector_id\x18\f \x01(\tR\vconnectorIdB\x12\n" + "\x10_entity_sub_type\"v\n" + "\x18TestPresetConfigResponse\x12Z\n" + - "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xc4\x02\n" + - "\x19TestExistingPresetRequest\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12I\n" + - "\x0fentity_sub_type\x18\x02 \x01(\tB\x1c\x92A\x19J\x17\"logsImmediateResolved\"H\x00R\rentitySubType\x88\x01\x01\x12H\n" + - "\tpreset_id\x18\x03 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\bpresetId\x12N\n" + - "\fconnector_id\x18\x04 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\vconnectorIdB\x12\n" + + "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xa6\x05\n" + + "\x19TestExistingPresetRequest\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12I\n" + + "\x0fentity_sub_type\x18\x02 \x01(\tB\x1c\x92A\x19J\x17\"logsImmediateResolved\"H\x00R\rentitySubType\x88\x01\x01\x124\n" + + "\x14deprecated_preset_id\x18\x03 \x01(\tB\x02\x18\x01R\x12deprecatedPresetId\x12:\n" + + "\x17deprecated_connector_id\x18\x04 \x01(\tB\x02\x18\x01R\x15deprecatedConnectorId\x12q\n" + + "\x14connector_identifier\x18\x05 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x13connectorIdentifier\x12h\n" + + "\x11preset_identifier\x18\x06 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\x10presetIdentifier\x12a\n" + + "\ventity_type\x18\a \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x12\x1b\n" + + "\tpreset_id\x18\b \x01(\tR\bpresetId\x12!\n" + + "\fconnector_id\x18\t \x01(\tR\vconnectorIdB\x12\n" + "\x10_entity_sub_type\"x\n" + "\x1aTestExistingPresetResponse\x12Z\n" + - "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xdf\x04\n" + - "\x16TestDestinationRequest\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12I\n" + - "\x0fentity_sub_type\x18\x02 \x01(\tB\x1c\x92A\x19J\x17\"logsImmediateResolved\"H\x00R\rentitySubType\x88\x01\x01\x12N\n" + - "\fconnector_id\x18\x03 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\vconnectorId\x12H\n" + - "\tpreset_id\x18\x04 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\bpresetId\x128\n" + - "\x10output_schema_id\x18\x05 \x01(\tB\x0e\x92A\vJ\t\"default\"R\x0eoutputSchemaId\x12s\n" + - "\x17connector_config_fields\x18\x06 \x03(\v2;.com.coralogixapis.notification_center.ConnectorConfigFieldR\x15connectorConfigFields\x12m\n" + - "\x15message_config_fields\x18\a \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x13messageConfigFieldsB\x12\n" + - "\x10_entity_sub_type\"u\n" + + "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xed\a\n" + + "\x16TestDestinationRequest\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12I\n" + + "\x0fentity_sub_type\x18\x02 \x01(\tB\x1c\x92A\x19J\x17\"logsImmediateResolved\"H\x00R\rentitySubType\x88\x01\x01\x12:\n" + + "\x17deprecated_connector_id\x18\x03 \x01(\tB\x02\x18\x01R\x15deprecatedConnectorId\x124\n" + + "\x14deprecated_preset_id\x18\x04 \x01(\tB\x02\x18\x01R\x12deprecatedPresetId\x121\n" + + "\fpayload_type\x18\x05 \x01(\tB\x0e\x92A\vJ\t\"default\"R\vpayloadType\x12m\n" + + "\x15message_config_fields\x18\a \x03(\v29.com.coralogixapis.notification_center.MessageConfigFieldR\x13messageConfigFields\x12q\n" + + "\x14connector_identifier\x18\b \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierB\x02\x18\x01R\x13connectorIdentifier\x12h\n" + + "\x11preset_identifier\x18\t \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\x10presetIdentifier\x12a\n" + + "\ventity_type\x18\n" + + " \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x12|\n" + + "\x17connector_config_fields\x18\v \x03(\v2D.com.coralogixapis.notification_center.TemplatedConnectorConfigFieldR\x15connectorConfigFields\x12\x1b\n" + + "\tpreset_id\x18\f \x01(\tR\bpresetId\x12!\n" + + "\fconnector_id\x18\r \x01(\tR\vconnectorIdB\x12\n" + + "\x10_entity_sub_typeJ\x04\b\x06\x10\aR\"deprecated_connector_config_fields\"u\n" + "\x17TestDestinationResponse\x12Z\n" + - "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xe2\x01\n" + - "\x19TestTemplateRenderRequest\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12I\n" + + "\x06result\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.notifications.v1.TestResultR\x06result\"\xcf\x02\n" + + "\x19TestTemplateRenderRequest\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12I\n" + "\x0fentity_sub_type\x18\x02 \x01(\tB\x1c\x92A\x19J\x17\"logsImmediateResolved\"H\x00R\rentitySubType\x88\x01\x01\x126\n" + - "\btemplate\x18\x03 \x01(\tB\x1a\x92A\x17J\x15\"{{ alertDef.name }}\"R\btemplateB\x12\n" + + "\btemplate\x18\x03 \x01(\tB\x1a\x92A\x17J\x15\"{{ alertDef.name }}\"R\btemplate\x12a\n" + + "\ventity_type\x18\x04 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityTypeB\x12\n" + "\x10_entity_sub_type\"\xc8\x05\n" + "\x18TestTemplateRenderResult\x12t\n" + "\asuccess\x18\x01 \x01(\v2X.com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.SuccessH\x00R\asuccess\x12t\n" + @@ -1241,12 +1463,13 @@ const file_com_coralogixapis_notification_center_notifications_v1_testing_servic "!RENDERED_VALUE_EXCEEDS_MAX_LENGTH\x10\x04B\b\n" + "\x06result\"\x86\x01\n" + "\x1aTestTemplateRenderResponse\x12h\n" + - "\x06result\x18\x01 \x01(\v2P.com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResultR\x06result\"\xf7\x02\n" + - " TestRoutingConditionValidRequest\x12.\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12<\n" + - "\btemplate\x18\x02 \x01(\tB \x92A\x1dJ\x1b\"alertDef.priority == 'P1'\"R\btemplate:\xe4\x01\x92A\xe0\x01\n" + + "\x06result\x18\x01 \x01(\v2P.com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResultR\x06result\"\xe4\x03\n" + + " TestRoutingConditionValidRequest\x128\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12<\n" + + "\btemplate\x18\x02 \x01(\tB \x92A\x1dJ\x1b\"alertDef.priority == 'P1'\"R\btemplate\x12a\n" + + "\ventity_type\x18\x03 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType:\xe4\x01\x92A\xe0\x01\n" + "a*$Test Routing Condition Valid Request29Request to check that provided routing condition is valid*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc5\x05\n" + "!TestRoutingConditionValidResponse\x12}\n" + @@ -1266,7 +1489,7 @@ const file_com_coralogixapis_notification_center_notifications_v1_testing_servic "\x12TestExistingPreset\x12Q.com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest\x1aR.com.coralogixapis.notification_center.notifications.v1.TestExistingPresetResponse\"K\x82\xd3\xe4\x93\x02E:\x01*\"@/v1/notification-center/notifications/testing:testExistingPreset\x12\xfc\x01\n" + "\x0fTestDestination\x12N.com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest\x1aO.com.coralogixapis.notification_center.notifications.v1.TestDestinationResponse\"H\x82\xd3\xe4\x93\x02B:\x01*\"=/v1/notification-center/notifications/testing:testDestination\x12\x88\x02\n" + "\x12TestTemplateRender\x12Q.com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderRequest\x1aR.com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResponse\"K\x82\xd3\xe4\x93\x02E:\x01*\"@/v1/notification-center/notifications/testing:testTemplateRender\x12\xa4\x02\n" + - "\x19TestRoutingConditionValid\x12X.com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidRequest\x1aY.com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse\"R\x82\xd3\xe4\x93\x02L:\x01*\"G/v1/notification-center/notifications/testing:testRoutingConditionValidb\x06proto3" + "\x19TestRoutingConditionValid\x12X.com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidRequest\x1aY.com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse\"R\x82\xd3\xe4\x93\x02L:\x01*\"G/v1/notification-center/notifications/testing:testRoutingConditionValidB8Z6com/coralogixapis/notification_center/notifications/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_rawDescOnce sync.Once @@ -1305,46 +1528,63 @@ var file_com_coralogixapis_notification_center_notifications_v1_testing_service_ (*TestRoutingConditionValidResponse_Failure)(nil), // 19: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.Failure (common.ConnectorType)(0), // 20: com.coralogixapis.notification_center.ConnectorType (*v1.ConnectorConfigField)(nil), // 21: com.coralogixapis.notification_center.ConnectorConfigField - (*TestResult)(nil), // 22: com.coralogixapis.notification_center.notifications.v1.TestResult - (*common.ConfigOverrides)(nil), // 23: com.coralogixapis.notification_center.ConfigOverrides - (*v1.MessageConfigField)(nil), // 24: com.coralogixapis.notification_center.MessageConfigField + (common.EntityType)(0), // 22: com.coralogixapis.notification_center.EntityType + (*TestResult)(nil), // 23: com.coralogixapis.notification_center.notifications.v1.TestResult + (*v1.ConnectorIdentifier)(nil), // 24: com.coralogixapis.notification_center.ConnectorIdentifier + (*common.ConfigOverrides)(nil), // 25: com.coralogixapis.notification_center.ConfigOverrides + (*v1.PresetIdentifier)(nil), // 26: com.coralogixapis.notification_center.PresetIdentifier + (*v1.MessageConfigField)(nil), // 27: com.coralogixapis.notification_center.MessageConfigField + (*v1.TemplatedConnectorConfigField)(nil), // 28: com.coralogixapis.notification_center.TemplatedConnectorConfigField } var file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_depIdxs = []int32{ 20, // 0: com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigRequest.type:type_name -> com.coralogixapis.notification_center.ConnectorType 21, // 1: com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigRequest.fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 22, // 2: com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult - 22, // 3: com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult - 23, // 4: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest.config_overrides:type_name -> com.coralogixapis.notification_center.ConfigOverrides - 22, // 5: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult - 22, // 6: com.coralogixapis.notification_center.notifications.v1.TestExistingPresetResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult - 21, // 7: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.connector_config_fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 24, // 8: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.message_config_fields:type_name -> com.coralogixapis.notification_center.MessageConfigField - 22, // 9: com.coralogixapis.notification_center.notifications.v1.TestDestinationResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult - 16, // 10: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.success:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Success - 17, // 11: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.failure:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Failure - 12, // 12: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult - 18, // 13: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.success:type_name -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.Success - 19, // 14: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.failure:type_name -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.Failure - 0, // 15: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Failure.reason:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.FailureReason - 1, // 16: com.coralogixapis.notification_center.notifications.v1.TestingService.TestConnectorConfig:input_type -> com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigRequest - 3, // 17: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingConnector:input_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorRequest - 5, // 18: com.coralogixapis.notification_center.notifications.v1.TestingService.TestPresetConfig:input_type -> com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest - 7, // 19: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingPreset:input_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest - 9, // 20: com.coralogixapis.notification_center.notifications.v1.TestingService.TestDestination:input_type -> com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest - 11, // 21: com.coralogixapis.notification_center.notifications.v1.TestingService.TestTemplateRender:input_type -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderRequest - 14, // 22: com.coralogixapis.notification_center.notifications.v1.TestingService.TestRoutingConditionValid:input_type -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidRequest - 2, // 23: com.coralogixapis.notification_center.notifications.v1.TestingService.TestConnectorConfig:output_type -> com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigResponse - 4, // 24: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingConnector:output_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorResponse - 6, // 25: com.coralogixapis.notification_center.notifications.v1.TestingService.TestPresetConfig:output_type -> com.coralogixapis.notification_center.notifications.v1.TestPresetConfigResponse - 8, // 26: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingPreset:output_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingPresetResponse - 10, // 27: com.coralogixapis.notification_center.notifications.v1.TestingService.TestDestination:output_type -> com.coralogixapis.notification_center.notifications.v1.TestDestinationResponse - 13, // 28: com.coralogixapis.notification_center.notifications.v1.TestingService.TestTemplateRender:output_type -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResponse - 15, // 29: com.coralogixapis.notification_center.notifications.v1.TestingService.TestRoutingConditionValid:output_type -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse - 23, // [23:30] is the sub-list for method output_type - 16, // [16:23] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 22, // 2: com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 23, // 3: com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult + 24, // 4: com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorRequest.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 23, // 5: com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult + 25, // 6: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest.config_overrides:type_name -> com.coralogixapis.notification_center.ConfigOverrides + 24, // 7: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 26, // 8: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest.preset_identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 9: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 23, // 10: com.coralogixapis.notification_center.notifications.v1.TestPresetConfigResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult + 24, // 11: com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 26, // 12: com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest.preset_identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 13: com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 23, // 14: com.coralogixapis.notification_center.notifications.v1.TestExistingPresetResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult + 27, // 15: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.message_config_fields:type_name -> com.coralogixapis.notification_center.MessageConfigField + 24, // 16: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 26, // 17: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.preset_identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 18: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 28, // 19: com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest.connector_config_fields:type_name -> com.coralogixapis.notification_center.TemplatedConnectorConfigField + 23, // 20: com.coralogixapis.notification_center.notifications.v1.TestDestinationResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestResult + 22, // 21: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 16, // 22: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.success:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Success + 17, // 23: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.failure:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Failure + 12, // 24: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResponse.result:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult + 22, // 25: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 18, // 26: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.success:type_name -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.Success + 19, // 27: com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.failure:type_name -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse.Failure + 0, // 28: com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.Failure.reason:type_name -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResult.FailureReason + 1, // 29: com.coralogixapis.notification_center.notifications.v1.TestingService.TestConnectorConfig:input_type -> com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigRequest + 3, // 30: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingConnector:input_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorRequest + 5, // 31: com.coralogixapis.notification_center.notifications.v1.TestingService.TestPresetConfig:input_type -> com.coralogixapis.notification_center.notifications.v1.TestPresetConfigRequest + 7, // 32: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingPreset:input_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingPresetRequest + 9, // 33: com.coralogixapis.notification_center.notifications.v1.TestingService.TestDestination:input_type -> com.coralogixapis.notification_center.notifications.v1.TestDestinationRequest + 11, // 34: com.coralogixapis.notification_center.notifications.v1.TestingService.TestTemplateRender:input_type -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderRequest + 14, // 35: com.coralogixapis.notification_center.notifications.v1.TestingService.TestRoutingConditionValid:input_type -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidRequest + 2, // 36: com.coralogixapis.notification_center.notifications.v1.TestingService.TestConnectorConfig:output_type -> com.coralogixapis.notification_center.notifications.v1.TestConnectorConfigResponse + 4, // 37: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingConnector:output_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingConnectorResponse + 6, // 38: com.coralogixapis.notification_center.notifications.v1.TestingService.TestPresetConfig:output_type -> com.coralogixapis.notification_center.notifications.v1.TestPresetConfigResponse + 8, // 39: com.coralogixapis.notification_center.notifications.v1.TestingService.TestExistingPreset:output_type -> com.coralogixapis.notification_center.notifications.v1.TestExistingPresetResponse + 10, // 40: com.coralogixapis.notification_center.notifications.v1.TestingService.TestDestination:output_type -> com.coralogixapis.notification_center.notifications.v1.TestDestinationResponse + 13, // 41: com.coralogixapis.notification_center.notifications.v1.TestingService.TestTemplateRender:output_type -> com.coralogixapis.notification_center.notifications.v1.TestTemplateRenderResponse + 15, // 42: com.coralogixapis.notification_center.notifications.v1.TestingService.TestRoutingConditionValid:output_type -> com.coralogixapis.notification_center.notifications.v1.TestRoutingConditionValidResponse + 36, // [36:43] is the sub-list for method output_type + 29, // [29:36] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_notifications_v1_testing_service_proto_init() } diff --git a/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go b/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go index 0ebe4f63..4f932716 100644 --- a/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go +++ b/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go @@ -75,15 +75,14 @@ func (PresetType) EnumDescriptor() ([]byte, []int) { type Preset struct { state protoimpl.MessageState `protogen:"open.v1"` - // A unique identifier automatically generated by the service (do not provide this from the client side) + // A unique identifier (generated by system if not provided) Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - // A unique identifier provided by the user - UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` - EntityType string `protobuf:"bytes,3,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - ConnectorType common.ConnectorType `protobuf:"varint,4,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. + DeprecatedEntityType string `protobuf:"bytes,3,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + ConnectorType common.ConnectorType `protobuf:"varint,4,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` // A list of of configuration override templates, each associated with a specific output schema and condition ConfigOverrides []*common.ConfigOverrides `protobuf:"bytes,5,rep,name=config_overrides,json=configOverrides,proto3" json:"config_overrides,omitempty"` - // The parent preset from which the initial configuration is inherited + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. Parent *Preset `protobuf:"bytes,6,opt,name=parent,proto3,oneof" json:"parent,omitempty"` Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` @@ -92,7 +91,9 @@ type Preset struct { // System-generated timestamp for when the preset was last updated UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` // Indicates whether the preset is system-provided or custom-created by the user - PresetType *PresetType `protobuf:"varint,11,opt,name=preset_type,json=presetType,proto3,enum=com.coralogixapis.notification_center.presets.v1.PresetType,oneof" json:"preset_type,omitempty"` + PresetType *PresetType `protobuf:"varint,11,opt,name=preset_type,json=presetType,proto3,enum=com.coralogixapis.notification_center.presets.v1.PresetType,oneof" json:"preset_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,12,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + ParentId *string `protobuf:"bytes,13,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -134,16 +135,10 @@ func (x *Preset) GetId() string { return "" } -func (x *Preset) GetUserFacingId() string { - if x != nil && x.UserFacingId != nil { - return *x.UserFacingId - } - return "" -} - -func (x *Preset) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. +func (x *Preset) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -162,6 +157,7 @@ func (x *Preset) GetConfigOverrides() []*common.ConfigOverrides { return nil } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. func (x *Preset) GetParent() *Preset { if x != nil { return x.Parent @@ -204,20 +200,35 @@ func (x *Preset) GetPresetType() PresetType { return PresetType_PRESET_TYPE_UNSPECIFIED } +func (x *Preset) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + +func (x *Preset) GetParentId() string { + if x != nil && x.ParentId != nil { + return *x.ParentId + } + return "" +} + type PresetSummary struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserFacingId string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3" json:"user_facing_id,omitempty"` - EntityType string `protobuf:"bytes,3,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - ConnectorType common.ConnectorType `protobuf:"varint,4,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - ParentId *string `protobuf:"bytes,5,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` - CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - PresetType PresetType `protobuf:"varint,10,opt,name=preset_type,json=presetType,proto3,enum=com.coralogixapis.notification_center.presets.v1.PresetType" json:"preset_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. + DeprecatedEntityType string `protobuf:"bytes,3,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + ConnectorType common.ConnectorType `protobuf:"varint,4,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` + ParentId *string `protobuf:"bytes,5,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + PresetType PresetType `protobuf:"varint,10,opt,name=preset_type,json=presetType,proto3,enum=com.coralogixapis.notification_center.presets.v1.PresetType" json:"preset_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,11,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PresetSummary) Reset() { @@ -257,16 +268,10 @@ func (x *PresetSummary) GetId() string { return "" } -func (x *PresetSummary) GetUserFacingId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/preset.proto. +func (x *PresetSummary) GetDeprecatedEntityType() string { if x != nil { - return x.UserFacingId - } - return "" -} - -func (x *PresetSummary) GetEntityType() string { - if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -320,6 +325,13 @@ func (x *PresetSummary) GetPresetType() PresetType { return PresetType_PRESET_TYPE_UNSPECIFIED } +func (x *PresetSummary) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + type PresetIdentifier struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Value: @@ -391,12 +403,10 @@ type isPresetIdentifier_Value interface { } type PresetIdentifier_Id struct { - // The unique identifier automatically generated by the service Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"` } type PresetIdentifier_UserFacingId struct { - // The unique identifier provided by the user UserFacingId string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` } @@ -408,39 +418,38 @@ var File_com_coralogixapis_notification_center_presets_v1_preset_proto protorefl const file_com_coralogixapis_notification_center_presets_v1_preset_proto_rawDesc = "" + "\n" + - "=com/coralogixapis/notification_center/presets/v1/preset.proto\x120com.coralogixapis.notification_center.presets.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/config_overrides.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xf2\b\n" + + "=com/coralogixapis/notification_center/presets/v1/preset.proto\x120com.coralogixapis.notification_center.presets.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aCcom/coralogixapis/notification_center/common/config_overrides.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xf0\t\n" + "\x06Preset\x12@\n" + - "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x12@\n" + - "\x0euser_facing_id\x18\x02 \x01(\tB\x15\x92A\x12J\x10\"user-preset-id\"H\x01R\fuserFacingId\x88\x01\x01\x12.\n" + - "\ventity_type\x18\x03 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12[\n" + + "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x128\n" + + "\x16deprecated_entity_type\x18\x03 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12[\n" + "\x0econnector_type\x18\x04 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12a\n" + - "\x10config_overrides\x18\x05 \x03(\v26.com.coralogixapis.notification_center.ConfigOverridesR\x0fconfigOverrides\x12U\n" + - "\x06parent\x18\x06 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetH\x02R\x06parent\x88\x01\x01\x12$\n" + + "\x10config_overrides\x18\x05 \x03(\v26.com.coralogixapis.notification_center.ConfigOverridesR\x0fconfigOverrides\x12Y\n" + + "\x06parent\x18\x06 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetB\x02\x18\x01H\x01R\x06parent\x88\x01\x01\x12$\n" + "\x04name\x18\a \x01(\tB\x10\x92A\rJ\v\"My Preset\"R\x04name\x12A\n" + "\vdescription\x18\b \x01(\tB\x1f\x92A\x1cJ\x1a\"Custom preset for alerts\"R\vdescription\x12@\n" + - "\vcreate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x03R\n" + + "\vcreate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x02R\n" + "createTime\x88\x01\x01\x12@\n" + "\vupdate_time\x18\n" + - " \x01(\v2\x1a.google.protobuf.TimestampH\x04R\n" + + " \x01(\v2\x1a.google.protobuf.TimestampH\x03R\n" + "updateTime\x88\x01\x01\x12b\n" + - "\vpreset_type\x18\v \x01(\x0e2<.com.coralogixapis.notification_center.presets.v1.PresetTypeH\x05R\n" + - "presetType\x88\x01\x01:\xf6\x01\x92A\xf2\x01\n" + + "\vpreset_type\x18\v \x01(\x0e2<.com.coralogixapis.notification_center.presets.v1.PresetTypeH\x04R\n" + + "presetType\x88\x01\x01\x12a\n" + + "\ventity_type\x18\f \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x12L\n" + + "\tparent_id\x18\r \x01(\tB*\x92A'J%\"preset_system_slack_alerts_detailed\"H\x05R\bparentId\x88\x01\x01:\xf6\x01\x92A\xf2\x01\n" + "s*\x06Preset2ASet of preconfigured templates for notification content rendering\xd2\x01\ventity_type\xd2\x01\x10config_overrides\xd2\x01\x04name*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x05\n" + - "\x03_idB\x11\n" + - "\x0f_user_facing_idB\t\n" + + "\x03_idB\t\n" + "\a_parentB\x0e\n" + "\f_create_timeB\x0e\n" + "\f_update_timeB\x0e\n" + - "\f_preset_type\"\xfa\x06\n" + + "\f_preset_typeB\f\n" + + "\n" + + "_parent_idJ\x04\b\x02\x10\x03\"\xb0\a\n" + "\rPresetSummary\x12;\n" + - "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\x02id\x12;\n" + - "\x0euser_facing_id\x18\x02 \x01(\tB\x15\x92A\x12J\x10\"user-preset-id\"R\fuserFacingId\x12.\n" + - "\ventity_type\x18\x03 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12[\n" + + "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"R\x02id\x128\n" + + "\x16deprecated_entity_type\x18\x03 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12[\n" + "\x0econnector_type\x18\x04 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12M\n" + "\tparent_id\x18\x05 \x01(\tB+\x92A(J&\"c246e826-10c2-405e-8d3f-afcc24ad4d15\"H\x00R\bparentId\x88\x01\x01\x12'\n" + "\x04name\x18\x06 \x01(\tB\x13\x92A\x10J\v\"My Preset\"x\xc8\x01R\x04name\x12D\n" + @@ -451,11 +460,14 @@ const file_com_coralogixapis_notification_center_presets_v1_preset_proto_rawDesc "updateTime\x12]\n" + "\vpreset_type\x18\n" + " \x01(\x0e2<.com.coralogixapis.notification_center.presets.v1.PresetTypeR\n" + - "presetType:\xbc\x01\x92A\xb8\x01\n" + + "presetType\x12a\n" + + "\ventity_type\x18\v \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType:\xbc\x01\x92A\xb8\x01\n" + "9*\x0ePreset Summary2'Provides a concise overview of a preset*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\f\n" + "\n" + - "_parent_id\"U\n" + + "_parent_idJ\x04\b\x02\x10\x03\"U\n" + "\x10PresetIdentifier\x12\x10\n" + "\x02id\x18\x01 \x01(\tH\x00R\x02id\x12&\n" + "\x0euser_facing_id\x18\x02 \x01(\tH\x00R\fuserFacingIdB\a\n" + @@ -466,7 +478,7 @@ const file_com_coralogixapis_notification_center_presets_v1_preset_proto_rawDesc "\n" + "\x06SYSTEM\x10\x01\x12\n" + "\n" + - "\x06CUSTOM\x10\x02b\x06proto3" + "\x06CUSTOM\x10\x02B2Z0com/coralogixapis/notification_center/presets/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_presets_v1_preset_proto_rawDescOnce sync.Once @@ -490,6 +502,7 @@ var file_com_coralogixapis_notification_center_presets_v1_preset_proto_goTypes = (common.ConnectorType)(0), // 4: com.coralogixapis.notification_center.ConnectorType (*common.ConfigOverrides)(nil), // 5: com.coralogixapis.notification_center.ConfigOverrides (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (common.EntityType)(0), // 7: com.coralogixapis.notification_center.EntityType } var file_com_coralogixapis_notification_center_presets_v1_preset_proto_depIdxs = []int32{ 4, // 0: com.coralogixapis.notification_center.presets.v1.Preset.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType @@ -498,15 +511,17 @@ var file_com_coralogixapis_notification_center_presets_v1_preset_proto_depIdxs = 6, // 3: com.coralogixapis.notification_center.presets.v1.Preset.create_time:type_name -> google.protobuf.Timestamp 6, // 4: com.coralogixapis.notification_center.presets.v1.Preset.update_time:type_name -> google.protobuf.Timestamp 0, // 5: com.coralogixapis.notification_center.presets.v1.Preset.preset_type:type_name -> com.coralogixapis.notification_center.presets.v1.PresetType - 4, // 6: com.coralogixapis.notification_center.presets.v1.PresetSummary.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 6, // 7: com.coralogixapis.notification_center.presets.v1.PresetSummary.create_time:type_name -> google.protobuf.Timestamp - 6, // 8: com.coralogixapis.notification_center.presets.v1.PresetSummary.update_time:type_name -> google.protobuf.Timestamp - 0, // 9: com.coralogixapis.notification_center.presets.v1.PresetSummary.preset_type:type_name -> com.coralogixapis.notification_center.presets.v1.PresetType - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] 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 + 7, // 6: com.coralogixapis.notification_center.presets.v1.Preset.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 4, // 7: com.coralogixapis.notification_center.presets.v1.PresetSummary.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 6, // 8: com.coralogixapis.notification_center.presets.v1.PresetSummary.create_time:type_name -> google.protobuf.Timestamp + 6, // 9: com.coralogixapis.notification_center.presets.v1.PresetSummary.update_time:type_name -> google.protobuf.Timestamp + 0, // 10: com.coralogixapis.notification_center.presets.v1.PresetSummary.preset_type:type_name -> com.coralogixapis.notification_center.presets.v1.PresetType + 7, // 11: com.coralogixapis.notification_center.presets.v1.PresetSummary.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_presets_v1_preset_proto_init() } diff --git a/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go b/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go index ac9806af..10cae9bf 100644 --- a/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go +++ b/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go @@ -8,6 +8,7 @@ package v1 import ( common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" + v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -202,14 +203,13 @@ func (x *ReplaceCustomPresetResponse) GetPreset() *Preset { type DeleteCustomPresetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to DeprecatedIdentifier: - // - // *DeleteCustomPresetRequest_Id - // *DeleteCustomPresetRequest_UserFacingId - DeprecatedIdentifier isDeleteCustomPresetRequest_DeprecatedIdentifier `protobuf_oneof:"deprecated_identifier"` - Identifier *PresetIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIdentifier_2 *PresetIdentifier `protobuf:"bytes,2,opt,name=deprecated_identifier_2,json=deprecatedIdentifier2,proto3" json:"deprecated_identifier_2,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + Identifier *v1.PresetIdentifier `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteCustomPresetRequest) Reset() { @@ -242,54 +242,29 @@ func (*DeleteCustomPresetRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{4} } -func (x *DeleteCustomPresetRequest) GetDeprecatedIdentifier() isDeleteCustomPresetRequest_DeprecatedIdentifier { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *DeleteCustomPresetRequest) GetDeprecatedIdentifier_2() *PresetIdentifier { if x != nil { - return x.DeprecatedIdentifier + return x.DeprecatedIdentifier_2 } return nil } -func (x *DeleteCustomPresetRequest) GetId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *DeleteCustomPresetRequest) GetIdentifier() *v1.PresetIdentifier { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*DeleteCustomPresetRequest_Id); ok { - return x.Id - } + return x.Identifier } - return "" + return nil } -func (x *DeleteCustomPresetRequest) GetUserFacingId() string { +func (x *DeleteCustomPresetRequest) GetId() string { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*DeleteCustomPresetRequest_UserFacingId); ok { - return x.UserFacingId - } + return x.Id } return "" } -func (x *DeleteCustomPresetRequest) GetIdentifier() *PresetIdentifier { - if x != nil { - return x.Identifier - } - return nil -} - -type isDeleteCustomPresetRequest_DeprecatedIdentifier interface { - isDeleteCustomPresetRequest_DeprecatedIdentifier() -} - -type DeleteCustomPresetRequest_Id struct { - Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` -} - -type DeleteCustomPresetRequest_UserFacingId struct { - UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` -} - -func (*DeleteCustomPresetRequest_Id) isDeleteCustomPresetRequest_DeprecatedIdentifier() {} - -func (*DeleteCustomPresetRequest_UserFacingId) isDeleteCustomPresetRequest_DeprecatedIdentifier() {} - type DeleteCustomPresetResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -328,14 +303,13 @@ func (*DeleteCustomPresetResponse) Descriptor() ([]byte, []int) { type SetCustomPresetAsDefaultRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to DeprecatedIdentifier: - // - // *SetCustomPresetAsDefaultRequest_Id - // *SetCustomPresetAsDefaultRequest_UserFacingId - DeprecatedIdentifier isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier `protobuf_oneof:"deprecated_identifier"` - Identifier *PresetIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIdentifier_2 *PresetIdentifier `protobuf:"bytes,2,opt,name=deprecated_identifier_2,json=deprecatedIdentifier2,proto3" json:"deprecated_identifier_2,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + Identifier *v1.PresetIdentifier `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetCustomPresetAsDefaultRequest) Reset() { @@ -368,55 +342,29 @@ func (*SetCustomPresetAsDefaultRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{6} } -func (x *SetCustomPresetAsDefaultRequest) GetDeprecatedIdentifier() isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *SetCustomPresetAsDefaultRequest) GetDeprecatedIdentifier_2() *PresetIdentifier { if x != nil { - return x.DeprecatedIdentifier + return x.DeprecatedIdentifier_2 } return nil } -func (x *SetCustomPresetAsDefaultRequest) GetId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *SetCustomPresetAsDefaultRequest) GetIdentifier() *v1.PresetIdentifier { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*SetCustomPresetAsDefaultRequest_Id); ok { - return x.Id - } + return x.Identifier } - return "" + return nil } -func (x *SetCustomPresetAsDefaultRequest) GetUserFacingId() string { +func (x *SetCustomPresetAsDefaultRequest) GetId() string { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*SetCustomPresetAsDefaultRequest_UserFacingId); ok { - return x.UserFacingId - } + return x.Id } return "" } -func (x *SetCustomPresetAsDefaultRequest) GetIdentifier() *PresetIdentifier { - if x != nil { - return x.Identifier - } - return nil -} - -type isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier interface { - isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier() -} - -type SetCustomPresetAsDefaultRequest_Id struct { - Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` -} - -type SetCustomPresetAsDefaultRequest_UserFacingId struct { - UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` -} - -func (*SetCustomPresetAsDefaultRequest_Id) isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier() {} - -func (*SetCustomPresetAsDefaultRequest_UserFacingId) isSetCustomPresetAsDefaultRequest_DeprecatedIdentifier() { -} - type SetCustomPresetAsDefaultResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -454,8 +402,12 @@ func (*SetCustomPresetAsDefaultResponse) Descriptor() ([]byte, []int) { } type SetPresetAsDefaultRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identifier *PresetIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIdentifier *PresetIdentifier `protobuf:"bytes,1,opt,name=deprecated_identifier,json=deprecatedIdentifier,proto3" json:"deprecated_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + Identifier *v1.PresetIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -490,13 +442,29 @@ func (*SetPresetAsDefaultRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{8} } -func (x *SetPresetAsDefaultRequest) GetIdentifier() *PresetIdentifier { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *SetPresetAsDefaultRequest) GetDeprecatedIdentifier() *PresetIdentifier { + if x != nil { + return x.DeprecatedIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *SetPresetAsDefaultRequest) GetIdentifier() *v1.PresetIdentifier { if x != nil { return x.Identifier } return nil } +func (x *SetPresetAsDefaultRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + type SetPresetAsDefaultResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -535,14 +503,13 @@ func (*SetPresetAsDefaultResponse) Descriptor() ([]byte, []int) { type GetPresetRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to DeprecatedIdentifier: - // - // *GetPresetRequest_Id - // *GetPresetRequest_UserFacingId - DeprecatedIdentifier isGetPresetRequest_DeprecatedIdentifier `protobuf_oneof:"deprecated_identifier"` - Identifier *PresetIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIdentifier_2 *PresetIdentifier `protobuf:"bytes,2,opt,name=deprecated_identifier_2,json=deprecatedIdentifier2,proto3" json:"deprecated_identifier_2,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + Identifier *v1.PresetIdentifier `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetPresetRequest) Reset() { @@ -575,54 +542,29 @@ func (*GetPresetRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{10} } -func (x *GetPresetRequest) GetDeprecatedIdentifier() isGetPresetRequest_DeprecatedIdentifier { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *GetPresetRequest) GetDeprecatedIdentifier_2() *PresetIdentifier { if x != nil { - return x.DeprecatedIdentifier + return x.DeprecatedIdentifier_2 } return nil } -func (x *GetPresetRequest) GetId() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *GetPresetRequest) GetIdentifier() *v1.PresetIdentifier { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*GetPresetRequest_Id); ok { - return x.Id - } + return x.Identifier } - return "" + return nil } -func (x *GetPresetRequest) GetUserFacingId() string { +func (x *GetPresetRequest) GetId() string { if x != nil { - if x, ok := x.DeprecatedIdentifier.(*GetPresetRequest_UserFacingId); ok { - return x.UserFacingId - } + return x.Id } return "" } -func (x *GetPresetRequest) GetIdentifier() *PresetIdentifier { - if x != nil { - return x.Identifier - } - return nil -} - -type isGetPresetRequest_DeprecatedIdentifier interface { - isGetPresetRequest_DeprecatedIdentifier() -} - -type GetPresetRequest_Id struct { - Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` -} - -type GetPresetRequest_UserFacingId struct { - UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` -} - -func (*GetPresetRequest_Id) isGetPresetRequest_DeprecatedIdentifier() {} - -func (*GetPresetRequest_UserFacingId) isGetPresetRequest_DeprecatedIdentifier() {} - type GetPresetResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Preset *Preset `protobuf:"bytes,1,opt,name=preset,proto3" json:"preset,omitempty"` @@ -669,11 +611,12 @@ func (x *GetPresetResponse) GetPreset() *Preset { type ListPresetSummariesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - EntityType string `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - OrderBys []*common.OrderBy `protobuf:"bytes,3,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + ConnectorType *common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType,oneof" json:"connector_type,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedEntityType string `protobuf:"bytes,2,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,4,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListPresetSummariesRequest) Reset() { @@ -707,24 +650,25 @@ func (*ListPresetSummariesRequest) Descriptor() ([]byte, []int) { } func (x *ListPresetSummariesRequest) GetConnectorType() common.ConnectorType { - if x != nil { - return x.ConnectorType + if x != nil && x.ConnectorType != nil { + return *x.ConnectorType } return common.ConnectorType(0) } -func (x *ListPresetSummariesRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *ListPresetSummariesRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } -func (x *ListPresetSummariesRequest) GetOrderBys() []*common.OrderBy { +func (x *ListPresetSummariesRequest) GetEntityType() common.EntityType { if x != nil { - return x.OrderBys + return x.EntityType } - return nil + return common.EntityType(0) } type ListPresetSummariesResponse struct { @@ -772,10 +716,14 @@ func (x *ListPresetSummariesResponse) GetPresetSummaries() []*PresetSummary { } type BatchGetPresetsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIds []string `protobuf:"bytes,1,rep,name=deprecated_ids,json=deprecatedIds,proto3" json:"deprecated_ids,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedIdentifiers []*v1.PresetIdentifier `protobuf:"bytes,2,rep,name=deprecated_identifiers,json=deprecatedIdentifiers,proto3" json:"deprecated_identifiers,omitempty"` + Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatchGetPresetsRequest) Reset() { @@ -808,6 +756,22 @@ func (*BatchGetPresetsRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{14} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *BatchGetPresetsRequest) GetDeprecatedIds() []string { + if x != nil { + return x.DeprecatedIds + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *BatchGetPresetsRequest) GetDeprecatedIdentifiers() []*v1.PresetIdentifier { + if x != nil { + return x.DeprecatedIdentifiers + } + return nil +} + func (x *BatchGetPresetsRequest) GetIds() []string { if x != nil { return x.Ids @@ -870,9 +834,11 @@ func (x *BatchGetPresetsResponse) GetNotFoundIds() []string { type GetDefaultPresetSummaryRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - EntityType string `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedEntityType string `protobuf:"bytes,2,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetDefaultPresetSummaryRequest) Reset() { @@ -912,13 +878,21 @@ func (x *GetDefaultPresetSummaryRequest) GetConnectorType() common.ConnectorType return common.ConnectorType(0) } -func (x *GetDefaultPresetSummaryRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *GetDefaultPresetSummaryRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } +func (x *GetDefaultPresetSummaryRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + type GetDefaultPresetSummaryResponse struct { state protoimpl.MessageState `protogen:"open.v1"` PresetSummary *PresetSummary `protobuf:"bytes,1,opt,name=preset_summary,json=presetSummary,proto3" json:"preset_summary,omitempty"` @@ -966,9 +940,11 @@ func (x *GetDefaultPresetSummaryResponse) GetPresetSummary() *PresetSummary { type GetSystemDefaultPresetSummaryRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` - EntityType string `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. + DeprecatedEntityType string `protobuf:"bytes,2,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + EntityType common.EntityType `protobuf:"varint,3,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSystemDefaultPresetSummaryRequest) Reset() { @@ -1008,13 +984,21 @@ func (x *GetSystemDefaultPresetSummaryRequest) GetConnectorType() common.Connect return common.ConnectorType(0) } -func (x *GetSystemDefaultPresetSummaryRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/presets/v1/presets_service.proto. +func (x *GetSystemDefaultPresetSummaryRequest) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } +func (x *GetSystemDefaultPresetSummaryRequest) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + type GetSystemDefaultPresetSummaryResponse struct { state protoimpl.MessageState `protogen:"open.v1"` PresetSummary *PresetSummary `protobuf:"bytes,1,opt,name=preset_summary,json=presetSummary,proto3" json:"preset_summary,omitempty"` @@ -1063,7 +1047,7 @@ var File_com_coralogixapis_notification_center_presets_v1_presets_service_proto const file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDesc = "" + "\n" + - "Fcom/coralogixapis/notification_center/presets/v1/presets_service.proto\x120com.coralogixapis.notification_center.presets.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1a=com/coralogixapis/notification_center/presets/v1/preset.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xb8\x02\n" + + "Fcom/coralogixapis/notification_center/presets/v1/presets_service.proto\x120com.coralogixapis.notification_center.presets.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\x1a=com/coralogixapis/notification_center/presets/v1/preset.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xb8\x02\n" + "\x19CreateCustomPresetRequest\x12P\n" + "\x06preset\x18\x01 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetR\x06preset:\xc8\x01\x92A\xc4\x01\n" + "E*\x1cCreate Custom Preset Request2%Request to create a new custom preset*{\n" + @@ -1079,51 +1063,53 @@ const file_com_coralogixapis_notification_center_presets_v1_presets_service_prot "\x1bReplaceCustomPresetResponse\x12P\n" + "\x06preset\x18\x01 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetR\x06preset:\xd2\x01\x92A\xce\x01\n" + "O*\x1eReplace Custom Preset Response2-Response containing the updated custom preset*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x9f\x03\n" + - "\x19DeleteCustomPresetRequest\x12\x10\n" + - "\x02id\x18e \x01(\tH\x00R\x02id\x12&\n" + - "\x0euser_facing_id\x18f \x01(\tH\x00R\fuserFacingId\x12b\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xe1\x03\n" + + "\x19DeleteCustomPresetRequest\x12~\n" + + "\x17deprecated_identifier_2\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierB\x02\x18\x01R\x15deprecatedIdentifier2\x12[\n" + "\n" + - "identifier\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierR\n" + - "identifier:\xc4\x01\x92A\xc0\x01\n" + + "identifier\x18\x03 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x04 \x01(\tR\x02id:\xc4\x01\x92A\xc0\x01\n" + "A*\x1cDelete Custom Preset Request2!Request to delete a custom preset*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x17\n" + - "\x15deprecated_identifierJ\x04\b\x01\x10\x02\"\x1c\n" + - "\x1aDeleteCustomPresetResponse\"\xde\x01\n" + - "\x1fSetCustomPresetAsDefaultRequest\x12\x10\n" + - "\x02id\x18e \x01(\tH\x00R\x02id\x12&\n" + - "\x0euser_facing_id\x18f \x01(\tH\x00R\fuserFacingId\x12b\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/J\x04\b\x01\x10\x02J\x04\be\x10fJ\x04\bf\x10g\"\x1c\n" + + "\x1aDeleteCustomPresetResponse\"\xa0\x02\n" + + "\x1fSetCustomPresetAsDefaultRequest\x12~\n" + + "\x17deprecated_identifier_2\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierB\x02\x18\x01R\x15deprecatedIdentifier2\x12[\n" + "\n" + - "identifier\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierR\n" + - "identifierB\x17\n" + - "\x15deprecated_identifierJ\x04\b\x01\x10\x02\"\"\n" + - " SetCustomPresetAsDefaultResponse\"\xd7\x02\n" + - "\x19SetPresetAsDefaultRequest\x12b\n" + + "identifier\x18\x03 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x04 \x01(\tR\x02idJ\x04\b\x01\x10\x02J\x04\be\x10fJ\x04\bf\x10g\"\"\n" + + " SetCustomPresetAsDefaultResponse\"\xdd\x03\n" + + "\x19SetPresetAsDefaultRequest\x12{\n" + + "\x15deprecated_identifier\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierB\x02\x18\x01R\x14deprecatedIdentifier\x12[\n" + "\n" + - "identifier\x18\x01 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierR\n" + - "identifier:\xd5\x01\x92A\xd1\x01\n" + + "identifier\x18\x02 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id:\xd5\x01\x92A\xd1\x01\n" + "R*\x1dSet Preset As Default Request21Request to set custom or system preset as default*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x1c\n" + - "\x1aSetPresetAsDefaultResponse\"\xcf\x01\n" + - "\x10GetPresetRequest\x12\x10\n" + - "\x02id\x18e \x01(\tH\x00R\x02id\x12&\n" + - "\x0euser_facing_id\x18f \x01(\tH\x00R\fuserFacingId\x12b\n" + + "\x1aSetPresetAsDefaultResponse\"\x91\x02\n" + + "\x10GetPresetRequest\x12~\n" + + "\x17deprecated_identifier_2\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierB\x02\x18\x01R\x15deprecatedIdentifier2\x12[\n" + "\n" + - "identifier\x18\x02 \x01(\v2B.com.coralogixapis.notification_center.presets.v1.PresetIdentifierR\n" + - "identifierB\x17\n" + - "\x15deprecated_identifierJ\x04\b\x01\x10\x02\"e\n" + + "identifier\x18\x03 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x04 \x01(\tR\x02idJ\x04\b\x01\x10\x02J\x04\be\x10fJ\x04\bf\x10g\"e\n" + "\x11GetPresetResponse\x12P\n" + - "\x06preset\x18\x01 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetR\x06preset\"\xf6\x01\n" + - "\x1aListPresetSummariesRequest\x12[\n" + - "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12.\n" + - "\ventity_type\x18\x02 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12K\n" + - "\torder_bys\x18\x03 \x03(\v2..com.coralogixapis.notification_center.OrderByR\borderBys\"\x89\x01\n" + + "\x06preset\x18\x01 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetR\x06preset\"\xb4\x02\n" + + "\x1aListPresetSummariesRequest\x12`\n" + + "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeH\x00R\rconnectorType\x88\x01\x01\x128\n" + + "\x16deprecated_entity_type\x18\x02 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12a\n" + + "\ventity_type\x18\x04 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityTypeB\x11\n" + + "\x0f_connector_typeJ\x04\b\x03\x10\x04\"\x89\x01\n" + "\x1bListPresetSummariesResponse\x12j\n" + - "\x10preset_summaries\x18\x01 \x03(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\x0fpresetSummaries\"\xf9\x01\n" + - "\x16BatchGetPresetsRequest\x12\x10\n" + - "\x03ids\x18\x01 \x03(\tR\x03ids:\xcc\x01\x92A\xc8\x01\n" + + "\x10preset_summaries\x18\x01 \x03(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\x0fpresetSummaries\"\x98\x03\n" + + "\x16BatchGetPresetsRequest\x12)\n" + + "\x0edeprecated_ids\x18\x01 \x03(\tB\x02\x18\x01R\rdeprecatedIds\x12r\n" + + "\x16deprecated_identifiers\x18\x02 \x03(\v27.com.coralogixapis.notification_center.PresetIdentifierB\x02\x18\x01R\x15deprecatedIdentifiers\x12\x10\n" + + "\x03ids\x18\x03 \x03(\tR\x03ids:\xcc\x01\x92A\xc8\x01\n" + "I*\x19Batch Get Presets Request2,Request to get multiple presets by their ids*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x88\x04\n" + "\x17BatchGetPresetsResponse\x12p\n" + @@ -1133,34 +1119,36 @@ const file_com_coralogixapis_notification_center_presets_v1_presets_service_prot "\x03key\x18\x01 \x01(\tR\x03key\x12N\n" + "\x05value\x18\x02 \x01(\v28.com.coralogixapis.notification_center.presets.v1.PresetR\x05value:\x028\x01:\xe0\x01\x92A\xdc\x01\n" + "]*\x1aBatch Get Presets Response2?Response containing the requested presets and any IDs not found*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xad\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x9a\x02\n" + "\x1eGetDefaultPresetSummaryRequest\x12[\n" + - "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12.\n" + - "\ventity_type\x18\x02 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + + "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x128\n" + + "\x16deprecated_entity_type\x18\x02 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12a\n" + + "\ventity_type\x18\x03 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + "entityType\"\x89\x01\n" + "\x1fGetDefaultPresetSummaryResponse\x12f\n" + - "\x0epreset_summary\x18\x01 \x01(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\rpresetSummary\"\xc3\x03\n" + + "\x0epreset_summary\x18\x01 \x01(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\rpresetSummary\"\xb0\x04\n" + "$GetSystemDefaultPresetSummaryRequest\x12[\n" + - "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x12.\n" + - "\ventity_type\x18\x02 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + + "\x0econnector_type\x18\x01 \x01(\x0e24.com.coralogixapis.notification_center.ConnectorTypeR\rconnectorType\x128\n" + + "\x16deprecated_entity_type\x18\x02 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12a\n" + + "\ventity_type\x18\x03 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + "entityType:\x8d\x02\x92A\x89\x02\n" + "\x89\x01*)Get System Default Preset Summary Request2\\Returns the preset summary for the system default preset (i.e., not a user-selected default)*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x8f\x01\n" + "%GetSystemDefaultPresetSummaryResponse\x12f\n" + - "\x0epreset_summary\x18\x01 \x01(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\rpresetSummary2\xb8\x13\n" + + "\x0epreset_summary\x18\x01 \x01(\v2?.com.coralogixapis.notification_center.presets.v1.PresetSummaryR\rpresetSummary2\xdc\x12\n" + "\x0ePresetsService\x12\xe7\x01\n" + "\x12CreateCustomPreset\x12K.com.coralogixapis.notification_center.presets.v1.CreateCustomPresetRequest\x1aL.com.coralogixapis.notification_center.presets.v1.CreateCustomPresetResponse\"6\x82\xd3\xe4\x93\x020:\x06preset\"&/v1/notification-center/presets/custom\x12\xea\x01\n" + - "\x13ReplaceCustomPreset\x12L.com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetRequest\x1aM.com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetResponse\"6\x82\xd3\xe4\x93\x020:\x06preset\x1a&/v1/notification-center/presets/custom\x12\xfb\x01\n" + - "\x12DeleteCustomPreset\x12K.com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest\x1aL.com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetResponse\"J\x82\xd3\xe4\x93\x02D*B/v1/notification-center/presets/custom/{identifier.user_facing_id}\x12\x9b\x02\n" + - "\x18SetCustomPresetAsDefault\x12Q.com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest\x1aR.com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultResponse\"X\x82\xd3\xe4\x93\x02O\"M/v1/notification-center/presets/custom/{identifier.user_facing_id}:defaultSet\x88\x02\x01\x12\xff\x01\n" + - "\x12SetPresetAsDefault\x12K.com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest\x1aL.com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultResponse\"N\x82\xd3\xe4\x93\x02H\"F/v1/notification-center/presets/{identifier.user_facing_id}:defaultSet\x12\xd9\x01\n" + - "\tGetPreset\x12B.com.coralogixapis.notification_center.presets.v1.GetPresetRequest\x1aC.com.coralogixapis.notification_center.presets.v1.GetPresetResponse\"C\x82\xd3\xe4\x93\x02=\x12;/v1/notification-center/presets/{identifier.user_facing_id}\x12\xe9\x01\n" + + "\x13ReplaceCustomPreset\x12L.com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetRequest\x1aM.com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetResponse\"6\x82\xd3\xe4\x93\x020:\x06preset\x1a&/v1/notification-center/presets/custom\x12\xe4\x01\n" + + "\x12DeleteCustomPreset\x12K.com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest\x1aL.com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetResponse\"3\x82\xd3\xe4\x93\x02-*+/v1/notification-center/presets/custom/{id}\x12\x84\x02\n" + + "\x18SetCustomPresetAsDefault\x12Q.com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest\x1aR.com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultResponse\"A\x82\xd3\xe4\x93\x028\"6/v1/notification-center/presets/custom/{id}:defaultSet\x88\x02\x01\x12\xe8\x01\n" + + "\x12SetPresetAsDefault\x12K.com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest\x1aL.com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultResponse\"7\x82\xd3\xe4\x93\x021\"//v1/notification-center/presets/{id}:defaultSet\x12\xc2\x01\n" + + "\tGetPreset\x12B.com.coralogixapis.notification_center.presets.v1.GetPresetRequest\x1aC.com.coralogixapis.notification_center.presets.v1.GetPresetResponse\",\x82\xd3\xe4\x93\x02&\x12$/v1/notification-center/presets/{id}\x12\xe9\x01\n" + "\x13ListPresetSummaries\x12L.com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest\x1aM.com.coralogixapis.notification_center.presets.v1.ListPresetSummariesResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/notification-center/presets:summariesList\x12\xd8\x01\n" + "\x0fBatchGetPresets\x12H.com.coralogixapis.notification_center.presets.v1.BatchGetPresetsRequest\x1aI.com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse\"0\x82\xd3\xe4\x93\x02*\x12(/v1/notification-center/presets:batchGet\x12\xf9\x01\n" + "\x17GetDefaultPresetSummary\x12P.com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest\x1aQ.com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse\"9\x82\xd3\xe4\x93\x023\x121/v1/notification-center/presets:defaultSummaryGet\x12\x91\x02\n" + - "\x1dGetSystemDefaultPresetSummary\x12V.com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest\x1aW.com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse\"?\x82\xd3\xe4\x93\x029\x127/v1/notification-center/presets:systemDefaultSummaryGetb\x06proto3" + "\x1dGetSystemDefaultPresetSummary\x12V.com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest\x1aW.com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse\"?\x82\xd3\xe4\x93\x029\x127/v1/notification-center/presets:systemDefaultSummaryGetB2Z0com/coralogixapis/notification_center/presets/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescOnce sync.Once @@ -1196,57 +1184,65 @@ var file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_ (*GetDefaultPresetSummaryResponse)(nil), // 17: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse (*GetSystemDefaultPresetSummaryRequest)(nil), // 18: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest (*GetSystemDefaultPresetSummaryResponse)(nil), // 19: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse - nil, // 20: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry - (*Preset)(nil), // 21: com.coralogixapis.notification_center.presets.v1.Preset - (*PresetIdentifier)(nil), // 22: com.coralogixapis.notification_center.presets.v1.PresetIdentifier - (common.ConnectorType)(0), // 23: com.coralogixapis.notification_center.ConnectorType - (*common.OrderBy)(nil), // 24: com.coralogixapis.notification_center.OrderBy - (*PresetSummary)(nil), // 25: com.coralogixapis.notification_center.presets.v1.PresetSummary + nil, // 20: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry + (*Preset)(nil), // 21: com.coralogixapis.notification_center.presets.v1.Preset + (*PresetIdentifier)(nil), // 22: com.coralogixapis.notification_center.presets.v1.PresetIdentifier + (*v1.PresetIdentifier)(nil), // 23: com.coralogixapis.notification_center.PresetIdentifier + (common.ConnectorType)(0), // 24: com.coralogixapis.notification_center.ConnectorType + (common.EntityType)(0), // 25: com.coralogixapis.notification_center.EntityType + (*PresetSummary)(nil), // 26: com.coralogixapis.notification_center.presets.v1.PresetSummary } var file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_depIdxs = []int32{ 21, // 0: com.coralogixapis.notification_center.presets.v1.CreateCustomPresetRequest.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset 21, // 1: com.coralogixapis.notification_center.presets.v1.CreateCustomPresetResponse.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset 21, // 2: com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetRequest.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset 21, // 3: com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetResponse.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset - 22, // 4: com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest.identifier:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier - 22, // 5: com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest.identifier:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier - 22, // 6: com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest.identifier:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier - 22, // 7: com.coralogixapis.notification_center.presets.v1.GetPresetRequest.identifier:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier - 21, // 8: com.coralogixapis.notification_center.presets.v1.GetPresetResponse.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset - 23, // 9: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 24, // 10: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy - 25, // 11: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesResponse.preset_summaries:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary - 20, // 12: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.presets:type_name -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry - 23, // 13: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 25, // 14: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse.preset_summary:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary - 23, // 15: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 25, // 16: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse.preset_summary:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary - 21, // 17: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry.value:type_name -> com.coralogixapis.notification_center.presets.v1.Preset - 0, // 18: com.coralogixapis.notification_center.presets.v1.PresetsService.CreateCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.CreateCustomPresetRequest - 2, // 19: com.coralogixapis.notification_center.presets.v1.PresetsService.ReplaceCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetRequest - 4, // 20: com.coralogixapis.notification_center.presets.v1.PresetsService.DeleteCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest - 6, // 21: com.coralogixapis.notification_center.presets.v1.PresetsService.SetCustomPresetAsDefault:input_type -> com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest - 8, // 22: com.coralogixapis.notification_center.presets.v1.PresetsService.SetPresetAsDefault:input_type -> com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest - 10, // 23: com.coralogixapis.notification_center.presets.v1.PresetsService.GetPreset:input_type -> com.coralogixapis.notification_center.presets.v1.GetPresetRequest - 12, // 24: com.coralogixapis.notification_center.presets.v1.PresetsService.ListPresetSummaries:input_type -> com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest - 14, // 25: com.coralogixapis.notification_center.presets.v1.PresetsService.BatchGetPresets:input_type -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsRequest - 16, // 26: com.coralogixapis.notification_center.presets.v1.PresetsService.GetDefaultPresetSummary:input_type -> com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest - 18, // 27: com.coralogixapis.notification_center.presets.v1.PresetsService.GetSystemDefaultPresetSummary:input_type -> com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest - 1, // 28: com.coralogixapis.notification_center.presets.v1.PresetsService.CreateCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.CreateCustomPresetResponse - 3, // 29: com.coralogixapis.notification_center.presets.v1.PresetsService.ReplaceCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetResponse - 5, // 30: com.coralogixapis.notification_center.presets.v1.PresetsService.DeleteCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetResponse - 7, // 31: com.coralogixapis.notification_center.presets.v1.PresetsService.SetCustomPresetAsDefault:output_type -> com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultResponse - 9, // 32: com.coralogixapis.notification_center.presets.v1.PresetsService.SetPresetAsDefault:output_type -> com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultResponse - 11, // 33: com.coralogixapis.notification_center.presets.v1.PresetsService.GetPreset:output_type -> com.coralogixapis.notification_center.presets.v1.GetPresetResponse - 13, // 34: com.coralogixapis.notification_center.presets.v1.PresetsService.ListPresetSummaries:output_type -> com.coralogixapis.notification_center.presets.v1.ListPresetSummariesResponse - 15, // 35: com.coralogixapis.notification_center.presets.v1.PresetsService.BatchGetPresets:output_type -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse - 17, // 36: com.coralogixapis.notification_center.presets.v1.PresetsService.GetDefaultPresetSummary:output_type -> com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse - 19, // 37: com.coralogixapis.notification_center.presets.v1.PresetsService.GetSystemDefaultPresetSummary:output_type -> com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse - 28, // [28:38] is the sub-list for method output_type - 18, // [18:28] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 22, // 4: com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest.deprecated_identifier_2:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier + 23, // 5: com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest.identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 6: com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest.deprecated_identifier_2:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier + 23, // 7: com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest.identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 8: com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest.deprecated_identifier:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier + 23, // 9: com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest.identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 22, // 10: com.coralogixapis.notification_center.presets.v1.GetPresetRequest.deprecated_identifier_2:type_name -> com.coralogixapis.notification_center.presets.v1.PresetIdentifier + 23, // 11: com.coralogixapis.notification_center.presets.v1.GetPresetRequest.identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 21, // 12: com.coralogixapis.notification_center.presets.v1.GetPresetResponse.preset:type_name -> com.coralogixapis.notification_center.presets.v1.Preset + 24, // 13: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 25, // 14: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 26, // 15: com.coralogixapis.notification_center.presets.v1.ListPresetSummariesResponse.preset_summaries:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary + 23, // 16: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsRequest.deprecated_identifiers:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 20, // 17: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.presets:type_name -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry + 24, // 18: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 25, // 19: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 26, // 20: com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse.preset_summary:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary + 24, // 21: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 25, // 22: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 26, // 23: com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse.preset_summary:type_name -> com.coralogixapis.notification_center.presets.v1.PresetSummary + 21, // 24: com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse.PresetsEntry.value:type_name -> com.coralogixapis.notification_center.presets.v1.Preset + 0, // 25: com.coralogixapis.notification_center.presets.v1.PresetsService.CreateCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.CreateCustomPresetRequest + 2, // 26: com.coralogixapis.notification_center.presets.v1.PresetsService.ReplaceCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetRequest + 4, // 27: com.coralogixapis.notification_center.presets.v1.PresetsService.DeleteCustomPreset:input_type -> com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetRequest + 6, // 28: com.coralogixapis.notification_center.presets.v1.PresetsService.SetCustomPresetAsDefault:input_type -> com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultRequest + 8, // 29: com.coralogixapis.notification_center.presets.v1.PresetsService.SetPresetAsDefault:input_type -> com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultRequest + 10, // 30: com.coralogixapis.notification_center.presets.v1.PresetsService.GetPreset:input_type -> com.coralogixapis.notification_center.presets.v1.GetPresetRequest + 12, // 31: com.coralogixapis.notification_center.presets.v1.PresetsService.ListPresetSummaries:input_type -> com.coralogixapis.notification_center.presets.v1.ListPresetSummariesRequest + 14, // 32: com.coralogixapis.notification_center.presets.v1.PresetsService.BatchGetPresets:input_type -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsRequest + 16, // 33: com.coralogixapis.notification_center.presets.v1.PresetsService.GetDefaultPresetSummary:input_type -> com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryRequest + 18, // 34: com.coralogixapis.notification_center.presets.v1.PresetsService.GetSystemDefaultPresetSummary:input_type -> com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryRequest + 1, // 35: com.coralogixapis.notification_center.presets.v1.PresetsService.CreateCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.CreateCustomPresetResponse + 3, // 36: com.coralogixapis.notification_center.presets.v1.PresetsService.ReplaceCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.ReplaceCustomPresetResponse + 5, // 37: com.coralogixapis.notification_center.presets.v1.PresetsService.DeleteCustomPreset:output_type -> com.coralogixapis.notification_center.presets.v1.DeleteCustomPresetResponse + 7, // 38: com.coralogixapis.notification_center.presets.v1.PresetsService.SetCustomPresetAsDefault:output_type -> com.coralogixapis.notification_center.presets.v1.SetCustomPresetAsDefaultResponse + 9, // 39: com.coralogixapis.notification_center.presets.v1.PresetsService.SetPresetAsDefault:output_type -> com.coralogixapis.notification_center.presets.v1.SetPresetAsDefaultResponse + 11, // 40: com.coralogixapis.notification_center.presets.v1.PresetsService.GetPreset:output_type -> com.coralogixapis.notification_center.presets.v1.GetPresetResponse + 13, // 41: com.coralogixapis.notification_center.presets.v1.PresetsService.ListPresetSummaries:output_type -> com.coralogixapis.notification_center.presets.v1.ListPresetSummariesResponse + 15, // 42: com.coralogixapis.notification_center.presets.v1.PresetsService.BatchGetPresets:output_type -> com.coralogixapis.notification_center.presets.v1.BatchGetPresetsResponse + 17, // 43: com.coralogixapis.notification_center.presets.v1.PresetsService.GetDefaultPresetSummary:output_type -> com.coralogixapis.notification_center.presets.v1.GetDefaultPresetSummaryResponse + 19, // 44: com.coralogixapis.notification_center.presets.v1.PresetsService.GetSystemDefaultPresetSummary:output_type -> com.coralogixapis.notification_center.presets.v1.GetSystemDefaultPresetSummaryResponse + 35, // [35:45] is the sub-list for method output_type + 25, // [25:35] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_init() } @@ -1255,18 +1251,7 @@ func file_com_coralogixapis_notification_center_presets_v1_presets_service_proto return } file_com_coralogixapis_notification_center_presets_v1_preset_proto_init() - file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[4].OneofWrappers = []any{ - (*DeleteCustomPresetRequest_Id)(nil), - (*DeleteCustomPresetRequest_UserFacingId)(nil), - } - file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[6].OneofWrappers = []any{ - (*SetCustomPresetAsDefaultRequest_Id)(nil), - (*SetCustomPresetAsDefaultRequest_UserFacingId)(nil), - } - file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[10].OneofWrappers = []any{ - (*GetPresetRequest_Id)(nil), - (*GetPresetRequest_UserFacingId)(nil), - } + file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[12].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/go/internal/coralogixapis/notification_center/routers/v1/global_routers_service.pb.go b/go/internal/coralogixapis/notification_center/routers/v1/global_routers_service.pb.go index 44dbd70e..4f560185 100644 --- a/go/internal/coralogixapis/notification_center/routers/v1/global_routers_service.pb.go +++ b/go/internal/coralogixapis/notification_center/routers/v1/global_routers_service.pb.go @@ -7,7 +7,9 @@ package v1 import ( + common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" + routing "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1/routing" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -290,8 +292,12 @@ func (x *CreateOrReplaceGlobalRouterResponse) GetRouter() *GlobalRouter { } type DeleteGlobalRouterRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + DeprecatedIdentifier *routing.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=deprecated_identifier,json=deprecatedIdentifier,proto3" json:"deprecated_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -326,6 +332,15 @@ func (*DeleteGlobalRouterRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_routers_v1_global_routers_service_proto_rawDescGZIP(), []int{6} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. +func (x *DeleteGlobalRouterRequest) GetDeprecatedIdentifier() *routing.GlobalRouterIdentifier { + if x != nil { + return x.DeprecatedIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. func (x *DeleteGlobalRouterRequest) GetIdentifier() *v1.GlobalRouterIdentifier { if x != nil { return x.Identifier @@ -333,6 +348,13 @@ func (x *DeleteGlobalRouterRequest) GetIdentifier() *v1.GlobalRouterIdentifier { return nil } +func (x *DeleteGlobalRouterRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + type DeleteGlobalRouterResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -370,8 +392,12 @@ func (*DeleteGlobalRouterResponse) Descriptor() ([]byte, []int) { } type GetGlobalRouterRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + DeprecatedIdentifier *routing.GlobalRouterIdentifier `protobuf:"bytes,1,opt,name=deprecated_identifier,json=deprecatedIdentifier,proto3" json:"deprecated_identifier,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + Identifier *v1.GlobalRouterIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -406,6 +432,15 @@ func (*GetGlobalRouterRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_routers_v1_global_routers_service_proto_rawDescGZIP(), []int{8} } +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. +func (x *GetGlobalRouterRequest) GetDeprecatedIdentifier() *routing.GlobalRouterIdentifier { + if x != nil { + return x.DeprecatedIdentifier + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. func (x *GetGlobalRouterRequest) GetIdentifier() *v1.GlobalRouterIdentifier { if x != nil { return x.Identifier @@ -413,6 +448,13 @@ func (x *GetGlobalRouterRequest) GetIdentifier() *v1.GlobalRouterIdentifier { return nil } +func (x *GetGlobalRouterRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + type GetGlobalRouterResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Router *GlobalRouter `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"` @@ -458,10 +500,12 @@ func (x *GetGlobalRouterResponse) GetRouter() *GlobalRouter { } type ListGlobalRoutersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - EntityType *string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3,oneof" json:"entity_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + DeprecatedEntityType *string `protobuf:"bytes,1,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3,oneof" json:"deprecated_entity_type,omitempty"` + EntityType *common.EntityType `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType,oneof" json:"entity_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListGlobalRoutersRequest) Reset() { @@ -494,11 +538,19 @@ func (*ListGlobalRoutersRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_routers_v1_global_routers_service_proto_rawDescGZIP(), []int{10} } -func (x *ListGlobalRoutersRequest) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. +func (x *ListGlobalRoutersRequest) GetDeprecatedEntityType() string { + if x != nil && x.DeprecatedEntityType != nil { + return *x.DeprecatedEntityType + } + return "" +} + +func (x *ListGlobalRoutersRequest) GetEntityType() common.EntityType { if x != nil && x.EntityType != nil { return *x.EntityType } - return "" + return common.EntityType(0) } type ListGlobalRoutersResponse struct { @@ -546,10 +598,14 @@ func (x *ListGlobalRoutersResponse) GetRouters() []*GlobalRouter { } type BatchGetGlobalRoutersRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ids []*v1.GlobalRouterIdentifier `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + DeprecatedIds []*routing.GlobalRouterIdentifier `protobuf:"bytes,1,rep,name=deprecated_ids,json=deprecatedIds,proto3" json:"deprecated_ids,omitempty"` + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. + DeprecatedIdentifiers []*v1.GlobalRouterIdentifier `protobuf:"bytes,2,rep,name=deprecated_identifiers,json=deprecatedIdentifiers,proto3" json:"deprecated_identifiers,omitempty"` + Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatchGetGlobalRoutersRequest) Reset() { @@ -582,7 +638,23 @@ func (*BatchGetGlobalRoutersRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_routers_v1_global_routers_service_proto_rawDescGZIP(), []int{12} } -func (x *BatchGetGlobalRoutersRequest) GetIds() []*v1.GlobalRouterIdentifier { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. +func (x *BatchGetGlobalRoutersRequest) GetDeprecatedIds() []*routing.GlobalRouterIdentifier { + if x != nil { + return x.DeprecatedIds + } + return nil +} + +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/global_routers_service.proto. +func (x *BatchGetGlobalRoutersRequest) GetDeprecatedIdentifiers() []*v1.GlobalRouterIdentifier { + if x != nil { + return x.DeprecatedIdentifiers + } + return nil +} + +func (x *BatchGetGlobalRoutersRequest) GetIds() []string { if x != nil { return x.Ids } @@ -590,11 +662,11 @@ func (x *BatchGetGlobalRoutersRequest) GetIds() []*v1.GlobalRouterIdentifier { } type BatchGetGlobalRoutersResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Routers map[string]*GlobalRouter `protobuf:"bytes,1,rep,name=routers,proto3" json:"routers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - NotFoundIdentifiers []string `protobuf:"bytes,2,rep,name=not_found_identifiers,json=notFoundIdentifiers,proto3" json:"not_found_identifiers,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Routers map[string]*GlobalRouter `protobuf:"bytes,1,rep,name=routers,proto3" json:"routers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + NotFoundIds []string `protobuf:"bytes,2,rep,name=not_found_ids,json=notFoundIds,proto3" json:"not_found_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatchGetGlobalRoutersResponse) Reset() { @@ -634,9 +706,9 @@ func (x *BatchGetGlobalRoutersResponse) GetRouters() map[string]*GlobalRouter { return nil } -func (x *BatchGetGlobalRoutersResponse) GetNotFoundIdentifiers() []string { +func (x *BatchGetGlobalRoutersResponse) GetNotFoundIds() []string { if x != nil { - return x.NotFoundIdentifiers + return x.NotFoundIds } return nil } @@ -645,7 +717,7 @@ var File_com_coralogixapis_notification_center_routers_v1_global_routers_service const file_com_coralogixapis_notification_center_routers_v1_global_routers_service_proto_rawDesc = "" + "\n" + - "Mcom/coralogixapis/notification_center/routers/v1/global_routers_service.proto\x120com.coralogixapis.notification_center.routers.v1\x1a=com/coralogixapis/notification_center/common/v1/routing.proto\x1a=com/coralogixapis/notification_center/routers/v1/router.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xba\x02\n" + + "Mcom/coralogixapis/notification_center/routers/v1/global_routers_service.proto\x120com.coralogixapis.notification_center.routers.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\x1aEcom/coralogixapis/notification_center/common/v1/routing/routing.proto\x1a=com/coralogixapis/notification_center/routers/v1/router.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xba\x02\n" + "\x19CreateGlobalRouterRequest\x12V\n" + "\x06router\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.routers.v1.GlobalRouterR\x06router:\xc4\x01\x92A\xc0\x01\n" + "A*\x1cCreate Global Router Request2!Request to create a global router*{\n" + @@ -669,55 +741,63 @@ const file_com_coralogixapis_notification_center_routers_v1_global_routers_servi "#CreateOrReplaceGlobalRouterResponse\x12V\n" + "\x06router\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.routers.v1.GlobalRouterR\x06router:\xe2\x01\x92A\xde\x01\n" + "_*(Create Or Replace Global Router Response23Response which contains a created or updated router*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xda\x02\n" + - "\x19DeleteGlobalRouterRequest\x12e\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xe6\x03\n" + + "\x19DeleteGlobalRouterRequest\x12~\n" + + "\x15deprecated_identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierB\x02\x18\x01R\x14deprecatedIdentifier\x12a\n" + "\n" + - "identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierR\n" + - "identifier:\xd5\x01\x92A\xd1\x01\n" + + "identifier\x18\x02 \x01(\v2=.com.coralogixapis.notification_center.GlobalRouterIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id:\xd5\x01\x92A\xd1\x01\n" + "R*\x1cDelete Global Router Request22Deletes a global router with the passed identifier*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\x1c\n" + - "\x1aDeleteGlobalRouterResponse\"\xe0\x02\n" + - "\x16GetGlobalRouterRequest\x12e\n" + + "\x1aDeleteGlobalRouterResponse\"\xec\x03\n" + + "\x16GetGlobalRouterRequest\x12~\n" + + "\x15deprecated_identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierB\x02\x18\x01R\x14deprecatedIdentifier\x12a\n" + "\n" + - "identifier\x18\x01 \x01(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierR\n" + - "identifier:\xde\x01\x92A\xda\x01\n" + + "identifier\x18\x02 \x01(\v2=.com.coralogixapis.notification_center.GlobalRouterIdentifierB\x02\x18\x01R\n" + + "identifier\x12\x0e\n" + + "\x02id\x18\x03 \x01(\tR\x02id:\xde\x01\x92A\xda\x01\n" + "[*\x19Get Global Router Request2>Request to retrieve a global router with the passed identifier*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc2\x02\n" + "\x17GetGlobalRouterResponse\x12V\n" + "\x06router\x18\x01 \x01(\v2>.com.coralogixapis.notification_center.routers.v1.GlobalRouterR\x06router:\xce\x01\x92A\xca\x01\n" + "K*\x1aGet Global Router Response2-Response containing a requested global router*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xbc\x02\n" + - "\x18ListGlobalRoutersRequest\x123\n" + - "\ventity_type\x18\x01 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"H\x00R\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xc9\x03\n" + + "\x18ListGlobalRoutersRequest\x12=\n" + + "\x16deprecated_entity_type\x18\x01 \x01(\tB\x02\x18\x01H\x00R\x14deprecatedEntityType\x88\x01\x01\x12f\n" + + "\ventity_type\x18\x02 \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"H\x01R\n" + "entityType\x88\x01\x01:\xda\x01\x92A\xd6\x01\n" + "W*\x1bList Global Routers Request28Request to retrieve global routers by entity type or all*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x0e\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x19\n" + + "\x17_deprecated_entity_typeB\x0e\n" + "\f_entity_type\"\xc7\x02\n" + "\x19ListGlobalRoutersResponse\x12X\n" + "\arouters\x18\x01 \x03(\v2>.com.coralogixapis.notification_center.routers.v1.GlobalRouterR\arouters:\xcf\x01\x92A\xcb\x01\n" + "L*\x1cList Global Routers Response2,Response containing requested global routers*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xcb\x02\n" + - "\x1cBatchGetGlobalRoutersRequest\x12W\n" + - "\x03ids\x18\x01 \x03(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierR\x03ids:\xd1\x01\x92A\xcd\x01\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xf0\x03\n" + + "\x1cBatchGetGlobalRoutersRequest\x12p\n" + + "\x0edeprecated_ids\x18\x01 \x03(\v2E.com.coralogixapis.notification_center.routing.GlobalRouterIdentifierB\x02\x18\x01R\rdeprecatedIds\x12x\n" + + "\x16deprecated_identifiers\x18\x02 \x03(\v2=.com.coralogixapis.notification_center.GlobalRouterIdentifierB\x02\x18\x01R\x15deprecatedIdentifiers\x12\x10\n" + + "\x03ids\x18\x03 \x03(\tR\x03ids:\xd1\x01\x92A\xcd\x01\n" + "N* Batch Get Global Routers Request2*Get global routers by provided identifiers*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xda\x04\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/\"\xca\x04\n" + "\x1dBatchGetGlobalRoutersResponse\x12v\n" + - "\arouters\x18\x01 \x03(\v2\\.com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntryR\arouters\x12O\n" + - "\x15not_found_identifiers\x18\x02 \x03(\tB\x1b\x92A\x18J\x16[\"global-router-id-3\"]R\x13notFoundIdentifiers\x1az\n" + + "\arouters\x18\x01 \x03(\v2\\.com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntryR\arouters\x12?\n" + + "\rnot_found_ids\x18\x02 \x03(\tB\x1b\x92A\x18J\x16[\"global-router-id-3\"]R\vnotFoundIds\x1az\n" + "\fRoutersEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12T\n" + "\x05value\x18\x02 \x01(\v2>.com.coralogixapis.notification_center.routers.v1.GlobalRouterR\x05value:\x028\x01:\xf3\x01\x92A\xef\x01\n" + "p*!Batch Get Global Routers Response2KResponse containing requested global routers and missing global routers ids*{\n" + - "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/2\xa8\f\n" + + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/2\xe3\f\n" + "\x14GlobalRoutersService\x12\xe0\x01\n" + - "\x12CreateGlobalRouter\x12K.com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterRequest\x1aL.com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterResponse\"/\x82\xd3\xe4\x93\x02):\x06router\"\x1f/v1/notification-center/routers\x12\xb4\x01\n" + - "\x13ReplaceGlobalRouter\x12L.com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterRequest\x1aM.com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterResponse\"\x00\x12\xfb\x01\n" + - "\x1bCreateOrReplaceGlobalRouter\x12T.com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterRequest\x1aU.com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterResponse\"/\x82\xd3\xe4\x93\x02):\x06router\x1a\x1f/v1/notification-center/routers\x12\xf4\x01\n" + - "\x12DeleteGlobalRouter\x12K.com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest\x1aL.com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterResponse\"C\x82\xd3\xe4\x93\x02=*;/v1/notification-center/routers/{identifier.user_facing_id}\x12\xeb\x01\n" + - "\x0fGetGlobalRouter\x12H.com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest\x1aI.com.coralogixapis.notification_center.routers.v1.GetGlobalRouterResponse\"C\x82\xd3\xe4\x93\x02=\x12;/v1/notification-center/routers/{identifier.user_facing_id}\x12\xd5\x01\n" + - "\x11ListGlobalRouters\x12J.com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersRequest\x1aK.com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersResponse\"'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/notification-center/routers\x12\xba\x01\n" + - "\x15BatchGetGlobalRouters\x12N.com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest\x1aO.com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse\"\x00b\x06proto3" + "\x12CreateGlobalRouter\x12K.com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterRequest\x1aL.com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterResponse\"/\x82\xd3\xe4\x93\x02):\x06router\"\x1f/v1/notification-center/routers\x12\xe3\x01\n" + + "\x13ReplaceGlobalRouter\x12L.com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterRequest\x1aM.com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterResponse\"/\x82\xd3\xe4\x93\x02):\x06router\x1a\x1f/v1/notification-center/routers\x12\xcc\x01\n" + + "\x1bCreateOrReplaceGlobalRouter\x12T.com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterRequest\x1aU.com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterResponse\"\x00\x12\xf5\x01\n" + + "\x12DeleteGlobalRouter\x12K.com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest\x1aL.com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterResponse\"D\x82\xd3\xe4\x93\x02>*\x12 com.coralogixapis.notification_center.routers.v1.GlobalRouter @@ -758,32 +840,36 @@ var file_com_coralogixapis_notification_center_routers_v1_global_routers_service 15, // 3: com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterResponse.router:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter 15, // 4: com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterRequest.router:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter 15, // 5: com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterResponse.router:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter - 16, // 6: com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest.identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier - 16, // 7: com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest.identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier - 15, // 8: com.coralogixapis.notification_center.routers.v1.GetGlobalRouterResponse.router:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter - 15, // 9: com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersResponse.routers:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter - 16, // 10: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest.ids:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier - 14, // 11: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.routers:type_name -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntry - 15, // 12: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntry.value:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter - 0, // 13: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterRequest - 2, // 14: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ReplaceGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterRequest - 4, // 15: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateOrReplaceGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterRequest - 6, // 16: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.DeleteGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest - 8, // 17: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.GetGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest - 10, // 18: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ListGlobalRouters:input_type -> com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersRequest - 12, // 19: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.BatchGetGlobalRouters:input_type -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest - 1, // 20: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterResponse - 3, // 21: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ReplaceGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterResponse - 5, // 22: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateOrReplaceGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterResponse - 7, // 23: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.DeleteGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterResponse - 9, // 24: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.GetGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.GetGlobalRouterResponse - 11, // 25: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ListGlobalRouters:output_type -> com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersResponse - 13, // 26: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.BatchGetGlobalRouters:output_type -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse - 20, // [20:27] is the sub-list for method output_type - 13, // [13:20] 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 + 16, // 6: com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest.deprecated_identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + 17, // 7: com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest.identifier:type_name -> com.coralogixapis.notification_center.GlobalRouterIdentifier + 16, // 8: com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest.deprecated_identifier:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + 17, // 9: com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest.identifier:type_name -> com.coralogixapis.notification_center.GlobalRouterIdentifier + 15, // 10: com.coralogixapis.notification_center.routers.v1.GetGlobalRouterResponse.router:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter + 18, // 11: com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersRequest.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 15, // 12: com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersResponse.routers:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter + 16, // 13: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest.deprecated_ids:type_name -> com.coralogixapis.notification_center.routing.GlobalRouterIdentifier + 17, // 14: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest.deprecated_identifiers:type_name -> com.coralogixapis.notification_center.GlobalRouterIdentifier + 14, // 15: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.routers:type_name -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntry + 15, // 16: com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse.RoutersEntry.value:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter + 0, // 17: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterRequest + 2, // 18: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ReplaceGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterRequest + 4, // 19: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateOrReplaceGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterRequest + 6, // 20: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.DeleteGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterRequest + 8, // 21: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.GetGlobalRouter:input_type -> com.coralogixapis.notification_center.routers.v1.GetGlobalRouterRequest + 10, // 22: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ListGlobalRouters:input_type -> com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersRequest + 12, // 23: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.BatchGetGlobalRouters:input_type -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersRequest + 1, // 24: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.CreateGlobalRouterResponse + 3, // 25: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ReplaceGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.ReplaceGlobalRouterResponse + 5, // 26: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.CreateOrReplaceGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.CreateOrReplaceGlobalRouterResponse + 7, // 27: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.DeleteGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.DeleteGlobalRouterResponse + 9, // 28: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.GetGlobalRouter:output_type -> com.coralogixapis.notification_center.routers.v1.GetGlobalRouterResponse + 11, // 29: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.ListGlobalRouters:output_type -> com.coralogixapis.notification_center.routers.v1.ListGlobalRoutersResponse + 13, // 30: com.coralogixapis.notification_center.routers.v1.GlobalRoutersService.BatchGetGlobalRouters:output_type -> com.coralogixapis.notification_center.routers.v1.BatchGetGlobalRoutersResponse + 24, // [24:31] is the sub-list for method output_type + 17, // [17:24] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { diff --git a/go/internal/coralogixapis/notification_center/routers/v1/private_routing.pb.go b/go/internal/coralogixapis/notification_center/routers/v1/private_routing.pb.go new file mode 100644 index 00000000..d2caf951 --- /dev/null +++ b/go/internal/coralogixapis/notification_center/routers/v1/private_routing.pb.go @@ -0,0 +1,249 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: com/coralogixapis/notification_center/routers/v1/private_routing.proto + +package v1 + +import ( + v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" + routing "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1/routing" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +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) +) + +type PrivateRoutingRule struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Condition template that is rendered to true or false and used to determine if the rule should be applied + Condition string `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + // List of targets to send the notification to + Targets []*PrivateRoutingTarget `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"` + CustomDetails map[string]string `protobuf:"bytes,3,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PrivateRoutingRule) Reset() { + *x = PrivateRoutingRule{} + mi := &file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PrivateRoutingRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrivateRoutingRule) ProtoMessage() {} + +func (x *PrivateRoutingRule) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PrivateRoutingRule.ProtoReflect.Descriptor instead. +func (*PrivateRoutingRule) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescGZIP(), []int{0} +} + +func (x *PrivateRoutingRule) GetCondition() string { + if x != nil { + return x.Condition + } + return "" +} + +func (x *PrivateRoutingRule) GetTargets() []*PrivateRoutingTarget { + if x != nil { + return x.Targets + } + return nil +} + +func (x *PrivateRoutingRule) GetCustomDetails() map[string]string { + if x != nil { + return x.CustomDetails + } + return nil +} + +func (x *PrivateRoutingRule) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +type PrivateRoutingTarget struct { + state protoimpl.MessageState `protogen:"open.v1"` + ConnectorIdentifier *v1.ConnectorIdentifier `protobuf:"bytes,1,opt,name=connector_identifier,json=connectorIdentifier,proto3" json:"connector_identifier,omitempty"` + PresetIdentifier *v1.PresetIdentifier `protobuf:"bytes,2,opt,name=preset_identifier,json=presetIdentifier,proto3,oneof" json:"preset_identifier,omitempty"` + ConfigOverrides *routing.SourceOverrides `protobuf:"bytes,3,opt,name=config_overrides,json=configOverrides,proto3,oneof" json:"config_overrides,omitempty"` + CustomDetails map[string]string `protobuf:"bytes,4,rep,name=custom_details,json=customDetails,proto3" json:"custom_details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PrivateRoutingTarget) Reset() { + *x = PrivateRoutingTarget{} + mi := &file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PrivateRoutingTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrivateRoutingTarget) ProtoMessage() {} + +func (x *PrivateRoutingTarget) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PrivateRoutingTarget.ProtoReflect.Descriptor instead. +func (*PrivateRoutingTarget) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescGZIP(), []int{1} +} + +func (x *PrivateRoutingTarget) GetConnectorIdentifier() *v1.ConnectorIdentifier { + if x != nil { + return x.ConnectorIdentifier + } + return nil +} + +func (x *PrivateRoutingTarget) GetPresetIdentifier() *v1.PresetIdentifier { + if x != nil { + return x.PresetIdentifier + } + return nil +} + +func (x *PrivateRoutingTarget) GetConfigOverrides() *routing.SourceOverrides { + if x != nil { + return x.ConfigOverrides + } + return nil +} + +func (x *PrivateRoutingTarget) GetCustomDetails() map[string]string { + if x != nil { + return x.CustomDetails + } + return nil +} + +var File_com_coralogixapis_notification_center_routers_v1_private_routing_proto protoreflect.FileDescriptor + +const file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDesc = "" + + "\n" + + "Fcom/coralogixapis/notification_center/routers/v1/private_routing.proto\x120com.coralogixapis.notification_center.routers.v1\x1a@com/coralogixapis/notification_center/common/v1/identifier.proto\x1aEcom/coralogixapis/notification_center/common/v1/routing/routing.proto\"\xf8\x02\n" + + "\x12PrivateRoutingRule\x12\x1c\n" + + "\tcondition\x18\x01 \x01(\tR\tcondition\x12`\n" + + "\atargets\x18\x02 \x03(\v2F.com.coralogixapis.notification_center.routers.v1.PrivateRoutingTargetR\atargets\x12~\n" + + "\x0ecustom_details\x18\x03 \x03(\v2W.com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule.CustomDetailsEntryR\rcustomDetails\x12\x17\n" + + "\x04name\x18\x04 \x01(\tH\x00R\x04name\x88\x01\x01\x1a@\n" + + "\x12CustomDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\a\n" + + "\x05_name\"\xd0\x04\n" + + "\x14PrivateRoutingTarget\x12m\n" + + "\x14connector_identifier\x18\x01 \x01(\v2:.com.coralogixapis.notification_center.ConnectorIdentifierR\x13connectorIdentifier\x12i\n" + + "\x11preset_identifier\x18\x02 \x01(\v27.com.coralogixapis.notification_center.PresetIdentifierH\x00R\x10presetIdentifier\x88\x01\x01\x12n\n" + + "\x10config_overrides\x18\x03 \x01(\v2>.com.coralogixapis.notification_center.routing.SourceOverridesH\x01R\x0fconfigOverrides\x88\x01\x01\x12\x80\x01\n" + + "\x0ecustom_details\x18\x04 \x03(\v2Y.com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.CustomDetailsEntryR\rcustomDetails\x1a@\n" + + "\x12CustomDetailsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x14\n" + + "\x12_preset_identifierB\x13\n" + + "\x11_config_overridesB2Z0com/coralogixapis/notification_center/routers/v1b\x06proto3" + +var ( + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescOnce sync.Once + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescData []byte +) + +func file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescGZIP() []byte { + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescOnce.Do(func() { + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDesc))) + }) + return file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDescData +} + +var file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_goTypes = []any{ + (*PrivateRoutingRule)(nil), // 0: com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule + (*PrivateRoutingTarget)(nil), // 1: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget + nil, // 2: com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule.CustomDetailsEntry + nil, // 3: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.CustomDetailsEntry + (*v1.ConnectorIdentifier)(nil), // 4: com.coralogixapis.notification_center.ConnectorIdentifier + (*v1.PresetIdentifier)(nil), // 5: com.coralogixapis.notification_center.PresetIdentifier + (*routing.SourceOverrides)(nil), // 6: com.coralogixapis.notification_center.routing.SourceOverrides +} +var file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_depIdxs = []int32{ + 1, // 0: com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule.targets:type_name -> com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget + 2, // 1: com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule.custom_details:type_name -> com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule.CustomDetailsEntry + 4, // 2: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.connector_identifier:type_name -> com.coralogixapis.notification_center.ConnectorIdentifier + 5, // 3: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.preset_identifier:type_name -> com.coralogixapis.notification_center.PresetIdentifier + 6, // 4: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.config_overrides:type_name -> com.coralogixapis.notification_center.routing.SourceOverrides + 3, // 5: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.custom_details:type_name -> com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget.CustomDetailsEntry + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_init() } +func file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_init() { + if File_com_coralogixapis_notification_center_routers_v1_private_routing_proto != nil { + return + } + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[0].OneofWrappers = []any{} + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes[1].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDesc), len(file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_goTypes, + DependencyIndexes: file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_depIdxs, + MessageInfos: file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_msgTypes, + }.Build() + File_com_coralogixapis_notification_center_routers_v1_private_routing_proto = out.File + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_goTypes = nil + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_depIdxs = nil +} diff --git a/go/internal/coralogixapis/notification_center/routers/v1/router.pb.go b/go/internal/coralogixapis/notification_center/routers/v1/router.pb.go index 6029ed22..3141d9ec 100644 --- a/go/internal/coralogixapis/notification_center/routers/v1/router.pb.go +++ b/go/internal/coralogixapis/notification_center/routers/v1/router.pb.go @@ -7,7 +7,8 @@ package v1 import ( - v1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" + common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" + routing "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1/routing" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -27,10 +28,10 @@ const ( // The private router allows notification destinations and routing rules // to be specified as part of the notification request. type PrivateRouter struct { - state protoimpl.MessageState `protogen:"open.v1"` - RouterKey string `protobuf:"bytes,1,opt,name=router_key,json=routerKey,proto3" json:"router_key,omitempty"` - Rules []*v1.RoutingRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` - Fallback []*v1.RoutingTarget `protobuf:"bytes,3,rep,name=fallback,proto3" json:"fallback,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RouterKey string `protobuf:"bytes,1,opt,name=router_key,json=routerKey,proto3" json:"router_key,omitempty"` + Rules []*PrivateRoutingRule `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"` + Fallback []*PrivateRoutingTarget `protobuf:"bytes,5,rep,name=fallback,proto3" json:"fallback,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -72,14 +73,14 @@ func (x *PrivateRouter) GetRouterKey() string { return "" } -func (x *PrivateRouter) GetRules() []*v1.RoutingRule { +func (x *PrivateRouter) GetRules() []*PrivateRoutingRule { if x != nil { return x.Rules } return nil } -func (x *PrivateRouter) GetFallback() []*v1.RoutingTarget { +func (x *PrivateRouter) GetFallback() []*PrivateRoutingTarget { if x != nil { return x.Fallback } @@ -90,23 +91,24 @@ func (x *PrivateRouter) GetFallback() []*v1.RoutingTarget { // and can be specified as a part of the notification request. type GlobalRouter struct { state protoimpl.MessageState `protogen:"open.v1"` - // A unique identifier automatically generated by the service (do not provide this from the client side) + // A unique identifier (generated by the system if not provided) Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` - // A unique identifier provided by the user - UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` // The source of the notification (e.g., "alerts") - EntityType string `protobuf:"bytes,3,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // + // Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/router.proto. + DeprecatedEntityType string `protobuf:"bytes,3,opt,name=deprecated_entity_type,json=deprecatedEntityType,proto3" json:"deprecated_entity_type,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // The routing rules to be applied in order to determine the destinations of the notification, teh first rule that matches will be used - Rules []*v1.RoutingRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"` + Rules []*routing.RoutingRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"` // The fallback destinations to be used if no rule matches - Fallback []*v1.RoutingTarget `protobuf:"bytes,7,rep,name=fallback,proto3" json:"fallback,omitempty"` + Fallback []*routing.RoutingTarget `protobuf:"bytes,7,rep,name=fallback,proto3" json:"fallback,omitempty"` // System-generated timestamp for when the router was last updated CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` // System-generated timestamp for when the router was last updated UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` EntityLabels map[string]string `protobuf:"bytes,10,rep,name=entity_labels,json=entityLabels,proto3" json:"entity_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + EntityType common.EntityType `protobuf:"varint,11,opt,name=entity_type,json=entityType,proto3,enum=com.coralogixapis.notification_center.EntityType" json:"entity_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -148,16 +150,10 @@ func (x *GlobalRouter) GetId() string { return "" } -func (x *GlobalRouter) GetUserFacingId() string { - if x != nil && x.UserFacingId != nil { - return *x.UserFacingId - } - return "" -} - -func (x *GlobalRouter) GetEntityType() string { +// Deprecated: Marked as deprecated in com/coralogixapis/notification_center/routers/v1/router.proto. +func (x *GlobalRouter) GetDeprecatedEntityType() string { if x != nil { - return x.EntityType + return x.DeprecatedEntityType } return "" } @@ -176,14 +172,14 @@ func (x *GlobalRouter) GetDescription() string { return "" } -func (x *GlobalRouter) GetRules() []*v1.RoutingRule { +func (x *GlobalRouter) GetRules() []*routing.RoutingRule { if x != nil { return x.Rules } return nil } -func (x *GlobalRouter) GetFallback() []*v1.RoutingTarget { +func (x *GlobalRouter) GetFallback() []*routing.RoutingTarget { if x != nil { return x.Fallback } @@ -211,41 +207,47 @@ func (x *GlobalRouter) GetEntityLabels() map[string]string { return nil } +func (x *GlobalRouter) GetEntityType() common.EntityType { + if x != nil { + return x.EntityType + } + return common.EntityType(0) +} + var File_com_coralogixapis_notification_center_routers_v1_router_proto protoreflect.FileDescriptor const file_com_coralogixapis_notification_center_routers_v1_router_proto_rawDesc = "" + "\n" + - "=com/coralogixapis/notification_center/routers/v1/router.proto\x120com.coralogixapis.notification_center.routers.v1\x1a=com/coralogixapis/notification_center/common/v1/routing.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xda\x01\n" + + "=com/coralogixapis/notification_center/routers/v1/router.proto\x120com.coralogixapis.notification_center.routers.v1\x1a9com/coralogixapis/notification_center/common/common.proto\x1aEcom/coralogixapis/notification_center/common/v1/routing/routing.proto\x1aFcom/coralogixapis/notification_center/routers/v1/private_routing.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xa1\x02\n" + "\rPrivateRouter\x12\x1d\n" + "\n" + - "router_key\x18\x01 \x01(\tR\trouterKey\x12P\n" + - "\x05rules\x18\x02 \x03(\v2:.com.coralogixapis.notification_center.routing.RoutingRuleR\x05rules\x12X\n" + - "\bfallback\x18\x03 \x03(\v2<.com.coralogixapis.notification_center.routing.RoutingTargetR\bfallback\"\xa3\b\n" + + "router_key\x18\x01 \x01(\tR\trouterKey\x12Z\n" + + "\x05rules\x18\x04 \x03(\v2D.com.coralogixapis.notification_center.routers.v1.PrivateRoutingRuleR\x05rules\x12b\n" + + "\bfallback\x18\x05 \x03(\v2F.com.coralogixapis.notification_center.routers.v1.PrivateRoutingTargetR\bfallbackJ\x04\b\x02\x10\x03J\x04\b\x03\x10\x04R\x10deprecated_rulesR\x13deprecated_fallback\"\xbf\b\n" + "\fGlobalRouter\x12@\n" + - "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x12B\n" + - "\x0euser_facing_id\x18\x02 \x01(\tB\x17\x92A\x14J\x12\"user-provided-id\"H\x01R\fuserFacingId\x88\x01\x01\x12.\n" + - "\ventity_type\x18\x03 \x01(\tB\r\x92A\n" + - "J\b\"alerts\"R\n" + - "entityType\x12$\n" + + "\x02id\x18\x01 \x01(\tB+\x92A(J&\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"H\x00R\x02id\x88\x01\x01\x128\n" + + "\x16deprecated_entity_type\x18\x03 \x01(\tB\x02\x18\x01R\x14deprecatedEntityType\x12$\n" + "\x04name\x18\x04 \x01(\tB\x10\x92A\rJ\v\"My Router\"R\x04name\x12 \n" + "\vdescription\x18\x05 \x01(\tR\vdescription\x12P\n" + "\x05rules\x18\x06 \x03(\v2:.com.coralogixapis.notification_center.routing.RoutingRuleR\x05rules\x12X\n" + "\bfallback\x18\a \x03(\v2<.com.coralogixapis.notification_center.routing.RoutingTargetR\bfallback\x12@\n" + - "\vcreate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x02R\n" + + "\vcreate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x01R\n" + "createTime\x88\x01\x01\x12@\n" + - "\vupdate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x03R\n" + + "\vupdate_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x02R\n" + "updateTime\x88\x01\x01\x12u\n" + "\rentity_labels\x18\n" + - " \x03(\v2P.com.coralogixapis.notification_center.routers.v1.GlobalRouter.EntityLabelsEntryR\fentityLabels\x1a?\n" + + " \x03(\v2P.com.coralogixapis.notification_center.routers.v1.GlobalRouter.EntityLabelsEntryR\fentityLabels\x12a\n" + + "\ventity_type\x18\v \x01(\x0e21.com.coralogixapis.notification_center.EntityTypeB\r\x92A\n" + + "J\b\"ALERTS\"R\n" + + "entityType\x1a?\n" + "\x11EntityLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01:\xf2\x01\x92A\xee\x01\n" + "o*\rGlobal Router2IDefines a set of pre-configured routing rules for directing notifications\xd2\x01\ventity_type\xd2\x01\x04name*{\n" + "'Find out more about notification center\x12Phttps://coralogix.com/docs/user-guides/notification-center/introduction/welcome/B\x05\n" + - "\x03_idB\x11\n" + - "\x0f_user_facing_idB\x0e\n" + + "\x03_idB\x0e\n" + "\f_create_timeB\x0e\n" + - "\f_update_timeb\x06proto3" + "\f_update_timeJ\x04\b\x02\x10\x03B2Z0com/coralogixapis/notification_center/routers/v1b\x06proto3" var ( file_com_coralogixapis_notification_center_routers_v1_router_proto_rawDescOnce sync.Once @@ -264,23 +266,27 @@ var file_com_coralogixapis_notification_center_routers_v1_router_proto_goTypes = (*PrivateRouter)(nil), // 0: com.coralogixapis.notification_center.routers.v1.PrivateRouter (*GlobalRouter)(nil), // 1: com.coralogixapis.notification_center.routers.v1.GlobalRouter nil, // 2: com.coralogixapis.notification_center.routers.v1.GlobalRouter.EntityLabelsEntry - (*v1.RoutingRule)(nil), // 3: com.coralogixapis.notification_center.routing.RoutingRule - (*v1.RoutingTarget)(nil), // 4: com.coralogixapis.notification_center.routing.RoutingTarget - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*PrivateRoutingRule)(nil), // 3: com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule + (*PrivateRoutingTarget)(nil), // 4: com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget + (*routing.RoutingRule)(nil), // 5: com.coralogixapis.notification_center.routing.RoutingRule + (*routing.RoutingTarget)(nil), // 6: com.coralogixapis.notification_center.routing.RoutingTarget + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (common.EntityType)(0), // 8: com.coralogixapis.notification_center.EntityType } var file_com_coralogixapis_notification_center_routers_v1_router_proto_depIdxs = []int32{ - 3, // 0: com.coralogixapis.notification_center.routers.v1.PrivateRouter.rules:type_name -> com.coralogixapis.notification_center.routing.RoutingRule - 4, // 1: com.coralogixapis.notification_center.routers.v1.PrivateRouter.fallback:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget - 3, // 2: com.coralogixapis.notification_center.routers.v1.GlobalRouter.rules:type_name -> com.coralogixapis.notification_center.routing.RoutingRule - 4, // 3: com.coralogixapis.notification_center.routers.v1.GlobalRouter.fallback:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget - 5, // 4: com.coralogixapis.notification_center.routers.v1.GlobalRouter.create_time:type_name -> google.protobuf.Timestamp - 5, // 5: com.coralogixapis.notification_center.routers.v1.GlobalRouter.update_time:type_name -> google.protobuf.Timestamp + 3, // 0: com.coralogixapis.notification_center.routers.v1.PrivateRouter.rules:type_name -> com.coralogixapis.notification_center.routers.v1.PrivateRoutingRule + 4, // 1: com.coralogixapis.notification_center.routers.v1.PrivateRouter.fallback:type_name -> com.coralogixapis.notification_center.routers.v1.PrivateRoutingTarget + 5, // 2: com.coralogixapis.notification_center.routers.v1.GlobalRouter.rules:type_name -> com.coralogixapis.notification_center.routing.RoutingRule + 6, // 3: com.coralogixapis.notification_center.routers.v1.GlobalRouter.fallback:type_name -> com.coralogixapis.notification_center.routing.RoutingTarget + 7, // 4: com.coralogixapis.notification_center.routers.v1.GlobalRouter.create_time:type_name -> google.protobuf.Timestamp + 7, // 5: com.coralogixapis.notification_center.routers.v1.GlobalRouter.update_time:type_name -> google.protobuf.Timestamp 2, // 6: com.coralogixapis.notification_center.routers.v1.GlobalRouter.entity_labels:type_name -> com.coralogixapis.notification_center.routers.v1.GlobalRouter.EntityLabelsEntry - 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: com.coralogixapis.notification_center.routers.v1.GlobalRouter.entity_type:type_name -> com.coralogixapis.notification_center.EntityType + 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_com_coralogixapis_notification_center_routers_v1_router_proto_init() } @@ -288,6 +294,7 @@ func file_com_coralogixapis_notification_center_routers_v1_router_proto_init() { if File_com_coralogixapis_notification_center_routers_v1_router_proto != nil { return } + file_com_coralogixapis_notification_center_routers_v1_private_routing_proto_init() file_com_coralogixapis_notification_center_routers_v1_router_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/go/notifications-client.go b/go/notifications-client.go index c27851d7..bfb0d341 100644 --- a/go/notifications-client.go +++ b/go/notifications-client.go @@ -17,7 +17,7 @@ package cxsdk import ( "context" - "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" + common "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common" commonv1 "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/common/v1" connectores "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/connectors/v1" notifications "github.com/coralogix/coralogix-management-sdk/go/internal/coralogixapis/notification_center/notifications/v1" @@ -235,15 +235,6 @@ type GlobalRouterIdentifier = commonv1.GlobalRouterIdentifier // GlobalRouterIdentifierIDValue is a global router identifier id value. type GlobalRouterIdentifierIDValue = commonv1.GlobalRouterIdentifier_Id -// GlobalRouterIdentifierUserFacingIDValue is a global router identifier user facing id value. -type GlobalRouterIdentifierUserFacingIDValue = commonv1.GlobalRouterIdentifier_UserFacingId - -// RoutingRule represents a routing rule. -type RoutingRule = commonv1.RoutingRule - -// RoutingTarget represents a routing target. -type RoutingTarget = commonv1.RoutingTarget - // MessageConfig is a message configuration. type MessageConfig = common.MessageConfig diff --git a/proto/com/coralogixapis/notification_center/common/common.proto b/proto/com/coralogixapis/notification_center/common/common.proto index 3a42b4fe..95f227dd 100644 --- a/proto/com/coralogixapis/notification_center/common/common.proto +++ b/proto/com/coralogixapis/notification_center/common/common.proto @@ -2,16 +2,7 @@ syntax = "proto3"; package com.coralogixapis.notification_center; -enum OrderByDirection { - ORDER_BY_DIRECTION_UNSPECIFIED = 0; - ASC = 1; - DESC = 2; -} - -message OrderBy { - string field_name = 1; - OrderByDirection direction = 2; -} +option go_package = "com/coralogixapis/notification_center"; enum ConnectorType { CONNECTOR_TYPE_UNSPECIFIED = 0; @@ -21,3 +12,9 @@ enum ConnectorType { AWS = 4; IBM_EVENT_NOTIFICATIONS = 5; } + +enum EntityType { + ENTITY_TYPE_UNSPECIFIED = 0; + ALERTS = 1; + TEST_NOTIFICATIONS = 2; +} diff --git a/proto/com/coralogixapis/notification_center/common/config_overrides.proto b/proto/com/coralogixapis/notification_center/common/config_overrides.proto index b8ee25ba..9ab9336b 100644 --- a/proto/com/coralogixapis/notification_center/common/config_overrides.proto +++ b/proto/com/coralogixapis/notification_center/common/config_overrides.proto @@ -2,11 +2,16 @@ syntax = "proto3"; package com.coralogixapis.notification_center; +import "com/coralogixapis/notification_center/common/common.proto"; import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; +option go_package = "com/coralogixapis/notification_center"; + message ConfigOverrides { + reserved 4; + ConditionType condition_type = 1; - string output_schema_id = 2; + optional string payload_type = 2; MessageConfig message_config = 3; } @@ -22,10 +27,12 @@ message MessageConfig { } message MatchEntityTypeCondition { - string entity_type = 1; + string deprecated_entity_type = 1 [deprecated = true]; + EntityType entity_type = 2 [deprecated = true]; } message MatchEntityTypeAndSubTypeCondition { - string entity_type = 1; + string deprecated_entity_type = 1 [deprecated = true]; string entity_sub_type = 2; + EntityType entity_type = 3 [deprecated = true]; } diff --git a/proto/com/coralogixapis/notification_center/common/rpc_common.proto b/proto/com/coralogixapis/notification_center/common/rpc_common.proto deleted file mode 100644 index 8078643d..00000000 --- a/proto/com/coralogixapis/notification_center/common/rpc_common.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - -package com.coralogixapis.notification_center; -import "google/rpc/code.proto"; - -message ResponseStatus { - google.rpc.Code status_code = 1; - optional string message = 2; - map details = 3; -} diff --git a/proto/com/coralogixapis/notification_center/common/v1/config_fields.proto b/proto/com/coralogixapis/notification_center/common/v1/config_fields.proto index 7df4b5ef..c05f89b7 100644 --- a/proto/com/coralogixapis/notification_center/common/v1/config_fields.proto +++ b/proto/com/coralogixapis/notification_center/common/v1/config_fields.proto @@ -3,12 +3,19 @@ syntax = "proto3"; package com.coralogixapis.notification_center; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center"; + /** * This file contains public models used across the notification sources APIs. * any updates should be made with caution to ensure backward compatibility. */ message ConnectorConfigField { + string field_name = 1; + string value = 2; +} + +message TemplatedConnectorConfigField { string field_name = 1; string template = 2; } diff --git a/proto/com/coralogixapis/notification_center/common/v1/identifier.proto b/proto/com/coralogixapis/notification_center/common/v1/identifier.proto new file mode 100644 index 00000000..4b58a570 --- /dev/null +++ b/proto/com/coralogixapis/notification_center/common/v1/identifier.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package com.coralogixapis.notification_center; + +option go_package = "com/coralogixapis/notification_center"; + +/** +* This file contains public models used across the notification sources APIs. +* any updates should be made with caution to ensure backward compatibility. + */ + +message ConnectorIdentifier { + oneof value { + // The unique identifier automatically generated by the service + string id = 1; + // The unique identifier provided by the user + string user_defined_id = 2; + } +} + +message PresetIdentifier { + oneof value { + // The unique identifier automatically generated by the service + string id = 1; + // The unique identifier provided by the user + string user_defined_id = 2; + } +} + +message GlobalRouterIdentifier { + oneof value { + // The unique identifier automatically generated by the service + string id = 1; + // The unique identifier provided by the user + string user_defined_id = 2; + } +} diff --git a/proto/com/coralogixapis/notification_center/common/v1/routing.proto b/proto/com/coralogixapis/notification_center/common/v1/routing/routing.proto similarity index 75% rename from proto/com/coralogixapis/notification_center/common/v1/routing.proto rename to proto/com/coralogixapis/notification_center/common/v1/routing/routing.proto index b362c116..72572de5 100644 --- a/proto/com/coralogixapis/notification_center/common/v1/routing.proto +++ b/proto/com/coralogixapis/notification_center/common/v1/routing/routing.proto @@ -3,6 +3,9 @@ syntax = "proto3"; package com.coralogixapis.notification_center.routing; import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; + +option go_package = "com/coralogixapis/notification_center/routing"; /** * This file contains public models used across the notification sources APIs. @@ -33,6 +36,9 @@ message RoutingRule { } message RoutingTarget { + reserved 3; + reserved "config_overrides"; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "Routing Target" @@ -46,17 +52,21 @@ message RoutingTarget { }; //Connector ID to send the notification to - string connector_id = 1; + string deprecated_connector_id = 1 [deprecated = true]; // Preset to use for rendering notification content, default preset is used if not provided - optional string preset_id = 2; - optional SourceOverrides config_overrides = 3; + optional string deprecated_preset_id = 2 [deprecated = true]; map custom_details = 4; + ConnectorIdentifier connector_identifier = 5 [deprecated = true]; + optional PresetIdentifier preset_identifier = 6 [deprecated = true]; + string connector_id = 7; + optional string preset_id = 8; } message SourceOverrides { - string output_schema_id = 1; + string payload_type = 1; repeated MessageConfigField message_config_fields = 3; - repeated ConnectorConfigField connector_config_fields = 4; + repeated ConnectorConfigField deprecated_connector_config_fields = 4 [deprecated=true]; + repeated TemplatedConnectorConfigField connector_config_fields = 5; } message GlobalRouterIdentifier { diff --git a/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto b/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto index 2a26a645..67cd2edd 100644 --- a/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto +++ b/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto @@ -7,10 +7,11 @@ import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/connectors/v1"; + message Connector { - // Deprecated with the introduction of Global connectors. - reserved 10; - reserved "entity_type"; + reserved 2, 9, 10; + reserved "connector_configs", "entity_type"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { @@ -23,10 +24,8 @@ message Connector { description: "Find out more about notification center" } }; - // A unique identifier automatically generated by the service (do not provide this from the client side) + // A unique identifier (generated by the system if not provided) optional string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - // A unique identifier provided by the user - optional string user_facing_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"user-connector-id\"" }]; ConnectorType type = 3; optional uint32 team_id = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"12345\"" }]; string name = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"My Slack Connector\"", max_length: 200 }]; @@ -35,14 +34,18 @@ message Connector { optional google.protobuf.Timestamp create_time = 7; // System-generated timestamp for when the connector was last updated optional google.protobuf.Timestamp update_time = 8; - repeated ConnectorConfig connector_configs = 9; // Configuration override templates for specific entity types, values from connector_configs will be used if not overridden repeated EntityTypeConfigOverrides config_overrides = 11; + ConnectorConfig connector_config = 12; } message EntityTypeConfigOverrides { - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; - repeated ConnectorConfig connector_configs = 2; + reserved 2; + reserved "connector_configs"; + + string deprecated_entity_type = 1 [deprecated = true]; + EntityType entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; + repeated TemplatedConnectorConfigField fields = 4; } message ConnectorSummary { @@ -52,7 +55,7 @@ message ConnectorSummary { optional string id = 1; // for declarative API - optional string user_facing_id = 2; + optional string user_defined_id = 2; ConnectorType type = 3; optional uint32 team_id = 4; string name = 5; @@ -62,6 +65,9 @@ message ConnectorSummary { } message ConnectorConfig { + reserved 1; + reserved "output_schema_id"; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "Connector Config" @@ -73,7 +79,6 @@ message ConnectorConfig { description: "Find out more about notification center" } }; - string output_schema_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"schema-id\"" }]; repeated ConnectorConfigField fields = 2; } diff --git a/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto b/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto index 683bc369..c96afada 100644 --- a/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto +++ b/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto @@ -7,6 +7,9 @@ import "com/coralogixapis/notification_center/connectors/v1/connector.proto"; import "google/protobuf/descriptor.proto"; import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; + +option go_package = "com/coralogixapis/notification_center/connectors/v1"; // Public API that allows managing connectors. service ConnectorsService { @@ -138,7 +141,9 @@ message DeleteConnectorRequest { description: "Find out more about notification center" } }; - string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"connector-id\"" }]; + string deprecated_id = 1 [deprecated = true]; + ConnectorIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message DeleteConnectorResponse { @@ -156,7 +161,10 @@ message GetConnectorRequest { description: "Find out more about notification center" } }; - string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"connector-id\"" }]; + + string deprecated_id = 1 [deprecated = true]; + ConnectorIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message GetConnectorResponse { @@ -175,8 +183,7 @@ message GetConnectorResponse { } message ListConnectorsRequest { - // Deprecated with the introduction of Global connectors. - reserved 3; + reserved 2, 3; reserved "entity_type"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -191,7 +198,6 @@ message ListConnectorsRequest { } }; ConnectorType connector_type = 1; - repeated OrderBy order_bys = 2; } message ListConnectorsResponse { @@ -221,7 +227,9 @@ message BatchGetConnectorsRequest { description: "Find out more about notification center" } }; - repeated string ids = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "[\"connector-id-1\", \"connector-id-2\"]" }]; + repeated string deprecated_ids = 1 [deprecated = true]; + repeated ConnectorIdentifier deprecated_identifiers = 2 [deprecated = true]; + repeated string ids = 3; } message BatchGetConnectorsResponse { @@ -252,7 +260,9 @@ message BatchGetConnectorSummariesRequest { description: "Find out more about notification center" } }; - repeated string ids = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "[\"connector-id-1\", \"connector-id-2\"]" }]; + repeated string deprecated_ids = 1 [deprecated = true]; + repeated ConnectorIdentifier deprecated_identifiers = 2 [deprecated = true]; + repeated string ids = 3; } message BatchGetConnectorSummariesResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -285,8 +295,7 @@ message GetConnectorTypeSummariesRequest { } message ListConnectorSummariesRequest { - // Deprecated with the introduction of Global connectors. - reserved 3; + reserved 2, 3; reserved "entity_type"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -301,7 +310,6 @@ message ListConnectorSummariesRequest { } }; ConnectorType connector_type = 1; - repeated OrderBy order_bys = 2; } message ListConnectorSummariesResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -315,7 +323,7 @@ message ListConnectorSummariesResponse { description: "Find out more about notification center" } }; - repeated ConnectorSummary connector_summaries = 1; + repeated ConnectorSummary connectors = 1; } message GetConnectorTypeSummariesResponse { diff --git a/proto/com/coralogixapis/notification_center/entities/v1/entities_service.proto b/proto/com/coralogixapis/notification_center/entities/v1/entities_service.proto index 9c92ab06..c4e5a189 100644 --- a/proto/com/coralogixapis/notification_center/entities/v1/entities_service.proto +++ b/proto/com/coralogixapis/notification_center/entities/v1/entities_service.proto @@ -5,12 +5,21 @@ import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; package com.coralogixapis.notification_center.entities.v1; +import "com/coralogixapis/notification_center/common/common.proto"; + +option go_package = "com/coralogixapis/notification_center/entities/v1"; // Public API to query information on registered entities in the Notification Center service EntitiesService { rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) { option (google.api.http) = { - get: "/v1/notification-center/entities:listEntityTypes" + get: "/v1/notification-center/entity-types" + }; + } + + rpc ListEntitySubTypes(ListEntitySubTypesRequest) returns (ListEntitySubTypesResponse) { + option (google.api.http) = { + get: "/v1/notification-center/entity-types/{entity_type}/entity-subtypes" }; } } @@ -30,5 +39,26 @@ message ListEntityTypesRequest { } message ListEntityTypesResponse { - repeated string entity_types = 1; + repeated string deprecated_entity_types = 1 [deprecated = true]; + repeated EntityType entity_types = 2; +} + +message ListEntitySubTypesRequest { + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { + json_schema: { + title: "List Entity Sub Types" + description: "Request to list entity subtypes by entity type supported by Notification Center" + required: [] + } + external_docs: { + url: "https://coralogix.com/docs/user-guides/notification-center/introduction/welcome/" + description: "Find out more about notification center" + } + }; + + EntityType entity_type = 1; +} + +message ListEntitySubTypesResponse { + repeated string entity_sub_types = 2; } diff --git a/proto/com/coralogixapis/notification_center/notifications/v1/notification.proto b/proto/com/coralogixapis/notification_center/notifications/v1/notification.proto index 288c2fd4..1c7de97f 100644 --- a/proto/com/coralogixapis/notification_center/notifications/v1/notification.proto +++ b/proto/com/coralogixapis/notification_center/notifications/v1/notification.proto @@ -2,12 +2,17 @@ syntax = "proto3"; package com.coralogixapis.notification_center.notifications.v1; -import "com/coralogixapis/notification_center/common/v1/routing.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; +import "com/coralogixapis/notification_center/common/v1/routing/routing.proto"; + +option go_package = "com/coralogixapis/notification_center/notifications/v1"; message NotificationTarget { message GlobalRouterConfig { - routing.GlobalRouterIdentifier identifier = 1; + routing.GlobalRouterIdentifier deprecated_identifier = 1 [deprecated = true]; + notification_center.GlobalRouterIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message PrivateRouterConfig { diff --git a/proto/com/coralogixapis/notification_center/notifications/v1/testing.proto b/proto/com/coralogixapis/notification_center/notifications/v1/testing.proto index ae20190b..8fb7b625 100644 --- a/proto/com/coralogixapis/notification_center/notifications/v1/testing.proto +++ b/proto/com/coralogixapis/notification_center/notifications/v1/testing.proto @@ -3,9 +3,10 @@ syntax = "proto3"; package com.coralogixapis.notification_center.notifications.v1; import "com/coralogixapis/notification_center/notifications/v1/notification.proto"; -import "google/protobuf/struct.proto"; import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; +option go_package = "com/coralogixapis/notification_center/notifications/v1"; + message TestResult { message Success {} message Failure { @@ -23,11 +24,9 @@ message TestNotification { string id = 1; uint32 team_id = 2; string connector_id = 3; - string output_schema_id = 4; - optional google.protobuf.Struct deprecated_entity_data = 5 [deprecated = true]; + string payload_type = 4; repeated ConnectorConfigField connector_config = 6; repeated MessageConfigField message_config = 7; repeated NotificationOperation available_operations = 8; repeated NotificationAttachment attachments = 9; - string entity_data = 10; -} \ No newline at end of file +} diff --git a/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto b/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto index e4ed5e30..0fc7b7e2 100644 --- a/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto +++ b/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package com.coralogixapis.notification_center.notifications.v1; import "com/coralogixapis/notification_center/common/common.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; import "com/coralogixapis/notification_center/common/config_overrides.proto"; import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; import "com/coralogixapis/notification_center/notifications/v1/testing.proto"; @@ -11,6 +12,8 @@ import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/notifications/v1"; + // Public API for testing Notification Center configurations including connectors, presets, and templates. service TestingService { rpc TestConnectorConfig(TestConnectorConfigRequest) returns (TestConnectorConfigResponse) { @@ -76,9 +79,10 @@ message TestConnectorConfigRequest { } }; ConnectorType type = 1; - string output_schema_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; + string payload_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; repeated ConnectorConfigField fields = 3; - optional string entity_type = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + optional string deprecated_entity_type = 4 [deprecated = true]; + optional EntityType entity_type = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message TestConnectorConfigResponse { @@ -86,51 +90,74 @@ message TestConnectorConfigResponse { } message TestExistingConnectorRequest { - string connector_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string output_schema_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; + string deprecated_connector_id = 1 [deprecated = true]; + string payload_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; + ConnectorIdentifier connector_identifier = 3 [deprecated = true]; + string connector_id = 4; } + message TestExistingConnectorResponse { TestResult result = 1; } message TestPresetConfigRequest { - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 1 [deprecated = true]; optional string entity_sub_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"metric\"" }]; - string connector_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string preset_id = 6 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; + string deprecated_connector_id = 3 [deprecated = true]; + string deprecated_preset_id = 6 [deprecated = true]; repeated ConfigOverrides config_overrides = 7; + ConnectorIdentifier connector_identifier = 8 [deprecated = true]; + PresetIdentifier preset_identifier = 9 [deprecated = true]; + EntityType entity_type = 10 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; + string parent_preset_id = 11; + string connector_id = 12; } message TestPresetConfigResponse { TestResult result = 1; } message TestExistingPresetRequest { - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 1 [deprecated = true]; optional string entity_sub_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"logsImmediateResolved\"" }]; - string preset_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string connector_id = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; + string deprecated_preset_id = 3 [deprecated = true]; + string deprecated_connector_id = 4 [deprecated = true]; + ConnectorIdentifier connector_identifier = 5 [deprecated = true]; + PresetIdentifier preset_identifier = 6 [deprecated = true]; + EntityType entity_type = 7 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; + string preset_id = 8; + string connector_id = 9; } + message TestExistingPresetResponse { TestResult result = 1; } message TestDestinationRequest { - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + reserved 6; + reserved "deprecated_connector_config_fields"; + + string deprecated_entity_type = 1 [deprecated = true]; optional string entity_sub_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"logsImmediateResolved\"" }]; - string connector_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string preset_id = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string output_schema_id = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; - repeated ConnectorConfigField connector_config_fields = 6; + string deprecated_connector_id = 3 [deprecated = true]; + string deprecated_preset_id = 4 [deprecated = true]; + string payload_type = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"default\"" }]; repeated MessageConfigField message_config_fields = 7; + ConnectorIdentifier connector_identifier = 8 [deprecated = true]; + PresetIdentifier preset_identifier = 9 [deprecated = true]; + EntityType entity_type = 10 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; + repeated TemplatedConnectorConfigField connector_config_fields = 11; + string preset_id = 12; + string connector_id = 13; } message TestDestinationResponse { TestResult result = 1; } message TestTemplateRenderRequest { - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 1 [deprecated = true]; optional string entity_sub_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"logsImmediateResolved\"" }]; string template = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"{{ alertDef.name }}\"" }]; + EntityType entity_type = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message TestTemplateRenderResult { @@ -171,8 +198,9 @@ message TestRoutingConditionValidRequest { description: "Find out more about notification center" } }; - string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 1 [deprecated = true]; string template = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alertDef.priority == 'P1'\"" }]; + EntityType entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message TestRoutingConditionValidResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { diff --git a/proto/com/coralogixapis/notification_center/presets/v1/preset.proto b/proto/com/coralogixapis/notification_center/presets/v1/preset.proto index b67c47fd..76c79b26 100644 --- a/proto/com/coralogixapis/notification_center/presets/v1/preset.proto +++ b/proto/com/coralogixapis/notification_center/presets/v1/preset.proto @@ -7,7 +7,11 @@ import "com/coralogixapis/notification_center/common/config_overrides.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/presets/v1"; + message Preset { + reserved 2; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "Preset" @@ -19,16 +23,13 @@ message Preset { description: "Find out more about notification center" } }; - // A unique identifier automatically generated by the service (do not provide this from the client side) + // A unique identifier (generated by system if not provided) optional string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - // A unique identifier provided by the user - optional string user_facing_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"user-preset-id\"" }]; - string entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 3 [deprecated = true]; ConnectorType connector_type = 4; // A list of of configuration override templates, each associated with a specific output schema and condition repeated ConfigOverrides config_overrides = 5; - // The parent preset from which the initial configuration is inherited - optional Preset parent = 6; + optional Preset parent = 6 [deprecated = true]; string name = 7 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"My Preset\"" }]; string description = 8 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"Custom preset for alerts\"" }]; // System-generated timestamp for when the preset was created @@ -37,9 +38,13 @@ message Preset { optional google.protobuf.Timestamp update_time = 10; // Indicates whether the preset is system-provided or custom-created by the user optional PresetType preset_type = 11; + EntityType entity_type = 12 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; + optional string parent_id = 13 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"preset_system_slack_alerts_detailed\"" }]; } message PresetSummary { + reserved 2; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "Preset Summary" @@ -52,8 +57,7 @@ message PresetSummary { } }; string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - string user_facing_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"user-preset-id\"" }]; - string entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 3 [deprecated = true]; ConnectorType connector_type = 4; optional string parent_id = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"c246e826-10c2-405e-8d3f-afcc24ad4d15\"" }]; string name = 6 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"My Preset\"", max_length: 200 }]; @@ -61,6 +65,7 @@ message PresetSummary { google.protobuf.Timestamp create_time = 8; google.protobuf.Timestamp update_time = 9; PresetType preset_type = 10; + EntityType entity_type = 11 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } enum PresetType { @@ -71,9 +76,7 @@ enum PresetType { message PresetIdentifier { oneof value { - // The unique identifier automatically generated by the service string id = 1; - // The unique identifier provided by the user string user_facing_id = 2; } } diff --git a/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto b/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto index 96bed195..fb1df8c6 100644 --- a/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto +++ b/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto @@ -3,10 +3,13 @@ syntax = "proto3"; package com.coralogixapis.notification_center.presets.v1; import "com/coralogixapis/notification_center/common/common.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; import "com/coralogixapis/notification_center/presets/v1/preset.proto"; import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/presets/v1"; + // Public API that allows retrieving available presets and managing custom presets. service PresetsService { @@ -26,26 +29,26 @@ service PresetsService { rpc DeleteCustomPreset(DeleteCustomPresetRequest) returns (DeleteCustomPresetResponse) { option (google.api.http) = { - delete: "/v1/notification-center/presets/custom/{identifier.user_facing_id}" + delete: "/v1/notification-center/presets/custom/{id}" }; } rpc SetCustomPresetAsDefault(SetCustomPresetAsDefaultRequest) returns (SetCustomPresetAsDefaultResponse) { option (google.api.http) = { - post: "/v1/notification-center/presets/custom/{identifier.user_facing_id}:defaultSet" + post: "/v1/notification-center/presets/custom/{id}:defaultSet" }; option deprecated = true; } rpc SetPresetAsDefault(SetPresetAsDefaultRequest) returns (SetPresetAsDefaultResponse) { option (google.api.http) = { - post: "/v1/notification-center/presets/{identifier.user_facing_id}:defaultSet" + post: "/v1/notification-center/presets/{id}:defaultSet" }; } rpc GetPreset(GetPresetRequest) returns (GetPresetResponse) { option (google.api.http) = { - get: "/v1/notification-center/presets/{identifier.user_facing_id}" + get: "/v1/notification-center/presets/{id}" }; } @@ -148,14 +151,11 @@ message DeleteCustomPresetRequest { }; // removed deprecated_id - reserved 1; - - oneof deprecated_identifier { - string id = 101; - string user_facing_id = 102; - } + reserved 1, 101, 102; - PresetIdentifier identifier = 2; + presets.v1.PresetIdentifier deprecated_identifier_2 = 2 [deprecated = true]; + notification_center.PresetIdentifier identifier = 3 [deprecated = true]; + string id = 4; } message DeleteCustomPresetResponse { @@ -163,14 +163,11 @@ message DeleteCustomPresetResponse { message SetCustomPresetAsDefaultRequest { // removed deprecated_id - reserved 1; - - oneof deprecated_identifier { - string id = 101; - string user_facing_id = 102; - } + reserved 1, 101, 102; - PresetIdentifier identifier = 2; + presets.v1.PresetIdentifier deprecated_identifier_2 = 2 [deprecated = true]; + notification_center.PresetIdentifier identifier = 3 [deprecated = true]; + string id = 4; } message SetCustomPresetAsDefaultResponse { @@ -189,7 +186,9 @@ message SetPresetAsDefaultRequest { } }; - PresetIdentifier identifier = 1; + presets.v1.PresetIdentifier deprecated_identifier = 1 [deprecated = true]; + notification_center.PresetIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message SetPresetAsDefaultResponse { @@ -197,14 +196,11 @@ message SetPresetAsDefaultResponse { message GetPresetRequest { // removed deprecated_id - reserved 1; + reserved 1, 101, 102; - oneof deprecated_identifier { - string id = 101; - string user_facing_id = 102; - } - - PresetIdentifier identifier = 2; + presets.v1.PresetIdentifier deprecated_identifier_2 = 2 [deprecated = true]; + notification_center.PresetIdentifier identifier = 3 [deprecated = true]; + string id = 4; } message GetPresetResponse { @@ -212,9 +208,11 @@ message GetPresetResponse { } message ListPresetSummariesRequest { - ConnectorType connector_type = 1; - string entity_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; - repeated OrderBy order_bys = 3; + reserved 3; + + optional ConnectorType connector_type = 1; + string deprecated_entity_type = 2 [deprecated = true]; + EntityType entity_type = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message ListPresetSummariesResponse { @@ -233,7 +231,10 @@ message BatchGetPresetsRequest { description: "Find out more about notification center" } }; - repeated string ids = 1; + repeated string deprecated_ids = 1 [deprecated = true]; + repeated notification_center.PresetIdentifier deprecated_identifiers = 2 [deprecated = true]; + repeated string ids = 3; + } message BatchGetPresetsResponse { @@ -254,7 +255,8 @@ message BatchGetPresetsResponse { message GetDefaultPresetSummaryRequest { ConnectorType connector_type = 1; - string entity_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 2 [deprecated = true]; + EntityType entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message GetDefaultPresetSummaryResponse { @@ -274,7 +276,8 @@ message GetSystemDefaultPresetSummaryRequest { } }; ConnectorType connector_type = 1; - string entity_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 2 [deprecated = true]; + EntityType entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message GetSystemDefaultPresetSummaryResponse { diff --git a/proto/com/coralogixapis/notification_center/routers/v1/global_routers_service.proto b/proto/com/coralogixapis/notification_center/routers/v1/global_routers_service.proto index 8eaa8b26..46464fd8 100644 --- a/proto/com/coralogixapis/notification_center/routers/v1/global_routers_service.proto +++ b/proto/com/coralogixapis/notification_center/routers/v1/global_routers_service.proto @@ -1,12 +1,17 @@ syntax = "proto3"; package com.coralogixapis.notification_center.routers.v1; -import "com/coralogixapis/notification_center/common/v1/routing.proto"; + +import "com/coralogixapis/notification_center/common/common.proto"; +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; +import "com/coralogixapis/notification_center/common/v1/routing/routing.proto"; import "com/coralogixapis/notification_center/routers/v1/router.proto"; import "google/protobuf/descriptor.proto"; import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/routers/v1"; + // Public API that allows managing global routers service GlobalRoutersService { rpc CreateGlobalRouter(CreateGlobalRouterRequest) returns (CreateGlobalRouterResponse) { @@ -16,24 +21,24 @@ service GlobalRoutersService { }; } - rpc ReplaceGlobalRouter(ReplaceGlobalRouterRequest) returns (ReplaceGlobalRouterResponse) {} - - rpc CreateOrReplaceGlobalRouter(CreateOrReplaceGlobalRouterRequest) returns (CreateOrReplaceGlobalRouterResponse) { + rpc ReplaceGlobalRouter(ReplaceGlobalRouterRequest) returns (ReplaceGlobalRouterResponse) { option (google.api.http) = { put: "/v1/notification-center/routers" body: "router" }; } + rpc CreateOrReplaceGlobalRouter(CreateOrReplaceGlobalRouterRequest) returns (CreateOrReplaceGlobalRouterResponse) {} + rpc DeleteGlobalRouter(DeleteGlobalRouterRequest) returns (DeleteGlobalRouterResponse) { option (google.api.http) = { - delete: "/v1/notification-center/routers/{identifier.user_facing_id}" + delete: "/v1/notification-center/routers/{identifier.user_defined_id}" }; } rpc GetGlobalRouter(GetGlobalRouterRequest) returns (GetGlobalRouterResponse) { option (google.api.http) = { - get: "/v1/notification-center/routers/{identifier.user_facing_id}" + get: "/v1/notification-center/routers/{identifier.user_defined_id}" }; } @@ -43,7 +48,11 @@ service GlobalRoutersService { }; } - rpc BatchGetGlobalRouters(BatchGetGlobalRoutersRequest) returns (BatchGetGlobalRoutersResponse) {} + rpc BatchGetGlobalRouters(BatchGetGlobalRoutersRequest) returns (BatchGetGlobalRoutersResponse) { + option (google.api.http) = { + get: "/v1/notification-center/routers:batchGetSummaries" + }; + } } message CreateGlobalRouterRequest { @@ -145,7 +154,9 @@ message DeleteGlobalRouterRequest { description: "Find out more about notification center" } }; - routing.GlobalRouterIdentifier identifier = 1; + routing.GlobalRouterIdentifier deprecated_identifier = 1 [deprecated = true]; + notification_center.GlobalRouterIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message DeleteGlobalRouterResponse { } @@ -162,7 +173,9 @@ message GetGlobalRouterRequest { description: "Find out more about notification center" } }; - routing.GlobalRouterIdentifier identifier = 1; + routing.GlobalRouterIdentifier deprecated_identifier = 1 [deprecated = true]; + notification_center.GlobalRouterIdentifier identifier = 2 [deprecated = true]; + string id = 3; } message GetGlobalRouterResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -191,7 +204,8 @@ message ListGlobalRoutersRequest { description: "Find out more about notification center" } }; - optional string entity_type = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + optional string deprecated_entity_type = 1 [deprecated = true]; + optional EntityType entity_type = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } message ListGlobalRoutersResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -220,7 +234,9 @@ message BatchGetGlobalRoutersRequest { description: "Find out more about notification center" } }; - repeated routing.GlobalRouterIdentifier ids = 1; + repeated routing.GlobalRouterIdentifier deprecated_ids = 1 [deprecated = true]; + repeated notification_center.GlobalRouterIdentifier deprecated_identifiers = 2 [deprecated = true]; + repeated string ids = 3; } message BatchGetGlobalRoutersResponse { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { @@ -235,5 +251,5 @@ message BatchGetGlobalRoutersResponse { } }; map routers = 1; - repeated string not_found_identifiers = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "[\"global-router-id-3\"]" }]; + repeated string not_found_ids = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "[\"global-router-id-3\"]" }]; } diff --git a/proto/com/coralogixapis/notification_center/routers/v1/private_routing.proto b/proto/com/coralogixapis/notification_center/routers/v1/private_routing.proto new file mode 100644 index 00000000..28e361f1 --- /dev/null +++ b/proto/com/coralogixapis/notification_center/routers/v1/private_routing.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package com.coralogixapis.notification_center.routers.v1; + +import "com/coralogixapis/notification_center/common/v1/identifier.proto"; +import "com/coralogixapis/notification_center/common/v1/routing/routing.proto"; + +option go_package = "com/coralogixapis/notification_center/routers/v1"; + +/** +* These are internal, private models intended for use by other Coralogix teams. +*/ + +message PrivateRoutingRule { + //Condition template that is rendered to true or false and used to determine if the rule should be applied + string condition = 1; + //List of targets to send the notification to + repeated PrivateRoutingTarget targets = 2; + map custom_details = 3; + optional string name = 4; +} + +message PrivateRoutingTarget { + ConnectorIdentifier connector_identifier = 1; + optional PresetIdentifier preset_identifier = 2; + optional routing.SourceOverrides config_overrides = 3; + map custom_details = 4; +} diff --git a/proto/com/coralogixapis/notification_center/routers/v1/router.proto b/proto/com/coralogixapis/notification_center/routers/v1/router.proto index 6284d1c1..84da27a1 100644 --- a/proto/com/coralogixapis/notification_center/routers/v1/router.proto +++ b/proto/com/coralogixapis/notification_center/routers/v1/router.proto @@ -1,21 +1,32 @@ syntax = "proto3"; package com.coralogixapis.notification_center.routers.v1; -import "com/coralogixapis/notification_center/common/v1/routing.proto"; +import "com/coralogixapis/notification_center/common/common.proto"; +import "com/coralogixapis/notification_center/common/v1/routing/routing.proto"; +import "com/coralogixapis/notification_center/routers/v1/private_routing.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "com/coralogixapis/notification_center/routers/v1"; + // The private router allows notification destinations and routing rules // to be specified as part of the notification request. message PrivateRouter { + reserved 2; + reserved "deprecated_rules"; + reserved 3; + reserved "deprecated_fallback"; + string router_key = 1; - repeated routing.RoutingRule rules = 2; - repeated routing.RoutingTarget fallback = 3; + repeated PrivateRoutingRule rules = 4; + repeated PrivateRoutingTarget fallback = 5; } // The global router contains a pre-configured list of routing rules // and can be specified as a part of the notification request. message GlobalRouter { + reserved 2; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "Global Router" @@ -27,12 +38,10 @@ message GlobalRouter { description: "Find out more about notification center" } }; - // A unique identifier automatically generated by the service (do not provide this from the client side) + // A unique identifier (generated by the system if not provided) optional string id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9\"" }]; - // A unique identifier provided by the user - optional string user_facing_id = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"user-provided-id\"" }]; // The source of the notification (e.g., "alerts") - string entity_type = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"alerts\"" }]; + string deprecated_entity_type = 3 [deprecated = true]; string name = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"My Router\"" }]; string description = 5; // The routing rules to be applied in order to determine the destinations of the notification, teh first rule that matches will be used @@ -44,4 +53,5 @@ message GlobalRouter { // System-generated timestamp for when the router was last updated optional google.protobuf.Timestamp update_time = 9; map entity_labels = 10; + EntityType entity_type = 11 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { example: "\"ALERTS\"" }]; } diff --git a/protofetch.lock b/protofetch.lock index 56e852c3..c2815303 100644 --- a/protofetch.lock +++ b/protofetch.lock @@ -93,8 +93,8 @@ commit_hash = "a83f3c7b35628d5fc6b76d70ca2b11af8e9d3f68" [[dependencies]] name = "cx-api-notification-center" url = "github.com/coralogix/cx-api-notification-center" -revision = "v0.5.1" -commit_hash = "c58faff8e7c6d8ac0964c2b2d216d58d2dd2fe5c" +branch = "api-contract" +commit_hash = "d8fef247041f9695deee5a531330b149849bfcc9" [[dependencies]] name = "cx-api-organisations" diff --git a/protofetch.toml b/protofetch.toml index cfd7bd9d..01c763aa 100644 --- a/protofetch.toml +++ b/protofetch.toml @@ -368,7 +368,7 @@ allow_policies = ["src/com/coralogixapis/metrics_rule_manager/v1/groups.proto"] [cx-api-notification-center] url = 'github.com/coralogix/cx-api-notification-center' -revision = "v0.5.1" +branch = "api-contract" allow_policies = [ "src/com/coralogixapis/notification_center/common/*", "src/com/coralogixapis/notification_center/connectors/v1/connector.proto", @@ -381,6 +381,7 @@ allow_policies = [ "src/com/coralogixapis/notification_center/presets/v1/presets_service.proto", "src/com/coralogixapis/notification_center/routers/v1/global_routers_service.proto", "src/com/coralogixapis/notification_center/routers/v1/router.proto", + "src/com/coralogixapis/notification_center/routers/v1/private_routing.proto", ] [google-api] diff --git a/rust/cx-api/Cargo.toml b/rust/cx-api/Cargo.toml index 07729254..386c2573 100644 --- a/rust/cx-api/Cargo.toml +++ b/rust/cx-api/Cargo.toml @@ -44,6 +44,7 @@ default = [ "target", "team", "views", + "notifications", ] alerts = [] rules = [] diff --git a/rust/cx-api/build.rs b/rust/cx-api/build.rs index 01a1f48f..24f2638b 100644 --- a/rust/cx-api/build.rs +++ b/rust/cx-api/build.rs @@ -285,10 +285,6 @@ fn saml_configuration_service(root: &str) -> Vec { vec![format!("{}/com/coralogixapis/aaa/sso/v2/saml.proto", root)] } -#[deprecated( - since = "1.3.0", - note = "This API is still in Alpha and will change. Use with care." -)] fn notifications_service(root: &str) -> Vec { vec![ format!( diff --git a/rust/cx-sdk/src/client.rs b/rust/cx-sdk/src/client.rs index c1bf6a92..e290ad89 100644 --- a/rust/cx-sdk/src/client.rs +++ b/rust/cx-sdk/src/client.rs @@ -98,3 +98,6 @@ pub mod views; /// This module contains the client for the Views Folders API. pub mod views_folders; + +/// This module contains the client for the Notification Center API. +pub mod notifications; diff --git a/rust/cx-sdk/src/client/notifications.rs b/rust/cx-sdk/src/client/notifications.rs index f4b97f2f..e9f5b139 100644 --- a/rust/cx-sdk/src/client/notifications.rs +++ b/rust/cx-sdk/src/client/notifications.rs @@ -15,6 +15,7 @@ use std::str::FromStr; use cx_api::proto::com::coralogixapis::notification_center::{ + EntityType, connectors::v1::{ BatchGetConnectorsRequest, BatchGetConnectorsResponse, @@ -58,12 +59,10 @@ use cx_api::proto::com::coralogixapis::notification_center::{ GetSystemDefaultPresetSummaryResponse, ListPresetSummariesRequest, ListPresetSummariesResponse, - PresetIdentifier, ReplaceCustomPresetRequest, ReplaceCustomPresetResponse, SetPresetAsDefaultRequest, SetPresetAsDefaultResponse, - preset_identifier, presets_service_client::PresetsServiceClient, }, routers::v1::{ @@ -93,7 +92,6 @@ pub use cx_api::proto::com::coralogixapis::notification_center::{ MatchEntityTypeCondition, MessageConfig, MessageConfigField, - OrderBy, condition_type, connectors::v1::{ Connector, @@ -136,7 +134,7 @@ const NOTIFICATIONS_FEATURE_GROUP_ID: &str = "notifications"; /// This struct groups the parameters required for the `test_preset_config` function. pub struct TestPresetConfigParams { /// The entity type to test with. - pub entity_type: String, + pub entity_type: EntityType, /// The entity sub-type to test with (optional). pub entity_sub_type: Option, /// The ID of the connector to test with. @@ -184,7 +182,11 @@ impl NotificationsClient { /// * `connector_id` - The ID of the connector to get. pub async fn get_connector(&self, connector_id: String) -> Result { let request = make_request_with_metadata( - GetConnectorRequest { id: connector_id }, + GetConnectorRequest { + id: connector_id.clone(), + deprecated_id: connector_id, + identifier: None, + }, &self.metadata_map, ); { @@ -212,12 +214,10 @@ impl NotificationsClient { pub async fn list_connectors( &self, connector_type: ConnectorType, - order_bys: Vec, ) -> Result { let request = make_request_with_metadata( ListConnectorsRequest { connector_type: connector_type as i32, - order_bys, }, &self.metadata_map, ); @@ -300,7 +300,11 @@ impl NotificationsClient { /// * `connector_id` - The ID of the connector to delete. pub async fn delete_connector(&self, connector_id: String) -> Result { let request = make_request_with_metadata( - DeleteConnectorRequest { id: connector_id }, + DeleteConnectorRequest { + id: connector_id.clone(), + deprecated_id: connector_id, + identifier: None, + }, &self.metadata_map, ); { @@ -328,7 +332,11 @@ impl NotificationsClient { connector_ids: Vec, ) -> Result { let request = make_request_with_metadata( - BatchGetConnectorsRequest { ids: connector_ids }, + BatchGetConnectorsRequest { + ids: connector_ids.clone(), + deprecated_ids: connector_ids, + deprecated_identifiers: vec![], + }, &self.metadata_map, ); { @@ -435,12 +443,9 @@ impl NotificationsClient { ) -> Result { let request = make_request_with_metadata( DeleteCustomPresetRequest { - identifier: Some(PresetIdentifier { - value: Some(preset_identifier::Value::UserFacingId( - preset_user_facing_id, - )), - }), - deprecated_identifier: None, + identifier: None, + deprecated_identifier_2: None, + id: preset_user_facing_id, }, &self.metadata_map, ); @@ -470,11 +475,9 @@ impl NotificationsClient { ) -> Result { let request = make_request_with_metadata( SetPresetAsDefaultRequest { - identifier: Some(PresetIdentifier { - value: Some(preset_identifier::Value::UserFacingId( - preset_user_facing_id, - )), - }), + identifier: None, + deprecated_identifier: None, + id: preset_user_facing_id, }, &self.metadata_map, ); @@ -500,12 +503,9 @@ impl NotificationsClient { pub async fn get_preset(&self, preset_user_facing_id: String) -> Result { let request = make_request_with_metadata( GetPresetRequest { - identifier: Some(PresetIdentifier { - value: Some(preset_identifier::Value::UserFacingId( - preset_user_facing_id, - )), - }), - deprecated_identifier: None, + identifier: None, + deprecated_identifier_2: None, + id: preset_user_facing_id, }, &self.metadata_map, ); @@ -534,14 +534,13 @@ impl NotificationsClient { pub async fn list_preset_summaries( &self, connector_type: ConnectorType, - entity_type: String, - order_bys: Vec, + entity_type: EntityType, ) -> Result { let request = make_request_with_metadata( ListPresetSummariesRequest { - connector_type: connector_type as i32, - entity_type, - order_bys, + connector_type: Some(connector_type.into()), + deprecated_entity_type: String::from("alerts"), + entity_type: entity_type.into(), }, &self.metadata_map, ); @@ -565,12 +564,17 @@ impl NotificationsClient { /// Batch get presets by ID. /// # Arguments /// * `preset_ids` - The IDs of the presets to get. + #[allow(deprecated)] pub async fn batch_get_presets( &self, preset_ids: Vec, ) -> Result { let request = make_request_with_metadata( - BatchGetPresetsRequest { ids: preset_ids }, + BatchGetPresetsRequest { + ids: preset_ids.clone(), + deprecated_ids: preset_ids, + deprecated_identifiers: vec![], + }, &self.metadata_map, ); { @@ -597,12 +601,13 @@ impl NotificationsClient { pub async fn get_default_preset_summary( &self, connector_type: ConnectorType, - entity_type: String, + entity_type: EntityType, ) -> Result { let request = make_request_with_metadata( GetDefaultPresetSummaryRequest { connector_type: connector_type as i32, - entity_type, + deprecated_entity_type: String::from("alerts"), + entity_type: entity_type.into(), }, &self.metadata_map, ); @@ -630,12 +635,13 @@ impl NotificationsClient { pub async fn get_system_default_preset_summary( &self, connector_type: ConnectorType, - entity_type: String, + entity_type: EntityType, ) -> Result { let request = make_request_with_metadata( GetSystemDefaultPresetSummaryRequest { connector_type: connector_type as i32, - entity_type, + entity_type: entity_type.into(), + deprecated_entity_type: String::from("alerts"), }, &self.metadata_map, ); @@ -737,13 +743,12 @@ impl NotificationsClient { /// Delete a global router by identifier. /// # Arguments /// * `global_router_identifier` - The identifier of the global router to delete. - pub async fn delete_global_router( - &self, - global_router_identifier: GlobalRouterIdentifier, - ) -> Result { + pub async fn delete_global_router(&self, id: String) -> Result { let request = make_request_with_metadata( DeleteGlobalRouterRequest { - identifier: Some(global_router_identifier), + identifier: None, + deprecated_identifier: None, + id, }, &self.metadata_map, ); @@ -763,13 +768,12 @@ impl NotificationsClient { /// Get a global router by identifier. /// # Arguments /// * `global_router_identifier` - The identifier of the global router to get. - pub async fn get_global_router( - &self, - global_router_identifier: GlobalRouterIdentifier, - ) -> Result { + pub async fn get_global_router(&self, id: String) -> Result { let request = make_request_with_metadata( GetGlobalRouterRequest { - identifier: Some(global_router_identifier), + identifier: None, + deprecated_identifier: None, + id, }, &self.metadata_map, ); @@ -791,11 +795,12 @@ impl NotificationsClient { /// * `entity_type` - The entity type to filter global routers by. pub async fn list_global_routers( &self, - entity_type: String, + entity_type: EntityType, ) -> Result { let request = make_request_with_metadata( ListGlobalRoutersRequest { - entity_type: Some(entity_type), + entity_type: Some(entity_type.into()), + deprecated_entity_type: None, }, &self.metadata_map, ); @@ -817,11 +822,13 @@ impl NotificationsClient { /// * `global_router_identifiers` - The identifiers of the global routers to retrieve. pub async fn batch_get_global_routers( &self, - global_router_identifiers: Vec, + global_router_identifiers: Vec, ) -> Result { let request = make_request_with_metadata( BatchGetGlobalRoutersRequest { ids: global_router_identifiers, + deprecated_ids: vec![], + deprecated_identifiers: vec![], }, &self.metadata_map, ); @@ -841,22 +848,23 @@ impl NotificationsClient { /// Test a connector configuration. /// # Arguments /// * `connector_type` - The [`ConnectorType`] to test. - /// * `output_schema_id` - The ID of the output schema to test with. + /// * `payload_type` - The payload type to test with. /// * `connector_config_fields` - The [ConnectorConfigField]s to test with. /// * `entity_type` - The entity type to test with. pub async fn test_connector_config( &self, connector_type: ConnectorType, - output_schema_id: String, + payload_type: String, connector_config_fields: Vec, - entity_type: String, + entity_type: EntityType, ) -> Result { let request = make_request_with_metadata( TestConnectorConfigRequest { r#type: connector_type as i32, - output_schema_id, fields: connector_config_fields, - entity_type: Some(entity_type), + entity_type: Some(entity_type.into()), + payload_type, + deprecated_entity_type: None, }, &self.metadata_map, ); @@ -884,12 +892,14 @@ impl NotificationsClient { pub async fn test_existing_connector( &self, connector_id: String, - output_schema_id: String, + payload_type: String, ) -> Result { let request = make_request_with_metadata( TestExistingConnectorRequest { + deprecated_connector_id: connector_id.clone(), connector_id, - output_schema_id, + payload_type, + connector_identifier: None, }, &self.metadata_map, ); @@ -919,11 +929,16 @@ impl NotificationsClient { ) -> Result { let request = make_request_with_metadata( TestPresetConfigRequest { - entity_type: params.entity_type, + entity_type: params.entity_type.into(), entity_sub_type: params.entity_sub_type, - connector_id: params.connector_id, - preset_id: params.preset_user_facing_id, + connector_id: params.connector_id.clone(), config_overrides: params.config_overrides, + deprecated_entity_type: String::from("alerts"), + deprecated_connector_id: params.connector_id, + deprecated_preset_id: params.preset_user_facing_id.clone(), + connector_identifier: None, + preset_identifier: None, + parent_preset_id: params.preset_user_facing_id, }, &self.metadata_map, ); @@ -951,15 +966,16 @@ impl NotificationsClient { /// * `template` - The template to render. pub async fn test_template_render( &self, - entity_type: String, + entity_type: EntityType, entity_sub_type: Option, template: String, ) -> Result { let request = make_request_with_metadata( TestTemplateRenderRequest { - entity_type, entity_sub_type, template, + deprecated_entity_type: String::from("alerts"), + entity_type: entity_type.into(), }, &self.metadata_map, ); diff --git a/rust/cx-sdk/src/lib.rs b/rust/cx-sdk/src/lib.rs index 0b876a1d..8da77fd0 100644 --- a/rust/cx-sdk/src/lib.rs +++ b/rust/cx-sdk/src/lib.rs @@ -14,6 +14,7 @@ #![allow(clippy::result_large_err)] #![allow(renamed_and_removed_lints)] +#![allow(deprecated, clippy::deprecated)] //! The Rust SDK for Coralogix APIs. use auth::ApiKey; diff --git a/rust/examples/Cargo.lock b/rust/examples/Cargo.lock index e28e17d9..6e6a0e1f 100644 --- a/rust/examples/Cargo.lock +++ b/rust/examples/Cargo.lock @@ -348,7 +348,7 @@ dependencies = [ [[package]] name = "cx-api" -version = "1.4.0" +version = "1.4.1" dependencies = [ "prost 0.13.5", "prost-types 0.13.5", @@ -362,7 +362,7 @@ dependencies = [ [[package]] name = "cx-sdk" -version = "1.4.0" +version = "1.4.1" dependencies = [ "backoff", "bytes", @@ -1255,6 +1255,19 @@ dependencies = [ "tempfile", ] +[[package]] +name = "notifications" +version = "0.1.0" +dependencies = [ + "anyhow", + "cx-sdk", + "serde_json", + "time", + "tokio", + "tonic 0.12.3", + "uuid", +] + [[package]] name = "num-conv" version = "0.1.0" diff --git a/rust/examples/Cargo.toml b/rust/examples/Cargo.toml index 6219009a..75e93b7e 100644 --- a/rust/examples/Cargo.toml +++ b/rust/examples/Cargo.toml @@ -16,4 +16,5 @@ members = [ "logs", "metrics", "recording-rules", + "notifications", ] diff --git a/rust/examples/alerts/src/lib.rs b/rust/examples/alerts/src/lib.rs index 0e46a1f0..fc7f0156 100644 --- a/rust/examples/alerts/src/lib.rs +++ b/rust/examples/alerts/src/lib.rs @@ -22,7 +22,6 @@ mod tests { auth::AuthContext, client::{ alerts::{ - DefaultLabels, self, ActivitySchedule, AlertDef, @@ -34,6 +33,7 @@ mod tests { AlertDefWebhooksSettings, AlertsClient, DayOfWeek, + DefaultLabels, FilterType, IntegrationType, LabelFilterType, @@ -170,7 +170,7 @@ mod tests { let alerts_client = AlertsClient::new( CoralogixRegion::from_env().unwrap(), AuthContext::from_env(), - Some(DefaultLabels::SdkVersion) + Some(DefaultLabels::SdkVersion), ) .unwrap(); let alert = create_alert(); @@ -229,7 +229,7 @@ mod tests { let alerts_client = AlertsClient::new( CoralogixRegion::from_env().unwrap(), AuthContext::from_env(), - Some(DefaultLabels::SdkVersion) + Some(DefaultLabels::SdkVersion), ) .unwrap(); let alert = create_alert(); @@ -307,7 +307,7 @@ mod tests { let alerts_client = AlertsClient::new( CoralogixRegion::from_env().unwrap(), AuthContext::from_env(), - Some(DefaultLabels::SdkVersion) + Some(DefaultLabels::SdkVersion), ) .unwrap(); let alert = create_alert(); diff --git a/rust/examples/recording-rules/src/lib.rs b/rust/examples/recording-rules/src/lib.rs index 12604603..4b5df94d 100644 --- a/rust/examples/recording-rules/src/lib.rs +++ b/rust/examples/recording-rules/src/lib.rs @@ -44,7 +44,7 @@ mod tests { expr: "sum(rate(ts3db_live_ingester_write_latency_seconds_count{CX_LEVEL=\"staging\",pod=~\"ts3db-live-ingester.*\"}[2m])) by (pod)".into(), labels: HashMap::new(), }, InRule{ record: "job:http_requests_total:sum".into(), expr: "sum(rate(http_requests_total[5m])) by (job)".into(), labels: HashMap::new() }], - id: None, + id: None, version: None, }, InRuleGroup { name: "bar".into(), @@ -55,7 +55,7 @@ mod tests { expr: "sum(rate(ts3db_live_ingester_write_latency_seconds_count{CX_LEVEL=\"staging\",pod=~\"ts3db-live-ingester.*\"}[2m])) by (pod)".into(), labels: HashMap::new(), }, InRule{ record: "job:http_requests_total:sum".into(), expr: "sum(rate(http_requests_total[5m])) by (job)".into(), labels: HashMap::new() }], - id: None, + id: None, version: None, }], )