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

     1  package iot
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 更新规则
     8  // https://cloud.tencent.com/document/api/568/16463
     9  
    10  type UpdateRuleRequest struct {
    11  	// 转发
    12  	Actions []*Object `name:"Actions,omitempty"`
    13  	// 描述
    14  	Description *string `name:"Description,omitempty"`
    15  	// 名称
    16  	Name *string `name:"Name,omitempty"`
    17  	// 查询
    18  	Query *RuleQuery `name:"Query,omitempty"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  	// 规则Id
    22  	RuleId string `name:"RuleId"`
    23  }
    24  
    25  func (req *UpdateRuleRequest) Invoke(client github_com_morlay_goqcloud.Client) (*UpdateRuleResponse, error) {
    26  	resp := &UpdateRuleResponse{}
    27  	err := client.Request("iot", "UpdateRule", "2018-01-23").Do(req, resp)
    28  	return resp, err
    29  }
    30  
    31  type UpdateRuleResponse struct {
    32  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    33  }