Skip to content

Commit

Permalink
feat: add EphemeralDeploy to the Machine and MachineDeployParams (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhimsyWolfe authored Jul 23, 2024
1 parent f41b3c4 commit 0474a3b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions entity/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ type Machine struct {
DisableIPv4 bool `json:"disable_ipv4,omitempty"`
Netboot bool `json:"netboot,omitempty"`
Locked bool `json:"locked,omitempty"`
EphemeralDeploy bool `json:"ephemeral_deploy,omitempty"`
}

func (m *Machine) UnmarshalJSON(data []byte) error {
Expand Down Expand Up @@ -272,18 +273,19 @@ type MachineAllocateParams struct {

// MachineDeployParams enumerates the parameters for the deploy operation
type MachineDeployParams struct {
UserData string `url:"user_data,omitempty"`
DistroSeries string `url:"distro_series,omitempty"`
HWEKernel string `url:"hwe_kernel,omitempty"`
AgentName string `url:"agent_name,omitempty"`
Comment string `url:"comment,omitempty"`
BridgeFD int `url:"bridge_fd,omitempty"`
BridgeAll bool `url:"bridge_all,omitempty"`
BridgeSTP bool `url:"bridge_stp,omitempty"`
InstallRackD bool `url:"install_rackd,omitempty"`
InstallKVM bool `url:"install_kvm,omitempty"`
RegisterVMHost bool `url:"register_vmhost,omitempty"`
EnableHwSync bool `url:"enable_hw_sync,omitempty"`
UserData string `url:"user_data,omitempty"`
DistroSeries string `url:"distro_series,omitempty"`
HWEKernel string `url:"hwe_kernel,omitempty"`
AgentName string `url:"agent_name,omitempty"`
Comment string `url:"comment,omitempty"`
BridgeFD int `url:"bridge_fd,omitempty"`
BridgeAll bool `url:"bridge_all,omitempty"`
BridgeSTP bool `url:"bridge_stp,omitempty"`
InstallRackD bool `url:"install_rackd,omitempty"`
InstallKVM bool `url:"install_kvm,omitempty"`
RegisterVMHost bool `url:"register_vmhost,omitempty"`
EnableHwSync bool `url:"enable_hw_sync,omitempty"`
EphemeralDeploy bool `url:"ephemeral_deploy,omitempty"`
}

// MachineReleaseParams enumerates the parameters for the release operation
Expand Down

0 comments on commit 0474a3b

Please sign in to comment.