Esempio n. 1
0
        ///GENMHASH:2FE8C4C2D5EAD7E37787838DE0B47D92:B587CE64B62DCF93404FA1B6C5D51EC7
        protected override ExpressRouteCircuitPeeringImpl WrapModel(string name)
        {
            ExpressRouteCircuitPeeringInner inner = new ExpressRouteCircuitPeeringInner()
            {
                Name = name
            };

            return(new ExpressRouteCircuitPeeringImpl(parent, inner, Inner, ExpressRouteCircuitPeeringType.Parse(name)));
        }
Esempio n. 2
0
 ///GENMHASH:90E449BE53BE2022DD4BD866D5A6C29C:DD8B5257C314F4DDE0536EE2BF670307
 protected override IExpressRouteCircuitPeering WrapModel(ExpressRouteCircuitPeeringInner inner)
 {
     return(inner != null ? new ExpressRouteCircuitPeeringImpl(parent, inner, Inner, ExpressRouteCircuitPeeringType.Parse(inner.PeeringType)) : null);
 }
 ///GENMHASH:485C72CDD911A007F5A804436A3BCA68:FF479A489725561C2045B0642CCBCCED
 public ExpressRouteCircuitPeeringType PeeringType()
 {
     return(ExpressRouteCircuitPeeringType.Parse(Inner.PeeringType));
 }
 ///GENMHASH:F1FF74FECF7AD81993920CCBF4D96B40:34F765B181E581705C5B1FEB895758A1
 internal ExpressRouteCircuitPeeringImpl(ExpressRouteCircuitImpl parent, ExpressRouteCircuitPeeringInner innerObject, IExpressRouteCircuitPeeringsOperations client, ExpressRouteCircuitPeeringType type)
     : base(type.Value, innerObject, parent.Manager)
 {
     this.client       = client;
     this.parent       = parent;
     stats             = new ExpressRouteCircuitStatsImpl(innerObject.Stats);
     Inner.PeeringType = type.Value;
 }
 ///GENMHASH:6D9F740D6D73C56877B02D9F1C96F6E7:3DFA04748ECE6D9F0E55BD6015449BA8
 protected override void InitializeChildrenFromInner()
 {
     expressRouteCircuitPeerings = new Dictionary <string, IExpressRouteCircuitPeering>();
     if (Inner.Peerings != null)
     {
         foreach (var peering in Inner.Peerings)
         {
             expressRouteCircuitPeerings[peering.Name] = new ExpressRouteCircuitPeeringImpl(this, peering, Manager.Inner.ExpressRouteCircuitPeerings, ExpressRouteCircuitPeeringType.Parse(peering.PeeringType));
         }
     }
 }