tencentcloud-sdk-tag 3.0.435 → 3.0.436

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: aa3e247307dc689f90d129bfcb9b0b2fba583094
4
- data.tar.gz: 1716705dade7433d16cc0e4292d40b0f77a9e4dd
3
+ metadata.gz: fa76f79ee4a0ebcbbeff922d16b41e40f2ea0643
4
+ data.tar.gz: 03dad8052183809dd16523de996efaa3d4e07a41
5
5
  SHA512:
6
- metadata.gz: e0726f59d8c1625325e1c0c6ec94a6122a639a8660711f8478ff779e0afd0073cc78f9262f1ccf36ba2f15841ebeafcc2a0ecb3812026437617a3b42d733aaca
7
- data.tar.gz: c0823a95ed7cba62a851f85f1c7da2323376b620858167360d694156a2a7cd79a055ef945e7b2619153fa35d6ae106c98105975a513d38c8795aa74509e19732
6
+ metadata.gz: cbd762d1c7ab440b4940927aef39b24502e0de9482b71d2c30b88871bd9538465cb5fec677394b2ebdaad81647d1aad2cfcc4e178576ccd4f9a2a1577f6371e4
7
+ data.tar.gz: b4e7631e4fef823b08d91253a5cb8de22af70490b4cb2f1d506d05fb687fa455d19548288ef3dabd0e47fbc59c75deebd8a45b8f3c3f31a497f15db11891237b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.435
1
+ 3.0.436
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建项目
33
+
34
+ # @param request: Request instance for AddProject.
35
+ # @type request: :class:`Tencentcloud::tag::V20180813::AddProjectRequest`
36
+ # @rtype: :class:`Tencentcloud::tag::V20180813::AddProjectResponse`
37
+ def AddProject(request)
38
+ body = send_request('AddProject', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddProjectResponse.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
  # 本接口用于给标签关联资源
33
57
 
34
58
  # @param request: Request instance for AddResourceTag.
@@ -701,6 +725,30 @@ module TencentCloud
701
725
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
726
  end
703
727
 
728
+ # 修改项目
729
+
730
+ # @param request: Request instance for UpdateProject.
731
+ # @type request: :class:`Tencentcloud::tag::V20180813::UpdateProjectRequest`
732
+ # @rtype: :class:`Tencentcloud::tag::V20180813::UpdateProjectResponse`
733
+ def UpdateProject(request)
734
+ body = send_request('UpdateProject', request.serialize)
735
+ response = JSON.parse(body)
736
+ if response['Response'].key?('Error') == false
737
+ model = UpdateProjectResponse.new
738
+ model.deserialize(response['Response'])
739
+ model
740
+ else
741
+ code = response['Response']['Error']['Code']
742
+ message = response['Response']['Error']['Message']
743
+ reqid = response['Response']['RequestId']
744
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
745
+ end
746
+ rescue TencentCloud::Common::TencentCloudSDKException => e
747
+ raise e
748
+ rescue StandardError => e
749
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
+ end
751
+
704
752
  # 本接口用于修改资源已关联的标签值(标签键不变)
705
753
 
706
754
  # @param request: Request instance for UpdateResourceTagValue.
@@ -17,6 +17,50 @@
17
17
  module TencentCloud
18
18
  module Tag
19
19
  module V20180813
20
+ # AddProject请求参数结构体
21
+ class AddProjectRequest < TencentCloud::Common::AbstractModel
22
+ # @param ProjectName: 项目名称
23
+ # @type ProjectName: String
24
+ # @param Info: 项目描述
25
+ # @type Info: String
26
+
27
+ attr_accessor :ProjectName, :Info
28
+
29
+ def initialize(projectname=nil, info=nil)
30
+ @ProjectName = projectname
31
+ @Info = info
32
+ end
33
+
34
+ def deserialize(params)
35
+ @ProjectName = params['ProjectName']
36
+ @Info = params['Info']
37
+ end
38
+ end
39
+
40
+ # AddProject返回参数结构体
41
+ class AddProjectResponse < TencentCloud::Common::AbstractModel
42
+ # @param ProjectId: 项目Id
43
+ # @type ProjectId: Integer
44
+ # @param IsNew: 是否为新项目
45
+ # @type IsNew: Integer
46
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
47
+ # @type RequestId: String
48
+
49
+ attr_accessor :ProjectId, :IsNew, :RequestId
50
+
51
+ def initialize(projectid=nil, isnew=nil, requestid=nil)
52
+ @ProjectId = projectid
53
+ @IsNew = isnew
54
+ @RequestId = requestid
55
+ end
56
+
57
+ def deserialize(params)
58
+ @ProjectId = params['ProjectId']
59
+ @IsNew = params['IsNew']
60
+ @RequestId = params['RequestId']
61
+ end
62
+ end
63
+
20
64
  # AddResourceTag请求参数结构体
21
65
  class AddResourceTagRequest < TencentCloud::Common::AbstractModel
22
66
  # @param TagKey: 标签键
@@ -1979,6 +2023,50 @@ module TencentCloud
1979
2023
  end
1980
2024
  end
1981
2025
 
2026
+ # UpdateProject请求参数结构体
2027
+ class UpdateProjectRequest < TencentCloud::Common::AbstractModel
2028
+ # @param ProjectId: 项目ID
2029
+ # @type ProjectId: Integer
2030
+ # @param ProjectName: 项目名称
2031
+ # @type ProjectName: String
2032
+ # @param Disable: 禁用项目,1,禁用,0,启用
2033
+ # @type Disable: Integer
2034
+ # @param Info: 备注
2035
+ # @type Info: String
2036
+
2037
+ attr_accessor :ProjectId, :ProjectName, :Disable, :Info
2038
+
2039
+ def initialize(projectid=nil, projectname=nil, disable=nil, info=nil)
2040
+ @ProjectId = projectid
2041
+ @ProjectName = projectname
2042
+ @Disable = disable
2043
+ @Info = info
2044
+ end
2045
+
2046
+ def deserialize(params)
2047
+ @ProjectId = params['ProjectId']
2048
+ @ProjectName = params['ProjectName']
2049
+ @Disable = params['Disable']
2050
+ @Info = params['Info']
2051
+ end
2052
+ end
2053
+
2054
+ # UpdateProject返回参数结构体
2055
+ class UpdateProjectResponse < TencentCloud::Common::AbstractModel
2056
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2057
+ # @type RequestId: String
2058
+
2059
+ attr_accessor :RequestId
2060
+
2061
+ def initialize(requestid=nil)
2062
+ @RequestId = requestid
2063
+ end
2064
+
2065
+ def deserialize(params)
2066
+ @RequestId = params['RequestId']
2067
+ end
2068
+ end
2069
+
1982
2070
  # UpdateResourceTagValue请求参数结构体
1983
2071
  class UpdateResourceTagValueRequest < TencentCloud::Common::AbstractModel
1984
2072
  # @param TagKey: 资源关联的标签键
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.435
4
+ version: 3.0.436
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-10-25 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common