package org.zstack.header.identity;

import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
@Action(category = AccountConstant.ACTION_CATEGORY, accountOnly = true)
public class APIAttachPolicyToUserGroupMsg extends APIMessage implements AccountMessage {
    @APIParam(checkAccount = true, operationTarget = true)
    private String policyUuid;
    @APIParam(checkAccount = true, operationTarget = true)
    private String groupUuid;
    
    @Override
    public String getAccountUuid() {
        return this.getSession().getAccountUuid();
    }

    public String getPolicyUuid() {
        return policyUuid;
    }

    public void setPolicyUuid(String policyUuid) {
        this.policyUuid = policyUuid;
    }

    public String getGroupUuid() {
        return groupUuid;
    }

    public void setGroupUuid(String groupUuid) {
        this.groupUuid = groupUuid;
    }
}

@@ -292,32 +292,63 @@
 %0D%0A    @APIParam(
+resourceType = PolicyVO.class, 
 checkAccount = t
@@ -423,16 +423,50 @@
 PIParam(
+resourceType = UserGroupVO.class, 
 checkAcc

check resource type in APIAttachPolicyToUserGroupMsg