github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/verify_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/16755
     9  
    10  type VerifySitesRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 站点的url列表
    14  	Urls []*string `name:"Urls"`
    15  }
    16  
    17  func (req *VerifySitesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*VerifySitesResponse, error) {
    18  	resp := &VerifySitesResponse{}
    19  	err := client.Request("cws", "VerifySites", "2018-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type VerifySitesResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 验证失败的根域名数量。
    26  	FailNumber int64 `json:"FailNumber"`
    27  	// 验证成功的根域名数量。
    28  	SuccessNumber int64 `json:"SuccessNumber"`
    29  }