Skip to content

Commit

Permalink
Issue #329
Browse files Browse the repository at this point in the history
  • Loading branch information
gondor committed Apr 16, 2015
1 parent 1ebf183 commit 632cfc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,9 @@ public String toString() {
.add("injectedFilePathBytes", injectedFilePathBytes).add("keyPairs", keyPairs)
.toString();
}

@JsonRootName("quota_class_set")
public static class NovaQuotaSetClass extends NovaQuotaSet {
private static final long serialVersionUID = 1L;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.openstack4j.model.compute.SimpleTenantUsage;
import org.openstack4j.openstack.compute.domain.NovaLimits;
import org.openstack4j.openstack.compute.domain.NovaQuotaSet;
import org.openstack4j.openstack.compute.domain.NovaQuotaSet.NovaQuotaSetClass;
import org.openstack4j.openstack.compute.domain.NovaQuotaSetUpdate.NovaQuotaSetUpdateClass;
import org.openstack4j.openstack.compute.domain.NovaQuotaSetUpdate.NovaQuotaSetUpdateTenant;
import org.openstack4j.openstack.compute.domain.NovaSimpleTenantUsage;
Expand Down Expand Up @@ -49,7 +50,7 @@ public QuotaSet updateForClass(String classId, QuotaSetUpdate qs) {
checkNotNull(classId);
checkNotNull(qs);

return put(NovaQuotaSet.class, uri("/os-quota-class-sets/%s", classId)).entity(NovaQuotaSetUpdateClass.from(qs)).execute();
return put(NovaQuotaSetClass.class, uri("/os-quota-class-sets/%s", classId)).entity(NovaQuotaSetUpdateClass.from(qs)).execute();
}

/**
Expand Down

0 comments on commit 632cfc3

Please sign in to comment.