Skip to content

Commit

Permalink
updated jackson test cases, very initial javadocs, and operations can…
Browse files Browse the repository at this point in the history
… now be performed against Volumes
  • Loading branch information
ankushs92 committed Dec 17, 2017
1 parent d5fc460 commit be36c97
Show file tree
Hide file tree
Showing 24 changed files with 247 additions and 66 deletions.
22 changes: 21 additions & 1 deletion src/main/java/in/ankushs/linode4j/api/LinodeApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@
import in.ankushs.linode4j.model.domain.Domain;
import in.ankushs.linode4j.model.image.Image;
import in.ankushs.linode4j.model.interfaces.Page;
import in.ankushs.linode4j.model.linode.*;
import in.ankushs.linode4j.model.linode.Devices;
import in.ankushs.linode4j.model.linode.Kernel;
import in.ankushs.linode4j.model.linode.Linode;
import in.ankushs.linode4j.model.linode.LinodeType;
import in.ankushs.linode4j.model.linode.request.LinodeCloneRequest;
import in.ankushs.linode4j.model.linode.request.LinodeCreateRequest;
import in.ankushs.linode4j.model.linode.request.LinodeRebuildRequest;
import in.ankushs.linode4j.model.linode.response.LinodeRebuildResponse;
import in.ankushs.linode4j.model.region.Region;
import in.ankushs.linode4j.model.volume.BlockStorageVolume;
import in.ankushs.linode4j.model.volume.request.BlockStorageVolumeAttachRequest;
import in.ankushs.linode4j.model.volume.request.BlockStorageVolumeCreateRequest;

/**
* Created by ankushsharma on 22/11/17.
Expand Down Expand Up @@ -98,5 +104,19 @@ public interface LinodeApi {
Region getRegionById(String regionId);


// ~~~ Volume
Page<BlockStorageVolume> getVolumes(int pageNo);

BlockStorageVolume getVolumeById(int volumeId);

void createVolume(BlockStorageVolumeCreateRequest request);

void deleteVolume(int volumeId);

void attachVolumeToLinode(int volumeId, BlockStorageVolumeAttachRequest request);

void cloneVolume(int volumeId, String label);

void detachVolume(int volumeId);
}

Loading

0 comments on commit be36c97

Please sign in to comment.