Interface BestPractices


public interface BestPractices
Resource collection API of BestPractices.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String bestPracticeName)
    Get information about a Automanage best practice.
    com.azure.core.http.rest.Response<BestPractice>
    getWithResponse(String bestPracticeName, com.azure.core.util.Context context)
    Get information about a Automanage best practice.
    com.azure.core.http.rest.PagedIterable<BestPractice>
    Retrieve a list of Automanage best practices.
    com.azure.core.http.rest.PagedIterable<BestPractice>
    listByTenant(com.azure.core.util.Context context)
    Retrieve a list of Automanage best practices.
  • Method Details

    • get

      BestPractice get(String bestPracticeName)
      Get information about a Automanage best practice.
      Parameters:
      bestPracticeName - The Automanage best practice name.
      Returns:
      information about a Automanage best practice.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<BestPractice> getWithResponse(String bestPracticeName, com.azure.core.util.Context context)
      Get information about a Automanage best practice.
      Parameters:
      bestPracticeName - The Automanage best practice name.
      context - The context to associate with this operation.
      Returns:
      information about a Automanage best practice 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.
    • listByTenant

      com.azure.core.http.rest.PagedIterable<BestPractice> listByTenant()
      Retrieve a list of Automanage best practices.
      Returns:
      the response of the list best practice operation 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.
    • listByTenant

      com.azure.core.http.rest.PagedIterable<BestPractice> listByTenant(com.azure.core.util.Context context)
      Retrieve a list of Automanage best practices.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the response of the list best practice operation 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.