Language

ArmSqlModelFactory.SyncAgentData Method

Definition

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

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

syncAgentName
String

Name of the sync agent.

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