Example #1
0
        /// <summary>
        /// 获取防火墙组信息
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.DescribeSecurityGroupResponse"/></returns>
        public DescribeSecurityGroupResponse DescribeSecurityGroup(DescribeSecurityGroupRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

            request.AddUObject(requestParams);
            return(Execute <DescribeSecurityGroupResponse>(request));
        }
Example #2
0
        public void DescribeSecurityGroupTest()
        {
            var entity   = new DescribeSecurityGroupRequest(Config.region);
            var response = unet.DescribeSecurityGroup(entity);

            Assert.AreEqual(response.RetCode, 0);
        }