tencentcloud-sdk-emr 3.0.636 → 3.0.638
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 +24 -0
- data/lib/v20190103/models.rb +123 -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: 5cad7795fc27881790a1591f30367840a3fd233b
|
4
|
+
data.tar.gz: cf8dcf453c877161966fc40afda6866b054aaab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a79178c33b4dd6c2286af2faf39856dcc9efe8c87beaaa570971de3ad012ba755aadb0ab0191c33cc0e1ff69b7679adc4cd1130c4c1553a6fe2a1c68a46b0f3
|
7
|
+
data.tar.gz: 3e7c84e915d9de1404009b5dd2688c8eaae49dc44e7c5e99ba522311d4adee419cfcc8a7aa969a3af38aa5419b7f1a0716729ef016a0f838e8a32bfba32ddb80
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.638
|
data/lib/v20190103/client.rb
CHANGED
@@ -607,6 +607,30 @@ module TencentCloud
|
|
607
607
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
608
608
|
end
|
609
609
|
|
610
|
+
# 强制修改标签
|
611
|
+
|
612
|
+
# @param request: Request instance for ModifyResourcesTags.
|
613
|
+
# @type request: :class:`Tencentcloud::emr::V20190103::ModifyResourcesTagsRequest`
|
614
|
+
# @rtype: :class:`Tencentcloud::emr::V20190103::ModifyResourcesTagsResponse`
|
615
|
+
def ModifyResourcesTags(request)
|
616
|
+
body = send_request('ModifyResourcesTags', request.serialize)
|
617
|
+
response = JSON.parse(body)
|
618
|
+
if response['Response'].key?('Error') == false
|
619
|
+
model = ModifyResourcesTagsResponse.new
|
620
|
+
model.deserialize(response['Response'])
|
621
|
+
model
|
622
|
+
else
|
623
|
+
code = response['Response']['Error']['Code']
|
624
|
+
message = response['Response']['Error']['Message']
|
625
|
+
reqid = response['Response']['RequestId']
|
626
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
627
|
+
end
|
628
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
629
|
+
raise e
|
630
|
+
rescue StandardError => e
|
631
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
632
|
+
end
|
633
|
+
|
610
634
|
# 创建流程作业
|
611
635
|
|
612
636
|
# @param request: Request instance for RunJobFlow.
|
data/lib/v20190103/models.rb
CHANGED
@@ -3788,6 +3788,129 @@ module TencentCloud
|
|
3788
3788
|
end
|
3789
3789
|
end
|
3790
3790
|
|
3791
|
+
# 强制修改标签
|
3792
|
+
class ModifyResourceTags < TencentCloud::Common::AbstractModel
|
3793
|
+
# @param ResourceId: 集群id 或者 cvm id
|
3794
|
+
# @type ResourceId: String
|
3795
|
+
# @param Resource: 资源6段式表达式
|
3796
|
+
# @type Resource: String
|
3797
|
+
# @param ResourcePrefix: 资源前缀
|
3798
|
+
# @type ResourcePrefix: String
|
3799
|
+
# @param ResourceRegion: ap-beijing
|
3800
|
+
# @type ResourceRegion: String
|
3801
|
+
# @param ServiceType: emr
|
3802
|
+
# @type ServiceType: String
|
3803
|
+
# @param DeleteTags: 删除的标签列表
|
3804
|
+
# @type DeleteTags: Array
|
3805
|
+
# @param AddTags: 添加的标签列表
|
3806
|
+
# @type AddTags: Array
|
3807
|
+
# @param ModifyTags: 修改的标签列表
|
3808
|
+
# @type ModifyTags: Array
|
3809
|
+
|
3810
|
+
attr_accessor :ResourceId, :Resource, :ResourcePrefix, :ResourceRegion, :ServiceType, :DeleteTags, :AddTags, :ModifyTags
|
3811
|
+
|
3812
|
+
def initialize(resourceid=nil, resource=nil, resourceprefix=nil, resourceregion=nil, servicetype=nil, deletetags=nil, addtags=nil, modifytags=nil)
|
3813
|
+
@ResourceId = resourceid
|
3814
|
+
@Resource = resource
|
3815
|
+
@ResourcePrefix = resourceprefix
|
3816
|
+
@ResourceRegion = resourceregion
|
3817
|
+
@ServiceType = servicetype
|
3818
|
+
@DeleteTags = deletetags
|
3819
|
+
@AddTags = addtags
|
3820
|
+
@ModifyTags = modifytags
|
3821
|
+
end
|
3822
|
+
|
3823
|
+
def deserialize(params)
|
3824
|
+
@ResourceId = params['ResourceId']
|
3825
|
+
@Resource = params['Resource']
|
3826
|
+
@ResourcePrefix = params['ResourcePrefix']
|
3827
|
+
@ResourceRegion = params['ResourceRegion']
|
3828
|
+
@ServiceType = params['ServiceType']
|
3829
|
+
unless params['DeleteTags'].nil?
|
3830
|
+
@DeleteTags = []
|
3831
|
+
params['DeleteTags'].each do |i|
|
3832
|
+
tag_tmp = Tag.new
|
3833
|
+
tag_tmp.deserialize(i)
|
3834
|
+
@DeleteTags << tag_tmp
|
3835
|
+
end
|
3836
|
+
end
|
3837
|
+
unless params['AddTags'].nil?
|
3838
|
+
@AddTags = []
|
3839
|
+
params['AddTags'].each do |i|
|
3840
|
+
tag_tmp = Tag.new
|
3841
|
+
tag_tmp.deserialize(i)
|
3842
|
+
@AddTags << tag_tmp
|
3843
|
+
end
|
3844
|
+
end
|
3845
|
+
unless params['ModifyTags'].nil?
|
3846
|
+
@ModifyTags = []
|
3847
|
+
params['ModifyTags'].each do |i|
|
3848
|
+
tag_tmp = Tag.new
|
3849
|
+
tag_tmp.deserialize(i)
|
3850
|
+
@ModifyTags << tag_tmp
|
3851
|
+
end
|
3852
|
+
end
|
3853
|
+
end
|
3854
|
+
end
|
3855
|
+
|
3856
|
+
# ModifyResourcesTags请求参数结构体
|
3857
|
+
class ModifyResourcesTagsRequest < TencentCloud::Common::AbstractModel
|
3858
|
+
# @param ModifyType: 标签类型,取值Cluster或者Node
|
3859
|
+
# @type ModifyType: String
|
3860
|
+
# @param ModifyResourceTagsInfoList: 标签信息
|
3861
|
+
# @type ModifyResourceTagsInfoList: Array
|
3862
|
+
|
3863
|
+
attr_accessor :ModifyType, :ModifyResourceTagsInfoList
|
3864
|
+
|
3865
|
+
def initialize(modifytype=nil, modifyresourcetagsinfolist=nil)
|
3866
|
+
@ModifyType = modifytype
|
3867
|
+
@ModifyResourceTagsInfoList = modifyresourcetagsinfolist
|
3868
|
+
end
|
3869
|
+
|
3870
|
+
def deserialize(params)
|
3871
|
+
@ModifyType = params['ModifyType']
|
3872
|
+
unless params['ModifyResourceTagsInfoList'].nil?
|
3873
|
+
@ModifyResourceTagsInfoList = []
|
3874
|
+
params['ModifyResourceTagsInfoList'].each do |i|
|
3875
|
+
modifyresourcetags_tmp = ModifyResourceTags.new
|
3876
|
+
modifyresourcetags_tmp.deserialize(i)
|
3877
|
+
@ModifyResourceTagsInfoList << modifyresourcetags_tmp
|
3878
|
+
end
|
3879
|
+
end
|
3880
|
+
end
|
3881
|
+
end
|
3882
|
+
|
3883
|
+
# ModifyResourcesTags返回参数结构体
|
3884
|
+
class ModifyResourcesTagsResponse < TencentCloud::Common::AbstractModel
|
3885
|
+
# @param SuccessList: 成功的资源id列表
|
3886
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3887
|
+
# @type SuccessList: Array
|
3888
|
+
# @param FailList: 失败的资源id列表
|
3889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3890
|
+
# @type FailList: Array
|
3891
|
+
# @param PartSuccessList: 部分成功的资源id列表
|
3892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3893
|
+
# @type PartSuccessList: Array
|
3894
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3895
|
+
# @type RequestId: String
|
3896
|
+
|
3897
|
+
attr_accessor :SuccessList, :FailList, :PartSuccessList, :RequestId
|
3898
|
+
|
3899
|
+
def initialize(successlist=nil, faillist=nil, partsuccesslist=nil, requestid=nil)
|
3900
|
+
@SuccessList = successlist
|
3901
|
+
@FailList = faillist
|
3902
|
+
@PartSuccessList = partsuccesslist
|
3903
|
+
@RequestId = requestid
|
3904
|
+
end
|
3905
|
+
|
3906
|
+
def deserialize(params)
|
3907
|
+
@SuccessList = params['SuccessList']
|
3908
|
+
@FailList = params['FailList']
|
3909
|
+
@PartSuccessList = params['PartSuccessList']
|
3910
|
+
@RequestId = params['RequestId']
|
3911
|
+
end
|
3912
|
+
end
|
3913
|
+
|
3791
3914
|
# 多云盘参数
|
3792
3915
|
class MultiDisk < TencentCloud::Common::AbstractModel
|
3793
3916
|
# @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: 3.0.
|
4
|
+
version: 3.0.638
|
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-08-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|