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

Support for OS Version Extra in posture rule creation #1316

Merged
merged 3 commits into from
Jun 22, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/1316.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
device_posture_rule: support os_version_extra
```
1 change: 1 addition & 0 deletions device_posture_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ type DevicePostureRuleInput struct {
Os string `json:"os,omitempty"`
OsDistroName string `json:"os_distro_name,omitempty"`
OsDistroRevision string `json:"os_distro_revision,omitempty"`
OSVersionExtra string `json:"os_version_extra,omitempty"`
Operator string `json:"operator,omitempty"`
Domain string `json:"domain,omitempty"`
ComplianceStatus string `json:"compliance_status,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions teams_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type TeamsDeviceListItem struct {
OSVersion string `json:"os_version,omitempty"`
OSDistroName string `json:"os_distro_name,omitempty"`
OsDistroRevision string `json:"os_distro_revision,omitempty"`
OSVersionExtra string `json:"os_version_extra,omitempty"`
MacAddress string `json:"mac_address,omitempty"`
IP string `json:"ip,omitempty"`
Created string `json:"created,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions teams_devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestTeamsDevicesList(t *testing.T) {
"os_version": "10.0.0",
"os_distro_name": "ubuntu",
"os_distro_revision": "1.0.0",
"os_version_extra": "(a)",
"mac_address": "00-00-5E-00-53-00",
"ip": "192.0.2.1",
"created": "2017-06-14T00:00:00Z",
Expand Down Expand Up @@ -71,6 +72,7 @@ func TestTeamsDevicesList(t *testing.T) {
OSVersion: "10.0.0",
OSDistroName: "ubuntu",
OsDistroRevision: "1.0.0",
OSVersionExtra: "(a)",
MacAddress: "00-00-5E-00-53-00",
IP: "192.0.2.1",
Created: "2017-06-14T00:00:00Z",
Expand Down