Interface TuningOptionsOperations
public interface TuningOptionsOperations
Resource collection API of TuningOptionsOperations.
-
Method Summary
Modifier and TypeMethodDescriptionget(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption) Gets the tuning options of a server.com.azure.core.http.rest.Response<TuningOptions> getWithResponse(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption, com.azure.core.util.Context context) Gets the tuning options of a server.com.azure.core.http.rest.PagedIterable<TuningOptions> listByServer(String resourceGroupName, String serverName) Lists the tuning options of a server.com.azure.core.http.rest.PagedIterable<TuningOptions> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists the tuning options of a server.com.azure.core.http.rest.PagedIterable<ObjectRecommendation> listRecommendations(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption) Lists available object recommendations.com.azure.core.http.rest.PagedIterable<ObjectRecommendation> listRecommendations(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType, com.azure.core.util.Context context) Lists available object recommendations.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<TuningOptions> getWithResponse(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption, com.azure.core.util.Context context) Gets the tuning options of a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.tuningOption- The name of the tuning option.context- The context to associate with this operation.- Returns:
- the tuning options of a server 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.
-
get
TuningOptions get(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption) Gets the tuning options of a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.tuningOption- The name of the tuning option.- Returns:
- the tuning options of a server.
- 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.
-
listRecommendations
com.azure.core.http.rest.PagedIterable<ObjectRecommendation> listRecommendations(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption) Lists available object recommendations.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.tuningOption- The name of the tuning option.- Returns:
- list of available object recommendations 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.
-
listRecommendations
com.azure.core.http.rest.PagedIterable<ObjectRecommendation> listRecommendations(String resourceGroupName, String serverName, TuningOptionParameterEnum tuningOption, RecommendationTypeParameterEnum recommendationType, com.azure.core.util.Context context) Lists available object recommendations.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.tuningOption- The name of the tuning option.recommendationType- Recommendations list filter. Retrieves recommendations based on type.context- The context to associate with this operation.- Returns:
- list of available object recommendations 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<TuningOptions> listByServer(String resourceGroupName, String serverName) Lists the tuning options of a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of server tuning options 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<TuningOptions> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists the tuning options of a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- list of server tuning options 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.
-