github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/iot/update_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/16451
     9  
    10  type UpdateProductRequest struct {
    11  	// 数据模版(json)
    12  	DataTemplate *string `name:"DataTemplate,omitempty"`
    13  	// 产品描述
    14  	Description *string `name:"Description,omitempty"`
    15  	// 产品名称
    16  	Name *string `name:"Name,omitempty"`
    17  	// 产品Id
    18  	ProductId string `name:"ProductId"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  }
    22  
    23  func (req *UpdateProductRequest) Invoke(client github_com_morlay_goqcloud.Client) (*UpdateProductResponse, error) {
    24  	resp := &UpdateProductResponse{}
    25  	err := client.Request("iot", "UpdateProduct", "2018-01-23").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type UpdateProductResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 更新后的产品信息
    32  	Product Product `json:"Product"`
    33  }