Interface ServerAdvisorsClient
public interface ServerAdvisorsClient
An instance of this class provides access to all the operations defined in ServerAdvisorsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets a server advisor.Gets a server advisor.com.azure.core.http.rest.Response<AdvisorInner> getWithResponse(String resourceGroupName, String serverName, String advisorName, com.azure.core.util.Context context) Gets a server advisor.Mono<com.azure.core.http.rest.Response<AdvisorInner>> getWithResponseAsync(String resourceGroupName, String serverName, String advisorName) Gets a server advisor.listByServer(String resourceGroupName, String serverName) Gets a list of server advisors.listByServerAsync(String resourceGroupName, String serverName) Gets a list of server advisors.com.azure.core.http.rest.Response<List<AdvisorInner>> listByServerWithResponse(String resourceGroupName, String serverName, String expand, com.azure.core.util.Context context) Gets a list of server advisors.Mono<com.azure.core.http.rest.Response<List<AdvisorInner>>> listByServerWithResponseAsync(String resourceGroupName, String serverName, String expand) Gets a list of server advisors.update(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.updateAsync(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.com.azure.core.http.rest.Response<AdvisorInner> updateWithResponse(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters, com.azure.core.util.Context context) Updates a server advisor.Mono<com.azure.core.http.rest.Response<AdvisorInner>> updateWithResponseAsync(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.
-
Method Details
-
listByServerWithResponseAsync
Mono<com.azure.core.http.rest.Response<List<AdvisorInner>>> listByServerWithResponseAsync(String resourceGroupName, String serverName, String expand) Gets a list of server advisors.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.expand- The child resources to include in the response.- Returns:
- a list of server advisors along with
Responseon 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.
-
listByServerAsync
Gets a list of server advisors.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of server advisors 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.
-
listByServerWithResponse
com.azure.core.http.rest.Response<List<AdvisorInner>> listByServerWithResponse(String resourceGroupName, String serverName, String expand, com.azure.core.util.Context context) Gets a list of server advisors.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.expand- The child resources to include in the response.context- The context to associate with this operation.- Returns:
- a list of server advisors 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.
-
listByServer
Gets a list of server advisors.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of server advisors.
- 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<AdvisorInner>> getWithResponseAsync(String resourceGroupName, String serverName, String advisorName) Gets a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.- Returns:
- a server advisor along with
Responseon 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.
-
getAsync
Gets a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.- Returns:
- a server advisor 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.
-
getWithResponse
com.azure.core.http.rest.Response<AdvisorInner> getWithResponse(String resourceGroupName, String serverName, String advisorName, com.azure.core.util.Context context) Gets a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.context- The context to associate with this operation.- Returns:
- a server advisor 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
Gets a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.- Returns:
- a server advisor.
- 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<AdvisorInner>> updateWithResponseAsync(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.parameters- The requested advisor resource state.- Returns:
- database, Server or Elastic Pool Advisor along with
Responseon 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<AdvisorInner> updateAsync(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.parameters- The requested advisor resource state.- Returns:
- database, Server or Elastic Pool Advisor 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.
-
updateWithResponse
com.azure.core.http.rest.Response<AdvisorInner> updateWithResponse(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters, com.azure.core.util.Context context) Updates a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.parameters- The requested advisor resource state.context- The context to associate with this operation.- Returns:
- database, Server or Elastic Pool Advisor 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.
-
update
AdvisorInner update(String resourceGroupName, String serverName, String advisorName, AdvisorInner parameters) Updates a server advisor.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.advisorName- The name of the Server Advisor.parameters- The requested advisor resource state.- Returns:
- database, Server or Elastic Pool Advisor.
- 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.
-