cloudcommon: virtualresource: allow setting is_system on creation

We have validation against the field yet the rule tag metadata does not
actually allow it
This commit is contained in:
Yousong Zhou
2018-09-18 03:53:30 +00:00
parent 284ebcfaab
commit 9efad3e417
+1 -1
View File
@@ -31,7 +31,7 @@ type SVirtualResourceBase struct {
ProjectId string `name:"tenant_id" width:"128" charset:"ascii" nullable:"false" index:"true" list:"admin"`
IsSystem bool `nullable:"true" default:"false" list:"admin"`
IsSystem bool `nullable:"true" default:"false" list:"admin" create:"optional"`
PendingDeletedAt time.Time ``
PendingDeleted bool `nullable:"false" default:"false" index:"true" get:"admin"`