ArmContainerRegistryModelFactory.ConnectedRegistrySyncProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Azure SDK for .NET