feat: add generated parent modify resources

Introduce the modifier YAML kind for delayed parent-level modify operations and generate dedicated Terraform resources with typed parameters. Keep modifier parameters out of the ordinary instance CRUD resource, register modifiers separately, and leave delete as a no-op until an inverse API payload is confirmed. Mark vcOrg and vcNsxt modify operations during YAML generation so the contract survives regeneration.
This commit is contained in:
Repinoid
2026-09-20 18:05:24 +03:00
parent 33672e05bf
commit a48b658d78
7 changed files with 236 additions and 8 deletions
+10
View File
@@ -71,6 +71,16 @@ func main() {
if err != nil {
panic(err)
}
for idx := range ops {
if strings.EqualFold(ops[idx].Action, "modify") && svc.ID == 19 {
ops[idx].Kind = "modifier"
ops[idx].Modifier = "ip_space"
}
if strings.EqualFold(ops[idx].Action, "modify") && svc.ID == 22 {
ops[idx].Kind = "modifier"
ops[idx].Modifier = "network"
}
}
specYAML := types.ServiceSpec{
Name: name,