tencentcloud-sdk-emr 1.0.315 → 1.0.316

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: a4d9d8dbda43a4129fac85dee6a6edcc62ad4aa6
4
- data.tar.gz: 9b4098ed05ff647a67b4817c9cdb78bd48d21358
3
+ metadata.gz: ecff3c62d55b39d4e89ba4f200c9ae1eed06622f
4
+ data.tar.gz: a71e9587a30fb4791d670ad47821baa06f2334fc
5
5
  SHA512:
6
- metadata.gz: 8bded685d914b03cbee3e29b96b1e5e00533fef461811292a55d09da84c780a76bc7c57b89c240ed139b55b576c0c98d0be37ba5bbac9df82d4578939bddede5
7
- data.tar.gz: a069cb923e280905a1baaae994afde69cc9e08cfb615def7c73930e19724d5e51562a9e385a53d955e933913dfce0b63d95f71fa7e4dea640b534f5df4049ea8
6
+ metadata.gz: 2b3e9f2702999528afaba0153f0fc9bfc1161f25cd8c4078c106b83e2e85d3b75b251cf1e797522855d8ac4b54a9dafdb4da681e889fde8c688fa360925913ee
7
+ data.tar.gz: f03faa119313b279353cee14c145f40c6e02b1325cabe49f628c2835dc5385739bd198e875df652e10cc6f39fbc63d43837f2fbb94369f0d676bbcb12e71bd7c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.315
1
+ 1.0.316
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 新增用户列表(用户管理)
33
+
34
+ # @param request: Request instance for AddUsersForUserManager.
35
+ # @type request: :class:`Tencentcloud::emr::V20190103::AddUsersForUserManagerRequest`
36
+ # @rtype: :class:`Tencentcloud::emr::V20190103::AddUsersForUserManagerResponse`
37
+ def AddUsersForUserManager(request)
38
+ body = send_request('AddUsersForUserManager', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddUsersForUserManagerResponse.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
  # 创建EMR集群实例
33
57
 
34
58
  # @param request: Request instance for CreateInstance.
@@ -149,6 +173,30 @@ module TencentCloud
149
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
174
  end
151
175
 
176
+ # EMR集群实例列表查询
177
+
178
+ # @param request: Request instance for DescribeInstancesList.
179
+ # @type request: :class:`Tencentcloud::emr::V20190103::DescribeInstancesListRequest`
180
+ # @rtype: :class:`Tencentcloud::emr::V20190103::DescribeInstancesListResponse`
181
+ def DescribeInstancesList(request)
182
+ body = send_request('DescribeInstancesList', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeInstancesListResponse.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
+
152
200
  # 查询流程任务
153
201
 
154
202
  # @param request: Request instance for DescribeJobFlow.
@@ -17,6 +17,45 @@
17
17
  module TencentCloud
18
18
  module Emr
19
19
  module V20190103
20
+ # AddUsersForUserManager请求参数结构体
21
+ class AddUsersForUserManagerRequest < TencentCloud::Common::AbstractModel
22
+ # @param UserManagerUserList: 用户信息列表
23
+ # @type UserManagerUserList: Array
24
+
25
+ attr_accessor :UserManagerUserList
26
+
27
+ def initialize(usermanageruserlist=nil)
28
+ @UserManagerUserList = usermanageruserlist
29
+ end
30
+
31
+ def deserialize(params)
32
+ unless params['UserManagerUserList'].nil?
33
+ @UserManagerUserList = []
34
+ params['UserManagerUserList'].each do |i|
35
+ userinfoforusermanager_tmp = UserInfoForUserManager.new
36
+ userinfoforusermanager_tmp.deserialize(i)
37
+ @UserManagerUserList << userinfoforusermanager_tmp
38
+ end
39
+ end
40
+ end
41
+ end
42
+
43
+ # AddUsersForUserManager返回参数结构体
44
+ class AddUsersForUserManagerResponse < TencentCloud::Common::AbstractModel
45
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
46
+ # @type RequestId: String
47
+
48
+ attr_accessor :RequestId
49
+
50
+ def initialize(requestid=nil)
51
+ @RequestId = requestid
52
+ end
53
+
54
+ def deserialize(params)
55
+ @RequestId = params['RequestId']
56
+ end
57
+ end
58
+
20
59
  # 引导脚本
21
60
  class BootstrapAction < TencentCloud::Common::AbstractModel
22
61
  # @param Path: 脚本位置,支持cos上的文件,且只支持https协议。
@@ -1079,6 +1118,80 @@ module TencentCloud
1079
1118
  end
1080
1119
  end
1081
1120
 
1121
+ # DescribeInstancesList请求参数结构体
1122
+ class DescribeInstancesListRequest < TencentCloud::Common::AbstractModel
1123
+ # @param DisplayStrategy: 集群筛选策略。取值范围:<li>clusterList:表示查询除了已销毁集群之外的集群列表。</li><li>monitorManage:表示查询除了已销毁、创建中以及创建失败的集群之外的集群列表。</li><li>cloudHardwareManage/componentManage:目前这两个取值为预留取值,暂时和monitorManage表示同样的含义。</li>
1124
+ # @type DisplayStrategy: String
1125
+ # @param Offset: 页编号,默认值为0,表示第一页。
1126
+ # @type Offset: Integer
1127
+ # @param Limit: 每页返回数量,默认值为10,最大值为100。
1128
+ # @type Limit: Integer
1129
+ # @param OrderField: 排序字段。取值范围:<li>clusterId:表示按照实例ID排序。</li><li>addTime:表示按照实例创建时间排序。</li><li>status:表示按照实例的状态码排序。</li>
1130
+ # @type OrderField: String
1131
+ # @param Asc: 按照OrderField升序或者降序进行排序。取值范围:<li>0:表示降序。</li><li>1:表示升序。</li>默认值为0。
1132
+ # @type Asc: Integer
1133
+ # @param Filters: 自定义查询
1134
+ # @type Filters: Array
1135
+
1136
+ attr_accessor :DisplayStrategy, :Offset, :Limit, :OrderField, :Asc, :Filters
1137
+
1138
+ def initialize(displaystrategy=nil, offset=nil, limit=nil, orderfield=nil, asc=nil, filters=nil)
1139
+ @DisplayStrategy = displaystrategy
1140
+ @Offset = offset
1141
+ @Limit = limit
1142
+ @OrderField = orderfield
1143
+ @Asc = asc
1144
+ @Filters = filters
1145
+ end
1146
+
1147
+ def deserialize(params)
1148
+ @DisplayStrategy = params['DisplayStrategy']
1149
+ @Offset = params['Offset']
1150
+ @Limit = params['Limit']
1151
+ @OrderField = params['OrderField']
1152
+ @Asc = params['Asc']
1153
+ unless params['Filters'].nil?
1154
+ @Filters = []
1155
+ params['Filters'].each do |i|
1156
+ filters_tmp = Filters.new
1157
+ filters_tmp.deserialize(i)
1158
+ @Filters << filters_tmp
1159
+ end
1160
+ end
1161
+ end
1162
+ end
1163
+
1164
+ # DescribeInstancesList返回参数结构体
1165
+ class DescribeInstancesListResponse < TencentCloud::Common::AbstractModel
1166
+ # @param TotalCnt: 符合条件的实例总数。
1167
+ # @type TotalCnt: Integer
1168
+ # @param InstancesList: 集群实例列表
1169
+ # @type InstancesList: Array
1170
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1171
+ # @type RequestId: String
1172
+
1173
+ attr_accessor :TotalCnt, :InstancesList, :RequestId
1174
+
1175
+ def initialize(totalcnt=nil, instanceslist=nil, requestid=nil)
1176
+ @TotalCnt = totalcnt
1177
+ @InstancesList = instanceslist
1178
+ @RequestId = requestid
1179
+ end
1180
+
1181
+ def deserialize(params)
1182
+ @TotalCnt = params['TotalCnt']
1183
+ unless params['InstancesList'].nil?
1184
+ @InstancesList = []
1185
+ params['InstancesList'].each do |i|
1186
+ emrlistinstance_tmp = EmrListInstance.new
1187
+ emrlistinstance_tmp.deserialize(i)
1188
+ @InstancesList << emrlistinstance_tmp
1189
+ end
1190
+ end
1191
+ @RequestId = params['RequestId']
1192
+ end
1193
+ end
1194
+
1082
1195
  # DescribeInstances请求参数结构体
1083
1196
  class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
1084
1197
  # @param DisplayStrategy: 集群筛选策略。取值范围:
@@ -1345,6 +1458,150 @@ module TencentCloud
1345
1458
  end
1346
1459
  end
1347
1460
 
1461
+ # 集群列表返回示例
1462
+ class EmrListInstance < TencentCloud::Common::AbstractModel
1463
+ # @param ClusterId: 集群ID
1464
+ # @type ClusterId: String
1465
+ # @param StatusDesc: 状态描述
1466
+ # 注意:此字段可能返回 null,表示取不到有效值。
1467
+ # @type StatusDesc: String
1468
+ # @param ClusterName: 集群名字
1469
+ # @type ClusterName: String
1470
+ # @param ZoneId: 集群地域
1471
+ # @type ZoneId: Integer
1472
+ # @param AppId: 用户APPID
1473
+ # @type AppId: Integer
1474
+ # @param AddTime: 创建时间
1475
+ # @type AddTime: String
1476
+ # @param RunTime: 运行时间
1477
+ # @type RunTime: String
1478
+ # @param MasterIp: 集群IP
1479
+ # @type MasterIp: String
1480
+ # @param EmrVersion: 集群版本
1481
+ # @type EmrVersion: String
1482
+ # @param ChargeType: 集群计费类型
1483
+ # @type ChargeType: Integer
1484
+ # @param Id: emr ID
1485
+ # @type Id: Integer
1486
+ # @param ProductId: 产品ID
1487
+ # 注意:此字段可能返回 null,表示取不到有效值。
1488
+ # @type ProductId: Integer
1489
+ # @param ProjectId: 项目ID
1490
+ # 注意:此字段可能返回 null,表示取不到有效值。
1491
+ # @type ProjectId: Integer
1492
+ # @param RegionId: 区域
1493
+ # 注意:此字段可能返回 null,表示取不到有效值。
1494
+ # @type RegionId: Integer
1495
+ # @param SubnetId: 子网ID
1496
+ # 注意:此字段可能返回 null,表示取不到有效值。
1497
+ # @type SubnetId: Integer
1498
+ # @param VpcId: 网络ID
1499
+ # 注意:此字段可能返回 null,表示取不到有效值。
1500
+ # @type VpcId: Integer
1501
+ # @param Zone: 地区
1502
+ # 注意:此字段可能返回 null,表示取不到有效值。
1503
+ # @type Zone: String
1504
+ # @param Status: 状态码
1505
+ # 注意:此字段可能返回 null,表示取不到有效值。
1506
+ # @type Status: Integer
1507
+ # @param Tags: 实例标签
1508
+ # 注意:此字段可能返回 null,表示取不到有效值。
1509
+ # @type Tags: Array
1510
+ # @param AlarmInfo: 告警信息
1511
+ # 注意:此字段可能返回 null,表示取不到有效值。
1512
+ # @type AlarmInfo: String
1513
+ # @param IsWoodpeckerCluster: 是否是woodpecker集群
1514
+ # 注意:此字段可能返回 null,表示取不到有效值。
1515
+ # @type IsWoodpeckerCluster: Integer
1516
+ # @param VpcName: Vpc中文
1517
+ # 注意:此字段可能返回 null,表示取不到有效值。
1518
+ # @type VpcName: String
1519
+ # @param SubnetName: 子网中文
1520
+ # 注意:此字段可能返回 null,表示取不到有效值。
1521
+ # @type SubnetName: String
1522
+ # @param UniqVpcId: 字符串VpcId
1523
+ # 注意:此字段可能返回 null,表示取不到有效值。
1524
+ # @type UniqVpcId: String
1525
+ # @param UniqSubnetId: 字符串子网
1526
+ # 注意:此字段可能返回 null,表示取不到有效值。
1527
+ # @type UniqSubnetId: String
1528
+ # @param ClusterClass: 集群类型
1529
+ # 注意:此字段可能返回 null,表示取不到有效值。
1530
+ # @type ClusterClass: String
1531
+ # @param IsMultiZoneCluster: 是否为跨AZ集群
1532
+ # 注意:此字段可能返回 null,表示取不到有效值。
1533
+ # @type IsMultiZoneCluster: Boolean
1534
+
1535
+ attr_accessor :ClusterId, :StatusDesc, :ClusterName, :ZoneId, :AppId, :AddTime, :RunTime, :MasterIp, :EmrVersion, :ChargeType, :Id, :ProductId, :ProjectId, :RegionId, :SubnetId, :VpcId, :Zone, :Status, :Tags, :AlarmInfo, :IsWoodpeckerCluster, :VpcName, :SubnetName, :UniqVpcId, :UniqSubnetId, :ClusterClass, :IsMultiZoneCluster
1536
+
1537
+ def initialize(clusterid=nil, statusdesc=nil, clustername=nil, zoneid=nil, appid=nil, addtime=nil, runtime=nil, masterip=nil, emrversion=nil, chargetype=nil, id=nil, productid=nil, projectid=nil, regionid=nil, subnetid=nil, vpcid=nil, zone=nil, status=nil, tags=nil, alarminfo=nil, iswoodpeckercluster=nil, vpcname=nil, subnetname=nil, uniqvpcid=nil, uniqsubnetid=nil, clusterclass=nil, ismultizonecluster=nil)
1538
+ @ClusterId = clusterid
1539
+ @StatusDesc = statusdesc
1540
+ @ClusterName = clustername
1541
+ @ZoneId = zoneid
1542
+ @AppId = appid
1543
+ @AddTime = addtime
1544
+ @RunTime = runtime
1545
+ @MasterIp = masterip
1546
+ @EmrVersion = emrversion
1547
+ @ChargeType = chargetype
1548
+ @Id = id
1549
+ @ProductId = productid
1550
+ @ProjectId = projectid
1551
+ @RegionId = regionid
1552
+ @SubnetId = subnetid
1553
+ @VpcId = vpcid
1554
+ @Zone = zone
1555
+ @Status = status
1556
+ @Tags = tags
1557
+ @AlarmInfo = alarminfo
1558
+ @IsWoodpeckerCluster = iswoodpeckercluster
1559
+ @VpcName = vpcname
1560
+ @SubnetName = subnetname
1561
+ @UniqVpcId = uniqvpcid
1562
+ @UniqSubnetId = uniqsubnetid
1563
+ @ClusterClass = clusterclass
1564
+ @IsMultiZoneCluster = ismultizonecluster
1565
+ end
1566
+
1567
+ def deserialize(params)
1568
+ @ClusterId = params['ClusterId']
1569
+ @StatusDesc = params['StatusDesc']
1570
+ @ClusterName = params['ClusterName']
1571
+ @ZoneId = params['ZoneId']
1572
+ @AppId = params['AppId']
1573
+ @AddTime = params['AddTime']
1574
+ @RunTime = params['RunTime']
1575
+ @MasterIp = params['MasterIp']
1576
+ @EmrVersion = params['EmrVersion']
1577
+ @ChargeType = params['ChargeType']
1578
+ @Id = params['Id']
1579
+ @ProductId = params['ProductId']
1580
+ @ProjectId = params['ProjectId']
1581
+ @RegionId = params['RegionId']
1582
+ @SubnetId = params['SubnetId']
1583
+ @VpcId = params['VpcId']
1584
+ @Zone = params['Zone']
1585
+ @Status = params['Status']
1586
+ unless params['Tags'].nil?
1587
+ @Tags = []
1588
+ params['Tags'].each do |i|
1589
+ tag_tmp = Tag.new
1590
+ tag_tmp.deserialize(i)
1591
+ @Tags << tag_tmp
1592
+ end
1593
+ end
1594
+ @AlarmInfo = params['AlarmInfo']
1595
+ @IsWoodpeckerCluster = params['IsWoodpeckerCluster']
1596
+ @VpcName = params['VpcName']
1597
+ @SubnetName = params['SubnetName']
1598
+ @UniqVpcId = params['UniqVpcId']
1599
+ @UniqSubnetId = params['UniqSubnetId']
1600
+ @ClusterClass = params['ClusterClass']
1601
+ @IsMultiZoneCluster = params['IsMultiZoneCluster']
1602
+ end
1603
+ end
1604
+
1348
1605
  # EMR产品配置
1349
1606
  class EmrProductConfigOutter < TencentCloud::Common::AbstractModel
1350
1607
  # @param SoftInfo: 软件信息
@@ -1522,6 +1779,26 @@ module TencentCloud
1522
1779
  end
1523
1780
  end
1524
1781
 
1782
+ # Emr集群列表实例自定义查询过滤
1783
+ class Filters < TencentCloud::Common::AbstractModel
1784
+ # @param Name: 字段名称
1785
+ # @type Name: String
1786
+ # @param Values: 过滤字段值
1787
+ # @type Values: Array
1788
+
1789
+ attr_accessor :Name, :Values
1790
+
1791
+ def initialize(name=nil, values=nil)
1792
+ @Name = name
1793
+ @Values = values
1794
+ end
1795
+
1796
+ def deserialize(params)
1797
+ @Name = params['Name']
1798
+ @Values = params['Values']
1799
+ end
1800
+ end
1801
+
1525
1802
  # Pod HostPath挂载方式描述
1526
1803
  class HostVolumeContext < TencentCloud::Common::AbstractModel
1527
1804
  # @param VolumePath: Pod挂载宿主机的目录。资源对宿主机的挂载点,指定的挂载点对应了宿主机的路径,该挂载点在Pod中作为数据存储目录使用
@@ -4124,6 +4401,34 @@ module TencentCloud
4124
4401
  end
4125
4402
  end
4126
4403
 
4404
+ # 添加的用户信息列表
4405
+ class UserInfoForUserManager < TencentCloud::Common::AbstractModel
4406
+ # @param UserName: 用户名
4407
+ # @type UserName: String
4408
+ # @param UserGroup: 用户所属的组
4409
+ # @type UserGroup: String
4410
+ # @param PassWord: 密码
4411
+ # @type PassWord: String
4412
+ # @param ReMark: 备注
4413
+ # @type ReMark: String
4414
+
4415
+ attr_accessor :UserName, :UserGroup, :PassWord, :ReMark
4416
+
4417
+ def initialize(username=nil, usergroup=nil, password=nil, remark=nil)
4418
+ @UserName = username
4419
+ @UserGroup = usergroup
4420
+ @PassWord = password
4421
+ @ReMark = remark
4422
+ end
4423
+
4424
+ def deserialize(params)
4425
+ @UserName = params['UserName']
4426
+ @UserGroup = params['UserGroup']
4427
+ @PassWord = params['PassWord']
4428
+ @ReMark = params['ReMark']
4429
+ end
4430
+ end
4431
+
4127
4432
  # VPC 参数
4128
4433
  class VPCSettings < TencentCloud::Common::AbstractModel
4129
4434
  # @param VpcId: VPC ID
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-emr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.315
4
+ version: 1.0.316
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud