예제 #1
0
        //Parse wrapped property PSIpRule to single NetworkRule IpRule in SDK
        public static IPRule ParseStorageNetworkRuleIPRule(PSIpRule ipRule)
        {
            IPRule returnRule = new IPRule();

            returnRule.Action           = ParseStorageNetworkRuleAction(ipRule.Action);
            returnRule.IPAddressOrRange = ipRule.IPAddressOrRange;
            return(returnRule);
        }
예제 #2
0
        //Parse single NetworkRule IpRule in SDK to wrapped property PSIpRule
        public static PSIpRule ParsePSNetworkRuleIPRule(IPRule ipRule)
        {
            PSIpRule returnRule = new PSIpRule();

            returnRule.Action           = ParsePSNetworkRuleAction(ipRule.Action);
            returnRule.IPAddressOrRange = ipRule.IPAddressOrRange;
            return(returnRule);
        }