github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/modify_site_attribute.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/16754
     9  
    10  type ModifySiteAttributeRequest struct {
    11  	// 用于测试cookie是否有效的关键字
    12  	LoginCheckKw *string `name:"LoginCheckKw,omitempty"`
    13  	// 用于测试cookie是否有效的URL
    14  	LoginCheckUrl *string `name:"LoginCheckUrl,omitempty"`
    15  	// 登录后的cookie
    16  	LoginCookie *string `name:"LoginCookie,omitempty"`
    17  	// 站点名称
    18  	Name *string `name:"Name,omitempty"`
    19  	// 网站是否需要登录扫描:0-未知;-1-不需要;1-需要
    20  	NeedLogin *int64 `name:"NeedLogin,omitempty"`
    21  	// 区域
    22  	Region string `name:"Region"`
    23  	// 禁止扫描器扫描的目录关键字
    24  	ScanDisallow *string `name:"ScanDisallow,omitempty"`
    25  	// 站点ID
    26  	SiteId int64 `name:"SiteId"`
    27  }
    28  
    29  func (req *ModifySiteAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifySiteAttributeResponse, error) {
    30  	resp := &ModifySiteAttributeResponse{}
    31  	err := client.Request("cws", "ModifySiteAttribute", "2018-03-12").Do(req, resp)
    32  	return resp, err
    33  }
    34  
    35  type ModifySiteAttributeResponse struct {
    36  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    37  }