vpc

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = VpcClient{Client: core.DefaultClient}

Functions

func DoAction

func DoAction(action string, options ...string) ([]byte, error)

Types

type AddUserGwResp added in v1.1.0

type AddUserGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	UserGwID string `json:"userGwId"`
}

func AddUserGw added in v1.1.0

func AddUserGw(options ...string) (*AddUserGwResp, error)

func (*AddUserGwResp) String added in v1.1.0

func (r *AddUserGwResp) String(args ...interface{}) (string, error)

type AssociateRouteTableResp added in v1.1.0

type AssociateRouteTableResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func AssociateRouteTable

func AssociateRouteTable(options ...string) (*AssociateRouteTableResp, error)

func (*AssociateRouteTableResp) String added in v1.1.0

func (r *AssociateRouteTableResp) String(args ...interface{}) (string, error)

type AttachNetworkInterfaceResp added in v1.1.0

type AttachNetworkInterfaceResp struct {
	Code     int64       `json:"code"`
	CodeDesc string      `json:"codeDesc"`
	Message  string      `json:"message"`
	Data     interface{} `json:"data"`
	TaskID   int64       `json:"taskId"`
}

func (*AttachNetworkInterfaceResp) String added in v1.1.0

func (r *AttachNetworkInterfaceResp) String(args ...interface{}) (string, error)

type CreateDirectConnectGatewayResp added in v1.1.0

type CreateDirectConnectGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		DirectConnectGatewayID string `json:"directConnectGatewayId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateDirectConnectGateway added in v1.1.0

func CreateDirectConnectGateway(options ...string) (*CreateDirectConnectGatewayResp, error)

func (*CreateDirectConnectGatewayResp) String added in v1.1.0

func (r *CreateDirectConnectGatewayResp) String(args ...interface{}) (string, error)

type CreateLocalIPTranslationNatRuleResp added in v1.1.0

type CreateLocalIPTranslationNatRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int64 `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateLocalIPTranslationNatRule added in v1.1.0

func CreateLocalIPTranslationNatRule(options ...string) (*CreateLocalIPTranslationNatRuleResp, error)

func (*CreateLocalIPTranslationNatRuleResp) String added in v1.1.0

func (r *CreateLocalIPTranslationNatRuleResp) String(args ...interface{}) (string, error)

type CreateNatGatewayResp added in v1.1.0

type CreateNatGatewayResp struct {
	BillID   string `json:"billId"`
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func CreateNatGateway

func CreateNatGateway(options ...string) (*CreateNatGatewayResp, error)

func (*CreateNatGatewayResp) String added in v1.1.0

func (r *CreateNatGatewayResp) String(args ...interface{}) (string, error)

type CreateNetworkAclResp added in v1.1.0

type CreateNetworkAclResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		NetworkAclID string `json:"networkAclId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateNetworkAcl

func CreateNetworkAcl(options ...string) (*CreateNetworkAclResp, error)

func (*CreateNetworkAclResp) String added in v1.1.0

func (r *CreateNetworkAclResp) String(args ...interface{}) (string, error)

type CreateNetworkInterfaceResp added in v1.1.0

type CreateNetworkInterfaceResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int64 `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func CreateNetworkInterface

func CreateNetworkInterface(options ...string) (*CreateNetworkInterfaceResp, error)

func (*CreateNetworkInterfaceResp) String added in v1.1.0

func (r *CreateNetworkInterfaceResp) String(args ...interface{}) (string, error)

type CreateRouteResp added in v1.1.0

type CreateRouteResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func CreateRoute added in v1.1.0

func CreateRoute(options ...string) (*CreateRouteResp, error)

Implement https://cloud.tencent.com/document/api/215/5688

func (*CreateRouteResp) String added in v1.1.0

func (r *CreateRouteResp) String(args ...interface{}) (string, error)

type CreateRouteTableResp added in v1.1.0

type CreateRouteTableResp struct {
	Code          int64  `json:"code"`
	CodeDesc      string `json:"codeDesc"`
	Message       string `json:"message"`
	RouteTableID  string `json:"routeTableId"`
	RouteTableSet []struct {
		Description          interface{} `json:"description"`
		DestinationCidrBlock string      `json:"destinationCidrBlock"`
		NextHub              string      `json:"nextHub"`
		NextType             int64       `json:"nextType"`
	} `json:"routeTableSet"`
	UnRouteTableID string `json:"unRouteTableId"`
}

func CreateRouteTable

func CreateRouteTable(options ...string) (*CreateRouteTableResp, error)

func (*CreateRouteTableResp) String added in v1.1.0

func (r *CreateRouteTableResp) String(args ...interface{}) (string, error)

type CreateSubnetAclRuleResp added in v1.1.0

type CreateSubnetAclRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func CreateSubnetAclRule

func CreateSubnetAclRule(options ...string) (*CreateSubnetAclRuleResp, error)

func (*CreateSubnetAclRuleResp) String added in v1.1.0

func (r *CreateSubnetAclRuleResp) String(args ...interface{}) (string, error)

type CreateSubnetResp added in v1.1.0

type CreateSubnetResp struct {
	Code      int64  `json:"code"`
	CodeDesc  string `json:"codeDesc"`
	Message   string `json:"message"`
	SubnetSet []struct {
		CidrBlock    string `json:"cidrBlock"`
		RouteTableID string `json:"routeTableId"`
		SubnetID     string `json:"subnetId"`
		SubnetName   string `json:"subnetName"`
		UnSubnetID   string `json:"unSubnetId"`
		Zone         string `json:"zone"`
		ZoneID       int64  `json:"zoneId"`
	} `json:"subnetSet"`
}

func CreateSubnet

func CreateSubnet(options ...string) (*CreateSubnetResp, error)

func (*CreateSubnetResp) String added in v1.1.0

func (r *CreateSubnetResp) String(args ...interface{}) (string, error)

type CreateVpcPeeringConnectionResp added in v1.1.0

type CreateVpcPeeringConnectionResp struct {
	Code                int64  `json:"code"`
	CodeDesc            string `json:"codeDesc"`
	Message             string `json:"message"`
	PeeringConnectionID string `json:"peeringConnectionId"`
}

func CreateVpcPeeringConnection

func CreateVpcPeeringConnection(options ...string) (*CreateVpcPeeringConnectionResp, error)

func (*CreateVpcPeeringConnectionResp) String added in v1.1.0

func (r *CreateVpcPeeringConnectionResp) String(args ...interface{}) (string, error)

type CreateVpcResp

type CreateVpcResp struct {
	Code          int64  `json:"code"`
	CodeDesc      string `json:"codeDesc"`
	Message       string `json:"message"`
	RouteTableSet []struct {
		RouteTableID   string `json:"routeTableId"`
		RouteTableName string `json:"routeTableName"`
		RouteTableType int64  `json:"routeTableType"`
	} `json:"routeTableSet"`
	SubnetSet     []interface{} `json:"subnetSet"`
	UniqVpcID     string        `json:"uniqVpcId"`
	VpcCreateTime string        `json:"vpcCreateTime"`
	VpcID         string        `json:"vpcId"`
}

func CreateVpc

func CreateVpc(options ...string) (*CreateVpcResp, error)

func (*CreateVpcResp) String added in v1.1.0

func (r *CreateVpcResp) String(args ...interface{}) (string, error)

type DeleteDirectConnectGatewayResp added in v1.1.0

type DeleteDirectConnectGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int64 `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func DeleteDirectConnectGateway added in v1.1.0

func DeleteDirectConnectGateway(options ...string) (*DeleteDirectConnectGatewayResp, error)

func (*DeleteDirectConnectGatewayResp) String added in v1.1.0

func (r *DeleteDirectConnectGatewayResp) String(args ...interface{}) (string, error)

type DeleteLocalIPTranslationNatRuleResp added in v1.1.0

type DeleteLocalIPTranslationNatRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int64 `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func DeleteLocalIPTranslationNatRule added in v1.1.0

func DeleteLocalIPTranslationNatRule(options ...string) (*DeleteLocalIPTranslationNatRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/5186

func (*DeleteLocalIPTranslationNatRuleResp) String added in v1.1.0

func (r *DeleteLocalIPTranslationNatRuleResp) String(args ...interface{}) (string, error)

type DeleteNatGatewayResp added in v1.1.0

type DeleteNatGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskID   int64  `json:"taskId"`
}

func DeleteNatGateway

func DeleteNatGateway(options ...string) (*DeleteNatGatewayResp, error)

func (*DeleteNatGatewayResp) String added in v1.1.0

func (r *DeleteNatGatewayResp) String(args ...interface{}) (string, error)

type DeleteNetworkAclResp added in v1.1.0

type DeleteNetworkAclResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteNetworkAcl

func DeleteNetworkAcl(options ...string) (*DeleteNetworkAclResp, error)

func (*DeleteNetworkAclResp) String added in v1.1.0

func (r *DeleteNetworkAclResp) String(args ...interface{}) (string, error)

type DeleteRouteResp added in v1.1.0

type DeleteRouteResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func DeleteRoute added in v1.1.0

func DeleteRoute(options ...string) (*DeleteRouteResp, error)

func (*DeleteRouteResp) String added in v1.1.0

func (r *DeleteRouteResp) String(args ...interface{}) (string, error)

type DeleteRouteTableResp added in v1.1.0

type DeleteRouteTableResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func (*DeleteRouteTableResp) String added in v1.1.0

func (r *DeleteRouteTableResp) String(args ...interface{}) (string, error)

type DeleteSubnetResp added in v1.1.0

type DeleteSubnetResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func (*DeleteSubnetResp) String added in v1.1.0

func (r *DeleteSubnetResp) String(args ...interface{}) (string, error)

type DeleteUserGwResp added in v1.1.0

type DeleteUserGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteUserGw added in v1.1.0

func DeleteUserGw(options ...string) (*DeleteUserGwResp, error)

func (*DeleteUserGwResp) String added in v1.1.0

func (r *DeleteUserGwResp) String(args ...interface{}) (string, error)

type DeleteVpcPeeringConnectionResp added in v1.1.0

type DeleteVpcPeeringConnectionResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeleteVpcPeeringConnection

func DeleteVpcPeeringConnection(options ...string) (*DeleteVpcPeeringConnectionResp, error)

func (*DeleteVpcPeeringConnectionResp) String added in v1.1.0

func (r *DeleteVpcPeeringConnectionResp) String(args ...interface{}) (string, error)

type DeleteVpcResp added in v1.1.0

type DeleteVpcResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func (*DeleteVpcResp) String added in v1.1.0

func (r *DeleteVpcResp) String(args ...interface{}) (string, error)

type DescribeDirectConnectGatewayResp added in v1.1.0

type DescribeDirectConnectGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		CreateTime               string `json:"createTime"`
		DirectConnectGatewayID   string `json:"directConnectGatewayId"`
		DirectConnectGatewayIP   string `json:"directConnectGatewayIp"`
		DirectConnectGatewayName string `json:"directConnectGatewayName"`
		DnaptNum                 int64  `json:"dnaptNum"`
		DnatNum                  int64  `json:"dnatNum"`
		SnaptNum                 int64  `json:"snaptNum"`
		SnatNum                  int64  `json:"snatNum"`
		Type                     int64  `json:"type"`
		UnVpcID                  string `json:"unVpcId"`
		VpcCidrBlock             string `json:"vpcCidrBlock"`
		VpcID                    string `json:"vpcId"`
		VpcName                  string `json:"vpcName"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeDirectConnectGateway added in v1.1.0

func DescribeDirectConnectGateway(options ...string) (*DescribeDirectConnectGatewayResp, error)

func (*DescribeDirectConnectGatewayResp) String added in v1.1.0

func (r *DescribeDirectConnectGatewayResp) String(args ...interface{}) (string, error)

type DescribeLocalIPTranslationNatRuleResp added in v1.1.0

type DescribeLocalIPTranslationNatRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Data     []interface{} `json:"data"`
		TotalNum int64         `json:"totalNum"`
	} `json:"data"`
	Message string `json:"message"`
}

func DescribeLocalIPTranslationNatRule added in v1.1.0

func DescribeLocalIPTranslationNatRule(options ...string) (*DescribeLocalIPTranslationNatRuleResp, error)

func (*DescribeLocalIPTranslationNatRuleResp) String added in v1.1.0

func (r *DescribeLocalIPTranslationNatRuleResp) String(args ...interface{}) (string, error)

type DescribeNatGatewayResp added in v1.1.0

type DescribeNatGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		AppID            string        `json:"appId"`
		Bandwidth        int64         `json:"bandwidth"`
		BlockedEipSet    []interface{} `json:"blockedEipSet"`
		CreateTime       string        `json:"createTime"`
		EipCount         int64         `json:"eipCount"`
		EipSet           []interface{} `json:"eipSet"`
		MaxConcurrent    int64         `json:"maxConcurrent"`
		NatID            string        `json:"natId"`
		NatName          string        `json:"natName"`
		ProductionStatus int64         `json:"productionStatus"`
		State            int64         `json:"state"`
		UnVpcID          string        `json:"unVpcId"`
		VpcID            int64         `json:"vpcId"`
		VpcName          string        `json:"vpcName"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeNatGateway

func DescribeNatGateway(options ...string) (*DescribeNatGatewayResp, error)

func (*DescribeNatGatewayResp) String added in v1.1.0

func (r *DescribeNatGatewayResp) String(args ...interface{}) (string, error)

type DescribeNetworkAclResp added in v1.1.0

type DescribeNetworkAclResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		CreateTime         string `json:"createTime"`
		NetworkAclEntrySet struct {
			Egress []struct {
				Action     int64  `json:"action"`
				CidrIP     string `json:"cidrIp"`
				Desc       string `json:"desc"`
				IPProtocol string `json:"ipProtocol"`
				PortRange  string `json:"portRange"`
			} `json:"egress"`
			Ingress []struct {
				Action     int64  `json:"action"`
				CidrIP     string `json:"cidrIp"`
				Desc       string `json:"desc"`
				IPProtocol string `json:"ipProtocol"`
				PortRange  string `json:"portRange"`
			} `json:"ingress"`
		} `json:"networkAclEntrySet"`
		NetworkAclID   string        `json:"networkAclId"`
		NetworkAclName string        `json:"networkAclName"`
		SubnetNum      int64         `json:"subnetNum"`
		SubnetSet      []interface{} `json:"subnetSet"`
		UnVpcID        string        `json:"unVpcId"`
		VpcCidrBlock   string        `json:"vpcCidrBlock"`
		VpcID          string        `json:"vpcId"`
		VpcName        string        `json:"vpcName"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeNetworkAcl

func DescribeNetworkAcl(options ...string) (*DescribeNetworkAclResp, error)

func (*DescribeNetworkAclResp) String added in v1.1.0

func (r *DescribeNetworkAclResp) String(args ...interface{}) (string, error)

type DescribeNetworkInterfacesResp added in v1.1.0

type DescribeNetworkInterfacesResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Data []struct {
			CreateTime     string        `json:"createTime"`
			EniDescription string        `json:"eniDescription"`
			EniName        string        `json:"eniName"`
			GroupSet       []interface{} `json:"groupSet"`
			InstanceSet    struct {
				AttachTime string `json:"attachTime"`
				InstanceID string `json:"instanceId"`
			} `json:"instanceSet"`
			MacAddress            string `json:"macAddress"`
			NetworkInterfaceID    string `json:"networkInterfaceId"`
			Primary               bool   `json:"primary"`
			PrivateIPAddressesSet []struct {
				Description      string `json:"description"`
				EipID            string `json:"eipId"`
				IsWanIPBlocked   bool   `json:"isWanIpBlocked"`
				Primary          bool   `json:"primary"`
				PrivateIPAddress string `json:"privateIpAddress"`
				WanIP            string `json:"wanIp"`
			} `json:"privateIpAddressesSet"`
			SubnetID string `json:"subnetId"`
			VpcID    string `json:"vpcId"`
			VpcName  string `json:"vpcName"`
			ZoneID   int64  `json:"zoneId"`
		} `json:"data"`
		TotalNum int64 `json:"totalNum"`
	} `json:"data"`
	Message string `json:"message"`
}

func DescribeNetworkInterfaces

func DescribeNetworkInterfaces(options ...string) (*DescribeNetworkInterfacesResp, error)

func (*DescribeNetworkInterfacesResp) String added in v1.1.0

func (r *DescribeNetworkInterfacesResp) String(args ...interface{}) (string, error)

type DescribeRouteTableResp added in v1.1.0

type DescribeRouteTableResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		RouteSet []struct {
			Description          interface{} `json:"description"`
			DestinationCidrBlock string      `json:"destinationCidrBlock"`
			NextHub              string      `json:"nextHub"`
			NextType             int64       `json:"nextType"`
			UnNextHub            interface{} `json:"unNextHub"`
		} `json:"routeSet"`
		RouteTableCreateTime string `json:"routeTableCreateTime"`
		RouteTableID         string `json:"routeTableId"`
		RouteTableName       string `json:"routeTableName"`
		RouteTableType       int64  `json:"routeTableType"`
		SubnetNum            int64  `json:"subnetNum"`
		UnRouteTableID       string `json:"unRouteTableId"`
		UnVpcID              string `json:"unVpcId"`
		VpcCidrBlock         string `json:"vpcCidrBlock"`
		VpcID                string `json:"vpcId"`
		VpcName              string `json:"vpcName"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeRouteTable

func DescribeRouteTable(options ...string) (*DescribeRouteTableResp, error)

func (*DescribeRouteTableResp) String added in v1.1.0

func (r *DescribeRouteTableResp) String(args ...interface{}) (string, error)

type DescribeSubnetExResp added in v1.1.0

type DescribeSubnetExResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		AvailableIPNum   int64       `json:"availableIPNum"`
		Broadcast        bool        `json:"broadcast"`
		CidrBlock        string      `json:"cidrBlock"`
		IsDefault        bool        `json:"isDefault"`
		NetworkAclID     interface{} `json:"networkAclId"`
		RouteTableID     string      `json:"routeTableId"`
		RouteTableName   string      `json:"routeTableName"`
		RtbNum           int64       `json:"rtbNum"`
		SubnetCreateTime string      `json:"subnetCreateTime"`
		SubnetID         string      `json:"subnetId"`
		SubnetName       string      `json:"subnetName"`
		TotalIPNum       int64       `json:"totalIPNum"`
		UnRouteTableID   string      `json:"unRouteTableId"`
		UnSubnetID       string      `json:"unSubnetId"`
		UnVpcID          string      `json:"unVpcId"`
		VpcCidrBlock     string      `json:"vpcCidrBlock"`
		VpcDevices       int64       `json:"vpcDevices"`
		VpcID            string      `json:"vpcId"`
		VpcName          string      `json:"vpcName"`
		Zone             string      `json:"zone"`
		ZoneID           int64       `json:"zoneId"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeSubnetEx

func DescribeSubnetEx(options ...string) (*DescribeSubnetExResp, error)

func (*DescribeSubnetExResp) String added in v1.1.0

func (r *DescribeSubnetExResp) String(args ...interface{}) (string, error)

type DescribeSubnetResp added in v1.1.0

type DescribeSubnetResp struct {
	AvailableIPNum   int64  `json:"availableIPNum"`
	CidrBlock        string `json:"cidrBlock"`
	Code             int64  `json:"code"`
	CodeDesc         string `json:"codeDesc"`
	Message          string `json:"message"`
	RouteTableID     string `json:"routeTableId"`
	SubnetCreateTime string `json:"subnetCreateTime"`
	SubnetID         string `json:"subnetId"`
	SubnetName       string `json:"subnetName"`
	TotalIPNum       int64  `json:"totalIPNum"`
	ZoneID           int64  `json:"zoneId"`
}

func DescribeSubnet

func DescribeSubnet(options ...string) (*DescribeSubnetResp, error)

func (*DescribeSubnetResp) String added in v1.1.0

func (r *DescribeSubnetResp) String(args ...interface{}) (string, error)

type DescribeUserGwResp added in v1.1.0

type DescribeUserGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		CreateTime string `json:"createTime"`
		UnUserGwID string `json:"unUserGwId"`
		UserGwAddr string `json:"userGwAddr"`
		UserGwID   int64  `json:"userGwId"`
		UserGwName string `json:"userGwName"`
		VpnConnNum int64  `json:"vpnConnNum"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeUserGw added in v1.1.0

func DescribeUserGw(options ...string) (*DescribeUserGwResp, error)

func (*DescribeUserGwResp) String added in v1.1.0

func (r *DescribeUserGwResp) String(args ...interface{}) (string, error)

type DescribeUserGwVendorResp added in v1.1.0

type DescribeUserGwVendorResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		Platform   string `json:"platform"`
		Software   string `json:"software"`
		Vendorname string `json:"vendorname"`
	} `json:"data"`
	Message string `json:"message"`
}

func DescribeUserGwVendor added in v1.1.0

func DescribeUserGwVendor(options ...string) (*DescribeUserGwVendorResp, error)

func (*DescribeUserGwVendorResp) String added in v1.1.0

func (r *DescribeUserGwVendorResp) String(args ...interface{}) (string, error)

type DescribeVpcClassicLinkResp added in v1.1.0

type DescribeVpcClassicLinkResp struct {
	Code       int64  `json:"code"`
	CodeDesc   string `json:"codeDesc"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}
func DescribeVpcClassicLink(options ...string) (*DescribeVpcClassicLinkResp, error)

func (*DescribeVpcClassicLinkResp) String added in v1.1.0

func (r *DescribeVpcClassicLinkResp) String(args ...interface{}) (string, error)

type DescribeVpcExResp added in v1.1.0

type DescribeVpcExResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		CidrBlock      string `json:"cidrBlock"`
		ClassicLinkNum int64  `json:"classicLinkNum"`
		CreateTime     string `json:"createTime"`
		IsDefault      bool   `json:"isDefault"`
		IsMulticast    bool   `json:"isMulticast"`
		NatNum         int64  `json:"natNum"`
		RouteTableNum  int64  `json:"routeTableNum"`
		SubnetNum      int64  `json:"subnetNum"`
		UnVpcID        string `json:"unVpcId"`
		VpcDeviceNum   int64  `json:"vpcDeviceNum"`
		VpcID          string `json:"vpcId"`
		VpcName        string `json:"vpcName"`
		VpcPeerNum     int64  `json:"vpcPeerNum"`
		VpgNum         int64  `json:"vpgNum"`
		VpnGwNum       int64  `json:"vpnGwNum"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeVpcEx

func DescribeVpcEx(options ...string) (*DescribeVpcExResp, error)

func (*DescribeVpcExResp) String added in v1.1.0

func (r *DescribeVpcExResp) String(args ...interface{}) (string, error)

type DescribeVpcLimitResp added in v1.1.0

type DescribeVpcLimitResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Limit []int64 `json:"limit"`
	} `json:"data"`
	Message string `json:"message"`
}

func (*DescribeVpcLimitResp) String added in v1.1.0

func (r *DescribeVpcLimitResp) String(args ...interface{}) (string, error)

type DescribeVpcPeeringConnectionsResp added in v1.1.0

type DescribeVpcPeeringConnectionsResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		AppID                 string `json:"appId"`
		Bandwidth             int64  `json:"bandwidth"`
		CreateTime            string `json:"createTime"`
		PeerAppID             string `json:"peerAppId"`
		PeerRegion            string `json:"peerRegion"`
		PeerUin               int64  `json:"peerUin"`
		PeerVpcID             string `json:"peerVpcId"`
		PeeringConnectionID   string `json:"peeringConnectionId"`
		PeeringConnectionName string `json:"peeringConnectionName"`
		Region                string `json:"region"`
		State                 int64  `json:"state"`
		Type                  int64  `json:"type"`
		Uin                   int64  `json:"uin"`
		UnPeerVpcID           string `json:"unPeerVpcId"`
		UnVpcID               string `json:"unVpcId"`
		UniqPeerVpcID         string `json:"uniqPeerVpcId"`
		UniqVpcID             string `json:"uniqVpcId"`
		VpcID                 string `json:"vpcId"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeVpcPeeringConnections

func DescribeVpcPeeringConnections(options ...string) (*DescribeVpcPeeringConnectionsResp, error)

func (*DescribeVpcPeeringConnectionsResp) String added in v1.1.0

func (r *DescribeVpcPeeringConnectionsResp) String(args ...interface{}) (string, error)

type DescribeVpnGwResp added in v1.1.0

type DescribeVpnGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     []struct {
		Bandwidth        int64  `json:"bandwidth"`
		ChargeType       string `json:"chargeType"`
		CreateTime       string `json:"createTime"`
		DealID           string `json:"dealId"`
		ExpireTime       string `json:"expireTime"`
		HotHaIP          string `json:"hotHaIp"`
		IsAddressBlocked int64  `json:"isAddressBlocked"`
		IsAutoRenewals   bool   `json:"isAutoRenewals"`
		LocalSLAIP       string `json:"localSlaIp"`
		NewPurchasePlan  string `json:"newPurchasePlan"`
		UnVpcID          string `json:"unVpcId"`
		UnVpnGwID        string `json:"unVpnGwId"`
		VpcCidrBlock     string `json:"vpcCidrBlock"`
		VpcID            string `json:"vpcId"`
		VpcName          string `json:"vpcName"`
		VpnGwAddress     string `json:"vpnGwAddress"`
		VpnGwID          int64  `json:"vpnGwId"`
		VpnGwName        string `json:"vpnGwName"`
		VpnGwStatus      int64  `json:"vpnGwStatus"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

func DescribeVpnGw added in v1.1.0

func DescribeVpnGw(options ...string) (*DescribeVpnGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5108

func (*DescribeVpnGwResp) String added in v1.1.0

func (r *DescribeVpnGwResp) String(args ...interface{}) (string, error)

type DeteleSubnetAclRuleResp added in v1.1.0

type DeteleSubnetAclRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func DeteleSubnetAclRule

func DeteleSubnetAclRule(options ...string) (*DeteleSubnetAclRuleResp, error)

func (*DeteleSubnetAclRuleResp) String added in v1.1.0

func (r *DeteleSubnetAclRuleResp) String(args ...interface{}) (string, error)

type EipBindNatGatewayResp added in v1.1.0

type EipBindNatGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	TaskID   int64  `json:"taskId"`
}

func (*EipBindNatGatewayResp) String added in v1.1.0

func (r *EipBindNatGatewayResp) String(args ...interface{}) (string, error)

type InquiryNatPriceResp added in v1.1.0

type InquiryNatPriceResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	Price    struct {
		Device  int64 `json:"device"`
		Traffic int64 `json:"traffic"`
	} `json:"price"`
}

func InquiryNatPrice added in v1.1.0

func InquiryNatPrice(options ...string) (*InquiryNatPriceResp, error)

func (*InquiryNatPriceResp) String added in v1.1.0

func (r *InquiryNatPriceResp) String(args ...interface{}) (string, error)

type InquiryVpnPriceResp added in v1.1.0

type InquiryVpnPriceResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
	Price    int64  `json:"price"`
}

func InquiryVpnPrice added in v1.1.0

func InquiryVpnPrice(options ...string) (*InquiryVpnPriceResp, error)

func (*InquiryVpnPriceResp) String added in v1.1.0

func (r *InquiryVpnPriceResp) String(args ...interface{}) (string, error)

type ModifyDirectConnectGatewayResp added in v1.1.0

type ModifyDirectConnectGatewayResp struct {
	Code     int64         `json:"code"`
	CodeDesc string        `json:"codeDesc"`
	Data     []interface{} `json:"data"`
	Message  string        `json:"message"`
}

func ModifyDirectConnectGateway added in v1.1.0

func ModifyDirectConnectGateway(options ...string) (*ModifyDirectConnectGatewayResp, error)

func (*ModifyDirectConnectGatewayResp) String added in v1.1.0

func (r *ModifyDirectConnectGatewayResp) String(args ...interface{}) (string, error)

type ModifyLocalIPTranslationNatRuleResp added in v1.1.0

type ModifyLocalIPTranslationNatRuleResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		TaskID int64 `json:"taskId"`
	} `json:"data"`
	Message string `json:"message"`
}

func ModifyLocalIPTranslationNatRule added in v1.1.0

func ModifyLocalIPTranslationNatRule(options ...string) (*ModifyLocalIPTranslationNatRuleResp, error)

func (*ModifyLocalIPTranslationNatRuleResp) String added in v1.1.0

func (r *ModifyLocalIPTranslationNatRuleResp) String(args ...interface{}) (string, error)

type ModifyNatGatewayResp added in v1.1.0

type ModifyNatGatewayResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNatGateway

func ModifyNatGateway(options ...string) (*ModifyNatGatewayResp, error)

func (*ModifyNatGatewayResp) String added in v1.1.0

func (r *ModifyNatGatewayResp) String(args ...interface{}) (string, error)

type ModifyNetworkAclEntryResp added in v1.1.0

type ModifyNetworkAclEntryResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNetworkAclEntry

func ModifyNetworkAclEntry(options ...string) (*ModifyNetworkAclEntryResp, error)

func (*ModifyNetworkAclEntryResp) String added in v1.1.0

func (r *ModifyNetworkAclEntryResp) String(args ...interface{}) (string, error)

type ModifyNetworkAclResp added in v1.1.0

type ModifyNetworkAclResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyNetworkAcl

func ModifyNetworkAcl(options ...string) (*ModifyNetworkAclResp, error)

func (*ModifyNetworkAclResp) String added in v1.1.0

func (r *ModifyNetworkAclResp) String(args ...interface{}) (string, error)

type ModifyRouteTableAttributeResp added in v1.1.0

type ModifyRouteTableAttributeResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func (*ModifyRouteTableAttributeResp) String added in v1.1.0

func (r *ModifyRouteTableAttributeResp) String(args ...interface{}) (string, error)

type ModifySubnetAttributeResp added in v1.1.0

type ModifySubnetAttributeResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifySubnetAttribute

func ModifySubnetAttribute(options ...string) (*ModifySubnetAttributeResp, error)

func (*ModifySubnetAttributeResp) String added in v1.1.0

func (r *ModifySubnetAttributeResp) String(args ...interface{}) (string, error)

type ModifyUserGwResp added in v1.1.0

type ModifyUserGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyUserGw added in v1.1.0

func ModifyUserGw(options ...string) (*ModifyUserGwResp, error)

func (*ModifyUserGwResp) String added in v1.1.0

func (r *ModifyUserGwResp) String(args ...interface{}) (string, error)

type ModifyVpcAttributeResp added in v1.1.0

type ModifyVpcAttributeResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyVpcAttribute

func ModifyVpcAttribute(options ...string) (*ModifyVpcAttributeResp, error)

func (*ModifyVpcAttributeResp) String added in v1.1.0

func (r *ModifyVpcAttributeResp) String(args ...interface{}) (string, error)

type ModifyVpnGwResp added in v1.1.0

type ModifyVpnGwResp struct {
	Code     int64  `json:"code"`
	CodeDesc string `json:"codeDesc"`
	Message  string `json:"message"`
}

func ModifyVpnGw added in v1.1.0

func ModifyVpnGw(options ...string) (*ModifyVpnGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5107

func (*ModifyVpnGwResp) String added in v1.1.0

func (r *ModifyVpnGwResp) String(args ...interface{}) (string, error)

type VpcClient added in v1.3.0

type VpcClient struct {
	*core.Client
}

func NewClient added in v1.3.0

func NewClient() *VpcClient

func (*VpcClient) AddUserGw added in v1.3.0

func (c *VpcClient) AddUserGw(options ...string) (*AddUserGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5116

func (*VpcClient) AssociateRouteTable added in v1.3.0

func (c *VpcClient) AssociateRouteTable(options ...string) (*AssociateRouteTableResp, error)

Implement https://cloud.tencent.com/document/api/215/1416

func (*VpcClient) CreateDirectConnectGateway added in v1.3.0

func (c *VpcClient) CreateDirectConnectGateway(options ...string) (*CreateDirectConnectGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4824

func (*VpcClient) CreateLocalIPTranslationNatRule added in v1.3.0

func (c *VpcClient) CreateLocalIPTranslationNatRule(options ...string) (*CreateLocalIPTranslationNatRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/5185

func (*VpcClient) CreateNatGateway added in v1.3.0

func (c *VpcClient) CreateNatGateway(options ...string) (*CreateNatGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4094

func (*VpcClient) CreateNetworkAcl added in v1.3.0

func (c *VpcClient) CreateNetworkAcl(options ...string) (*CreateNetworkAclResp, error)

Implement https://cloud.tencent.com/document/api/215/1437

func (*VpcClient) CreateNetworkInterface added in v1.3.0

func (c *VpcClient) CreateNetworkInterface(options ...string) (*CreateNetworkInterfaceResp, error)

Implement https://cloud.tencent.com/document/api/215/4811

func (*VpcClient) CreateRouteTable added in v1.3.0

func (c *VpcClient) CreateRouteTable(options ...string) (*CreateRouteTableResp, error)

Implement https://cloud.tencent.com/document/api/215/1419

func (*VpcClient) CreateSubnet added in v1.3.0

func (c *VpcClient) CreateSubnet(options ...string) (*CreateSubnetResp, error)

Implement https://cloud.tencent.com/document/api/215/1314

func (*VpcClient) CreateSubnetAclRule added in v1.3.0

func (c *VpcClient) CreateSubnetAclRule(options ...string) (*CreateSubnetAclRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/1438

func (*VpcClient) CreateVpc added in v1.3.0

func (c *VpcClient) CreateVpc(options ...string) (*CreateVpcResp, error)

Implement https://cloud.tencent.com/document/api/215/1309

func (*VpcClient) CreateVpcPeeringConnection added in v1.3.0

func (c *VpcClient) CreateVpcPeeringConnection(options ...string) (*CreateVpcPeeringConnectionResp, error)

Implement https://cloud.tencent.com/document/api/215/2107

func (*VpcClient) DeleteDirectConnectGateway added in v1.3.0

func (c *VpcClient) DeleteDirectConnectGateway(options ...string) (*DeleteDirectConnectGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4825

func (*VpcClient) DeleteNatGateway added in v1.3.0

func (c *VpcClient) DeleteNatGateway(options ...string) (*DeleteNatGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4087

func (*VpcClient) DeleteNetworkAcl added in v1.3.0

func (c *VpcClient) DeleteNetworkAcl(options ...string) (*DeleteNetworkAclResp, error)

Implement https://cloud.tencent.com/document/api/215/1439

func (*VpcClient) DeleteRoute added in v1.3.0

func (c *VpcClient) DeleteRoute(options ...string) (*DeleteRouteResp, error)

Implement https://cloud.tencent.com/document/api/215/5689

func (*VpcClient) DeleteUserGw added in v1.3.0

func (c *VpcClient) DeleteUserGw(options ...string) (*DeleteUserGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5117

func (*VpcClient) DeleteVpcPeeringConnection added in v1.3.0

func (c *VpcClient) DeleteVpcPeeringConnection(options ...string) (*DeleteVpcPeeringConnectionResp, error)

Implement https://cloud.tencent.com/document/api/215/2104

func (*VpcClient) DescribeDirectConnectGateway added in v1.3.0

func (c *VpcClient) DescribeDirectConnectGateway(options ...string) (*DescribeDirectConnectGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4827

func (*VpcClient) DescribeLocalIPTranslationNatRule added in v1.3.0

func (c *VpcClient) DescribeLocalIPTranslationNatRule(options ...string) (*DescribeLocalIPTranslationNatRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/5188

func (*VpcClient) DescribeNatGateway added in v1.3.0

func (c *VpcClient) DescribeNatGateway(options ...string) (*DescribeNatGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4088

func (*VpcClient) DescribeNetworkAcl added in v1.3.0

func (c *VpcClient) DescribeNetworkAcl(options ...string) (*DescribeNetworkAclResp, error)

Implement https://cloud.tencent.com/document/api/215/1441

func (*VpcClient) DescribeNetworkInterfaces added in v1.3.0

func (c *VpcClient) DescribeNetworkInterfaces(options ...string) (*DescribeNetworkInterfacesResp, error)

Implement https://cloud.tencent.com/document/api/215/4814

func (*VpcClient) DescribeRouteTable added in v1.3.0

func (c *VpcClient) DescribeRouteTable(options ...string) (*DescribeRouteTableResp, error)

Implement https://cloud.tencent.com/document/api/215/1420

func (*VpcClient) DescribeSubnet added in v1.3.0

func (c *VpcClient) DescribeSubnet(options ...string) (*DescribeSubnetResp, error)

Implement https://cloud.tencent.com/document/api/215/1311

func (*VpcClient) DescribeSubnetEx added in v1.3.0

func (c *VpcClient) DescribeSubnetEx(options ...string) (*DescribeSubnetExResp, error)

Implement https://cloud.tencent.com/document/api/215/1371

func (*VpcClient) DescribeUserGw added in v1.3.0

func (c *VpcClient) DescribeUserGw(options ...string) (*DescribeUserGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5119

func (*VpcClient) DescribeUserGwVendor added in v1.3.0

func (c *VpcClient) DescribeUserGwVendor(options ...string) (*DescribeUserGwVendorResp, error)

Implement https://cloud.tencent.com/document/api/215/5120

func (c *VpcClient) DescribeVpcClassicLink(options ...string) (*DescribeVpcClassicLinkResp, error)

Implement https://cloud.tencent.com/document/api/215/2112

func (*VpcClient) DescribeVpcEx added in v1.3.0

func (c *VpcClient) DescribeVpcEx(options ...string) (*DescribeVpcExResp, error)

Implement https://cloud.tencent.com/document/api/215/1372

func (*VpcClient) DescribeVpcPeeringConnections added in v1.3.0

func (c *VpcClient) DescribeVpcPeeringConnections(options ...string) (*DescribeVpcPeeringConnectionsResp, error)

Implement https://cloud.tencent.com/document/api/215/2101

func (*VpcClient) DeteleSubnetAclRule added in v1.3.0

func (c *VpcClient) DeteleSubnetAclRule(options ...string) (*DeteleSubnetAclRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/1442

func (*VpcClient) DoAction added in v1.3.0

func (client *VpcClient) DoAction(action string, options ...string) ([]byte, error)

func (*VpcClient) InquiryNatPrice added in v1.3.0

func (c *VpcClient) InquiryNatPrice(options ...string) (*InquiryNatPriceResp, error)

Implement https://cloud.tencent.com/document/api/215/4091

func (*VpcClient) InquiryVpnPrice added in v1.3.0

func (c *VpcClient) InquiryVpnPrice(options ...string) (*InquiryVpnPriceResp, error)

Implement https://cloud.tencent.com/document/api/215/5104

func (*VpcClient) ModifyDirectConnectGateway added in v1.3.0

func (c *VpcClient) ModifyDirectConnectGateway(options ...string) (*ModifyDirectConnectGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4826

func (*VpcClient) ModifyLocalIPTranslationNatRule added in v1.3.0

func (c *VpcClient) ModifyLocalIPTranslationNatRule(options ...string) (*ModifyLocalIPTranslationNatRuleResp, error)

Implement https://cloud.tencent.com/document/api/215/5187

func (*VpcClient) ModifyNatGateway added in v1.3.0

func (c *VpcClient) ModifyNatGateway(options ...string) (*ModifyNatGatewayResp, error)

Implement https://cloud.tencent.com/document/api/215/4086

func (*VpcClient) ModifyNetworkAcl added in v1.3.0

func (c *VpcClient) ModifyNetworkAcl(options ...string) (*ModifyNetworkAclResp, error)

Implement https://cloud.tencent.com/document/api/215/1443

func (*VpcClient) ModifyNetworkAclEntry added in v1.3.0

func (c *VpcClient) ModifyNetworkAclEntry(options ...string) (*ModifyNetworkAclEntryResp, error)

Implement https://cloud.tencent.com/document/api/215/1444

func (*VpcClient) ModifySubnetAttribute added in v1.3.0

func (c *VpcClient) ModifySubnetAttribute(options ...string) (*ModifySubnetAttributeResp, error)

Implement https://cloud.tencent.com/document/api/215/1313

func (*VpcClient) ModifyUserGw added in v1.3.0

func (c *VpcClient) ModifyUserGw(options ...string) (*ModifyUserGwResp, error)

Implement https://cloud.tencent.com/document/api/215/5118

func (*VpcClient) ModifyVpcAttribute added in v1.3.0

func (c *VpcClient) ModifyVpcAttribute(options ...string) (*ModifyVpcAttributeResp, error)

Implement https://cloud.tencent.com/document/api/215/1310

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL