Skip to content

Commit

Permalink
Merge pull request #132 from tetsuya-oikawa/master
Browse files Browse the repository at this point in the history
Added API to delete metadata on a running server
  • Loading branch information
woorea committed Mar 13, 2014
2 parents e9a9f6c + 92f4f37 commit 820306d
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -66,7 +66,9 @@ public CreateOrUpdateMetadata createOrUpdateMetadata(String id,Metadata metadata
public ReplaceMetadata replaceMetadata(String id,Metadata metadata) {
return new ReplaceMetadata(id,metadata);
}

public DeleteMetadata deleteMetadata(String id, String key) {
return new DeleteMetadata(id,key);
}

public Delete delete(String id) {
return new Delete(id);
Expand Down Expand Up @@ -122,6 +124,14 @@ public ReplaceMetadata(String id,Metadata metadata) {

}

public class DeleteMetadata extends OpenStackRequest<Void> {

public DeleteMetadata(String id,String key) {
super(CLIENT, HttpMethod.DELETE, new StringBuilder("/servers/").append(id).append("/metadata/").append(key), null, Void.class);
}

}


public class Delete extends OpenStackRequest<Void> {

Expand Down

0 comments on commit 820306d

Please sign in to comment.