ArmContainerRegistryModelFactory.ContainerRegistryCacheRuleData 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 ContainerRegistryCacheRuleData.
public static Azure.ResourceManager.ContainerRegistry.ContainerRegistryCacheRuleData ContainerRegistryCacheRuleData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.Core.ResourceIdentifier credentialSetResourceId = default, string sourceRepository = default, string targetRepository = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState? provisioningState = default);
static member ContainerRegistryCacheRuleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.Core.ResourceIdentifier * string * string * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState> -> Azure.ResourceManager.ContainerRegistry.ContainerRegistryCacheRuleData
Public Shared Function ContainerRegistryCacheRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional credentialSetResourceId As ResourceIdentifier = Nothing, Optional sourceRepository As String = Nothing, Optional targetRepository As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As Nullable(Of ContainerRegistryProvisioningState) = Nothing) As ContainerRegistryCacheRuleData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- credentialSetResourceId
- ResourceIdentifier
The ARM resource ID of the credential store which is associated with the cache rule.
- sourceRepository
- String
Source repository pulled from upstream.
- targetRepository
- String
Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
- createdOn
- Nullable<DateTimeOffset>
The creation date of the cache rule.
- provisioningState
- Nullable<ContainerRegistryProvisioningState>
Provisioning state of the resource.
Returns
A new ContainerRegistryCacheRuleData instance for mocking.
Applies to
Azure SDK for .NET