ArmStorageModelFactory.ObjectReplicationPolicyData 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 ObjectReplicationPolicyData.
public static Azure.ResourceManager.Storage.ObjectReplicationPolicyData ObjectReplicationPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string policyId = default, DateTimeOffset? enabledOn = default, string sourceAccount = default, string destinationAccount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.Models.ObjectReplicationPolicyRule> rules = default);
static member ObjectReplicationPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<DateTimeOffset> * string * string * seq<Azure.ResourceManager.Storage.Models.ObjectReplicationPolicyRule> -> Azure.ResourceManager.Storage.ObjectReplicationPolicyData
Public Shared Function ObjectReplicationPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional policyId As String = Nothing, Optional enabledOn As Nullable(Of DateTimeOffset) = Nothing, Optional sourceAccount As String = Nothing, Optional destinationAccount As String = Nothing, Optional rules As IEnumerable(Of ObjectReplicationPolicyRule) = Nothing) As ObjectReplicationPolicyData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- policyId
- String
A unique id for object replication policy.
- enabledOn
- Nullable<DateTimeOffset>
Indicates when the policy is enabled on the source account.
- sourceAccount
- String
Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.
- destinationAccount
- String
Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.
The storage account object replication rules.
Returns
A new ObjectReplicationPolicyData instance for mocking.