github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/delete_security_group_policies.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/15809
     9  
    10  type DeleteSecurityGroupPoliciesRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。
    14  	SecurityGroupId string `name:"SecurityGroupId"`
    15  	// 安全组规则集合。一个请求中只能删除单个方向的一条或多条规则。支持指定索引(PolicyIndex) 匹配删除和安全组规则匹配删除两种方式,一个请求中只能使用一种匹配方式。
    16  	SecurityGroupPolicySet SecurityGroupPolicySet `name:"SecurityGroupPolicySet"`
    17  }
    18  
    19  func (req *DeleteSecurityGroupPoliciesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteSecurityGroupPoliciesResponse, error) {
    20  	resp := &DeleteSecurityGroupPoliciesResponse{}
    21  	err := client.Request("vpc", "DeleteSecurityGroupPolicies", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DeleteSecurityGroupPoliciesResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }