tencentcloud-sdk-emr 3.0.676 → 3.0.677

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d75cb69ef19f733719b6f64e1fb4b1904753b924
4
- data.tar.gz: c431b48dbf1b90b792800b3e976f556fcb801cc1
3
+ metadata.gz: ceb699a22810bf96620cc94ccfdf4d1fb381e678
4
+ data.tar.gz: b3e44d86488281db70c537b068a8ffbbc3d5263f
5
5
  SHA512:
6
- metadata.gz: a3acc7436db409139242328d0d918102e96ddfe15c75a896b0065e602b92637b7a1f24143ae0133cff1e3635f8a2501aeb2ac9a9a4b7ad614b3b1d2bda9bf0ab
7
- data.tar.gz: e3c750b6f42c88aaacf0c914fbbfc8111a16d4dddf90babb2f8b3080c404cb5c8a200df37cd3753c3a91dc83c58554cb271762d2671a8ed18136e7efe1f4441b
6
+ metadata.gz: a33a103112f999d1cc7698a8f061b38df28ad9bde2e0cd8988303bb4d245ef2deb2a2b1b23a4094c0f41f04234c5093283cc64d6b8d4d4d74af3698e7c64ccfe
7
+ data.tar.gz: 62d4f2958f23b18d09edd3921239ed63b5e7dfb4aa53c5cfb562d958ea8f420e12259ec293c882cdca8ca7561f71ec58064bbc8702a9a6b8a392d56b7c169613
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.676
1
+ 3.0.677
@@ -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.
@@ -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.676
4
+ version: 3.0.677
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-13 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common