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

     1  package cws
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 新增站点
     8  // https://cloud.tencent.com/document/api/692/16748
     9  
    10  type CreateSitesRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 站点的url列表
    14  	Urls []*string `name:"Urls"`
    15  	// 访问网站的客户端标识
    16  	UserAgent *string `name:"UserAgent,omitempty"`
    17  }
    18  
    19  func (req *CreateSitesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateSitesResponse, error) {
    20  	resp := &CreateSitesResponse{}
    21  	err := client.Request("cws", "CreateSites", "2018-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type CreateSitesResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 新增站点数。
    28  	Number int64 `json:"Number"`
    29  }