Interface ScalingPlans
public interface ScalingPlans
Resource collection API of ScalingPlans.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ScalingPlan resource.voiddeleteById(String id) Remove a scaling plan.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) Remove a scaling plan.voiddeleteByResourceGroup(String resourceGroupName, String scalingPlanName) Remove a scaling plan.com.azure.core.http.rest.Response<Void>deleteByResourceGroupWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context) Remove a scaling plan.Get a scaling plan.com.azure.core.http.rest.Response<ScalingPlan>getByIdWithResponse(String id, com.azure.core.util.Context context) Get a scaling plan.getByResourceGroup(String resourceGroupName, String scalingPlanName) Get a scaling plan.com.azure.core.http.rest.Response<ScalingPlan>getByResourceGroupWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context) Get a scaling plan.com.azure.core.http.rest.PagedIterable<ScalingPlan>list()List scaling plans in subscription.com.azure.core.http.rest.PagedIterable<ScalingPlan>list(Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plans in subscription.com.azure.core.http.rest.PagedIterable<ScalingPlan>listByHostPool(String resourceGroupName, String hostPoolName) List scaling plan associated with hostpool.com.azure.core.http.rest.PagedIterable<ScalingPlan>listByHostPool(String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plan associated with hostpool.com.azure.core.http.rest.PagedIterable<ScalingPlan>listByResourceGroup(String resourceGroupName) List scaling plans.com.azure.core.http.rest.PagedIterable<ScalingPlan>listByResourceGroup(String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plans.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ScalingPlan> getByResourceGroupWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context) Get a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.context- The context to associate with this operation.- Returns:
- a scaling plan along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Get a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.- Returns:
- a scaling plan.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context) Remove a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Remove a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
List scaling plans.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ScalingPlan> listByResourceGroup(String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plans.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.pageSize- Number of items per page.isDescending- Indicates whether the collection is descending.initialSkip- Initial number of items to skip.context- The context to associate with this operation.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScalingPlan> list()List scaling plans in subscription.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ScalingPlan> list(Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plans in subscription.- Parameters:
pageSize- Number of items per page.isDescending- Indicates whether the collection is descending.initialSkip- Initial number of items to skip.context- The context to associate with this operation.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByHostPool
com.azure.core.http.rest.PagedIterable<ScalingPlan> listByHostPool(String resourceGroupName, String hostPoolName) List scaling plan associated with hostpool.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.hostPoolName- The name of the host pool within the specified resource group.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByHostPool
com.azure.core.http.rest.PagedIterable<ScalingPlan> listByHostPool(String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip, com.azure.core.util.Context context) List scaling plan associated with hostpool.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.hostPoolName- The name of the host pool within the specified resource group.pageSize- Number of items per page.isDescending- Indicates whether the collection is descending.initialSkip- Initial number of items to skip.context- The context to associate with this operation.- Returns:
- scalingPlanList as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get a scaling plan.- Parameters:
id- the resource ID.- Returns:
- a scaling plan along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ScalingPlan> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a scaling plan.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a scaling plan along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Remove a scaling plan.- Parameters:
id- the resource ID.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Remove a scaling plan.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new ScalingPlan resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new ScalingPlan definition.
-