Freigeben über


ObjectReplicationPolicy Class

Definition

The replication policy between two storage accounts. Multiple rules can be defined in one policy.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyTypeConverter))]
public class ObjectReplicationPolicy : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IObjectReplicationPolicy, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyTypeConverter))>]
type ObjectReplicationPolicy = class
    interface IObjectReplicationPolicy
    interface IJsonSerializable
    interface IResource
    interface IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicyTypeConverter))>]
type ObjectReplicationPolicy = class
    interface IObjectReplicationPolicy
    interface IJsonSerializable
    interface IProxyResource
    interface IResource
    interface IValidates
Public Class ObjectReplicationPolicy
Implements IObjectReplicationPolicy, IValidates
Inheritance
ObjectReplicationPolicy
Attributes
Implements

Constructors

Name Description
ObjectReplicationPolicy()

Creates an new ObjectReplicationPolicy instance.

Properties

Name Description
DestinationAccount

Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.

EnabledTime

Indicates when the policy is enabled on the source account.

Id

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

MetricEnabled

Indicates whether object replication metrics feature is enabled for the policy.

Name

The name of the resource

PolicyId

A unique id for object replication policy.

PriorityReplicationEnabled

Indicates whether object replication priority replication feature is enabled for the policy.

ResourceGroupName

Gets the resource group name

Rule

The storage account object replication rules.

SourceAccount

Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

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

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ObjectReplicationPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ObjectReplicationPolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IObjectReplicationPolicy.

FromJsonString(String)

Creates a new instance of ObjectReplicationPolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ObjectReplicationPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to