Export fields on SettingMgmtXSshKeys (#41)
This commit is contained in:
@@ -311,12 +311,12 @@ func main() {
|
|||||||
case "SettingMgmt":
|
case "SettingMgmt":
|
||||||
sshKeyField := NewFieldInfo(resource.StructName+"XSshKeys", "x_ssh_keys", "struct", "", false, false, "")
|
sshKeyField := NewFieldInfo(resource.StructName+"XSshKeys", "x_ssh_keys", "struct", "", false, false, "")
|
||||||
sshKeyField.Fields = map[string]*FieldInfo{
|
sshKeyField.Fields = map[string]*FieldInfo{
|
||||||
"name": NewFieldInfo("name", "name", "string", "", false, false, ""),
|
"name": NewFieldInfo("Name", "name", "string", "", false, false, ""),
|
||||||
"keyType": NewFieldInfo("keyType", "type", "string", "", false, false, ""),
|
"keyType": NewFieldInfo("KeyType", "type", "string", "", false, false, ""),
|
||||||
"key": NewFieldInfo("key", "key", "string", "", false, false, ""),
|
"key": NewFieldInfo("Key", "key", "string", "", false, false, ""),
|
||||||
"comment": NewFieldInfo("comment", "comment", "string", "", false, false, ""),
|
"comment": NewFieldInfo("Comment", "comment", "string", "", false, false, ""),
|
||||||
"date": NewFieldInfo("date", "date", "string", "", false, false, ""),
|
"date": NewFieldInfo("Date", "date", "string", "", false, false, ""),
|
||||||
"fingerprint": NewFieldInfo("fingerprint", "fingerprint", "string", "", false, false, ""),
|
"fingerprint": NewFieldInfo("Fingerprint", "fingerprint", "string", "", false, false, ""),
|
||||||
}
|
}
|
||||||
resource.Types[sshKeyField.FieldName] = sshKeyField
|
resource.Types[sshKeyField.FieldName] = sshKeyField
|
||||||
|
|
||||||
|
|||||||
12
unifi/setting_mgmt.generated.go
generated
12
unifi/setting_mgmt.generated.go
generated
@@ -63,12 +63,12 @@ func (dst *SettingMgmt) UnmarshalJSON(b []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SettingMgmtXSshKeys struct {
|
type SettingMgmtXSshKeys struct {
|
||||||
comment string `json:"comment"`
|
Comment string `json:"comment"`
|
||||||
date string `json:"date"`
|
Date string `json:"date"`
|
||||||
fingerprint string `json:"fingerprint"`
|
Fingerprint string `json:"fingerprint"`
|
||||||
key string `json:"key"`
|
Key string `json:"key"`
|
||||||
keyType string `json:"type"`
|
KeyType string `json:"type"`
|
||||||
name string `json:"name"`
|
Name string `json:"name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dst *SettingMgmtXSshKeys) UnmarshalJSON(b []byte) error {
|
func (dst *SettingMgmtXSshKeys) UnmarshalJSON(b []byte) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user