} else if (doc.documentKind.equals(IMAGE_STATE_KIND)) { ImageState state = Utils.fromJson(document, ImageState.class); if (state.isPublicImage()) {
if (!imageState.isPrivateImage() && !imageState.isPublicImage()) { throw new IllegalArgumentException( "Either " + ImageState.class.getSimpleName() " must be set."); if (imageState.isPrivateImage() && imageState.isPublicImage()) { throw new IllegalArgumentException( "Both " + ImageState.class.getSimpleName()
if (!imageState.isPrivateImage() && !imageState.isPublicImage()) { throw new IllegalArgumentException( "Either " + ImageState.class.getSimpleName() " must be set."); if (imageState.isPrivateImage() && imageState.isPublicImage()) { throw new IllegalArgumentException( "Both " + ImageState.class.getSimpleName()
private static void createPrivateImageState(BaseModelTest test, String endpointLink, List<String> tenantLinks) throws Throwable { ImageState image = new ImageState(); image.name = "disk"; image.tenantLinks = tenantLinks; image.endpointLink = endpointLink; image.endpointLinks = new HashSet<String>(); image.endpointLinks.add(endpointLink); test.postServiceSynchronously(ImageService.FACTORY_LINK, image, ImageState.class); }