Liron Ar has posted comments on this change. Change subject: core, restapi: Introducing ImportVmFromConfigurationCommand ......................................................................
Patch Set 12: (3 inline comments) .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendCapabilitiesResource.java Line 401: version.getStorageTypes().getStorageTypes().add(type.value()); Line 402: } Line 403: } Line 404: Line 405: private void addConfigurationTypes(VersionCaps version, List<ConfigurationType> types) { Done Line 406: version.setConfigurationTypes(new ConfigurationTypes()); Line 407: for (ConfigurationType type : types) { Line 408: version.getConfigurationTypes().getConfigurationTypes().add(type.value()); Line 409: } .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmsResource.java Line 194: ""); Line 195: Line 196: VmMapper.map(vm, vmConfiguration.getStaticData()); Line 197: Line 198: Guid clusterId = namedCluster(vm) ? getClusterId(vm) : Guid.createGuidFromString(vm.getCluster().getId()); Done Line 199: ImportVmParameters parameters = new ImportVmParameters(); Line 200: parameters.setVm(vmConfiguration); Line 201: parameters.setVdsGroupId(clusterId); Line 202: return performCreate(VdcActionType.ImportVmFromConfiguration, .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/ConfigurationValidator.java Line 8: @ValidatedClass(clazz = Configuration.class) Line 9: public class ConfigurationValidator implements Validator<Configuration>{ Line 10: @Override Line 11: public void validateEnums(Configuration configuration) { Line 12: if (configuration != null && configuration.getType() != null) { Done Line 13: validateEnum(ConfigurationType.class, configuration.getType(), true); Line 14: } Line 15: } -- To view, visit http://gerrit.ovirt.org/15894 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I9390bcc11e5f3cb8c8c89ce791aabe63fe0ca341 Gerrit-PatchSet: 12 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: A Burden <abur...@redhat.com> Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches