github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cdb/associate_security_groups.go (about) 1 package cdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 安全组批量绑定云资源 8 // https://cloud.tencent.com/document/api/236/15852 9 10 type AssociateSecurityGroupsRequest struct { 11 // 实例ID列表,一个或者多个实例Id组成的数组。 12 InstanceIds []*string `name:"InstanceIds"` 13 // 区域 14 Region string `name:"Region"` 15 // 安全组Id。 16 SecurityGroupId string `name:"SecurityGroupId"` 17 } 18 19 func (req *AssociateSecurityGroupsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*AssociateSecurityGroupsResponse, error) { 20 resp := &AssociateSecurityGroupsResponse{} 21 err := client.Request("cdb", "AssociateSecurityGroups", "2017-03-20").Do(req, resp) 22 return resp, err 23 } 24 25 type AssociateSecurityGroupsResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }