/// <summary>
 /// Initializes a new instance of the SyncAgentLinkedDatabase class.
 /// </summary>
 /// <param name="databaseType">Type of the sync agent linked database.
 /// Possible values include: 'AzureSqlDatabase',
 /// 'SqlServerDatabase'</param>
 /// <param name="databaseId">Id of the sync agent linked
 /// database.</param>
 /// <param name="description">Description of the sync agent linked
 /// database.</param>
 /// <param name="serverName">Server name of the sync agent linked
 /// database.</param>
 /// <param name="databaseName">Database name of the sync agent linked
 /// database.</param>
 /// <param name="userName">User name of the sync agent linked
 /// database.</param>
 public SyncAgentLinkedDatabase(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType databaseType = default(SyncMemberDbType), string databaseId = default(string), string description = default(string), string serverName = default(string), string databaseName = default(string), string userName = default(string))
     : base(id, name, type)
 {
     DatabaseType = databaseType;
     DatabaseId   = databaseId;
     Description  = description;
     ServerName   = serverName;
     DatabaseName = databaseName;
     UserName     = userName;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the SyncMemberInner class.
 /// </summary>
 /// <param name="databaseType">Database type of the sync member.
 /// Possible values include: 'AzureSqlDatabase',
 /// 'SqlServerDatabase'</param>
 /// <param name="syncAgentId">ARM resource id of the sync agent in the
 /// sync member.</param>
 /// <param name="sqlServerDatabaseId">SQL Server database id of the
 /// sync member.</param>
 /// <param name="serverName">Server name of the member database in the
 /// sync member</param>
 /// <param name="databaseName">Database name of the member database in
 /// the sync member.</param>
 /// <param name="userName">User name of the member database in the sync
 /// member.</param>
 /// <param name="password">Password of the member database in the sync
 /// member.</param>
 /// <param name="syncDirection">Sync direction of the sync member.
 /// Possible values include: 'Bidirectional', 'OneWayMemberToHub',
 /// 'OneWayHubToMember'</param>
 /// <param name="syncState">Sync state of the sync member. Possible
 /// values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed',
 /// 'DisabledTombstoneCleanup', 'DisabledBackupRestore',
 /// 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled',
 /// 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed',
 /// 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed',
 /// 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned'</param>
 public SyncMemberInner(string id = default(string), string name = default(string), string type = default(string), SyncMemberDbType databaseType = default(SyncMemberDbType), string syncAgentId = default(string), System.Guid?sqlServerDatabaseId = default(System.Guid?), string serverName = default(string), string databaseName = default(string), string userName = default(string), string password = default(string), SyncDirection syncDirection = default(SyncDirection), SyncMemberState syncState = default(SyncMemberState))
     : base(id, name, type)
 {
     DatabaseType        = databaseType;
     SyncAgentId         = syncAgentId;
     SqlServerDatabaseId = sqlServerDatabaseId;
     ServerName          = serverName;
     DatabaseName        = databaseName;
     UserName            = userName;
     Password            = password;
     SyncDirection       = syncDirection;
     SyncState           = syncState;
     CustomInit();
 }