tencentcloud-sdk-cls 3.0.444 → 3.0.445
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/v20201016/client.rb +48 -0
- data/lib/v20201016/models.rb +80 -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: 9f3f98d65236f2aa302ff27953a89799d78853d2
|
4
|
+
data.tar.gz: f35e2ff73f9219e73a87e32ae2b2b5266f7c7e94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d06ebde5c969135cd31cb2889c933b25316ebcb02a76ce7f8eef8cff994c6dc38f58ca78493dca7057a26061be957835e5cdd85f80bfe7d5570b989c69e06d99
|
7
|
+
data.tar.gz: 3e8bff9f140108aaebd7793f670f95e5e1ecac7283e64834772239661a7aab76d9f375982f15bce6e71f8ae93d6872763de9bc452089040b5802e87f5c06e724
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.445
|
data/lib/v20201016/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 用于添加机器组信息
|
33
|
+
|
34
|
+
# @param request: Request instance for AddMachineGroupInfo.
|
35
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::AddMachineGroupInfoRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::AddMachineGroupInfoResponse`
|
37
|
+
def AddMachineGroupInfo(request)
|
38
|
+
body = send_request('AddMachineGroupInfo', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddMachineGroupInfoResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 应用采集配置到指定机器组
|
33
57
|
|
34
58
|
# @param request: Request instance for ApplyConfigToMachineGroup.
|
@@ -581,6 +605,30 @@ module TencentCloud
|
|
581
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
606
|
end
|
583
607
|
|
608
|
+
# 用于删除机器组信息
|
609
|
+
|
610
|
+
# @param request: Request instance for DeleteMachineGroupInfo.
|
611
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::DeleteMachineGroupInfoRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::DeleteMachineGroupInfoResponse`
|
613
|
+
def DeleteMachineGroupInfo(request)
|
614
|
+
body = send_request('DeleteMachineGroupInfo', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DeleteMachineGroupInfoResponse.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
|
+
|
584
632
|
# 删除投递规则
|
585
633
|
|
586
634
|
# @param request: Request instance for DeleteShipper.
|
data/lib/v20201016/models.rb
CHANGED
@@ -17,6 +17,46 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Cls
|
19
19
|
module V20201016
|
20
|
+
# AddMachineGroupInfo请求参数结构体
|
21
|
+
class AddMachineGroupInfoRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param GroupId: 机器组ID
|
23
|
+
# @type GroupId: String
|
24
|
+
# @param MachineGroupType: 机器组类型
|
25
|
+
# 目前type支持 ip 和 label
|
26
|
+
# @type MachineGroupType: :class:`Tencentcloud::Cls.v20201016.models.MachineGroupTypeInfo`
|
27
|
+
|
28
|
+
attr_accessor :GroupId, :MachineGroupType
|
29
|
+
|
30
|
+
def initialize(groupid=nil, machinegrouptype=nil)
|
31
|
+
@GroupId = groupid
|
32
|
+
@MachineGroupType = machinegrouptype
|
33
|
+
end
|
34
|
+
|
35
|
+
def deserialize(params)
|
36
|
+
@GroupId = params['GroupId']
|
37
|
+
unless params['MachineGroupType'].nil?
|
38
|
+
@MachineGroupType = MachineGroupTypeInfo.new
|
39
|
+
@MachineGroupType.deserialize(params['MachineGroupType'])
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# AddMachineGroupInfo返回参数结构体
|
45
|
+
class AddMachineGroupInfoResponse < TencentCloud::Common::AbstractModel
|
46
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
47
|
+
# @type RequestId: String
|
48
|
+
|
49
|
+
attr_accessor :RequestId
|
50
|
+
|
51
|
+
def initialize(requestid=nil)
|
52
|
+
@RequestId = requestid
|
53
|
+
end
|
54
|
+
|
55
|
+
def deserialize(params)
|
56
|
+
@RequestId = params['RequestId']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
20
60
|
# 告警多维分析一些配置信息
|
21
61
|
class AlarmAnalysisConfig < TencentCloud::Common::AbstractModel
|
22
62
|
# @param Key: 键
|
@@ -1982,6 +2022,46 @@ module TencentCloud
|
|
1982
2022
|
end
|
1983
2023
|
end
|
1984
2024
|
|
2025
|
+
# DeleteMachineGroupInfo请求参数结构体
|
2026
|
+
class DeleteMachineGroupInfoRequest < TencentCloud::Common::AbstractModel
|
2027
|
+
# @param GroupId: 机器组ID
|
2028
|
+
# @type GroupId: String
|
2029
|
+
# @param MachineGroupType: 机器组类型
|
2030
|
+
# 目前type支持 ip 和 label
|
2031
|
+
# @type MachineGroupType: :class:`Tencentcloud::Cls.v20201016.models.MachineGroupTypeInfo`
|
2032
|
+
|
2033
|
+
attr_accessor :GroupId, :MachineGroupType
|
2034
|
+
|
2035
|
+
def initialize(groupid=nil, machinegrouptype=nil)
|
2036
|
+
@GroupId = groupid
|
2037
|
+
@MachineGroupType = machinegrouptype
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
def deserialize(params)
|
2041
|
+
@GroupId = params['GroupId']
|
2042
|
+
unless params['MachineGroupType'].nil?
|
2043
|
+
@MachineGroupType = MachineGroupTypeInfo.new
|
2044
|
+
@MachineGroupType.deserialize(params['MachineGroupType'])
|
2045
|
+
end
|
2046
|
+
end
|
2047
|
+
end
|
2048
|
+
|
2049
|
+
# DeleteMachineGroupInfo返回参数结构体
|
2050
|
+
class DeleteMachineGroupInfoResponse < TencentCloud::Common::AbstractModel
|
2051
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2052
|
+
# @type RequestId: String
|
2053
|
+
|
2054
|
+
attr_accessor :RequestId
|
2055
|
+
|
2056
|
+
def initialize(requestid=nil)
|
2057
|
+
@RequestId = requestid
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
def deserialize(params)
|
2061
|
+
@RequestId = params['RequestId']
|
2062
|
+
end
|
2063
|
+
end
|
2064
|
+
|
1985
2065
|
# DeleteMachineGroup请求参数结构体
|
1986
2066
|
class DeleteMachineGroupRequest < TencentCloud::Common::AbstractModel
|
1987
2067
|
# @param GroupId: 机器组ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.445
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|