Updated Branches: refs/heads/api_refactoring ced1aabf8 -> e5fc51325
api: Annotate guest related apis Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/e5fc5132 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e5fc5132 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e5fc5132 Branch: refs/heads/api_refactoring Commit: e5fc513257587ab1d5b98567eb18980826981b6e Parents: ced1aab Author: Rohit Yadav <[email protected]> Authored: Sat Dec 22 20:44:02 2012 -0800 Committer: Rohit Yadav <[email protected]> Committed: Sat Dec 22 20:44:02 2012 -0800 ---------------------------------------------------------------------- .../user/guest/ListGuestOsCategoriesCmd.java | 5 ++--- .../api/command/user/guest/ListGuestOsCmd.java | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e5fc5132/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCategoriesCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCategoriesCmd.java b/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCategoriesCmd.java index a98bd86..5209777 100644 --- a/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCategoriesCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCategoriesCmd.java @@ -24,7 +24,6 @@ import org.apache.log4j.Logger; import org.apache.cloudstack.api.ApiConstants; import org.apache.cloudstack.api.BaseListCmd; -import org.apache.cloudstack.api.IdentityMapper; import org.apache.cloudstack.api.Implementation; import org.apache.cloudstack.api.Parameter; import org.apache.cloudstack.api.response.GuestOSCategoryResponse; @@ -42,8 +41,8 @@ public class ListGuestOsCategoriesCmd extends BaseListCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @IdentityMapper(entityTableName="guest_os_category") - @Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="list Os category by id") + @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = GuestOSCategoryResponse.class, + description="list Os category by id") private Long id; @Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="list os category by name", since="3.0.1") http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e5fc5132/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCmd.java b/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCmd.java index c47c0b4..93d2d46 100644 --- a/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/guest/ListGuestOsCmd.java @@ -20,11 +20,11 @@ import java.util.ArrayList; import java.util.List; import org.apache.cloudstack.api.command.user.iso.ListIsosCmd; +import org.apache.cloudstack.api.response.GuestOSCategoryResponse; import org.apache.log4j.Logger; import org.apache.cloudstack.api.ApiConstants; import org.apache.cloudstack.api.BaseListCmd; -import org.apache.cloudstack.api.IdentityMapper; import org.apache.cloudstack.api.Implementation; import org.apache.cloudstack.api.Parameter; import org.apache.cloudstack.api.response.GuestOSResponse; @@ -42,12 +42,12 @@ public class ListGuestOsCmd extends BaseListCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @IdentityMapper(entityTableName="guest_os") - @Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="list by Os type Id") + @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = GuestOSResponse.class, + description="list by Os type Id") private Long id; - @IdentityMapper(entityTableName="guest_os_category") - @Parameter(name=ApiConstants.OS_CATEGORY_ID, type=CommandType.LONG, description="list by Os Category id") + @Parameter(name=ApiConstants.OS_CATEGORY_ID, type=CommandType.UUID, entityType = GuestOSCategoryResponse.class, + description="list by Os Category id") private Long osCategoryId; @Parameter(name=ApiConstants.DESCRIPTION, type=CommandType.STRING, description="list os by description", since="3.0.1")
