tencentcloud-sdk-bh 3.0.1138 → 3.0.1171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230418/client.rb +528 -0
- data/lib/v20230418/models.rb +1195 -42
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 755995972c0c7f8f5a76e3d27c7269d89e5335b4
|
|
4
|
+
data.tar.gz: 6b7dfad4213614f044cc155794b320c0be77888f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 215dcca35a632836408673cbe8443aa1a310a8e2ed947cf3dab7d9dd221246ed60a37fa88b08949b8592ce914ac2514aa2b0a25106c33711a6c1cd2ba85fd8b2
|
|
7
|
+
data.tar.gz: a0aef8756a34a42f138cee98c979c2e703d47b38008c899194949cb5cd5f8cefaf29f654af14249e77dd7fb4ea8ab961e23a7e31da80a9d38bff68e4f0624c96
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1171
|
data/lib/v20230418/client.rb
CHANGED
|
@@ -413,6 +413,30 @@ module TencentCloud
|
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
414
414
|
end
|
|
415
415
|
|
|
416
|
+
# 创建用户同步任务
|
|
417
|
+
|
|
418
|
+
# @param request: Request instance for CreateSyncUserTask.
|
|
419
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::CreateSyncUserTaskRequest`
|
|
420
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::CreateSyncUserTaskResponse`
|
|
421
|
+
def CreateSyncUserTask(request)
|
|
422
|
+
body = send_request('CreateSyncUserTask', request.serialize)
|
|
423
|
+
response = JSON.parse(body)
|
|
424
|
+
if response['Response'].key?('Error') == false
|
|
425
|
+
model = CreateSyncUserTaskResponse.new
|
|
426
|
+
model.deserialize(response['Response'])
|
|
427
|
+
model
|
|
428
|
+
else
|
|
429
|
+
code = response['Response']['Error']['Code']
|
|
430
|
+
message = response['Response']['Error']['Message']
|
|
431
|
+
reqid = response['Response']['RequestId']
|
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
433
|
+
end
|
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
435
|
+
raise e
|
|
436
|
+
rescue StandardError => e
|
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
|
+
end
|
|
439
|
+
|
|
416
440
|
# 新建用户
|
|
417
441
|
|
|
418
442
|
# @param request: Request instance for CreateUser.
|
|
@@ -437,6 +461,30 @@ module TencentCloud
|
|
|
437
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
462
|
end
|
|
439
463
|
|
|
464
|
+
# 创建用户目录
|
|
465
|
+
|
|
466
|
+
# @param request: Request instance for CreateUserDirectory.
|
|
467
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::CreateUserDirectoryRequest`
|
|
468
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::CreateUserDirectoryResponse`
|
|
469
|
+
def CreateUserDirectory(request)
|
|
470
|
+
body = send_request('CreateUserDirectory', request.serialize)
|
|
471
|
+
response = JSON.parse(body)
|
|
472
|
+
if response['Response'].key?('Error') == false
|
|
473
|
+
model = CreateUserDirectoryResponse.new
|
|
474
|
+
model.deserialize(response['Response'])
|
|
475
|
+
model
|
|
476
|
+
else
|
|
477
|
+
code = response['Response']['Error']['Code']
|
|
478
|
+
message = response['Response']['Error']['Message']
|
|
479
|
+
reqid = response['Response']['RequestId']
|
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
481
|
+
end
|
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
483
|
+
raise e
|
|
484
|
+
rescue StandardError => e
|
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
486
|
+
end
|
|
487
|
+
|
|
440
488
|
# 新建用户组
|
|
441
489
|
|
|
442
490
|
# @param request: Request instance for CreateUserGroup.
|
|
@@ -677,6 +725,30 @@ module TencentCloud
|
|
|
677
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
678
726
|
end
|
|
679
727
|
|
|
728
|
+
# 删除用户目录
|
|
729
|
+
|
|
730
|
+
# @param request: Request instance for DeleteUserDirectory.
|
|
731
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DeleteUserDirectoryRequest`
|
|
732
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DeleteUserDirectoryResponse`
|
|
733
|
+
def DeleteUserDirectory(request)
|
|
734
|
+
body = send_request('DeleteUserDirectory', request.serialize)
|
|
735
|
+
response = JSON.parse(body)
|
|
736
|
+
if response['Response'].key?('Error') == false
|
|
737
|
+
model = DeleteUserDirectoryResponse.new
|
|
738
|
+
model.deserialize(response['Response'])
|
|
739
|
+
model
|
|
740
|
+
else
|
|
741
|
+
code = response['Response']['Error']['Code']
|
|
742
|
+
message = response['Response']['Error']['Message']
|
|
743
|
+
reqid = response['Response']['RequestId']
|
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
745
|
+
end
|
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
747
|
+
raise e
|
|
748
|
+
rescue StandardError => e
|
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
750
|
+
end
|
|
751
|
+
|
|
680
752
|
# 删除用户组成员
|
|
681
753
|
|
|
682
754
|
# @param request: Request instance for DeleteUserGroupMembers.
|
|
@@ -797,6 +869,30 @@ module TencentCloud
|
|
|
797
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
798
870
|
end
|
|
799
871
|
|
|
872
|
+
# 获取账号组信息
|
|
873
|
+
|
|
874
|
+
# @param request: Request instance for DescribeAccountGroups.
|
|
875
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeAccountGroupsRequest`
|
|
876
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeAccountGroupsResponse`
|
|
877
|
+
def DescribeAccountGroups(request)
|
|
878
|
+
body = send_request('DescribeAccountGroups', request.serialize)
|
|
879
|
+
response = JSON.parse(body)
|
|
880
|
+
if response['Response'].key?('Error') == false
|
|
881
|
+
model = DescribeAccountGroupsResponse.new
|
|
882
|
+
model.deserialize(response['Response'])
|
|
883
|
+
model
|
|
884
|
+
else
|
|
885
|
+
code = response['Response']['Error']['Code']
|
|
886
|
+
message = response['Response']['Error']['Message']
|
|
887
|
+
reqid = response['Response']['RequestId']
|
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
889
|
+
end
|
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
891
|
+
raise e
|
|
892
|
+
rescue StandardError => e
|
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
894
|
+
end
|
|
895
|
+
|
|
800
896
|
# 查询访问权限列表
|
|
801
897
|
|
|
802
898
|
# @param request: Request instance for DescribeAcls.
|
|
@@ -821,6 +917,30 @@ module TencentCloud
|
|
|
821
917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
822
918
|
end
|
|
823
919
|
|
|
920
|
+
# 查询资产自动同步开关
|
|
921
|
+
|
|
922
|
+
# @param request: Request instance for DescribeAssetSyncFlag.
|
|
923
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeAssetSyncFlagRequest`
|
|
924
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeAssetSyncFlagResponse`
|
|
925
|
+
def DescribeAssetSyncFlag(request)
|
|
926
|
+
body = send_request('DescribeAssetSyncFlag', request.serialize)
|
|
927
|
+
response = JSON.parse(body)
|
|
928
|
+
if response['Response'].key?('Error') == false
|
|
929
|
+
model = DescribeAssetSyncFlagResponse.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
|
+
|
|
824
944
|
# 查询资产同步状态
|
|
825
945
|
|
|
826
946
|
# @param request: Request instance for DescribeAssetSyncStatus.
|
|
@@ -1157,6 +1277,78 @@ module TencentCloud
|
|
|
1157
1277
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1158
1278
|
end
|
|
1159
1279
|
|
|
1280
|
+
# 查询安全配置信息
|
|
1281
|
+
|
|
1282
|
+
# @param request: Request instance for DescribeSecuritySetting.
|
|
1283
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeSecuritySettingRequest`
|
|
1284
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeSecuritySettingResponse`
|
|
1285
|
+
def DescribeSecuritySetting(request)
|
|
1286
|
+
body = send_request('DescribeSecuritySetting', request.serialize)
|
|
1287
|
+
response = JSON.parse(body)
|
|
1288
|
+
if response['Response'].key?('Error') == false
|
|
1289
|
+
model = DescribeSecuritySettingResponse.new
|
|
1290
|
+
model.deserialize(response['Response'])
|
|
1291
|
+
model
|
|
1292
|
+
else
|
|
1293
|
+
code = response['Response']['Error']['Code']
|
|
1294
|
+
message = response['Response']['Error']['Message']
|
|
1295
|
+
reqid = response['Response']['RequestId']
|
|
1296
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1297
|
+
end
|
|
1298
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1299
|
+
raise e
|
|
1300
|
+
rescue StandardError => e
|
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1302
|
+
end
|
|
1303
|
+
|
|
1304
|
+
# 获取认证源信息
|
|
1305
|
+
|
|
1306
|
+
# @param request: Request instance for DescribeSourceTypes.
|
|
1307
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeSourceTypesRequest`
|
|
1308
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeSourceTypesResponse`
|
|
1309
|
+
def DescribeSourceTypes(request)
|
|
1310
|
+
body = send_request('DescribeSourceTypes', request.serialize)
|
|
1311
|
+
response = JSON.parse(body)
|
|
1312
|
+
if response['Response'].key?('Error') == false
|
|
1313
|
+
model = DescribeSourceTypesResponse.new
|
|
1314
|
+
model.deserialize(response['Response'])
|
|
1315
|
+
model
|
|
1316
|
+
else
|
|
1317
|
+
code = response['Response']['Error']['Code']
|
|
1318
|
+
message = response['Response']['Error']['Message']
|
|
1319
|
+
reqid = response['Response']['RequestId']
|
|
1320
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1321
|
+
end
|
|
1322
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1323
|
+
raise e
|
|
1324
|
+
rescue StandardError => e
|
|
1325
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1326
|
+
end
|
|
1327
|
+
|
|
1328
|
+
# 获取用户目录
|
|
1329
|
+
|
|
1330
|
+
# @param request: Request instance for DescribeUserDirectory.
|
|
1331
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeUserDirectoryRequest`
|
|
1332
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeUserDirectoryResponse`
|
|
1333
|
+
def DescribeUserDirectory(request)
|
|
1334
|
+
body = send_request('DescribeUserDirectory', request.serialize)
|
|
1335
|
+
response = JSON.parse(body)
|
|
1336
|
+
if response['Response'].key?('Error') == false
|
|
1337
|
+
model = DescribeUserDirectoryResponse.new
|
|
1338
|
+
model.deserialize(response['Response'])
|
|
1339
|
+
model
|
|
1340
|
+
else
|
|
1341
|
+
code = response['Response']['Error']['Code']
|
|
1342
|
+
message = response['Response']['Error']['Message']
|
|
1343
|
+
reqid = response['Response']['RequestId']
|
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1345
|
+
end
|
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1347
|
+
raise e
|
|
1348
|
+
rescue StandardError => e
|
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1160
1352
|
# 查询用户组成员列表
|
|
1161
1353
|
|
|
1162
1354
|
# @param request: Request instance for DescribeUserGroupMembers.
|
|
@@ -1205,6 +1397,30 @@ module TencentCloud
|
|
|
1205
1397
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1206
1398
|
end
|
|
1207
1399
|
|
|
1400
|
+
# 获取用户同步状态
|
|
1401
|
+
|
|
1402
|
+
# @param request: Request instance for DescribeUserSyncStatus.
|
|
1403
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeUserSyncStatusRequest`
|
|
1404
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeUserSyncStatusResponse`
|
|
1405
|
+
def DescribeUserSyncStatus(request)
|
|
1406
|
+
body = send_request('DescribeUserSyncStatus', request.serialize)
|
|
1407
|
+
response = JSON.parse(body)
|
|
1408
|
+
if response['Response'].key?('Error') == false
|
|
1409
|
+
model = DescribeUserSyncStatusResponse.new
|
|
1410
|
+
model.deserialize(response['Response'])
|
|
1411
|
+
model
|
|
1412
|
+
else
|
|
1413
|
+
code = response['Response']['Error']['Code']
|
|
1414
|
+
message = response['Response']['Error']['Message']
|
|
1415
|
+
reqid = response['Response']['RequestId']
|
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1417
|
+
end
|
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1419
|
+
raise e
|
|
1420
|
+
rescue StandardError => e
|
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1208
1424
|
# 查询用户列表
|
|
1209
1425
|
|
|
1210
1426
|
# @param request: Request instance for DescribeUsers.
|
|
@@ -1229,6 +1445,102 @@ module TencentCloud
|
|
|
1229
1445
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1230
1446
|
end
|
|
1231
1447
|
|
|
1448
|
+
# 关闭公网访问堡垒机
|
|
1449
|
+
|
|
1450
|
+
# @param request: Request instance for DisableExternalAccess.
|
|
1451
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DisableExternalAccessRequest`
|
|
1452
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DisableExternalAccessResponse`
|
|
1453
|
+
def DisableExternalAccess(request)
|
|
1454
|
+
body = send_request('DisableExternalAccess', request.serialize)
|
|
1455
|
+
response = JSON.parse(body)
|
|
1456
|
+
if response['Response'].key?('Error') == false
|
|
1457
|
+
model = DisableExternalAccessResponse.new
|
|
1458
|
+
model.deserialize(response['Response'])
|
|
1459
|
+
model
|
|
1460
|
+
else
|
|
1461
|
+
code = response['Response']['Error']['Code']
|
|
1462
|
+
message = response['Response']['Error']['Message']
|
|
1463
|
+
reqid = response['Response']['RequestId']
|
|
1464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1465
|
+
end
|
|
1466
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1467
|
+
raise e
|
|
1468
|
+
rescue StandardError => e
|
|
1469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1470
|
+
end
|
|
1471
|
+
|
|
1472
|
+
# 关闭内网访问
|
|
1473
|
+
|
|
1474
|
+
# @param request: Request instance for DisableIntranetAccess.
|
|
1475
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DisableIntranetAccessRequest`
|
|
1476
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DisableIntranetAccessResponse`
|
|
1477
|
+
def DisableIntranetAccess(request)
|
|
1478
|
+
body = send_request('DisableIntranetAccess', request.serialize)
|
|
1479
|
+
response = JSON.parse(body)
|
|
1480
|
+
if response['Response'].key?('Error') == false
|
|
1481
|
+
model = DisableIntranetAccessResponse.new
|
|
1482
|
+
model.deserialize(response['Response'])
|
|
1483
|
+
model
|
|
1484
|
+
else
|
|
1485
|
+
code = response['Response']['Error']['Code']
|
|
1486
|
+
message = response['Response']['Error']['Message']
|
|
1487
|
+
reqid = response['Response']['RequestId']
|
|
1488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1489
|
+
end
|
|
1490
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1491
|
+
raise e
|
|
1492
|
+
rescue StandardError => e
|
|
1493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
# 开启公网访问堡垒机
|
|
1497
|
+
|
|
1498
|
+
# @param request: Request instance for EnableExternalAccess.
|
|
1499
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::EnableExternalAccessRequest`
|
|
1500
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::EnableExternalAccessResponse`
|
|
1501
|
+
def EnableExternalAccess(request)
|
|
1502
|
+
body = send_request('EnableExternalAccess', request.serialize)
|
|
1503
|
+
response = JSON.parse(body)
|
|
1504
|
+
if response['Response'].key?('Error') == false
|
|
1505
|
+
model = EnableExternalAccessResponse.new
|
|
1506
|
+
model.deserialize(response['Response'])
|
|
1507
|
+
model
|
|
1508
|
+
else
|
|
1509
|
+
code = response['Response']['Error']['Code']
|
|
1510
|
+
message = response['Response']['Error']['Message']
|
|
1511
|
+
reqid = response['Response']['RequestId']
|
|
1512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1513
|
+
end
|
|
1514
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1515
|
+
raise e
|
|
1516
|
+
rescue StandardError => e
|
|
1517
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
# 开通内网访问
|
|
1521
|
+
|
|
1522
|
+
# @param request: Request instance for EnableIntranetAccess.
|
|
1523
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::EnableIntranetAccessRequest`
|
|
1524
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::EnableIntranetAccessResponse`
|
|
1525
|
+
def EnableIntranetAccess(request)
|
|
1526
|
+
body = send_request('EnableIntranetAccess', request.serialize)
|
|
1527
|
+
response = JSON.parse(body)
|
|
1528
|
+
if response['Response'].key?('Error') == false
|
|
1529
|
+
model = EnableIntranetAccessResponse.new
|
|
1530
|
+
model.deserialize(response['Response'])
|
|
1531
|
+
model
|
|
1532
|
+
else
|
|
1533
|
+
code = response['Response']['Error']['Code']
|
|
1534
|
+
message = response['Response']['Error']['Message']
|
|
1535
|
+
reqid = response['Response']['RequestId']
|
|
1536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1537
|
+
end
|
|
1538
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1539
|
+
raise e
|
|
1540
|
+
rescue StandardError => e
|
|
1541
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1542
|
+
end
|
|
1543
|
+
|
|
1232
1544
|
# 导入外部资产信息
|
|
1233
1545
|
|
|
1234
1546
|
# @param request: Request instance for ImportExternalDevice.
|
|
@@ -1253,6 +1565,78 @@ module TencentCloud
|
|
|
1253
1565
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1254
1566
|
end
|
|
1255
1567
|
|
|
1568
|
+
# 修改访问白名单自动添加IP状态:开启或关闭自动添加IP
|
|
1569
|
+
|
|
1570
|
+
# @param request: Request instance for ModifyAccessWhiteListAutoStatus.
|
|
1571
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListAutoStatusRequest`
|
|
1572
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListAutoStatusResponse`
|
|
1573
|
+
def ModifyAccessWhiteListAutoStatus(request)
|
|
1574
|
+
body = send_request('ModifyAccessWhiteListAutoStatus', request.serialize)
|
|
1575
|
+
response = JSON.parse(body)
|
|
1576
|
+
if response['Response'].key?('Error') == false
|
|
1577
|
+
model = ModifyAccessWhiteListAutoStatusResponse.new
|
|
1578
|
+
model.deserialize(response['Response'])
|
|
1579
|
+
model
|
|
1580
|
+
else
|
|
1581
|
+
code = response['Response']['Error']['Code']
|
|
1582
|
+
message = response['Response']['Error']['Message']
|
|
1583
|
+
reqid = response['Response']['RequestId']
|
|
1584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1585
|
+
end
|
|
1586
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1587
|
+
raise e
|
|
1588
|
+
rescue StandardError => e
|
|
1589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1590
|
+
end
|
|
1591
|
+
|
|
1592
|
+
# 修改访问白名单规则
|
|
1593
|
+
|
|
1594
|
+
# @param request: Request instance for ModifyAccessWhiteListRule.
|
|
1595
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListRuleRequest`
|
|
1596
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListRuleResponse`
|
|
1597
|
+
def ModifyAccessWhiteListRule(request)
|
|
1598
|
+
body = send_request('ModifyAccessWhiteListRule', request.serialize)
|
|
1599
|
+
response = JSON.parse(body)
|
|
1600
|
+
if response['Response'].key?('Error') == false
|
|
1601
|
+
model = ModifyAccessWhiteListRuleResponse.new
|
|
1602
|
+
model.deserialize(response['Response'])
|
|
1603
|
+
model
|
|
1604
|
+
else
|
|
1605
|
+
code = response['Response']['Error']['Code']
|
|
1606
|
+
message = response['Response']['Error']['Message']
|
|
1607
|
+
reqid = response['Response']['RequestId']
|
|
1608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1609
|
+
end
|
|
1610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1611
|
+
raise e
|
|
1612
|
+
rescue StandardError => e
|
|
1613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1614
|
+
end
|
|
1615
|
+
|
|
1616
|
+
# 修改访问白名单状态:开启或关闭放开全部来源IP。
|
|
1617
|
+
|
|
1618
|
+
# @param request: Request instance for ModifyAccessWhiteListStatus.
|
|
1619
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListStatusRequest`
|
|
1620
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyAccessWhiteListStatusResponse`
|
|
1621
|
+
def ModifyAccessWhiteListStatus(request)
|
|
1622
|
+
body = send_request('ModifyAccessWhiteListStatus', request.serialize)
|
|
1623
|
+
response = JSON.parse(body)
|
|
1624
|
+
if response['Response'].key?('Error') == false
|
|
1625
|
+
model = ModifyAccessWhiteListStatusResponse.new
|
|
1626
|
+
model.deserialize(response['Response'])
|
|
1627
|
+
model
|
|
1628
|
+
else
|
|
1629
|
+
code = response['Response']['Error']['Code']
|
|
1630
|
+
message = response['Response']['Error']['Message']
|
|
1631
|
+
reqid = response['Response']['RequestId']
|
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1633
|
+
end
|
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1635
|
+
raise e
|
|
1636
|
+
rescue StandardError => e
|
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1638
|
+
end
|
|
1639
|
+
|
|
1256
1640
|
# 修改访问权限
|
|
1257
1641
|
|
|
1258
1642
|
# @param request: Request instance for ModifyAcl.
|
|
@@ -1277,6 +1661,54 @@ module TencentCloud
|
|
|
1277
1661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1278
1662
|
end
|
|
1279
1663
|
|
|
1664
|
+
# 修改资产自动同步开关
|
|
1665
|
+
|
|
1666
|
+
# @param request: Request instance for ModifyAssetSyncFlag.
|
|
1667
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyAssetSyncFlagRequest`
|
|
1668
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyAssetSyncFlagResponse`
|
|
1669
|
+
def ModifyAssetSyncFlag(request)
|
|
1670
|
+
body = send_request('ModifyAssetSyncFlag', request.serialize)
|
|
1671
|
+
response = JSON.parse(body)
|
|
1672
|
+
if response['Response'].key?('Error') == false
|
|
1673
|
+
model = ModifyAssetSyncFlagResponse.new
|
|
1674
|
+
model.deserialize(response['Response'])
|
|
1675
|
+
model
|
|
1676
|
+
else
|
|
1677
|
+
code = response['Response']['Error']['Code']
|
|
1678
|
+
message = response['Response']['Error']['Message']
|
|
1679
|
+
reqid = response['Response']['RequestId']
|
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1681
|
+
end
|
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1683
|
+
raise e
|
|
1684
|
+
rescue StandardError => e
|
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1686
|
+
end
|
|
1687
|
+
|
|
1688
|
+
# 修改认证方式配置信息
|
|
1689
|
+
|
|
1690
|
+
# @param request: Request instance for ModifyAuthModeSetting.
|
|
1691
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyAuthModeSettingRequest`
|
|
1692
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyAuthModeSettingResponse`
|
|
1693
|
+
def ModifyAuthModeSetting(request)
|
|
1694
|
+
body = send_request('ModifyAuthModeSetting', request.serialize)
|
|
1695
|
+
response = JSON.parse(body)
|
|
1696
|
+
if response['Response'].key?('Error') == false
|
|
1697
|
+
model = ModifyAuthModeSettingResponse.new
|
|
1698
|
+
model.deserialize(response['Response'])
|
|
1699
|
+
model
|
|
1700
|
+
else
|
|
1701
|
+
code = response['Response']['Error']['Code']
|
|
1702
|
+
message = response['Response']['Error']['Message']
|
|
1703
|
+
reqid = response['Response']['RequestId']
|
|
1704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1705
|
+
end
|
|
1706
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1707
|
+
raise e
|
|
1708
|
+
rescue StandardError => e
|
|
1709
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1280
1712
|
# 更新修改密码任务
|
|
1281
1713
|
|
|
1282
1714
|
# @param request: Request instance for ModifyChangePwdTask.
|
|
@@ -1445,6 +1877,30 @@ module TencentCloud
|
|
|
1445
1877
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1446
1878
|
end
|
|
1447
1879
|
|
|
1880
|
+
# 修改运维资产连接重连次数
|
|
1881
|
+
|
|
1882
|
+
# @param request: Request instance for ModifyReconnectionSetting.
|
|
1883
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyReconnectionSettingRequest`
|
|
1884
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyReconnectionSettingResponse`
|
|
1885
|
+
def ModifyReconnectionSetting(request)
|
|
1886
|
+
body = send_request('ModifyReconnectionSetting', request.serialize)
|
|
1887
|
+
response = JSON.parse(body)
|
|
1888
|
+
if response['Response'].key?('Error') == false
|
|
1889
|
+
model = ModifyReconnectionSettingResponse.new
|
|
1890
|
+
model.deserialize(response['Response'])
|
|
1891
|
+
model
|
|
1892
|
+
else
|
|
1893
|
+
code = response['Response']['Error']['Code']
|
|
1894
|
+
message = response['Response']['Error']['Message']
|
|
1895
|
+
reqid = response['Response']['RequestId']
|
|
1896
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1897
|
+
end
|
|
1898
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1899
|
+
raise e
|
|
1900
|
+
rescue StandardError => e
|
|
1901
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1902
|
+
end
|
|
1903
|
+
|
|
1448
1904
|
# 资源变配
|
|
1449
1905
|
|
|
1450
1906
|
# @param request: Request instance for ModifyResource.
|
|
@@ -1493,6 +1949,30 @@ module TencentCloud
|
|
|
1493
1949
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1494
1950
|
end
|
|
1495
1951
|
|
|
1952
|
+
# 修改用户目录信息
|
|
1953
|
+
|
|
1954
|
+
# @param request: Request instance for ModifyUserDirectory.
|
|
1955
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyUserDirectoryRequest`
|
|
1956
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyUserDirectoryResponse`
|
|
1957
|
+
def ModifyUserDirectory(request)
|
|
1958
|
+
body = send_request('ModifyUserDirectory', request.serialize)
|
|
1959
|
+
response = JSON.parse(body)
|
|
1960
|
+
if response['Response'].key?('Error') == false
|
|
1961
|
+
model = ModifyUserDirectoryResponse.new
|
|
1962
|
+
model.deserialize(response['Response'])
|
|
1963
|
+
model
|
|
1964
|
+
else
|
|
1965
|
+
code = response['Response']['Error']['Code']
|
|
1966
|
+
message = response['Response']['Error']['Message']
|
|
1967
|
+
reqid = response['Response']['RequestId']
|
|
1968
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1969
|
+
end
|
|
1970
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1971
|
+
raise e
|
|
1972
|
+
rescue StandardError => e
|
|
1973
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1974
|
+
end
|
|
1975
|
+
|
|
1496
1976
|
# 修改用户组
|
|
1497
1977
|
|
|
1498
1978
|
# @param request: Request instance for ModifyUserGroup.
|
|
@@ -1901,6 +2381,54 @@ module TencentCloud
|
|
|
1901
2381
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1902
2382
|
end
|
|
1903
2383
|
|
|
2384
|
+
# 同步资产到IOA
|
|
2385
|
+
|
|
2386
|
+
# @param request: Request instance for SyncDevicesToIOA.
|
|
2387
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::SyncDevicesToIOARequest`
|
|
2388
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::SyncDevicesToIOAResponse`
|
|
2389
|
+
def SyncDevicesToIOA(request)
|
|
2390
|
+
body = send_request('SyncDevicesToIOA', request.serialize)
|
|
2391
|
+
response = JSON.parse(body)
|
|
2392
|
+
if response['Response'].key?('Error') == false
|
|
2393
|
+
model = SyncDevicesToIOAResponse.new
|
|
2394
|
+
model.deserialize(response['Response'])
|
|
2395
|
+
model
|
|
2396
|
+
else
|
|
2397
|
+
code = response['Response']['Error']['Code']
|
|
2398
|
+
message = response['Response']['Error']['Message']
|
|
2399
|
+
reqid = response['Response']['RequestId']
|
|
2400
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2401
|
+
end
|
|
2402
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2403
|
+
raise e
|
|
2404
|
+
rescue StandardError => e
|
|
2405
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2406
|
+
end
|
|
2407
|
+
|
|
2408
|
+
# 同步堡垒机本地用户到IOA
|
|
2409
|
+
|
|
2410
|
+
# @param request: Request instance for SyncUserToIOA.
|
|
2411
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::SyncUserToIOARequest`
|
|
2412
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::SyncUserToIOAResponse`
|
|
2413
|
+
def SyncUserToIOA(request)
|
|
2414
|
+
body = send_request('SyncUserToIOA', request.serialize)
|
|
2415
|
+
response = JSON.parse(body)
|
|
2416
|
+
if response['Response'].key?('Error') == false
|
|
2417
|
+
model = SyncUserToIOAResponse.new
|
|
2418
|
+
model.deserialize(response['Response'])
|
|
2419
|
+
model
|
|
2420
|
+
else
|
|
2421
|
+
code = response['Response']['Error']['Code']
|
|
2422
|
+
message = response['Response']['Error']['Message']
|
|
2423
|
+
reqid = response['Response']['RequestId']
|
|
2424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2425
|
+
end
|
|
2426
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2427
|
+
raise e
|
|
2428
|
+
rescue StandardError => e
|
|
2429
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2430
|
+
end
|
|
2431
|
+
|
|
1904
2432
|
# 解锁用户
|
|
1905
2433
|
|
|
1906
2434
|
# @param request: Request instance for UnlockUser.
|