fix: discoverable?
This commit is contained in:
@@ -2,9 +2,22 @@ module proxmox
|
|||||||
|
|
||||||
import "@formae/formae.pkl"
|
import "@formae/formae.pkl"
|
||||||
|
|
||||||
|
open class Config {
|
||||||
|
hidden fixed type: String = "SFTP"
|
||||||
|
|
||||||
|
url: String
|
||||||
|
|
||||||
|
node: String
|
||||||
|
|
||||||
|
fixed Type: String = type
|
||||||
|
fixed Url: String = url
|
||||||
|
fixed Node: String = node
|
||||||
|
}
|
||||||
|
|
||||||
@formae.ResourceHint {
|
@formae.ResourceHint {
|
||||||
type = "PROXMOX::Service::LXC"
|
type = "PROXMOX::Service::LXC"
|
||||||
identifier = "$.vmid"
|
identifier = "$.vmid"
|
||||||
|
discoverable = true
|
||||||
}
|
}
|
||||||
class LXC extends formae.Resource {
|
class LXC extends formae.Resource {
|
||||||
fixed hidden type: String = "PROXMOX::Service::LXC"
|
fixed hidden type: String = "PROXMOX::Service::LXC"
|
||||||
@@ -12,7 +25,10 @@ class LXC extends formae.Resource {
|
|||||||
@formae.FieldHint { createOnly = true }
|
@formae.FieldHint { createOnly = true }
|
||||||
vmid: String
|
vmid: String
|
||||||
|
|
||||||
@formae.FieldHint { createOnly = true }
|
@formae.FieldHint {
|
||||||
|
createOnly = true
|
||||||
|
writeOnly = true
|
||||||
|
}
|
||||||
ostemplate: String
|
ostemplate: String
|
||||||
|
|
||||||
@formae.FieldHint {}
|
@formae.FieldHint {}
|
||||||
|
|||||||
2
types.go
2
types.go
@@ -10,7 +10,7 @@ type TargetConfig struct {
|
|||||||
type LXCProperties struct {
|
type LXCProperties struct {
|
||||||
VMID string `json:"vmid"`
|
VMID string `json:"vmid"`
|
||||||
Hostname string `json:"hostname"`
|
Hostname string `json:"hostname"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description,omitempty"`
|
||||||
OSTemplate string `json:"ostemplate"`
|
OSTemplate string `json:"ostemplate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user