Interface SyncAgentsClient
public interface SyncAgentsClient
An instance of this class provides access to all the operations defined in SyncAgentsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters, com.azure.core.util.Context context) Creates or updates a sync agent.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.beginDelete(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.beginDelete(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Deletes a sync agent.beginDeleteAsync(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.createOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.createOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters, com.azure.core.util.Context context) Creates or updates a sync agent.createOrUpdateAsync(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.voidDeletes a sync agent.voiddelete(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Deletes a sync agent.deleteAsync(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.generateKey(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.generateKeyAsync(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.com.azure.core.http.rest.Response<SyncAgentKeyPropertiesInner>generateKeyWithResponse(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Generates a sync agent key.Mono<com.azure.core.http.rest.Response<SyncAgentKeyPropertiesInner>>generateKeyWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.Gets a sync agent.Gets a sync agent.com.azure.core.http.rest.Response<SyncAgentInner>getWithResponse(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Gets a sync agent.Mono<com.azure.core.http.rest.Response<SyncAgentInner>>getWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Gets a sync agent.com.azure.core.http.rest.PagedIterable<SyncAgentInner>listByServer(String resourceGroupName, String serverName) Lists sync agents in a server.com.azure.core.http.rest.PagedIterable<SyncAgentInner>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists sync agents in a server.com.azure.core.http.rest.PagedFlux<SyncAgentInner>listByServerAsync(String resourceGroupName, String serverName) Lists sync agents in a server.com.azure.core.http.rest.PagedIterable<SyncAgentLinkedDatabaseInner>listLinkedDatabases(String resourceGroupName, String serverName, String syncAgentName) Lists databases linked to a sync agent.com.azure.core.http.rest.PagedIterable<SyncAgentLinkedDatabaseInner>listLinkedDatabases(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Lists databases linked to a sync agent.com.azure.core.http.rest.PagedFlux<SyncAgentLinkedDatabaseInner>listLinkedDatabasesAsync(String resourceGroupName, String serverName, String syncAgentName) Lists databases linked to a sync agent.
-
Method Details
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<SyncAgentInner> listByServerAsync(String resourceGroupName, String serverName) Lists sync agents in a server.- 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 on which the sync agent is hosted.- Returns:
- a list of sync agents 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<SyncAgentInner> listByServer(String resourceGroupName, String serverName) Lists sync agents in a server.- 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 on which the sync agent is hosted.- Returns:
- a list of sync agents 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<SyncAgentInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists sync agents in a server.- 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 on which the sync agent is hosted.context- The context to associate with this operation.- Returns:
- a list of sync agents 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<SyncAgentInner>> getWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Gets a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- a sync agent 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 sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- a sync agent 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<SyncAgentInner> getWithResponse(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Gets a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.context- The context to associate with this operation.- Returns:
- a sync agent 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 sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- a sync agent.
- 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, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.- Returns:
- an Azure SQL Database sync agent 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.- Returns:
- the
PollerFluxfor polling of an Azure SQL Database sync agent. - 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<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.- Returns:
- the
SyncPollerfor polling of an Azure SQL Database sync agent. - 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<SyncAgentInner>,SyncAgentInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters, com.azure.core.util.Context context) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an Azure SQL Database sync agent. - 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<SyncAgentInner> createOrUpdateAsync(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.- Returns:
- an Azure SQL Database sync agent 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
SyncAgentInner createOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.- Returns:
- an Azure SQL Database sync agent.
- 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
SyncAgentInner createOrUpdate(String resourceGroupName, String serverName, String syncAgentName, SyncAgentInner parameters, com.azure.core.util.Context context) Creates or updates a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.parameters- The requested sync agent resource state.context- The context to associate with this operation.- Returns:
- an Azure SQL Database sync agent.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- the
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.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- the
PollerFluxfor polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String syncAgentName) Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- the
SyncPollerfor polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - 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.
-
deleteAsync
Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- A
Monothat completes when a successful response is received. - 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.
-
delete
Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- 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.
-
delete
void delete(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Deletes a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.context- The context to associate with this operation.- 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.
-
generateKeyWithResponseAsync
Mono<com.azure.core.http.rest.Response<SyncAgentKeyPropertiesInner>> generateKeyWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- properties of an Azure SQL Database sync agent key 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.
-
generateKeyAsync
Mono<SyncAgentKeyPropertiesInner> generateKeyAsync(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- properties of an Azure SQL Database sync agent key 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.
-
generateKeyWithResponse
com.azure.core.http.rest.Response<SyncAgentKeyPropertiesInner> generateKeyWithResponse(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Generates a sync agent key.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.context- The context to associate with this operation.- Returns:
- properties of an Azure SQL Database sync agent key 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.
-
generateKey
SyncAgentKeyPropertiesInner generateKey(String resourceGroupName, String serverName, String syncAgentName) Generates a sync agent key.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- properties of an Azure SQL Database sync agent key.
- 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.
-
listLinkedDatabasesAsync
com.azure.core.http.rest.PagedFlux<SyncAgentLinkedDatabaseInner> listLinkedDatabasesAsync(String resourceGroupName, String serverName, String syncAgentName) Lists databases linked to a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- a list of sync agent linked databases 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.
-
listLinkedDatabases
com.azure.core.http.rest.PagedIterable<SyncAgentLinkedDatabaseInner> listLinkedDatabases(String resourceGroupName, String serverName, String syncAgentName) Lists databases linked to a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.- Returns:
- a list of sync agent linked databases 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.
-
listLinkedDatabases
com.azure.core.http.rest.PagedIterable<SyncAgentLinkedDatabaseInner> listLinkedDatabases(String resourceGroupName, String serverName, String syncAgentName, com.azure.core.util.Context context) Lists databases linked to a sync agent.- 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 on which the sync agent is hosted.syncAgentName- The name of the sync agent.context- The context to associate with this operation.- Returns:
- a list of sync agent linked databases 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.
-