tencentcloud-sdk-dasb 3.0.662 → 3.0.663
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/v20191018/client.rb +24 -0
- data/lib/v20191018/models.rb +45 -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: 2ce20e314545cccc839dd0e7d29f31a2ffc239ff
|
4
|
+
data.tar.gz: 3c488a79043022209293a07a9cf2d0572338b8da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab99215f1d392125f2824f2613e0222c4f954791de57c03811d3c8333c44d9a8b27cac435d5fbf75705f8d19d85b5851651feacd067fd9531d1a57726c937813
|
7
|
+
data.tar.gz: 6131082b483cfd5084d32c69e1b1739571dfbf0bba9b64d5222fc976464cb6fef894b573c9d0e129ceffe80313fe58ecb3178e655a976d7d9b097bae71e6dbeb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.663
|
data/lib/v20191018/client.rb
CHANGED
@@ -941,6 +941,30 @@ module TencentCloud
|
|
941
941
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
942
|
end
|
943
943
|
|
944
|
+
# 修改高危命令模板
|
945
|
+
|
946
|
+
# @param request: Request instance for ModifyCmdTemplate.
|
947
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::ModifyCmdTemplateRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::ModifyCmdTemplateResponse`
|
949
|
+
def ModifyCmdTemplate(request)
|
950
|
+
body = send_request('ModifyCmdTemplate', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = ModifyCmdTemplateResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
944
968
|
# 修改资产信息
|
945
969
|
|
946
970
|
# @param request: Request instance for ModifyDevice.
|
data/lib/v20191018/models.rb
CHANGED
@@ -2826,6 +2826,51 @@ module TencentCloud
|
|
2826
2826
|
end
|
2827
2827
|
end
|
2828
2828
|
|
2829
|
+
# ModifyCmdTemplate请求参数结构体
|
2830
|
+
class ModifyCmdTemplateRequest < TencentCloud::Common::AbstractModel
|
2831
|
+
# @param Name: 模板名,最长32字符,不能包含空白字符
|
2832
|
+
# @type Name: String
|
2833
|
+
# @param CmdList: 命令列表,\n分隔,最长32768字节
|
2834
|
+
# @type CmdList: String
|
2835
|
+
# @param Id: 命令模板ID
|
2836
|
+
# @type Id: Integer
|
2837
|
+
# @param Encoding: CmdList字段前端是否base64传值。
|
2838
|
+
# 0:否,1:是
|
2839
|
+
# @type Encoding: Integer
|
2840
|
+
|
2841
|
+
attr_accessor :Name, :CmdList, :Id, :Encoding
|
2842
|
+
|
2843
|
+
def initialize(name=nil, cmdlist=nil, id=nil, encoding=nil)
|
2844
|
+
@Name = name
|
2845
|
+
@CmdList = cmdlist
|
2846
|
+
@Id = id
|
2847
|
+
@Encoding = encoding
|
2848
|
+
end
|
2849
|
+
|
2850
|
+
def deserialize(params)
|
2851
|
+
@Name = params['Name']
|
2852
|
+
@CmdList = params['CmdList']
|
2853
|
+
@Id = params['Id']
|
2854
|
+
@Encoding = params['Encoding']
|
2855
|
+
end
|
2856
|
+
end
|
2857
|
+
|
2858
|
+
# ModifyCmdTemplate返回参数结构体
|
2859
|
+
class ModifyCmdTemplateResponse < TencentCloud::Common::AbstractModel
|
2860
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2861
|
+
# @type RequestId: String
|
2862
|
+
|
2863
|
+
attr_accessor :RequestId
|
2864
|
+
|
2865
|
+
def initialize(requestid=nil)
|
2866
|
+
@RequestId = requestid
|
2867
|
+
end
|
2868
|
+
|
2869
|
+
def deserialize(params)
|
2870
|
+
@RequestId = params['RequestId']
|
2871
|
+
end
|
2872
|
+
end
|
2873
|
+
|
2829
2874
|
# ModifyDeviceGroup请求参数结构体
|
2830
2875
|
class ModifyDeviceGroupRequest < TencentCloud::Common::AbstractModel
|
2831
2876
|
# @param Name: 资产组名,最大长度32字符,不能为空
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dasb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.663
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|