1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package v20190116
16
17import (
18    "encoding/json"
19    "errors"
20
21    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
22)
23
24type AccessKey struct {
25
26	// 访问密钥标识
27	AccessKeyId *string `json:"AccessKeyId,omitempty" name:"AccessKeyId"`
28
29	// 密钥状态,激活(Active)或未激活(Inactive)
30	Status *string `json:"Status,omitempty" name:"Status"`
31
32	// 创建时间
33	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
34}
35
36type AddUserRequest struct {
37	*tchttp.BaseRequest
38
39	// 子用户用户名
40	Name *string `json:"Name,omitempty" name:"Name"`
41
42	// 子用户备注
43	Remark *string `json:"Remark,omitempty" name:"Remark"`
44
45	// 子用户是否可以登录控制台。传0子用户无法登录控制台,传1子用户可以登录控制台。
46	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
47
48	// 是否生成子用户密钥。传0不生成子用户密钥,传1生成子用户密钥。
49	UseApi *uint64 `json:"UseApi,omitempty" name:"UseApi"`
50
51	// 子用户控制台登录密码,若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效,如果传空并且上面指定允许登录控制台,则自动生成随机密码,随机密码规则为32位包含大小写字母、数字和特殊字符。
52	Password *string `json:"Password,omitempty" name:"Password"`
53
54	// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码,传1子用户下次登录控制台需要重置密码。
55	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`
56
57	// 手机号
58	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
59
60	// 区号
61	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
62
63	// 邮箱
64	Email *string `json:"Email,omitempty" name:"Email"`
65}
66
67func (r *AddUserRequest) ToJsonString() string {
68    b, _ := json.Marshal(r)
69    return string(b)
70}
71
72// It is highly **NOT** recommended to use this function
73// because it has no param check, nor strict type check
74func (r *AddUserRequest) FromJsonString(s string) error {
75	f := make(map[string]interface{})
76	if err := json.Unmarshal([]byte(s), &f); err != nil {
77		return err
78	}
79	delete(f, "Name")
80	delete(f, "Remark")
81	delete(f, "ConsoleLogin")
82	delete(f, "UseApi")
83	delete(f, "Password")
84	delete(f, "NeedResetPassword")
85	delete(f, "PhoneNum")
86	delete(f, "CountryCode")
87	delete(f, "Email")
88	if len(f) > 0 {
89		return errors.New("AddUserRequest has unknown keys!")
90	}
91	return json.Unmarshal([]byte(s), &r)
92}
93
94type AddUserResponse struct {
95	*tchttp.BaseResponse
96	Response *struct {
97
98		// 子用户 UIN
99		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
100
101		// 子用户用户名
102		Name *string `json:"Name,omitempty" name:"Name"`
103
104		// 如果输入参数组合为自动生成随机密码,则返回生成的密码
105		Password *string `json:"Password,omitempty" name:"Password"`
106
107		// 子用户密钥 ID
108		SecretId *string `json:"SecretId,omitempty" name:"SecretId"`
109
110		// 子用户密钥 Key
111		SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
112
113		// 子用户 UID
114		Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
115
116		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
117		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
118	} `json:"Response"`
119}
120
121func (r *AddUserResponse) ToJsonString() string {
122    b, _ := json.Marshal(r)
123    return string(b)
124}
125
126// It is highly **NOT** recommended to use this function
127// because it has no param check, nor strict type check
128func (r *AddUserResponse) FromJsonString(s string) error {
129	return json.Unmarshal([]byte(s), &r)
130}
131
132type AddUserToGroupRequest struct {
133	*tchttp.BaseRequest
134
135	// 添加的子用户 UID 和用户组 ID 关联关系
136	Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info" list`
137}
138
139func (r *AddUserToGroupRequest) ToJsonString() string {
140    b, _ := json.Marshal(r)
141    return string(b)
142}
143
144// It is highly **NOT** recommended to use this function
145// because it has no param check, nor strict type check
146func (r *AddUserToGroupRequest) FromJsonString(s string) error {
147	f := make(map[string]interface{})
148	if err := json.Unmarshal([]byte(s), &f); err != nil {
149		return err
150	}
151	delete(f, "Info")
152	if len(f) > 0 {
153		return errors.New("AddUserToGroupRequest has unknown keys!")
154	}
155	return json.Unmarshal([]byte(s), &r)
156}
157
158type AddUserToGroupResponse struct {
159	*tchttp.BaseResponse
160	Response *struct {
161
162		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
163		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
164	} `json:"Response"`
165}
166
167func (r *AddUserToGroupResponse) ToJsonString() string {
168    b, _ := json.Marshal(r)
169    return string(b)
170}
171
172// It is highly **NOT** recommended to use this function
173// because it has no param check, nor strict type check
174func (r *AddUserToGroupResponse) FromJsonString(s string) error {
175	return json.Unmarshal([]byte(s), &r)
176}
177
178type AttachEntityOfPolicy struct {
179
180	// 实体ID
181	Id *string `json:"Id,omitempty" name:"Id"`
182
183	// 实体名称
184	// 注意:此字段可能返回 null,表示取不到有效值。
185	Name *string `json:"Name,omitempty" name:"Name"`
186
187	// 实体Uin
188	// 注意:此字段可能返回 null,表示取不到有效值。
189	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
190
191	// 关联类型。1 用户关联 ; 2 用户组关联
192	RelatedType *uint64 `json:"RelatedType,omitempty" name:"RelatedType"`
193
194	// 策略关联时间
195	// 注意:此字段可能返回 null,表示取不到有效值。
196	AttachmentTime *string `json:"AttachmentTime,omitempty" name:"AttachmentTime"`
197}
198
199type AttachGroupPolicyRequest struct {
200	*tchttp.BaseRequest
201
202	// 策略 id
203	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
204
205	// 用户组 id
206	AttachGroupId *uint64 `json:"AttachGroupId,omitempty" name:"AttachGroupId"`
207}
208
209func (r *AttachGroupPolicyRequest) ToJsonString() string {
210    b, _ := json.Marshal(r)
211    return string(b)
212}
213
214// It is highly **NOT** recommended to use this function
215// because it has no param check, nor strict type check
216func (r *AttachGroupPolicyRequest) FromJsonString(s string) error {
217	f := make(map[string]interface{})
218	if err := json.Unmarshal([]byte(s), &f); err != nil {
219		return err
220	}
221	delete(f, "PolicyId")
222	delete(f, "AttachGroupId")
223	if len(f) > 0 {
224		return errors.New("AttachGroupPolicyRequest has unknown keys!")
225	}
226	return json.Unmarshal([]byte(s), &r)
227}
228
229type AttachGroupPolicyResponse struct {
230	*tchttp.BaseResponse
231	Response *struct {
232
233		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
234		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
235	} `json:"Response"`
236}
237
238func (r *AttachGroupPolicyResponse) ToJsonString() string {
239    b, _ := json.Marshal(r)
240    return string(b)
241}
242
243// It is highly **NOT** recommended to use this function
244// because it has no param check, nor strict type check
245func (r *AttachGroupPolicyResponse) FromJsonString(s string) error {
246	return json.Unmarshal([]byte(s), &r)
247}
248
249type AttachPolicyInfo struct {
250
251	// 策略id
252	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
253
254	// 策略名称
255	// 注意:此字段可能返回 null,表示取不到有效值。
256	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
257
258	// 创建时间
259	// 注意:此字段可能返回 null,表示取不到有效值。
260	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
261
262	// 创建来源,1 通过控制台创建, 2 通过策略语法创建。
263	// 注意:此字段可能返回 null,表示取不到有效值。
264	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
265
266	// 取值为user和QCS
267	// 注意:此字段可能返回 null,表示取不到有效值。
268	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
269
270	// 策略备注
271	// 注意:此字段可能返回 null,表示取不到有效值。
272	Remark *string `json:"Remark,omitempty" name:"Remark"`
273
274	// 策略关联操作者主帐号
275	// 注意:此字段可能返回 null,表示取不到有效值。
276	OperateOwnerUin *string `json:"OperateOwnerUin,omitempty" name:"OperateOwnerUin"`
277
278	// 策略关联操作者ID,如果UinType为0表示子帐号Uin,如果UinType为1表示角色ID
279	// 注意:此字段可能返回 null,表示取不到有效值。
280	OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"`
281
282	// UinType为0表示OperateUin字段是子帐号Uin,如果UinType为1表示OperateUin字段是角色ID
283	// 注意:此字段可能返回 null,表示取不到有效值。
284	OperateUinType *uint64 `json:"OperateUinType,omitempty" name:"OperateUinType"`
285
286	// 是否已下线
287	// 注意:此字段可能返回 null,表示取不到有效值。
288	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
289
290	// 已下线的产品列表
291	// 注意:此字段可能返回 null,表示取不到有效值。
292	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
293}
294
295type AttachRolePolicyRequest struct {
296	*tchttp.BaseRequest
297
298	// 策略ID,入参PolicyId与PolicyName二选一
299	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
300
301	// 角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
302	AttachRoleId *string `json:"AttachRoleId,omitempty" name:"AttachRoleId"`
303
304	// 角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
305	AttachRoleName *string `json:"AttachRoleName,omitempty" name:"AttachRoleName"`
306
307	// 策略名,入参PolicyId与PolicyName二选一
308	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
309}
310
311func (r *AttachRolePolicyRequest) ToJsonString() string {
312    b, _ := json.Marshal(r)
313    return string(b)
314}
315
316// It is highly **NOT** recommended to use this function
317// because it has no param check, nor strict type check
318func (r *AttachRolePolicyRequest) FromJsonString(s string) error {
319	f := make(map[string]interface{})
320	if err := json.Unmarshal([]byte(s), &f); err != nil {
321		return err
322	}
323	delete(f, "PolicyId")
324	delete(f, "AttachRoleId")
325	delete(f, "AttachRoleName")
326	delete(f, "PolicyName")
327	if len(f) > 0 {
328		return errors.New("AttachRolePolicyRequest has unknown keys!")
329	}
330	return json.Unmarshal([]byte(s), &r)
331}
332
333type AttachRolePolicyResponse struct {
334	*tchttp.BaseResponse
335	Response *struct {
336
337		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
338		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
339	} `json:"Response"`
340}
341
342func (r *AttachRolePolicyResponse) ToJsonString() string {
343    b, _ := json.Marshal(r)
344    return string(b)
345}
346
347// It is highly **NOT** recommended to use this function
348// because it has no param check, nor strict type check
349func (r *AttachRolePolicyResponse) FromJsonString(s string) error {
350	return json.Unmarshal([]byte(s), &r)
351}
352
353type AttachUserPolicyRequest struct {
354	*tchttp.BaseRequest
355
356	// 策略 id
357	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
358
359	// 子账号 uin
360	AttachUin *uint64 `json:"AttachUin,omitempty" name:"AttachUin"`
361}
362
363func (r *AttachUserPolicyRequest) ToJsonString() string {
364    b, _ := json.Marshal(r)
365    return string(b)
366}
367
368// It is highly **NOT** recommended to use this function
369// because it has no param check, nor strict type check
370func (r *AttachUserPolicyRequest) FromJsonString(s string) error {
371	f := make(map[string]interface{})
372	if err := json.Unmarshal([]byte(s), &f); err != nil {
373		return err
374	}
375	delete(f, "PolicyId")
376	delete(f, "AttachUin")
377	if len(f) > 0 {
378		return errors.New("AttachUserPolicyRequest has unknown keys!")
379	}
380	return json.Unmarshal([]byte(s), &r)
381}
382
383type AttachUserPolicyResponse struct {
384	*tchttp.BaseResponse
385	Response *struct {
386
387		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
388		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
389	} `json:"Response"`
390}
391
392func (r *AttachUserPolicyResponse) ToJsonString() string {
393    b, _ := json.Marshal(r)
394    return string(b)
395}
396
397// It is highly **NOT** recommended to use this function
398// because it has no param check, nor strict type check
399func (r *AttachUserPolicyResponse) FromJsonString(s string) error {
400	return json.Unmarshal([]byte(s), &r)
401}
402
403type AttachedPolicyOfRole struct {
404
405	// 策略ID
406	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
407
408	// 策略名称
409	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
410
411	// 绑定时间
412	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
413
414	// 策略类型,User表示自定义策略,QCS表示预设策略
415	// 注意:此字段可能返回 null,表示取不到有效值。
416	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
417
418	// 策略创建方式,1表示按产品功能或项目权限创建,其他表示按策略语法创建
419	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
420
421	// 是否已下线(0:否 1:是)
422	// 注意:此字段可能返回 null,表示取不到有效值。
423	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
424
425	// 已下线的产品列表
426	// 注意:此字段可能返回 null,表示取不到有效值。
427	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
428
429	// 策略描述
430	// 注意:此字段可能返回 null,表示取不到有效值。
431	Description *string `json:"Description,omitempty" name:"Description"`
432}
433
434type ConsumeCustomMFATokenRequest struct {
435	*tchttp.BaseRequest
436
437	// 自定义多因子验证Token
438	MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"`
439}
440
441func (r *ConsumeCustomMFATokenRequest) ToJsonString() string {
442    b, _ := json.Marshal(r)
443    return string(b)
444}
445
446// It is highly **NOT** recommended to use this function
447// because it has no param check, nor strict type check
448func (r *ConsumeCustomMFATokenRequest) FromJsonString(s string) error {
449	f := make(map[string]interface{})
450	if err := json.Unmarshal([]byte(s), &f); err != nil {
451		return err
452	}
453	delete(f, "MFAToken")
454	if len(f) > 0 {
455		return errors.New("ConsumeCustomMFATokenRequest has unknown keys!")
456	}
457	return json.Unmarshal([]byte(s), &r)
458}
459
460type ConsumeCustomMFATokenResponse struct {
461	*tchttp.BaseResponse
462	Response *struct {
463
464		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
465		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
466	} `json:"Response"`
467}
468
469func (r *ConsumeCustomMFATokenResponse) ToJsonString() string {
470    b, _ := json.Marshal(r)
471    return string(b)
472}
473
474// It is highly **NOT** recommended to use this function
475// because it has no param check, nor strict type check
476func (r *ConsumeCustomMFATokenResponse) FromJsonString(s string) error {
477	return json.Unmarshal([]byte(s), &r)
478}
479
480type CreateGroupRequest struct {
481	*tchttp.BaseRequest
482
483	// 用户组名
484	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
485
486	// 用户组描述
487	Remark *string `json:"Remark,omitempty" name:"Remark"`
488}
489
490func (r *CreateGroupRequest) ToJsonString() string {
491    b, _ := json.Marshal(r)
492    return string(b)
493}
494
495// It is highly **NOT** recommended to use this function
496// because it has no param check, nor strict type check
497func (r *CreateGroupRequest) FromJsonString(s string) error {
498	f := make(map[string]interface{})
499	if err := json.Unmarshal([]byte(s), &f); err != nil {
500		return err
501	}
502	delete(f, "GroupName")
503	delete(f, "Remark")
504	if len(f) > 0 {
505		return errors.New("CreateGroupRequest has unknown keys!")
506	}
507	return json.Unmarshal([]byte(s), &r)
508}
509
510type CreateGroupResponse struct {
511	*tchttp.BaseResponse
512	Response *struct {
513
514		// 用户组 ID
515		GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
516
517		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
518		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
519	} `json:"Response"`
520}
521
522func (r *CreateGroupResponse) ToJsonString() string {
523    b, _ := json.Marshal(r)
524    return string(b)
525}
526
527// It is highly **NOT** recommended to use this function
528// because it has no param check, nor strict type check
529func (r *CreateGroupResponse) FromJsonString(s string) error {
530	return json.Unmarshal([]byte(s), &r)
531}
532
533type CreatePolicyRequest struct {
534	*tchttp.BaseRequest
535
536	// 策略名
537	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
538
539	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
540	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
541
542	// 策略描述
543	Description *string `json:"Description,omitempty" name:"Description"`
544}
545
546func (r *CreatePolicyRequest) ToJsonString() string {
547    b, _ := json.Marshal(r)
548    return string(b)
549}
550
551// It is highly **NOT** recommended to use this function
552// because it has no param check, nor strict type check
553func (r *CreatePolicyRequest) FromJsonString(s string) error {
554	f := make(map[string]interface{})
555	if err := json.Unmarshal([]byte(s), &f); err != nil {
556		return err
557	}
558	delete(f, "PolicyName")
559	delete(f, "PolicyDocument")
560	delete(f, "Description")
561	if len(f) > 0 {
562		return errors.New("CreatePolicyRequest has unknown keys!")
563	}
564	return json.Unmarshal([]byte(s), &r)
565}
566
567type CreatePolicyResponse struct {
568	*tchttp.BaseResponse
569	Response *struct {
570
571		// 新增策略ID
572		PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
573
574		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
575		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
576	} `json:"Response"`
577}
578
579func (r *CreatePolicyResponse) ToJsonString() string {
580    b, _ := json.Marshal(r)
581    return string(b)
582}
583
584// It is highly **NOT** recommended to use this function
585// because it has no param check, nor strict type check
586func (r *CreatePolicyResponse) FromJsonString(s string) error {
587	return json.Unmarshal([]byte(s), &r)
588}
589
590type CreatePolicyVersionRequest struct {
591	*tchttp.BaseRequest
592
593	// 策略ID
594	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
595
596	// 策略文本信息
597	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
598
599	// 是否设置为当前策略的版本
600	SetAsDefault *bool `json:"SetAsDefault,omitempty" name:"SetAsDefault"`
601}
602
603func (r *CreatePolicyVersionRequest) ToJsonString() string {
604    b, _ := json.Marshal(r)
605    return string(b)
606}
607
608// It is highly **NOT** recommended to use this function
609// because it has no param check, nor strict type check
610func (r *CreatePolicyVersionRequest) FromJsonString(s string) error {
611	f := make(map[string]interface{})
612	if err := json.Unmarshal([]byte(s), &f); err != nil {
613		return err
614	}
615	delete(f, "PolicyId")
616	delete(f, "PolicyDocument")
617	delete(f, "SetAsDefault")
618	if len(f) > 0 {
619		return errors.New("CreatePolicyVersionRequest has unknown keys!")
620	}
621	return json.Unmarshal([]byte(s), &r)
622}
623
624type CreatePolicyVersionResponse struct {
625	*tchttp.BaseResponse
626	Response *struct {
627
628		// 策略版本号
629	// 注意:此字段可能返回 null,表示取不到有效值。
630		VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
631
632		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
633		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
634	} `json:"Response"`
635}
636
637func (r *CreatePolicyVersionResponse) ToJsonString() string {
638    b, _ := json.Marshal(r)
639    return string(b)
640}
641
642// It is highly **NOT** recommended to use this function
643// because it has no param check, nor strict type check
644func (r *CreatePolicyVersionResponse) FromJsonString(s string) error {
645	return json.Unmarshal([]byte(s), &r)
646}
647
648type CreateRoleRequest struct {
649	*tchttp.BaseRequest
650
651	// 角色名称
652	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
653
654	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
655	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
656
657	// 角色描述
658	Description *string `json:"Description,omitempty" name:"Description"`
659
660	// 是否允许登录 1 为允许 0 为不允许
661	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
662
663	// 申请角色临时密钥的最长有效期限制(范围:0~43200)
664	SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"`
665}
666
667func (r *CreateRoleRequest) ToJsonString() string {
668    b, _ := json.Marshal(r)
669    return string(b)
670}
671
672// It is highly **NOT** recommended to use this function
673// because it has no param check, nor strict type check
674func (r *CreateRoleRequest) FromJsonString(s string) error {
675	f := make(map[string]interface{})
676	if err := json.Unmarshal([]byte(s), &f); err != nil {
677		return err
678	}
679	delete(f, "RoleName")
680	delete(f, "PolicyDocument")
681	delete(f, "Description")
682	delete(f, "ConsoleLogin")
683	delete(f, "SessionDuration")
684	if len(f) > 0 {
685		return errors.New("CreateRoleRequest has unknown keys!")
686	}
687	return json.Unmarshal([]byte(s), &r)
688}
689
690type CreateRoleResponse struct {
691	*tchttp.BaseResponse
692	Response *struct {
693
694		// 角色ID
695	// 注意:此字段可能返回 null,表示取不到有效值。
696		RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
697
698		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
699		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
700	} `json:"Response"`
701}
702
703func (r *CreateRoleResponse) ToJsonString() string {
704    b, _ := json.Marshal(r)
705    return string(b)
706}
707
708// It is highly **NOT** recommended to use this function
709// because it has no param check, nor strict type check
710func (r *CreateRoleResponse) FromJsonString(s string) error {
711	return json.Unmarshal([]byte(s), &r)
712}
713
714type CreateSAMLProviderRequest struct {
715	*tchttp.BaseRequest
716
717	// SAML身份提供商名称
718	Name *string `json:"Name,omitempty" name:"Name"`
719
720	// SAML身份提供商描述
721	Description *string `json:"Description,omitempty" name:"Description"`
722
723	// SAML身份提供商Base64编码的元数据文档
724	SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"`
725}
726
727func (r *CreateSAMLProviderRequest) ToJsonString() string {
728    b, _ := json.Marshal(r)
729    return string(b)
730}
731
732// It is highly **NOT** recommended to use this function
733// because it has no param check, nor strict type check
734func (r *CreateSAMLProviderRequest) FromJsonString(s string) error {
735	f := make(map[string]interface{})
736	if err := json.Unmarshal([]byte(s), &f); err != nil {
737		return err
738	}
739	delete(f, "Name")
740	delete(f, "Description")
741	delete(f, "SAMLMetadataDocument")
742	if len(f) > 0 {
743		return errors.New("CreateSAMLProviderRequest has unknown keys!")
744	}
745	return json.Unmarshal([]byte(s), &r)
746}
747
748type CreateSAMLProviderResponse struct {
749	*tchttp.BaseResponse
750	Response *struct {
751
752		// SAML身份提供商资源描述符
753		ProviderArn *string `json:"ProviderArn,omitempty" name:"ProviderArn"`
754
755		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
756		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
757	} `json:"Response"`
758}
759
760func (r *CreateSAMLProviderResponse) ToJsonString() string {
761    b, _ := json.Marshal(r)
762    return string(b)
763}
764
765// It is highly **NOT** recommended to use this function
766// because it has no param check, nor strict type check
767func (r *CreateSAMLProviderResponse) FromJsonString(s string) error {
768	return json.Unmarshal([]byte(s), &r)
769}
770
771type CreateServiceLinkedRoleRequest struct {
772	*tchttp.BaseRequest
773
774	// 授权服务,附加了此角色的腾讯云服务主体。
775	QCSServiceName []*string `json:"QCSServiceName,omitempty" name:"QCSServiceName" list`
776
777	// 自定义后缀,根据您提供的字符串,与服务提供的前缀组合在一起以形成完整的角色名称。
778	CustomSuffix *string `json:"CustomSuffix,omitempty" name:"CustomSuffix"`
779
780	// 角色说明。
781	Description *string `json:"Description,omitempty" name:"Description"`
782}
783
784func (r *CreateServiceLinkedRoleRequest) ToJsonString() string {
785    b, _ := json.Marshal(r)
786    return string(b)
787}
788
789// It is highly **NOT** recommended to use this function
790// because it has no param check, nor strict type check
791func (r *CreateServiceLinkedRoleRequest) FromJsonString(s string) error {
792	f := make(map[string]interface{})
793	if err := json.Unmarshal([]byte(s), &f); err != nil {
794		return err
795	}
796	delete(f, "QCSServiceName")
797	delete(f, "CustomSuffix")
798	delete(f, "Description")
799	if len(f) > 0 {
800		return errors.New("CreateServiceLinkedRoleRequest has unknown keys!")
801	}
802	return json.Unmarshal([]byte(s), &r)
803}
804
805type CreateServiceLinkedRoleResponse struct {
806	*tchttp.BaseResponse
807	Response *struct {
808
809		// 角色ID
810		RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
811
812		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
813		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
814	} `json:"Response"`
815}
816
817func (r *CreateServiceLinkedRoleResponse) ToJsonString() string {
818    b, _ := json.Marshal(r)
819    return string(b)
820}
821
822// It is highly **NOT** recommended to use this function
823// because it has no param check, nor strict type check
824func (r *CreateServiceLinkedRoleResponse) FromJsonString(s string) error {
825	return json.Unmarshal([]byte(s), &r)
826}
827
828type DeleteGroupRequest struct {
829	*tchttp.BaseRequest
830
831	// 用户组 ID
832	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
833}
834
835func (r *DeleteGroupRequest) ToJsonString() string {
836    b, _ := json.Marshal(r)
837    return string(b)
838}
839
840// It is highly **NOT** recommended to use this function
841// because it has no param check, nor strict type check
842func (r *DeleteGroupRequest) FromJsonString(s string) error {
843	f := make(map[string]interface{})
844	if err := json.Unmarshal([]byte(s), &f); err != nil {
845		return err
846	}
847	delete(f, "GroupId")
848	if len(f) > 0 {
849		return errors.New("DeleteGroupRequest has unknown keys!")
850	}
851	return json.Unmarshal([]byte(s), &r)
852}
853
854type DeleteGroupResponse struct {
855	*tchttp.BaseResponse
856	Response *struct {
857
858		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
859		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
860	} `json:"Response"`
861}
862
863func (r *DeleteGroupResponse) ToJsonString() string {
864    b, _ := json.Marshal(r)
865    return string(b)
866}
867
868// It is highly **NOT** recommended to use this function
869// because it has no param check, nor strict type check
870func (r *DeleteGroupResponse) FromJsonString(s string) error {
871	return json.Unmarshal([]byte(s), &r)
872}
873
874type DeletePolicyRequest struct {
875	*tchttp.BaseRequest
876
877	// 数组,数组成员是策略 id,支持批量删除策略
878	PolicyId []*uint64 `json:"PolicyId,omitempty" name:"PolicyId" list`
879}
880
881func (r *DeletePolicyRequest) ToJsonString() string {
882    b, _ := json.Marshal(r)
883    return string(b)
884}
885
886// It is highly **NOT** recommended to use this function
887// because it has no param check, nor strict type check
888func (r *DeletePolicyRequest) FromJsonString(s string) error {
889	f := make(map[string]interface{})
890	if err := json.Unmarshal([]byte(s), &f); err != nil {
891		return err
892	}
893	delete(f, "PolicyId")
894	if len(f) > 0 {
895		return errors.New("DeletePolicyRequest has unknown keys!")
896	}
897	return json.Unmarshal([]byte(s), &r)
898}
899
900type DeletePolicyResponse struct {
901	*tchttp.BaseResponse
902	Response *struct {
903
904		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
905		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
906	} `json:"Response"`
907}
908
909func (r *DeletePolicyResponse) ToJsonString() string {
910    b, _ := json.Marshal(r)
911    return string(b)
912}
913
914// It is highly **NOT** recommended to use this function
915// because it has no param check, nor strict type check
916func (r *DeletePolicyResponse) FromJsonString(s string) error {
917	return json.Unmarshal([]byte(s), &r)
918}
919
920type DeletePolicyVersionRequest struct {
921	*tchttp.BaseRequest
922
923	// 策略ID
924	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
925
926	// 策略版本号
927	VersionId []*uint64 `json:"VersionId,omitempty" name:"VersionId" list`
928}
929
930func (r *DeletePolicyVersionRequest) ToJsonString() string {
931    b, _ := json.Marshal(r)
932    return string(b)
933}
934
935// It is highly **NOT** recommended to use this function
936// because it has no param check, nor strict type check
937func (r *DeletePolicyVersionRequest) FromJsonString(s string) error {
938	f := make(map[string]interface{})
939	if err := json.Unmarshal([]byte(s), &f); err != nil {
940		return err
941	}
942	delete(f, "PolicyId")
943	delete(f, "VersionId")
944	if len(f) > 0 {
945		return errors.New("DeletePolicyVersionRequest has unknown keys!")
946	}
947	return json.Unmarshal([]byte(s), &r)
948}
949
950type DeletePolicyVersionResponse struct {
951	*tchttp.BaseResponse
952	Response *struct {
953
954		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
955		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
956	} `json:"Response"`
957}
958
959func (r *DeletePolicyVersionResponse) ToJsonString() string {
960    b, _ := json.Marshal(r)
961    return string(b)
962}
963
964// It is highly **NOT** recommended to use this function
965// because it has no param check, nor strict type check
966func (r *DeletePolicyVersionResponse) FromJsonString(s string) error {
967	return json.Unmarshal([]byte(s), &r)
968}
969
970type DeleteRolePermissionsBoundaryRequest struct {
971	*tchttp.BaseRequest
972
973	// 角色ID(与角色名至少填一个)
974	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
975
976	// 角色名(与角色ID至少填一个)
977	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
978}
979
980func (r *DeleteRolePermissionsBoundaryRequest) ToJsonString() string {
981    b, _ := json.Marshal(r)
982    return string(b)
983}
984
985// It is highly **NOT** recommended to use this function
986// because it has no param check, nor strict type check
987func (r *DeleteRolePermissionsBoundaryRequest) FromJsonString(s string) error {
988	f := make(map[string]interface{})
989	if err := json.Unmarshal([]byte(s), &f); err != nil {
990		return err
991	}
992	delete(f, "RoleId")
993	delete(f, "RoleName")
994	if len(f) > 0 {
995		return errors.New("DeleteRolePermissionsBoundaryRequest has unknown keys!")
996	}
997	return json.Unmarshal([]byte(s), &r)
998}
999
1000type DeleteRolePermissionsBoundaryResponse struct {
1001	*tchttp.BaseResponse
1002	Response *struct {
1003
1004		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1005		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1006	} `json:"Response"`
1007}
1008
1009func (r *DeleteRolePermissionsBoundaryResponse) ToJsonString() string {
1010    b, _ := json.Marshal(r)
1011    return string(b)
1012}
1013
1014// It is highly **NOT** recommended to use this function
1015// because it has no param check, nor strict type check
1016func (r *DeleteRolePermissionsBoundaryResponse) FromJsonString(s string) error {
1017	return json.Unmarshal([]byte(s), &r)
1018}
1019
1020type DeleteRoleRequest struct {
1021	*tchttp.BaseRequest
1022
1023	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
1024	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
1025
1026	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
1027	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
1028}
1029
1030func (r *DeleteRoleRequest) ToJsonString() string {
1031    b, _ := json.Marshal(r)
1032    return string(b)
1033}
1034
1035// It is highly **NOT** recommended to use this function
1036// because it has no param check, nor strict type check
1037func (r *DeleteRoleRequest) FromJsonString(s string) error {
1038	f := make(map[string]interface{})
1039	if err := json.Unmarshal([]byte(s), &f); err != nil {
1040		return err
1041	}
1042	delete(f, "RoleId")
1043	delete(f, "RoleName")
1044	if len(f) > 0 {
1045		return errors.New("DeleteRoleRequest has unknown keys!")
1046	}
1047	return json.Unmarshal([]byte(s), &r)
1048}
1049
1050type DeleteRoleResponse struct {
1051	*tchttp.BaseResponse
1052	Response *struct {
1053
1054		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1055		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1056	} `json:"Response"`
1057}
1058
1059func (r *DeleteRoleResponse) ToJsonString() string {
1060    b, _ := json.Marshal(r)
1061    return string(b)
1062}
1063
1064// It is highly **NOT** recommended to use this function
1065// because it has no param check, nor strict type check
1066func (r *DeleteRoleResponse) FromJsonString(s string) error {
1067	return json.Unmarshal([]byte(s), &r)
1068}
1069
1070type DeleteSAMLProviderRequest struct {
1071	*tchttp.BaseRequest
1072
1073	// SAML身份提供商名称
1074	Name *string `json:"Name,omitempty" name:"Name"`
1075}
1076
1077func (r *DeleteSAMLProviderRequest) ToJsonString() string {
1078    b, _ := json.Marshal(r)
1079    return string(b)
1080}
1081
1082// It is highly **NOT** recommended to use this function
1083// because it has no param check, nor strict type check
1084func (r *DeleteSAMLProviderRequest) FromJsonString(s string) error {
1085	f := make(map[string]interface{})
1086	if err := json.Unmarshal([]byte(s), &f); err != nil {
1087		return err
1088	}
1089	delete(f, "Name")
1090	if len(f) > 0 {
1091		return errors.New("DeleteSAMLProviderRequest has unknown keys!")
1092	}
1093	return json.Unmarshal([]byte(s), &r)
1094}
1095
1096type DeleteSAMLProviderResponse struct {
1097	*tchttp.BaseResponse
1098	Response *struct {
1099
1100		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1101		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1102	} `json:"Response"`
1103}
1104
1105func (r *DeleteSAMLProviderResponse) ToJsonString() string {
1106    b, _ := json.Marshal(r)
1107    return string(b)
1108}
1109
1110// It is highly **NOT** recommended to use this function
1111// because it has no param check, nor strict type check
1112func (r *DeleteSAMLProviderResponse) FromJsonString(s string) error {
1113	return json.Unmarshal([]byte(s), &r)
1114}
1115
1116type DeleteServiceLinkedRoleRequest struct {
1117	*tchttp.BaseRequest
1118
1119	// 要删除的服务相关角色的名称。
1120	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
1121}
1122
1123func (r *DeleteServiceLinkedRoleRequest) ToJsonString() string {
1124    b, _ := json.Marshal(r)
1125    return string(b)
1126}
1127
1128// It is highly **NOT** recommended to use this function
1129// because it has no param check, nor strict type check
1130func (r *DeleteServiceLinkedRoleRequest) FromJsonString(s string) error {
1131	f := make(map[string]interface{})
1132	if err := json.Unmarshal([]byte(s), &f); err != nil {
1133		return err
1134	}
1135	delete(f, "RoleName")
1136	if len(f) > 0 {
1137		return errors.New("DeleteServiceLinkedRoleRequest has unknown keys!")
1138	}
1139	return json.Unmarshal([]byte(s), &r)
1140}
1141
1142type DeleteServiceLinkedRoleResponse struct {
1143	*tchttp.BaseResponse
1144	Response *struct {
1145
1146		// 删除任务ID,可用于检查删除服务相关角色状态。
1147		DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
1148
1149		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1150		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1151	} `json:"Response"`
1152}
1153
1154func (r *DeleteServiceLinkedRoleResponse) ToJsonString() string {
1155    b, _ := json.Marshal(r)
1156    return string(b)
1157}
1158
1159// It is highly **NOT** recommended to use this function
1160// because it has no param check, nor strict type check
1161func (r *DeleteServiceLinkedRoleResponse) FromJsonString(s string) error {
1162	return json.Unmarshal([]byte(s), &r)
1163}
1164
1165type DeleteUserPermissionsBoundaryRequest struct {
1166	*tchttp.BaseRequest
1167
1168	// 子账号Uin
1169	TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"`
1170}
1171
1172func (r *DeleteUserPermissionsBoundaryRequest) ToJsonString() string {
1173    b, _ := json.Marshal(r)
1174    return string(b)
1175}
1176
1177// It is highly **NOT** recommended to use this function
1178// because it has no param check, nor strict type check
1179func (r *DeleteUserPermissionsBoundaryRequest) FromJsonString(s string) error {
1180	f := make(map[string]interface{})
1181	if err := json.Unmarshal([]byte(s), &f); err != nil {
1182		return err
1183	}
1184	delete(f, "TargetUin")
1185	if len(f) > 0 {
1186		return errors.New("DeleteUserPermissionsBoundaryRequest has unknown keys!")
1187	}
1188	return json.Unmarshal([]byte(s), &r)
1189}
1190
1191type DeleteUserPermissionsBoundaryResponse struct {
1192	*tchttp.BaseResponse
1193	Response *struct {
1194
1195		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1196		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1197	} `json:"Response"`
1198}
1199
1200func (r *DeleteUserPermissionsBoundaryResponse) ToJsonString() string {
1201    b, _ := json.Marshal(r)
1202    return string(b)
1203}
1204
1205// It is highly **NOT** recommended to use this function
1206// because it has no param check, nor strict type check
1207func (r *DeleteUserPermissionsBoundaryResponse) FromJsonString(s string) error {
1208	return json.Unmarshal([]byte(s), &r)
1209}
1210
1211type DeleteUserRequest struct {
1212	*tchttp.BaseRequest
1213
1214	// 子用户用户名
1215	Name *string `json:"Name,omitempty" name:"Name"`
1216
1217	// 是否强制删除该子用户,默认入参为0。0:若该用户存在未删除API密钥,则不删除用户;1:若该用户存在未删除API密钥,则先删除密钥后删除用户。删除密钥需要您拥有cam:DeleteApiKey权限,您将可以删除该用户下启用或禁用状态的所有密钥,无权限则删除密钥和用户失败
1218	Force *uint64 `json:"Force,omitempty" name:"Force"`
1219}
1220
1221func (r *DeleteUserRequest) ToJsonString() string {
1222    b, _ := json.Marshal(r)
1223    return string(b)
1224}
1225
1226// It is highly **NOT** recommended to use this function
1227// because it has no param check, nor strict type check
1228func (r *DeleteUserRequest) FromJsonString(s string) error {
1229	f := make(map[string]interface{})
1230	if err := json.Unmarshal([]byte(s), &f); err != nil {
1231		return err
1232	}
1233	delete(f, "Name")
1234	delete(f, "Force")
1235	if len(f) > 0 {
1236		return errors.New("DeleteUserRequest has unknown keys!")
1237	}
1238	return json.Unmarshal([]byte(s), &r)
1239}
1240
1241type DeleteUserResponse struct {
1242	*tchttp.BaseResponse
1243	Response *struct {
1244
1245		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1246		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1247	} `json:"Response"`
1248}
1249
1250func (r *DeleteUserResponse) ToJsonString() string {
1251    b, _ := json.Marshal(r)
1252    return string(b)
1253}
1254
1255// It is highly **NOT** recommended to use this function
1256// because it has no param check, nor strict type check
1257func (r *DeleteUserResponse) FromJsonString(s string) error {
1258	return json.Unmarshal([]byte(s), &r)
1259}
1260
1261type DescribeRoleListRequest struct {
1262	*tchttp.BaseRequest
1263
1264	// 页码,从1开始
1265	Page *uint64 `json:"Page,omitempty" name:"Page"`
1266
1267	// 每页行数,不能大于200
1268	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
1269}
1270
1271func (r *DescribeRoleListRequest) ToJsonString() string {
1272    b, _ := json.Marshal(r)
1273    return string(b)
1274}
1275
1276// It is highly **NOT** recommended to use this function
1277// because it has no param check, nor strict type check
1278func (r *DescribeRoleListRequest) FromJsonString(s string) error {
1279	f := make(map[string]interface{})
1280	if err := json.Unmarshal([]byte(s), &f); err != nil {
1281		return err
1282	}
1283	delete(f, "Page")
1284	delete(f, "Rp")
1285	if len(f) > 0 {
1286		return errors.New("DescribeRoleListRequest has unknown keys!")
1287	}
1288	return json.Unmarshal([]byte(s), &r)
1289}
1290
1291type DescribeRoleListResponse struct {
1292	*tchttp.BaseResponse
1293	Response *struct {
1294
1295		// 角色详情列表。
1296	// 注意:此字段可能返回 null,表示取不到有效值。
1297		List []*RoleInfo `json:"List,omitempty" name:"List" list`
1298
1299		// 角色总数
1300		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
1301
1302		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1303		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1304	} `json:"Response"`
1305}
1306
1307func (r *DescribeRoleListResponse) ToJsonString() string {
1308    b, _ := json.Marshal(r)
1309    return string(b)
1310}
1311
1312// It is highly **NOT** recommended to use this function
1313// because it has no param check, nor strict type check
1314func (r *DescribeRoleListResponse) FromJsonString(s string) error {
1315	return json.Unmarshal([]byte(s), &r)
1316}
1317
1318type DescribeSafeAuthFlagCollRequest struct {
1319	*tchttp.BaseRequest
1320
1321	// 子账号
1322	SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"`
1323}
1324
1325func (r *DescribeSafeAuthFlagCollRequest) ToJsonString() string {
1326    b, _ := json.Marshal(r)
1327    return string(b)
1328}
1329
1330// It is highly **NOT** recommended to use this function
1331// because it has no param check, nor strict type check
1332func (r *DescribeSafeAuthFlagCollRequest) FromJsonString(s string) error {
1333	f := make(map[string]interface{})
1334	if err := json.Unmarshal([]byte(s), &f); err != nil {
1335		return err
1336	}
1337	delete(f, "SubUin")
1338	if len(f) > 0 {
1339		return errors.New("DescribeSafeAuthFlagCollRequest has unknown keys!")
1340	}
1341	return json.Unmarshal([]byte(s), &r)
1342}
1343
1344type DescribeSafeAuthFlagCollResponse struct {
1345	*tchttp.BaseResponse
1346	Response *struct {
1347
1348		// 登录保护设置
1349		LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
1350
1351		// 敏感操作保护设置
1352		ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
1353
1354		// 异地登录保护设置
1355		OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"`
1356
1357		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1358		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1359	} `json:"Response"`
1360}
1361
1362func (r *DescribeSafeAuthFlagCollResponse) ToJsonString() string {
1363    b, _ := json.Marshal(r)
1364    return string(b)
1365}
1366
1367// It is highly **NOT** recommended to use this function
1368// because it has no param check, nor strict type check
1369func (r *DescribeSafeAuthFlagCollResponse) FromJsonString(s string) error {
1370	return json.Unmarshal([]byte(s), &r)
1371}
1372
1373type DescribeSafeAuthFlagRequest struct {
1374	*tchttp.BaseRequest
1375}
1376
1377func (r *DescribeSafeAuthFlagRequest) ToJsonString() string {
1378    b, _ := json.Marshal(r)
1379    return string(b)
1380}
1381
1382// It is highly **NOT** recommended to use this function
1383// because it has no param check, nor strict type check
1384func (r *DescribeSafeAuthFlagRequest) FromJsonString(s string) error {
1385	f := make(map[string]interface{})
1386	if err := json.Unmarshal([]byte(s), &f); err != nil {
1387		return err
1388	}
1389	if len(f) > 0 {
1390		return errors.New("DescribeSafeAuthFlagRequest has unknown keys!")
1391	}
1392	return json.Unmarshal([]byte(s), &r)
1393}
1394
1395type DescribeSafeAuthFlagResponse struct {
1396	*tchttp.BaseResponse
1397	Response *struct {
1398
1399		// 登录保护设置
1400		LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
1401
1402		// 敏感操作保护设置
1403		ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
1404
1405		// 异地登录保护设置
1406		OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"`
1407
1408		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1409		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1410	} `json:"Response"`
1411}
1412
1413func (r *DescribeSafeAuthFlagResponse) ToJsonString() string {
1414    b, _ := json.Marshal(r)
1415    return string(b)
1416}
1417
1418// It is highly **NOT** recommended to use this function
1419// because it has no param check, nor strict type check
1420func (r *DescribeSafeAuthFlagResponse) FromJsonString(s string) error {
1421	return json.Unmarshal([]byte(s), &r)
1422}
1423
1424type DescribeSubAccountsRequest struct {
1425	*tchttp.BaseRequest
1426
1427	// 子用户UIN列表,最多支持50个UIN
1428	FilterSubAccountUin []*uint64 `json:"FilterSubAccountUin,omitempty" name:"FilterSubAccountUin" list`
1429}
1430
1431func (r *DescribeSubAccountsRequest) ToJsonString() string {
1432    b, _ := json.Marshal(r)
1433    return string(b)
1434}
1435
1436// It is highly **NOT** recommended to use this function
1437// because it has no param check, nor strict type check
1438func (r *DescribeSubAccountsRequest) FromJsonString(s string) error {
1439	f := make(map[string]interface{})
1440	if err := json.Unmarshal([]byte(s), &f); err != nil {
1441		return err
1442	}
1443	delete(f, "FilterSubAccountUin")
1444	if len(f) > 0 {
1445		return errors.New("DescribeSubAccountsRequest has unknown keys!")
1446	}
1447	return json.Unmarshal([]byte(s), &r)
1448}
1449
1450type DescribeSubAccountsResponse struct {
1451	*tchttp.BaseResponse
1452	Response *struct {
1453
1454		// 子用户列表
1455		SubAccounts []*SubAccountUser `json:"SubAccounts,omitempty" name:"SubAccounts" list`
1456
1457		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1458		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1459	} `json:"Response"`
1460}
1461
1462func (r *DescribeSubAccountsResponse) ToJsonString() string {
1463    b, _ := json.Marshal(r)
1464    return string(b)
1465}
1466
1467// It is highly **NOT** recommended to use this function
1468// because it has no param check, nor strict type check
1469func (r *DescribeSubAccountsResponse) FromJsonString(s string) error {
1470	return json.Unmarshal([]byte(s), &r)
1471}
1472
1473type DetachGroupPolicyRequest struct {
1474	*tchttp.BaseRequest
1475
1476	// 策略 id
1477	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
1478
1479	// 用户组 id
1480	DetachGroupId *uint64 `json:"DetachGroupId,omitempty" name:"DetachGroupId"`
1481}
1482
1483func (r *DetachGroupPolicyRequest) ToJsonString() string {
1484    b, _ := json.Marshal(r)
1485    return string(b)
1486}
1487
1488// It is highly **NOT** recommended to use this function
1489// because it has no param check, nor strict type check
1490func (r *DetachGroupPolicyRequest) FromJsonString(s string) error {
1491	f := make(map[string]interface{})
1492	if err := json.Unmarshal([]byte(s), &f); err != nil {
1493		return err
1494	}
1495	delete(f, "PolicyId")
1496	delete(f, "DetachGroupId")
1497	if len(f) > 0 {
1498		return errors.New("DetachGroupPolicyRequest has unknown keys!")
1499	}
1500	return json.Unmarshal([]byte(s), &r)
1501}
1502
1503type DetachGroupPolicyResponse struct {
1504	*tchttp.BaseResponse
1505	Response *struct {
1506
1507		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1508		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1509	} `json:"Response"`
1510}
1511
1512func (r *DetachGroupPolicyResponse) ToJsonString() string {
1513    b, _ := json.Marshal(r)
1514    return string(b)
1515}
1516
1517// It is highly **NOT** recommended to use this function
1518// because it has no param check, nor strict type check
1519func (r *DetachGroupPolicyResponse) FromJsonString(s string) error {
1520	return json.Unmarshal([]byte(s), &r)
1521}
1522
1523type DetachRolePolicyRequest struct {
1524	*tchttp.BaseRequest
1525
1526	// 策略ID,入参PolicyId与PolicyName二选一
1527	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
1528
1529	// 角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
1530	DetachRoleId *string `json:"DetachRoleId,omitempty" name:"DetachRoleId"`
1531
1532	// 角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
1533	DetachRoleName *string `json:"DetachRoleName,omitempty" name:"DetachRoleName"`
1534
1535	// 策略名,入参PolicyId与PolicyName二选一
1536	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
1537}
1538
1539func (r *DetachRolePolicyRequest) ToJsonString() string {
1540    b, _ := json.Marshal(r)
1541    return string(b)
1542}
1543
1544// It is highly **NOT** recommended to use this function
1545// because it has no param check, nor strict type check
1546func (r *DetachRolePolicyRequest) FromJsonString(s string) error {
1547	f := make(map[string]interface{})
1548	if err := json.Unmarshal([]byte(s), &f); err != nil {
1549		return err
1550	}
1551	delete(f, "PolicyId")
1552	delete(f, "DetachRoleId")
1553	delete(f, "DetachRoleName")
1554	delete(f, "PolicyName")
1555	if len(f) > 0 {
1556		return errors.New("DetachRolePolicyRequest has unknown keys!")
1557	}
1558	return json.Unmarshal([]byte(s), &r)
1559}
1560
1561type DetachRolePolicyResponse struct {
1562	*tchttp.BaseResponse
1563	Response *struct {
1564
1565		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1566		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1567	} `json:"Response"`
1568}
1569
1570func (r *DetachRolePolicyResponse) ToJsonString() string {
1571    b, _ := json.Marshal(r)
1572    return string(b)
1573}
1574
1575// It is highly **NOT** recommended to use this function
1576// because it has no param check, nor strict type check
1577func (r *DetachRolePolicyResponse) FromJsonString(s string) error {
1578	return json.Unmarshal([]byte(s), &r)
1579}
1580
1581type DetachUserPolicyRequest struct {
1582	*tchttp.BaseRequest
1583
1584	// 策略 id
1585	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
1586
1587	// 子账号 uin
1588	DetachUin *uint64 `json:"DetachUin,omitempty" name:"DetachUin"`
1589}
1590
1591func (r *DetachUserPolicyRequest) ToJsonString() string {
1592    b, _ := json.Marshal(r)
1593    return string(b)
1594}
1595
1596// It is highly **NOT** recommended to use this function
1597// because it has no param check, nor strict type check
1598func (r *DetachUserPolicyRequest) FromJsonString(s string) error {
1599	f := make(map[string]interface{})
1600	if err := json.Unmarshal([]byte(s), &f); err != nil {
1601		return err
1602	}
1603	delete(f, "PolicyId")
1604	delete(f, "DetachUin")
1605	if len(f) > 0 {
1606		return errors.New("DetachUserPolicyRequest has unknown keys!")
1607	}
1608	return json.Unmarshal([]byte(s), &r)
1609}
1610
1611type DetachUserPolicyResponse struct {
1612	*tchttp.BaseResponse
1613	Response *struct {
1614
1615		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1616		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1617	} `json:"Response"`
1618}
1619
1620func (r *DetachUserPolicyResponse) ToJsonString() string {
1621    b, _ := json.Marshal(r)
1622    return string(b)
1623}
1624
1625// It is highly **NOT** recommended to use this function
1626// because it has no param check, nor strict type check
1627func (r *DetachUserPolicyResponse) FromJsonString(s string) error {
1628	return json.Unmarshal([]byte(s), &r)
1629}
1630
1631type GetCustomMFATokenInfoRequest struct {
1632	*tchttp.BaseRequest
1633
1634	// 自定义多因子验证Token
1635	MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"`
1636}
1637
1638func (r *GetCustomMFATokenInfoRequest) ToJsonString() string {
1639    b, _ := json.Marshal(r)
1640    return string(b)
1641}
1642
1643// It is highly **NOT** recommended to use this function
1644// because it has no param check, nor strict type check
1645func (r *GetCustomMFATokenInfoRequest) FromJsonString(s string) error {
1646	f := make(map[string]interface{})
1647	if err := json.Unmarshal([]byte(s), &f); err != nil {
1648		return err
1649	}
1650	delete(f, "MFAToken")
1651	if len(f) > 0 {
1652		return errors.New("GetCustomMFATokenInfoRequest has unknown keys!")
1653	}
1654	return json.Unmarshal([]byte(s), &r)
1655}
1656
1657type GetCustomMFATokenInfoResponse struct {
1658	*tchttp.BaseResponse
1659	Response *struct {
1660
1661		// 自定义多因子验证Token对应的帐号Id
1662		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
1663
1664		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1665		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1666	} `json:"Response"`
1667}
1668
1669func (r *GetCustomMFATokenInfoResponse) ToJsonString() string {
1670    b, _ := json.Marshal(r)
1671    return string(b)
1672}
1673
1674// It is highly **NOT** recommended to use this function
1675// because it has no param check, nor strict type check
1676func (r *GetCustomMFATokenInfoResponse) FromJsonString(s string) error {
1677	return json.Unmarshal([]byte(s), &r)
1678}
1679
1680type GetGroupRequest struct {
1681	*tchttp.BaseRequest
1682
1683	// 用户组 ID
1684	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
1685}
1686
1687func (r *GetGroupRequest) ToJsonString() string {
1688    b, _ := json.Marshal(r)
1689    return string(b)
1690}
1691
1692// It is highly **NOT** recommended to use this function
1693// because it has no param check, nor strict type check
1694func (r *GetGroupRequest) FromJsonString(s string) error {
1695	f := make(map[string]interface{})
1696	if err := json.Unmarshal([]byte(s), &f); err != nil {
1697		return err
1698	}
1699	delete(f, "GroupId")
1700	if len(f) > 0 {
1701		return errors.New("GetGroupRequest has unknown keys!")
1702	}
1703	return json.Unmarshal([]byte(s), &r)
1704}
1705
1706type GetGroupResponse struct {
1707	*tchttp.BaseResponse
1708	Response *struct {
1709
1710		// 用户组 ID
1711		GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
1712
1713		// 用户组名称
1714		GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
1715
1716		// 用户组成员数量
1717		GroupNum *uint64 `json:"GroupNum,omitempty" name:"GroupNum"`
1718
1719		// 用户组描述
1720		Remark *string `json:"Remark,omitempty" name:"Remark"`
1721
1722		// 用户组创建时间
1723		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
1724
1725		// 用户组成员信息
1726		UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`
1727
1728		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1729		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1730	} `json:"Response"`
1731}
1732
1733func (r *GetGroupResponse) ToJsonString() string {
1734    b, _ := json.Marshal(r)
1735    return string(b)
1736}
1737
1738// It is highly **NOT** recommended to use this function
1739// because it has no param check, nor strict type check
1740func (r *GetGroupResponse) FromJsonString(s string) error {
1741	return json.Unmarshal([]byte(s), &r)
1742}
1743
1744type GetPolicyRequest struct {
1745	*tchttp.BaseRequest
1746
1747	// 策略Id
1748	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
1749}
1750
1751func (r *GetPolicyRequest) ToJsonString() string {
1752    b, _ := json.Marshal(r)
1753    return string(b)
1754}
1755
1756// It is highly **NOT** recommended to use this function
1757// because it has no param check, nor strict type check
1758func (r *GetPolicyRequest) FromJsonString(s string) error {
1759	f := make(map[string]interface{})
1760	if err := json.Unmarshal([]byte(s), &f); err != nil {
1761		return err
1762	}
1763	delete(f, "PolicyId")
1764	if len(f) > 0 {
1765		return errors.New("GetPolicyRequest has unknown keys!")
1766	}
1767	return json.Unmarshal([]byte(s), &r)
1768}
1769
1770type GetPolicyResponse struct {
1771	*tchttp.BaseResponse
1772	Response *struct {
1773
1774		// 策略名
1775	// 注意:此字段可能返回 null,表示取不到有效值。
1776		PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
1777
1778		// 策略描述
1779	// 注意:此字段可能返回 null,表示取不到有效值。
1780		Description *string `json:"Description,omitempty" name:"Description"`
1781
1782		// 1 表示自定义策略,2 表示预设策略
1783	// 注意:此字段可能返回 null,表示取不到有效值。
1784		Type *uint64 `json:"Type,omitempty" name:"Type"`
1785
1786		// 创建时间
1787	// 注意:此字段可能返回 null,表示取不到有效值。
1788		AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
1789
1790		// 最近更新时间
1791	// 注意:此字段可能返回 null,表示取不到有效值。
1792		UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
1793
1794		// 策略文档
1795	// 注意:此字段可能返回 null,表示取不到有效值。
1796		PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
1797
1798		// 备注
1799	// 注意:此字段可能返回 null,表示取不到有效值。
1800		PresetAlias *string `json:"PresetAlias,omitempty" name:"PresetAlias"`
1801
1802		// 是否服务相关策略
1803	// 注意:此字段可能返回 null,表示取不到有效值。
1804		IsServiceLinkedRolePolicy *uint64 `json:"IsServiceLinkedRolePolicy,omitempty" name:"IsServiceLinkedRolePolicy"`
1805
1806		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1807		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1808	} `json:"Response"`
1809}
1810
1811func (r *GetPolicyResponse) ToJsonString() string {
1812    b, _ := json.Marshal(r)
1813    return string(b)
1814}
1815
1816// It is highly **NOT** recommended to use this function
1817// because it has no param check, nor strict type check
1818func (r *GetPolicyResponse) FromJsonString(s string) error {
1819	return json.Unmarshal([]byte(s), &r)
1820}
1821
1822type GetPolicyVersionRequest struct {
1823	*tchttp.BaseRequest
1824
1825	// 策略ID
1826	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
1827
1828	// 策略版本号
1829	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
1830}
1831
1832func (r *GetPolicyVersionRequest) ToJsonString() string {
1833    b, _ := json.Marshal(r)
1834    return string(b)
1835}
1836
1837// It is highly **NOT** recommended to use this function
1838// because it has no param check, nor strict type check
1839func (r *GetPolicyVersionRequest) FromJsonString(s string) error {
1840	f := make(map[string]interface{})
1841	if err := json.Unmarshal([]byte(s), &f); err != nil {
1842		return err
1843	}
1844	delete(f, "PolicyId")
1845	delete(f, "VersionId")
1846	if len(f) > 0 {
1847		return errors.New("GetPolicyVersionRequest has unknown keys!")
1848	}
1849	return json.Unmarshal([]byte(s), &r)
1850}
1851
1852type GetPolicyVersionResponse struct {
1853	*tchttp.BaseResponse
1854	Response *struct {
1855
1856		// 策略版本详情
1857	// 注意:此字段可能返回 null,表示取不到有效值。
1858		PolicyVersion *PolicyVersionDetail `json:"PolicyVersion,omitempty" name:"PolicyVersion"`
1859
1860		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1861		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1862	} `json:"Response"`
1863}
1864
1865func (r *GetPolicyVersionResponse) ToJsonString() string {
1866    b, _ := json.Marshal(r)
1867    return string(b)
1868}
1869
1870// It is highly **NOT** recommended to use this function
1871// because it has no param check, nor strict type check
1872func (r *GetPolicyVersionResponse) FromJsonString(s string) error {
1873	return json.Unmarshal([]byte(s), &r)
1874}
1875
1876type GetRoleRequest struct {
1877	*tchttp.BaseRequest
1878
1879	// 角色 ID,用于指定角色,入参 RoleId 与 RoleName 二选一
1880	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
1881
1882	// 角色名,用于指定角色,入参 RoleId 与 RoleName 二选一
1883	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
1884}
1885
1886func (r *GetRoleRequest) ToJsonString() string {
1887    b, _ := json.Marshal(r)
1888    return string(b)
1889}
1890
1891// It is highly **NOT** recommended to use this function
1892// because it has no param check, nor strict type check
1893func (r *GetRoleRequest) FromJsonString(s string) error {
1894	f := make(map[string]interface{})
1895	if err := json.Unmarshal([]byte(s), &f); err != nil {
1896		return err
1897	}
1898	delete(f, "RoleId")
1899	delete(f, "RoleName")
1900	if len(f) > 0 {
1901		return errors.New("GetRoleRequest has unknown keys!")
1902	}
1903	return json.Unmarshal([]byte(s), &r)
1904}
1905
1906type GetRoleResponse struct {
1907	*tchttp.BaseResponse
1908	Response *struct {
1909
1910		// 角色详情
1911		RoleInfo *RoleInfo `json:"RoleInfo,omitempty" name:"RoleInfo"`
1912
1913		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1914		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1915	} `json:"Response"`
1916}
1917
1918func (r *GetRoleResponse) ToJsonString() string {
1919    b, _ := json.Marshal(r)
1920    return string(b)
1921}
1922
1923// It is highly **NOT** recommended to use this function
1924// because it has no param check, nor strict type check
1925func (r *GetRoleResponse) FromJsonString(s string) error {
1926	return json.Unmarshal([]byte(s), &r)
1927}
1928
1929type GetSAMLProviderRequest struct {
1930	*tchttp.BaseRequest
1931
1932	// SAML身份提供商名称
1933	Name *string `json:"Name,omitempty" name:"Name"`
1934}
1935
1936func (r *GetSAMLProviderRequest) ToJsonString() string {
1937    b, _ := json.Marshal(r)
1938    return string(b)
1939}
1940
1941// It is highly **NOT** recommended to use this function
1942// because it has no param check, nor strict type check
1943func (r *GetSAMLProviderRequest) FromJsonString(s string) error {
1944	f := make(map[string]interface{})
1945	if err := json.Unmarshal([]byte(s), &f); err != nil {
1946		return err
1947	}
1948	delete(f, "Name")
1949	if len(f) > 0 {
1950		return errors.New("GetSAMLProviderRequest has unknown keys!")
1951	}
1952	return json.Unmarshal([]byte(s), &r)
1953}
1954
1955type GetSAMLProviderResponse struct {
1956	*tchttp.BaseResponse
1957	Response *struct {
1958
1959		// SAML身份提供商名称
1960		Name *string `json:"Name,omitempty" name:"Name"`
1961
1962		// SAML身份提供商描述
1963		Description *string `json:"Description,omitempty" name:"Description"`
1964
1965		// SAML身份提供商创建时间
1966		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
1967
1968		// SAML身份提供商上次修改时间
1969		ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
1970
1971		// SAML身份提供商元数据文档
1972		SAMLMetadata *string `json:"SAMLMetadata,omitempty" name:"SAMLMetadata"`
1973
1974		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1975		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1976	} `json:"Response"`
1977}
1978
1979func (r *GetSAMLProviderResponse) ToJsonString() string {
1980    b, _ := json.Marshal(r)
1981    return string(b)
1982}
1983
1984// It is highly **NOT** recommended to use this function
1985// because it has no param check, nor strict type check
1986func (r *GetSAMLProviderResponse) FromJsonString(s string) error {
1987	return json.Unmarshal([]byte(s), &r)
1988}
1989
1990type GetServiceLinkedRoleDeletionStatusRequest struct {
1991	*tchttp.BaseRequest
1992
1993	// 删除任务ID
1994	DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
1995}
1996
1997func (r *GetServiceLinkedRoleDeletionStatusRequest) ToJsonString() string {
1998    b, _ := json.Marshal(r)
1999    return string(b)
2000}
2001
2002// It is highly **NOT** recommended to use this function
2003// because it has no param check, nor strict type check
2004func (r *GetServiceLinkedRoleDeletionStatusRequest) FromJsonString(s string) error {
2005	f := make(map[string]interface{})
2006	if err := json.Unmarshal([]byte(s), &f); err != nil {
2007		return err
2008	}
2009	delete(f, "DeletionTaskId")
2010	if len(f) > 0 {
2011		return errors.New("GetServiceLinkedRoleDeletionStatusRequest has unknown keys!")
2012	}
2013	return json.Unmarshal([]byte(s), &r)
2014}
2015
2016type GetServiceLinkedRoleDeletionStatusResponse struct {
2017	*tchttp.BaseResponse
2018	Response *struct {
2019
2020		// 状态:NOT_STARTED,IN_PROGRESS,SUCCEEDED,FAILED
2021		Status *string `json:"Status,omitempty" name:"Status"`
2022
2023		// 失败原因
2024		Reason *string `json:"Reason,omitempty" name:"Reason"`
2025
2026		// 服务类型
2027	// 注意:此字段可能返回 null,表示取不到有效值。
2028		ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
2029
2030		// 服务名称
2031	// 注意:此字段可能返回 null,表示取不到有效值。
2032		ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"`
2033
2034		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2035		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2036	} `json:"Response"`
2037}
2038
2039func (r *GetServiceLinkedRoleDeletionStatusResponse) ToJsonString() string {
2040    b, _ := json.Marshal(r)
2041    return string(b)
2042}
2043
2044// It is highly **NOT** recommended to use this function
2045// because it has no param check, nor strict type check
2046func (r *GetServiceLinkedRoleDeletionStatusResponse) FromJsonString(s string) error {
2047	return json.Unmarshal([]byte(s), &r)
2048}
2049
2050type GetUserRequest struct {
2051	*tchttp.BaseRequest
2052
2053	// 子用户用户名
2054	Name *string `json:"Name,omitempty" name:"Name"`
2055}
2056
2057func (r *GetUserRequest) ToJsonString() string {
2058    b, _ := json.Marshal(r)
2059    return string(b)
2060}
2061
2062// It is highly **NOT** recommended to use this function
2063// because it has no param check, nor strict type check
2064func (r *GetUserRequest) FromJsonString(s string) error {
2065	f := make(map[string]interface{})
2066	if err := json.Unmarshal([]byte(s), &f); err != nil {
2067		return err
2068	}
2069	delete(f, "Name")
2070	if len(f) > 0 {
2071		return errors.New("GetUserRequest has unknown keys!")
2072	}
2073	return json.Unmarshal([]byte(s), &r)
2074}
2075
2076type GetUserResponse struct {
2077	*tchttp.BaseResponse
2078	Response *struct {
2079
2080		// 子用户用户 UIN
2081		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
2082
2083		// 子用户用户名
2084		Name *string `json:"Name,omitempty" name:"Name"`
2085
2086		// 子用户 UID
2087		Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
2088
2089		// 子用户备注
2090		Remark *string `json:"Remark,omitempty" name:"Remark"`
2091
2092		// 子用户能否登录控制台
2093		ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
2094
2095		// 手机号
2096		PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
2097
2098		// 区号
2099		CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
2100
2101		// 邮箱
2102		Email *string `json:"Email,omitempty" name:"Email"`
2103
2104		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2105		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2106	} `json:"Response"`
2107}
2108
2109func (r *GetUserResponse) ToJsonString() string {
2110    b, _ := json.Marshal(r)
2111    return string(b)
2112}
2113
2114// It is highly **NOT** recommended to use this function
2115// because it has no param check, nor strict type check
2116func (r *GetUserResponse) FromJsonString(s string) error {
2117	return json.Unmarshal([]byte(s), &r)
2118}
2119
2120type GroupIdOfUidInfo struct {
2121
2122	// 子用户 UID
2123	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
2124
2125	// 用户组 ID
2126	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
2127}
2128
2129type GroupInfo struct {
2130
2131	// 用户组 ID。
2132	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
2133
2134	// 用户组名称。
2135	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
2136
2137	// 用户组创建时间。
2138	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
2139
2140	// 用户组描述。
2141	Remark *string `json:"Remark,omitempty" name:"Remark"`
2142}
2143
2144type GroupMemberInfo struct {
2145
2146	// 子用户 Uid。
2147	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
2148
2149	// 子用户 Uin。
2150	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
2151
2152	// 子用户名称。
2153	Name *string `json:"Name,omitempty" name:"Name"`
2154
2155	// 手机号。
2156	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
2157
2158	// 手机区域代码。
2159	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
2160
2161	// 是否已验证手机。
2162	PhoneFlag *uint64 `json:"PhoneFlag,omitempty" name:"PhoneFlag"`
2163
2164	// 邮箱地址。
2165	Email *string `json:"Email,omitempty" name:"Email"`
2166
2167	// 是否已验证邮箱。
2168	EmailFlag *uint64 `json:"EmailFlag,omitempty" name:"EmailFlag"`
2169
2170	// 用户类型。
2171	UserType *uint64 `json:"UserType,omitempty" name:"UserType"`
2172
2173	// 创建时间。
2174	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
2175
2176	// 是否为主消息接收人。
2177	IsReceiverOwner *uint64 `json:"IsReceiverOwner,omitempty" name:"IsReceiverOwner"`
2178}
2179
2180type ListAccessKeysRequest struct {
2181	*tchttp.BaseRequest
2182
2183	// 指定用户Uin,不填默认列出当前用户访问密钥
2184	TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"`
2185}
2186
2187func (r *ListAccessKeysRequest) ToJsonString() string {
2188    b, _ := json.Marshal(r)
2189    return string(b)
2190}
2191
2192// It is highly **NOT** recommended to use this function
2193// because it has no param check, nor strict type check
2194func (r *ListAccessKeysRequest) FromJsonString(s string) error {
2195	f := make(map[string]interface{})
2196	if err := json.Unmarshal([]byte(s), &f); err != nil {
2197		return err
2198	}
2199	delete(f, "TargetUin")
2200	if len(f) > 0 {
2201		return errors.New("ListAccessKeysRequest has unknown keys!")
2202	}
2203	return json.Unmarshal([]byte(s), &r)
2204}
2205
2206type ListAccessKeysResponse struct {
2207	*tchttp.BaseResponse
2208	Response *struct {
2209
2210		// 访问密钥列表
2211	// 注意:此字段可能返回 null,表示取不到有效值。
2212		AccessKeys []*AccessKey `json:"AccessKeys,omitempty" name:"AccessKeys" list`
2213
2214		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2215		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2216	} `json:"Response"`
2217}
2218
2219func (r *ListAccessKeysResponse) ToJsonString() string {
2220    b, _ := json.Marshal(r)
2221    return string(b)
2222}
2223
2224// It is highly **NOT** recommended to use this function
2225// because it has no param check, nor strict type check
2226func (r *ListAccessKeysResponse) FromJsonString(s string) error {
2227	return json.Unmarshal([]byte(s), &r)
2228}
2229
2230type ListAttachedGroupPoliciesRequest struct {
2231	*tchttp.BaseRequest
2232
2233	// 用户组ID
2234	TargetGroupId *uint64 `json:"TargetGroupId,omitempty" name:"TargetGroupId"`
2235
2236	// 页码,默认值是 1,从 1 开始
2237	Page *uint64 `json:"Page,omitempty" name:"Page"`
2238
2239	// 每页大小,默认值是 20
2240	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2241}
2242
2243func (r *ListAttachedGroupPoliciesRequest) ToJsonString() string {
2244    b, _ := json.Marshal(r)
2245    return string(b)
2246}
2247
2248// It is highly **NOT** recommended to use this function
2249// because it has no param check, nor strict type check
2250func (r *ListAttachedGroupPoliciesRequest) FromJsonString(s string) error {
2251	f := make(map[string]interface{})
2252	if err := json.Unmarshal([]byte(s), &f); err != nil {
2253		return err
2254	}
2255	delete(f, "TargetGroupId")
2256	delete(f, "Page")
2257	delete(f, "Rp")
2258	if len(f) > 0 {
2259		return errors.New("ListAttachedGroupPoliciesRequest has unknown keys!")
2260	}
2261	return json.Unmarshal([]byte(s), &r)
2262}
2263
2264type ListAttachedGroupPoliciesResponse struct {
2265	*tchttp.BaseResponse
2266	Response *struct {
2267
2268		// 策略总数
2269		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2270
2271		// 策略列表
2272		List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`
2273
2274		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2275		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2276	} `json:"Response"`
2277}
2278
2279func (r *ListAttachedGroupPoliciesResponse) ToJsonString() string {
2280    b, _ := json.Marshal(r)
2281    return string(b)
2282}
2283
2284// It is highly **NOT** recommended to use this function
2285// because it has no param check, nor strict type check
2286func (r *ListAttachedGroupPoliciesResponse) FromJsonString(s string) error {
2287	return json.Unmarshal([]byte(s), &r)
2288}
2289
2290type ListAttachedRolePoliciesRequest struct {
2291	*tchttp.BaseRequest
2292
2293	// 页码,从 1 开始
2294	Page *uint64 `json:"Page,omitempty" name:"Page"`
2295
2296	// 每页行数,不能大于200
2297	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2298
2299	// 角色 ID。用于指定角色,入参 RoleId 与 RoleName 二选一
2300	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
2301
2302	// 角色名。用于指定角色,入参 RoleId 与 RoleName 二选一
2303	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
2304
2305	// 按策略类型过滤,User表示仅查询自定义策略,QCS表示仅查询预设策略
2306	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
2307}
2308
2309func (r *ListAttachedRolePoliciesRequest) ToJsonString() string {
2310    b, _ := json.Marshal(r)
2311    return string(b)
2312}
2313
2314// It is highly **NOT** recommended to use this function
2315// because it has no param check, nor strict type check
2316func (r *ListAttachedRolePoliciesRequest) FromJsonString(s string) error {
2317	f := make(map[string]interface{})
2318	if err := json.Unmarshal([]byte(s), &f); err != nil {
2319		return err
2320	}
2321	delete(f, "Page")
2322	delete(f, "Rp")
2323	delete(f, "RoleId")
2324	delete(f, "RoleName")
2325	delete(f, "PolicyType")
2326	if len(f) > 0 {
2327		return errors.New("ListAttachedRolePoliciesRequest has unknown keys!")
2328	}
2329	return json.Unmarshal([]byte(s), &r)
2330}
2331
2332type ListAttachedRolePoliciesResponse struct {
2333	*tchttp.BaseResponse
2334	Response *struct {
2335
2336		// 角色关联的策略列表
2337		List []*AttachedPolicyOfRole `json:"List,omitempty" name:"List" list`
2338
2339		// 角色关联的策略总数
2340		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2341
2342		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2343		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2344	} `json:"Response"`
2345}
2346
2347func (r *ListAttachedRolePoliciesResponse) ToJsonString() string {
2348    b, _ := json.Marshal(r)
2349    return string(b)
2350}
2351
2352// It is highly **NOT** recommended to use this function
2353// because it has no param check, nor strict type check
2354func (r *ListAttachedRolePoliciesResponse) FromJsonString(s string) error {
2355	return json.Unmarshal([]byte(s), &r)
2356}
2357
2358type ListAttachedUserPoliciesRequest struct {
2359	*tchttp.BaseRequest
2360
2361	// 子账号 uin
2362	TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"`
2363
2364	// 页码,默认值是 1,从 1 开始
2365	Page *uint64 `json:"Page,omitempty" name:"Page"`
2366
2367	// 每页大小,默认值是 20
2368	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2369}
2370
2371func (r *ListAttachedUserPoliciesRequest) ToJsonString() string {
2372    b, _ := json.Marshal(r)
2373    return string(b)
2374}
2375
2376// It is highly **NOT** recommended to use this function
2377// because it has no param check, nor strict type check
2378func (r *ListAttachedUserPoliciesRequest) FromJsonString(s string) error {
2379	f := make(map[string]interface{})
2380	if err := json.Unmarshal([]byte(s), &f); err != nil {
2381		return err
2382	}
2383	delete(f, "TargetUin")
2384	delete(f, "Page")
2385	delete(f, "Rp")
2386	if len(f) > 0 {
2387		return errors.New("ListAttachedUserPoliciesRequest has unknown keys!")
2388	}
2389	return json.Unmarshal([]byte(s), &r)
2390}
2391
2392type ListAttachedUserPoliciesResponse struct {
2393	*tchttp.BaseResponse
2394	Response *struct {
2395
2396		// 策略总数
2397		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2398
2399		// 策略列表
2400		List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`
2401
2402		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2403		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2404	} `json:"Response"`
2405}
2406
2407func (r *ListAttachedUserPoliciesResponse) ToJsonString() string {
2408    b, _ := json.Marshal(r)
2409    return string(b)
2410}
2411
2412// It is highly **NOT** recommended to use this function
2413// because it has no param check, nor strict type check
2414func (r *ListAttachedUserPoliciesResponse) FromJsonString(s string) error {
2415	return json.Unmarshal([]byte(s), &r)
2416}
2417
2418type ListCollaboratorsRequest struct {
2419	*tchttp.BaseRequest
2420
2421	// 分页条数,缺省为20
2422	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2423
2424	// 分页起始值,缺省为0
2425	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2426}
2427
2428func (r *ListCollaboratorsRequest) ToJsonString() string {
2429    b, _ := json.Marshal(r)
2430    return string(b)
2431}
2432
2433// It is highly **NOT** recommended to use this function
2434// because it has no param check, nor strict type check
2435func (r *ListCollaboratorsRequest) FromJsonString(s string) error {
2436	f := make(map[string]interface{})
2437	if err := json.Unmarshal([]byte(s), &f); err != nil {
2438		return err
2439	}
2440	delete(f, "Limit")
2441	delete(f, "Offset")
2442	if len(f) > 0 {
2443		return errors.New("ListCollaboratorsRequest has unknown keys!")
2444	}
2445	return json.Unmarshal([]byte(s), &r)
2446}
2447
2448type ListCollaboratorsResponse struct {
2449	*tchttp.BaseResponse
2450	Response *struct {
2451
2452		// 总数
2453		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2454
2455		// 协作者信息
2456		Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`
2457
2458		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2459		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2460	} `json:"Response"`
2461}
2462
2463func (r *ListCollaboratorsResponse) ToJsonString() string {
2464    b, _ := json.Marshal(r)
2465    return string(b)
2466}
2467
2468// It is highly **NOT** recommended to use this function
2469// because it has no param check, nor strict type check
2470func (r *ListCollaboratorsResponse) FromJsonString(s string) error {
2471	return json.Unmarshal([]byte(s), &r)
2472}
2473
2474type ListEntitiesForPolicyRequest struct {
2475	*tchttp.BaseRequest
2476
2477	// 策略 id
2478	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
2479
2480	// 页码,默认值是 1,从 1 开始
2481	Page *uint64 `json:"Page,omitempty" name:"Page"`
2482
2483	// 每页大小,默认值是 20
2484	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2485
2486	// 可取值 'All'、'User'、'Group' 和 'Role','All' 表示获取所有实体类型,'User' 表示只获取子账号,'Group' 表示只获取用户组,'Role' 表示只获取角色,默认取 'All'
2487	EntityFilter *string `json:"EntityFilter,omitempty" name:"EntityFilter"`
2488}
2489
2490func (r *ListEntitiesForPolicyRequest) ToJsonString() string {
2491    b, _ := json.Marshal(r)
2492    return string(b)
2493}
2494
2495// It is highly **NOT** recommended to use this function
2496// because it has no param check, nor strict type check
2497func (r *ListEntitiesForPolicyRequest) FromJsonString(s string) error {
2498	f := make(map[string]interface{})
2499	if err := json.Unmarshal([]byte(s), &f); err != nil {
2500		return err
2501	}
2502	delete(f, "PolicyId")
2503	delete(f, "Page")
2504	delete(f, "Rp")
2505	delete(f, "EntityFilter")
2506	if len(f) > 0 {
2507		return errors.New("ListEntitiesForPolicyRequest has unknown keys!")
2508	}
2509	return json.Unmarshal([]byte(s), &r)
2510}
2511
2512type ListEntitiesForPolicyResponse struct {
2513	*tchttp.BaseResponse
2514	Response *struct {
2515
2516		// 实体总数
2517	// 注意:此字段可能返回 null,表示取不到有效值。
2518		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2519
2520		// 实体列表
2521	// 注意:此字段可能返回 null,表示取不到有效值。
2522		List []*AttachEntityOfPolicy `json:"List,omitempty" name:"List" list`
2523
2524		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2525		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2526	} `json:"Response"`
2527}
2528
2529func (r *ListEntitiesForPolicyResponse) ToJsonString() string {
2530    b, _ := json.Marshal(r)
2531    return string(b)
2532}
2533
2534// It is highly **NOT** recommended to use this function
2535// because it has no param check, nor strict type check
2536func (r *ListEntitiesForPolicyResponse) FromJsonString(s string) error {
2537	return json.Unmarshal([]byte(s), &r)
2538}
2539
2540type ListGroupsForUserRequest struct {
2541	*tchttp.BaseRequest
2542
2543	// 子用户 UID
2544	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
2545
2546	// 每页数量。默认为20。
2547	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2548
2549	// 页码。默认为1。
2550	Page *uint64 `json:"Page,omitempty" name:"Page"`
2551
2552	// 子账号UIN
2553	SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"`
2554}
2555
2556func (r *ListGroupsForUserRequest) ToJsonString() string {
2557    b, _ := json.Marshal(r)
2558    return string(b)
2559}
2560
2561// It is highly **NOT** recommended to use this function
2562// because it has no param check, nor strict type check
2563func (r *ListGroupsForUserRequest) FromJsonString(s string) error {
2564	f := make(map[string]interface{})
2565	if err := json.Unmarshal([]byte(s), &f); err != nil {
2566		return err
2567	}
2568	delete(f, "Uid")
2569	delete(f, "Rp")
2570	delete(f, "Page")
2571	delete(f, "SubUin")
2572	if len(f) > 0 {
2573		return errors.New("ListGroupsForUserRequest has unknown keys!")
2574	}
2575	return json.Unmarshal([]byte(s), &r)
2576}
2577
2578type ListGroupsForUserResponse struct {
2579	*tchttp.BaseResponse
2580	Response *struct {
2581
2582		// 子用户加入的用户组总数
2583		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2584
2585		// 用户组信息
2586		GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`
2587
2588		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2589		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2590	} `json:"Response"`
2591}
2592
2593func (r *ListGroupsForUserResponse) ToJsonString() string {
2594    b, _ := json.Marshal(r)
2595    return string(b)
2596}
2597
2598// It is highly **NOT** recommended to use this function
2599// because it has no param check, nor strict type check
2600func (r *ListGroupsForUserResponse) FromJsonString(s string) error {
2601	return json.Unmarshal([]byte(s), &r)
2602}
2603
2604type ListGroupsRequest struct {
2605	*tchttp.BaseRequest
2606
2607	// 页码。默认为1。
2608	Page *uint64 `json:"Page,omitempty" name:"Page"`
2609
2610	// 每页数量。默认为20。
2611	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2612
2613	// 按用户组名称匹配。
2614	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
2615}
2616
2617func (r *ListGroupsRequest) ToJsonString() string {
2618    b, _ := json.Marshal(r)
2619    return string(b)
2620}
2621
2622// It is highly **NOT** recommended to use this function
2623// because it has no param check, nor strict type check
2624func (r *ListGroupsRequest) FromJsonString(s string) error {
2625	f := make(map[string]interface{})
2626	if err := json.Unmarshal([]byte(s), &f); err != nil {
2627		return err
2628	}
2629	delete(f, "Page")
2630	delete(f, "Rp")
2631	delete(f, "Keyword")
2632	if len(f) > 0 {
2633		return errors.New("ListGroupsRequest has unknown keys!")
2634	}
2635	return json.Unmarshal([]byte(s), &r)
2636}
2637
2638type ListGroupsResponse struct {
2639	*tchttp.BaseResponse
2640	Response *struct {
2641
2642		// 用户组总数。
2643		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2644
2645		// 用户组数组信息。
2646		GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`
2647
2648		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2649		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2650	} `json:"Response"`
2651}
2652
2653func (r *ListGroupsResponse) ToJsonString() string {
2654    b, _ := json.Marshal(r)
2655    return string(b)
2656}
2657
2658// It is highly **NOT** recommended to use this function
2659// because it has no param check, nor strict type check
2660func (r *ListGroupsResponse) FromJsonString(s string) error {
2661	return json.Unmarshal([]byte(s), &r)
2662}
2663
2664type ListPoliciesRequest struct {
2665	*tchttp.BaseRequest
2666
2667	// 每页数量,默认值是 20,必须大于 0 且小于或等于 200
2668	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2669
2670	// 页码,默认值是 1,从 1开始,不能大于 200
2671	Page *uint64 `json:"Page,omitempty" name:"Page"`
2672
2673	// 可取值 'All'、'QCS' 和 'Local','All' 获取所有策略,'QCS' 只获取预设策略,'Local' 只获取自定义策略,默认取 'All'
2674	Scope *string `json:"Scope,omitempty" name:"Scope"`
2675
2676	// 按策略名匹配
2677	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
2678}
2679
2680func (r *ListPoliciesRequest) ToJsonString() string {
2681    b, _ := json.Marshal(r)
2682    return string(b)
2683}
2684
2685// It is highly **NOT** recommended to use this function
2686// because it has no param check, nor strict type check
2687func (r *ListPoliciesRequest) FromJsonString(s string) error {
2688	f := make(map[string]interface{})
2689	if err := json.Unmarshal([]byte(s), &f); err != nil {
2690		return err
2691	}
2692	delete(f, "Rp")
2693	delete(f, "Page")
2694	delete(f, "Scope")
2695	delete(f, "Keyword")
2696	if len(f) > 0 {
2697		return errors.New("ListPoliciesRequest has unknown keys!")
2698	}
2699	return json.Unmarshal([]byte(s), &r)
2700}
2701
2702type ListPoliciesResponse struct {
2703	*tchttp.BaseResponse
2704	Response *struct {
2705
2706		// 策略总数
2707		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2708
2709		// 策略数组,数组每个成员包括 policyId、policyName、addTime、type、description、 createMode 字段。其中:
2710	// policyId:策略 id
2711	// policyName:策略名
2712	// addTime:策略创建时间
2713	// type:1 表示自定义策略,2 表示预设策略
2714	// description:策略描述
2715	// createMode:1 表示按业务权限创建的策略,其他值表示可以查看策略语法和通过策略语法更新策略
2716	// Attachments: 关联的用户数
2717	// ServiceType: 策略关联的产品
2718	// IsAttached: 当需要查询标记实体是否已经关联策略时不为null。0表示未关联策略,1表示已关联策略
2719		List []*StrategyInfo `json:"List,omitempty" name:"List" list`
2720
2721		// 保留字段
2722	// 注意:此字段可能返回 null,表示取不到有效值。
2723		ServiceTypeList []*string `json:"ServiceTypeList,omitempty" name:"ServiceTypeList" list`
2724
2725		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2726		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2727	} `json:"Response"`
2728}
2729
2730func (r *ListPoliciesResponse) ToJsonString() string {
2731    b, _ := json.Marshal(r)
2732    return string(b)
2733}
2734
2735// It is highly **NOT** recommended to use this function
2736// because it has no param check, nor strict type check
2737func (r *ListPoliciesResponse) FromJsonString(s string) error {
2738	return json.Unmarshal([]byte(s), &r)
2739}
2740
2741type ListPolicyVersionsRequest struct {
2742	*tchttp.BaseRequest
2743
2744	// 策略ID
2745	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
2746}
2747
2748func (r *ListPolicyVersionsRequest) ToJsonString() string {
2749    b, _ := json.Marshal(r)
2750    return string(b)
2751}
2752
2753// It is highly **NOT** recommended to use this function
2754// because it has no param check, nor strict type check
2755func (r *ListPolicyVersionsRequest) FromJsonString(s string) error {
2756	f := make(map[string]interface{})
2757	if err := json.Unmarshal([]byte(s), &f); err != nil {
2758		return err
2759	}
2760	delete(f, "PolicyId")
2761	if len(f) > 0 {
2762		return errors.New("ListPolicyVersionsRequest has unknown keys!")
2763	}
2764	return json.Unmarshal([]byte(s), &r)
2765}
2766
2767type ListPolicyVersionsResponse struct {
2768	*tchttp.BaseResponse
2769	Response *struct {
2770
2771		// 策略版本列表
2772	// 注意:此字段可能返回 null,表示取不到有效值。
2773		Versions []*PolicyVersionItem `json:"Versions,omitempty" name:"Versions" list`
2774
2775		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2776		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2777	} `json:"Response"`
2778}
2779
2780func (r *ListPolicyVersionsResponse) ToJsonString() string {
2781    b, _ := json.Marshal(r)
2782    return string(b)
2783}
2784
2785// It is highly **NOT** recommended to use this function
2786// because it has no param check, nor strict type check
2787func (r *ListPolicyVersionsResponse) FromJsonString(s string) error {
2788	return json.Unmarshal([]byte(s), &r)
2789}
2790
2791type ListSAMLProvidersRequest struct {
2792	*tchttp.BaseRequest
2793}
2794
2795func (r *ListSAMLProvidersRequest) ToJsonString() string {
2796    b, _ := json.Marshal(r)
2797    return string(b)
2798}
2799
2800// It is highly **NOT** recommended to use this function
2801// because it has no param check, nor strict type check
2802func (r *ListSAMLProvidersRequest) FromJsonString(s string) error {
2803	f := make(map[string]interface{})
2804	if err := json.Unmarshal([]byte(s), &f); err != nil {
2805		return err
2806	}
2807	if len(f) > 0 {
2808		return errors.New("ListSAMLProvidersRequest has unknown keys!")
2809	}
2810	return json.Unmarshal([]byte(s), &r)
2811}
2812
2813type ListSAMLProvidersResponse struct {
2814	*tchttp.BaseResponse
2815	Response *struct {
2816
2817		// SAML身份提供商总数
2818		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
2819
2820		// SAML身份提供商列表
2821		SAMLProviderSet []*SAMLProviderInfo `json:"SAMLProviderSet,omitempty" name:"SAMLProviderSet" list`
2822
2823		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2824		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2825	} `json:"Response"`
2826}
2827
2828func (r *ListSAMLProvidersResponse) ToJsonString() string {
2829    b, _ := json.Marshal(r)
2830    return string(b)
2831}
2832
2833// It is highly **NOT** recommended to use this function
2834// because it has no param check, nor strict type check
2835func (r *ListSAMLProvidersResponse) FromJsonString(s string) error {
2836	return json.Unmarshal([]byte(s), &r)
2837}
2838
2839type ListUsersForGroupRequest struct {
2840	*tchttp.BaseRequest
2841
2842	// 用户组 ID。
2843	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
2844
2845	// 页码。默认为1。
2846	Page *uint64 `json:"Page,omitempty" name:"Page"`
2847
2848	// 每页数量。默认为20。
2849	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
2850}
2851
2852func (r *ListUsersForGroupRequest) ToJsonString() string {
2853    b, _ := json.Marshal(r)
2854    return string(b)
2855}
2856
2857// It is highly **NOT** recommended to use this function
2858// because it has no param check, nor strict type check
2859func (r *ListUsersForGroupRequest) FromJsonString(s string) error {
2860	f := make(map[string]interface{})
2861	if err := json.Unmarshal([]byte(s), &f); err != nil {
2862		return err
2863	}
2864	delete(f, "GroupId")
2865	delete(f, "Page")
2866	delete(f, "Rp")
2867	if len(f) > 0 {
2868		return errors.New("ListUsersForGroupRequest has unknown keys!")
2869	}
2870	return json.Unmarshal([]byte(s), &r)
2871}
2872
2873type ListUsersForGroupResponse struct {
2874	*tchttp.BaseResponse
2875	Response *struct {
2876
2877		// 用户组关联的用户总数。
2878		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
2879
2880		// 子用户信息。
2881		UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`
2882
2883		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2884		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2885	} `json:"Response"`
2886}
2887
2888func (r *ListUsersForGroupResponse) ToJsonString() string {
2889    b, _ := json.Marshal(r)
2890    return string(b)
2891}
2892
2893// It is highly **NOT** recommended to use this function
2894// because it has no param check, nor strict type check
2895func (r *ListUsersForGroupResponse) FromJsonString(s string) error {
2896	return json.Unmarshal([]byte(s), &r)
2897}
2898
2899type ListUsersRequest struct {
2900	*tchttp.BaseRequest
2901}
2902
2903func (r *ListUsersRequest) ToJsonString() string {
2904    b, _ := json.Marshal(r)
2905    return string(b)
2906}
2907
2908// It is highly **NOT** recommended to use this function
2909// because it has no param check, nor strict type check
2910func (r *ListUsersRequest) FromJsonString(s string) error {
2911	f := make(map[string]interface{})
2912	if err := json.Unmarshal([]byte(s), &f); err != nil {
2913		return err
2914	}
2915	if len(f) > 0 {
2916		return errors.New("ListUsersRequest has unknown keys!")
2917	}
2918	return json.Unmarshal([]byte(s), &r)
2919}
2920
2921type ListUsersResponse struct {
2922	*tchttp.BaseResponse
2923	Response *struct {
2924
2925		// 子用户信息
2926		Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`
2927
2928		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2929		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2930	} `json:"Response"`
2931}
2932
2933func (r *ListUsersResponse) ToJsonString() string {
2934    b, _ := json.Marshal(r)
2935    return string(b)
2936}
2937
2938// It is highly **NOT** recommended to use this function
2939// because it has no param check, nor strict type check
2940func (r *ListUsersResponse) FromJsonString(s string) error {
2941	return json.Unmarshal([]byte(s), &r)
2942}
2943
2944type ListWeChatWorkSubAccountsRequest struct {
2945	*tchttp.BaseRequest
2946
2947	// 偏移量
2948	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2949
2950	// 限制数目
2951	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2952}
2953
2954func (r *ListWeChatWorkSubAccountsRequest) ToJsonString() string {
2955    b, _ := json.Marshal(r)
2956    return string(b)
2957}
2958
2959// It is highly **NOT** recommended to use this function
2960// because it has no param check, nor strict type check
2961func (r *ListWeChatWorkSubAccountsRequest) FromJsonString(s string) error {
2962	f := make(map[string]interface{})
2963	if err := json.Unmarshal([]byte(s), &f); err != nil {
2964		return err
2965	}
2966	delete(f, "Offset")
2967	delete(f, "Limit")
2968	if len(f) > 0 {
2969		return errors.New("ListWeChatWorkSubAccountsRequest has unknown keys!")
2970	}
2971	return json.Unmarshal([]byte(s), &r)
2972}
2973
2974type ListWeChatWorkSubAccountsResponse struct {
2975	*tchttp.BaseResponse
2976	Response *struct {
2977
2978		// 企业微信子用户列表。
2979		Data []*WeChatWorkSubAccount `json:"Data,omitempty" name:"Data" list`
2980
2981		// 总数目。
2982		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
2983
2984		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2985		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2986	} `json:"Response"`
2987}
2988
2989func (r *ListWeChatWorkSubAccountsResponse) ToJsonString() string {
2990    b, _ := json.Marshal(r)
2991    return string(b)
2992}
2993
2994// It is highly **NOT** recommended to use this function
2995// because it has no param check, nor strict type check
2996func (r *ListWeChatWorkSubAccountsResponse) FromJsonString(s string) error {
2997	return json.Unmarshal([]byte(s), &r)
2998}
2999
3000type LoginActionFlag struct {
3001
3002	// 手机
3003	Phone *uint64 `json:"Phone,omitempty" name:"Phone"`
3004
3005	// 硬token
3006	Token *uint64 `json:"Token,omitempty" name:"Token"`
3007
3008	// 软token
3009	Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"`
3010
3011	// 微信
3012	Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"`
3013
3014	// 自定义
3015	Custom *uint64 `json:"Custom,omitempty" name:"Custom"`
3016}
3017
3018type LoginActionMfaFlag struct {
3019
3020	// 手机
3021	Phone *uint64 `json:"Phone,omitempty" name:"Phone"`
3022
3023	// 软token
3024	Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"`
3025
3026	// 微信
3027	Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"`
3028}
3029
3030type OffsiteFlag struct {
3031
3032	// 验证标识
3033	VerifyFlag *uint64 `json:"VerifyFlag,omitempty" name:"VerifyFlag"`
3034
3035	// 手机通知
3036	NotifyPhone *uint64 `json:"NotifyPhone,omitempty" name:"NotifyPhone"`
3037
3038	// 邮箱通知
3039	NotifyEmail *int64 `json:"NotifyEmail,omitempty" name:"NotifyEmail"`
3040
3041	// 微信通知
3042	NotifyWechat *uint64 `json:"NotifyWechat,omitempty" name:"NotifyWechat"`
3043
3044	// 提示
3045	Tips *uint64 `json:"Tips,omitempty" name:"Tips"`
3046}
3047
3048type PolicyVersionDetail struct {
3049
3050	// 策略版本号
3051	// 注意:此字段可能返回 null,表示取不到有效值。
3052	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
3053
3054	// 策略版本创建时间
3055	// 注意:此字段可能返回 null,表示取不到有效值。
3056	CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`
3057
3058	// 是否是正在生效的版本。0表示不是,1表示是
3059	// 注意:此字段可能返回 null,表示取不到有效值。
3060	IsDefaultVersion *uint64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`
3061
3062	// 策略语法文本
3063	// 注意:此字段可能返回 null,表示取不到有效值。
3064	Document *string `json:"Document,omitempty" name:"Document"`
3065}
3066
3067type PolicyVersionItem struct {
3068
3069	// 策略版本号
3070	// 注意:此字段可能返回 null,表示取不到有效值。
3071	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
3072
3073	// 策略版本创建时间
3074	// 注意:此字段可能返回 null,表示取不到有效值。
3075	CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`
3076
3077	// 是否是正在生效的版本。0表示不是,1表示是
3078	// 注意:此字段可能返回 null,表示取不到有效值。
3079	IsDefaultVersion *int64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`
3080}
3081
3082type PutRolePermissionsBoundaryRequest struct {
3083	*tchttp.BaseRequest
3084
3085	// 策略ID
3086	PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"`
3087
3088	// 角色ID(与角色名至少填一个)
3089	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
3090
3091	// 角色名(与角色ID至少填一个)
3092	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3093}
3094
3095func (r *PutRolePermissionsBoundaryRequest) ToJsonString() string {
3096    b, _ := json.Marshal(r)
3097    return string(b)
3098}
3099
3100// It is highly **NOT** recommended to use this function
3101// because it has no param check, nor strict type check
3102func (r *PutRolePermissionsBoundaryRequest) FromJsonString(s string) error {
3103	f := make(map[string]interface{})
3104	if err := json.Unmarshal([]byte(s), &f); err != nil {
3105		return err
3106	}
3107	delete(f, "PolicyId")
3108	delete(f, "RoleId")
3109	delete(f, "RoleName")
3110	if len(f) > 0 {
3111		return errors.New("PutRolePermissionsBoundaryRequest has unknown keys!")
3112	}
3113	return json.Unmarshal([]byte(s), &r)
3114}
3115
3116type PutRolePermissionsBoundaryResponse struct {
3117	*tchttp.BaseResponse
3118	Response *struct {
3119
3120		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3121		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3122	} `json:"Response"`
3123}
3124
3125func (r *PutRolePermissionsBoundaryResponse) ToJsonString() string {
3126    b, _ := json.Marshal(r)
3127    return string(b)
3128}
3129
3130// It is highly **NOT** recommended to use this function
3131// because it has no param check, nor strict type check
3132func (r *PutRolePermissionsBoundaryResponse) FromJsonString(s string) error {
3133	return json.Unmarshal([]byte(s), &r)
3134}
3135
3136type PutUserPermissionsBoundaryRequest struct {
3137	*tchttp.BaseRequest
3138
3139	// 子账号Uin
3140	TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"`
3141
3142	// 策略ID
3143	PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"`
3144}
3145
3146func (r *PutUserPermissionsBoundaryRequest) ToJsonString() string {
3147    b, _ := json.Marshal(r)
3148    return string(b)
3149}
3150
3151// It is highly **NOT** recommended to use this function
3152// because it has no param check, nor strict type check
3153func (r *PutUserPermissionsBoundaryRequest) FromJsonString(s string) error {
3154	f := make(map[string]interface{})
3155	if err := json.Unmarshal([]byte(s), &f); err != nil {
3156		return err
3157	}
3158	delete(f, "TargetUin")
3159	delete(f, "PolicyId")
3160	if len(f) > 0 {
3161		return errors.New("PutUserPermissionsBoundaryRequest has unknown keys!")
3162	}
3163	return json.Unmarshal([]byte(s), &r)
3164}
3165
3166type PutUserPermissionsBoundaryResponse struct {
3167	*tchttp.BaseResponse
3168	Response *struct {
3169
3170		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3171		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3172	} `json:"Response"`
3173}
3174
3175func (r *PutUserPermissionsBoundaryResponse) ToJsonString() string {
3176    b, _ := json.Marshal(r)
3177    return string(b)
3178}
3179
3180// It is highly **NOT** recommended to use this function
3181// because it has no param check, nor strict type check
3182func (r *PutUserPermissionsBoundaryResponse) FromJsonString(s string) error {
3183	return json.Unmarshal([]byte(s), &r)
3184}
3185
3186type RemoveUserFromGroupRequest struct {
3187	*tchttp.BaseRequest
3188
3189	// 要删除的用户 UID和用户组 ID对应数组
3190	Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info" list`
3191}
3192
3193func (r *RemoveUserFromGroupRequest) ToJsonString() string {
3194    b, _ := json.Marshal(r)
3195    return string(b)
3196}
3197
3198// It is highly **NOT** recommended to use this function
3199// because it has no param check, nor strict type check
3200func (r *RemoveUserFromGroupRequest) FromJsonString(s string) error {
3201	f := make(map[string]interface{})
3202	if err := json.Unmarshal([]byte(s), &f); err != nil {
3203		return err
3204	}
3205	delete(f, "Info")
3206	if len(f) > 0 {
3207		return errors.New("RemoveUserFromGroupRequest has unknown keys!")
3208	}
3209	return json.Unmarshal([]byte(s), &r)
3210}
3211
3212type RemoveUserFromGroupResponse struct {
3213	*tchttp.BaseResponse
3214	Response *struct {
3215
3216		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3217		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3218	} `json:"Response"`
3219}
3220
3221func (r *RemoveUserFromGroupResponse) ToJsonString() string {
3222    b, _ := json.Marshal(r)
3223    return string(b)
3224}
3225
3226// It is highly **NOT** recommended to use this function
3227// because it has no param check, nor strict type check
3228func (r *RemoveUserFromGroupResponse) FromJsonString(s string) error {
3229	return json.Unmarshal([]byte(s), &r)
3230}
3231
3232type RoleInfo struct {
3233
3234	// 角色ID
3235	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
3236
3237	// 角色名称
3238	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3239
3240	// 角色的策略文档
3241	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
3242
3243	// 角色描述
3244	Description *string `json:"Description,omitempty" name:"Description"`
3245
3246	// 角色的创建时间
3247	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
3248
3249	// 角色的最近一次时间
3250	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
3251
3252	// 角色是否允许登录
3253	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
3254
3255	// 角色类型,取user、system或service_linked
3256	// 注意:此字段可能返回 null,表示取不到有效值。
3257	RoleType *string `json:"RoleType,omitempty" name:"RoleType"`
3258
3259	// 有效时间
3260	// 注意:此字段可能返回 null,表示取不到有效值。
3261	SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"`
3262
3263	// 服务相关角色删除TaskId
3264	// 注意:此字段可能返回 null,表示取不到有效值。
3265	DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
3266}
3267
3268type SAMLProviderInfo struct {
3269
3270	// SAML身份提供商名称
3271	Name *string `json:"Name,omitempty" name:"Name"`
3272
3273	// SAML身份提供商描述
3274	Description *string `json:"Description,omitempty" name:"Description"`
3275
3276	// SAML身份提供商创建时间
3277	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3278
3279	// SAML身份提供商上次修改时间
3280	ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
3281}
3282
3283type SetDefaultPolicyVersionRequest struct {
3284	*tchttp.BaseRequest
3285
3286	// 策略ID
3287	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
3288
3289	// 策略版本号
3290	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
3291}
3292
3293func (r *SetDefaultPolicyVersionRequest) ToJsonString() string {
3294    b, _ := json.Marshal(r)
3295    return string(b)
3296}
3297
3298// It is highly **NOT** recommended to use this function
3299// because it has no param check, nor strict type check
3300func (r *SetDefaultPolicyVersionRequest) FromJsonString(s string) error {
3301	f := make(map[string]interface{})
3302	if err := json.Unmarshal([]byte(s), &f); err != nil {
3303		return err
3304	}
3305	delete(f, "PolicyId")
3306	delete(f, "VersionId")
3307	if len(f) > 0 {
3308		return errors.New("SetDefaultPolicyVersionRequest has unknown keys!")
3309	}
3310	return json.Unmarshal([]byte(s), &r)
3311}
3312
3313type SetDefaultPolicyVersionResponse struct {
3314	*tchttp.BaseResponse
3315	Response *struct {
3316
3317		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3318		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3319	} `json:"Response"`
3320}
3321
3322func (r *SetDefaultPolicyVersionResponse) ToJsonString() string {
3323    b, _ := json.Marshal(r)
3324    return string(b)
3325}
3326
3327// It is highly **NOT** recommended to use this function
3328// because it has no param check, nor strict type check
3329func (r *SetDefaultPolicyVersionResponse) FromJsonString(s string) error {
3330	return json.Unmarshal([]byte(s), &r)
3331}
3332
3333type SetMfaFlagRequest struct {
3334	*tchttp.BaseRequest
3335
3336	// 设置用户的uin
3337	OpUin *uint64 `json:"OpUin,omitempty" name:"OpUin"`
3338
3339	// 登录保护设置
3340	LoginFlag *LoginActionMfaFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
3341
3342	// 操作保护设置
3343	ActionFlag *LoginActionMfaFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
3344}
3345
3346func (r *SetMfaFlagRequest) ToJsonString() string {
3347    b, _ := json.Marshal(r)
3348    return string(b)
3349}
3350
3351// It is highly **NOT** recommended to use this function
3352// because it has no param check, nor strict type check
3353func (r *SetMfaFlagRequest) FromJsonString(s string) error {
3354	f := make(map[string]interface{})
3355	if err := json.Unmarshal([]byte(s), &f); err != nil {
3356		return err
3357	}
3358	delete(f, "OpUin")
3359	delete(f, "LoginFlag")
3360	delete(f, "ActionFlag")
3361	if len(f) > 0 {
3362		return errors.New("SetMfaFlagRequest has unknown keys!")
3363	}
3364	return json.Unmarshal([]byte(s), &r)
3365}
3366
3367type SetMfaFlagResponse struct {
3368	*tchttp.BaseResponse
3369	Response *struct {
3370
3371		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3372		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3373	} `json:"Response"`
3374}
3375
3376func (r *SetMfaFlagResponse) ToJsonString() string {
3377    b, _ := json.Marshal(r)
3378    return string(b)
3379}
3380
3381// It is highly **NOT** recommended to use this function
3382// because it has no param check, nor strict type check
3383func (r *SetMfaFlagResponse) FromJsonString(s string) error {
3384	return json.Unmarshal([]byte(s), &r)
3385}
3386
3387type StrategyInfo struct {
3388
3389	// 策略ID。
3390	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
3391
3392	// 策略名称。
3393	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
3394
3395	// 策略创建时间。
3396	// 注意:此字段可能返回 null,表示取不到有效值。
3397	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
3398
3399	// 策略类型。1 表示自定义策略,2 表示预设策略。
3400	Type *uint64 `json:"Type,omitempty" name:"Type"`
3401
3402	// 策略描述。
3403	// 注意:此字段可能返回 null,表示取不到有效值。
3404	Description *string `json:"Description,omitempty" name:"Description"`
3405
3406	// 创建来源,1 通过控制台创建, 2 通过策略语法创建。
3407	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
3408
3409	// 关联的用户数
3410	Attachments *uint64 `json:"Attachments,omitempty" name:"Attachments"`
3411
3412	// 策略关联的产品
3413	// 注意:此字段可能返回 null,表示取不到有效值。
3414	ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
3415
3416	// 当需要查询标记实体是否已经关联策略时不为null。0表示未关联策略,1表示已关联策略
3417	// 注意:此字段可能返回 null,表示取不到有效值。
3418	IsAttached *uint64 `json:"IsAttached,omitempty" name:"IsAttached"`
3419
3420	// 是否已下线
3421	// 注意:此字段可能返回 null,表示取不到有效值。
3422	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
3423
3424	// 已下线产品列表
3425	// 注意:此字段可能返回 null,表示取不到有效值。
3426	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
3427
3428	// 是否是服务相关角色策略
3429	// 注意:此字段可能返回 null,表示取不到有效值。
3430	IsServiceLinkedPolicy *uint64 `json:"IsServiceLinkedPolicy,omitempty" name:"IsServiceLinkedPolicy"`
3431}
3432
3433type SubAccountInfo struct {
3434
3435	// 子用户用户 ID
3436	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
3437
3438	// 子用户用户名
3439	Name *string `json:"Name,omitempty" name:"Name"`
3440
3441	// 子用户 UID
3442	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
3443
3444	// 子用户备注
3445	Remark *string `json:"Remark,omitempty" name:"Remark"`
3446
3447	// 子用户能否登录控制台
3448	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
3449
3450	// 手机号
3451	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
3452
3453	// 区号
3454	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
3455
3456	// 邮箱
3457	Email *string `json:"Email,omitempty" name:"Email"`
3458
3459	// 创建时间
3460	// 注意:此字段可能返回 null,表示取不到有效值。
3461	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3462}
3463
3464type SubAccountUser struct {
3465
3466	// 子用户用户 ID
3467	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
3468
3469	// 子用户用户名
3470	Name *string `json:"Name,omitempty" name:"Name"`
3471
3472	// 子用户 UID
3473	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
3474
3475	// 子用户备注
3476	Remark *string `json:"Remark,omitempty" name:"Remark"`
3477
3478	// 创建时间
3479	// 注意:此字段可能返回 null,表示取不到有效值。
3480	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3481
3482	// 用户类型(1:主账号;2:子用户;3:企业微信子用户;4:协作者;5:消息接收人)
3483	UserType *uint64 `json:"UserType,omitempty" name:"UserType"`
3484
3485	// 最近登录IP
3486	LastLoginIp *string `json:"LastLoginIp,omitempty" name:"LastLoginIp"`
3487
3488	// 最近登录时间
3489	// 注意:此字段可能返回 null,表示取不到有效值。
3490	LastLoginTime *string `json:"LastLoginTime,omitempty" name:"LastLoginTime"`
3491}
3492
3493type UpdateAssumeRolePolicyRequest struct {
3494	*tchttp.BaseRequest
3495
3496	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
3497	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
3498
3499	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
3500	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
3501
3502	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
3503	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3504}
3505
3506func (r *UpdateAssumeRolePolicyRequest) ToJsonString() string {
3507    b, _ := json.Marshal(r)
3508    return string(b)
3509}
3510
3511// It is highly **NOT** recommended to use this function
3512// because it has no param check, nor strict type check
3513func (r *UpdateAssumeRolePolicyRequest) FromJsonString(s string) error {
3514	f := make(map[string]interface{})
3515	if err := json.Unmarshal([]byte(s), &f); err != nil {
3516		return err
3517	}
3518	delete(f, "PolicyDocument")
3519	delete(f, "RoleId")
3520	delete(f, "RoleName")
3521	if len(f) > 0 {
3522		return errors.New("UpdateAssumeRolePolicyRequest has unknown keys!")
3523	}
3524	return json.Unmarshal([]byte(s), &r)
3525}
3526
3527type UpdateAssumeRolePolicyResponse struct {
3528	*tchttp.BaseResponse
3529	Response *struct {
3530
3531		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3532		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3533	} `json:"Response"`
3534}
3535
3536func (r *UpdateAssumeRolePolicyResponse) ToJsonString() string {
3537    b, _ := json.Marshal(r)
3538    return string(b)
3539}
3540
3541// It is highly **NOT** recommended to use this function
3542// because it has no param check, nor strict type check
3543func (r *UpdateAssumeRolePolicyResponse) FromJsonString(s string) error {
3544	return json.Unmarshal([]byte(s), &r)
3545}
3546
3547type UpdateGroupRequest struct {
3548	*tchttp.BaseRequest
3549
3550	// 用户组 ID
3551	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
3552
3553	// 用户组名
3554	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
3555
3556	// 用户组描述
3557	Remark *string `json:"Remark,omitempty" name:"Remark"`
3558}
3559
3560func (r *UpdateGroupRequest) ToJsonString() string {
3561    b, _ := json.Marshal(r)
3562    return string(b)
3563}
3564
3565// It is highly **NOT** recommended to use this function
3566// because it has no param check, nor strict type check
3567func (r *UpdateGroupRequest) FromJsonString(s string) error {
3568	f := make(map[string]interface{})
3569	if err := json.Unmarshal([]byte(s), &f); err != nil {
3570		return err
3571	}
3572	delete(f, "GroupId")
3573	delete(f, "GroupName")
3574	delete(f, "Remark")
3575	if len(f) > 0 {
3576		return errors.New("UpdateGroupRequest has unknown keys!")
3577	}
3578	return json.Unmarshal([]byte(s), &r)
3579}
3580
3581type UpdateGroupResponse struct {
3582	*tchttp.BaseResponse
3583	Response *struct {
3584
3585		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3586		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3587	} `json:"Response"`
3588}
3589
3590func (r *UpdateGroupResponse) ToJsonString() string {
3591    b, _ := json.Marshal(r)
3592    return string(b)
3593}
3594
3595// It is highly **NOT** recommended to use this function
3596// because it has no param check, nor strict type check
3597func (r *UpdateGroupResponse) FromJsonString(s string) error {
3598	return json.Unmarshal([]byte(s), &r)
3599}
3600
3601type UpdatePolicyRequest struct {
3602	*tchttp.BaseRequest
3603
3604	// 策略ID,与PolicyName二选一必填
3605	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
3606
3607	// 策略名,与PolicyId二选一必填
3608	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
3609
3610	// 策略描述
3611	Description *string `json:"Description,omitempty" name:"Description"`
3612
3613	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
3614	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
3615
3616	// 预设策略备注
3617	Alias *string `json:"Alias,omitempty" name:"Alias"`
3618}
3619
3620func (r *UpdatePolicyRequest) ToJsonString() string {
3621    b, _ := json.Marshal(r)
3622    return string(b)
3623}
3624
3625// It is highly **NOT** recommended to use this function
3626// because it has no param check, nor strict type check
3627func (r *UpdatePolicyRequest) FromJsonString(s string) error {
3628	f := make(map[string]interface{})
3629	if err := json.Unmarshal([]byte(s), &f); err != nil {
3630		return err
3631	}
3632	delete(f, "PolicyId")
3633	delete(f, "PolicyName")
3634	delete(f, "Description")
3635	delete(f, "PolicyDocument")
3636	delete(f, "Alias")
3637	if len(f) > 0 {
3638		return errors.New("UpdatePolicyRequest has unknown keys!")
3639	}
3640	return json.Unmarshal([]byte(s), &r)
3641}
3642
3643type UpdatePolicyResponse struct {
3644	*tchttp.BaseResponse
3645	Response *struct {
3646
3647		// 策略id,入参是PolicyName时,才会返回
3648	// 注意:此字段可能返回 null,表示取不到有效值。
3649		PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
3650
3651		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3652		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3653	} `json:"Response"`
3654}
3655
3656func (r *UpdatePolicyResponse) ToJsonString() string {
3657    b, _ := json.Marshal(r)
3658    return string(b)
3659}
3660
3661// It is highly **NOT** recommended to use this function
3662// because it has no param check, nor strict type check
3663func (r *UpdatePolicyResponse) FromJsonString(s string) error {
3664	return json.Unmarshal([]byte(s), &r)
3665}
3666
3667type UpdateRoleConsoleLoginRequest struct {
3668	*tchttp.BaseRequest
3669
3670	// 是否可登录,可登录:1,不可登录:0
3671	ConsoleLogin *int64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
3672
3673	// 角色ID
3674	RoleId *int64 `json:"RoleId,omitempty" name:"RoleId"`
3675
3676	// 角色名
3677	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3678}
3679
3680func (r *UpdateRoleConsoleLoginRequest) ToJsonString() string {
3681    b, _ := json.Marshal(r)
3682    return string(b)
3683}
3684
3685// It is highly **NOT** recommended to use this function
3686// because it has no param check, nor strict type check
3687func (r *UpdateRoleConsoleLoginRequest) FromJsonString(s string) error {
3688	f := make(map[string]interface{})
3689	if err := json.Unmarshal([]byte(s), &f); err != nil {
3690		return err
3691	}
3692	delete(f, "ConsoleLogin")
3693	delete(f, "RoleId")
3694	delete(f, "RoleName")
3695	if len(f) > 0 {
3696		return errors.New("UpdateRoleConsoleLoginRequest has unknown keys!")
3697	}
3698	return json.Unmarshal([]byte(s), &r)
3699}
3700
3701type UpdateRoleConsoleLoginResponse struct {
3702	*tchttp.BaseResponse
3703	Response *struct {
3704
3705		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3706		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3707	} `json:"Response"`
3708}
3709
3710func (r *UpdateRoleConsoleLoginResponse) ToJsonString() string {
3711    b, _ := json.Marshal(r)
3712    return string(b)
3713}
3714
3715// It is highly **NOT** recommended to use this function
3716// because it has no param check, nor strict type check
3717func (r *UpdateRoleConsoleLoginResponse) FromJsonString(s string) error {
3718	return json.Unmarshal([]byte(s), &r)
3719}
3720
3721type UpdateRoleDescriptionRequest struct {
3722	*tchttp.BaseRequest
3723
3724	// 角色描述
3725	Description *string `json:"Description,omitempty" name:"Description"`
3726
3727	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
3728	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
3729
3730	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
3731	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3732}
3733
3734func (r *UpdateRoleDescriptionRequest) ToJsonString() string {
3735    b, _ := json.Marshal(r)
3736    return string(b)
3737}
3738
3739// It is highly **NOT** recommended to use this function
3740// because it has no param check, nor strict type check
3741func (r *UpdateRoleDescriptionRequest) FromJsonString(s string) error {
3742	f := make(map[string]interface{})
3743	if err := json.Unmarshal([]byte(s), &f); err != nil {
3744		return err
3745	}
3746	delete(f, "Description")
3747	delete(f, "RoleId")
3748	delete(f, "RoleName")
3749	if len(f) > 0 {
3750		return errors.New("UpdateRoleDescriptionRequest has unknown keys!")
3751	}
3752	return json.Unmarshal([]byte(s), &r)
3753}
3754
3755type UpdateRoleDescriptionResponse struct {
3756	*tchttp.BaseResponse
3757	Response *struct {
3758
3759		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3760		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3761	} `json:"Response"`
3762}
3763
3764func (r *UpdateRoleDescriptionResponse) ToJsonString() string {
3765    b, _ := json.Marshal(r)
3766    return string(b)
3767}
3768
3769// It is highly **NOT** recommended to use this function
3770// because it has no param check, nor strict type check
3771func (r *UpdateRoleDescriptionResponse) FromJsonString(s string) error {
3772	return json.Unmarshal([]byte(s), &r)
3773}
3774
3775type UpdateSAMLProviderRequest struct {
3776	*tchttp.BaseRequest
3777
3778	// SAML身份提供商名称
3779	Name *string `json:"Name,omitempty" name:"Name"`
3780
3781	// SAML身份提供商描述
3782	Description *string `json:"Description,omitempty" name:"Description"`
3783
3784	// SAML身份提供商Base64编码的元数据文档
3785	SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"`
3786}
3787
3788func (r *UpdateSAMLProviderRequest) ToJsonString() string {
3789    b, _ := json.Marshal(r)
3790    return string(b)
3791}
3792
3793// It is highly **NOT** recommended to use this function
3794// because it has no param check, nor strict type check
3795func (r *UpdateSAMLProviderRequest) FromJsonString(s string) error {
3796	f := make(map[string]interface{})
3797	if err := json.Unmarshal([]byte(s), &f); err != nil {
3798		return err
3799	}
3800	delete(f, "Name")
3801	delete(f, "Description")
3802	delete(f, "SAMLMetadataDocument")
3803	if len(f) > 0 {
3804		return errors.New("UpdateSAMLProviderRequest has unknown keys!")
3805	}
3806	return json.Unmarshal([]byte(s), &r)
3807}
3808
3809type UpdateSAMLProviderResponse struct {
3810	*tchttp.BaseResponse
3811	Response *struct {
3812
3813		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3814		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3815	} `json:"Response"`
3816}
3817
3818func (r *UpdateSAMLProviderResponse) ToJsonString() string {
3819    b, _ := json.Marshal(r)
3820    return string(b)
3821}
3822
3823// It is highly **NOT** recommended to use this function
3824// because it has no param check, nor strict type check
3825func (r *UpdateSAMLProviderResponse) FromJsonString(s string) error {
3826	return json.Unmarshal([]byte(s), &r)
3827}
3828
3829type UpdateUserRequest struct {
3830	*tchttp.BaseRequest
3831
3832	// 子用户用户名
3833	Name *string `json:"Name,omitempty" name:"Name"`
3834
3835	// 子用户备注
3836	Remark *string `json:"Remark,omitempty" name:"Remark"`
3837
3838	// 子用户是否可以登录控制台。传0子用户无法登录控制台,传1子用户可以登录控制台。
3839	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
3840
3841	// 子用户控制台登录密码,若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效,如果传空并且上面指定允许登录控制台,则自动生成随机密码,随机密码规则为32位包含大小写字母、数字和特殊字符。
3842	Password *string `json:"Password,omitempty" name:"Password"`
3843
3844	// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码,传1子用户下次登录控制台需要重置密码。
3845	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`
3846
3847	// 手机号
3848	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
3849
3850	// 区号
3851	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
3852
3853	// 邮箱
3854	Email *string `json:"Email,omitempty" name:"Email"`
3855}
3856
3857func (r *UpdateUserRequest) ToJsonString() string {
3858    b, _ := json.Marshal(r)
3859    return string(b)
3860}
3861
3862// It is highly **NOT** recommended to use this function
3863// because it has no param check, nor strict type check
3864func (r *UpdateUserRequest) FromJsonString(s string) error {
3865	f := make(map[string]interface{})
3866	if err := json.Unmarshal([]byte(s), &f); err != nil {
3867		return err
3868	}
3869	delete(f, "Name")
3870	delete(f, "Remark")
3871	delete(f, "ConsoleLogin")
3872	delete(f, "Password")
3873	delete(f, "NeedResetPassword")
3874	delete(f, "PhoneNum")
3875	delete(f, "CountryCode")
3876	delete(f, "Email")
3877	if len(f) > 0 {
3878		return errors.New("UpdateUserRequest has unknown keys!")
3879	}
3880	return json.Unmarshal([]byte(s), &r)
3881}
3882
3883type UpdateUserResponse struct {
3884	*tchttp.BaseResponse
3885	Response *struct {
3886
3887		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3888		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3889	} `json:"Response"`
3890}
3891
3892func (r *UpdateUserResponse) ToJsonString() string {
3893    b, _ := json.Marshal(r)
3894    return string(b)
3895}
3896
3897// It is highly **NOT** recommended to use this function
3898// because it has no param check, nor strict type check
3899func (r *UpdateUserResponse) FromJsonString(s string) error {
3900	return json.Unmarshal([]byte(s), &r)
3901}
3902
3903type WeChatWorkSubAccount struct {
3904
3905	// 子用户用户 ID
3906	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
3907
3908	// 子用户用户名
3909	Name *string `json:"Name,omitempty" name:"Name"`
3910
3911	// 子用户 UID
3912	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
3913
3914	// 备注
3915	Remark *string `json:"Remark,omitempty" name:"Remark"`
3916
3917	// 子用户能否登录控制台
3918	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
3919
3920	// 手机号
3921	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
3922
3923	// 区号
3924	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
3925
3926	// 邮箱
3927	Email *string `json:"Email,omitempty" name:"Email"`
3928
3929	// 企业微信UserId
3930	// 注意:此字段可能返回 null,表示取不到有效值。
3931	WeChatWorkUserId *string `json:"WeChatWorkUserId,omitempty" name:"WeChatWorkUserId"`
3932
3933	// 创建时间
3934	// 注意:此字段可能返回 null,表示取不到有效值。
3935	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
3936}
3937