github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/iot/get_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/16461
     9  
    10  type GetRuleRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 规则Id
    14  	RuleId string `name:"RuleId"`
    15  }
    16  
    17  func (req *GetRuleRequest) Invoke(client github_com_morlay_goqcloud.Client) (*GetRuleResponse, error) {
    18  	resp := &GetRuleResponse{}
    19  	err := client.Request("iot", "GetRule", "2018-01-23").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type GetRuleResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 规则
    26  	Rule Rule `json:"Rule"`
    27  }