Get image parent ID from imageID on the current agent.

@param imageID
@return
512112
public static String getParentIdFromAgent(Launcher launcher, final String imageID, final String host) throws IOException, InterruptedException {
        return launcher.getChannel().call(new MasterToSlaveCallable<String, IOException>() {
            public String call() throws IOException {
                return DockerUtils.getParentId(imageID, host);
            }
        });
    }
652667
public Type getParentType()
    {
        Type ret = null;
        if (this.parentTypeId != null && this.parentTypeId != 0) {
            try {
                ret = Type.get(this.parentTypeId);
            } catch (final CacheReloadException e) {
                Type.LOG.error("Could not read parentType for id: {}", this.parentTypeId);
            }
        }
        return ret;
    }
475028
@Override
    protected String getInstanceIdName(int id)
    {
        switch (id - super.getMaxInstanceId()) {
          case Id_localName: return "localName";
          case Id_uri: return "uri";
        }
        return super.getInstanceIdName(id);
    }
875356
public URL getImageUrl(BaseType baseType, String id) throws FanartTvException {
        StringBuilder url = getBaseUrl(baseType);

        // Add the ID
        url.append(id);

        // Add the API Key
        url.append(DELIMITER_APIKEY).append(apiKey);

        // Add the client API Key
        if (StringUtils.isNotBlank(clientKey)) {
            url.append(DELIMITER_CLIENT_KEY).append(clientKey);
        }

        return convertUrl(url);
    }
1121685
public ImageView getImage(int index) {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getImage("+index+")");
		}
		
		return getter.getView(ImageView.class, index);
	}
1025903
public String getObjectImage(int groupID, int objectID) {
		if (groupID >= 0 && groupID < objectGroups.size()) {
			ObjectGroup grp = (ObjectGroup) objectGroups.get(groupID);
			if (objectID >= 0 && objectID < grp.objects.size()) {
				GroupObject object = (GroupObject) grp.objects.get(objectID);

				if (object == null) {
					return null;
				}

				return object.image;
			}
		}

		return null;
	}
554634
@Override
  public RemoteImageManifest getImageManifest(long fromTxnId)
      throws IOException {
    QuorumCall<AsyncLogger, RemoteImageManifest> q = loggers
        .getImageManifest(fromTxnId);
    Map<AsyncLogger, RemoteImageManifest> resps = loggers
        .waitForReadQuorumWithAllResponses(q, getImageManifestTimeoutMs,
            "getImageManifest");
    return createImageManifest(resps.values());
  }
605719
public function getImageListAjaxAction($parentId, $parentType)
    {
        $this->checkAuth($this->getAdminResources()->getResource($parentType, static::MODULE_RIGHT), array(), AccessManager::UPDATE);
        $this->checkXmlHttpRequest();
        $args = array('imageType' => $parentType, 'parentId' => $parentId);

        return $this->render('includes/image-upload-list-ajax', $args);
    }
183675
public BoxRequestsFolder.CopyFolder getCopyRequest(String id, String parentId) {
        BoxRequestsFolder.CopyFolder request = new BoxRequestsFolder.CopyFolder(id, parentId, getFolderCopyUrl(id), mSession);
        return request;
    }
676578
@Nullable
    public Container getContainerWithId(@Nonnull String id) {
        if (id == null || id.trim().length() == 0) {
            throw new IllegalArgumentException("A container ID must be provided.");
        }

        for (Container container : getContainers()) {
            if (container.getId().equals(id)) {
                return container;
            }
        }

        return null;
    }
162148
public static Image newImage(final String id, final IResource imageResource)
	{
		final Image image = new Image(id, imageResource);
		image.setOutputMarkupId(true);
		return image;
	}
512544
public static String parentRelativePathFromResourceId(String id) {
        if (id == null) {
            return null;
        }

        ResourceId parent = ResourceId.fromString(id).parent();
        if (parent != null) {
            return parent.resourceType() + "/" + parent.name();
        }

        return "";
    }
616474
public static ImageIcon getHelpIcon() {
        if (helpIcon == null) {
            helpIcon = DisplayUtils.getScaledIcon(new ImageIcon(ExtensionHelp.class.getResource("/resource/icon/16/201.png")));
        }
        return helpIcon;
    }
359221
public ImageBuffer getRaster(int id)
    {
        return rasters.get(UtilMath.clamp(id, 0, rasters.size() - 1));
    }
588706
def get_imageid(vm_):
    '''
    
    '''
    image = config.get_cloud_config_value(
        'image', vm_, __opts__, search_global=False
    )
    if image.startswith('ami-'):
        return image
    # a poor man's cache
    if not hasattr(get_imageid, 'images'):
        get_imageid.images = {}
    elif image in get_imageid.images:
        return get_imageid.images[image]
    params = {'Action': 'DescribeImages',
              'Filter.0.Name': 'name',
              'Filter.0.Value.0': image}
    # Query AWS, sort by 'creationDate' and get the last imageId
    _t = lambda x: datetime.datetime.strptime(x['creationDate'], '%Y-%m-%dT%H:%M:%S.%fZ')
    image_id = sorted(aws.query(params, location=get_location(),
                                 provider=get_provider(), opts=__opts__, sigver='4'),
                      lambda i, j: salt.utils.compat.cmp(_t(i), _t(j))
                      )[-1]['imageId']
    get_imageid.images[image] = image_id
    return image_id
1327483
public com.google.api.ads.adwords.axis.v201809.cm.ParentParentType getParentType() {
        return parentType;
    }
871786
public String awaitImageId(long timeout, TimeUnit timeUnit) {
        try {
            awaitCompletion(timeout, timeUnit);
        } catch (InterruptedException e) {
            throw new DockerClientException("Awaiting image id interrupted: ", e);
        }

        return getImageId();
    }