github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/clb/modify_rule.go (about)

     1  package clb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 修改应用型负载均衡监听器转发规则
     8  // https://cloud.tencent.com/document/api/214/30679
     9  
    10  type ModifyRuleRequest struct {
    11  	// 健康检查信息
    12  	HealthCheck *HealthCheck `name:"HealthCheck,omitempty"`
    13  	// 应用型负载均衡监听器 ID
    14  	ListenerId string `name:"ListenerId"`
    15  	// 负载均衡实例 ID
    16  	LoadBalancerId string `name:"LoadBalancerId"`
    17  	// 要修改的转发规则的 ID。
    18  	LocationId string `name:"LocationId"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  	// 规则的请求转发方式
    22  	Scheduler *string `name:"Scheduler,omitempty"`
    23  	// 会话保持时间
    24  	SessionExpireTime *int64 `name:"SessionExpireTime,omitempty"`
    25  	// 转发规则的新的转发路径,如不需修改Url,则不需提供此参数
    26  	Url *string `name:"Url,omitempty"`
    27  }
    28  
    29  func (req *ModifyRuleRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyRuleResponse, error) {
    30  	resp := &ModifyRuleResponse{}
    31  	err := client.Request("clb", "ModifyRule", "2018-03-17").Do(req, resp)
    32  	return resp, err
    33  }
    34  
    35  type ModifyRuleResponse struct {
    36  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    37  }