tencentcloud-sdk-tag 1.0.291 → 1.0.292
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/v20180813/client.rb +192 -0
- data/lib/v20180813/models.rb +485 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a585dc959d0b4134230d6f0d5395354be87b2c1
|
4
|
+
data.tar.gz: af328cb6b7a2951fb27473e031c5212e526da3fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d786d6961c5b243d767432995736f473188650806d6319b2cd35132d7df52ade2621e5c970aa626341704a0ffc8db95109dce6e792a12e6150439f608a2c57e
|
7
|
+
data.tar.gz: 817deef6b25426b3a92f41f88eb2b7881d0a9f8317b77fdb628a21a041f780800e07eee2d6c3a180308e229763f9553667aa82d8fe9fd1d65de367dcb66571e0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.292
|
data/lib/v20180813/client.rb
CHANGED
@@ -101,6 +101,30 @@ module TencentCloud
|
|
101
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
102
|
end
|
103
103
|
|
104
|
+
# 本接口用于创建多对标签键和标签值
|
105
|
+
|
106
|
+
# @param request: Request instance for CreateTags.
|
107
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::CreateTagsRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::CreateTagsResponse`
|
109
|
+
def CreateTags(request)
|
110
|
+
body = send_request('CreateTags', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateTagsResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
104
128
|
# 本接口用于解除标签和资源的关联关系
|
105
129
|
|
106
130
|
# @param request: Request instance for DeleteResourceTag.
|
@@ -149,6 +173,30 @@ module TencentCloud
|
|
149
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
174
|
end
|
151
175
|
|
176
|
+
# 本接口用于删除一对标签键和标签值
|
177
|
+
|
178
|
+
# @param request: Request instance for DeleteTags.
|
179
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::DeleteTagsRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::DeleteTagsResponse`
|
181
|
+
def DeleteTags(request)
|
182
|
+
body = send_request('DeleteTags', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = DeleteTagsResponse.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 DescribeResourceTags.
|
@@ -437,6 +485,102 @@ module TencentCloud
|
|
437
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
486
|
end
|
439
487
|
|
488
|
+
# 查询绑定了标签的资源列表。
|
489
|
+
|
490
|
+
# @param request: Request instance for GetResources.
|
491
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::GetResourcesRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::GetResourcesResponse`
|
493
|
+
def GetResources(request)
|
494
|
+
body = send_request('GetResources', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = GetResourcesResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
512
|
+
# 查询标签键列表。
|
513
|
+
|
514
|
+
# @param request: Request instance for GetTagKeys.
|
515
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::GetTagKeysRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::GetTagKeysResponse`
|
517
|
+
def GetTagKeys(request)
|
518
|
+
body = send_request('GetTagKeys', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = GetTagKeysResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
536
|
+
# 用于查询已建立的标签列表中的标签值。
|
537
|
+
|
538
|
+
# @param request: Request instance for GetTagValues.
|
539
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::GetTagValuesRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::GetTagValuesResponse`
|
541
|
+
def GetTagValues(request)
|
542
|
+
body = send_request('GetTagValues', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = GetTagValuesResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
560
|
+
# 用于获取已建立的标签列表。
|
561
|
+
|
562
|
+
# @param request: Request instance for GetTags.
|
563
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::GetTagsRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::GetTagsResponse`
|
565
|
+
def GetTags(request)
|
566
|
+
body = send_request('GetTags', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = GetTagsResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
440
584
|
# 本接口用于修改资源关联的所有标签
|
441
585
|
|
442
586
|
# @param request: Request instance for ModifyResourceTags.
|
@@ -485,6 +629,54 @@ module TencentCloud
|
|
485
629
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
630
|
end
|
487
631
|
|
632
|
+
# 为指定的多个云产品的多个云资源统一创建并绑定标签。
|
633
|
+
|
634
|
+
# @param request: Request instance for TagResources.
|
635
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::TagResourcesRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::TagResourcesResponse`
|
637
|
+
def TagResources(request)
|
638
|
+
body = send_request('TagResources', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = TagResourcesResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 指定的多个云产品的多个云资源统一解绑标签。
|
657
|
+
|
658
|
+
# @param request: Request instance for UnTagResources.
|
659
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::UnTagResourcesRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::UnTagResourcesResponse`
|
661
|
+
def UnTagResources(request)
|
662
|
+
body = send_request('UnTagResources', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = UnTagResourcesResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
488
680
|
# 本接口用于修改资源已关联的标签值(标签键不变)
|
489
681
|
|
490
682
|
# @param request: Request instance for UpdateResourceTagValue.
|
data/lib/v20180813/models.rb
CHANGED
@@ -145,6 +145,46 @@ module TencentCloud
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
+
# CreateTags请求参数结构体
|
149
|
+
class CreateTagsRequest < TencentCloud::Common::AbstractModel
|
150
|
+
# @param Tags: 标签列表。
|
151
|
+
# N取值范围:0~9
|
152
|
+
# @type Tags: Array
|
153
|
+
|
154
|
+
attr_accessor :Tags
|
155
|
+
|
156
|
+
def initialize(tags=nil)
|
157
|
+
@Tags = tags
|
158
|
+
end
|
159
|
+
|
160
|
+
def deserialize(params)
|
161
|
+
unless params['Tags'].nil?
|
162
|
+
@Tags = []
|
163
|
+
params['Tags'].each do |i|
|
164
|
+
tag_tmp = Tag.new
|
165
|
+
tag_tmp.deserialize(i)
|
166
|
+
@Tags << tag_tmp
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# CreateTags返回参数结构体
|
173
|
+
class CreateTagsResponse < TencentCloud::Common::AbstractModel
|
174
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
175
|
+
# @type RequestId: String
|
176
|
+
|
177
|
+
attr_accessor :RequestId
|
178
|
+
|
179
|
+
def initialize(requestid=nil)
|
180
|
+
@RequestId = requestid
|
181
|
+
end
|
182
|
+
|
183
|
+
def deserialize(params)
|
184
|
+
@RequestId = params['RequestId']
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
148
188
|
# DeleteResourceTag请求参数结构体
|
149
189
|
class DeleteResourceTagRequest < TencentCloud::Common::AbstractModel
|
150
190
|
# @param TagKey: 标签键
|
@@ -217,6 +257,46 @@ module TencentCloud
|
|
217
257
|
end
|
218
258
|
end
|
219
259
|
|
260
|
+
# DeleteTags请求参数结构体
|
261
|
+
class DeleteTagsRequest < TencentCloud::Common::AbstractModel
|
262
|
+
# @param Tags: 标签列表。
|
263
|
+
# N取值范围:0~9
|
264
|
+
# @type Tags: Array
|
265
|
+
|
266
|
+
attr_accessor :Tags
|
267
|
+
|
268
|
+
def initialize(tags=nil)
|
269
|
+
@Tags = tags
|
270
|
+
end
|
271
|
+
|
272
|
+
def deserialize(params)
|
273
|
+
unless params['Tags'].nil?
|
274
|
+
@Tags = []
|
275
|
+
params['Tags'].each do |i|
|
276
|
+
tag_tmp = Tag.new
|
277
|
+
tag_tmp.deserialize(i)
|
278
|
+
@Tags << tag_tmp
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
# DeleteTags返回参数结构体
|
285
|
+
class DeleteTagsResponse < TencentCloud::Common::AbstractModel
|
286
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
287
|
+
# @type RequestId: String
|
288
|
+
|
289
|
+
attr_accessor :RequestId
|
290
|
+
|
291
|
+
def initialize(requestid=nil)
|
292
|
+
@RequestId = requestid
|
293
|
+
end
|
294
|
+
|
295
|
+
def deserialize(params)
|
296
|
+
@RequestId = params['RequestId']
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
220
300
|
# DescribeResourceTagsByResourceIds请求参数结构体
|
221
301
|
class DescribeResourceTagsByResourceIdsRequest < TencentCloud::Common::AbstractModel
|
222
302
|
# @param ServiceType: 业务类型
|
@@ -1111,6 +1191,269 @@ module TencentCloud
|
|
1111
1191
|
end
|
1112
1192
|
end
|
1113
1193
|
|
1194
|
+
# 失败资源信息。
|
1195
|
+
# 绑定或解绑资源标签时失败返回
|
1196
|
+
class FailedResource < TencentCloud::Common::AbstractModel
|
1197
|
+
# @param Resource: 失败的资源六段式
|
1198
|
+
# @type Resource: String
|
1199
|
+
# @param Code: 错误码
|
1200
|
+
# @type Code: String
|
1201
|
+
# @param Message: 错误信息
|
1202
|
+
# @type Message: String
|
1203
|
+
|
1204
|
+
attr_accessor :Resource, :Code, :Message
|
1205
|
+
|
1206
|
+
def initialize(resource=nil, code=nil, message=nil)
|
1207
|
+
@Resource = resource
|
1208
|
+
@Code = code
|
1209
|
+
@Message = message
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
def deserialize(params)
|
1213
|
+
@Resource = params['Resource']
|
1214
|
+
@Code = params['Code']
|
1215
|
+
@Message = params['Message']
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
# GetResources请求参数结构体
|
1220
|
+
class GetResourcesRequest < TencentCloud::Common::AbstractModel
|
1221
|
+
# @param ResourceList: 资源六段式列表。腾讯云使用资源六段式描述一个资源。
|
1222
|
+
# 例如:ResourceList.1 = qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。
|
1223
|
+
# 如果传入了此参数会返回所有匹配的资源列表,指定的MaxResults会失效。
|
1224
|
+
# N取值范围:0~9
|
1225
|
+
# @type ResourceList: Array
|
1226
|
+
# @param TagFilters: 标签键和标签值。
|
1227
|
+
# 指定多个标签,会查询同时绑定了该多个标签的资源。
|
1228
|
+
# N取值范围:0~5。
|
1229
|
+
# 每个TagFilters中的TagValue最多支持10个
|
1230
|
+
# @type TagFilters: Array
|
1231
|
+
# @param PaginationToken: 从上一页的响应中获取的下一页的Token值。
|
1232
|
+
# 如果是第一次请求,设置为空。
|
1233
|
+
# @type PaginationToken: String
|
1234
|
+
# @param MaxResults: 每一页返回的数据最大条数,最大200。
|
1235
|
+
# 缺省值:50。
|
1236
|
+
# @type MaxResults: Integer
|
1237
|
+
|
1238
|
+
attr_accessor :ResourceList, :TagFilters, :PaginationToken, :MaxResults
|
1239
|
+
|
1240
|
+
def initialize(resourcelist=nil, tagfilters=nil, paginationtoken=nil, maxresults=nil)
|
1241
|
+
@ResourceList = resourcelist
|
1242
|
+
@TagFilters = tagfilters
|
1243
|
+
@PaginationToken = paginationtoken
|
1244
|
+
@MaxResults = maxresults
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
def deserialize(params)
|
1248
|
+
@ResourceList = params['ResourceList']
|
1249
|
+
unless params['TagFilters'].nil?
|
1250
|
+
@TagFilters = []
|
1251
|
+
params['TagFilters'].each do |i|
|
1252
|
+
tagfilter_tmp = TagFilter.new
|
1253
|
+
tagfilter_tmp.deserialize(i)
|
1254
|
+
@TagFilters << tagfilter_tmp
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
@PaginationToken = params['PaginationToken']
|
1258
|
+
@MaxResults = params['MaxResults']
|
1259
|
+
end
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# GetResources返回参数结构体
|
1263
|
+
class GetResourcesResponse < TencentCloud::Common::AbstractModel
|
1264
|
+
# @param PaginationToken: 获取的下一页的Token值
|
1265
|
+
# @type PaginationToken: String
|
1266
|
+
# @param ResourceTagMappingList: 资源及关联的标签(键和值)列表
|
1267
|
+
# @type ResourceTagMappingList: Array
|
1268
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1269
|
+
# @type RequestId: String
|
1270
|
+
|
1271
|
+
attr_accessor :PaginationToken, :ResourceTagMappingList, :RequestId
|
1272
|
+
|
1273
|
+
def initialize(paginationtoken=nil, resourcetagmappinglist=nil, requestid=nil)
|
1274
|
+
@PaginationToken = paginationtoken
|
1275
|
+
@ResourceTagMappingList = resourcetagmappinglist
|
1276
|
+
@RequestId = requestid
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
def deserialize(params)
|
1280
|
+
@PaginationToken = params['PaginationToken']
|
1281
|
+
unless params['ResourceTagMappingList'].nil?
|
1282
|
+
@ResourceTagMappingList = []
|
1283
|
+
params['ResourceTagMappingList'].each do |i|
|
1284
|
+
resourcetagmapping_tmp = ResourceTagMapping.new
|
1285
|
+
resourcetagmapping_tmp.deserialize(i)
|
1286
|
+
@ResourceTagMappingList << resourcetagmapping_tmp
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
@RequestId = params['RequestId']
|
1290
|
+
end
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
# GetTagKeys请求参数结构体
|
1294
|
+
class GetTagKeysRequest < TencentCloud::Common::AbstractModel
|
1295
|
+
# @param PaginationToken: 从上一页的响应中获取的下一页的Token值。
|
1296
|
+
# 如果是第一次请求,设置为空。
|
1297
|
+
# @type PaginationToken: String
|
1298
|
+
# @param MaxResults: 每一页返回的数据最大条数,最大1000。
|
1299
|
+
# 缺省值:50。
|
1300
|
+
# @type MaxResults: Integer
|
1301
|
+
|
1302
|
+
attr_accessor :PaginationToken, :MaxResults
|
1303
|
+
|
1304
|
+
def initialize(paginationtoken=nil, maxresults=nil)
|
1305
|
+
@PaginationToken = paginationtoken
|
1306
|
+
@MaxResults = maxresults
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
def deserialize(params)
|
1310
|
+
@PaginationToken = params['PaginationToken']
|
1311
|
+
@MaxResults = params['MaxResults']
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
# GetTagKeys返回参数结构体
|
1316
|
+
class GetTagKeysResponse < TencentCloud::Common::AbstractModel
|
1317
|
+
# @param PaginationToken: 获取的下一页的Token值
|
1318
|
+
# @type PaginationToken: String
|
1319
|
+
# @param TagKeys: 标签键信息。
|
1320
|
+
# @type TagKeys: Array
|
1321
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1322
|
+
# @type RequestId: String
|
1323
|
+
|
1324
|
+
attr_accessor :PaginationToken, :TagKeys, :RequestId
|
1325
|
+
|
1326
|
+
def initialize(paginationtoken=nil, tagkeys=nil, requestid=nil)
|
1327
|
+
@PaginationToken = paginationtoken
|
1328
|
+
@TagKeys = tagkeys
|
1329
|
+
@RequestId = requestid
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
def deserialize(params)
|
1333
|
+
@PaginationToken = params['PaginationToken']
|
1334
|
+
@TagKeys = params['TagKeys']
|
1335
|
+
@RequestId = params['RequestId']
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
# GetTagValues请求参数结构体
|
1340
|
+
class GetTagValuesRequest < TencentCloud::Common::AbstractModel
|
1341
|
+
# @param TagKeys: 标签键。
|
1342
|
+
# 返回所有标签键列表对应的标签值。
|
1343
|
+
# 最大长度:20
|
1344
|
+
# @type TagKeys: Array
|
1345
|
+
# @param PaginationToken: 从上一页的响应中获取的下一页的Token值。
|
1346
|
+
# 如果是第一次请求,设置为空。
|
1347
|
+
# @type PaginationToken: String
|
1348
|
+
# @param MaxResults: 每一页返回的数据最大条数,最大1000。
|
1349
|
+
# 缺省值:50。
|
1350
|
+
# @type MaxResults: Integer
|
1351
|
+
|
1352
|
+
attr_accessor :TagKeys, :PaginationToken, :MaxResults
|
1353
|
+
|
1354
|
+
def initialize(tagkeys=nil, paginationtoken=nil, maxresults=nil)
|
1355
|
+
@TagKeys = tagkeys
|
1356
|
+
@PaginationToken = paginationtoken
|
1357
|
+
@MaxResults = maxresults
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
def deserialize(params)
|
1361
|
+
@TagKeys = params['TagKeys']
|
1362
|
+
@PaginationToken = params['PaginationToken']
|
1363
|
+
@MaxResults = params['MaxResults']
|
1364
|
+
end
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
# GetTagValues返回参数结构体
|
1368
|
+
class GetTagValuesResponse < TencentCloud::Common::AbstractModel
|
1369
|
+
# @param PaginationToken: 获取的下一页的Token值
|
1370
|
+
# @type PaginationToken: String
|
1371
|
+
# @param Tags: 标签列表。
|
1372
|
+
# @type Tags: Array
|
1373
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1374
|
+
# @type RequestId: String
|
1375
|
+
|
1376
|
+
attr_accessor :PaginationToken, :Tags, :RequestId
|
1377
|
+
|
1378
|
+
def initialize(paginationtoken=nil, tags=nil, requestid=nil)
|
1379
|
+
@PaginationToken = paginationtoken
|
1380
|
+
@Tags = tags
|
1381
|
+
@RequestId = requestid
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
def deserialize(params)
|
1385
|
+
@PaginationToken = params['PaginationToken']
|
1386
|
+
unless params['Tags'].nil?
|
1387
|
+
@Tags = []
|
1388
|
+
params['Tags'].each do |i|
|
1389
|
+
tag_tmp = Tag.new
|
1390
|
+
tag_tmp.deserialize(i)
|
1391
|
+
@Tags << tag_tmp
|
1392
|
+
end
|
1393
|
+
end
|
1394
|
+
@RequestId = params['RequestId']
|
1395
|
+
end
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
# GetTags请求参数结构体
|
1399
|
+
class GetTagsRequest < TencentCloud::Common::AbstractModel
|
1400
|
+
# @param PaginationToken: 从上一页的响应中获取的下一页的Token值。
|
1401
|
+
# 如果是第一次请求,设置为空。
|
1402
|
+
# @type PaginationToken: String
|
1403
|
+
# @param MaxResults: 每一页返回的数据最大条数,最大1000。
|
1404
|
+
# 缺省值:50。
|
1405
|
+
# @type MaxResults: Integer
|
1406
|
+
# @param TagKeys: 标签键。
|
1407
|
+
# 返回所有标签键列表对应的标签。
|
1408
|
+
# 最大长度:20
|
1409
|
+
# @type TagKeys: Array
|
1410
|
+
|
1411
|
+
attr_accessor :PaginationToken, :MaxResults, :TagKeys
|
1412
|
+
|
1413
|
+
def initialize(paginationtoken=nil, maxresults=nil, tagkeys=nil)
|
1414
|
+
@PaginationToken = paginationtoken
|
1415
|
+
@MaxResults = maxresults
|
1416
|
+
@TagKeys = tagkeys
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
def deserialize(params)
|
1420
|
+
@PaginationToken = params['PaginationToken']
|
1421
|
+
@MaxResults = params['MaxResults']
|
1422
|
+
@TagKeys = params['TagKeys']
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
# GetTags返回参数结构体
|
1427
|
+
class GetTagsResponse < TencentCloud::Common::AbstractModel
|
1428
|
+
# @param PaginationToken: 获取的下一页的Token值
|
1429
|
+
# @type PaginationToken: String
|
1430
|
+
# @param Tags: 标签列表。
|
1431
|
+
# @type Tags: Array
|
1432
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1433
|
+
# @type RequestId: String
|
1434
|
+
|
1435
|
+
attr_accessor :PaginationToken, :Tags, :RequestId
|
1436
|
+
|
1437
|
+
def initialize(paginationtoken=nil, tags=nil, requestid=nil)
|
1438
|
+
@PaginationToken = paginationtoken
|
1439
|
+
@Tags = tags
|
1440
|
+
@RequestId = requestid
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
def deserialize(params)
|
1444
|
+
@PaginationToken = params['PaginationToken']
|
1445
|
+
unless params['Tags'].nil?
|
1446
|
+
@Tags = []
|
1447
|
+
params['Tags'].each do |i|
|
1448
|
+
tag_tmp = Tag.new
|
1449
|
+
tag_tmp.deserialize(i)
|
1450
|
+
@Tags << tag_tmp
|
1451
|
+
end
|
1452
|
+
end
|
1453
|
+
@RequestId = params['RequestId']
|
1454
|
+
end
|
1455
|
+
end
|
1456
|
+
|
1114
1457
|
# ModifyResourceTags请求参数结构体
|
1115
1458
|
class ModifyResourceTagsRequest < TencentCloud::Common::AbstractModel
|
1116
1459
|
# @param Resource: [ 资源六段式描述 ](https://cloud.tencent.com/document/product/598/10606)
|
@@ -1290,6 +1633,34 @@ module TencentCloud
|
|
1290
1633
|
end
|
1291
1634
|
end
|
1292
1635
|
|
1636
|
+
# 资源及关联的标签(键和值)。
|
1637
|
+
class ResourceTagMapping < TencentCloud::Common::AbstractModel
|
1638
|
+
# @param Resource: 资源六段式。腾讯云使用资源六段式描述一个资源。
|
1639
|
+
# 例如:ResourceList.1 = qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。
|
1640
|
+
# @type Resource: String
|
1641
|
+
# @param Tags: 资源关联的标签列表
|
1642
|
+
# @type Tags: Array
|
1643
|
+
|
1644
|
+
attr_accessor :Resource, :Tags
|
1645
|
+
|
1646
|
+
def initialize(resource=nil, tags=nil)
|
1647
|
+
@Resource = resource
|
1648
|
+
@Tags = tags
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
def deserialize(params)
|
1652
|
+
@Resource = params['Resource']
|
1653
|
+
unless params['Tags'].nil?
|
1654
|
+
@Tags = []
|
1655
|
+
params['Tags'].each do |i|
|
1656
|
+
tag_tmp = Tag.new
|
1657
|
+
tag_tmp.deserialize(i)
|
1658
|
+
@Tags << tag_tmp
|
1659
|
+
end
|
1660
|
+
end
|
1661
|
+
end
|
1662
|
+
end
|
1663
|
+
|
1293
1664
|
# 表示一个标签键值对
|
1294
1665
|
class Tag < TencentCloud::Common::AbstractModel
|
1295
1666
|
# @param TagKey: 标签键
|
@@ -1383,6 +1754,68 @@ module TencentCloud
|
|
1383
1754
|
end
|
1384
1755
|
end
|
1385
1756
|
|
1757
|
+
# TagResources请求参数结构体
|
1758
|
+
class TagResourcesRequest < TencentCloud::Common::AbstractModel
|
1759
|
+
# @param ResourceList: 资源六段式列表。腾讯云使用资源六段式描述一个资源。可参考[访问管理](https://cloud.tencent.com/document/product/598/67350)-概览-接口列表-资源六段式信息
|
1760
|
+
# 例如:ResourceList.1 = qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。
|
1761
|
+
# N取值范围:0~9
|
1762
|
+
# @type ResourceList: Array
|
1763
|
+
# @param Tags: 标签键和标签值。
|
1764
|
+
# 如果指定多个标签,则会为指定资源同时创建并绑定该多个标签。
|
1765
|
+
# 同一个资源上的同一个标签键只能对应一个标签值。如果您尝试添加已有标签键,则对应的标签值会更新为新值。
|
1766
|
+
# 如果标签不存在会为您自动创建标签。
|
1767
|
+
# N取值范围:0~9
|
1768
|
+
# @type Tags: Array
|
1769
|
+
|
1770
|
+
attr_accessor :ResourceList, :Tags
|
1771
|
+
|
1772
|
+
def initialize(resourcelist=nil, tags=nil)
|
1773
|
+
@ResourceList = resourcelist
|
1774
|
+
@Tags = tags
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
def deserialize(params)
|
1778
|
+
@ResourceList = params['ResourceList']
|
1779
|
+
unless params['Tags'].nil?
|
1780
|
+
@Tags = []
|
1781
|
+
params['Tags'].each do |i|
|
1782
|
+
tag_tmp = Tag.new
|
1783
|
+
tag_tmp.deserialize(i)
|
1784
|
+
@Tags << tag_tmp
|
1785
|
+
end
|
1786
|
+
end
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
# TagResources返回参数结构体
|
1791
|
+
class TagResourcesResponse < TencentCloud::Common::AbstractModel
|
1792
|
+
# @param FailedResources: 失败资源信息。
|
1793
|
+
# 创建并绑定标签成功时,返回的FailedResources为空。
|
1794
|
+
# 创建并绑定标签失败或部分失败时,返回的FailedResources会显示失败资源的详细信息。
|
1795
|
+
# @type FailedResources: Array
|
1796
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1797
|
+
# @type RequestId: String
|
1798
|
+
|
1799
|
+
attr_accessor :FailedResources, :RequestId
|
1800
|
+
|
1801
|
+
def initialize(failedresources=nil, requestid=nil)
|
1802
|
+
@FailedResources = failedresources
|
1803
|
+
@RequestId = requestid
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
def deserialize(params)
|
1807
|
+
unless params['FailedResources'].nil?
|
1808
|
+
@FailedResources = []
|
1809
|
+
params['FailedResources'].each do |i|
|
1810
|
+
failedresource_tmp = FailedResource.new
|
1811
|
+
failedresource_tmp.deserialize(i)
|
1812
|
+
@FailedResources << failedresource_tmp
|
1813
|
+
end
|
1814
|
+
end
|
1815
|
+
@RequestId = params['RequestId']
|
1816
|
+
end
|
1817
|
+
end
|
1818
|
+
|
1386
1819
|
# 表示一个标签键值对以及是否允许删除
|
1387
1820
|
class TagWithDelete < TencentCloud::Common::AbstractModel
|
1388
1821
|
# @param TagKey: 标签键
|
@@ -1407,6 +1840,58 @@ module TencentCloud
|
|
1407
1840
|
end
|
1408
1841
|
end
|
1409
1842
|
|
1843
|
+
# UnTagResources请求参数结构体
|
1844
|
+
class UnTagResourcesRequest < TencentCloud::Common::AbstractModel
|
1845
|
+
# @param ResourceList: 资源六段式列表。腾讯云使用资源六段式描述一个资源。可参考[访问管理](https://cloud.tencent.com/document/product/598/67350)-概览-接口列表-资源六段式信息
|
1846
|
+
# 例如:ResourceList.1 = qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。
|
1847
|
+
# N取值范围:0~9
|
1848
|
+
# @type ResourceList: Array
|
1849
|
+
# @param TagKeys: 标签键。
|
1850
|
+
# 取值范围:0~9
|
1851
|
+
# @type TagKeys: Array
|
1852
|
+
|
1853
|
+
attr_accessor :ResourceList, :TagKeys
|
1854
|
+
|
1855
|
+
def initialize(resourcelist=nil, tagkeys=nil)
|
1856
|
+
@ResourceList = resourcelist
|
1857
|
+
@TagKeys = tagkeys
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
def deserialize(params)
|
1861
|
+
@ResourceList = params['ResourceList']
|
1862
|
+
@TagKeys = params['TagKeys']
|
1863
|
+
end
|
1864
|
+
end
|
1865
|
+
|
1866
|
+
# UnTagResources返回参数结构体
|
1867
|
+
class UnTagResourcesResponse < TencentCloud::Common::AbstractModel
|
1868
|
+
# @param FailedResources: 失败资源信息。
|
1869
|
+
# 解绑标签成功时,返回的FailedResources为空。
|
1870
|
+
# 解绑标签失败或部分失败时,返回的FailedResources会显示失败资源的详细信息。
|
1871
|
+
# @type FailedResources: Array
|
1872
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1873
|
+
# @type RequestId: String
|
1874
|
+
|
1875
|
+
attr_accessor :FailedResources, :RequestId
|
1876
|
+
|
1877
|
+
def initialize(failedresources=nil, requestid=nil)
|
1878
|
+
@FailedResources = failedresources
|
1879
|
+
@RequestId = requestid
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
def deserialize(params)
|
1883
|
+
unless params['FailedResources'].nil?
|
1884
|
+
@FailedResources = []
|
1885
|
+
params['FailedResources'].each do |i|
|
1886
|
+
failedresource_tmp = FailedResource.new
|
1887
|
+
failedresource_tmp.deserialize(i)
|
1888
|
+
@FailedResources << failedresource_tmp
|
1889
|
+
end
|
1890
|
+
end
|
1891
|
+
@RequestId = params['RequestId']
|
1892
|
+
end
|
1893
|
+
end
|
1894
|
+
|
1410
1895
|
# UpdateResourceTagValue请求参数结构体
|
1411
1896
|
class UpdateResourceTagValueRequest < TencentCloud::Common::AbstractModel
|
1412
1897
|
# @param TagKey: 资源关联的标签键
|