public Delete delete(String id) { return new Delete(id); }
/** * This method can be called to destroy a snapshot. * * @param id * The id of the snapshot to be destroyed. * @throws ZoneException * - If the snapshot cannot be destroyed. * @see com.att.cdp.zones.SnapshotService#destroySnapshot(java.lang.String) */ @SuppressWarnings("nls") @Override public void destroySnapshot(String id) throws ZoneException { checkArg(id, "id"); connect(); Context context = getContext(); trackRequest(); RequestState.put(RequestState.SNAPSHOT, id); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { nova.getClient().snapshots().delete(id).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }
/** * This method can be called to destroy a snapshot. * * @param id * The id of the snapshot to be destroyed. * @throws ZoneException * - If the snapshot cannot be destroyed. * @see com.att.cdp.zones.VolumeService#destroySnapshot(java.lang.String) */ @SuppressWarnings("nls") @Override public void destroySnapshot(String id) throws ZoneException { checkArg(id, "id"); connect(); Context context = getContext(); trackRequest(); RequestState.put(RequestState.SNAPSHOT, id); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { nova.getClient().snapshots().delete(id).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }
public Delete delete(String id) { return new Delete(id); }