Skip to content

Commit

Permalink
GIN-341: rename TeamsCertificate to TeamsCertificateSetting
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssamw committed Jul 16, 2024
1 parent e5e6bf4 commit 44f6e82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/2748.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
teams: gateway: rename TeamsCertificate in TeamsAccountConfiguration to TeamsCertificateSetting
```
4 changes: 2 additions & 2 deletions teams_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -113,7 +113,7 @@ type TeamsCustomCertificate struct {
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

type TeamsCertificate struct {
type TeamsCertificateSetting struct {
ID string `json:"id"`
}

Expand Down
2 changes: 1 addition & 1 deletion teams_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestTeamsAccountConfiguration(t *testing.T) {
ExtendedEmailMatching: &TeamsExtendedEmailMatching{
Enabled: BoolPtr(true),
},
Certificate: &TeamsCertificate{
Certificate: &TeamsCertificateSetting{
ID: "7559a944-3dd7-41bf-b183-360a814a8c36",
},
})
Expand Down

0 comments on commit 44f6e82

Please sign in to comment.