def TestDataObjectAny(): capability = Vim.Capability() capability.SetProvisioningSupported(True) capability.SetMultiHostSupported(True) dynamicProperty = Vim.DynamicProperty() dynamicProperty.SetName("data object name") dynamicProperty.SetVal(capability) print(dynamicProperty)
def TestPrimitiveAny(): dynamicProperty = Vim.DynamicProperty() dynamicProperty.SetName("primitive name") dynamicProperty.SetVal(VmomiSupport.PrimitiveString("foobar")) print(dynamicProperty)