Documentation ¶
Overview ¶
Package vpc include resources of ucloud vpc 2.0 product
Index ¶
- type AllocateSecondaryIpRequest
- type AllocateSecondaryIpResponse
- type DeleteSecondaryIpRequest
- type DeleteSecondaryIpResponse
- type DescribeSecondaryIpRequest
- type DescribeSecondaryIpResponse
- type IpInfo
- type UpdateNATGWRequest
- type UpdateNATGWResponse
- type VPCClient
- func (c *VPCClient) AllocateSecondaryIp(req *AllocateSecondaryIpRequest) (*AllocateSecondaryIpResponse, error)
- func (c *VPCClient) DeleteSecondaryIp(req *DeleteSecondaryIpRequest) (*DeleteSecondaryIpResponse, error)
- func (c *VPCClient) DescribeSecondaryIp(req *DescribeSecondaryIpRequest) (*DescribeSecondaryIpResponse, error)
- func (c *VPCClient) NewAllocateSecondaryIpRequest() *AllocateSecondaryIpRequest
- func (c *VPCClient) NewDeleteSecondaryIpRequest() *DeleteSecondaryIpRequest
- func (c *VPCClient) NewDescribeSecondaryIpRequest() *DescribeSecondaryIpRequest
- func (c *VPCClient) NewUpdateNATGWRequest() *UpdateNATGWRequest
- func (c *VPCClient) UpdateNATGW(req *UpdateNATGWRequest) (*UpdateNATGWResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateSecondaryIpRequest ¶
type AllocateSecondaryIpRequest struct { request.CommonBase // 节点mac Mac *string `required:"true"` // 子网Id(若未指定,则根据zone获取默认子网进行创建) SubnetId *string `required:"false"` // vpcId VPCId *string `required:"false"` // 指定Ip分配 Ip *string `required:"false"` // 资源Id ObjectId *string `required:"false"` }
AllocateSecondaryIpRequest is request schema for AllocateSecondaryIp action
type AllocateSecondaryIpResponse ¶
type AllocateSecondaryIpResponse struct { response.CommonBase // IpInfo IpInfo }
AllocateSecondaryIpResponse is response schema for AllocateSecondaryIp action
type DeleteSecondaryIpRequest ¶
type DeleteSecondaryIpRequest struct { request.CommonBase // ip Ip *string `required:"true"` // mac Mac *string `required:"true"` // 子网Id SubnetId *string `required:"true"` // VPCId VPCId *string `required:"false"` // 资源Id ObjectId *string `required:"false"` }
DeleteSecondaryIpRequest is request schema for DeleteSecondaryIp action
type DeleteSecondaryIpResponse ¶
type DeleteSecondaryIpResponse struct {
response.CommonBase
}
DeleteSecondaryIpResponse is response schema for DeleteSecondaryIp action
type DescribeSecondaryIpRequest ¶
type DescribeSecondaryIpRequest struct { request.CommonBase // 子网Id SubnetId *string `required:"true"` // VPCId VPCId *string `required:"true"` }
DescribeSecondaryIpRequest is request schema for DescribeSecondaryIp action
type DescribeSecondaryIpResponse ¶
type DescribeSecondaryIpResponse struct { response.CommonBase // DataSet []IpInfo }
DescribeSecondaryIpResponse is response schema for DescribeSecondaryIp action
type IpInfo ¶
type IpInfo struct { // Ip string // Mask string // Gateway string // Mac string // SubnetId string // VPCId string }
IpInfo -
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type UpdateNATGWRequest ¶ added in v0.10.0
type UpdateNATGWRequest struct { request.CommonBase // natgw id NATGWId *string `required:"true"` // NATGateWay 名字 NATGWName *string `required:"false"` // 备注 Remark *string `required:"false"` // 业务组 Tag *string `required:"false"` }
UpdateNATGWRequest is request schema for UpdateNATGW action
type UpdateNATGWResponse ¶ added in v0.10.0
type UpdateNATGWResponse struct {
response.CommonBase
}
UpdateNATGWResponse is response schema for UpdateNATGW action
type VPCClient ¶
VPCClient is the client of VPC2.0
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *VPCClient
NewClient will return a instance of VPCClient
func (*VPCClient) AllocateSecondaryIp ¶
func (c *VPCClient) AllocateSecondaryIp(req *AllocateSecondaryIpRequest) (*AllocateSecondaryIpResponse, error)
AllocateSecondaryIp - 分配ip(用于uk8s使用)
func (*VPCClient) DeleteSecondaryIp ¶
func (c *VPCClient) DeleteSecondaryIp(req *DeleteSecondaryIpRequest) (*DeleteSecondaryIpResponse, error)
DeleteSecondaryIp - 删除ip(用于uk8s使用)
func (*VPCClient) DescribeSecondaryIp ¶
func (c *VPCClient) DescribeSecondaryIp(req *DescribeSecondaryIpRequest) (*DescribeSecondaryIpResponse, error)
DescribeSecondaryIp - 查询SecondaryIp(uk8s使用)
func (*VPCClient) NewAllocateSecondaryIpRequest ¶
func (c *VPCClient) NewAllocateSecondaryIpRequest() *AllocateSecondaryIpRequest
NewAllocateSecondaryIpRequest will create request of AllocateSecondaryIp action.
func (*VPCClient) NewDeleteSecondaryIpRequest ¶
func (c *VPCClient) NewDeleteSecondaryIpRequest() *DeleteSecondaryIpRequest
NewDeleteSecondaryIpRequest will create request of DeleteSecondaryIp action.
func (*VPCClient) NewDescribeSecondaryIpRequest ¶
func (c *VPCClient) NewDescribeSecondaryIpRequest() *DescribeSecondaryIpRequest
NewDescribeSecondaryIpRequest will create request of DescribeSecondaryIp action.
func (*VPCClient) NewUpdateNATGWRequest ¶ added in v0.10.0
func (c *VPCClient) NewUpdateNATGWRequest() *UpdateNATGWRequest
NewUpdateNATGWRequest will create request of UpdateNATGW action.
func (*VPCClient) UpdateNATGW ¶ added in v0.10.0
func (c *VPCClient) UpdateNATGW(req *UpdateNATGWRequest) (*UpdateNATGWResponse, error)
UpdateNATGW - 更新nat网关