Skip to content

Commit

Permalink
sdk: rolling update for 0.22.1 (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Apr 27, 2023
1 parent 3af587a commit 5f53116
Show file tree
Hide file tree
Showing 57 changed files with 981 additions and 513 deletions.
53 changes: 0 additions & 53 deletions services/cube/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,59 +990,6 @@ func (c *CubeClient) ModifyCubeTag(req *ModifyCubeTagRequest) (*ModifyCubeTagRes
return &res, nil
}

// RebootCubePodRequest is request schema for RebootCubePod action
type RebootCubePodRequest struct {
request.CommonBase

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

// [公共参数] 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
// Region *string `required:"true"`

// [公共参数] 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
// Zone *string `required:"false"`

// cube资源id(cube-xxxxxx)
CubeId *string `required:"true"`
}

// RebootCubePodResponse is response schema for RebootCubePod action
type RebootCubePodResponse struct {
response.CommonBase
}

// NewRebootCubePodRequest will create request of RebootCubePod action.
func (c *CubeClient) NewRebootCubePodRequest() *RebootCubePodRequest {
req := &RebootCubePodRequest{}

// 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: RebootCubePod
重启Cube Pod
*/
func (c *CubeClient) RebootCubePod(req *RebootCubePodRequest) (*RebootCubePodResponse, error) {
var err error
var res RebootCubePodResponse

reqCopier := *req

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

return &res, nil
}

// RenewCubePodRequest is request schema for RenewCubePod action
type RenewCubePodRequest struct {
request.CommonBase
Expand Down
4 changes: 2 additions & 2 deletions services/cube/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package cube include resources of ucloud cube product
See also
- API: https://docs.ucloud.cn/api/cube-api/index
- Product: https://www.ucloud.cn/site/product/cube.html
- API: https://docs.ucloud.cn/api/cube-api/index
- Product: https://www.ucloud.cn/site/product/cube.html
for detail.
*/
Expand Down
4 changes: 2 additions & 2 deletions services/iam/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package iam include resources of ucloud iam product
See also
- API: https://docs.ucloud.cn/api/iam-api/index
- Product: https://www.ucloud.cn/site/product/iam.html
- API: https://docs.ucloud.cn/api/iam-api/index
- Product: https://www.ucloud.cn/site/product/iam.html
for detail.
*/
Expand Down
4 changes: 2 additions & 2 deletions services/ipsecvpn/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package ipsecvpn include resources of ucloud ipsecvpn product
See also
- API: https://docs.ucloud.cn/api/ipsecvpn-api/index
- Product: https://www.ucloud.cn/site/product/ipsecvpn.html
- API: https://docs.ucloud.cn/api/ipsecvpn-api/index
- Product: https://www.ucloud.cn/site/product/ipsecvpn.html
for detail.
*/
Expand Down
2 changes: 0 additions & 2 deletions services/pathx/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,6 @@ func (c *PathXClient) NewDescribeGlobalSSHAreaRequest() *DescribeGlobalSSHAreaRe

/*
API: DescribeGlobalSSHArea
*/
func (c *PathXClient) DescribeGlobalSSHArea(req *DescribeGlobalSSHAreaRequest) (*DescribeGlobalSSHAreaResponse, error) {
var err error
Expand Down
4 changes: 2 additions & 2 deletions services/pathx/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package pathx include resources of ucloud pathx product
See also
- API: https://docs.ucloud.cn/api/pathx-api/index
- Product: https://www.ucloud.cn/site/product/pathx.html
- API: https://docs.ucloud.cn/api/pathx-api/index
- Product: https://www.ucloud.cn/site/product/pathx.html
for detail.
*/
Expand Down
84 changes: 42 additions & 42 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,6 @@ type AccelerationAreaInfos struct {
AccelerationNodes []SrcAreaInfo
}

/*
OutPublicIpInfo - 线路回源IP信息
*/
type OutPublicIpInfo struct {

// 线路回源节点机房代号
Area string

// 线路回源节点EIP
IP string
}

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

/*
OutPublicIpInfo - 线路回源IP信息
*/
type OutPublicIpInfo struct {

// 线路回源节点机房代号
Area string

// 线路回源节点EIP
IP string
}

/*
ForwardInfo - 全球统一接入加速实例配置信息
*/
Expand Down Expand Up @@ -380,6 +380,36 @@ 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实例下配置的多端口任务
*/
Expand Down Expand Up @@ -428,36 +458,6 @@ type UGAL4Forwarder struct {
RSPort int
}

/*
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
6 changes: 0 additions & 6 deletions services/uaccount/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ func (c *UAccountClient) NewCreateProjectRequest() *CreateProjectRequest {

/*
API: CreateProject
*/
func (c *UAccountClient) CreateProject(req *CreateProjectRequest) (*CreateProjectResponse, error) {
var err error
Expand Down Expand Up @@ -492,8 +490,6 @@ func (c *UAccountClient) NewGetUserInfoRequest() *GetUserInfoRequest {

/*
API: GetUserInfo
*/
func (c *UAccountClient) GetUserInfo(req *GetUserInfoRequest) (*GetUserInfoResponse, error) {
var err error
Expand Down Expand Up @@ -651,8 +647,6 @@ func (c *UAccountClient) NewModifyProjectRequest() *ModifyProjectRequest {

/*
API: ModifyProject
*/
func (c *UAccountClient) ModifyProject(req *ModifyProjectRequest) (*ModifyProjectResponse, error) {
var err error
Expand Down
4 changes: 2 additions & 2 deletions services/uaccount/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package uaccount include resources of ucloud uaccount product
See also
- API: https://docs.ucloud.cn/api/uaccount-api/index
- Product: https://www.ucloud.cn/site/product/uaccount.html
- API: https://docs.ucloud.cn/api/uaccount-api/index
- Product: https://www.ucloud.cn/site/product/uaccount.html
for detail.
*/
Expand Down
4 changes: 2 additions & 2 deletions services/uads/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package uads include resources of ucloud uads product
See also
- API: https://docs.ucloud.cn/api/uads-api/index
- Product: https://www.ucloud.cn/site/product/uads.html
- API: https://docs.ucloud.cn/api/uads-api/index
- Product: https://www.ucloud.cn/site/product/uads.html
for detail.
*/
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,21 +152,6 @@ 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 @@ -188,6 +173,21 @@ 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
}

/*
FwdSourceInfo - 转发规则,回源配置信息
*/
type FwdSourceInfo struct {

// 回源配置列表
Conf []FwdSourceInfoConf

// 回源类型,分 IP 和 Domain
Type string
}

/*
FwdClientProxyInfo - 转发规则,回源代理配置列表
*/
Expand All @@ -257,6 +245,18 @@ type FwdClientProxyInfo struct {
IPList []string
}

/*
FwdSourceInfo - 转发规则,回源配置信息
*/
type FwdSourceInfo struct {

// 回源配置列表
Conf []FwdSourceInfoConf

// 回源类型,分 IP 和 Domain
Type string
}

/*
BGPFwdRule - BGP高防的转发规则信息
*/
Expand Down
2 changes: 0 additions & 2 deletions services/ubill/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailIn

/*
API: DescribeOrderDetailInfo
*/
func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error) {
var err error
Expand Down
4 changes: 2 additions & 2 deletions services/ubill/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Package ubill include resources of ucloud ubill product
See also
- API: https://docs.ucloud.cn/api/ubill-api/index
- Product: https://www.ucloud.cn/site/product/ubill.html
- API: https://docs.ucloud.cn/api/ubill-api/index
- Product: https://www.ucloud.cn/site/product/ubill.html
for detail.
*/
Expand Down
Loading

0 comments on commit 5f53116

Please sign in to comment.