Share via


ObjectReplicationPolicy Constructors

Definition

Overloads

ObjectReplicationPolicy()

Initializes a new instance of the ObjectReplicationPolicy class.

ObjectReplicationPolicy(String, String, String, String, String, String, Nullable<DateTime>, IList<ObjectReplicationPolicyRule>)

Initializes a new instance of the ObjectReplicationPolicy class.

ObjectReplicationPolicy()

Initializes a new instance of the ObjectReplicationPolicy class.

public ObjectReplicationPolicy ();
Public Sub New ()

Applies to

ObjectReplicationPolicy(String, String, String, String, String, String, Nullable<DateTime>, IList<ObjectReplicationPolicyRule>)

Initializes a new instance of the ObjectReplicationPolicy class.

public ObjectReplicationPolicy (string sourceAccount, string destinationAccount, string id = default, string name = default, string type = default, string policyId = default, DateTime? enabledTime = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.ObjectReplicationPolicyRule> rules = default);
new Microsoft.Azure.Management.Storage.Models.ObjectReplicationPolicy : string * string * string * string * string * string * Nullable<DateTime> * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.ObjectReplicationPolicyRule> -> Microsoft.Azure.Management.Storage.Models.ObjectReplicationPolicy
Public Sub New (sourceAccount As String, destinationAccount As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional policyId As String = Nothing, Optional enabledTime As Nullable(Of DateTime) = Nothing, Optional rules As IList(Of ObjectReplicationPolicyRule) = Nothing)

Parameters

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.

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

policyId
String

A unique id for object replication policy.

enabledTime
Nullable<DateTime>

Indicates when the policy is enabled on the source account.

rules
IList<ObjectReplicationPolicyRule>

The storage account object replication rules.

Applies to