Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFI-151: add ecs_support to teams_location #1826

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/1826.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
gateway: added ecs_support field to teams_location resource
```
1 change: 1 addition & 0 deletions teams_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
8 changes: 8 additions & 0 deletions teams_locations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -60,6 +61,7 @@ func TestTeamsLocations(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}}
Expand Down Expand Up @@ -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"
}
Expand All @@ -118,6 +121,7 @@ func TestTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down Expand Up @@ -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"
}
Expand All @@ -176,6 +181,7 @@ func TestCreateTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down Expand Up @@ -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"
}
Expand All @@ -238,6 +245,7 @@ func TestUpdateTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down
Loading