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.
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, bool? isMetricsEnabled = default, bool? isPriorityReplicationEnabled = default, bool? isTagsReplicationEnabled = 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> * Nullable<bool> * Nullable<bool> * Nullable<bool> -> 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, Optional isMetricsEnabled As Nullable(Of Boolean) = Nothing, Optional isPriorityReplicationEnabled As Nullable(Of Boolean) = Nothing, Optional isTagsReplicationEnabled As Nullable(Of Boolean) = Nothing) As ObjectReplicationPolicyData
Parameters
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.
- 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.
Indicates whether object replication metrics feature is enabled for the policy.
Indicates whether object replication priority replication feature is enabled for the policy.
Indicates whether object replication tags replication feature is enabled for the policy.
Returns
A new ObjectReplicationPolicyData instance for mocking.