Skip to content

Commit 6f6d756

Browse files
committed
GFI-151: add ecs_support to teams_location
1 parent 04b36cd commit 6f6d756

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.changelog/1826.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
gateway: added ecs_support field to teams_location resource
3+
```

teams_locations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type TeamsLocation struct {
3535
AnonymizedLogsEnabled bool `json:"anonymized_logs_enabled"`
3636
IPv4Destination string `json:"ipv4_destination"`
3737
ClientDefault bool `json:"client_default"`
38+
ECSSupport *bool `json:"ecs_support,omitempty"`
3839

3940
CreatedAt *time.Time `json:"created_at,omitempty"`
4041
UpdatedAt *time.Time `json:"updated_at,omitempty"`

teams_locations_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func TestTeamsLocations(t *testing.T) {
3838
"anonymized_logs_enabled": false,
3939
"ipv4_destination": null,
4040
"client_default": false,
41+
"ecs_support": false,
4142
"created_at": "2020-05-18T22:07:03Z",
4243
"updated_at": "2020-05-18T22:07:05Z"
4344
}
@@ -60,6 +61,7 @@ func TestTeamsLocations(t *testing.T) {
6061
AnonymizedLogsEnabled: false,
6162
IPv4Destination: "",
6263
ClientDefault: false,
64+
ECSSupport: BoolPtr(false),
6365
CreatedAt: &createdAt,
6466
UpdatedAt: &updatedAt,
6567
}}
@@ -98,6 +100,7 @@ func TestTeamsLocation(t *testing.T) {
98100
"anonymized_logs_enabled": false,
99101
"ipv4_destination": null,
100102
"client_default": false,
103+
"ecs_support": false,
101104
"created_at": "2020-05-18T22:07:03Z",
102105
"updated_at": "2020-05-18T22:07:05Z"
103106
}
@@ -118,6 +121,7 @@ func TestTeamsLocation(t *testing.T) {
118121
AnonymizedLogsEnabled: false,
119122
IPv4Destination: "",
120123
ClientDefault: false,
124+
ECSSupport: BoolPtr(false),
121125
CreatedAt: &createdAt,
122126
UpdatedAt: &updatedAt,
123127
}
@@ -156,6 +160,7 @@ func TestCreateTeamsLocation(t *testing.T) {
156160
"anonymized_logs_enabled": false,
157161
"ipv4_destination": null,
158162
"client_default": false,
163+
"ecs_support": false,
159164
"created_at": "2020-05-18T22:07:03Z",
160165
"updated_at": "2020-05-18T22:07:05Z"
161166
}
@@ -176,6 +181,7 @@ func TestCreateTeamsLocation(t *testing.T) {
176181
AnonymizedLogsEnabled: false,
177182
IPv4Destination: "",
178183
ClientDefault: false,
184+
ECSSupport: BoolPtr(false),
179185
CreatedAt: &createdAt,
180186
UpdatedAt: &updatedAt,
181187
}
@@ -218,6 +224,7 @@ func TestUpdateTeamsLocation(t *testing.T) {
218224
"anonymized_logs_enabled": false,
219225
"ipv4_destination": null,
220226
"client_default": false,
227+
"ecs_support": false,
221228
"created_at": "2020-05-18T22:07:03Z",
222229
"updated_at": "2020-05-18T22:07:05Z"
223230
}
@@ -238,6 +245,7 @@ func TestUpdateTeamsLocation(t *testing.T) {
238245
AnonymizedLogsEnabled: false,
239246
IPv4Destination: "",
240247
ClientDefault: false,
248+
ECSSupport: BoolPtr(false),
241249
CreatedAt: &createdAt,
242250
UpdatedAt: &updatedAt,
243251
}

0 commit comments

Comments
 (0)