Interface ScalingPlansClient
-
public interface ScalingPlansClientAn instance of this class provides access to all the operations defined in ScalingPlansClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScalingPlanInnercreate(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan)Create or update a scaling plan.com.azure.core.http.rest.Response<ScalingPlanInner>createWithResponse(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, com.azure.core.util.Context context)Create or update a scaling plan.voiddelete(String resourceGroupName, String scalingPlanName)Remove a scaling plan.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context)Remove a scaling plan.ScalingPlanInnergetByResourceGroup(String resourceGroupName, String scalingPlanName)Get a scaling plan.com.azure.core.http.rest.Response<ScalingPlanInner>getByResourceGroupWithResponse(String resourceGroupName, String scalingPlanName, com.azure.core.util.Context context)Get a scaling plan.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>list()List scaling plans in subscription.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>list(com.azure.core.util.Context context)List scaling plans in subscription.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>listByHostPool(String resourceGroupName, String hostPoolName)List scaling plan associated with hostpool.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>listByHostPool(String resourceGroupName, String hostPoolName, com.azure.core.util.Context context)List scaling plan associated with hostpool.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>listByResourceGroup(String resourceGroupName)List scaling plans.com.azure.core.http.rest.PagedIterable<ScalingPlanInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)List scaling plans.ScalingPlanInnerupdate(String resourceGroupName, String scalingPlanName)Update a scaling plan.com.azure.core.http.rest.Response<ScalingPlanInner>updateWithResponse(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, com.azure.core.util.Context context)Update a scaling plan.
-
-
-
Method Detail
-
getByResourceGroup
ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName)
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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ScalingPlanInner> 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.
- 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.
-
create
ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan)
Create or update a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.scalingPlan- Object containing scaling plan definitions.- Returns:
- scalingPlan.
- 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.
-
createWithResponse
com.azure.core.http.rest.Response<ScalingPlanInner> createWithResponse(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, com.azure.core.util.Context context)
Create or update a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.scalingPlan- Object containing scaling plan definitions.context- The context to associate with this operation.- Returns:
- scalingPlan.
- 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.
-
delete
void delete(String resourceGroupName, String scalingPlanName)
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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(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.
-
update
ScalingPlanInner update(String resourceGroupName, String scalingPlanName)
Update a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.- Returns:
- scalingPlan.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ScalingPlanInner> updateWithResponse(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, com.azure.core.util.Context context)
Update a scaling plan.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.scalingPlanName- The name of the scaling plan.scalingPlan- Object containing scaling plan definitions.context- The context to associate with this operation.- Returns:
- scalingPlan.
- 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<ScalingPlanInner> listByResourceGroup(String resourceGroupName)
List scaling plans.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- scalingPlanList.
- 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<ScalingPlanInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List scaling plans.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- scalingPlanList.
- 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<ScalingPlanInner> list()
List scaling plans in subscription.- Returns:
- scalingPlanList.
- 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<ScalingPlanInner> list(com.azure.core.util.Context context)
List scaling plans in subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- scalingPlanList.
- 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<ScalingPlanInner> 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.
- 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<ScalingPlanInner> listByHostPool(String resourceGroupName, String hostPoolName, 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.context- The context to associate with this operation.- Returns:
- scalingPlanList.
- 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.
-
-