tencentcloud-sdk-bh 3.0.1036 → 3.0.1038
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 +120 -0
- data/lib/v20230418/models.rb +307 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2177fb851c834de8d841cea4d424f37a3320207
|
4
|
+
data.tar.gz: 33380de5f1da444f9bcfdc9951cd285575e71db0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a48dd87dcce4f51e9feec14e77bec8451675b2c5e5527643059fdb1ca5635fe3397a403d6092cba2ca0b38c2f3c35ff9a0d950b789e8fd60ef8c05e28c811a03
|
7
|
+
data.tar.gz: 96ab9705750b8a12d02943f78311aa8e57df1cc8e362c37d74b98f85e42ac34d4325372153b365c3f7ce1db12ad39f68ef4bf7ed6910f15b284661cb10b9287c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1038
|
data/lib/v20230418/client.rb
CHANGED
@@ -317,6 +317,30 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
+
# 创建运维任务
|
321
|
+
|
322
|
+
# @param request: Request instance for CreateOperationTask.
|
323
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::CreateOperationTaskRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::CreateOperationTaskResponse`
|
325
|
+
def CreateOperationTask(request)
|
326
|
+
body = send_request('CreateOperationTask', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreateOperationTaskResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
320
344
|
# 创建堡垒机实例
|
321
345
|
|
322
346
|
# @param request: Request instance for CreateResource.
|
@@ -557,6 +581,30 @@ module TencentCloud
|
|
557
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
582
|
end
|
559
583
|
|
584
|
+
# 删除运维任务
|
585
|
+
|
586
|
+
# @param request: Request instance for DeleteOperationTasks.
|
587
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DeleteOperationTasksRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DeleteOperationTasksResponse`
|
589
|
+
def DeleteOperationTasks(request)
|
590
|
+
body = send_request('DeleteOperationTasks', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DeleteOperationTasksResponse.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
|
+
|
560
608
|
# 删除用户组成员
|
561
609
|
|
562
610
|
# @param request: Request instance for DeleteUserGroupMembers.
|
@@ -941,6 +989,30 @@ module TencentCloud
|
|
941
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
990
|
end
|
943
991
|
|
992
|
+
# 获取运维任务列表
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeOperationTask.
|
995
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::DescribeOperationTaskRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::DescribeOperationTaskResponse`
|
997
|
+
def DescribeOperationTask(request)
|
998
|
+
body = send_request('DescribeOperationTask', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeOperationTaskResponse.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
|
+
|
944
1016
|
# 查询用户购买的堡垒机服务信息,包括资源ID、授权点数、VPC、过期时间等。
|
945
1017
|
|
946
1018
|
# @param request: Request instance for DescribeResources.
|
@@ -1205,6 +1277,30 @@ module TencentCloud
|
|
1205
1277
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
1278
|
end
|
1207
1279
|
|
1280
|
+
# 修改运维任务
|
1281
|
+
|
1282
|
+
# @param request: Request instance for ModifyOperationTask.
|
1283
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::ModifyOperationTaskRequest`
|
1284
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::ModifyOperationTaskResponse`
|
1285
|
+
def ModifyOperationTask(request)
|
1286
|
+
body = send_request('ModifyOperationTask', request.serialize)
|
1287
|
+
response = JSON.parse(body)
|
1288
|
+
if response['Response'].key?('Error') == false
|
1289
|
+
model = ModifyOperationTaskResponse.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
|
+
|
1208
1304
|
# 资源变配
|
1209
1305
|
|
1210
1306
|
# @param request: Request instance for ModifyResource.
|
@@ -1373,6 +1469,30 @@ module TencentCloud
|
|
1373
1469
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
1470
|
end
|
1375
1471
|
|
1472
|
+
# 执行运维任务
|
1473
|
+
|
1474
|
+
# @param request: Request instance for RunOperationTask.
|
1475
|
+
# @type request: :class:`Tencentcloud::bh::V20230418::RunOperationTaskRequest`
|
1476
|
+
# @rtype: :class:`Tencentcloud::bh::V20230418::RunOperationTaskResponse`
|
1477
|
+
def RunOperationTask(request)
|
1478
|
+
body = send_request('RunOperationTask', request.serialize)
|
1479
|
+
response = JSON.parse(body)
|
1480
|
+
if response['Response'].key?('Error') == false
|
1481
|
+
model = RunOperationTaskResponse.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
|
+
|
1376
1496
|
# 搜索审计日志
|
1377
1497
|
|
1378
1498
|
# @param request: Request instance for SearchAuditLog.
|
data/lib/v20230418/models.rb
CHANGED
@@ -1270,6 +1270,74 @@ module TencentCloud
|
|
1270
1270
|
end
|
1271
1271
|
end
|
1272
1272
|
|
1273
|
+
# CreateOperationTask请求参数结构体
|
1274
|
+
class CreateOperationTaskRequest < TencentCloud::Common::AbstractModel
|
1275
|
+
# @param Name: 运维任务名称
|
1276
|
+
# @type Name: String
|
1277
|
+
# @param Type: 运维任务类型,1 - 手工执行, 2 - 周期性自动执行
|
1278
|
+
# @type Type: Integer
|
1279
|
+
# @param Account: 执行账号
|
1280
|
+
# @type Account: String
|
1281
|
+
# @param Timeout: 超时时间,单位秒
|
1282
|
+
# @type Timeout: Integer
|
1283
|
+
# @param Script: 执行脚本内容
|
1284
|
+
# @type Script: String
|
1285
|
+
# @param DeviceIdSet: 执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
1286
|
+
# @type DeviceIdSet: Array
|
1287
|
+
# @param Period: 执行间隔,单位天. 手工执行时无需传入
|
1288
|
+
# @type Period: Integer
|
1289
|
+
# @param FirstTime: 首次执行日期 默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
1290
|
+
# @type FirstTime: String
|
1291
|
+
# @param Encoding: Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
1292
|
+
# @type Encoding: Integer
|
1293
|
+
|
1294
|
+
attr_accessor :Name, :Type, :Account, :Timeout, :Script, :DeviceIdSet, :Period, :FirstTime, :Encoding
|
1295
|
+
|
1296
|
+
def initialize(name=nil, type=nil, account=nil, timeout=nil, script=nil, deviceidset=nil, period=nil, firsttime=nil, encoding=nil)
|
1297
|
+
@Name = name
|
1298
|
+
@Type = type
|
1299
|
+
@Account = account
|
1300
|
+
@Timeout = timeout
|
1301
|
+
@Script = script
|
1302
|
+
@DeviceIdSet = deviceidset
|
1303
|
+
@Period = period
|
1304
|
+
@FirstTime = firsttime
|
1305
|
+
@Encoding = encoding
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
def deserialize(params)
|
1309
|
+
@Name = params['Name']
|
1310
|
+
@Type = params['Type']
|
1311
|
+
@Account = params['Account']
|
1312
|
+
@Timeout = params['Timeout']
|
1313
|
+
@Script = params['Script']
|
1314
|
+
@DeviceIdSet = params['DeviceIdSet']
|
1315
|
+
@Period = params['Period']
|
1316
|
+
@FirstTime = params['FirstTime']
|
1317
|
+
@Encoding = params['Encoding']
|
1318
|
+
end
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# CreateOperationTask返回参数结构体
|
1322
|
+
class CreateOperationTaskResponse < TencentCloud::Common::AbstractModel
|
1323
|
+
# @param TaskId: 运维任务ID
|
1324
|
+
# @type TaskId: Integer
|
1325
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1326
|
+
# @type RequestId: String
|
1327
|
+
|
1328
|
+
attr_accessor :TaskId, :RequestId
|
1329
|
+
|
1330
|
+
def initialize(taskid=nil, requestid=nil)
|
1331
|
+
@TaskId = taskid
|
1332
|
+
@RequestId = requestid
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
def deserialize(params)
|
1336
|
+
@TaskId = params['TaskId']
|
1337
|
+
@RequestId = params['RequestId']
|
1338
|
+
end
|
1339
|
+
end
|
1340
|
+
|
1273
1341
|
# CreateResource请求参数结构体
|
1274
1342
|
class CreateResourceRequest < TencentCloud::Common::AbstractModel
|
1275
1343
|
# @param DeployRegion: 部署region
|
@@ -1688,6 +1756,38 @@ module TencentCloud
|
|
1688
1756
|
end
|
1689
1757
|
end
|
1690
1758
|
|
1759
|
+
# DeleteOperationTasks请求参数结构体
|
1760
|
+
class DeleteOperationTasksRequest < TencentCloud::Common::AbstractModel
|
1761
|
+
# @param IdSet: 运维任务ID集合
|
1762
|
+
# @type IdSet: Array
|
1763
|
+
|
1764
|
+
attr_accessor :IdSet
|
1765
|
+
|
1766
|
+
def initialize(idset=nil)
|
1767
|
+
@IdSet = idset
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
def deserialize(params)
|
1771
|
+
@IdSet = params['IdSet']
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
# DeleteOperationTasks返回参数结构体
|
1776
|
+
class DeleteOperationTasksResponse < TencentCloud::Common::AbstractModel
|
1777
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1778
|
+
# @type RequestId: String
|
1779
|
+
|
1780
|
+
attr_accessor :RequestId
|
1781
|
+
|
1782
|
+
def initialize(requestid=nil)
|
1783
|
+
@RequestId = requestid
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
def deserialize(params)
|
1787
|
+
@RequestId = params['RequestId']
|
1788
|
+
end
|
1789
|
+
end
|
1790
|
+
|
1691
1791
|
# DeleteUserGroupMembers请求参数结构体
|
1692
1792
|
class DeleteUserGroupMembersRequest < TencentCloud::Common::AbstractModel
|
1693
1793
|
# @param Id: 用户组ID
|
@@ -2786,6 +2886,65 @@ module TencentCloud
|
|
2786
2886
|
end
|
2787
2887
|
end
|
2788
2888
|
|
2889
|
+
# DescribeOperationTask请求参数结构体
|
2890
|
+
class DescribeOperationTaskRequest < TencentCloud::Common::AbstractModel
|
2891
|
+
# @param Name: 运维任务名称
|
2892
|
+
# @type Name: String
|
2893
|
+
# @param Type: 运维任务类型,1 - 手工执行任务, 2 - 周期性任务
|
2894
|
+
# @type Type: Integer
|
2895
|
+
# @param Offset: 分页偏移位置,默认值为0
|
2896
|
+
# @type Offset: Integer
|
2897
|
+
# @param Limit: 每页条目数,默认20
|
2898
|
+
# @type Limit: Integer
|
2899
|
+
|
2900
|
+
attr_accessor :Name, :Type, :Offset, :Limit
|
2901
|
+
|
2902
|
+
def initialize(name=nil, type=nil, offset=nil, limit=nil)
|
2903
|
+
@Name = name
|
2904
|
+
@Type = type
|
2905
|
+
@Offset = offset
|
2906
|
+
@Limit = limit
|
2907
|
+
end
|
2908
|
+
|
2909
|
+
def deserialize(params)
|
2910
|
+
@Name = params['Name']
|
2911
|
+
@Type = params['Type']
|
2912
|
+
@Offset = params['Offset']
|
2913
|
+
@Limit = params['Limit']
|
2914
|
+
end
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
# DescribeOperationTask返回参数结构体
|
2918
|
+
class DescribeOperationTaskResponse < TencentCloud::Common::AbstractModel
|
2919
|
+
# @param OperationTasks: 运维任务列表
|
2920
|
+
# @type OperationTasks: Array
|
2921
|
+
# @param TotalCount: 任务总数
|
2922
|
+
# @type TotalCount: Integer
|
2923
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2924
|
+
# @type RequestId: String
|
2925
|
+
|
2926
|
+
attr_accessor :OperationTasks, :TotalCount, :RequestId
|
2927
|
+
|
2928
|
+
def initialize(operationtasks=nil, totalcount=nil, requestid=nil)
|
2929
|
+
@OperationTasks = operationtasks
|
2930
|
+
@TotalCount = totalcount
|
2931
|
+
@RequestId = requestid
|
2932
|
+
end
|
2933
|
+
|
2934
|
+
def deserialize(params)
|
2935
|
+
unless params['OperationTasks'].nil?
|
2936
|
+
@OperationTasks = []
|
2937
|
+
params['OperationTasks'].each do |i|
|
2938
|
+
operationtask_tmp = OperationTask.new
|
2939
|
+
operationtask_tmp.deserialize(i)
|
2940
|
+
@OperationTasks << operationtask_tmp
|
2941
|
+
end
|
2942
|
+
end
|
2943
|
+
@TotalCount = params['TotalCount']
|
2944
|
+
@RequestId = params['RequestId']
|
2945
|
+
end
|
2946
|
+
end
|
2947
|
+
|
2789
2948
|
# DescribeResources请求参数结构体
|
2790
2949
|
class DescribeResourcesRequest < TencentCloud::Common::AbstractModel
|
2791
2950
|
# @param ApCode: 地域码, 如: ap-guangzhou
|
@@ -3870,6 +4029,74 @@ module TencentCloud
|
|
3870
4029
|
end
|
3871
4030
|
end
|
3872
4031
|
|
4032
|
+
# ModifyOperationTask请求参数结构体
|
4033
|
+
class ModifyOperationTaskRequest < TencentCloud::Common::AbstractModel
|
4034
|
+
# @param Id: 任务Id
|
4035
|
+
# @type Id: Integer
|
4036
|
+
# @param Name: 任务名称
|
4037
|
+
# @type Name: String
|
4038
|
+
# @param Type: 任务类型, 1 - 手工执行, 2 - 周期性自动执行
|
4039
|
+
# @type Type: Integer
|
4040
|
+
# @param Account: 执行账号
|
4041
|
+
# @type Account: String
|
4042
|
+
# @param Timeout: 超时时间,单位秒
|
4043
|
+
# @type Timeout: Integer
|
4044
|
+
# @param Script: 执行脚本内容
|
4045
|
+
# @type Script: String
|
4046
|
+
# @param DeviceIdSet: 执行主机集合,满足条件以下三个条件:1. 资产绑定可用的专业版或国密版堡垒机服务;2、资产类型为linux资产;3、用户具有资产权限,且资产添加了指定执行账号
|
4047
|
+
# @type DeviceIdSet: Array
|
4048
|
+
# @param Period: 执行间隔,单位天. 手工执行时无需传入
|
4049
|
+
# @type Period: Integer
|
4050
|
+
# @param FirstTime: 首次执行日期,默认1970-01-01T08:00:01+08:00,手工执行时无需传入
|
4051
|
+
# @type FirstTime: String
|
4052
|
+
# @param Encoding: Script参数是否需要进行base64编码后传递,1-需要进行base64编码后传递,非1值-不需要进行base64编码后传递
|
4053
|
+
# @type Encoding: Integer
|
4054
|
+
|
4055
|
+
attr_accessor :Id, :Name, :Type, :Account, :Timeout, :Script, :DeviceIdSet, :Period, :FirstTime, :Encoding
|
4056
|
+
|
4057
|
+
def initialize(id=nil, name=nil, type=nil, account=nil, timeout=nil, script=nil, deviceidset=nil, period=nil, firsttime=nil, encoding=nil)
|
4058
|
+
@Id = id
|
4059
|
+
@Name = name
|
4060
|
+
@Type = type
|
4061
|
+
@Account = account
|
4062
|
+
@Timeout = timeout
|
4063
|
+
@Script = script
|
4064
|
+
@DeviceIdSet = deviceidset
|
4065
|
+
@Period = period
|
4066
|
+
@FirstTime = firsttime
|
4067
|
+
@Encoding = encoding
|
4068
|
+
end
|
4069
|
+
|
4070
|
+
def deserialize(params)
|
4071
|
+
@Id = params['Id']
|
4072
|
+
@Name = params['Name']
|
4073
|
+
@Type = params['Type']
|
4074
|
+
@Account = params['Account']
|
4075
|
+
@Timeout = params['Timeout']
|
4076
|
+
@Script = params['Script']
|
4077
|
+
@DeviceIdSet = params['DeviceIdSet']
|
4078
|
+
@Period = params['Period']
|
4079
|
+
@FirstTime = params['FirstTime']
|
4080
|
+
@Encoding = params['Encoding']
|
4081
|
+
end
|
4082
|
+
end
|
4083
|
+
|
4084
|
+
# ModifyOperationTask返回参数结构体
|
4085
|
+
class ModifyOperationTaskResponse < TencentCloud::Common::AbstractModel
|
4086
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4087
|
+
# @type RequestId: String
|
4088
|
+
|
4089
|
+
attr_accessor :RequestId
|
4090
|
+
|
4091
|
+
def initialize(requestid=nil)
|
4092
|
+
@RequestId = requestid
|
4093
|
+
end
|
4094
|
+
|
4095
|
+
def deserialize(params)
|
4096
|
+
@RequestId = params['RequestId']
|
4097
|
+
end
|
4098
|
+
end
|
4099
|
+
|
3873
4100
|
# ModifyResource请求参数结构体
|
3874
4101
|
class ModifyResourceRequest < TencentCloud::Common::AbstractModel
|
3875
4102
|
# @param ResourceId: 需要开通服务的资源ID
|
@@ -4084,6 +4311,54 @@ module TencentCloud
|
|
4084
4311
|
end
|
4085
4312
|
end
|
4086
4313
|
|
4314
|
+
# 运维任务信息
|
4315
|
+
class OperationTask < TencentCloud::Common::AbstractModel
|
4316
|
+
# @param Id: 运维任务主键ID
|
4317
|
+
# @type Id: Integer
|
4318
|
+
# @param OperationId: 运维任务ID
|
4319
|
+
# @type OperationId: String
|
4320
|
+
# @param Name: 运维任务名称
|
4321
|
+
# @type Name: String
|
4322
|
+
# @param UserName: 创建用户
|
4323
|
+
# @type UserName: String
|
4324
|
+
# @param RealName: 运维人员姓名
|
4325
|
+
# @type RealName: String
|
4326
|
+
# @param Type: 任务类型,1 - 手工执行任务, 2 - 周期性任务
|
4327
|
+
# @type Type: Integer
|
4328
|
+
# @param Period: 周期性任务执行间隔,单位天
|
4329
|
+
# @type Period: Integer
|
4330
|
+
# @param NextTime: 执行账户
|
4331
|
+
# @type NextTime: String
|
4332
|
+
# @param FirstTime: 下一次执行时间
|
4333
|
+
# @type FirstTime: String
|
4334
|
+
|
4335
|
+
attr_accessor :Id, :OperationId, :Name, :UserName, :RealName, :Type, :Period, :NextTime, :FirstTime
|
4336
|
+
|
4337
|
+
def initialize(id=nil, operationid=nil, name=nil, username=nil, realname=nil, type=nil, period=nil, nexttime=nil, firsttime=nil)
|
4338
|
+
@Id = id
|
4339
|
+
@OperationId = operationid
|
4340
|
+
@Name = name
|
4341
|
+
@UserName = username
|
4342
|
+
@RealName = realname
|
4343
|
+
@Type = type
|
4344
|
+
@Period = period
|
4345
|
+
@NextTime = nexttime
|
4346
|
+
@FirstTime = firsttime
|
4347
|
+
end
|
4348
|
+
|
4349
|
+
def deserialize(params)
|
4350
|
+
@Id = params['Id']
|
4351
|
+
@OperationId = params['OperationId']
|
4352
|
+
@Name = params['Name']
|
4353
|
+
@UserName = params['UserName']
|
4354
|
+
@RealName = params['RealName']
|
4355
|
+
@Type = params['Type']
|
4356
|
+
@Period = params['Period']
|
4357
|
+
@NextTime = params['NextTime']
|
4358
|
+
@FirstTime = params['FirstTime']
|
4359
|
+
end
|
4360
|
+
end
|
4361
|
+
|
4087
4362
|
# ResetDeviceAccountPassword请求参数结构体
|
4088
4363
|
class ResetDeviceAccountPasswordRequest < TencentCloud::Common::AbstractModel
|
4089
4364
|
# @param IdSet: ID集合
|
@@ -4426,6 +4701,38 @@ module TencentCloud
|
|
4426
4701
|
end
|
4427
4702
|
end
|
4428
4703
|
|
4704
|
+
# RunOperationTask请求参数结构体
|
4705
|
+
class RunOperationTaskRequest < TencentCloud::Common::AbstractModel
|
4706
|
+
# @param Id: 运维任务ID
|
4707
|
+
# @type Id: Integer
|
4708
|
+
|
4709
|
+
attr_accessor :Id
|
4710
|
+
|
4711
|
+
def initialize(id=nil)
|
4712
|
+
@Id = id
|
4713
|
+
end
|
4714
|
+
|
4715
|
+
def deserialize(params)
|
4716
|
+
@Id = params['Id']
|
4717
|
+
end
|
4718
|
+
end
|
4719
|
+
|
4720
|
+
# RunOperationTask返回参数结构体
|
4721
|
+
class RunOperationTaskResponse < TencentCloud::Common::AbstractModel
|
4722
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4723
|
+
# @type RequestId: String
|
4724
|
+
|
4725
|
+
attr_accessor :RequestId
|
4726
|
+
|
4727
|
+
def initialize(requestid=nil)
|
4728
|
+
@RequestId = requestid
|
4729
|
+
end
|
4730
|
+
|
4731
|
+
def deserialize(params)
|
4732
|
+
@RequestId = params['RequestId']
|
4733
|
+
end
|
4734
|
+
end
|
4735
|
+
|
4429
4736
|
# SearchAuditLog请求参数结构体
|
4430
4737
|
class SearchAuditLogRequest < TencentCloud::Common::AbstractModel
|
4431
4738
|
# @param StartTime: 开始时间,不得早于当前时间的180天前
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-bh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1038
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|