Skip to content

Commit

Permalink
Merge pull request #500 from deploymenttheory/feat-managed_software_u…
Browse files Browse the repository at this point in the history
…pdates

Update JSON struct tags to remove omitempty for required fields in ma…
  • Loading branch information
ShocOne authored Sep 17, 2024
2 parents fb5246f + ea20726 commit 99cac3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/jamfpro/jamfproapi_managed_software_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ type ResourceManagedSoftwareUpdatePlan struct {

// ResourcManagedSoftwareUpdatePlanDevice defines the structure for device objects in the managed software update plan.
type ResourcManagedSoftwareUpdatePlanObject struct {
ObjectType string `json:"objectType,omitempty"`
ObjectType string `json:"objectType"`
DeviceId string `json:"deviceId,omitempty"`
GroupId string `json:"groupId,omitempty"`
}

// ResourcManagedSoftwareUpdatePlanConfig defines the configuration for a managed software update plan.
type ResourcManagedSoftwareUpdatePlanConfig struct {
UpdateAction string `json:"updateAction,omitempty"`
VersionType string `json:"versionType,omitempty"`
UpdateAction string `json:"updateAction"`
VersionType string `json:"versionType"`
SpecificVersion string `json:"specificVersion,omitempty"`
BuildVersion string `json:"buildVersion,omitempty"`
MaxDeferrals int `json:"maxDeferrals,omitempty"`
Expand Down

0 comments on commit 99cac3e

Please sign in to comment.