You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Prasanna Santhanam (JIRA)" <ji...@apache.org> on 2013/05/31 15:11:21 UTC

[jira] [Updated] (CLOUDSTACK-2789) updateVpc should have id and name as required attributes

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Prasanna Santhanam updated CLOUDSTACK-2789:
-------------------------------------------

    Description: 
id is not a required attribute in updateVpcCMd.java but without the id and a name one cannot update the vpc.


@APICommand(name = "updateVPC", description="Updates a VPC", responseObject=VpcResponse.class)
public class UpdateVPCCmd extends BaseAsyncCmd{
    public static final Logger s_logger = Logger.getLogger(UpdateVPCCmd.class.getName());
    private static final String _name = "updatevpcresponse";

    /////////////////////////////////////////////////////
    //////////////// API parameters /////////////////////
    /////////////////////////////////////////////////////

    @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType=VpcResponse.class,
            description="the id of the VPC")
    private Long id;

    @Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="the name of the VPC")
    private String vpcName;


  was:
id is not a required attribute in restartVpcOfferingCmd.java but without the id one cannot update the vpc offering.


@APICommand(name = "restartVPC", description="Restarts a VPC", responseObject=VpcResponse.class)
public class RestartVPCCmd extends BaseAsyncCmd{
    public static final Logger s_logger = Logger.getLogger(RestartVPCCmd.class.getName());
    private static final String _name = "restartvpcresponse";

    /////////////////////////////////////////////////////
    //////////////// API parameters /////////////////////
    /////////////////////////////////////////////////////

    @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType=VpcResponse.class,
            description="the id of the VPC")
    private Long id;


    
> updateVpc should have id and name as required attributes
> --------------------------------------------------------
>
>                 Key: CLOUDSTACK-2789
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2789
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.2.0
>            Reporter: Prasanna Santhanam
>             Fix For: 4.2.0
>
>
> id is not a required attribute in updateVpcCMd.java but without the id and a name one cannot update the vpc.
> @APICommand(name = "updateVPC", description="Updates a VPC", responseObject=VpcResponse.class)
> public class UpdateVPCCmd extends BaseAsyncCmd{
>     public static final Logger s_logger = Logger.getLogger(UpdateVPCCmd.class.getName());
>     private static final String _name = "updatevpcresponse";
>     /////////////////////////////////////////////////////
>     //////////////// API parameters /////////////////////
>     /////////////////////////////////////////////////////
>     @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType=VpcResponse.class,
>             description="the id of the VPC")
>     private Long id;
>     @Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="the name of the VPC")
>     private String vpcName;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira