github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/iot/get_product.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/16380
     9  
    10  type GetProductRequest struct {
    11  	// 产品Id
    12  	ProductId string `name:"ProductId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *GetProductRequest) Invoke(client github_com_morlay_goqcloud.Client) (*GetProductResponse, error) {
    18  	resp := &GetProductResponse{}
    19  	err := client.Request("iot", "GetProduct", "2018-01-23").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type GetProductResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 产品信息
    26  	Product Product `json:"Product"`
    27  }