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