Skip to content

Commit

Permalink
support os_version_extra for posture rule creation
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrit-cf committed Jun 22, 2023
1 parent e8eafdc commit fce9d2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
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

0 comments on commit fce9d2c

Please sign in to comment.