Decorators¶
The Virtualization SDK exposes decorators as mentioned in the regular documentation. Below we list the additional operations added to suport Lua to Python migrations. This assumes Plugin()
is instantiated as plugin
:
Plugin Operation | Decorator |
---|---|
Lua Repository Data Migration | @plugin.upgrade.repository(lua_version, MigrationType.LUA) |
Lua Source Config Data Migration | @plugin.upgrade.source_config(lua_version, MigrationType.LUA) |
Lua Linked Source Data Migration | @plugin.upgrade.linked_source(lua_version, MigrationType.LUA) |
Lua Virtual Source Data Migration | @plugin.upgrade.virtual_source(lua_version, MigrationType.LUA) |
Lua Snapshot Data Migration | @plugin.upgrade.snapshot(lua_version, MigrationType.LUA) |
lua_version format
The lua_version
field in this decorator should be the (major,minor) version of the Lua toolkit. This means if the version is set to 1.1.HOTFIX123
in the main.json
file for the Lua toolkit, the lua_version
passed into this decorator should be 1.1
.