forked from woorea/openstack-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request woorea#66 from ow2-sirocco/volume-attach
Add volume attachment list and show commands, fix detach command
- Loading branch information
Showing
2 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
nova-model/src/main/java/com/woorea/openstack/nova/model/VolumeAttachments.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.woorea.openstack.nova.model; | ||
|
||
import java.io.Serializable; | ||
import java.util.Iterator; | ||
import java.util.List; | ||
|
||
import org.codehaus.jackson.annotate.JsonProperty; | ||
|
||
public class VolumeAttachments implements Iterable<VolumeAttachment>, Serializable { | ||
|
||
@JsonProperty("volumeAttachments") | ||
private List<VolumeAttachment> list; | ||
|
||
/** | ||
* @return the list | ||
*/ | ||
public List<VolumeAttachment> getList() { | ||
return list; | ||
} | ||
|
||
@Override | ||
public Iterator<VolumeAttachment> iterator() { | ||
return list.iterator(); | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see java.lang.Object#toString() | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "VolumeAttachments [list=" + list + "]"; | ||
} | ||
|
||
} |