tencentcloud-sdk-emr 1.0.303 → 1.0.304
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/v20190103/client.rb +96 -0
- data/lib/v20190103/models.rb +182 -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: 6e36869f9279d257ca11c7db4ab58ebfc970ea88
|
4
|
+
data.tar.gz: 32e12110aede09c09bbd31a6b72307e74c1bd931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75de388b6eace4300b5db2135b3e23297d9a31d1eb4b0f51d3b420f3954c1467e4530e8d8f28bcba345a5338d092f9b50f15d7ba5a7506bc3c5593db049c8e52
|
7
|
+
data.tar.gz: ae353106a5873bc5c3299154154d50b7761d2111474683b9c2825ce3cc06e4e13847c4b06b620a6f2d5d9ddc0037c2b7203cc39426483437b5be24d9dc532546
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.304
|
data/lib/v20190103/client.rb
CHANGED
@@ -173,6 +173,30 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 获取yarn资源调度页面的数据
|
177
|
+
|
178
|
+
# @param request: Request instance for DescribeResourceSchedule.
|
179
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::DescribeResourceScheduleResponse`
|
181
|
+
def DescribeResourceSchedule(request)
|
182
|
+
body = send_request('DescribeResourceSchedule', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DescribeResourceScheduleResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
176
200
|
# 集群续费询价。
|
177
201
|
|
178
202
|
# @param request: Request instance for InquirePriceRenewEmr.
|
@@ -293,6 +317,78 @@ module TencentCloud
|
|
293
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
318
|
end
|
295
319
|
|
320
|
+
# 刷新动态资源池
|
321
|
+
|
322
|
+
# @param request: Request instance for ModifyResourcePools.
|
323
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourcePoolsRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyResourcePoolsResponse`
|
325
|
+
def ModifyResourcePools(request)
|
326
|
+
body = send_request('ModifyResourcePools', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = ModifyResourcePoolsResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
344
|
+
# 修改yarn资源调度的资源配置
|
345
|
+
|
346
|
+
# @param request: Request instance for ModifyResourceScheduleConfig.
|
347
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceScheduleConfigRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyResourceScheduleConfigResponse`
|
349
|
+
def ModifyResourceScheduleConfig(request)
|
350
|
+
body = send_request('ModifyResourceScheduleConfig', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = ModifyResourceScheduleConfigResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 修改了yarn的资源调度器,点击部署生效
|
369
|
+
|
370
|
+
# @param request: Request instance for ModifyResourceScheduler.
|
371
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourceSchedulerRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyResourceSchedulerResponse`
|
373
|
+
def ModifyResourceScheduler(request)
|
374
|
+
body = send_request('ModifyResourceScheduler', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = ModifyResourceSchedulerResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
296
392
|
# 创建流程作业
|
297
393
|
|
298
394
|
# @param request: Request instance for RunJobFlow.
|
data/lib/v20190103/models.rb
CHANGED
@@ -1174,6 +1174,54 @@ module TencentCloud
|
|
1174
1174
|
end
|
1175
1175
|
end
|
1176
1176
|
|
1177
|
+
# DescribeResourceSchedule请求参数结构体
|
1178
|
+
class DescribeResourceScheduleRequest < TencentCloud::Common::AbstractModel
|
1179
|
+
# @param InstanceId: emr集群的英文id
|
1180
|
+
# @type InstanceId: String
|
1181
|
+
|
1182
|
+
attr_accessor :InstanceId
|
1183
|
+
|
1184
|
+
def initialize(instanceid=nil)
|
1185
|
+
@InstanceId = instanceid
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
def deserialize(params)
|
1189
|
+
@InstanceId = params['InstanceId']
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
# DescribeResourceSchedule返回参数结构体
|
1194
|
+
class DescribeResourceScheduleResponse < TencentCloud::Common::AbstractModel
|
1195
|
+
# @param OpenSwitch: 资源调度功能是否开启
|
1196
|
+
# @type OpenSwitch: Boolean
|
1197
|
+
# @param Scheduler: 正在使用的资源调度器
|
1198
|
+
# @type Scheduler: String
|
1199
|
+
# @param FSInfo: 公平调度器的信息
|
1200
|
+
# @type FSInfo: String
|
1201
|
+
# @param CSInfo: 容量调度器的信息
|
1202
|
+
# @type CSInfo: String
|
1203
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1204
|
+
# @type RequestId: String
|
1205
|
+
|
1206
|
+
attr_accessor :OpenSwitch, :Scheduler, :FSInfo, :CSInfo, :RequestId
|
1207
|
+
|
1208
|
+
def initialize(openswitch=nil, scheduler=nil, fsinfo=nil, csinfo=nil, requestid=nil)
|
1209
|
+
@OpenSwitch = openswitch
|
1210
|
+
@Scheduler = scheduler
|
1211
|
+
@FSInfo = fsinfo
|
1212
|
+
@CSInfo = csinfo
|
1213
|
+
@RequestId = requestid
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
def deserialize(params)
|
1217
|
+
@OpenSwitch = params['OpenSwitch']
|
1218
|
+
@Scheduler = params['Scheduler']
|
1219
|
+
@FSInfo = params['FSInfo']
|
1220
|
+
@CSInfo = params['CSInfo']
|
1221
|
+
@RequestId = params['RequestId']
|
1222
|
+
end
|
1223
|
+
end
|
1224
|
+
|
1177
1225
|
# 磁盘组。
|
1178
1226
|
class DiskGroup < TencentCloud::Common::AbstractModel
|
1179
1227
|
# @param Spec: 磁盘规格。
|
@@ -2145,6 +2193,140 @@ module TencentCloud
|
|
2145
2193
|
end
|
2146
2194
|
end
|
2147
2195
|
|
2196
|
+
# ModifyResourcePools请求参数结构体
|
2197
|
+
class ModifyResourcePoolsRequest < TencentCloud::Common::AbstractModel
|
2198
|
+
# @param InstanceId: emr集群id
|
2199
|
+
# @type InstanceId: String
|
2200
|
+
# @param Key: 标识是fair还是capacity
|
2201
|
+
# @type Key: String
|
2202
|
+
|
2203
|
+
attr_accessor :InstanceId, :Key
|
2204
|
+
|
2205
|
+
def initialize(instanceid=nil, key=nil)
|
2206
|
+
@InstanceId = instanceid
|
2207
|
+
@Key = key
|
2208
|
+
end
|
2209
|
+
|
2210
|
+
def deserialize(params)
|
2211
|
+
@InstanceId = params['InstanceId']
|
2212
|
+
@Key = params['Key']
|
2213
|
+
end
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
# ModifyResourcePools返回参数结构体
|
2217
|
+
class ModifyResourcePoolsResponse < TencentCloud::Common::AbstractModel
|
2218
|
+
# @param IsDraft: false表示不是草稿,提交刷新请求成功
|
2219
|
+
# @type IsDraft: Boolean
|
2220
|
+
# @param ErrorMsg: 扩展字段,暂时没用
|
2221
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2222
|
+
# @type ErrorMsg: String
|
2223
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2224
|
+
# @type RequestId: String
|
2225
|
+
|
2226
|
+
attr_accessor :IsDraft, :ErrorMsg, :RequestId
|
2227
|
+
|
2228
|
+
def initialize(isdraft=nil, errormsg=nil, requestid=nil)
|
2229
|
+
@IsDraft = isdraft
|
2230
|
+
@ErrorMsg = errormsg
|
2231
|
+
@RequestId = requestid
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
def deserialize(params)
|
2235
|
+
@IsDraft = params['IsDraft']
|
2236
|
+
@ErrorMsg = params['ErrorMsg']
|
2237
|
+
@RequestId = params['RequestId']
|
2238
|
+
end
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
# ModifyResourceScheduleConfig请求参数结构体
|
2242
|
+
class ModifyResourceScheduleConfigRequest < TencentCloud::Common::AbstractModel
|
2243
|
+
# @param InstanceId: emr集群的英文id
|
2244
|
+
# @type InstanceId: String
|
2245
|
+
# @param Key: 业务标识,fair表示编辑公平的配置项,fairPlan表示编辑执行计划,capacity表示编辑容量的配置项
|
2246
|
+
# @type Key: String
|
2247
|
+
# @param Value: 修改后的模块消息
|
2248
|
+
# @type Value: String
|
2249
|
+
|
2250
|
+
attr_accessor :InstanceId, :Key, :Value
|
2251
|
+
|
2252
|
+
def initialize(instanceid=nil, key=nil, value=nil)
|
2253
|
+
@InstanceId = instanceid
|
2254
|
+
@Key = key
|
2255
|
+
@Value = value
|
2256
|
+
end
|
2257
|
+
|
2258
|
+
def deserialize(params)
|
2259
|
+
@InstanceId = params['InstanceId']
|
2260
|
+
@Key = params['Key']
|
2261
|
+
@Value = params['Value']
|
2262
|
+
end
|
2263
|
+
end
|
2264
|
+
|
2265
|
+
# ModifyResourceScheduleConfig返回参数结构体
|
2266
|
+
class ModifyResourceScheduleConfigResponse < TencentCloud::Common::AbstractModel
|
2267
|
+
# @param IsDraft: true为草稿,表示还没有刷新资源池
|
2268
|
+
# @type IsDraft: Boolean
|
2269
|
+
# @param ErrorMsg: 校验错误信息,如果不为空,则说明校验失败,配置没有成功
|
2270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2271
|
+
# @type ErrorMsg: String
|
2272
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2273
|
+
# @type RequestId: String
|
2274
|
+
|
2275
|
+
attr_accessor :IsDraft, :ErrorMsg, :RequestId
|
2276
|
+
|
2277
|
+
def initialize(isdraft=nil, errormsg=nil, requestid=nil)
|
2278
|
+
@IsDraft = isdraft
|
2279
|
+
@ErrorMsg = errormsg
|
2280
|
+
@RequestId = requestid
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
def deserialize(params)
|
2284
|
+
@IsDraft = params['IsDraft']
|
2285
|
+
@ErrorMsg = params['ErrorMsg']
|
2286
|
+
@RequestId = params['RequestId']
|
2287
|
+
end
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
# ModifyResourceScheduler请求参数结构体
|
2291
|
+
class ModifyResourceSchedulerRequest < TencentCloud::Common::AbstractModel
|
2292
|
+
# @param InstanceId: emr集群的英文id
|
2293
|
+
# @type InstanceId: String
|
2294
|
+
# @param OldValue: 老的调度器:fair
|
2295
|
+
# @type OldValue: String
|
2296
|
+
# @param NewValue: 新的调度器:capacity
|
2297
|
+
# @type NewValue: String
|
2298
|
+
|
2299
|
+
attr_accessor :InstanceId, :OldValue, :NewValue
|
2300
|
+
|
2301
|
+
def initialize(instanceid=nil, oldvalue=nil, newvalue=nil)
|
2302
|
+
@InstanceId = instanceid
|
2303
|
+
@OldValue = oldvalue
|
2304
|
+
@NewValue = newvalue
|
2305
|
+
end
|
2306
|
+
|
2307
|
+
def deserialize(params)
|
2308
|
+
@InstanceId = params['InstanceId']
|
2309
|
+
@OldValue = params['OldValue']
|
2310
|
+
@NewValue = params['NewValue']
|
2311
|
+
end
|
2312
|
+
end
|
2313
|
+
|
2314
|
+
# ModifyResourceScheduler返回参数结构体
|
2315
|
+
class ModifyResourceSchedulerResponse < TencentCloud::Common::AbstractModel
|
2316
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2317
|
+
# @type RequestId: String
|
2318
|
+
|
2319
|
+
attr_accessor :RequestId
|
2320
|
+
|
2321
|
+
def initialize(requestid=nil)
|
2322
|
+
@RequestId = requestid
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
def deserialize(params)
|
2326
|
+
@RequestId = params['RequestId']
|
2327
|
+
end
|
2328
|
+
end
|
2329
|
+
|
2148
2330
|
# 多云盘参数
|
2149
2331
|
class MultiDisk < TencentCloud::Common::AbstractModel
|
2150
2332
|
# @param DiskType: 云盘类型
|
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: 1.0.
|
4
|
+
version: 1.0.304
|
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-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|