Debian Codegraph @

ram/types.go

raw symbols SCIP
1 package ram
2
3 import (
4 "github.com/denverdino/aliyungo/common"
5 )
6
7 /*
8 All common struct
9 */
10
11 const (
12 Active State = "Active"
13 Inactive State = "Inactive"
14 )
15
16 /*
17 AccountAlias
18 类型:String
19 必须:是
20 描述:指定云账号的别名, 长度限制为3-63个字符
21 限制:^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$
22 */
23 type AccountAlias string
24
25 type UserQueryRequest struct {
26 UserName string
27 }
28
29 type User struct {
30 UserId string
31 UserName string
32 DisplayName string
33 MobilePhone string
34 Email string
35 Comments string
36 CreateDate string
37 UpdateDate string
38 LastLoginDate string
39 }
40
41 type LoginProfile struct {
42 UserName string
43 PasswordResetRequired bool
44 MFABindRequired bool
45 }
46
47 type MFADevice struct {
48 SerialNumber string
49 }
50
51 type VirtualMFADevice struct {
52 SerialNumber string
53 Base32StringSeed string
54 QRCodePNG string
55 ActivateDate string
56 User User
57 }
58
59 type AccessKey struct {
60 AccessKeyId string
61 AccessKeySecret string
62 Status State
63 CreateDate string
64 }
65
66 type Group struct {
67 GroupName string
68 Comments string
69 }
70
71 type Role struct {
72 RoleId string
73 RoleName string
74 Arn string
75 Description string
76 AssumeRolePolicyDocument string
77 CreateDate string
78 UpdateDate string
79 }
80
81 type Policy struct {
82 PolicyName string
83 PolicyType string
84 Description string
85 DefaultVersion string
86 CreateDate string
87 UpdateDate string
88 AttachmentCount int64
89 }
90
91 type PolicyVersion struct {
92 VersionId string
93 IsDefaultVersion bool
94 CreateDate string
95 PolicyDocument string
96 }
97
98 type PolicyDocument struct {
99 Statement []PolicyItem
100 Version string
101 }
102
103 type PolicyItem struct {
104 Action string
105 Effect string
106 Resource string
107 }
108
109 type AssumeRolePolicyDocument struct {
110 Statement []AssumeRolePolicyItem
111 Version string
112 }
113
114 type AssumeRolePolicyItem struct {
115 Action string
116 Effect string
117 Principal AssumeRolePolicyPrincpal
118 }
119
120 type AssumeRolePolicyPrincpal struct {
121 RAM []string
122 }
123
124 /*
125 "PasswordPolicy": {
126 "MinimumPasswordLength": 12,
127 "RequireLowercaseCharacters": true,
128 "RequireUppercaseCharacters": true,
129 "RequireNumbers": true,
130 "RequireSymbols": true
131 }
132 */
133
134 type PasswordPolicy struct {
135 MinimumPasswordLength int8
136 RequireLowercaseCharacters bool
137 RequireUppercaseCharacters bool
138 RequireNumbers bool
139 RequireSymbols bool
140 }
141
142 type RamCommonResponse struct {
143 common.Response
144 }