Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: rolling update for 0.22.2 #396

Merged
merged 1 commit into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 54 additions & 54 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,6 @@ type SrcAreaInfo struct {
FlagUnicode string
}

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

// 加速区code
AccelerationArea string

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

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

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

// 加速区code
AccelerationArea string

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

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

/*
UPathSet - uga关联的upath信息
*/
type UPathSet struct {

// 带宽 Mbps, 1~800Mbps
Bandwidth int

// 线路起点英文代号,加速区域
LineFrom string

// 线路起点中文名字,加速区域
LineFromName string

// 线路ID
LineId string

// 线路对端英文代号,源站区域
LineTo string

// 线路对端中文名字,源站区域
LineToName string

// UPath 实例ID
UPathId string

// UPath名字
UPathName string
}

/*
UGAATask - 用户在UGAA实例下配置的多端口任务
*/
type UGAATask struct {

// 接入端口
Port int

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

/*
UGAL7Forwarder - UGA实例 7层转发器信息
*/
Expand Down Expand Up @@ -458,6 +416,48 @@ type UGAL4Forwarder struct {
RSPort int
}

/*
UGAATask - 用户在UGAA实例下配置的多端口任务
*/
type UGAATask struct {

// 接入端口
Port int

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

/*
UPathSet - uga关联的upath信息
*/
type UPathSet struct {

// 带宽 Mbps, 1~800Mbps
Bandwidth int

// 线路起点英文代号,加速区域
LineFrom string

// 线路起点中文名字,加速区域
LineFromName string

// 线路ID
LineId string

// 线路对端英文代号,源站区域
LineTo string

// 线路对端中文名字,源站区域
LineToName string

// UPath 实例ID
UPathId string

// UPath名字
UPathName string
}

/*
UGAAInfo - 全球加速实例信息
*/
Expand Down
32 changes: 16 additions & 16 deletions services/ubill/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
package ubill

/*
ResourceTag -
OrderDetail -
*/
type ResourceTag struct {
type OrderDetail struct {

//
KeyId string
ProductName string

//
Value string
}

/*
OrderDetail -
ResourceTag -
*/
type OrderDetail struct {
type ResourceTag struct {

//
ProductName string
KeyId string

//
Value string
Expand Down Expand Up @@ -120,26 +120,26 @@ type AccountInfo struct {
}

/*
ResourceExtendInfo - 资源标识
ItemDetail - 产品配置
*/
type ResourceExtendInfo struct {
type ItemDetail struct {

// 资源标识健
KeyId string
// 产品小类名称
ProductName string

// 资源标识值
// 产品小类规格
Value string
}

/*
ItemDetail - 产品配置
ResourceExtendInfo - 资源标识
*/
type ItemDetail struct {
type ResourceExtendInfo struct {

// 产品小类名称
ProductName string
// 资源标识健
KeyId string

// 产品小类规格
// 资源标识值
Value string
}

Expand Down
78 changes: 39 additions & 39 deletions services/ucdn/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,39 +579,24 @@ type CacheKeyInfo struct {
}

/*
OriginConf - 回源配置
AdvancedConf - 域名高级配置
*/
type OriginConf struct {

// 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址
BackupOriginEnable bool

// 备份回源Http请求头部Host,默认是加速域名
BackupOriginHost string

// 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
BackupOriginIpList []string

// 主源响应的回源错误码(如:404|500),默认空字符串
OriginErrorCode string

// 回主源的回源失败数,默认1
OriginErrorNum int
type AdvancedConf struct {

// 跟随301跳转 0=不跟随 1=跟随
OriginFollow301 int
// http转https回源 true是,false否
Http2Https bool

// 回源Http请求头部Host,默认是加速域名
OriginHost string
// 客户端响应http头列表
HttpClientHeader []string

// 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
OriginIpList []string
// 源站http头列表
HttpOriginHeader []string

// 回源端口
OriginPort int
// 是否开启quic
QuicEnable bool

// 源站协议http,http|https 默认http
OriginProtocol string
// 是否开启websocket
WebSocketEnable bool
}

/*
Expand Down Expand Up @@ -645,24 +630,39 @@ type CacheAllConfig struct {
}

/*
AdvancedConf - 域名高级配置
OriginConf - 回源配置
*/
type AdvancedConf struct {
type OriginConf struct {

// http转https回源 true是,false否
Http2Https bool
// 1如果为false表示BackupOriginIp为空,表示没有备份源站,忽略BackupOriginIp,BackupOriginHost字段2如果为true表示BackupOriginIp.n必须至少有一个备份源站地址
BackupOriginEnable bool

// 客户端响应http头列表
HttpClientHeader []string
// 备份回源Http请求头部Host,默认是加速域名
BackupOriginHost string

// 源站http头列表
HttpOriginHeader []string
// 备份源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
BackupOriginIpList []string

// 是否开启quic
QuicEnable bool
// 主源响应的回源错误码(如:404|500),默认空字符串
OriginErrorCode string

// 是否开启websocket
WebSocketEnable bool
// 回主源的回源失败数,默认1
OriginErrorNum int

// 跟随301跳转 0=不跟随 1=跟随
OriginFollow301 int

// 回源Http请求头部Host,默认是加速域名
OriginHost string

// 源站ip即cdn服务器回源访问的ip地址。多个源站ip,可以这样表述,如:["1.1.1.1","2.2.2.2"]
OriginIpList []string

// 回源端口
OriginPort int

// 源站协议http,http|https 默认http
OriginProtocol string
}

/*
Expand Down
24 changes: 12 additions & 12 deletions services/uec/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ type ResourceInfo struct {
State int
}

/*
EnvList - 容器环境变量列表
*/
type EnvList struct {

// 环境变量key值
Key string

// 环境变量Value值
Value string
}

/*
CfgDictList - 容器配置字典列表
*/
Expand All @@ -98,18 +110,6 @@ type CfgDictList struct {
ResourceId string
}

/*
EnvList - 容器环境变量列表
*/
type EnvList struct {

// 环境变量key值
Key string

// 环境变量Value值
Value string
}

/*
DockerInfo - 容器信息
*/
Expand Down
Loading