< Summary

Class:Azure.Storage.Blobs.Models.ObjectReplicationRule
Assembly:Azure.Storage.Blobs
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs\src\Models\ObjectReplicationRule.cs
Covered lines:1
Uncovered lines:2
Coverable lines:3
Total lines:48
Line coverage:33.3% (1 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
get_RuleId()-0%100%
get_ReplicationStatus()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs\src\Models\ObjectReplicationRule.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3using System;
 4using System.Collections.Generic;
 5using System.Text;
 6
 7namespace 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    {
 18417        internal ObjectReplicationRule() { }
 18        /// <summary>
 19        /// The Object Replication Rule ID.
 20        /// </summary>
 021        public string RuleId { get; internal set; }
 22        /// <summary>
 23        /// The Replication Status. See <see cref="ObjectReplicationStatus"/>.
 24        /// </summary>
 025        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}