Interface ScalingPlans


  • public interface ScalingPlans
    Resource collection API of ScalingPlans.
    • Method Detail

      • getByResourceGroup

        ScalingPlan 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<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.
        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

        void deleteByResourceGroup​(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.
      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<ScalingPlan> 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<ScalingPlan> 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<ScalingPlan> 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<ScalingPlan> 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<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.
        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,
                                                                           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.
      • getById

        ScalingPlan getById​(String id)
        Get a scaling plan.
        Parameters:
        id - the resource ID.
        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.
      • 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.
        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

        void deleteById​(String id)
        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

        ScalingPlan.DefinitionStages.Blank define​(String name)
        Begins definition for a new ScalingPlan resource.
        Parameters:
        name - resource name.
        Returns:
        the first stage of the new ScalingPlan definition.