From 44f6e828aba2f05dcb5b7544f8e6cb780e16cd47 Mon Sep 17 00:00:00 2001 From: Alyssa Wang Date: Tue, 16 Jul 2024 14:36:40 -0700 Subject: [PATCH] GIN-341: rename TeamsCertificate to TeamsCertificateSetting --- .changelog/2748.txt | 3 +++ teams_accounts.go | 4 ++-- teams_accounts_test.go | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/2748.txt diff --git a/.changelog/2748.txt b/.changelog/2748.txt new file mode 100644 index 00000000000..c7e0cc22650 --- /dev/null +++ b/.changelog/2748.txt @@ -0,0 +1,3 @@ +```release-note:breaking-change +teams: gateway: rename TeamsCertificate in TeamsAccountConfiguration to TeamsCertificateSetting +``` diff --git a/teams_accounts.go b/teams_accounts.go index f426c68baf2..73210da9974 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -47,7 +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"` + Certificate *TeamsCertificateSetting `json:"certificate,omitempty"` } type BrowserIsolation struct { @@ -113,7 +113,7 @@ type TeamsCustomCertificate struct { UpdatedAt *time.Time `json:"updated_at,omitempty"` } -type TeamsCertificate struct { +type TeamsCertificateSetting struct { ID string `json:"id"` } diff --git a/teams_accounts_test.go b/teams_accounts_test.go index 52873da6c3b..569d352546d 100644 --- a/teams_accounts_test.go +++ b/teams_accounts_test.go @@ -141,7 +141,7 @@ func TestTeamsAccountConfiguration(t *testing.T) { ExtendedEmailMatching: &TeamsExtendedEmailMatching{ Enabled: BoolPtr(true), }, - Certificate: &TeamsCertificate{ + Certificate: &TeamsCertificateSetting{ ID: "7559a944-3dd7-41bf-b183-360a814a8c36", }, })