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.3 #398

Merged
merged 1 commit into from
Jul 3, 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
216 changes: 108 additions & 108 deletions services/cube/apis.go

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,42 +380,6 @@ 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
}

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

// 接入端口
Port int

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

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

/*
UGAATask - 用户在UGAA实例下配置的多端口任务
*/
Expand Down Expand Up @@ -458,6 +422,42 @@ type UPathSet struct {
UPathName string
}

/*
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
}

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

// 接入端口
Port int

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

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

/*
UGAAInfo - 全球加速实例信息
*/
Expand Down
2 changes: 1 addition & 1 deletion services/uaccount/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type AddMemberToProjectRequest struct {
request.CommonBase

// [公共参数] 项目ID,请参考[GetProjectList接口](../summary/get_project_list.html)的描述。不填写为创建时间最早的项目。
// [公共参数] 项目ID,请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)的描述。不填写为创建时间最早的项目。
// ProjectId *string `required:"false"`

// 被加入成员归属角色ID
Expand Down
6 changes: 0 additions & 6 deletions services/uads/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ type BuyHighProtectGameServiceRequest struct {
// [公共参数] 项目ID。请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
// ProjectId *string `required:"true"`

// 接入模式,默认为:IP;Domain:网站接入、IP:非网站接入
AccessMode *string `required:"false"`

// 线路区域, 可取范围{"SouthChina", "EastChina"}
AreaLine *string `required:"true"`

Expand Down Expand Up @@ -1247,9 +1244,6 @@ func (c *UADSClient) GetBGPServiceIP(req *GetBGPServiceIPRequest) (*GetBGPServic
type GetBuyNapServicePriceRequest struct {
request.CommonBase

// 接入模式,Domain:网站接入、IP:非网站接入;默认为:IP
AccessMode *string `required:"false"`

// 地区线路
AreaLine *string `required:"true"`

Expand Down
54 changes: 27 additions & 27 deletions services/uads/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,21 @@ type ServiceInfo struct {
Vendor int
}

/*
EIPAddrSet - EIP地址信息
*/
type EIPAddrSet struct {

// IP类型:gaofang
EIPType string

// 弹性IP地址
IP string

// 运营商信息, 枚举值为: BGP: BGP; International: 国际.
OperatorName string
}

/*
Resouce - 资源信息
*/
Expand All @@ -173,21 +188,6 @@ type Resouce struct {
Zone string
}

/*
EIPAddrSet - EIP地址信息
*/
type EIPAddrSet struct {

// IP类型:gaofang
EIPType string

// 弹性IP地址
IP string

// 运营商信息, 枚举值为: BGP: BGP; International: 国际.
OperatorName string
}

/*
IPInfo - 高防IP信息
*/
Expand Down Expand Up @@ -233,18 +233,6 @@ type FwdSourceInfoConf struct {
Toa int
}

/*
FwdClientProxyInfo - 转发规则,回源代理配置列表
*/
type FwdClientProxyInfo struct {

// 回源IP个数
Count int

// 回源IP列表
IPList []string
}

/*
FwdSourceInfo - 转发规则,回源配置信息
*/
Expand All @@ -257,6 +245,18 @@ type FwdSourceInfo struct {
Type string
}

/*
FwdClientProxyInfo - 转发规则,回源代理配置列表
*/
type FwdClientProxyInfo struct {

// 回源IP个数
Count int

// 回源IP列表
IPList []string
}

/*
BGPFwdRule - BGP高防的转发规则信息
*/
Expand Down
25 changes: 14 additions & 11 deletions services/ubill/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,33 +194,36 @@ func (c *UBillClient) GetBalance(req *GetBalanceRequest) (*GetBalanceResponse, e
type GetBillDataFileUrlRequest struct {
request.CommonBase

// 此字段不推荐使用,建议使用BillingCycle. 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
// 账期: 时间戳格式,已弃用,请使用BillingCycle
BillPeriod *int `required:"false"`

// 账单类型,传 0 时获取账单总览报表,传 1 获取账单明细报表
// 账单类型,枚举值:\\ > 0: 账单总览报表; \\ > 1: 账单明细报表
BillType *int `required:"true"`

// 账期(字符串格式,YYYY-MM,例如2021-08). 若BillingCycle 和 BillPeriod同时存在,BillingCycle 优先
// 账期: YYYY-MM格式的字符串,例如 ”2021-08
BillingCycle *string `required:"true"`

// 获取账单总览报表时,账单的支付状态,传 0 时获取待支付账单,传 1 时获取已支付账单。获取账单明细报表时该参数无效
// 文件格式,枚举值:\\ > ”csv“: csv格式;\\ > ”pdf“: pdf格式(已支付总览文件 从2023年03月开始支持PDF)
Format *string `required:"false"`

// 账单支付状态, (获取账单明细报表,不需要填写该参数),枚举值:\\ > 0: 0待支付总览账单(只支持当前月份的账期);\\ > 1: 已支付账单总览
PaidType *int `required:"false"`

// 如需求其他语言版本的账单则使用此参数。默认中文。如 RequireVersion = "EN",则提供英文版本账单。
// 账单语言版本,枚举值:\\ > ”“: 默认中文;\\ > ”EN“: 英文版本
RequireVersion *string `required:"false"`

// 文件版本,若为"v1"表示获取带有子用户信息的账单,可以为空
// 文件版本,固定值"v1"
Version *string `required:"false"`
}

// GetBillDataFileUrlResponse is response schema for GetBillDataFileUrl action
type GetBillDataFileUrlResponse struct {
response.CommonBase

// 交易账单数据下载URL
// 交易账单文件下载URL
FileUrl string

// 生成的 URL是否有效,即有对应数据文件
// 是否有对应数据文件。(该参数返回no,表示文件正在生成中,需要用户发起重试获取。
IsValid string
}

Expand All @@ -239,7 +242,7 @@ func (c *UBillClient) NewGetBillDataFileUrlRequest() *GetBillDataFileUrlRequest
/*
API: GetBillDataFileUrl

生成账单数据文件下载的 url
生成账单数据文件下载的 url,包含三类文件,1. 已支付总览账单(支持CSV和PDF,从2023年03月开始支持PDF);2. 未支付总览文件(支持CSV,只有当月账期可以查看);3 账单详情文件(支持CSV)。 备注:文件生成有延迟,若返回值 IsValid=‘no’,需要使用者发起重试。
*/
func (c *UBillClient) GetBillDataFileUrl(req *GetBillDataFileUrlRequest) (*GetBillDataFileUrlResponse, error) {
var err error
Expand All @@ -262,7 +265,7 @@ type ListUBillDetailRequest struct {
// 账期,YYYY-MM,比如2021-08,只支持2018-05之后的查询
BillingCycle *string `required:"true"`

// 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费
// 计费方式 (筛选项, 默认全部)。枚举值:\\ > Year:按年\\ > Month:按月 \\ > Day:按天 \\ > Dynamic:按时 \\ > Used:按量 \\ > Donate:赠送 \\ > Trial:试用 \\ > Post:后付费 \\ > Spot:抢占式
ChargeType *string `required:"false"`

// 每页数量,默认值25,最大值:100。
Expand All @@ -271,7 +274,7 @@ type ListUBillDetailRequest struct {
// 数据偏移量 (默认0)
Offset *int `required:"false"`

// 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款
// 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_ADDITIONAL:补单 \\ > OT_REFUND:删除 \\ > OT_POSTPAID_RENEW:过期 \\ > OT_POSTPAID_PAYMENT:后付费 \\ > OT_RECOVER:删除恢复
OrderType *string `required:"false"`

// 支付状态 (筛选项, 1:仅显示未支付订单; 2:仅显示已支付订单; 0:两者都显示)
Expand Down
16 changes: 8 additions & 8 deletions services/ubill/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
package ubill

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

//
ProductName string
KeyId string

//
Value string
}

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

//
KeyId string
ProductName string

//
Value string
Expand Down Expand Up @@ -166,7 +166,7 @@ type BillDetailItem struct {
// 可用区
AzGroupCName string

// 计费方式 (筛选项, 默认全部)。枚举值:\\ > Dynamic:按时 \\ > Month:按月 \\ > Year:按年 \\ > Once:一次性按量 \\ > Used:按量 \\ > Post:后付费
// 计费方式 (筛选项, 默认全部)。枚举值:\\ > Year:按年\\ > Month:按月 \\ > Day:按天 \\ > Dynamic:按时 \\ > Used:按量 \\ > Donate:赠送 \\ > Trial:试用 \\ > Post:后付费 \\ > Spot:抢占式
ChargeType string

// 创建时间(时间戳)
Expand All @@ -178,7 +178,7 @@ type BillDetailItem struct {
// 订单号
OrderNo string

// 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_REFUND:退费 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_PAYMENT:删除资源回款 \\ > OT_POSTPAID_PAYMENT:后付费回款 \\ > OT_RECOVER:删除恢复 \\ > OT_POSTPAID_RENEW:过期续费回款
// 订单类型 (筛选项, 默认全部) 。枚举值:\\ > OT_BUY:新购 \\ > OT_RENEW:续费 \\ > OT_UPGRADE:升级 \\ > OT_DOWNGRADE:降级 \\ > OT_SUSPEND:结算 \\ > OT_ADDITIONAL:补单 \\ > OT_REFUND:删除 \\ > OT_POSTPAID_RENEW:过期 \\ > OT_POSTPAID_PAYMENT:后付费 \\ > OT_RECOVER:删除恢复
OrderType string

// 项目名称
Expand Down
65 changes: 65 additions & 0 deletions services/ucdn/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,71 @@ func (c *UCDNClient) GetUcdnDomainPrefetchEnable(req *GetUcdnDomainPrefetchEnabl
return &res, nil
}

// GetUcdnDomainPrefetchRefreshStateRequest is request schema for GetUcdnDomainPrefetchRefreshState action
type GetUcdnDomainPrefetchRefreshStateRequest struct {
request.CommonBase

// [公共参数] 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
// ProjectId *string `required:"false"`

// 域名ID,创建加速域名时生成。
DomainId *string `required:"true"`
}

// GetUcdnDomainPrefetchRefreshStateResponse is response schema for GetUcdnDomainPrefetchRefreshState action
type GetUcdnDomainPrefetchRefreshStateResponse struct {
response.CommonBase

// 预热配额
PrefetchQuota int

// 目录刷新配额
RefreshDirQuota int

// 文件刷新配额
RefreshFileQuota int

// 已提交预热个数
SubmitPrefetchCount int

// 已提交的目录刷新个数
SubmitRefreshDir int

// 已提交的文件刷新个数
SubmitRefreshFile int
}

// NewGetUcdnDomainPrefetchRefreshStateRequest will create request of GetUcdnDomainPrefetchRefreshState action.
func (c *UCDNClient) NewGetUcdnDomainPrefetchRefreshStateRequest() *GetUcdnDomainPrefetchRefreshStateRequest {
req := &GetUcdnDomainPrefetchRefreshStateRequest{}

// setup request with client config
c.Client.SetupRequest(req)

// setup retryable with default retry policy (retry for non-create action and common error)
req.SetRetryable(true)
return req
}

/*
API: GetUcdnDomainPrefetchRefreshState

获取域名预取刷新配额信息
*/
func (c *UCDNClient) GetUcdnDomainPrefetchRefreshState(req *GetUcdnDomainPrefetchRefreshStateRequest) (*GetUcdnDomainPrefetchRefreshStateResponse, error) {
var err error
var res GetUcdnDomainPrefetchRefreshStateResponse

reqCopier := *req

err = c.Client.InvokeAction("GetUcdnDomainPrefetchRefreshState", &reqCopier, &res)
if err != nil {
return &res, err
}

return &res, nil
}

// GetUcdnDomainRequestNumV2Request is request schema for GetUcdnDomainRequestNumV2 action
type GetUcdnDomainRequestNumV2Request struct {
request.CommonBase
Expand Down
Loading