diff --git a/.changelog/3758.txt b/.changelog/3758.txt new file mode 100644 index 00000000000..2ab7e3829b1 --- /dev/null +++ b/.changelog/3758.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +teams_location: make location parameters optional +``` \ No newline at end of file diff --git a/teams_locations.go b/teams_locations.go index e99b2c166cb..81fcef980c2 100644 --- a/teams_locations.go +++ b/teams_locations.go @@ -32,10 +32,10 @@ type TeamsLocation struct { Ip string `json:"ip,omitempty"` Subdomain string `json:"doh_subdomain"` AnonymizedLogsEnabled bool `json:"anonymized_logs_enabled"` - IPv4Destination string `json:"ipv4_destination"` - IPv4DestinationBackup string `json:"ipv4_destination_backup"` - DNSDestinationIPsID string `json:"dns_destination_ips_id"` - DNSDestinationIPv6BlockID string `json:"dns_destination_ipv6_block_id"` + IPv4Destination string `json:"ipv4_destination,omitempty"` + IPv4DestinationBackup string `json:"ipv4_destination_backup,omitempty"` + DNSDestinationIPsID string `json:"dns_destination_ips_id,omitempty"` + DNSDestinationIPv6BlockID string `json:"dns_destination_ipv6_block_id,omitempty"` ClientDefault bool `json:"client_default"` ECSSupport *bool `json:"ecs_support,omitempty"` Endpoints *LocationEndpoints `json:"endpoints,omitempty"`