Documentation
¶
Overview ¶
Package uwsc include resources of ucloud uwsc product
See also
- API: https://docs.ucloud.cn/api/uwsc-api/index
- Product: https://www.ucloud.cn/site/product/uwsc.html
for detail.
Index ¶
- type AddExportLineRulesRequest
- type AddExportLineRulesResponse
- type BindCPERequest
- type BindCPEResponse
- type CPEInfo
- type CreateCPERequest
- type CreateCPEResponse
- type CreateExportLineRequest
- type CreateExportLineResponse
- type DeleteExportLineRequest
- type DeleteExportLineResponse
- type DeleteExportLineRulesRequest
- type DeleteExportLineRulesResponse
- type DescribeCPERequest
- type DescribeCPEResponse
- type DescribeExportLineRequest
- type DescribeExportLineResponse
- type DescribeExportLineRulesRequest
- type DescribeExportLineRulesResponse
- type LineInfo
- type SocksInfo
- type UWSCClient
- func (c *UWSCClient) AddExportLineRules(req *AddExportLineRulesRequest) (*AddExportLineRulesResponse, error)
- func (c *UWSCClient) BindCPE(req *BindCPERequest) (*BindCPEResponse, error)
- func (c *UWSCClient) CreateCPE(req *CreateCPERequest) (*CreateCPEResponse, error)
- func (c *UWSCClient) CreateExportLine(req *CreateExportLineRequest) (*CreateExportLineResponse, error)
- func (c *UWSCClient) DeleteExportLine(req *DeleteExportLineRequest) (*DeleteExportLineResponse, error)
- func (c *UWSCClient) DeleteExportLineRules(req *DeleteExportLineRulesRequest) (*DeleteExportLineRulesResponse, error)
- func (c *UWSCClient) DescribeCPE(req *DescribeCPERequest) (*DescribeCPEResponse, error)
- func (c *UWSCClient) DescribeExportLine(req *DescribeExportLineRequest) (*DescribeExportLineResponse, error)
- func (c *UWSCClient) DescribeExportLineRules(req *DescribeExportLineRulesRequest) (*DescribeExportLineRulesResponse, error)
- func (c *UWSCClient) NewAddExportLineRulesRequest() *AddExportLineRulesRequest
- func (c *UWSCClient) NewBindCPERequest() *BindCPERequest
- func (c *UWSCClient) NewCreateCPERequest() *CreateCPERequest
- func (c *UWSCClient) NewCreateExportLineRequest() *CreateExportLineRequest
- func (c *UWSCClient) NewDeleteExportLineRequest() *DeleteExportLineRequest
- func (c *UWSCClient) NewDeleteExportLineRulesRequest() *DeleteExportLineRulesRequest
- func (c *UWSCClient) NewDescribeCPERequest() *DescribeCPERequest
- func (c *UWSCClient) NewDescribeExportLineRequest() *DescribeExportLineRequest
- func (c *UWSCClient) NewDescribeExportLineRulesRequest() *DescribeExportLineRulesRequest
- func (c *UWSCClient) NewUpdateExportLineRequest() *UpdateExportLineRequest
- func (c *UWSCClient) NewUpgradeExportLineRequest() *UpgradeExportLineRequest
- func (c *UWSCClient) UpdateExportLine(req *UpdateExportLineRequest) (*UpdateExportLineResponse, error)
- func (c *UWSCClient) UpgradeExportLine(req *UpgradeExportLineRequest) (*UpgradeExportLineResponse, error)
- type UpdateExportLineRequest
- type UpdateExportLineResponse
- type UpgradeExportLineRequest
- type UpgradeExportLineResponse
- type WhiteListInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddExportLineRulesRequest ¶
type AddExportLineRulesRequest struct {
request.CommonBase
// UReach资源ID
ResourceId *string `required:"true"`
// 白名单类型:Developer、CrossBorder
RuleTypes []string `required:"true"`
}
AddExportLineRulesRequest is request schema for AddExportLineRules action
type AddExportLineRulesResponse ¶
type AddExportLineRulesResponse struct {
response.CommonBase
// 返回信息
Message string
}
AddExportLineRulesResponse is response schema for AddExportLineRules action
type BindCPERequest ¶
type BindCPERequest struct {
request.CommonBase
// cpe id
CPEId *string `required:"true"`
// sn id
Sn *string `required:"true"`
}
BindCPERequest is request schema for BindCPE action
type BindCPEResponse ¶
type BindCPEResponse struct {
response.CommonBase
// 返回信息
Message string
}
BindCPEResponse is response schema for BindCPE action
type CPEInfo ¶
type CPEInfo struct {
// 资源ID
CPEId string
// 资源名称
CPEName string
// 配置更新时间
ConfUpdateTime int
// 创建时间
CreateTime int
// 设备型号
DeviceTypeName string
// 是否与线路绑定
LineStatus string
// 链路数量
LinkNum int
// 绑定的UWAN资源ID
PopGwId []string
// 端口
Ports []string
// 备注
Remark string
// 绑定的UReach线路资源ID
ResourceIds []string
// 设备SN
Sn string
// 状态
Status int
// 有效使用时间(天)
UseTime int
// 供应商
Vendor string
}
CPEInfo - CPE信息
type CreateCPERequest ¶
type CreateCPERequest struct {
request.CommonBase
// 数量,默认为1
Count *int `required:"false"`
// 设备型号,枚举值: UCPE3600、UCPE3601
DeviceType *string `required:"true"`
// 标签:UReach智能网关:Access
Label *string `required:"false"`
// cpe 名称
Name *string `required:"true"`
// cpe 备注
Remark *string `required:"true"`
// 结构体,详见UserInfo模型
UserInfo *string `required:"false"`
}
CreateCPERequest is request schema for CreateCPE action
type CreateCPEResponse ¶
type CreateCPEResponse struct {
response.CommonBase
// cpe id
CPEId string
// 返回信息
Message string
}
CreateCPEResponse is response schema for CreateCPE action
type CreateExportLineRequest ¶
type CreateExportLineRequest struct {
request.CommonBase
// 带宽大小
Bandwidth *int `required:"false"`
// CPE Id
CPEId *string `required:"true"`
// 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
ChargeType *string `required:"false"`
// 代金券ID。请登录用户中心查看
CouponId *int `required:"false"`
// 本端地域
FromRegion *string `required:"true"`
// IP类型:International、BGP、Native、Resident
IpType *string `required:"true"`
// 资源名称
Name *string `required:"false"`
// 计费类型:fixed-bw,固定带宽;traffic,流量计费
PayMode *string `required:"false"`
// 套餐类型:2M-Entry、5M-Basic、10M-Enterprise
PkgType *string `required:"false"`
// 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
Quantity *int `required:"false"`
// 备注
Remark *string `required:"false"`
// 业务组名称, 默认为 "Default"
Tag *string `required:"false"`
// 目标地域
ToRegion *string `required:"true"`
}
CreateExportLineRequest is request schema for CreateExportLine action
type CreateExportLineResponse ¶
type CreateExportLineResponse struct {
response.CommonBase
// 返回信息
Message string
// 资源ID
ResourceId string
}
CreateExportLineResponse is response schema for CreateExportLine action
type DeleteExportLineRequest ¶
type DeleteExportLineRequest struct {
request.CommonBase
// UReach资源ID
ResourceId *string `required:"true"`
}
DeleteExportLineRequest is request schema for DeleteExportLine action
type DeleteExportLineResponse ¶
type DeleteExportLineResponse struct {
response.CommonBase
// 返回信息
Message string
}
DeleteExportLineResponse is response schema for DeleteExportLine action
type DeleteExportLineRulesRequest ¶
type DeleteExportLineRulesRequest struct {
request.CommonBase
// UReach资源ID
ResourceId *string `required:"true"`
// 白名单类型:Developer、CrossBorder
RuleTypes []string `required:"true"`
}
DeleteExportLineRulesRequest is request schema for DeleteExportLineRules action
type DeleteExportLineRulesResponse ¶
type DeleteExportLineRulesResponse struct {
response.CommonBase
// 返回信息
Message string
}
DeleteExportLineRulesResponse is response schema for DeleteExportLineRules action
type DescribeCPERequest ¶
type DescribeCPERequest struct {
request.CommonBase
// cpe id
CPEId *string `required:"false"`
// 标签:Access、Network
Label *string `required:"false"`
}
DescribeCPERequest is request schema for DescribeCPE action
type DescribeCPEResponse ¶
type DescribeCPEResponse struct {
response.CommonBase
// cpe 详情
CPEInfos []CPEInfo
// 返回信息
Message string
}
DescribeCPEResponse is response schema for DescribeCPE action
type DescribeExportLineRequest ¶
type DescribeExportLineRequest struct {
request.CommonBase
// CPE资源ID
CPEId *string `required:"false"`
// UReach资源ID
ResourceId *string `required:"false"`
}
DescribeExportLineRequest is request schema for DescribeExportLine action
type DescribeExportLineResponse ¶
type DescribeExportLineResponse struct {
response.CommonBase
// 线路信息
LineInfos []LineInfo
// 返回信息
Message string
}
DescribeExportLineResponse is response schema for DescribeExportLine action
type DescribeExportLineRulesRequest ¶
type DescribeExportLineRulesRequest struct {
request.CommonBase
// UReach资源ID
ResourceId *string `required:"false"`
// 白名单类型
RuleType *string `required:"false"`
}
DescribeExportLineRulesRequest is request schema for DescribeExportLineRules action
type DescribeExportLineRulesResponse ¶
type DescribeExportLineRulesResponse struct {
response.CommonBase
// 返回信息
Message string
// 白名单信息
WhiteListInfos []WhiteListInfo
}
DescribeExportLineRulesResponse is response schema for DescribeExportLineRules action
type LineInfo ¶
type LineInfo struct {
// 带宽大小(Mbps)
Bandwidth int
// 线路绑定的CPE资源ID
CPEIds []string
// 付费方式(按月、按年等)
ChargeType string
// 创建时间
CreateTime int
// 到期时间
ExpireTime int
// 入口地域
FromRegion string
// 入口地域名称
FromRegionName string
//
IP []string
// 线路资源ID对应的加速线路ID
InstanceId string
// 是否过期(normal/expire)
InstanceStatus string
// IP类型
IpType string
// 名称
Name string
// 计费方式(固定带宽: fixed-bw;流量计费:traffic)
PayMode string
// 套餐类型
PkgType string
// 备注
Remark string
// 线路资源ID
ResourceId string
//
Socks SocksInfo
// 源IP地址
Source []string
// 线路是否绑定CPE;"1":已绑定;"0"未绑定
Status string
// 出口地域
ToRegion string
// 出口地域名称
ToRegionName string
}
LineInfo - CPE加速线路信息
type UWSCClient ¶
UWSCClient is the client of UWSC
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UWSCClient
NewClient will return a instance of UWSCClient
func (*UWSCClient) AddExportLineRules ¶
func (c *UWSCClient) AddExportLineRules(req *AddExportLineRulesRequest) (*AddExportLineRulesResponse, error)
API: AddExportLineRules
添加加速规则
func (*UWSCClient) BindCPE ¶
func (c *UWSCClient) BindCPE(req *BindCPERequest) (*BindCPEResponse, error)
API: BindCPE
绑定 CPE
func (*UWSCClient) CreateCPE ¶
func (c *UWSCClient) CreateCPE(req *CreateCPERequest) (*CreateCPEResponse, error)
API: CreateCPE
创建 CPE
func (*UWSCClient) CreateExportLine ¶
func (c *UWSCClient) CreateExportLine(req *CreateExportLineRequest) (*CreateExportLineResponse, error)
API: CreateExportLine
创建加速线路
func (*UWSCClient) DeleteExportLine ¶
func (c *UWSCClient) DeleteExportLine(req *DeleteExportLineRequest) (*DeleteExportLineResponse, error)
API: DeleteExportLine
删除加速线路
func (*UWSCClient) DeleteExportLineRules ¶
func (c *UWSCClient) DeleteExportLineRules(req *DeleteExportLineRulesRequest) (*DeleteExportLineRulesResponse, error)
API: DeleteExportLineRules
删除加速规则
func (*UWSCClient) DescribeCPE ¶
func (c *UWSCClient) DescribeCPE(req *DescribeCPERequest) (*DescribeCPEResponse, error)
API: DescribeCPE
查询 CPE 信息
func (*UWSCClient) DescribeExportLine ¶
func (c *UWSCClient) DescribeExportLine(req *DescribeExportLineRequest) (*DescribeExportLineResponse, error)
API: DescribeExportLine
查询CPE绑定的加速线路信息
func (*UWSCClient) DescribeExportLineRules ¶
func (c *UWSCClient) DescribeExportLineRules(req *DescribeExportLineRulesRequest) (*DescribeExportLineRulesResponse, error)
API: DescribeExportLineRules
查询白名单
func (*UWSCClient) NewAddExportLineRulesRequest ¶
func (c *UWSCClient) NewAddExportLineRulesRequest() *AddExportLineRulesRequest
NewAddExportLineRulesRequest will create request of AddExportLineRules action.
func (*UWSCClient) NewBindCPERequest ¶
func (c *UWSCClient) NewBindCPERequest() *BindCPERequest
NewBindCPERequest will create request of BindCPE action.
func (*UWSCClient) NewCreateCPERequest ¶
func (c *UWSCClient) NewCreateCPERequest() *CreateCPERequest
NewCreateCPERequest will create request of CreateCPE action.
func (*UWSCClient) NewCreateExportLineRequest ¶
func (c *UWSCClient) NewCreateExportLineRequest() *CreateExportLineRequest
NewCreateExportLineRequest will create request of CreateExportLine action.
func (*UWSCClient) NewDeleteExportLineRequest ¶
func (c *UWSCClient) NewDeleteExportLineRequest() *DeleteExportLineRequest
NewDeleteExportLineRequest will create request of DeleteExportLine action.
func (*UWSCClient) NewDeleteExportLineRulesRequest ¶
func (c *UWSCClient) NewDeleteExportLineRulesRequest() *DeleteExportLineRulesRequest
NewDeleteExportLineRulesRequest will create request of DeleteExportLineRules action.
func (*UWSCClient) NewDescribeCPERequest ¶
func (c *UWSCClient) NewDescribeCPERequest() *DescribeCPERequest
NewDescribeCPERequest will create request of DescribeCPE action.
func (*UWSCClient) NewDescribeExportLineRequest ¶
func (c *UWSCClient) NewDescribeExportLineRequest() *DescribeExportLineRequest
NewDescribeExportLineRequest will create request of DescribeExportLine action.
func (*UWSCClient) NewDescribeExportLineRulesRequest ¶
func (c *UWSCClient) NewDescribeExportLineRulesRequest() *DescribeExportLineRulesRequest
NewDescribeExportLineRulesRequest will create request of DescribeExportLineRules action.
func (*UWSCClient) NewUpdateExportLineRequest ¶
func (c *UWSCClient) NewUpdateExportLineRequest() *UpdateExportLineRequest
NewUpdateExportLineRequest will create request of UpdateExportLine action.
func (*UWSCClient) NewUpgradeExportLineRequest ¶
func (c *UWSCClient) NewUpgradeExportLineRequest() *UpgradeExportLineRequest
NewUpgradeExportLineRequest will create request of UpgradeExportLine action.
func (*UWSCClient) UpdateExportLine ¶
func (c *UWSCClient) UpdateExportLine(req *UpdateExportLineRequest) (*UpdateExportLineResponse, error)
API: UpdateExportLine
修改加速线路
func (*UWSCClient) UpgradeExportLine ¶
func (c *UWSCClient) UpgradeExportLine(req *UpgradeExportLineRequest) (*UpgradeExportLineResponse, error)
API: UpgradeExportLine
升级加速线路
type UpdateExportLineRequest ¶
type UpdateExportLineRequest struct {
request.CommonBase
// 带宽大小(仅自定义套餐支持修改)
Bandwidth *string `required:"true"`
// UReach资源ID
ResourceId *string `required:"true"`
}
UpdateExportLineRequest is request schema for UpdateExportLine action
type UpdateExportLineResponse ¶
type UpdateExportLineResponse struct {
response.CommonBase
// 返回信息
Message string
}
UpdateExportLineResponse is response schema for UpdateExportLine action
type UpgradeExportLineRequest ¶
type UpgradeExportLineRequest struct {
request.CommonBase
// 带宽大小
Bandwidth *int `required:"false"`
// 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付
ChargeType *string `required:"false"`
// 代金券ID。请登录用户中心查看
CouponId *int `required:"false"`
// 原IP类型:International、BGP、Native、Resident
IpType *string `required:"true"`
// 目标套餐类型:2M-Entry、5M-Basic、10M-Enterprise
PkgType *string `required:"true"`
// 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
Quantity *int `required:"false"`
// UReach资源ID
ResourceId *string `required:"true"`
}
UpgradeExportLineRequest is request schema for UpgradeExportLine action
type UpgradeExportLineResponse ¶
type UpgradeExportLineResponse struct {
response.CommonBase
// 返回信息
Message string
}
UpgradeExportLineResponse is response schema for UpgradeExportLine action
type WhiteListInfo ¶
WhiteListInfo -