Share via


ArmSqlModelFactory.SyncAgentData Method

Definition

Initializes a new instance of SyncAgentData.

public static Azure.ResourceManager.Sql.SyncAgentData SyncAgentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier syncDatabaseId = default, DateTimeOffset? lastAliveOn = default, Azure.ResourceManager.Sql.Models.SyncAgentState? state = default, bool? isUpToDate = default, DateTimeOffset? expireOn = default, string version = default);
static member SyncAgentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.SyncAgentState> * Nullable<bool> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.Sql.SyncAgentData
Public Shared Function SyncAgentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional syncDatabaseId As ResourceIdentifier = Nothing, Optional lastAliveOn As Nullable(Of DateTimeOffset) = Nothing, Optional state As Nullable(Of SyncAgentState) = Nothing, Optional isUpToDate As Nullable(Of Boolean) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional version As String = Nothing) As SyncAgentData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

syncDatabaseId
ResourceIdentifier

ARM resource id of the sync database in the sync agent.

lastAliveOn
Nullable<DateTimeOffset>

Last alive time of the sync agent.

state
Nullable<SyncAgentState>

State of the sync agent.

isUpToDate
Nullable<Boolean>

If the sync agent version is up to date.

expireOn
Nullable<DateTimeOffset>

Expiration time of the sync agent version.

version
String

Version of the sync agent.

Returns

A new SyncAgentData instance for mocking.

Applies to