Skip to content

Commit 11dd948

Browse files
committed
Refactor opening and closing parenthesis fields to use pointers in advanced mobile device and smart computer group search examples
1 parent 3df8190 commit 11dd948

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

examples/advanced_mobile_device_searches/CreateAdvancedMobileDeviceSearch/CreateAdvancedMobileDeviceSearch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ func main() {
2929
AndOr: "and",
3030
SearchType: "is",
3131
Value: "test",
32-
OpeningParen: true,
33-
ClosingParen: false,
32+
OpeningParen: jamfpro.TruePtr(),
33+
ClosingParen: jamfpro.FalsePtr(),
3434
},
3535
{
3636
Name: "iTunes Store Account",
3737
Priority: 1,
3838
AndOr: "and",
3939
SearchType: "is",
4040
Value: "test",
41-
OpeningParen: false,
42-
ClosingParen: true,
41+
OpeningParen: jamfpro.FalsePtr(),
42+
ClosingParen: jamfpro.TruePtr(),
4343
},
4444
},
4545
DisplayFields: []string{"Building", "iTunes Store Account"},

examples/advanced_mobile_device_searches/UpdateAdvancedMobileDeviceSearchByID/UpdateAdvancedMobileDeviceSearchByID.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ func main() {
3131
AndOr: "and",
3232
SearchType: "is",
3333
Value: "test",
34-
OpeningParen: true,
35-
ClosingParen: false,
34+
OpeningParen: jamfpro.TruePtr(),
35+
ClosingParen: jamfpro.FalsePtr(),
3636
},
3737
{
3838
Name: "Languages",
3939
Priority: 1,
4040
AndOr: "and",
4141
SearchType: "is",
4242
Value: "test",
43-
OpeningParen: false,
44-
ClosingParen: true,
43+
OpeningParen: jamfpro.FalsePtr(),
44+
ClosingParen: jamfpro.TruePtr(),
4545
},
4646
},
4747
DisplayFields: []string{"App Name", "Device Name"},

examples/smart_computer_groups/CreateSmartComputerGroup/CreateSmartComputerGroup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ func main() {
2929
AndOr: "and",
3030
SearchType: "is",
3131
Value: "test",
32-
OpeningParen: false,
33-
ClosingParen: false,
32+
OpeningParen: jamfpro.FalsePtr(),
33+
ClosingParen: jamfpro.FalsePtr(),
3434
},
3535
},
3636
SiteId: &siteID,

examples/smart_computer_groups/UpdateSmartComputerGroupByID/UpdateSmartComputerGroupByID.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func main() {
3232
AndOr: "and",
3333
SearchType: "is",
3434
Value: "test",
35-
OpeningParen: false,
36-
ClosingParen: true,
35+
OpeningParen: jamfpro.FalsePtr(),
36+
ClosingParen: jamfpro.FalsePtr(),
3737
},
3838
},
3939
SiteId: &siteID,

sdk/jamfpro/shared_models.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ type SharedSubsetCriteriaJamfProAPI struct {
6868
AndOr string `json:"andOr"`
6969
SearchType string `json:"searchType"`
7070
Value string `json:"value"`
71-
OpeningParen bool `json:"openingParen,omitempty"`
72-
ClosingParen bool `json:"closingParen,omitempty"`
71+
OpeningParen *bool `json:"openingParen,omitempty"`
72+
ClosingParen *bool `json:"closingParen,omitempty"`
7373
}
7474

7575
type SharedResourceLdapServer struct {

0 commit comments

Comments
 (0)