Interface ScalingPlansClient
public interface ScalingPlansClient
An instance of this class provides access to all the operations defined in ScalingPlansClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan) Create or update a scaling plan.createAsync
(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.Mono<com.azure.core.http.rest.Response<ScalingPlanInner>>
createWithResponseAsync
(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan) Create or update a scaling plan.void
Remove a scaling plan.deleteAsync
(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.deleteWithResponseAsync
(String resourceGroupName, String scalingPlanName) Remove a scaling plan.getByResourceGroup
(String resourceGroupName, String scalingPlanName) Get a scaling plan.getByResourceGroupAsync
(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.Mono<com.azure.core.http.rest.Response<ScalingPlanInner>>
getByResourceGroupWithResponseAsync
(String resourceGroupName, String scalingPlanName) 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.PagedFlux<ScalingPlanInner>
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.PagedFlux<ScalingPlanInner>
listByHostPoolAsync
(String resourceGroupName, String hostPoolName) 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.com.azure.core.http.rest.PagedFlux<ScalingPlanInner>
listByResourceGroupAsync
(String resourceGroupName) List scaling plans.Update a scaling plan.updateAsync
(String resourceGroupName, String scalingPlanName) Update a scaling plan.updateAsync
(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan) 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.Mono<com.azure.core.http.rest.Response<ScalingPlanInner>>
updateWithResponseAsync
(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan) Update a scaling plan.
-
Method Details
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScalingPlanInner>> getByResourceGroupWithResponseAsync(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 along with
Response
on successful completion ofMono
. - 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.
-
getByResourceGroupAsync
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 on successful completion of
Mono
. - 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.
-
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 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.
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScalingPlanInner>> createWithResponseAsync(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 along with
Response
on successful completion ofMono
. - 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.
-
createAsync
Mono<ScalingPlanInner> createAsync(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 on successful completion of
Mono
. - 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 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(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.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteAsync
Remove 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
Mono
that completes when a successful response is received. - 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
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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ScalingPlanInner>> updateWithResponseAsync(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan) 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 along with
Response
on successful completion ofMono
. - 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.
-
updateAsync
Mono<ScalingPlanInner> updateAsync(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan) 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 on successful completion of
Mono
. - 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.
-
updateAsync
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 on successful completion of
Mono
. - 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
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 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ScalingPlanInner> listByResourceGroupAsync(String resourceGroupName) List scaling plans.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- scalingPlanList as paginated response with
PagedFlux
. - 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 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<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 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<ScalingPlanInner> listAsync()List scaling plans in subscription.- Returns:
- scalingPlanList as paginated response with
PagedFlux
. - 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()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
List scaling plans in subscription.- Parameters:
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.
-
listByHostPoolAsync
com.azure.core.http.rest.PagedFlux<ScalingPlanInner> listByHostPoolAsync(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
PagedFlux
. - 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 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<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 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.
-