Examples of TaskResourceRep


Examples of com.emc.storageos.model.TaskResourceRep

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> postTaskURI(URI uri) {
        TaskResourceRep task = client.postURI(TaskResourceRep.class, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> deleteTaskURI(URI uri) {
        TaskResourceRep task = client.deleteURI(TaskResourceRep.class, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> deleteTask(String path, Object... args) {
        TaskResourceRep task = client.delete(TaskResourceRep.class, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param uri
     *        the URI to post to.
     * @return the task object.
     */
    protected Task<T> postTaskURI(Object request, URI uri) {
        TaskResourceRep task = client.postURI(TaskResourceRep.class, request, uri);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param args
     *        the path arguments.
     * @return the task object.
     */
    protected Task<T> putTask(Object request, String path, Object... args) {
        TaskResourceRep task = client.put(TaskResourceRep.class, request, path, args);
        return new Task<T>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param id
     *        the ID of the vdc to delete.
     * @return Task<VirtualDataCenterRestRep> the task to delete the vdc.
     */
    public Task<VirtualDataCenterRestRep>  delete(URI id) {
        TaskResourceRep task = client.delete(TaskResourceRep.class, getIdUrl(), id);
        return new Task<VirtualDataCenterRestRep>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     * @param id
     *        the ID of the vdc to delete.
     * @return Task<VirtualDataCenterRestRep> the task to delete the vdc.
     */
    public Task<VirtualDataCenterRestRep>  delete(URI id) {
        TaskResourceRep task = client.delete(TaskResourceRep.class, getIdUrl(), id);
        return new Task<VirtualDataCenterRestRep>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     *
     * @see com.emc.storageos.model.block.VolumeDeleteTypeEnum
     */
    public Task<VolumeRestRep> deactivate(URI id, VolumeDeleteTypeEnum deletionType) {
        URI uri = client.uriBuilder(getDeactivateUrl()).queryParam("type", deletionType).build(id);
        TaskResourceRep task = client.postURI(TaskResourceRep.class, uri);
        return new Task<>(client, task, resourceClass);
    }
View Full Code Here

Examples of com.emc.storageos.model.TaskResourceRep

     *
     * @see com.emc.storageos.model.block.VolumeDeleteTypeEnum
     */
    public Task<VolumeRestRep> deactivate(URI id, VolumeDeleteTypeEnum deletionType) {
        URI uri = client.uriBuilder(getDeactivateUrl()).queryParam("type", deletionType).build(id);
        TaskResourceRep task = client.postURI(TaskResourceRep.class, uri);
        return new Task<>(client, task, resourceClass);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.