/// <summary> /// 修改VServer实例属性 /// </summary> /// <param name="requestParams">请求参数.</param> /// <returns>返回对象<see cref="UCloudSDK.Models.UpdateVServerAttributeResponse"/></returns> public UpdateVServerAttributeResponse UpdateVServerAttribute(UpdateVServerAttributeRequest requestParams) { var request = new RestRequest(Method.GET); request.AddUObject(requestParams); return(Execute <UpdateVServerAttributeResponse>(request)); }
public void UpdateVServerAttributeTest() { var entity = new UpdateVServerAttributeRequest(Config.region, ulbId, vServerId); entity.VServerName = "ICYVSER"; var response = ulb.UpdateVServerAttribute(entity); Assert.AreEqual(response.RetCode, 0); }