Skip to content

Commit

Permalink
auto codegen for PathX
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Oct 27, 2021
1 parent 6e8780d commit 9190252
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 37 deletions.
7 changes: 5 additions & 2 deletions services/pathx/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,11 @@ type DescribeUGA3OptimizationRequest struct {
type DescribeUGA3OptimizationResponse struct {
response.CommonBase

// 提示信息
Message string
// 加速详情
AccelerationInfos []AccelerationInfo

// 【该字段已废弃,请谨慎使用】
Message string `deprecated:"true"`
}

// NewDescribeUGA3OptimizationRequest will create request of DescribeUGA3Optimization action.
Expand Down
70 changes: 35 additions & 35 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,18 @@ type SrcAreaInfo struct {
FlagUnicode string
}

/*
AccelerationAreaInfos - 加速大区信息
*/
type AccelerationAreaInfos struct {

// 加速区code
AccelerationArea string

// 加速节点信息
AccelerationNodes []SrcAreaInfo
}

/*
ForwardTask - 全球统一接入转发端口任务信息
*/
Expand All @@ -215,18 +227,6 @@ type ForwardTask struct {
RSPort int
}

/*
AccelerationAreaInfos - 加速大区信息
*/
type AccelerationAreaInfos struct {

// 加速区code
AccelerationArea string

// 加速节点信息
AccelerationNodes []SrcAreaInfo
}

/*
OutPublicIpInfo - 线路回源IP信息
*/
Expand Down Expand Up @@ -350,6 +350,27 @@ type AccelerationInfo struct {
NodeInfo []NodeDelays
}

/*
UGAL7Forwarder - UGA实例 7层转发器信息
*/
type UGAL7Forwarder struct {

// 接入端口
Port int

// 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发
Protocol string

// RSPort,源站监听端口
RSPort int

// 证书ID
SSLId string

// 证书名称
SSLName string
}

/*
UPathSet - uga关联的upath信息
*/
Expand Down Expand Up @@ -380,21 +401,6 @@ type UPathSet struct {
UPathName string
}

/*
UGAL4Forwarder - UGA实例 4层转发器信息
*/
type UGAL4Forwarder struct {

// 接入端口
Port int

// 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发
Protocol string

// RSPort,源站监听端口
RSPort int
}

/*
UGAATask - 用户在UGAA实例下配置的多端口任务
*/
Expand All @@ -408,9 +414,9 @@ type UGAATask struct {
}

/*
UGAL7Forwarder - UGA实例 7层转发器信息
UGAL4Forwarder - UGA实例 4层转发器信息
*/
type UGAL7Forwarder struct {
type UGAL4Forwarder struct {

// 接入端口
Port int
Expand All @@ -420,12 +426,6 @@ type UGAL7Forwarder struct {

// RSPort,源站监听端口
RSPort int

// 证书ID
SSLId string

// 证书名称
SSLName string
}

/*
Expand Down

0 comments on commit 9190252

Please sign in to comment.