tencentcloud-sdk-cam 3.0.442 → 3.0.444

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: 328ff3db5fc7d7260d05f005f01b982078a71295
4
- data.tar.gz: bc2e151ca0fa803a40a7b887ed2ca4a8897ab9a1
3
+ metadata.gz: ae684f8a395abe0e37eacb665cff605da40ab4cc
4
+ data.tar.gz: 241109385d122ee692b00b57bffa8735feb67932
5
5
  SHA512:
6
- metadata.gz: 96be63adb2e7e016e06b334fa340c78104f3bc7ffabbcd923e0757732e843fd8798bd2e7cdc28a688815a0b04fd357d1978e19db31fe232f1a398559b51b9c5f
7
- data.tar.gz: 174b51124d1b34b24a8f83c796e944f4daf7e13ee03212c718367c4c21ee6592193acc59b6a3a14b52a9f70cd8429a2ffd1196cd6d4157c5a7032aa364ec448c
6
+ metadata.gz: d42fb66116889e96c3b19c8a6e8aab63c2aade9fbc11523aa019f8abec523bed48d79ed6322f72d409f0c5428f582dbdf26bf68b930bdacdc367b94602cb0ac2
7
+ data.tar.gz: 48c00ca9c082ddc5c7e5766b7fdd9bf675acacf753ae2266e16a1fe7841b1c711a042d3ed1529afbf895adcb5040fa4a9d7eb6fb80b2257ab63f514aa65c5e3d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.442
1
+ 3.0.444
@@ -173,6 +173,30 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 为CAM用户创建访问密钥
177
+
178
+ # @param request: Request instance for CreateAccessKey.
179
+ # @type request: :class:`Tencentcloud::cam::V20190116::CreateAccessKeyRequest`
180
+ # @rtype: :class:`Tencentcloud::cam::V20190116::CreateAccessKeyResponse`
181
+ def CreateAccessKey(request)
182
+ body = send_request('CreateAccessKey', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateAccessKeyResponse.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
+
176
200
  # 创建用户组
177
201
 
178
202
  # @param request: Request instance for CreateGroup.
@@ -389,6 +413,31 @@ module TencentCloud
389
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
414
  end
391
415
 
416
+ # 为CAM用户删除访问密钥。
417
+ # 此接口属于高风险操作,删除密钥后不可恢复,腾讯云将永久拒绝此密钥的所有请求,请谨慎使用。
418
+
419
+ # @param request: Request instance for DeleteAccessKey.
420
+ # @type request: :class:`Tencentcloud::cam::V20190116::DeleteAccessKeyRequest`
421
+ # @rtype: :class:`Tencentcloud::cam::V20190116::DeleteAccessKeyResponse`
422
+ def DeleteAccessKey(request)
423
+ body = send_request('DeleteAccessKey', request.serialize)
424
+ response = JSON.parse(body)
425
+ if response['Response'].key?('Error') == false
426
+ model = DeleteAccessKeyResponse.new
427
+ model.deserialize(response['Response'])
428
+ model
429
+ else
430
+ code = response['Response']['Error']['Code']
431
+ message = response['Response']['Error']['Message']
432
+ reqid = response['Response']['RequestId']
433
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
434
+ end
435
+ rescue TencentCloud::Common::TencentCloudSDKException => e
436
+ raise e
437
+ rescue StandardError => e
438
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
439
+ end
440
+
392
441
  # 删除用户组
393
442
 
394
443
  # @param request: Request instance for DeleteGroup.
@@ -1781,6 +1830,30 @@ module TencentCloud
1781
1830
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
1831
  end
1783
1832
 
1833
+ # 为CAM用户更新访问密钥
1834
+
1835
+ # @param request: Request instance for UpdateAccessKey.
1836
+ # @type request: :class:`Tencentcloud::cam::V20190116::UpdateAccessKeyRequest`
1837
+ # @rtype: :class:`Tencentcloud::cam::V20190116::UpdateAccessKeyResponse`
1838
+ def UpdateAccessKey(request)
1839
+ body = send_request('UpdateAccessKey', request.serialize)
1840
+ response = JSON.parse(body)
1841
+ if response['Response'].key?('Error') == false
1842
+ model = UpdateAccessKeyResponse.new
1843
+ model.deserialize(response['Response'])
1844
+ model
1845
+ else
1846
+ code = response['Response']['Error']['Code']
1847
+ message = response['Response']['Error']['Message']
1848
+ reqid = response['Response']['RequestId']
1849
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1850
+ end
1851
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1852
+ raise e
1853
+ rescue StandardError => e
1854
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1855
+ end
1856
+
1784
1857
  # 本接口(UpdateAssumeRolePolicy)用于修改角色信任策略的策略文档。
1785
1858
 
1786
1859
  # @param request: Request instance for UpdateAssumeRolePolicy.
@@ -41,6 +41,34 @@ module TencentCloud
41
41
  end
42
42
  end
43
43
 
44
+ # 访问密钥
45
+ class AccessKeyDetail < TencentCloud::Common::AbstractModel
46
+ # @param AccessKeyId: 访问密钥标识
47
+ # @type AccessKeyId: String
48
+ # @param SecretAccessKey: 访问密钥(密钥仅创建时可见,请妥善保存)
49
+ # @type SecretAccessKey: String
50
+ # @param Status: 密钥状态,激活(Active)或未激活(Inactive)
51
+ # @type Status: String
52
+ # @param CreateTime: 创建时间
53
+ # @type CreateTime: String
54
+
55
+ attr_accessor :AccessKeyId, :SecretAccessKey, :Status, :CreateTime
56
+
57
+ def initialize(accesskeyid=nil, secretaccesskey=nil, status=nil, createtime=nil)
58
+ @AccessKeyId = accesskeyid
59
+ @SecretAccessKey = secretaccesskey
60
+ @Status = status
61
+ @CreateTime = createtime
62
+ end
63
+
64
+ def deserialize(params)
65
+ @AccessKeyId = params['AccessKeyId']
66
+ @SecretAccessKey = params['SecretAccessKey']
67
+ @Status = params['Status']
68
+ @CreateTime = params['CreateTime']
69
+ end
70
+ end
71
+
44
72
  # AddUser请求参数结构体
45
73
  class AddUserRequest < TencentCloud::Common::AbstractModel
46
74
  # @param Name: 子用户用户名
@@ -543,6 +571,46 @@ module TencentCloud
543
571
  end
544
572
  end
545
573
 
574
+ # CreateAccessKey请求参数结构体
575
+ class CreateAccessKeyRequest < TencentCloud::Common::AbstractModel
576
+ # @param TargetUin: 指定用户Uin,不填默认为当前用户创建访问密钥
577
+ # @type TargetUin: Integer
578
+
579
+ attr_accessor :TargetUin
580
+
581
+ def initialize(targetuin=nil)
582
+ @TargetUin = targetuin
583
+ end
584
+
585
+ def deserialize(params)
586
+ @TargetUin = params['TargetUin']
587
+ end
588
+ end
589
+
590
+ # CreateAccessKey返回参数结构体
591
+ class CreateAccessKeyResponse < TencentCloud::Common::AbstractModel
592
+ # @param AccessKey: 访问密钥
593
+ # 注意:此字段可能返回 null,表示取不到有效值。
594
+ # @type AccessKey: :class:`Tencentcloud::Cam.v20190116.models.AccessKeyDetail`
595
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
596
+ # @type RequestId: String
597
+
598
+ attr_accessor :AccessKey, :RequestId
599
+
600
+ def initialize(accesskey=nil, requestid=nil)
601
+ @AccessKey = accesskey
602
+ @RequestId = requestid
603
+ end
604
+
605
+ def deserialize(params)
606
+ unless params['AccessKey'].nil?
607
+ @AccessKey = AccessKeyDetail.new
608
+ @AccessKey.deserialize(params['AccessKey'])
609
+ end
610
+ @RequestId = params['RequestId']
611
+ end
612
+ end
613
+
546
614
  # CreateGroup请求参数结构体
547
615
  class CreateGroupRequest < TencentCloud::Common::AbstractModel
548
616
  # @param GroupName: 用户组名
@@ -980,6 +1048,42 @@ module TencentCloud
980
1048
  end
981
1049
  end
982
1050
 
1051
+ # DeleteAccessKey请求参数结构体
1052
+ class DeleteAccessKeyRequest < TencentCloud::Common::AbstractModel
1053
+ # @param AccessKeyId: 指定需要删除的AccessKeyId
1054
+ # @type AccessKeyId: String
1055
+ # @param TargetUin: 指定用户Uin,不填默认为当前用户删除访问密钥
1056
+ # @type TargetUin: Integer
1057
+
1058
+ attr_accessor :AccessKeyId, :TargetUin
1059
+
1060
+ def initialize(accesskeyid=nil, targetuin=nil)
1061
+ @AccessKeyId = accesskeyid
1062
+ @TargetUin = targetuin
1063
+ end
1064
+
1065
+ def deserialize(params)
1066
+ @AccessKeyId = params['AccessKeyId']
1067
+ @TargetUin = params['TargetUin']
1068
+ end
1069
+ end
1070
+
1071
+ # DeleteAccessKey返回参数结构体
1072
+ class DeleteAccessKeyResponse < TencentCloud::Common::AbstractModel
1073
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1074
+ # @type RequestId: String
1075
+
1076
+ attr_accessor :RequestId
1077
+
1078
+ def initialize(requestid=nil)
1079
+ @RequestId = requestid
1080
+ end
1081
+
1082
+ def deserialize(params)
1083
+ @RequestId = params['RequestId']
1084
+ end
1085
+ end
1086
+
983
1087
  # DeleteGroup请求参数结构体
984
1088
  class DeleteGroupRequest < TencentCloud::Common::AbstractModel
985
1089
  # @param GroupId: 用户组 ID
@@ -4438,6 +4542,46 @@ module TencentCloud
4438
4542
  end
4439
4543
  end
4440
4544
 
4545
+ # UpdateAccessKey请求参数结构体
4546
+ class UpdateAccessKeyRequest < TencentCloud::Common::AbstractModel
4547
+ # @param AccessKeyId: 指定需要更新的AccessKeyId
4548
+ # @type AccessKeyId: String
4549
+ # @param Status: 密钥状态,激活(Active)或未激活(Inactive)
4550
+ # @type Status: String
4551
+ # @param TargetUin: 指定用户Uin,不填默认为当前用户更新访问密钥
4552
+ # @type TargetUin: Integer
4553
+
4554
+ attr_accessor :AccessKeyId, :Status, :TargetUin
4555
+
4556
+ def initialize(accesskeyid=nil, status=nil, targetuin=nil)
4557
+ @AccessKeyId = accesskeyid
4558
+ @Status = status
4559
+ @TargetUin = targetuin
4560
+ end
4561
+
4562
+ def deserialize(params)
4563
+ @AccessKeyId = params['AccessKeyId']
4564
+ @Status = params['Status']
4565
+ @TargetUin = params['TargetUin']
4566
+ end
4567
+ end
4568
+
4569
+ # UpdateAccessKey返回参数结构体
4570
+ class UpdateAccessKeyResponse < TencentCloud::Common::AbstractModel
4571
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4572
+ # @type RequestId: String
4573
+
4574
+ attr_accessor :RequestId
4575
+
4576
+ def initialize(requestid=nil)
4577
+ @RequestId = requestid
4578
+ end
4579
+
4580
+ def deserialize(params)
4581
+ @RequestId = params['RequestId']
4582
+ end
4583
+ end
4584
+
4441
4585
  # UpdateAssumeRolePolicy请求参数结构体
4442
4586
  class UpdateAssumeRolePolicyRequest < TencentCloud::Common::AbstractModel
4443
4587
  # @param PolicyDocument: 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cam
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.442
4
+ version: 3.0.444
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-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-cam.rb
37
36
  - lib/v20190116/models.rb
38
37
  - lib/v20190116/client.rb
38
+ - lib/tencentcloud-sdk-cam.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: