diff --git a/.changelog/2713.txt b/.changelog/2713.txt new file mode 100644 index 00000000000..5d8e2be06ea --- /dev/null +++ b/.changelog/2713.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +teams: added per account certificate setting to teams gateway configuration +``` diff --git a/teams_accounts.go b/teams_accounts.go index 3472fa4874f..f426c68baf2 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -47,6 +47,7 @@ type TeamsAccountSettings struct { BodyScanning *TeamsBodyScanning `json:"body_scanning,omitempty"` ExtendedEmailMatching *TeamsExtendedEmailMatching `json:"extended_email_matching,omitempty"` CustomCertificate *TeamsCustomCertificate `json:"custom_certificate,omitempty"` + Certificate *TeamsCertificate `json:"certificate,omitempty"` } type BrowserIsolation struct { @@ -112,6 +113,10 @@ type TeamsCustomCertificate struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } +type TeamsCertificate struct { + ID string `json:"id"` +} + type TeamsRuleType = string const ( diff --git a/teams_accounts_test.go b/teams_accounts_test.go index 5fd3686ac61..52873da6c3b 100644 --- a/teams_accounts_test.go +++ b/teams_accounts_test.go @@ -93,6 +93,9 @@ func TestTeamsAccountConfiguration(t *testing.T) { }, "extended_email_matching": { "enabled": true + }, + "certificate": { + "id": "7559a944-3dd7-41bf-b183-360a814a8c36" } } } @@ -138,6 +141,9 @@ func TestTeamsAccountConfiguration(t *testing.T) { ExtendedEmailMatching: &TeamsExtendedEmailMatching{ Enabled: BoolPtr(true), }, + Certificate: &TeamsCertificate{ + ID: "7559a944-3dd7-41bf-b183-360a814a8c36", + }, }) } }