tencentcloud-sdk-tag 3.0.381 → 3.0.382
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 +24 -0
- data/lib/v20180813/models.rb +87 -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: db96eb893103274645f2e381c81b7e991c65de6e
|
4
|
+
data.tar.gz: d45254cf948bef4036415132fb175fe6112c6396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f0e5745300a44f3258f9fdf3690725376383323d210b3c0d56f832dae71cd02cec53a2879bccb36c48799b0a925628b84a91232a46e3c09bb45f0b2926a192
|
7
|
+
data.tar.gz: 50688cec3e351715c56fd9b86113c65c1deb99a0bb816a559578d3228b17fbff9cba02264f78febaf5e497e2735ca9f8f4cf8ce8ed51c0da50185aa1b10ec8d8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.382
|
data/lib/v20180813/client.rb
CHANGED
@@ -197,6 +197,30 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
+
# 获取项目列表
|
201
|
+
|
202
|
+
# @param request: Request instance for DescribeProjects.
|
203
|
+
# @type request: :class:`Tencentcloud::tag::V20180813::DescribeProjectsRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tag::V20180813::DescribeProjectsResponse`
|
205
|
+
def DescribeProjects(request)
|
206
|
+
body = send_request('DescribeProjects', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeProjectsResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
200
224
|
# 查询资源关联标签
|
201
225
|
|
202
226
|
# @param request: Request instance for DescribeResourceTags.
|
data/lib/v20180813/models.rb
CHANGED
@@ -297,6 +297,61 @@ module TencentCloud
|
|
297
297
|
end
|
298
298
|
end
|
299
299
|
|
300
|
+
# DescribeProjects请求参数结构体
|
301
|
+
class DescribeProjectsRequest < TencentCloud::Common::AbstractModel
|
302
|
+
# @param AllList: 传1拉取所有项目(包括隐藏项目),不传或传0拉取显示项目
|
303
|
+
# @type AllList: Integer
|
304
|
+
# @param Limit: 分页条数,固定值1000。
|
305
|
+
# @type Limit: Integer
|
306
|
+
# @param Offset: 分页偏移量。
|
307
|
+
# @type Offset: Integer
|
308
|
+
|
309
|
+
attr_accessor :AllList, :Limit, :Offset
|
310
|
+
|
311
|
+
def initialize(alllist=nil, limit=nil, offset=nil)
|
312
|
+
@AllList = alllist
|
313
|
+
@Limit = limit
|
314
|
+
@Offset = offset
|
315
|
+
end
|
316
|
+
|
317
|
+
def deserialize(params)
|
318
|
+
@AllList = params['AllList']
|
319
|
+
@Limit = params['Limit']
|
320
|
+
@Offset = params['Offset']
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# DescribeProjects返回参数结构体
|
325
|
+
class DescribeProjectsResponse < TencentCloud::Common::AbstractModel
|
326
|
+
# @param Total: 数据总条数
|
327
|
+
# @type Total: Integer
|
328
|
+
# @param Projects: 项目列表
|
329
|
+
# @type Projects: Array
|
330
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
331
|
+
# @type RequestId: String
|
332
|
+
|
333
|
+
attr_accessor :Total, :Projects, :RequestId
|
334
|
+
|
335
|
+
def initialize(total=nil, projects=nil, requestid=nil)
|
336
|
+
@Total = total
|
337
|
+
@Projects = projects
|
338
|
+
@RequestId = requestid
|
339
|
+
end
|
340
|
+
|
341
|
+
def deserialize(params)
|
342
|
+
@Total = params['Total']
|
343
|
+
unless params['Projects'].nil?
|
344
|
+
@Projects = []
|
345
|
+
params['Projects'].each do |i|
|
346
|
+
project_tmp = Project.new
|
347
|
+
project_tmp.deserialize(i)
|
348
|
+
@Projects << project_tmp
|
349
|
+
end
|
350
|
+
end
|
351
|
+
@RequestId = params['RequestId']
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
300
355
|
# DescribeResourceTagsByResourceIds请求参数结构体
|
301
356
|
class DescribeResourceTagsByResourceIdsRequest < TencentCloud::Common::AbstractModel
|
302
357
|
# @param ServiceType: 业务类型
|
@@ -1560,6 +1615,38 @@ module TencentCloud
|
|
1560
1615
|
end
|
1561
1616
|
end
|
1562
1617
|
|
1618
|
+
# 项目信息
|
1619
|
+
class Project < TencentCloud::Common::AbstractModel
|
1620
|
+
# @param ProjectId: 项目ID
|
1621
|
+
# @type ProjectId: Integer
|
1622
|
+
# @param ProjectName: 项目名称
|
1623
|
+
# @type ProjectName: String
|
1624
|
+
# @param CreatorUin: 创建人uin
|
1625
|
+
# @type CreatorUin: Integer
|
1626
|
+
# @param ProjectInfo: 项目描述
|
1627
|
+
# @type ProjectInfo: String
|
1628
|
+
# @param CreateTime: 创建时间
|
1629
|
+
# @type CreateTime: String
|
1630
|
+
|
1631
|
+
attr_accessor :ProjectId, :ProjectName, :CreatorUin, :ProjectInfo, :CreateTime
|
1632
|
+
|
1633
|
+
def initialize(projectid=nil, projectname=nil, creatoruin=nil, projectinfo=nil, createtime=nil)
|
1634
|
+
@ProjectId = projectid
|
1635
|
+
@ProjectName = projectname
|
1636
|
+
@CreatorUin = creatoruin
|
1637
|
+
@ProjectInfo = projectinfo
|
1638
|
+
@CreateTime = createtime
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
def deserialize(params)
|
1642
|
+
@ProjectId = params['ProjectId']
|
1643
|
+
@ProjectName = params['ProjectName']
|
1644
|
+
@CreatorUin = params['CreatorUin']
|
1645
|
+
@ProjectInfo = params['ProjectInfo']
|
1646
|
+
@CreateTime = params['CreateTime']
|
1647
|
+
end
|
1648
|
+
end
|
1649
|
+
|
1563
1650
|
# 资源标签键值
|
1564
1651
|
class ResourceIdTag < TencentCloud::Common::AbstractModel
|
1565
1652
|
# @param ResourceId: 资源唯一标识
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.382
|
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-08-
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|