Partilhar via


ArmStorageModelFactory.ObjectReplicationPolicyData Método

Definição

Inicializa uma nova instância de 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

Parâmetros

name
String

O nome.

resourceType
ResourceType

O resourceType.

systemData
SystemData

O systemData.

policyId
String

Uma ID exclusiva para a política de replicação de objeto.

enabledOn
Nullable<DateTimeOffset>

Indica quando a política está habilitada na conta de origem.

sourceAccount
String

Obrigatórios. Nome da conta de origem. Ele deverá ser a ID de recurso completa se allowCrossTenantReplication for definido como false.

destinationAccount
String

Obrigatórios. Nome da conta de destino. Ele deverá ser a ID de recurso completa se allowCrossTenantReplication for definido como false.

rules
IEnumerable<ObjectReplicationPolicyRule>

As regras de replicação de objeto da conta de armazenamento.

Retornos

Uma nova ObjectReplicationPolicyData instância para simulação.

Aplica-se a