Skip to content

Commit feb342a

Browse files
committed
api_refactor: refactor autoscale apis
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 456b852 commit feb342a

21 files changed

Lines changed: 55 additions & 60 deletions

‎api/src/com/cloud/network/as/AutoScaleService.java‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818

1919
import java.util.List;
2020

21-
import com.cloud.api.commands.CreateAutoScalePolicyCmd;
22-
import com.cloud.api.commands.CreateAutoScaleVmGroupCmd;
23-
import com.cloud.api.commands.CreateAutoScaleVmProfileCmd;
24-
import com.cloud.api.commands.CreateConditionCmd;
21+
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScalePolicyCmd;
22+
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmGroupCmd;
23+
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmProfileCmd;
24+
import org.apache.cloudstack.api.user.autoscale.command.*;
2525
import com.cloud.api.commands.CreateCounterCmd;
26-
import com.cloud.api.commands.ListAutoScalePoliciesCmd;
27-
import com.cloud.api.commands.ListAutoScaleVmGroupsCmd;
28-
import com.cloud.api.commands.ListAutoScaleVmProfilesCmd;
29-
import com.cloud.api.commands.ListConditionsCmd;
30-
import com.cloud.api.commands.ListCountersCmd;
31-
import com.cloud.api.commands.UpdateAutoScalePolicyCmd;
32-
import com.cloud.api.commands.UpdateAutoScaleVmGroupCmd;
33-
import com.cloud.api.commands.UpdateAutoScaleVmProfileCmd;
26+
import org.apache.cloudstack.api.user.autoscale.command.ListAutoScalePoliciesCmd;
27+
import org.apache.cloudstack.api.user.autoscale.command.ListConditionsCmd;
28+
import org.apache.cloudstack.api.user.autoscale.command.UpdateAutoScaleVmGroupCmd;
29+
import org.apache.cloudstack.api.user.autoscale.command.UpdateAutoScaleVmProfileCmd;
3430
import com.cloud.exception.ResourceInUseException;
3531
import com.cloud.exception.ResourceUnavailableException;
3632

api/src/com/cloud/api/commands/CreateAutoScalePolicyCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/CreateAutoScalePolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import java.util.List;
2020

api/src/com/cloud/api/commands/CreateAutoScaleVmGroupCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/CreateAutoScaleVmGroupCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import java.util.List;
2020

api/src/com/cloud/api/commands/CreateAutoScaleVmProfileCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/CreateAutoScaleVmProfileCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import java.util.HashMap;
2020
import java.util.Map;

api/src/com/cloud/api/commands/CreateConditionCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/CreateConditionCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
package com.cloud.api.commands;
18+
package org.apache.cloudstack.api.user.autoscale.command;
1919

2020
import org.apache.log4j.Logger;
2121

api/src/com/cloud/api/commands/DeleteAutoScalePolicyCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/DeleteAutoScalePolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DeleteAutoScaleVmGroupCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/DeleteAutoScaleVmGroupCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DeleteAutoScaleVmProfileCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/DeleteAutoScaleVmProfileCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.autoscale.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DeleteConditionCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/DeleteConditionCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
package com.cloud.api.commands;
18+
package org.apache.cloudstack.api.user.autoscale.command;
1919

2020
import org.apache.log4j.Logger;
2121

api/src/com/cloud/api/commands/DisableAutoScaleVmGroupCmd.java renamed to api/src/org/apache/cloudstack/api/user/autoscale/command/DisableAutoScaleVmGroupCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
package com.cloud.api.commands;
18+
package org.apache.cloudstack.api.user.autoscale.command;
1919

2020
import org.apache.log4j.Logger;
2121

0 commit comments

Comments
 (0)