Skip to content

Commit

Permalink
Add Bios Config URL (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans authored Oct 4, 2024
1 parent dfe113a commit d45bdd4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions condition/bios_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package condition

import (
"encoding/json"
"net/url"

"github.com/google/uuid"
)
Expand Down Expand Up @@ -32,6 +33,12 @@ type BiosControlTaskParameters struct {
//
// Required: true
Action BiosControlAction `json:"action"`

// The URL for the bios configuration settings file.
// Needed for BiosControlAction.SetConfig
//
// Required: false
BiosConfigURL *url.URL `json:"bios_config_url,omitempty"`
}

func (p *BiosControlTaskParameters) Unmarshal(r json.RawMessage) error {
Expand All @@ -50,10 +57,11 @@ func (p *BiosControlTaskParameters) MustJSON() []byte {
return byt
}

func NewBiosControlTaskParameters(assetID uuid.UUID, action BiosControlAction) *BiosControlTaskParameters {
func NewBiosControlTaskParameters(assetID uuid.UUID, action BiosControlAction, configURL *url.URL) *BiosControlTaskParameters {
return &BiosControlTaskParameters{
AssetID: assetID,
Action: action,
AssetID: assetID,
Action: action,
BiosConfigURL: configURL,
}
}

Expand Down

0 comments on commit d45bdd4

Please sign in to comment.