congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Snapshot.getVolumeId
Code IndexAdd Tabnine to your IDE (free)

How to use
getVolumeId
method
in
io.cattle.platform.core.model.Snapshot

Best Java code snippets using io.cattle.platform.core.model.Snapshot.getVolumeId (Showing top 4 results out of 315)

origin: rancher/cattle

  void validateSnapshotRemove(ApiRequest request) {
    Snapshot snapshot = objectManager.loadResource(Snapshot.class, request.getId());
    Map<Object, Object> criteria = new HashMap<Object, Object>();
    criteria.put(SNAPSHOT.VOLUME_ID, snapshot.getVolumeId());
    criteria.put(SNAPSHOT.REMOVED, null);
    criteria.put(SNAPSHOT.ID, new Condition(ConditionType.GT, snapshot.getId()));
    List<Snapshot> snapshots = objectManager.find(Snapshot.class, criteria);
    if (snapshots.size() == 0) {
      throw new ClientVisibleException(ResponseCodes.BAD_REQUEST, ValidationErrorCodes.INVALID_STATE,
          "This snapshot cannot be removed because it is the latest one for the volume.", null);
    }
  }
}
origin: rancher/cattle

if (!snapshot.getVolumeId().equals(volumeId)) {
  throw new ClientVisibleException(ResponseCodes.UNPROCESSABLE_ENTITY, ValidationErrorCodes.INVALID_REFERENCE,
      "Snapshot is not for the specified volume.", null);
origin: rancher/cattle

backup.setAccountId(snapshot.getAccountId());
backup.setSnapshotId(snapshot.getId());
backup.setVolumeId(snapshot.getVolumeId());
backup.setBackupTargetId(targetId);
backup = objectManager.create(backup);
origin: rancher/cattle

/**
 * {@inheritDoc}
 */
@Override
public void from(io.cattle.platform.core.model.Snapshot from) {
  setId(from.getId());
  setName(from.getName());
  setAccountId(from.getAccountId());
  setKind(from.getKind());
  setUuid(from.getUuid());
  setDescription(from.getDescription());
  setState(from.getState());
  setCreated(from.getCreated());
  setRemoved(from.getRemoved());
  setRemoveTime(from.getRemoveTime());
  setData(from.getData());
  setVolumeId(from.getVolumeId());
}
io.cattle.platform.core.modelSnapshotgetVolumeId

Javadoc

Getter for cattle.snapshot.volume_id.

Popular methods of Snapshot

  • getId
    Getter for cattle.snapshot.id.
  • getAccountId
    Getter for cattle.snapshot.account_id.
  • getRemoved
    Getter for cattle.snapshot.removed.
  • getState
    Getter for cattle.snapshot.state.
  • from
    Load data from another generated Record/POJO implementing the common interface Snapshot
  • getCreated
    Getter for cattle.snapshot.created.
  • getData
    Getter for cattle.snapshot.data.
  • getDescription
    Getter for cattle.snapshot.description.
  • getKind
    Getter for cattle.snapshot.kind.
  • getName
    Getter for cattle.snapshot.name.
  • getRemoveTime
    Getter for cattle.snapshot.remove_time.
  • getUuid
    Getter for cattle.snapshot.uuid.
  • getRemoveTime,
  • getUuid,
  • setAccountId,
  • setKind,
  • setName,
  • setVolumeId

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now