Share via


ArmContainerRegistryModelFactory.ConnectedRegistrySyncProperties Method

Definition

Initializes a new instance of ConnectedRegistrySyncProperties.

public static Azure.ResourceManager.ContainerRegistry.Models.ConnectedRegistrySyncProperties ConnectedRegistrySyncProperties(Azure.Core.ResourceIdentifier tokenId = default, string schedule = default, TimeSpan? syncWindow = default, TimeSpan messageTtl = default, DateTimeOffset? lastSyncOn = default, string gatewayEndpoint = default);
static member ConnectedRegistrySyncProperties : Azure.Core.ResourceIdentifier * string * Nullable<TimeSpan> * TimeSpan * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.ContainerRegistry.Models.ConnectedRegistrySyncProperties
Public Shared Function ConnectedRegistrySyncProperties (Optional tokenId As ResourceIdentifier = Nothing, Optional schedule As String = Nothing, Optional syncWindow As Nullable(Of TimeSpan) = Nothing, Optional messageTtl As TimeSpan = Nothing, Optional lastSyncOn As Nullable(Of DateTimeOffset) = Nothing, Optional gatewayEndpoint As String = Nothing) As ConnectedRegistrySyncProperties

Parameters

tokenId
ResourceIdentifier

The resource ID of the ACR token used to authenticate the connected registry to its parent during sync.

schedule
String

The cron expression indicating the schedule that the connected registry will sync with its parent.

syncWindow
Nullable<TimeSpan>

The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

messageTtl
TimeSpan

The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

lastSyncOn
Nullable<DateTimeOffset>

The last time a sync occurred between the connected registry and its parent.

gatewayEndpoint
String

The gateway endpoint used by the connected registry to communicate with its parent.

Returns

A new ConnectedRegistrySyncProperties instance for mocking.

Applies to