mirror of https://github.com/apache/cloudstack.git
api: Add CopyIsoCmd, boilerplate cmd class for api copyIso
Two apis, copyIso and copyTemplate point to the same Cmd class, the commit adds the child class CopyIsoCmd that extends on CopyTemplateCmd. This just serves as the boilerplate class. Every api cmd name maps 1:1 to a cmd class. Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
983fe9712f
commit
d928014a75
|
|
@ -0,0 +1,30 @@
|
|||
// Licensed to the Apache Software Foundation (ASF) under one
|
||||
// or more contributor license agreements. See the NOTICE file
|
||||
// distributed with this work for additional information
|
||||
// regarding copyright ownership. The ASF licenses this file
|
||||
// to you under the Apache License, Version 2.0 (the
|
||||
// "License"); you may not use this file except in compliance
|
||||
// with the License. You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing,
|
||||
// software distributed under the License is distributed on an
|
||||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
package org.apache.cloudstack.api.command.user.iso;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import org.apache.cloudstack.api.APICommand;
|
||||
import org.apache.cloudstack.api.response.TemplateResponse;
|
||||
import org.apache.cloudstack.api.command.user.template.CopyTemplateCmd;
|
||||
|
||||
@APICommand(name = "copyIso", description="Copies an iso from one zone to another.", responseObject=TemplateResponse.class)
|
||||
public class CopyIsoCmd extends CopyTemplateCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(CopyIsoCmd.class.getName());
|
||||
private static final String s_name = "copyisoresponse";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue