Documentation ¶
Overview ¶
Package udpn include resources of ucloud udpn product
See also
- API: https://docs.ucloud.cn/api/udpn-api/index
- Product: https://www.ucloud.cn/site/product/udpn.html
for detail.
Index ¶
- type AllocateUDPNRequest
- type AllocateUDPNResponse
- type DescribeUDPNRequest
- type DescribeUDPNResponse
- type GetUDPNLineListRequest
- type GetUDPNLineListResponse
- type GetUDPNPriceRequest
- type GetUDPNPriceResponse
- type GetUDPNUpgradePriceRequest
- type GetUDPNUpgradePriceResponse
- type ModifyUDPNBandwidthRequest
- type ModifyUDPNBandwidthResponse
- type ReleaseUDPNRequest
- type ReleaseUDPNResponse
- type UDPNClient
- func (c *UDPNClient) AllocateUDPN(req *AllocateUDPNRequest) (*AllocateUDPNResponse, error)
- func (c *UDPNClient) DescribeUDPN(req *DescribeUDPNRequest) (*DescribeUDPNResponse, error)
- func (c *UDPNClient) GetUDPNLineList(req *GetUDPNLineListRequest) (*GetUDPNLineListResponse, error)
- func (c *UDPNClient) GetUDPNPrice(req *GetUDPNPriceRequest) (*GetUDPNPriceResponse, error)
- func (c *UDPNClient) GetUDPNUpgradePrice(req *GetUDPNUpgradePriceRequest) (*GetUDPNUpgradePriceResponse, error)
- func (c *UDPNClient) ModifyUDPNBandwidth(req *ModifyUDPNBandwidthRequest) (*ModifyUDPNBandwidthResponse, error)
- func (c *UDPNClient) NewAllocateUDPNRequest() *AllocateUDPNRequest
- func (c *UDPNClient) NewDescribeUDPNRequest() *DescribeUDPNRequest
- func (c *UDPNClient) NewGetUDPNLineListRequest() *GetUDPNLineListRequest
- func (c *UDPNClient) NewGetUDPNPriceRequest() *GetUDPNPriceRequest
- func (c *UDPNClient) NewGetUDPNUpgradePriceRequest() *GetUDPNUpgradePriceRequest
- func (c *UDPNClient) NewModifyUDPNBandwidthRequest() *ModifyUDPNBandwidthRequest
- func (c *UDPNClient) NewReleaseUDPNRequest() *ReleaseUDPNRequest
- func (c *UDPNClient) ReleaseUDPN(req *ReleaseUDPNRequest) (*ReleaseUDPNResponse, error)
- type UDPNData
- type UDPNLineSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateUDPNRequest ¶
type AllocateUDPNRequest struct { request.CommonBase // 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky Peer1 *string `required:"true"` // 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky Peer2 *string `required:"true"` // 带宽 Bandwidth *int `required:"true"` // 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费 ChargeType *string `required:"false"` // 计费时长,默认 1 Quantity *int `required:"false"` // 代金劵 CouponId *string `required:"false"` }
AllocateUDPNRequest is request schema for AllocateUDPN action
type AllocateUDPNResponse ¶
type AllocateUDPNResponse struct { response.CommonBase // 资源名称 UDPNId string }
AllocateUDPNResponse is response schema for AllocateUDPN action
type DescribeUDPNRequest ¶
type DescribeUDPNRequest struct { request.CommonBase // 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId UDPNId *string `required:"false"` // 列表起始位置偏移量,默认为 0 Offset *int `required:"false"` // 返回数据长度,默认为 20 Limit *int `required:"false"` }
DescribeUDPNRequest is request schema for DescribeUDPN action
type DescribeUDPNResponse ¶
type DescribeUDPNResponse struct { response.CommonBase // 查询到的总数量 TotalCount int // UDPN详情 DataSet []UDPNData }
DescribeUDPNResponse is response schema for DescribeUDPN action
type GetUDPNLineListRequest ¶
type GetUDPNLineListRequest struct {
request.CommonBase
}
GetUDPNLineListRequest is request schema for GetUDPNLineList action
type GetUDPNLineListResponse ¶
type GetUDPNLineListResponse struct { response.CommonBase // DataSet中的元素个数 TotalCount int // 当前支持的专线线路详细信息,详见UDPNLineSet DataSet []UDPNLineSet }
GetUDPNLineListResponse is response schema for GetUDPNLineList action
type GetUDPNPriceRequest ¶
type GetUDPNPriceRequest struct { request.CommonBase // 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky Peer1 *string `required:"true"` // 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky Peer2 *string `required:"true"` // 带宽信息 Bandwidth *int `required:"true"` // 计费类型 ChargeType *string `required:"false"` // 购买时长 Quantity *int `required:"false"` }
GetUDPNPriceRequest is request schema for GetUDPNPrice action
type GetUDPNPriceResponse ¶
type GetUDPNPriceResponse struct { response.CommonBase // 资源有效期 unix 时间戳 PurchaseValue int // 专线价格 Price float64 }
GetUDPNPriceResponse is response schema for GetUDPNPrice action
type GetUDPNUpgradePriceRequest ¶
type GetUDPNUpgradePriceRequest struct { request.CommonBase // 专线带宽资源 Id UDPNId *string `required:"true"` // 带宽 Bandwidth *int `required:"true"` }
GetUDPNUpgradePriceRequest is request schema for GetUDPNUpgradePrice action
type GetUDPNUpgradePriceResponse ¶
type GetUDPNUpgradePriceResponse struct { response.CommonBase // 升级后的价格 Price float64 }
GetUDPNUpgradePriceResponse is response schema for GetUDPNUpgradePrice action
type ModifyUDPNBandwidthRequest ¶
type ModifyUDPNBandwidthRequest struct { request.CommonBase // UDPN Id UDPNId *string `required:"true"` // 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数 Bandwidth *int `required:"true"` // 代金劵 ID CouponId *string `required:"false"` }
ModifyUDPNBandwidthRequest is request schema for ModifyUDPNBandwidth action
type ModifyUDPNBandwidthResponse ¶
type ModifyUDPNBandwidthResponse struct {
response.CommonBase
}
ModifyUDPNBandwidthResponse is response schema for ModifyUDPNBandwidth action
type ReleaseUDPNRequest ¶
type ReleaseUDPNRequest struct { request.CommonBase // UDPN 资源 Id UDPNId *string `required:"true"` }
ReleaseUDPNRequest is request schema for ReleaseUDPN action
type ReleaseUDPNResponse ¶
type ReleaseUDPNResponse struct {
response.CommonBase
}
ReleaseUDPNResponse is response schema for ReleaseUDPN action
type UDPNClient ¶
UDPNClient is the client of UDPN
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDPNClient
NewClient will return a instance of UDPNClient
func (*UDPNClient) AllocateUDPN ¶
func (c *UDPNClient) AllocateUDPN(req *AllocateUDPNRequest) (*AllocateUDPNResponse, error)
AllocateUDPN - 分配一条 UDPN 专线
func (*UDPNClient) DescribeUDPN ¶
func (c *UDPNClient) DescribeUDPN(req *DescribeUDPNRequest) (*DescribeUDPNResponse, error)
DescribeUDPN - 描述 UDPN
func (*UDPNClient) GetUDPNLineList ¶
func (c *UDPNClient) GetUDPNLineList(req *GetUDPNLineListRequest) (*GetUDPNLineListResponse, error)
GetUDPNLineList - 获取当前支持的专线线路列表
func (*UDPNClient) GetUDPNPrice ¶
func (c *UDPNClient) GetUDPNPrice(req *GetUDPNPriceRequest) (*GetUDPNPriceResponse, error)
GetUDPNPrice - 获取 UDPN 价格
func (*UDPNClient) GetUDPNUpgradePrice ¶
func (c *UDPNClient) GetUDPNUpgradePrice(req *GetUDPNUpgradePriceRequest) (*GetUDPNUpgradePriceResponse, error)
GetUDPNUpgradePrice - 获取专线升级价格
func (*UDPNClient) ModifyUDPNBandwidth ¶
func (c *UDPNClient) ModifyUDPNBandwidth(req *ModifyUDPNBandwidthRequest) (*ModifyUDPNBandwidthResponse, error)
ModifyUDPNBandwidth - 修改带宽值
func (*UDPNClient) NewAllocateUDPNRequest ¶
func (c *UDPNClient) NewAllocateUDPNRequest() *AllocateUDPNRequest
NewAllocateUDPNRequest will create request of AllocateUDPN action.
func (*UDPNClient) NewDescribeUDPNRequest ¶
func (c *UDPNClient) NewDescribeUDPNRequest() *DescribeUDPNRequest
NewDescribeUDPNRequest will create request of DescribeUDPN action.
func (*UDPNClient) NewGetUDPNLineListRequest ¶
func (c *UDPNClient) NewGetUDPNLineListRequest() *GetUDPNLineListRequest
NewGetUDPNLineListRequest will create request of GetUDPNLineList action.
func (*UDPNClient) NewGetUDPNPriceRequest ¶
func (c *UDPNClient) NewGetUDPNPriceRequest() *GetUDPNPriceRequest
NewGetUDPNPriceRequest will create request of GetUDPNPrice action.
func (*UDPNClient) NewGetUDPNUpgradePriceRequest ¶
func (c *UDPNClient) NewGetUDPNUpgradePriceRequest() *GetUDPNUpgradePriceRequest
NewGetUDPNUpgradePriceRequest will create request of GetUDPNUpgradePrice action.
func (*UDPNClient) NewModifyUDPNBandwidthRequest ¶
func (c *UDPNClient) NewModifyUDPNBandwidthRequest() *ModifyUDPNBandwidthRequest
NewModifyUDPNBandwidthRequest will create request of ModifyUDPNBandwidth action.
func (*UDPNClient) NewReleaseUDPNRequest ¶
func (c *UDPNClient) NewReleaseUDPNRequest() *ReleaseUDPNRequest
NewReleaseUDPNRequest will create request of ReleaseUDPN action.
func (*UDPNClient) ReleaseUDPN ¶
func (c *UDPNClient) ReleaseUDPN(req *ReleaseUDPNRequest) (*ReleaseUDPNResponse, error)
ReleaseUDPN - 释放 UDPN
type UDPNData ¶
type UDPNData struct { // UDPN 资源短 ID UDPNId string // 可用区域 1 Peer1 string // 可用区域 2 Peer2 string // 计费类型 ChargeType string // 带宽 Bandwidth int // unix 时间戳 创建时间 CreateTime int // unix 时间戳 到期时间 ExpireTime int }
UDPNData - UDPN 详细信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.
type UDPNLineSet ¶
type UDPNLineSet struct { // 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky LocalRegion string // 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky RemoteRegion string // 线路带宽上限,单位 M BandwidthUpperLimit int }
UDPNLineSet - GetUDPNLineList
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.