Skip to content

Commit

Permalink
sdk: rolling update for 0.21.59 (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Apr 3, 2023
1 parent 6e11dec commit 52ce013
Show file tree
Hide file tree
Showing 20 changed files with 498 additions and 448 deletions.
65 changes: 65 additions & 0 deletions services/iam/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ type CreateIAMPolicyRequest struct {

// 策略名称
PolicyName *string `required:"true"`

// 策略作用域类型
ScopeType *string `required:"false"`
}

// CreateIAMPolicyResponse is response schema for CreateIAMPolicy action
Expand Down Expand Up @@ -1186,6 +1189,65 @@ func (c *IAMClient) ListGroups(req *ListGroupsRequest) (*ListGroupsResponse, err
return &res, nil
}

// ListPoliciesRequest is request schema for ListPolicies action
type ListPoliciesRequest struct {
request.CommonBase

// 需要查询的用户组数量
Limit *string `required:"false"`

// 从第几条数据开始查询
Offset *string `required:"false"`

// 策略所有者
Owner *string `required:"true"`
}

// ListPoliciesResponse is response schema for ListPolicies action
type ListPoliciesResponse struct {
response.CommonBase

// 错误消息
Message string

// 策略信息
Policies []IAMPolicy

// 数据集合数量
TotalCount int
}

// NewListPoliciesRequest will create request of ListPolicies action.
func (c *IAMClient) NewListPoliciesRequest() *ListPoliciesRequest {
req := &ListPoliciesRequest{}

// 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: ListPolicies
获取IAM策略列表
*/
func (c *IAMClient) ListPolicies(req *ListPoliciesRequest) (*ListPoliciesResponse, error) {
var err error
var res ListPoliciesResponse

reqCopier := *req

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

return &res, nil
}

// ListProjectsRequest is request schema for ListProjects action
type ListProjectsRequest struct {
request.CommonBase
Expand Down Expand Up @@ -1616,6 +1678,9 @@ type UpdateIAMPolicyRequest struct {

// 策略URN
PolicyURN *string `required:"true"`

// 策略版本描述
VersionDescription *string `required:"false"`
}

// UpdateIAMPolicyResponse is response schema for UpdateIAMPolicy action
Expand Down
15 changes: 0 additions & 15 deletions services/iam/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ type Group struct {
GroupName string
}

/*
Customize - IAM策略版本信息
*/
type Customize struct {

// 版本号
Version string

// 版本描述
VersionDescription string
}

/*
IAMPolicy - 获取IAM权限策略详情
*/
Expand All @@ -70,9 +58,6 @@ type IAMPolicy struct {
// IAM权限策略创建时间
CreatedAt int

// IAM权限策略版本信息
Customize Customize

// IAM权限策略描述
Description string

Expand Down
60 changes: 30 additions & 30 deletions services/ipsecvpn/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,36 @@ 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 @@ -113,36 +143,6 @@ 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
10 changes: 5 additions & 5 deletions services/pathx/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ type CreateUGA3InstanceRequest struct {
// 非必填,如果不填,会根据Domain 和IPList 去选一个最近的源站区域BKK表示AreaCode;曼谷表示Area["BKK":"曼谷","DXB":"迪拜","FRA":"法兰克福","SGN":"胡志明市","HKG":"香港",CGK":"雅加达","LOS":"拉各斯","LHR":"伦敦","LAX":"洛杉矶","MNL":"马尼拉","DME":"莫斯科","BOM":"孟买","MSP":"圣保罗","ICN":"首尔","PVG":"上海","SIN":"新加坡","NRT":"东京","IAD":"华盛顿","TPE": "台北"]
AreaCode *string `required:"false"`

// 实例的共享带宽大小,单位Mbps
Bandwidth *int `required:"true"`
// 实例的共享带宽
Bandwidth *string `required:"true"`

// 支付方式,如按月、按年、按时[Year,Month,Dynamic]
// 支付方式,如按月、按年、按时
ChargeType *string `required:"false"`

// 使用代金券可冲抵部分费用,仅全地域可用的代金券
Expand Down Expand Up @@ -261,8 +261,8 @@ type CreateUGA3InstanceResponse struct {
// 加速配置ID
InstanceId string

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

// NewCreateUGA3InstanceRequest will create request of CreateUGA3Instance action.
Expand Down
60 changes: 30 additions & 30 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,36 +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
}

/*
UGAL7Forwarder - UGA实例 7层转发器信息
*/
Expand Down Expand Up @@ -458,6 +428,36 @@ type UGAATask struct {
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
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
}

/*
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
12 changes: 6 additions & 6 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
Loading

0 comments on commit 52ce013

Please sign in to comment.