tencentcloud-sdk-emr 3.0.676 → 3.0.678
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/v20190103/client.rb +24 -0
- data/lib/v20190103/models.rb +146 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8e44bec43c1f3aa8c72332780a70db38320600f
|
4
|
+
data.tar.gz: 763f5f8aa548c3011458ada62e81a4b6421d03d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf99d44d1028e451f8daa9f3c3c2da89fe0bc65fd78c01aac8fa89f2860888dead5a966ad4ba07df7adc09c1a1775de2dc188914695a17dd977a5d4098a8b5d
|
7
|
+
data.tar.gz: 4c0aeafd0536920d69ab03170bef025abe310debc33b1a0263fa79c89dca929ff2ed54ccbb103aa4180597de11a934b8813c4cf761e0eeaf0a7a83d44da98014
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.678
|
data/lib/v20190103/client.rb
CHANGED
@@ -126,6 +126,30 @@ module TencentCloud
|
|
126
126
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
127
127
|
end
|
128
128
|
|
129
|
+
# 获取集群的自动扩缩容的详细记录
|
130
|
+
|
131
|
+
# @param request: Request instance for DescribeAutoScaleRecords.
|
132
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeAutoScaleRecordsRequest`
|
133
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeAutoScaleRecordsResponse`
|
134
|
+
def DescribeAutoScaleRecords(request)
|
135
|
+
body = send_request('DescribeAutoScaleRecords', request.serialize)
|
136
|
+
response = JSON.parse(body)
|
137
|
+
if response['Response'].key?('Error') == false
|
138
|
+
model = DescribeAutoScaleRecordsResponse.new
|
139
|
+
model.deserialize(response['Response'])
|
140
|
+
model
|
141
|
+
else
|
142
|
+
code = response['Response']['Error']['Code']
|
143
|
+
message = response['Response']['Error']['Message']
|
144
|
+
reqid = response['Response']['RequestId']
|
145
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
146
|
+
end
|
147
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
148
|
+
raise e
|
149
|
+
rescue StandardError => e
|
150
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
151
|
+
end
|
152
|
+
|
129
153
|
# 查询集群节点信息
|
130
154
|
|
131
155
|
# @param request: Request instance for DescribeClusterNodes.
|
data/lib/v20190103/models.rb
CHANGED
@@ -178,6 +178,64 @@ module TencentCloud
|
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
|
+
# 弹性扩缩容记录
|
182
|
+
class AutoScaleRecord < TencentCloud::Common::AbstractModel
|
183
|
+
# @param StrategyName: 扩缩容规则名。
|
184
|
+
# @type StrategyName: String
|
185
|
+
# @param ScaleAction: "SCALE_OUT"和"SCALE_IN",分别表示扩容和缩容。
|
186
|
+
# @type ScaleAction: String
|
187
|
+
# @param ActionStatus: 取值为"SUCCESS","FAILED","PART_SUCCESS","IN_PROCESS",分别表示成功、失败、部分成功和流程中。
|
188
|
+
# @type ActionStatus: String
|
189
|
+
# @param ActionTime: 流程触发时间。
|
190
|
+
# @type ActionTime: String
|
191
|
+
# @param ScaleInfo: 扩缩容相关描述信息。
|
192
|
+
# @type ScaleInfo: String
|
193
|
+
# @param ExpectScaleNum: 只在ScaleAction为SCALE_OUT时有效。
|
194
|
+
# @type ExpectScaleNum: Integer
|
195
|
+
# @param EndTime: 流程结束时间。
|
196
|
+
# @type EndTime: String
|
197
|
+
# @param StrategyType: 策略类型,按负载或者按时间,1表示负载伸缩,2表示时间伸缩
|
198
|
+
# @type StrategyType: Integer
|
199
|
+
# @param SpecInfo: 扩容时所使用规格信息。
|
200
|
+
# @type SpecInfo: String
|
201
|
+
# @param CompensateFlag: 补偿扩容,0表示不开启,1表示开启
|
202
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
203
|
+
# @type CompensateFlag: Integer
|
204
|
+
# @param CompensateCount: 补偿次数
|
205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
206
|
+
# @type CompensateCount: Integer
|
207
|
+
|
208
|
+
attr_accessor :StrategyName, :ScaleAction, :ActionStatus, :ActionTime, :ScaleInfo, :ExpectScaleNum, :EndTime, :StrategyType, :SpecInfo, :CompensateFlag, :CompensateCount
|
209
|
+
|
210
|
+
def initialize(strategyname=nil, scaleaction=nil, actionstatus=nil, actiontime=nil, scaleinfo=nil, expectscalenum=nil, endtime=nil, strategytype=nil, specinfo=nil, compensateflag=nil, compensatecount=nil)
|
211
|
+
@StrategyName = strategyname
|
212
|
+
@ScaleAction = scaleaction
|
213
|
+
@ActionStatus = actionstatus
|
214
|
+
@ActionTime = actiontime
|
215
|
+
@ScaleInfo = scaleinfo
|
216
|
+
@ExpectScaleNum = expectscalenum
|
217
|
+
@EndTime = endtime
|
218
|
+
@StrategyType = strategytype
|
219
|
+
@SpecInfo = specinfo
|
220
|
+
@CompensateFlag = compensateflag
|
221
|
+
@CompensateCount = compensatecount
|
222
|
+
end
|
223
|
+
|
224
|
+
def deserialize(params)
|
225
|
+
@StrategyName = params['StrategyName']
|
226
|
+
@ScaleAction = params['ScaleAction']
|
227
|
+
@ActionStatus = params['ActionStatus']
|
228
|
+
@ActionTime = params['ActionTime']
|
229
|
+
@ScaleInfo = params['ScaleInfo']
|
230
|
+
@ExpectScaleNum = params['ExpectScaleNum']
|
231
|
+
@EndTime = params['EndTime']
|
232
|
+
@StrategyType = params['StrategyType']
|
233
|
+
@SpecInfo = params['SpecInfo']
|
234
|
+
@CompensateFlag = params['CompensateFlag']
|
235
|
+
@CompensateCount = params['CompensateCount']
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
181
239
|
# 引导脚本
|
182
240
|
class BootstrapAction < TencentCloud::Common::AbstractModel
|
183
241
|
# @param Path: 脚本位置,支持cos上的文件,且只支持https协议。
|
@@ -1343,6 +1401,72 @@ module TencentCloud
|
|
1343
1401
|
end
|
1344
1402
|
end
|
1345
1403
|
|
1404
|
+
# DescribeAutoScaleRecords请求参数结构体
|
1405
|
+
class DescribeAutoScaleRecordsRequest < TencentCloud::Common::AbstractModel
|
1406
|
+
# @param InstanceId: 实例ID。
|
1407
|
+
# @type InstanceId: String
|
1408
|
+
# @param Filters: 记录过滤参数,目前仅能为“StartTime”,“EndTime”和“StrategyName”。StartTime和EndTime支持2006-01-02 15:04:05 或者2006/01/02 15:04:05的时间格式
|
1409
|
+
# @type Filters: Array
|
1410
|
+
# @param Offset: 分页参数。
|
1411
|
+
# @type Offset: Integer
|
1412
|
+
# @param Limit: 分页参数。最大支持100
|
1413
|
+
# @type Limit: Integer
|
1414
|
+
|
1415
|
+
attr_accessor :InstanceId, :Filters, :Offset, :Limit
|
1416
|
+
|
1417
|
+
def initialize(instanceid=nil, filters=nil, offset=nil, limit=nil)
|
1418
|
+
@InstanceId = instanceid
|
1419
|
+
@Filters = filters
|
1420
|
+
@Offset = offset
|
1421
|
+
@Limit = limit
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
def deserialize(params)
|
1425
|
+
@InstanceId = params['InstanceId']
|
1426
|
+
unless params['Filters'].nil?
|
1427
|
+
@Filters = []
|
1428
|
+
params['Filters'].each do |i|
|
1429
|
+
keyvalue_tmp = KeyValue.new
|
1430
|
+
keyvalue_tmp.deserialize(i)
|
1431
|
+
@Filters << keyvalue_tmp
|
1432
|
+
end
|
1433
|
+
end
|
1434
|
+
@Offset = params['Offset']
|
1435
|
+
@Limit = params['Limit']
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# DescribeAutoScaleRecords返回参数结构体
|
1440
|
+
class DescribeAutoScaleRecordsResponse < TencentCloud::Common::AbstractModel
|
1441
|
+
# @param TotalCount: 总扩缩容记录数。
|
1442
|
+
# @type TotalCount: Integer
|
1443
|
+
# @param RecordList: 记录列表。
|
1444
|
+
# @type RecordList: Array
|
1445
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1446
|
+
# @type RequestId: String
|
1447
|
+
|
1448
|
+
attr_accessor :TotalCount, :RecordList, :RequestId
|
1449
|
+
|
1450
|
+
def initialize(totalcount=nil, recordlist=nil, requestid=nil)
|
1451
|
+
@TotalCount = totalcount
|
1452
|
+
@RecordList = recordlist
|
1453
|
+
@RequestId = requestid
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
def deserialize(params)
|
1457
|
+
@TotalCount = params['TotalCount']
|
1458
|
+
unless params['RecordList'].nil?
|
1459
|
+
@RecordList = []
|
1460
|
+
params['RecordList'].each do |i|
|
1461
|
+
autoscalerecord_tmp = AutoScaleRecord.new
|
1462
|
+
autoscalerecord_tmp.deserialize(i)
|
1463
|
+
@RecordList << autoscalerecord_tmp
|
1464
|
+
end
|
1465
|
+
end
|
1466
|
+
@RequestId = params['RequestId']
|
1467
|
+
end
|
1468
|
+
end
|
1469
|
+
|
1346
1470
|
# DescribeClusterNodes请求参数结构体
|
1347
1471
|
class DescribeClusterNodesRequest < TencentCloud::Common::AbstractModel
|
1348
1472
|
# @param InstanceId: 集群实例ID,实例ID形如: emr-xxxxxxxx
|
@@ -3622,6 +3746,28 @@ module TencentCloud
|
|
3622
3746
|
end
|
3623
3747
|
end
|
3624
3748
|
|
3749
|
+
# 键值对,主要用来做Filter
|
3750
|
+
class KeyValue < TencentCloud::Common::AbstractModel
|
3751
|
+
# @param Key: 键
|
3752
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3753
|
+
# @type Key: String
|
3754
|
+
# @param Value: 值
|
3755
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3756
|
+
# @type Value: String
|
3757
|
+
|
3758
|
+
attr_accessor :Key, :Value
|
3759
|
+
|
3760
|
+
def initialize(key=nil, value=nil)
|
3761
|
+
@Key = key
|
3762
|
+
@Value = value
|
3763
|
+
end
|
3764
|
+
|
3765
|
+
def deserialize(params)
|
3766
|
+
@Key = params['Key']
|
3767
|
+
@Value = params['Value']
|
3768
|
+
end
|
3769
|
+
end
|
3770
|
+
|
3625
3771
|
# 登录设置
|
3626
3772
|
class LoginSettings < TencentCloud::Common::AbstractModel
|
3627
3773
|
# @param Password: 实例登录密码,8-16个字符,包含大写字母、小写字母、数字和特殊字符四种,特殊符号仅支持!@%^*,密码第一位不能为特殊字符
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-emr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.678
|
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-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,8 +34,8 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-emr.rb
|
37
|
-
- lib/v20190103/client.rb
|
38
37
|
- lib/v20190103/models.rb
|
38
|
+
- lib/v20190103/client.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|