diff --git a/.changelog/1826.txt b/.changelog/1826.txt new file mode 100644 index 00000000000..7538106f32f --- /dev/null +++ b/.changelog/1826.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +gateway: added ecs_support field to teams_location resource +``` diff --git a/teams_locations.go b/teams_locations.go index 296d98b13a6..b6c58304e60 100644 --- a/teams_locations.go +++ b/teams_locations.go @@ -35,6 +35,7 @@ type TeamsLocation struct { AnonymizedLogsEnabled bool `json:"anonymized_logs_enabled"` IPv4Destination string `json:"ipv4_destination"` ClientDefault bool `json:"client_default"` + ECSSupport *bool `json:"ecs_support,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` diff --git a/teams_locations_test.go b/teams_locations_test.go index d37d336f3c5..4eb615b1bc8 100644 --- a/teams_locations_test.go +++ b/teams_locations_test.go @@ -38,6 +38,7 @@ func TestTeamsLocations(t *testing.T) { "anonymized_logs_enabled": false, "ipv4_destination": null, "client_default": false, + "ecs_support": false, "created_at": "2020-05-18T22:07:03Z", "updated_at": "2020-05-18T22:07:05Z" } @@ -60,6 +61,7 @@ func TestTeamsLocations(t *testing.T) { AnonymizedLogsEnabled: false, IPv4Destination: "", ClientDefault: false, + ECSSupport: BoolPtr(false), CreatedAt: &createdAt, UpdatedAt: &updatedAt, }} @@ -98,6 +100,7 @@ func TestTeamsLocation(t *testing.T) { "anonymized_logs_enabled": false, "ipv4_destination": null, "client_default": false, + "ecs_support": false, "created_at": "2020-05-18T22:07:03Z", "updated_at": "2020-05-18T22:07:05Z" } @@ -118,6 +121,7 @@ func TestTeamsLocation(t *testing.T) { AnonymizedLogsEnabled: false, IPv4Destination: "", ClientDefault: false, + ECSSupport: BoolPtr(false), CreatedAt: &createdAt, UpdatedAt: &updatedAt, } @@ -156,6 +160,7 @@ func TestCreateTeamsLocation(t *testing.T) { "anonymized_logs_enabled": false, "ipv4_destination": null, "client_default": false, + "ecs_support": false, "created_at": "2020-05-18T22:07:03Z", "updated_at": "2020-05-18T22:07:05Z" } @@ -176,6 +181,7 @@ func TestCreateTeamsLocation(t *testing.T) { AnonymizedLogsEnabled: false, IPv4Destination: "", ClientDefault: false, + ECSSupport: BoolPtr(false), CreatedAt: &createdAt, UpdatedAt: &updatedAt, } @@ -218,6 +224,7 @@ func TestUpdateTeamsLocation(t *testing.T) { "anonymized_logs_enabled": false, "ipv4_destination": null, "client_default": false, + "ecs_support": false, "created_at": "2020-05-18T22:07:03Z", "updated_at": "2020-05-18T22:07:05Z" } @@ -238,6 +245,7 @@ func TestUpdateTeamsLocation(t *testing.T) { AnonymizedLogsEnabled: false, IPv4Destination: "", ClientDefault: false, + ECSSupport: BoolPtr(false), CreatedAt: &createdAt, UpdatedAt: &updatedAt, }