vpc

package
v0.0.0-...-c113622 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package vpc include resources of ucloud vpc product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeWhiteListRequest

type DescribeWhiteListRequest struct {
	request.CommonBase

	// NATGateWay Id列表
	NATGWIds []string `required:"true"`
}

DescribeWhiteListRequest is request schema for DescribeWhiteList action

type DescribeWhiteListResourceObjectIPInfo

type DescribeWhiteListResourceObjectIPInfo struct {

	// natgw字符串
	GwType string

	// 白名单资源的内网IP
	PrivateIP string

	// 白名单资源Id信息
	ResourceId string

	// 白名单资源名称
	ResourceName string

	// 白名单资源类型
	ResourceType string

	// 资源绑定的虚拟网卡的实例ID
	SubResourceId string

	// 资源绑定的虚拟网卡的实例名称
	SubResourceName string

	// 资源绑定的虚拟网卡的类型
	SubResourceType string

	// 白名单资源所属VPCId
	VPCId string
}

DescribeWhiteListResourceObjectIPInfo - DescribeWhiteListResource

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type DescribeWhiteListResponse

type DescribeWhiteListResponse struct {
	response.CommonBase

	//
	DataSet []NatGWWhitelistDataSet

	// 满足条件的实例的总数
	TotalCount int
}

DescribeWhiteListResponse is response schema for DescribeWhiteList action

type GetAvailableHostForWhiteListRequest

type GetAvailableHostForWhiteListRequest struct {
	request.CommonBase

	// natgw资源id
	NATGWId *string `required:"true"`
}

GetAvailableHostForWhiteListRequest is request schema for GetAvailableHostForWhiteList action

type GetAvailableHostForWhiteListResponse

type GetAvailableHostForWhiteListResponse struct {
	response.CommonBase

	// 主机信息列表
	DataSet []GetAvailableResourceForWhiteListDataSet

	// 总数
	TotalCount int
}

GetAvailableHostForWhiteListResponse is response schema for GetAvailableHostForWhiteList action

type GetAvailableResourceForWhiteListDataSet

type GetAvailableResourceForWhiteListDataSet struct {

	// 资源的内网Ip
	PrivateIP string

	// 资源类型Id
	ResourceId string

	// 资源名称
	ResourceName string

	// 资源类型。"uhost":云主机; "upm",物理云主机; "hadoophost":hadoop节点; "fortresshost":堡垒机: "udockhost",容器
	ResourceType string

	// 资源绑定的虚拟网卡的实例ID
	SubResouceId string

	// 资源绑定的虚拟网卡的实例类型
	SubResouceType string

	// 资源绑定的虚拟网卡的实例名称
	SubResourceName string

	// 资源所属子网Id
	SubnetworkId string

	// 资源所属VPCId
	VPCId string
}

GetAvailableResourceForWhiteListDataSet - GetAvailableResourceForWhiteList

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type NatGWWhitelistDataSet

type NatGWWhitelistDataSet struct {

	// 白名单开关标记
	IfOpen int

	// NATGateWay Id
	NATGWId string

	// 白名单详情
	ObjectIPInfo []DescribeWhiteListResourceObjectIPInfo
}

NatGWWhitelistDataSet - nat网关白名单数据

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type VPCClient

type VPCClient struct {
	*ucloud.Client
}

VPCClient is the client of VPC

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *VPCClient

NewClient will return a instance of VPCClient

func (*VPCClient) DescribeWhiteList

func (c *VPCClient) DescribeWhiteList(req *DescribeWhiteListRequest) (*DescribeWhiteListResponse, error)

DescribeWhiteList - 获取nat网关白名单列表

func (*VPCClient) GetAvailableHostForWhiteList

GetAvailableHostForWhiteList - 获取可用于白名单的uhost

func (*VPCClient) NewDescribeWhiteListRequest

func (c *VPCClient) NewDescribeWhiteListRequest() *DescribeWhiteListRequest

NewDescribeWhiteListRequest will create request of DescribeWhiteList action.

func (*VPCClient) NewGetAvailableHostForWhiteListRequest

func (c *VPCClient) NewGetAvailableHostForWhiteListRequest() *GetAvailableHostForWhiteListRequest

NewGetAvailableHostForWhiteListRequest will create request of GetAvailableHostForWhiteList action.

Jump to

Keyboard shortcuts

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