vpc

package
v0.0.0-...-a452e60 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VpcHost = "vpc.api.qcloud.com"
	VpcPath = "/v2/index.php"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*common.Client
}

func NewClient

func NewClient(credential common.CredentialInterface, opts common.Opts) (*Client, error)

func NewClientFromEnv

func NewClientFromEnv() (*Client, error)

func (*Client) DescribeVpcEx

func (client *Client) DescribeVpcEx(args *DescribeVpcExArgs) (*DescribeVpcExResponse, error)

type DescribeVpcExArgs

type DescribeVpcExArgs struct {
	VpcId          *string `qcloud_arg:"vpcId"`
	VpcName        *string `qcloud_arg:"vpcName"`
	Offset         *int    `qcloud_arg:"offset"`
	Limit          *int    `qcloud_arg:"limit"`
	OrderField     *string `qcloud_arg:"orderField"`
	OrderDirection *string `qcloud_arg:"orderDirection"`
}

type DescribeVpcExResponse

type DescribeVpcExResponse struct {
	Response
	TotalCount int   `json:"totalCount"`
	Data       []Vpc `json:"data"`
}

type Response

type Response struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type Vpc

type Vpc struct {
	VpcId          string `json:"vpcId"`
	UnVpcId        string `json:"unVpcId"`
	VpcName        string `json:"vpcName"`
	CidrBlock      string `json:"cidrBlock"`
	SubnetNum      int    `json:"subnetNum"`
	RouteTableNum  int    `json:"routeTableNum"`
	VpnGwNum       int    `json:"vpnGwNum"`
	VpcPeerNum     int    `json:"vpcPeerNum"`
	VpcDeviceNum   int    `json:"vpcDeviceNum"`
	ClassicLinkNum int    `json:"classicLinkNum"`
	VpgNum         int    `json:"vpgNum"`
	NatNum         int    `json:"natNum"`
	CreateTime     string `json:"createTime"`
	IsDefault      bool   `json:"isDefault"`
}

Jump to

Keyboard shortcuts

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