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

     1  package postgres
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 开通外网
     8  // https://cloud.tencent.com/document/api/409/18099
     9  
    10  type OpenDbExtranetAccessRequest struct {
    11  	// 实例ID,形如postgres-hez4fh0v
    12  	DBInstanceId string `name:"DBInstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  }
    16  
    17  func (req *OpenDbExtranetAccessRequest) Invoke(client github_com_morlay_goqcloud.Client) (*OpenDbExtranetAccessResponse, error) {
    18  	resp := &OpenDbExtranetAccessResponse{}
    19  	err := client.Request("postgres", "OpenDBExtranetAccess", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type OpenDbExtranetAccessResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 异步任务流程ID
    26  	FlowId int64 `json:"FlowId"`
    27  }