Skip to content

Commit

Permalink
sdk: rolling update for 0.21.57 (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot authored Mar 23, 2023
1 parent b82f997 commit f6853d0
Show file tree
Hide file tree
Showing 14 changed files with 515 additions and 347 deletions.
153 changes: 153 additions & 0 deletions services/iam/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,53 @@ func (c *IAMClient) GetIAMPolicy(req *GetIAMPolicyRequest) (*GetIAMPolicyRespons
return &res, nil
}

// GetLoginProfileRequest is request schema for GetLoginProfile action
type GetLoginProfileRequest struct {
request.CommonBase

// 用户名
UserName *string `required:"true"`
}

// GetLoginProfileResponse is response schema for GetLoginProfile action
type GetLoginProfileResponse struct {
response.CommonBase

// 登录资料
LoginProfile LoginProfile
}

// NewGetLoginProfileRequest will create request of GetLoginProfile action.
func (c *IAMClient) NewGetLoginProfileRequest() *GetLoginProfileRequest {
req := &GetLoginProfileRequest{}

// 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: GetLoginProfile
获取用户登录资料
*/
func (c *IAMClient) GetLoginProfile(req *GetLoginProfileRequest) (*GetLoginProfileResponse, error) {
var err error
var res GetLoginProfileResponse

reqCopier := *req

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

return &res, nil
}

// GetUserRequest is request schema for GetUser action
type GetUserRequest struct {
request.CommonBase
Expand Down Expand Up @@ -1089,6 +1136,56 @@ func (c *IAMClient) ListEntitiesForProject(req *ListEntitiesForProjectRequest) (
return &res, nil
}

// ListGroupsRequest is request schema for ListGroups action
type ListGroupsRequest struct {
request.CommonBase
}

// ListGroupsResponse is response schema for ListGroups action
type ListGroupsResponse struct {
response.CommonBase

// 用户组数组
Groups []Group

// 错误消息
Message string

// 总数
TotalCount int
}

// NewListGroupsRequest will create request of ListGroups action.
func (c *IAMClient) NewListGroupsRequest() *ListGroupsRequest {
req := &ListGroupsRequest{}

// 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: ListGroups
列出用户组
*/
func (c *IAMClient) ListGroups(req *ListGroupsRequest) (*ListGroupsResponse, error) {
var err error
var res ListGroupsResponse

reqCopier := *req

err = c.Client.InvokeAction("ListGroups", &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 @@ -1610,6 +1707,62 @@ func (c *IAMClient) UpdateIAMPolicyName(req *UpdateIAMPolicyNameRequest) (*Updat
return &res, nil
}

// UpdateLoginProfileRequest is request schema for UpdateLoginProfile action
type UpdateLoginProfileRequest struct {
request.CommonBase

// 是否必需绑定MFA
MFABindRequired *bool `required:"false"`

// 密码最长有效期,单位:天
MaxPasswordAge *int `required:"false"`

// 登录资料状态
Status *string `required:"false"`

// 用户真实邮箱
UserEmail *string `required:"false"`

// 用户名
UserName *string `required:"true"`
}

// UpdateLoginProfileResponse is response schema for UpdateLoginProfile action
type UpdateLoginProfileResponse struct {
response.CommonBase
}

// NewUpdateLoginProfileRequest will create request of UpdateLoginProfile action.
func (c *IAMClient) NewUpdateLoginProfileRequest() *UpdateLoginProfileRequest {
req := &UpdateLoginProfileRequest{}

// 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: UpdateLoginProfile
更新用户登录资料
*/
func (c *IAMClient) UpdateLoginProfile(req *UpdateLoginProfileRequest) (*UpdateLoginProfileResponse, error) {
var err error
var res UpdateLoginProfileResponse

reqCopier := *req

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

return &res, nil
}

// UpdateUserRequest is request schema for UpdateUser action
type UpdateUserRequest struct {
request.CommonBase
Expand Down
15 changes: 15 additions & 0 deletions services/iam/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ type IAMPolicy struct {
UpdatedAt int
}

/*
LoginProfile - 登录资料
*/
type LoginProfile struct {

// 是否必需绑定MFA
MFABindRequired bool

// 密码最长有效期,单位:天
MaxPasswordAge int

// 登录资料状态
Status string
}

/*
User - 用户模型
*/
Expand Down
54 changes: 27 additions & 27 deletions services/pathx/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,6 @@ type SrcAreaInfo struct {
FlagUnicode string
}

/*
ForwardTask - 全球统一接入转发端口任务信息
*/
type ForwardTask struct {

// 加速端口
Port int

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

// 源站服务器监听的端口号
RSPort int
}

/*
OutPublicIpInfo - 线路回源IP信息
*/
Expand All @@ -248,6 +233,21 @@ type AccelerationAreaInfos struct {
AccelerationNodes []SrcAreaInfo
}

/*
ForwardTask - 全球统一接入转发端口任务信息
*/
type ForwardTask struct {

// 加速端口
Port int

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

// 源站服务器监听的端口号
RSPort int
}

/*
ForwardInfo - 全球统一接入加速实例配置信息
*/
Expand Down Expand Up @@ -389,18 +389,6 @@ type UPathSet struct {
UPathName string
}

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

// 接入端口
Port int

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

/*
UGAL7Forwarder - UGA实例 7层转发器信息
*/
Expand All @@ -422,6 +410,18 @@ type UGAL7Forwarder struct {
SSLName string
}

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

// 接入端口
Port int

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

/*
UGAL4Forwarder - UGA实例 4层转发器信息
*/
Expand Down
30 changes: 15 additions & 15 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
Loading

0 comments on commit f6853d0

Please sign in to comment.