tencentcloud-sdk-dasb 3.0.662 → 3.0.664
Sign up to get free protection for your applications and to get access to all the features.
- 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: a0b87614e7a8a3ea888d900c7e8e38a10cb00f34
|
4
|
+
data.tar.gz: 679c11a08f2f38a018b7339cc5e80b0b08c2831a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 611404809d780c592b8133fceed06a80c391d2677b1798e4fb0c6a8b72dcfdcc13d50c92f3d6a6b744d5d949dd88f7d4d96bd2fb8413fef3c0069aa9214d3c23
|
7
|
+
data.tar.gz: 68c8148157f2c7108192f370d53280e2a428f9451a4937a7d45b231917837c77634b154b1283e3255f858c804cd3ed2ccc039b24b846e6a00fd3bbb6b75debe5
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.664
|
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.664
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|