Skip to content

Commit

Permalink
sdk: rolling update for 0.22.6 (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Oct 7, 2023
1 parent 6b2b499 commit 5f83433
Show file tree
Hide file tree
Showing 29 changed files with 2,047 additions and 570 deletions.
60 changes: 30 additions & 30 deletions services/ipsecvpn/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,36 +80,6 @@ type VPNGatewayDataSet struct {
VPNGatewayName string
}

/*
IPSecData - IPSec参数
*/
type IPSecData struct {

// IPSec通道中使用的认证算法
IPSecAuthenticationAlgorithm string

// IPSec通道中使用的加密算法
IPSecEncryptionAlgorithm string

// 指定VPN连接的本地子网,用逗号分隔
IPSecLocalSubnetIds []string

// 是否开启PFS功能,Disable表示关闭,数字表示DH组
IPSecPFSDhGroup string

// 使用的安全协议,ESP或AH
IPSecProtocol string

// 指定VPN连接的客户网段,用逗号分隔
IPSecRemoteSubnets []string

// IPSec中SA的生存时间
IPSecSALifetime string

// IPSec中SA的生存时间(以字节计)
IPSecSALifetimeBytes string
}

/*
IKEData - IKE信息
*/
Expand Down Expand Up @@ -143,6 +113,36 @@ type IKEData struct {
IKEVersion string
}

/*
IPSecData - IPSec参数
*/
type IPSecData struct {

// IPSec通道中使用的认证算法
IPSecAuthenticationAlgorithm string

// IPSec通道中使用的加密算法
IPSecEncryptionAlgorithm string

// 指定VPN连接的本地子网,用逗号分隔
IPSecLocalSubnetIds []string

// 是否开启PFS功能,Disable表示关闭,数字表示DH组
IPSecPFSDhGroup string

// 使用的安全协议,ESP或AH
IPSecProtocol string

// 指定VPN连接的客户网段,用逗号分隔
IPSecRemoteSubnets []string

// IPSec中SA的生存时间
IPSecSALifetime string

// IPSec中SA的生存时间(以字节计)
IPSecSALifetimeBytes string
}

/*
VPNTunnelDataSet - DescribeVPNTunnel信息
*/
Expand Down
20 changes: 10 additions & 10 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ type AccelerationInfo struct {
}

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

// 接入端口
Port int
Expand All @@ -393,6 +393,12 @@ type UGAL4Forwarder struct {

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

// 证书ID
SSLId string

// 证书名称
SSLName string
}

/*
Expand Down Expand Up @@ -438,9 +444,9 @@ type UGAATask struct {
}

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

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

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

// 证书ID
SSLId string

// 证书名称
SSLName string
}

/*
Expand Down
94 changes: 0 additions & 94 deletions services/uaccount/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,6 @@ import (

// UAccount API Schema

// AddMemberToProjectRequest is request schema for AddMemberToProject action
type AddMemberToProjectRequest struct {
request.CommonBase

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

// 被加入成员归属角色ID
CharacterId *string `required:"true"`

// 被加入成员Email
MemberEmail *string `required:"true"`
}

// AddMemberToProjectResponse is response schema for AddMemberToProject action
type AddMemberToProjectResponse struct {
response.CommonBase
}

// NewAddMemberToProjectRequest will create request of AddMemberToProject action.
func (c *UAccountClient) NewAddMemberToProjectRequest() *AddMemberToProjectRequest {
req := &AddMemberToProjectRequest{}

// 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(false)
return req
}

/*
API: AddMemberToProject
添加成员到项目
*/
func (c *UAccountClient) AddMemberToProject(req *AddMemberToProjectRequest) (*AddMemberToProjectResponse, error) {
var err error
var res AddMemberToProjectResponse

reqCopier := *req

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

return &res, nil
}

// CreateCharacterRequest is request schema for CreateCharacter action
type CreateCharacterRequest struct {
request.CommonBase
Expand Down Expand Up @@ -278,50 +228,6 @@ func (c *UAccountClient) DescribeMemberList(req *DescribeMemberListRequest) (*De
return &res, nil
}

// FreezeMemberRequest is request schema for FreezeMember action
type FreezeMemberRequest struct {
request.CommonBase

// 需要被冻结的成员Email
MemberEmail *string `required:"true"`
}

// FreezeMemberResponse is response schema for FreezeMember action
type FreezeMemberResponse struct {
response.CommonBase
}

// NewFreezeMemberRequest will create request of FreezeMember action.
func (c *UAccountClient) NewFreezeMemberRequest() *FreezeMemberRequest {
req := &FreezeMemberRequest{}

// 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: FreezeMember
冻结成员
*/
func (c *UAccountClient) FreezeMember(req *FreezeMemberRequest) (*FreezeMemberResponse, error) {
var err error
var res FreezeMemberResponse

reqCopier := *req

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

return &res, nil
}

// GetNetworkMaskRequest is request schema for GetNetworkMask action
type GetNetworkMaskRequest struct {
request.CommonBase
Expand Down
24 changes: 12 additions & 12 deletions services/uads/models.go
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 5f83433

Please sign in to comment.