/// <summary> /// 修改ULB后端资源实例(主机池)属性 /// </summary> /// <param name="requestParams">请求参数.</param> /// <returns>返回对象<see cref="UCloudSDK.Models.UpdateBackendAttributeResponse"/></returns> public UpdateBackendAttributeResponse UpdateBackendAttribute(UpdateBackendAttributeRequest requestParams) { var request = new RestRequest(Method.GET); request.AddUObject(requestParams); return(Execute <UpdateBackendAttributeResponse>(request)); }
public void UpdateBackendAttributeTest() { var entity = new UpdateBackendAttributeRequest(Config.region, ulbId, backendId); entity.Port = 13456; var response = ulb.UpdateBackendAttribute(entity); Assert.AreEqual(response.RetCode, 0); }