ObjectReplicationPolicy Class
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.
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
Public Class ObjectReplicationPolicy
Implements IObjectReplicationPolicy, IValidates
- Inheritance
-
ObjectReplicationPolicy
- Attributes
- Implements
Constructors
ObjectReplicationPolicy() |
Creates an new ObjectReplicationPolicy instance. |
Properties
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. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
Name |
The name of the resource |
PolicyId |
A unique id for object replication 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. |
Type |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
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. |