Interface ServerConnectionPoliciesClient


public interface ServerConnectionPoliciesClient
An instance of this class provides access to all the operations defined in ServerConnectionPoliciesClient.
  • Method Details

    • listByServerAsync

      com.azure.core.http.rest.PagedFlux<ServerConnectionPolicyInner> listByServerAsync(String resourceGroupName, String serverName)
      Lists connection policy.
      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 connection policy objects 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<ServerConnectionPolicyInner> listByServer(String resourceGroupName, String serverName)
      Lists connection policy.
      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 connection policy objects 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<ServerConnectionPolicyInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      Lists connection policy.
      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.
      context - The context to associate with this operation.
      Returns:
      a list of server connection policy objects 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ServerConnectionPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName)
      Gets a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      Returns:
      a server connection policy along with Response 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.
    • getAsync

      Mono<ServerConnectionPolicyInner> getAsync(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName)
      Gets a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      Returns:
      a server connection policy 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<ServerConnectionPolicyInner> getWithResponse(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, com.azure.core.util.Context context)
      Gets a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      context - The context to associate with this operation.
      Returns:
      a server connection policy 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

      ServerConnectionPolicyInner get(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName)
      Gets a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      Returns:
      a server connection policy.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      Returns:
      a server connection policy along with Response 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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerConnectionPolicyInner>, ServerConnectionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      Returns:
      the PollerFlux for polling of a server connection policy.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerConnectionPolicyInner>, ServerConnectionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      Returns:
      the SyncPoller for polling of a server connection policy.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerConnectionPolicyInner>, ServerConnectionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters, com.azure.core.util.Context context)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a server connection policy.
      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.
    • createOrUpdateAsync

      Mono<ServerConnectionPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      Returns:
      a server connection policy 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.
    • createOrUpdate

      ServerConnectionPolicyInner createOrUpdate(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      Returns:
      a server connection policy.
      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.
    • createOrUpdate

      ServerConnectionPolicyInner createOrUpdate(String resourceGroupName, String serverName, ConnectionPolicyName connectionPolicyName, ServerConnectionPolicyInner parameters, com.azure.core.util.Context context)
      Updates a server connection policy.
      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.
      connectionPolicyName - The name of the connection policy.
      parameters - The required parameters for updating a server connection policy.
      context - The context to associate with this operation.
      Returns:
      a server connection policy.
      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.