Skip to content

Commit

Permalink
adjust iam apis struct names
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Sep 5, 2024
1 parent 7edf448 commit 3497091
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion iam/apis/delete_user_policy/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Request struct {
type PolicyAliases = []string

// 为子账号删除授权策略参数
type UpdateIamUserPoliciesParam = Request
type DeletedIamUserPoliciesParam = Request
type jsonRequest struct {
PolicyAliases PolicyAliases `json:"policy_aliases"` // 授权策略别名集合
}
Expand Down
4 changes: 2 additions & 2 deletions iam/apis/modify_group_policies/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Request struct {
// 添加给用户分组的授权策略别名集合
type PolicyAliases = []string

// 为用户分组添加授权策略参数
type AddedGroupIamPoliciesParam = Request
// 为用户分组修改授权策略参数
type ModifiedGroupIamPoliciesParam = Request
type jsonRequest struct {
PolicyAliases PolicyAliases `json:"policy_aliases"` // 授权策略别名集合
}
Expand Down
4 changes: 2 additions & 2 deletions iam/apis/modify_group_users/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Request struct {
// 添加给用户分组的 IAM 子账号别名集合
type UserAliases = []string

// 为用户分组添加 IAM 子账号参数
type AddedGroupIamUsersParam = Request
// 为用户分组修改 IAM 子账号参数
type ModifiedGroupIamUsersParam = Request
type jsonRequest struct {
UserAliases UserAliases `json:"user_aliases"` // IAM 子账号别名集合
}
Expand Down
2 changes: 1 addition & 1 deletion iam/apis/modify_user/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Request struct {
}

// 修改 IAM 子账号参数
type ModifyIamUserParam = Request
type ModifiedIamUserParam = Request
type jsonRequest struct {
Enabled bool `json:"enabled"` // 子账号是否启用
Password string `json:"password,omitempty"` // 子账号密码
Expand Down
4 changes: 2 additions & 2 deletions iam/apis/modify_user_policies/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Request struct {
// 添加给用户的授权策略别名集合
type PolicyAliases = []string

// 为子账号添加授权策略参数
type AddedIamUserPoliciesParam = Request
// 为子账号修改授权策略参数
type ModifiedIamUserPoliciesParam = Request
type jsonRequest struct {
PolicyAliases PolicyAliases `json:"policy_aliases"` // 授权策略别名集合
}
Expand Down
2 changes: 1 addition & 1 deletion iam/apis/update_policy_groups/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Request struct {
type GroupAliases = []string

// 为授权策略重新分配分组参数
type UpdatePolicyGroupsParam = Request
type UpdatedPolicyGroupsParam = Request
type jsonRequest struct {
GroupAliases GroupAliases `json:"group_aliases,omitempty"` // 分组别名集合
}
Expand Down
2 changes: 1 addition & 1 deletion iam/apis/update_user_groups/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Request struct {
type GroupAliases = []string

// 为用户重新分配分组参数
type UpdateIamUserGroupsParam = Request
type UpdatedIamUserGroupsParam = Request
type jsonRequest struct {
GroupAliases GroupAliases `json:"group_aliases,omitempty"` // 分组别名集合
}
Expand Down
2 changes: 1 addition & 1 deletion iam/apis/update_user_policies/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Request struct {
type PolicyAliases = []string

// 为子账号重新分配授权策略参数
type UpdateIamUserPoliciesParam = Request
type UpdatedIamUserPoliciesParam = Request
type jsonRequest struct {
PolicyAliases PolicyAliases `json:"policy_aliases,omitempty"` // 授权策略别名集合
}
Expand Down

0 comments on commit 3497091

Please sign in to comment.