Beispiel #1
0
        static public VirtualNetworkRule ToSDKModel(PSVirtualNetworkRule psVirtualNetworkRule)
        {
            if (psVirtualNetworkRule == null)
            {
                return(null);
            }

            return(new VirtualNetworkRule
            {
                Id = psVirtualNetworkRule.Id,
                IgnoreMissingVNetServiceEndpoint = psVirtualNetworkRule.IgnoreMissingVNetServiceEndpoint
            });
        }
Beispiel #2
0
 static public VirtualNetworkRule ConvertPSVirtualNetworkRuleToVirtualNetworkRule(PSVirtualNetworkRule psVirtualNetworkRule)
 {
     return(new VirtualNetworkRule
     {
         Id = psVirtualNetworkRule.Id,
         IgnoreMissingVNetServiceEndpoint = psVirtualNetworkRule.IgnoreMissingVNetServiceEndpoint
     });
 }