Interface SqlSyncGroup
- All Superinterfaces:
ChildResource<SqlDatabase>, ExternalChildResource<SqlSyncGroup, SqlDatabase>, HasInnerModel<SyncGroupInner>, HasName, HasParent<SqlDatabase>, HasResourceGroup, Indexable, Refreshable<SqlSyncGroup>, Updatable<SqlSyncGroup.Update>
public interface SqlSyncGroup
extends ExternalChildResource<SqlSyncGroup, SqlDatabase>, HasInnerModel<SyncGroupInner>, HasResourceGroup, Refreshable<SqlSyncGroup>, Updatable<SqlSyncGroup.Update>
An immutable client-side representation of an Azure SQL Server Sync Group.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe template for a SQL Sync Group update operation, containing all the settings that can be modified.static interfaceGrouping of all the SQL Sync Group update stages. -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels a sync group synchronization.Cancels a sync group synchronization asynchronously.Gets conflict resolution policy of the sync group.Gets user name for the sync group hub database credential.voiddelete()Deletes the Sync Group resource.Deletes the SQL Sync Group resource asynchronously.intinterval()Gets sync interval of the sync group.Gets last sync time of the sync group.com.azure.core.http.rest.PagedIterable<SqlSyncFullSchemaProperty> Gets a collection of hub database schemas.com.azure.core.http.rest.PagedFlux<SqlSyncFullSchemaProperty> Gets a collection of hub database schemas asynchronously.com.azure.core.http.rest.PagedIterable<SqlSyncGroupLogProperty> Gets a collection of sync group logs.com.azure.core.http.rest.PagedFlux<SqlSyncGroupLogProperty> listLogsAsync(String startTime, String endTime, String type) Gets a collection of sync group logs asynchronously.parentId()Gets the parent SQL Database ID.voidRefreshes a hub database schema.Refreshes a hub database schema asynchronously.schema()Gets sync schema of the sync group.Gets name of the SQL Database to which this Sync Group belongs.Gets name of the SQL Server to which this Sync Group belongs.Gets the ARM resource id of the sync database in the sync group.Gets the SQL Sync Member entry point.Gets sync state of the sync group.voidTriggers a sync group synchronization.Triggers a sync group synchronization.Methods inherited from interface ExternalChildResource
idMethods inherited from interface HasInnerModel
innerModelMethods inherited from interface HasResourceGroup
resourceGroupNameMethods inherited from interface Refreshable
refresh, refreshAsync
-
Method Details
-
sqlServerName
String sqlServerName()Gets name of the SQL Server to which this Sync Group belongs.- Returns:
- name of the SQL Server to which this Sync Group belongs
-
sqlDatabaseName
String sqlDatabaseName()Gets name of the SQL Database to which this Sync Group belongs.- Returns:
- name of the SQL Database to which this Sync Group belongs
-
parentId
-
interval
int interval()Gets sync interval of the sync group.- Returns:
- sync interval of the sync group
-
lastSyncTime
OffsetDateTime lastSyncTime()Gets last sync time of the sync group.- Returns:
- last sync time of the sync group
-
conflictResolutionPolicy
SyncConflictResolutionPolicy conflictResolutionPolicy()Gets conflict resolution policy of the sync group.- Returns:
- conflict resolution policy of the sync group
-
syncDatabaseId
String syncDatabaseId()Gets the ARM resource id of the sync database in the sync group.- Returns:
- the ARM resource id of the sync database in the sync group
-
databaseUserName
String databaseUserName()Gets user name for the sync group hub database credential.- Returns:
- user name for the sync group hub database credential
-
syncState
-
schema
-
delete
void delete()Deletes the Sync Group resource. -
deleteAsync
-
refreshHubSchema
void refreshHubSchema()Refreshes a hub database schema. -
refreshHubSchemaAsync
-
listHubSchemas
com.azure.core.http.rest.PagedIterable<SqlSyncFullSchemaProperty> listHubSchemas()Gets a collection of hub database schemas.- Returns:
- the paged list of SyncFullSchemaProperty objects if successful.
-
listHubSchemasAsync
com.azure.core.http.rest.PagedFlux<SqlSyncFullSchemaProperty> listHubSchemasAsync()Gets a collection of hub database schemas asynchronously.- Returns:
- a representation of the deferred computation of this call.
-
listLogs
com.azure.core.http.rest.PagedIterable<SqlSyncGroupLogProperty> 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
com.azure.core.http.rest.PagedFlux<SqlSyncGroupLogProperty> 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.
-
triggerSynchronization
void triggerSynchronization()Triggers a sync group synchronization. -
triggerSynchronizationAsync
-
cancelSynchronization
void cancelSynchronization()Cancels a sync group synchronization. -
cancelSynchronizationAsync
-
syncMembers
SqlSyncMemberOperations.SqlSyncMemberActionsDefinition syncMembers()Gets the SQL Sync Member entry point.- Returns:
- the SQL Sync Member entry point
-