From 69370e434f6eff0dcfd0e05b0c30a658725cf8d4 Mon Sep 17 00:00:00 2001 From: "assaf.admi" Date: Sun, 15 Dec 2024 14:21:33 +0200 Subject: [PATCH] Notification center re-exports --- go/cxsdk.go | 13 ++++++++++--- go/notifications-client.go | 6 ++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/go/cxsdk.go b/go/cxsdk.go index 2befb86c..fe43b4f2 100644 --- a/go/cxsdk.go +++ b/go/cxsdk.go @@ -104,6 +104,7 @@ type ClientSet struct { groups *GroupsClient saml *SamlClient dataUsage *DataUsageClient + notifications *NotificationsClient } // RuleGroups gets a RuleGroupsClient from the ClientSet. @@ -215,6 +216,11 @@ func (c *ClientSet) DataUsage() *DataUsageClient { return c.dataUsage } +// Notifications gets a NotificationsClient from the ClientSet. +func (c *ClientSet) Notifications() *NotificationsClient { + return c.notifications +} + // NewClientSet Creates a new ClientSet. func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *ClientSet { authContext := NewAuthContext(teamsLevelAPIKey, userLevelAPIKey) @@ -239,9 +245,10 @@ func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *C slos: NewSLOsClient(apikeyCPC), scopes: NewScopesClient(apikeyCPC), // dahboardsFolders: NewDashboardsFoldersClient(apikeyCPC), - apiKeys: NewAPIKeysClient(apikeyCPC), - groups: NewGroupsClient(apikeyCPC), - saml: NewSamlClient(apikeyCPC), + apiKeys: NewAPIKeysClient(apikeyCPC), + groups: NewGroupsClient(apikeyCPC), + saml: NewSamlClient(apikeyCPC), + notifications: NewNotificationsClient(apikeyCPC), // users: NewUsersClient(apikeyCPC), } } diff --git a/go/notifications-client.go b/go/notifications-client.go index 90e16e75..9fad3282 100644 --- a/go/notifications-client.go +++ b/go/notifications-client.go @@ -155,6 +155,12 @@ type ConditionTypeMatchEntityType = common.ConditionType_MatchEntityType // MatchEntityTypeCondition is a match entity type condition. type MatchEntityTypeCondition = common.MatchEntityTypeCondition +// ConditionTypeMatchEntityTypeAndSubType is a match entity type and sub-type condition type. +type ConditionTypeMatchEntityTypeAndSubType = common.ConditionType_MatchEntityTypeAndSubType + +// MatchEntityTypeAndSubTypeCondition is a match entity type and sub-type condition. +type MatchEntityTypeAndSubTypeCondition = common.MatchEntityTypeAndSubTypeCondition + // PresetType is a preset type. type PresetType = presets.PresetType