tencentcloud-sdk-cdwpg 3.0.682 → 3.0.683
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/v20201230/client.rb +24 -0
- data/lib/v20201230/models.rb +219 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0305e6ba2c7c9abc02cd14d477980e16a41ef179
|
4
|
+
data.tar.gz: aa1eb4dd326468369913172b040bba2363921c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 562ce6ae12d9c0cdf35afe455adcf9998045ff7fd7b96a20c2e6f746c3ee176bb98e42569a48a0ded8532d12e374f459ebe122283b9ea6d60c92061f3ca018df
|
7
|
+
data.tar.gz: 4d9067a0f401927638fee3fb6d66f468e80a2459ab6666e9353e77dcdbde57163a19c2cadbb84c71b4d636c214ba73bc711f15ca05b5b503fa6890b9cf857b6e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.683
|
data/lib/v20201230/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 获取集群信息
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeInstanceInfo.
|
83
|
+
# @type request: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceInfoRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceInfoResponse`
|
85
|
+
def DescribeInstanceInfo(request)
|
86
|
+
body = send_request('DescribeInstanceInfo', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeInstanceInfoResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 集群详情页中显示集群状态、流程进度等
|
81
105
|
|
82
106
|
# @param request: Request instance for DescribeInstanceState.
|
data/lib/v20201230/models.rb
CHANGED
@@ -41,17 +41,49 @@ module TencentCloud
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# 磁盘信息
|
45
|
+
class CBSSpecInfo < TencentCloud::Common::AbstractModel
|
46
|
+
# @param DiskType: 盘类型
|
47
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
48
|
+
# @type DiskType: String
|
49
|
+
# @param DiskSize: 大小
|
50
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
|
+
# @type DiskSize: Integer
|
52
|
+
# @param DiskCount: 个数
|
53
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
|
+
# @type DiskCount: Integer
|
55
|
+
|
56
|
+
attr_accessor :DiskType, :DiskSize, :DiskCount
|
57
|
+
|
58
|
+
def initialize(disktype=nil, disksize=nil, diskcount=nil)
|
59
|
+
@DiskType = disktype
|
60
|
+
@DiskSize = disksize
|
61
|
+
@DiskCount = diskcount
|
62
|
+
end
|
63
|
+
|
64
|
+
def deserialize(params)
|
65
|
+
@DiskType = params['DiskType']
|
66
|
+
@DiskSize = params['DiskSize']
|
67
|
+
@DiskCount = params['DiskCount']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
44
71
|
# 计费时间参数
|
45
72
|
class ChargeProperties < TencentCloud::Common::AbstractModel
|
46
73
|
# @param RenewFlag: 1-需要自动续期
|
74
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
47
75
|
# @type RenewFlag: Integer
|
48
76
|
# @param TimeSpan: 订单时间范围
|
77
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
49
78
|
# @type TimeSpan: Integer
|
50
79
|
# @param TimeUnit: 时间单位,一般为h和m
|
80
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
81
|
# @type TimeUnit: String
|
52
82
|
# @param PayMode: 计费类型0-按量计费,1-包年包月
|
83
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
53
84
|
# @type PayMode: Integer
|
54
85
|
# @param ChargeType: PREPAID、POSTPAID_BY_HOUR
|
86
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
55
87
|
# @type ChargeType: String
|
56
88
|
|
57
89
|
attr_accessor :RenewFlag, :TimeSpan, :TimeUnit, :PayMode, :ChargeType
|
@@ -161,6 +193,49 @@ module TencentCloud
|
|
161
193
|
end
|
162
194
|
end
|
163
195
|
|
196
|
+
# DescribeInstanceInfo请求参数结构体
|
197
|
+
class DescribeInstanceInfoRequest < TencentCloud::Common::AbstractModel
|
198
|
+
# @param InstanceId: 集群实例ID
|
199
|
+
# @type InstanceId: String
|
200
|
+
|
201
|
+
attr_accessor :InstanceId
|
202
|
+
|
203
|
+
def initialize(instanceid=nil)
|
204
|
+
@InstanceId = instanceid
|
205
|
+
end
|
206
|
+
|
207
|
+
def deserialize(params)
|
208
|
+
@InstanceId = params['InstanceId']
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# DescribeInstanceInfo返回参数结构体
|
213
|
+
class DescribeInstanceInfoResponse < TencentCloud::Common::AbstractModel
|
214
|
+
# @param SimpleInstanceInfo: 1
|
215
|
+
# @type SimpleInstanceInfo: :class:`Tencentcloud::Cdwpg.v20201230.models.SimpleInstanceInfo`
|
216
|
+
# @param ErrorMsg: 1
|
217
|
+
# @type ErrorMsg: String
|
218
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
219
|
+
# @type RequestId: String
|
220
|
+
|
221
|
+
attr_accessor :SimpleInstanceInfo, :ErrorMsg, :RequestId
|
222
|
+
|
223
|
+
def initialize(simpleinstanceinfo=nil, errormsg=nil, requestid=nil)
|
224
|
+
@SimpleInstanceInfo = simpleinstanceinfo
|
225
|
+
@ErrorMsg = errormsg
|
226
|
+
@RequestId = requestid
|
227
|
+
end
|
228
|
+
|
229
|
+
def deserialize(params)
|
230
|
+
unless params['SimpleInstanceInfo'].nil?
|
231
|
+
@SimpleInstanceInfo = SimpleInstanceInfo.new
|
232
|
+
@SimpleInstanceInfo.deserialize(params['SimpleInstanceInfo'])
|
233
|
+
end
|
234
|
+
@ErrorMsg = params['ErrorMsg']
|
235
|
+
@RequestId = params['RequestId']
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
164
239
|
# DescribeInstance请求参数结构体
|
165
240
|
class DescribeInstanceRequest < TencentCloud::Common::AbstractModel
|
166
241
|
# @param InstanceId: 集群实例ID
|
@@ -826,6 +901,41 @@ module TencentCloud
|
|
826
901
|
end
|
827
902
|
end
|
828
903
|
|
904
|
+
# 资源信息
|
905
|
+
class ResourceInfo < TencentCloud::Common::AbstractModel
|
906
|
+
# @param SpecName: 资源名称
|
907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
908
|
+
# @type SpecName: String
|
909
|
+
# @param Count: 资源数
|
910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
911
|
+
# @type Count: Integer
|
912
|
+
# @param DiskSpec: 磁盘信息
|
913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
914
|
+
# @type DiskSpec: :class:`Tencentcloud::Cdwpg.v20201230.models.CBSSpecInfo`
|
915
|
+
# @param Type: 资源类型,DATA
|
916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
917
|
+
# @type Type: String
|
918
|
+
|
919
|
+
attr_accessor :SpecName, :Count, :DiskSpec, :Type
|
920
|
+
|
921
|
+
def initialize(specname=nil, count=nil, diskspec=nil, type=nil)
|
922
|
+
@SpecName = specname
|
923
|
+
@Count = count
|
924
|
+
@DiskSpec = diskspec
|
925
|
+
@Type = type
|
926
|
+
end
|
927
|
+
|
928
|
+
def deserialize(params)
|
929
|
+
@SpecName = params['SpecName']
|
930
|
+
@Count = params['Count']
|
931
|
+
unless params['DiskSpec'].nil?
|
932
|
+
@DiskSpec = CBSSpecInfo.new
|
933
|
+
@DiskSpec.deserialize(params['DiskSpec'])
|
934
|
+
end
|
935
|
+
@Type = params['Type']
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
829
939
|
# 资源规格
|
830
940
|
class ResourceSpecNew < TencentCloud::Common::AbstractModel
|
831
941
|
# @param SpecName: 资源名称
|
@@ -881,6 +991,115 @@ module TencentCloud
|
|
881
991
|
end
|
882
992
|
end
|
883
993
|
|
994
|
+
# 集群信息
|
995
|
+
class SimpleInstanceInfo < TencentCloud::Common::AbstractModel
|
996
|
+
# @param ID: 1
|
997
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
998
|
+
# @type ID: Integer
|
999
|
+
# @param InstanceId: 1
|
1000
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1001
|
+
# @type InstanceId: String
|
1002
|
+
# @param InstanceName: 1
|
1003
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1004
|
+
# @type InstanceName: String
|
1005
|
+
# @param Version: 1
|
1006
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1007
|
+
# @type Version: String
|
1008
|
+
# @param Region: 1
|
1009
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1010
|
+
# @type Region: String
|
1011
|
+
# @param Zone: 1
|
1012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1013
|
+
# @type Zone: String
|
1014
|
+
# @param UserVPCID: 1
|
1015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1016
|
+
# @type UserVPCID: String
|
1017
|
+
# @param UserSubnetID: 1
|
1018
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1019
|
+
# @type UserSubnetID: String
|
1020
|
+
# @param CreateTime: 1
|
1021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1022
|
+
# @type CreateTime: String
|
1023
|
+
# @param ExpireTime: 1
|
1024
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1025
|
+
# @type ExpireTime: String
|
1026
|
+
# @param AccessInfo: 1
|
1027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1028
|
+
# @type AccessInfo: String
|
1029
|
+
# @param RenewFlag: 1
|
1030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1031
|
+
# @type RenewFlag: Integer
|
1032
|
+
# @param ChargeProperties: 1
|
1033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1034
|
+
# @type ChargeProperties: :class:`Tencentcloud::Cdwpg.v20201230.models.ChargeProperties`
|
1035
|
+
# @param Resources: 1
|
1036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1037
|
+
# @type Resources: Array
|
1038
|
+
# @param Tags: 1
|
1039
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1040
|
+
# @type Tags: Array
|
1041
|
+
# @param Status: 1
|
1042
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1043
|
+
# @type Status: Integer
|
1044
|
+
|
1045
|
+
attr_accessor :ID, :InstanceId, :InstanceName, :Version, :Region, :Zone, :UserVPCID, :UserSubnetID, :CreateTime, :ExpireTime, :AccessInfo, :RenewFlag, :ChargeProperties, :Resources, :Tags, :Status
|
1046
|
+
|
1047
|
+
def initialize(id=nil, instanceid=nil, instancename=nil, version=nil, region=nil, zone=nil, uservpcid=nil, usersubnetid=nil, createtime=nil, expiretime=nil, accessinfo=nil, renewflag=nil, chargeproperties=nil, resources=nil, tags=nil, status=nil)
|
1048
|
+
@ID = id
|
1049
|
+
@InstanceId = instanceid
|
1050
|
+
@InstanceName = instancename
|
1051
|
+
@Version = version
|
1052
|
+
@Region = region
|
1053
|
+
@Zone = zone
|
1054
|
+
@UserVPCID = uservpcid
|
1055
|
+
@UserSubnetID = usersubnetid
|
1056
|
+
@CreateTime = createtime
|
1057
|
+
@ExpireTime = expiretime
|
1058
|
+
@AccessInfo = accessinfo
|
1059
|
+
@RenewFlag = renewflag
|
1060
|
+
@ChargeProperties = chargeproperties
|
1061
|
+
@Resources = resources
|
1062
|
+
@Tags = tags
|
1063
|
+
@Status = status
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
def deserialize(params)
|
1067
|
+
@ID = params['ID']
|
1068
|
+
@InstanceId = params['InstanceId']
|
1069
|
+
@InstanceName = params['InstanceName']
|
1070
|
+
@Version = params['Version']
|
1071
|
+
@Region = params['Region']
|
1072
|
+
@Zone = params['Zone']
|
1073
|
+
@UserVPCID = params['UserVPCID']
|
1074
|
+
@UserSubnetID = params['UserSubnetID']
|
1075
|
+
@CreateTime = params['CreateTime']
|
1076
|
+
@ExpireTime = params['ExpireTime']
|
1077
|
+
@AccessInfo = params['AccessInfo']
|
1078
|
+
@RenewFlag = params['RenewFlag']
|
1079
|
+
unless params['ChargeProperties'].nil?
|
1080
|
+
@ChargeProperties = ChargeProperties.new
|
1081
|
+
@ChargeProperties.deserialize(params['ChargeProperties'])
|
1082
|
+
end
|
1083
|
+
unless params['Resources'].nil?
|
1084
|
+
@Resources = []
|
1085
|
+
params['Resources'].each do |i|
|
1086
|
+
resourceinfo_tmp = ResourceInfo.new
|
1087
|
+
resourceinfo_tmp.deserialize(i)
|
1088
|
+
@Resources << resourceinfo_tmp
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
unless params['Tags'].nil?
|
1092
|
+
@Tags = []
|
1093
|
+
params['Tags'].each do |i|
|
1094
|
+
tag_tmp = Tag.new
|
1095
|
+
tag_tmp.deserialize(i)
|
1096
|
+
@Tags << tag_tmp
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
@Status = params['Status']
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
884
1103
|
# 标签描述
|
885
1104
|
class Tag < TencentCloud::Common::AbstractModel
|
886
1105
|
# @param TagKey: 标签的键
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdwpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.683
|
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-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/tencentcloud-sdk-cdwpg.rb
|
37
|
-
- lib/v20201230/client.rb
|
38
36
|
- lib/v20201230/models.rb
|
37
|
+
- lib/v20201230/client.rb
|
38
|
+
- lib/tencentcloud-sdk-cdwpg.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|