Handles "describeImages" request, as simple as without any filters to use.
@param imageId : Set of imgaesId.
@return a DescribeImagesResponse with our predefined AMIs in aws-mock.properties (or if not overridden, as
defined in aws-mock-default.properties)
332100
private DescribeImagesResponseType describeImages(final Set<String> imageId) {
        DescribeImagesResponseType ret = new DescribeImagesResponseType();
        ret.setRequestId(UUID.randomUUID().toString());
        DescribeImagesResponseInfoType info = new DescribeImagesResponseInfoType();
        for (String ami : MOCK_AMIS) {
            if (imageId == null || imageId.isEmpty()) {
                DescribeImagesResponseItemType item = new DescribeImagesResponseItemType();
                item.setImageId(ami);
                item.setArchitecture("x86_64");
                item.setVirtualizationType("paravirtual");
                item.setName("My server");
                item.setHypervisor("xen");
                item.setRootDeviceType("ebs");
                item.setImageLocation("123456789012/My server");
                item.setKernelId("aki-88aa75e1");
                item.setImageOwnerId("123456789012");
                item.setRootDeviceName("/dev/sda1");
                item.setIsPublic(false);
                item.setImageType("machine");
                BlockDeviceMappingType blockDeviceMappingType = new BlockDeviceMappingType();
                BlockDeviceMappingItemType blockDeviceMapping = new BlockDeviceMappingItemType();
                blockDeviceMapping.setDeviceName("/dev/sda1");
                EbsBlockDeviceType ebs = new EbsBlockDeviceType();
                ebs.setDeleteOnTermination(true);
                ebs.setSnapshotId("snap-1234567890abcdef0");
                ebs.setVolumeSize(1);
                ebs.setVolumeType("standard");
                blockDeviceMapping.setEbs(ebs);
                blockDeviceMappingType.getItem().add(blockDeviceMapping);
                item.setBlockDeviceMapping(blockDeviceMappingType);
                info.getItem().add(item);
            } else if (imageId.contains(ami)) {
                DescribeImagesResponseItemType item = new DescribeImagesResponseItemType();
                item.setImageId(ami);
                item.setArchitecture("x86_64");
                item.setVirtualizationType("paravirtual");
                item.setName("My server");
                item.setHypervisor("xen");
                item.setRootDeviceType("ebs");
                item.setImageLocation("123456789012/My server");
                item.setKernelId("aki-88aa75e1");
                item.setImageOwnerId("123456789012");
                item.setRootDeviceName("/dev/sda1");
                item.setIsPublic(false);
                item.setImageType("machine");
                BlockDeviceMappingType blockDeviceMappingType = new BlockDeviceMappingType();
                BlockDeviceMappingItemType blockDeviceMapping = new BlockDeviceMappingItemType();
                blockDeviceMapping.setDeviceName("/dev/sda1");
                EbsBlockDeviceType ebs = new EbsBlockDeviceType();
                ebs.setDeleteOnTermination(true);
                ebs.setSnapshotId("snap-1234567890abcdef0");
                ebs.setVolumeSize(1);
                ebs.setVolumeType("standard");
                blockDeviceMapping.setEbs(ebs);
                blockDeviceMappingType.getItem().add(blockDeviceMapping);
                item.setBlockDeviceMapping(blockDeviceMappingType);
                info.getItem().add(item);
            }
        }
        ret.setImagesSet(info);

        return ret;
    }
794794
public ImageInspect inspectImage(String imageId) {
		ImageInspect command = new ImageInspect();
		command.image(imageId);
		action.setCommand(command);
		return command;
	}
788609
public ImageIcon loadImageIcon(String filename, String description)
    {
        filename = Util.getImageFilename(filename, "buttons");
        URL url = null;
        if (this.getApplication() != null)
            url = this.getApplication().getResourceURL(filename, this);
        if (url == null)
        { // Not a resource, try reading it from the disk.
            try   {
                return new ImageIcon(filename, description);
            } catch (Exception ex)  { // File not found - try a fully qualified URL.
                ex.printStackTrace();
                return null;
            }
        }
        return new ImageIcon(url, description);
    }
1250774
public ImageDescriptor getImageDescriptor(String id) {
        ImageDescriptor imageDescriptor = imageDescriptors.get(id);
        if (imageDescriptor == null) {
            String pluginId = getDefault().getBundle().getSymbolicName();
            imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, ICON_PATH + id);
            imageDescriptors.put(id, imageDescriptor);
        }
        return imageDescriptor;
    }
1238737
def iiif_image_api_info(request, identifier_param):
    
    # TODO Add support for 'application/ld+json' response when requested
    accept_header = request.environ.get('HTTP_ACCEPT')
    if accept_header == 'application/ld+json':
        return HttpResponseNotImplemented(
            "JSON-LD response is not yet supported")

    ik_image, __ = _get_image_or_404(identifier_param)
    info = {
        "@context": "http://iiif.io/api/image/2/context.json",
        "@id": request.get_full_path(),
        "@type": "iiif:Image",
        "protocol": "http://iiif.io/api/image",
        "width": ik_image.width,
        "height": ik_image.height,
    }
    # TODO Return more complete info.json response per spec

    if ik_image.license:
        info['license'] = [ik_image.license]

    attribution_value = u' '.join([
        u"Credit: %s." % ik_image.credit if ik_image.credit else '',
        u"Provided by: %s." % ik_image.source if ik_image.source else '',
    ]).strip()
    if attribution_value:
        info['attribution'] = [{
            "@value": attribution_value,
            "@language": "en",
        }]

    # TODO Send header "Access-Control-Allow-Origin: *" per spec?
    return JsonResponse(info)
915320
public ContainerCreate create(String imageId) {
		ContainerCreate command = new ContainerCreate();
		command.image(imageId);
		action.setCommand(command);
		return command;
	}
466471
public ImageDescriptor image(SarlAction action) {
		final JvmOperation jvmElement = this.jvmModelAssociations.getDirectlyInferredOperation(action);
		return this.images.forOperation(
				action.getVisibility(),
				this.adornments.get(jvmElement));
	}
1208425
public void setImageIds(java.util.Collection<String> imageIds) {
        if (imageIds == null) {
            this.imageIds = null;
            return;
        }

        this.imageIds = new com.amazonaws.internal.SdkInternalList<String>(imageIds);
    }
313568
@Override
  public ImageInputStream getImageInputStream(long txid) throws IOException {
    URLImageInputStream stream = loggers.getImageInputStream(txid,
        httpConnectReadTimeoutMs);
    if (stream == null) {
      throw new IOException("Cannot obtain input stream for image: " + txid);
    }
    return new ImageInputStream(txid, stream, stream.getImageDigest(),
        stream.toString(), stream.getSize());
  }
1146999
public Observable<ImageList> getDetailsAsync(String listId) {
        return getDetailsWithServiceResponseAsync(listId).map(new Func1<ServiceResponse<ImageList>, ImageList>() {
            @Override
            public ImageList call(ServiceResponse<ImageList> response) {
                return response.body();
            }
        });
    }
399493
def image_by_id(self, id):
        
        if not id:
            return None
        return next((image for image in self.images() if image['Id'] == id),
                    None)
1159780
public Observable<ImageIds> getAllImageIdsAsync(String listId) {
        return getAllImageIdsWithServiceResponseAsync(listId).map(new Func1<ServiceResponse<ImageIds>, ImageIds>() {
            @Override
            public ImageIds call(ServiceResponse<ImageIds> response) {
                return response.body();
            }
        });
    }
219160
def get_image_info_by_image_id(self, image_id):
        
        logger.info("getting info about provided image specified by image_id '%s'", image_id)
        logger.debug("image_id = '%s'", image_id)
        # returns list of
        # {u'Created': 1414577076,
        #  u'Id': u'3ab9a7ed8a169ab89b09fb3e12a14a390d3c662703b65b4541c0c7bde0ee97eb',
        #  u'ParentId': u'a79ad4dac406fcf85b9c7315fe08de5b620c1f7a12f45c8185c843f4b4a49c4e',
        #  u'RepoTags': [u'buildroot-fedora:latest'],
        #  u'Size': 0,
        #  u'VirtualSize': 856564160}
        images = self.d.images()
        try:
            image_dict = [i for i in images if i['Id'] == image_id][0]
        except IndexError:
            logger.info("image not found")
            return None
        else:
            return image_dict
1012682
def file_describe(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/describe' % object_id, input_params, always_retry=always_retry, **kwargs)
842481
def user_describe(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/describe' % object_id, input_params, always_retry=always_retry, **kwargs)
1191177
def img(self, id):
        """"""
        return self._serve_file(os.path.join(media_path, 'img', id))
90534
public JSONObject imageCensorUserDefined(byte[] imgData, HashMap<String, String> options) {
        AipRequest request = new AipRequest();

        String base64Content = Base64Util.encode(imgData);
        request.addBody("image", base64Content);

        return imageCensorUserDefinedHelper(request, options);
    }