tencentcloud-sdk-cam 1.0.306 → 1.0.309

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 788e7884c0b7b10b38f48164eb0506f5ddf0daaa
4
- data.tar.gz: 901cd7010f3584ebe2df8027dcf588747f7c09d2
3
+ metadata.gz: c28a8817e009437800782b8e9b29c82a632d9c1d
4
+ data.tar.gz: a78d733ccbbe0a7db7d7bff418bdef498063fa56
5
5
  SHA512:
6
- metadata.gz: eeb7b8020483ee9a1c7e95d8501dcb489370a3e03701dca4f3f62112eeebedd7a370020ea591a801324d3e4b14066d24da1fe1950e44f1c74b1c075485ac2ae1
7
- data.tar.gz: b2ffc09ea4aaeb1d44ee710ae894a4c2c9996d2d9e5f4e248a3e1e18a8d0e2c2029327b45e93efbd86d627329b439664eb653dab9055da00c4278f8f21eedc21
6
+ metadata.gz: 817a1e1878a53af4e49cceeaf40ca8b5b0f98468d606a5298e7a8811f20e41744f933680b4ec44471a8986bb3a830d6701fbeba1e6f532414de19897918f0651
7
+ data.tar.gz: d9d7e23bbdbc73cd024fcac3bfed4b66f3727fcea46655964e176859eb1a125255f4529f55eff3979a8d2b9fb40015609b160b4f47022589b4a506c9a3965d0e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.306
1
+ 1.0.309
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 创建角色OIDC配置
201
+
202
+ # @param request: Request instance for CreateOIDCConfig.
203
+ # @type request: :class:`Tencentcloud::cam::V20190116::CreateOIDCConfigRequest`
204
+ # @rtype: :class:`Tencentcloud::cam::V20190116::CreateOIDCConfigResponse`
205
+ def CreateOIDCConfig(request)
206
+ body = send_request('CreateOIDCConfig', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateOIDCConfigResponse.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
  # 本接口(CreatePolicy)可用于创建策略。
201
225
 
202
226
  # @param request: Request instance for CreatePolicy.
@@ -389,6 +413,30 @@ module TencentCloud
389
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
414
  end
391
415
 
416
+ # 删除OIDC身份提供商
417
+
418
+ # @param request: Request instance for DeleteOIDCConfig.
419
+ # @type request: :class:`Tencentcloud::cam::V20190116::DeleteOIDCConfigRequest`
420
+ # @rtype: :class:`Tencentcloud::cam::V20190116::DeleteOIDCConfigResponse`
421
+ def DeleteOIDCConfig(request)
422
+ body = send_request('DeleteOIDCConfig', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DeleteOIDCConfigResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
392
440
  # 本接口(DeletePolicy)可用于删除策略。
393
441
 
394
442
  # @param request: Request instance for DeletePolicy.
@@ -581,6 +629,30 @@ module TencentCloud
581
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
630
  end
583
631
 
632
+ # 查询角色OIDC配置
633
+
634
+ # @param request: Request instance for DescribeOIDCConfig.
635
+ # @type request: :class:`Tencentcloud::cam::V20190116::DescribeOIDCConfigRequest`
636
+ # @rtype: :class:`Tencentcloud::cam::V20190116::DescribeOIDCConfigResponse`
637
+ def DescribeOIDCConfig(request)
638
+ body = send_request('DescribeOIDCConfig', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeOIDCConfigResponse.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
+
584
656
  # 本接口(DescribeRoleList)用于获取账号下的角色列表。
585
657
 
586
658
  # @param request: Request instance for DescribeRoleList.
@@ -1709,6 +1781,30 @@ module TencentCloud
1709
1781
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
1782
  end
1711
1783
 
1784
+ # 修改角色OIDC配置
1785
+
1786
+ # @param request: Request instance for UpdateOIDCConfig.
1787
+ # @type request: :class:`Tencentcloud::cam::V20190116::UpdateOIDCConfigRequest`
1788
+ # @rtype: :class:`Tencentcloud::cam::V20190116::UpdateOIDCConfigResponse`
1789
+ def UpdateOIDCConfig(request)
1790
+ body = send_request('UpdateOIDCConfig', request.serialize)
1791
+ response = JSON.parse(body)
1792
+ if response['Response'].key?('Error') == false
1793
+ model = UpdateOIDCConfigResponse.new
1794
+ model.deserialize(response['Response'])
1795
+ model
1796
+ else
1797
+ code = response['Response']['Error']['Code']
1798
+ message = response['Response']['Error']['Message']
1799
+ reqid = response['Response']['RequestId']
1800
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1801
+ end
1802
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1803
+ raise e
1804
+ rescue StandardError => e
1805
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1806
+ end
1807
+
1712
1808
  # 本接口(UpdatePolicy )可用于更新策略。
1713
1809
  # 如果已存在策略版本,本接口会直接更新策略的默认版本,不会创建新版本,如果不存在任何策略版本,则直接创建一个默认版本。
1714
1810
 
@@ -583,6 +583,54 @@ module TencentCloud
583
583
  end
584
584
  end
585
585
 
586
+ # CreateOIDCConfig请求参数结构体
587
+ class CreateOIDCConfigRequest < TencentCloud::Common::AbstractModel
588
+ # @param IdentityUrl: 身份提供商URL
589
+ # @type IdentityUrl: String
590
+ # @param IdentityKey: 签名公钥,需要base64
591
+ # @type IdentityKey: String
592
+ # @param ClientId: 客户端ID
593
+ # @type ClientId: Array
594
+ # @param Name: 名称
595
+ # @type Name: String
596
+ # @param Description: 描述
597
+ # @type Description: String
598
+
599
+ attr_accessor :IdentityUrl, :IdentityKey, :ClientId, :Name, :Description
600
+
601
+ def initialize(identityurl=nil, identitykey=nil, clientid=nil, name=nil, description=nil)
602
+ @IdentityUrl = identityurl
603
+ @IdentityKey = identitykey
604
+ @ClientId = clientid
605
+ @Name = name
606
+ @Description = description
607
+ end
608
+
609
+ def deserialize(params)
610
+ @IdentityUrl = params['IdentityUrl']
611
+ @IdentityKey = params['IdentityKey']
612
+ @ClientId = params['ClientId']
613
+ @Name = params['Name']
614
+ @Description = params['Description']
615
+ end
616
+ end
617
+
618
+ # CreateOIDCConfig返回参数结构体
619
+ class CreateOIDCConfigResponse < TencentCloud::Common::AbstractModel
620
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
621
+ # @type RequestId: String
622
+
623
+ attr_accessor :RequestId
624
+
625
+ def initialize(requestid=nil)
626
+ @RequestId = requestid
627
+ end
628
+
629
+ def deserialize(params)
630
+ @RequestId = params['RequestId']
631
+ end
632
+ end
633
+
586
634
  # CreatePolicy请求参数结构体
587
635
  class CreatePolicyRequest < TencentCloud::Common::AbstractModel
588
636
  # @param PolicyName: 策略名
@@ -942,6 +990,38 @@ module TencentCloud
942
990
  end
943
991
  end
944
992
 
993
+ # DeleteOIDCConfig请求参数结构体
994
+ class DeleteOIDCConfigRequest < TencentCloud::Common::AbstractModel
995
+ # @param Name: OIDC身份提供商名称
996
+ # @type Name: String
997
+
998
+ attr_accessor :Name
999
+
1000
+ def initialize(name=nil)
1001
+ @Name = name
1002
+ end
1003
+
1004
+ def deserialize(params)
1005
+ @Name = params['Name']
1006
+ end
1007
+ end
1008
+
1009
+ # DeleteOIDCConfig返回参数结构体
1010
+ class DeleteOIDCConfigResponse < TencentCloud::Common::AbstractModel
1011
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1012
+ # @type RequestId: String
1013
+
1014
+ attr_accessor :RequestId
1015
+
1016
+ def initialize(requestid=nil)
1017
+ @RequestId = requestid
1018
+ end
1019
+
1020
+ def deserialize(params)
1021
+ @RequestId = params['RequestId']
1022
+ end
1023
+ end
1024
+
945
1025
  # DeletePolicy请求参数结构体
946
1026
  class DeletePolicyRequest < TencentCloud::Common::AbstractModel
947
1027
  # @param PolicyId: 数组,数组成员是策略 id,支持批量删除策略
@@ -1218,6 +1298,66 @@ module TencentCloud
1218
1298
  end
1219
1299
  end
1220
1300
 
1301
+ # DescribeOIDCConfig请求参数结构体
1302
+ class DescribeOIDCConfigRequest < TencentCloud::Common::AbstractModel
1303
+ # @param Name: 名称
1304
+ # @type Name: String
1305
+
1306
+ attr_accessor :Name
1307
+
1308
+ def initialize(name=nil)
1309
+ @Name = name
1310
+ end
1311
+
1312
+ def deserialize(params)
1313
+ @Name = params['Name']
1314
+ end
1315
+ end
1316
+
1317
+ # DescribeOIDCConfig返回参数结构体
1318
+ class DescribeOIDCConfigResponse < TencentCloud::Common::AbstractModel
1319
+ # @param ProviderType: 身份提供商类型 11角色身份提供商
1320
+ # @type ProviderType: Integer
1321
+ # @param IdentityUrl: 身份提供商URL
1322
+ # @type IdentityUrl: String
1323
+ # @param IdentityKey: 签名公钥
1324
+ # @type IdentityKey: String
1325
+ # @param ClientId: 客户端id
1326
+ # @type ClientId: Array
1327
+ # @param Status: 状态:0:未设置,11:已开启,2:已禁用
1328
+ # @type Status: Integer
1329
+ # @param Description: 描述
1330
+ # @type Description: String
1331
+ # @param Name: 名称
1332
+ # @type Name: String
1333
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1334
+ # @type RequestId: String
1335
+
1336
+ attr_accessor :ProviderType, :IdentityUrl, :IdentityKey, :ClientId, :Status, :Description, :Name, :RequestId
1337
+
1338
+ def initialize(providertype=nil, identityurl=nil, identitykey=nil, clientid=nil, status=nil, description=nil, name=nil, requestid=nil)
1339
+ @ProviderType = providertype
1340
+ @IdentityUrl = identityurl
1341
+ @IdentityKey = identitykey
1342
+ @ClientId = clientid
1343
+ @Status = status
1344
+ @Description = description
1345
+ @Name = name
1346
+ @RequestId = requestid
1347
+ end
1348
+
1349
+ def deserialize(params)
1350
+ @ProviderType = params['ProviderType']
1351
+ @IdentityUrl = params['IdentityUrl']
1352
+ @IdentityKey = params['IdentityKey']
1353
+ @ClientId = params['ClientId']
1354
+ @Status = params['Status']
1355
+ @Description = params['Description']
1356
+ @Name = params['Name']
1357
+ @RequestId = params['RequestId']
1358
+ end
1359
+ end
1360
+
1221
1361
  # DescribeRoleList请求参数结构体
1222
1362
  class DescribeRoleListRequest < TencentCloud::Common::AbstractModel
1223
1363
  # @param Page: 页码,从1开始
@@ -4226,6 +4366,54 @@ module TencentCloud
4226
4366
  end
4227
4367
  end
4228
4368
 
4369
+ # UpdateOIDCConfig请求参数结构体
4370
+ class UpdateOIDCConfigRequest < TencentCloud::Common::AbstractModel
4371
+ # @param IdentityUrl: 身份提供商URL
4372
+ # @type IdentityUrl: String
4373
+ # @param IdentityKey: 签名公钥,需要base64
4374
+ # @type IdentityKey: String
4375
+ # @param ClientId: 客户端ID
4376
+ # @type ClientId: Array
4377
+ # @param Name: 名称
4378
+ # @type Name: String
4379
+ # @param Description: 描述
4380
+ # @type Description: String
4381
+
4382
+ attr_accessor :IdentityUrl, :IdentityKey, :ClientId, :Name, :Description
4383
+
4384
+ def initialize(identityurl=nil, identitykey=nil, clientid=nil, name=nil, description=nil)
4385
+ @IdentityUrl = identityurl
4386
+ @IdentityKey = identitykey
4387
+ @ClientId = clientid
4388
+ @Name = name
4389
+ @Description = description
4390
+ end
4391
+
4392
+ def deserialize(params)
4393
+ @IdentityUrl = params['IdentityUrl']
4394
+ @IdentityKey = params['IdentityKey']
4395
+ @ClientId = params['ClientId']
4396
+ @Name = params['Name']
4397
+ @Description = params['Description']
4398
+ end
4399
+ end
4400
+
4401
+ # UpdateOIDCConfig返回参数结构体
4402
+ class UpdateOIDCConfigResponse < TencentCloud::Common::AbstractModel
4403
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4404
+ # @type RequestId: String
4405
+
4406
+ attr_accessor :RequestId
4407
+
4408
+ def initialize(requestid=nil)
4409
+ @RequestId = requestid
4410
+ end
4411
+
4412
+ def deserialize(params)
4413
+ @RequestId = params['RequestId']
4414
+ end
4415
+ end
4416
+
4229
4417
  # UpdatePolicy请求参数结构体
4230
4418
  class UpdatePolicyRequest < TencentCloud::Common::AbstractModel
4231
4419
  # @param PolicyId: 策略ID,与PolicyName二选一必填
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: 1.0.306
4
+ version: 1.0.309
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-05-05 00:00:00.000000000 Z
11
+ date: 2022-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common