packer-cn/vendor/github.com/ucloud/ucloud-sdk-go/services/vpc/delete_vpcintercom.go

63 lines
1.9 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//Code is generated by ucloud code generator, don't modify it by hand, it will cause undefined behaviors.
//go:generate ucloud-gen-go-api VPC DeleteVPCIntercom
package vpc
import (
"github.com/ucloud/ucloud-sdk-go/ucloud/request"
"github.com/ucloud/ucloud-sdk-go/ucloud/response"
)
// DeleteVPCIntercomRequest is request schema for DeleteVPCIntercom action
type DeleteVPCIntercomRequest struct {
request.CommonBase
// [公共参数] 源VPC所在地域。 参见 [地域和可用区列表](../summary/regionlist.html)
// Region *string `required:"true"`
// [公共参数] 源VPC所在项目ID。不填写为默认项目子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
// ProjectId *string `required:"false"`
// 源VPC短ID
VPCId *string `required:"true"`
// 目的VPC短ID
DstVPCId *string `required:"true"`
// 目的VPC所在地域默认为源VPC所在地域
DstRegion *string `required:"false"`
// 目的VPC所在项目ID默认为源VPC所在项目ID
DstProjectId *string `required:"false"`
}
// DeleteVPCIntercomResponse is response schema for DeleteVPCIntercom action
type DeleteVPCIntercomResponse struct {
response.CommonBase
}
// NewDeleteVPCIntercomRequest will create request of DeleteVPCIntercom action.
func (c *VPCClient) NewDeleteVPCIntercomRequest() *DeleteVPCIntercomRequest {
req := &DeleteVPCIntercomRequest{}
// setup request with client config
c.Client.SetupRequest(req)
// setup retryable with default retry policy (retry for non-create action and common error)
req.SetRetryable(true)
return req
}
// DeleteVPCIntercom - 删除VPC互通关系
func (c *VPCClient) DeleteVPCIntercom(req *DeleteVPCIntercomRequest) (*DeleteVPCIntercomResponse, error) {
var err error
var res DeleteVPCIntercomResponse
err = c.Client.InvokeAction("DeleteVPCIntercom", req, &res)
if err != nil {
return &res, err
}
return &res, nil
}