tencentcloud-sdk-dasb 3.0.517 → 3.0.519

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f481ddc61c4693fe50ebe8b9f92241475f13f54
4
- data.tar.gz: 29105b2f57842a09d9717d3dba05a0f0825cf757
3
+ metadata.gz: b99b14cadafffb5cf2b0b681dd830aec620ac650
4
+ data.tar.gz: e8e232bcd16bef46dfd399c73cf7f48ec260f445
5
5
  SHA512:
6
- metadata.gz: 64a71dfca842178365d1b36d7ee235d18f91441e599b941be8536c696b89cf421886ef3983d6c03fc4c94bea82b4dd4e7a53bc4e8e77e733e1f14e57e7d06b7e
7
- data.tar.gz: bae11bb768aa8bdf6047ce310fb429d1504ca35eebdf6bb55763611aa1041ed7affcde01de86adc3e82e8157b06573987b413754eea3e8fee3a8ba491d38fc88
6
+ metadata.gz: 90a364e3f61f5c20c5216a759c031661abc958158a981955a26b5aa8881dd4951e3a0753ce07bf5b2491413062bc5e145056cc175d88cbf3ccd7c276491f8e26
7
+ data.tar.gz: 591a4de0bafdf3cb9a31561b2b41e6c1e783ce3d2272586fc17b8113eeb90ed0da977bb4815d61c06ce499c90df7fc928cbd65182ff36a45c9b579c334219a58
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.517
1
+ 3.0.519
@@ -77,6 +77,54 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 绑定主机账号密码
81
+
82
+ # @param request: Request instance for BindDeviceAccountPassword.
83
+ # @type request: :class:`Tencentcloud::dasb::V20191018::BindDeviceAccountPasswordRequest`
84
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::BindDeviceAccountPasswordResponse`
85
+ def BindDeviceAccountPassword(request)
86
+ body = send_request('BindDeviceAccountPassword', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = BindDeviceAccountPasswordResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 绑定主机账号私钥
105
+
106
+ # @param request: Request instance for BindDeviceAccountPrivateKey.
107
+ # @type request: :class:`Tencentcloud::dasb::V20191018::BindDeviceAccountPrivateKeyRequest`
108
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::BindDeviceAccountPrivateKeyResponse`
109
+ def BindDeviceAccountPrivateKey(request)
110
+ body = send_request('BindDeviceAccountPrivateKey', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = BindDeviceAccountPrivateKeyResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
80
128
  # 修改资产绑定的堡垒机服务
81
129
 
82
130
  # @param request: Request instance for BindDeviceResource.
@@ -125,6 +173,78 @@ module TencentCloud
125
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
174
  end
127
175
 
176
+ # 创建手工资产同步任务
177
+
178
+ # @param request: Request instance for CreateAssetSyncJob.
179
+ # @type request: :class:`Tencentcloud::dasb::V20191018::CreateAssetSyncJobRequest`
180
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::CreateAssetSyncJobResponse`
181
+ def CreateAssetSyncJob(request)
182
+ body = send_request('CreateAssetSyncJob', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateAssetSyncJobResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 新建高危命令模板
201
+
202
+ # @param request: Request instance for CreateCmdTemplate.
203
+ # @type request: :class:`Tencentcloud::dasb::V20191018::CreateCmdTemplateRequest`
204
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::CreateCmdTemplateResponse`
205
+ def CreateCmdTemplate(request)
206
+ body = send_request('CreateCmdTemplate', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateCmdTemplateResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 新建主机账号
225
+
226
+ # @param request: Request instance for CreateDeviceAccount.
227
+ # @type request: :class:`Tencentcloud::dasb::V20191018::CreateDeviceAccountRequest`
228
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::CreateDeviceAccountResponse`
229
+ def CreateDeviceAccount(request)
230
+ body = send_request('CreateDeviceAccount', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateDeviceAccountResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
128
248
  # 新建资产组
129
249
 
130
250
  # @param request: Request instance for CreateDeviceGroup.
@@ -221,6 +341,54 @@ module TencentCloud
221
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
342
  end
223
343
 
344
+ # 删除高危命令模板
345
+
346
+ # @param request: Request instance for DeleteCmdTemplates.
347
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DeleteCmdTemplatesRequest`
348
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteCmdTemplatesResponse`
349
+ def DeleteCmdTemplates(request)
350
+ body = send_request('DeleteCmdTemplates', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteCmdTemplatesResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
368
+ # 删除主机账号
369
+
370
+ # @param request: Request instance for DeleteDeviceAccounts.
371
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceAccountsRequest`
372
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceAccountsResponse`
373
+ def DeleteDeviceAccounts(request)
374
+ body = send_request('DeleteDeviceAccounts', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DeleteDeviceAccountsResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
224
392
  # 删除资产组成员
225
393
 
226
394
  # @param request: Request instance for DeleteDeviceGroupMembers.
@@ -269,6 +437,30 @@ module TencentCloud
269
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
438
  end
271
439
 
440
+ # 删除主机
441
+
442
+ # @param request: Request instance for DeleteDevices.
443
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DeleteDevicesRequest`
444
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteDevicesResponse`
445
+ def DeleteDevices(request)
446
+ body = send_request('DeleteDevices', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DeleteDevicesResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
272
464
  # 删除用户组成员
273
465
 
274
466
  # @param request: Request instance for DeleteUserGroupMembers.
@@ -341,6 +533,30 @@ module TencentCloud
341
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
534
  end
343
535
 
536
+ # 开通服务,初始化资源,只针对新购资源
537
+
538
+ # @param request: Request instance for DeployResource.
539
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DeployResourceRequest`
540
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DeployResourceResponse`
541
+ def DeployResource(request)
542
+ body = send_request('DeployResource', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DeployResourceResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
344
560
  # 查询访问权限列表
345
561
 
346
562
  # @param request: Request instance for DescribeAcls.
@@ -365,6 +581,54 @@ module TencentCloud
365
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
582
  end
367
583
 
584
+ # 查询资产同步状态
585
+
586
+ # @param request: Request instance for DescribeAssetSyncStatus.
587
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DescribeAssetSyncStatusRequest`
588
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeAssetSyncStatusResponse`
589
+ def DescribeAssetSyncStatus(request)
590
+ body = send_request('DescribeAssetSyncStatus', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DescribeAssetSyncStatusResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 查询命令模板列表
609
+
610
+ # @param request: Request instance for DescribeCmdTemplates.
611
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DescribeCmdTemplatesRequest`
612
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeCmdTemplatesResponse`
613
+ def DescribeCmdTemplates(request)
614
+ body = send_request('DescribeCmdTemplates', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DescribeCmdTemplatesResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
368
632
  # 获取镜像列表
369
633
 
370
634
  # @param request: Request instance for DescribeDasbImageIds.
@@ -389,6 +653,30 @@ module TencentCloud
389
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
654
  end
391
655
 
656
+ # 查询主机账号列表
657
+
658
+ # @param request: Request instance for DescribeDeviceAccounts.
659
+ # @type request: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceAccountsRequest`
660
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceAccountsResponse`
661
+ def DescribeDeviceAccounts(request)
662
+ body = send_request('DescribeDeviceAccounts', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeDeviceAccountsResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
392
680
  # 查询资产组成员列表
393
681
 
394
682
  # @param request: Request instance for DescribeDeviceGroupMembers.
@@ -557,6 +845,30 @@ module TencentCloud
557
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
846
  end
559
847
 
848
+ # 导入外部资产信息
849
+
850
+ # @param request: Request instance for ImportExternalDevice.
851
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ImportExternalDeviceRequest`
852
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ImportExternalDeviceResponse`
853
+ def ImportExternalDevice(request)
854
+ body = send_request('ImportExternalDevice', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = ImportExternalDeviceResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
560
872
  # 修改访问权限
561
873
 
562
874
  # @param request: Request instance for ModifyAcl.
@@ -581,6 +893,54 @@ module TencentCloud
581
893
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
894
  end
583
895
 
896
+ # 修改资产信息
897
+
898
+ # @param request: Request instance for ModifyDevice.
899
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ModifyDeviceRequest`
900
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ModifyDeviceResponse`
901
+ def ModifyDevice(request)
902
+ body = send_request('ModifyDevice', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = ModifyDeviceResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
920
+ # 修改资产组
921
+
922
+ # @param request: Request instance for ModifyDeviceGroup.
923
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ModifyDeviceGroupRequest`
924
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ModifyDeviceGroupResponse`
925
+ def ModifyDeviceGroup(request)
926
+ body = send_request('ModifyDeviceGroup', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = ModifyDeviceGroupResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
584
944
  # 修改用户信息
585
945
 
586
946
  # @param request: Request instance for ModifyUser.
@@ -605,6 +965,78 @@ module TencentCloud
605
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
966
  end
607
967
 
968
+ # 清除设备账号绑定密码
969
+
970
+ # @param request: Request instance for ResetDeviceAccountPassword.
971
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ResetDeviceAccountPasswordRequest`
972
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ResetDeviceAccountPasswordResponse`
973
+ def ResetDeviceAccountPassword(request)
974
+ body = send_request('ResetDeviceAccountPassword', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = ResetDeviceAccountPasswordResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
992
+ # 清除设备账号绑定的密钥
993
+
994
+ # @param request: Request instance for ResetDeviceAccountPrivateKey.
995
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ResetDeviceAccountPrivateKeyRequest`
996
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ResetDeviceAccountPrivateKeyResponse`
997
+ def ResetDeviceAccountPrivateKey(request)
998
+ body = send_request('ResetDeviceAccountPrivateKey', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = ResetDeviceAccountPrivateKeyResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
1016
+ # 重置用户
1017
+
1018
+ # @param request: Request instance for ResetUser.
1019
+ # @type request: :class:`Tencentcloud::dasb::V20191018::ResetUserRequest`
1020
+ # @rtype: :class:`Tencentcloud::dasb::V20191018::ResetUserResponse`
1021
+ def ResetUser(request)
1022
+ body = send_request('ResetUser', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = ResetUserResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
608
1040
 
609
1041
  end
610
1042
  end