SqlSyncGroup Interface

public interface SqlSyncGroup extends ExternalChildResource<SqlSyncGroup, SqlDatabase>,HasInner,HasResourceGroup,Refreshable,Updatable<SqlSyncGroup.Update>

An immutable client-side representation of an Azure SQL Server Sync Group.

Method Summary

Modifier and Type Method and Description
void cancelSynchronization()

Cancels a sync group synchronization.

Completable cancelSynchronizationAsync()

Cancels a sync group synchronization asynchronously.

SyncConflictResolutionPolicy conflictResolutionPolicy()
String databaseUserName()
void delete()

Deletes the Sync Group resource.

Completable deleteAsync()

Deletes the SQL Sync Group resource asynchronously.

int interval()
DateTime lastSyncTime()
PagedList<SqlSyncFullSchemaProperty> listHubSchemas()

Gets a collection of hub database schemas.

Observable<SqlSyncFullSchemaProperty> listHubSchemasAsync()

Gets a collection of hub database schemas asynchronously.

PagedList<SqlSyncGroupLogProperty> listLogs(String startTime, String endTime, String type)

Gets a collection of sync group logs.

Observable<SqlSyncGroupLogProperty> listLogsAsync(String startTime, String endTime, String type)

Gets a collection of sync group logs asynchronously.

String parentId()
void refreshHubSchema()

Refreshes a hub database schema.

Completable refreshHubSchemaAsync()

Refreshes a hub database schema asynchronously.

SyncGroupSchema schema()
String sqlDatabaseName()
String sqlServerName()
String syncDatabaseId()
SqlSyncMemberOperations.SqlSyncMemberActionsDefinition syncMembers()
SyncGroupState syncState()
void triggerSynchronization()

Triggers a sync group synchronization.

Completable triggerSynchronizationAsync()

Triggers a sync group synchronization.

Inherited Members

Method Details

cancelSynchronization

public void cancelSynchronization()

Cancels a sync group synchronization.

cancelSynchronizationAsync

public Completable cancelSynchronizationAsync()

Cancels a sync group synchronization asynchronously.

Returns:

a representation of the deferred computation of this call

conflictResolutionPolicy

public SyncConflictResolutionPolicy conflictResolutionPolicy()

Returns:

conflict resolution policy of the sync group

databaseUserName

public String databaseUserName()

Returns:

user name for the sync group hub database credential

delete

public void delete()

Deletes the Sync Group resource.

deleteAsync

public Completable deleteAsync()

Deletes the SQL Sync Group resource asynchronously.

Returns:

a representation of the deferred computation of this call

interval

public int interval()

Returns:

sync interval of the sync group

lastSyncTime

public DateTime lastSyncTime()

Returns:

last sync time of the sync group

listHubSchemas

public PagedList listHubSchemas()

Gets a collection of hub database schemas.

Returns:

the paged list of SyncFullSchemaProperty objects if successful.

listHubSchemasAsync

public Observable listHubSchemasAsync()

Gets a collection of hub database schemas asynchronously.

Returns:

a representation of the deferred computation of this call.

listLogs

public PagedList listLogs(String startTime, String endTime, String type)

Gets a collection of sync group logs.

Parameters:

startTime - get logs generated after this time.
endTime - get logs generated before this time.
type - the types of logs to retrieve

Returns:

the paged list containing the group log property objects if successful.

listLogsAsync

public Observable listLogsAsync(String startTime, String endTime, String type)

Gets a collection of sync group logs asynchronously.

Parameters:

startTime - get logs generated after this time.
endTime - get logs generated before this time.
type - the types of logs to retrieve

Returns:

a representation of the deferred computation of this call returning the group log property objects if successful.

parentId

public String parentId()

Returns:

the parent SQL Database ID

refreshHubSchema

public void refreshHubSchema()

Refreshes a hub database schema.

refreshHubSchemaAsync

public Completable refreshHubSchemaAsync()

Refreshes a hub database schema asynchronously.

Returns:

a representation of the deferred computation of this call

schema

public SyncGroupSchema schema()

Returns:

sync schema of the sync group

sqlDatabaseName

public String sqlDatabaseName()

Returns:

name of the SQL Database to which this Sync Group belongs

sqlServerName

public String sqlServerName()

Returns:

name of the SQL Server to which this Sync Group belongs

syncDatabaseId

public String syncDatabaseId()

Returns:

the ARM resource id of the sync database in the sync group

syncMembers

public SqlSyncMemberOperations.SqlSyncMemberActionsDefinition syncMembers()

Returns:

the SQL Sync Member entry point

syncState

public SyncGroupState syncState()

Returns:

sync state of the sync group

triggerSynchronization

public void triggerSynchronization()

Triggers a sync group synchronization.

triggerSynchronizationAsync

public Completable triggerSynchronizationAsync()

Triggers a sync group synchronization.

Returns:

a representation of the deferred computation of this call

Applies to