Exemplo n.º 1
0
        /// <summary>
        /// 修改负载均衡实例属性
        /// </summary>
        /// <param name="requestParams">请求参数.</param>
        /// <returns>返回对象<see cref="UCloudSDK.Models.UpdateULBAttributeResponse"/></returns>
        public UpdateULBAttributeResponse UpdateULBAttribute(UpdateULBAttributeRequest requestParams)
        {
            var request = new RestRequest(Method.GET);

            request.AddUObject(requestParams);
            return(Execute <UpdateULBAttributeResponse>(request));
        }
Exemplo n.º 2
0
        public void UpdateULBAttributeTest()
        {
            var entity = new UpdateULBAttributeRequest(Config.region, ulbId);

            entity.Name = "icyUlb";
            var response = ulb.UpdateULBAttribute(entity);

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