github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/modify_security_group_attribute.go (about) 1 package vpc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改安全组属性 8 // https://cloud.tencent.com/document/api/215/15805 9 10 type ModifySecurityGroupAttributeRequest struct { 11 // 安全组备注,最多100个字符。 12 GroupDescription *string `name:"GroupDescription,omitempty"` 13 // 安全组名称,可任意命名,但不得超过60个字符。 14 GroupName *string `name:"GroupName,omitempty"` 15 // 区域 16 Region string `name:"Region"` 17 // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 18 SecurityGroupId string `name:"SecurityGroupId"` 19 } 20 21 func (req *ModifySecurityGroupAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifySecurityGroupAttributeResponse, error) { 22 resp := &ModifySecurityGroupAttributeResponse{} 23 err := client.Request("vpc", "ModifySecurityGroupAttribute", "2017-03-12").Do(req, resp) 24 return resp, err 25 } 26 27 type ModifySecurityGroupAttributeResponse struct { 28 github_com_morlay_goqcloud.TencentCloudBaseResponse 29 }