| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | | using System; |
| | 4 | | using System.Collections.Generic; |
| | 5 | | using System.Text; |
| | 6 | |
|
| | 7 | | namespace Azure.Storage.Blobs.Models |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Contains the Object Replication Rule ID and Replication Status( |
| | 11 | | /// <see cref="ObjectReplicationStatus"/>) of a blob. |
| | 12 | | /// There can be more than one <see cref="ObjectReplicationRule"/> under a |
| | 13 | | /// <see cref="ObjectReplicationPolicy"/>. Object Replication Rule IDs |
| | 14 | | /// </summary> |
| | 15 | | public class ObjectReplicationRule |
| | 16 | | { |
| 184 | 17 | | internal ObjectReplicationRule() { } |
| | 18 | | /// <summary> |
| | 19 | | /// The Object Replication Rule ID. |
| | 20 | | /// </summary> |
| 0 | 21 | | public string RuleId { get; internal set; } |
| | 22 | | /// <summary> |
| | 23 | | /// The Replication Status. See <see cref="ObjectReplicationStatus"/>. |
| | 24 | | /// </summary> |
| 0 | 25 | | public ObjectReplicationStatus ReplicationStatus { get; internal set; } |
| | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Specifies the Replication Status of a blob. This is used when a storage account |
| | 30 | | /// has Object Replication Policy(s) applied. See <see cref="ObjectReplicationPolicy"/> |
| | 31 | | /// and <see cref="ObjectReplicationRule"/>. |
| | 32 | | /// </summary> |
| | 33 | | [Flags] |
| | 34 | | public enum ObjectReplicationStatus |
| | 35 | | { |
| | 36 | | /// <summary> |
| | 37 | | /// Object Replication to the |
| | 38 | | /// destination completed. |
| | 39 | | /// </summary> |
| | 40 | | Complete = 0, |
| | 41 | |
|
| | 42 | | /// <summary> |
| | 43 | | /// Object Replication to the |
| | 44 | | /// destination container failed. |
| | 45 | | /// </summary> |
| | 46 | | Failed = 1 |
| | 47 | | } |
| | 48 | | } |