github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/bm/delete_psa_regulation.go (about)

     1  package bm
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 删除预授权规则
     8  // https://cloud.tencent.com/document/api/386/30142
     9  
    10  type DeletePsaRegulationRequest struct {
    11  	// 预授权规则ID
    12  	PsaId string `name:"PsaId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *DeletePsaRegulationRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeletePsaRegulationResponse, error) {
    18  	resp := &DeletePsaRegulationResponse{}
    19  	err := client.Request("bm", "DeletePsaRegulation", "2018-04-23").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DeletePsaRegulationResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  }