tencentcloud-sdk-cam 1.0.288 → 1.0.291

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: 92773d6bd28013041dc2504e704afaa3fb9f8ba7
4
- data.tar.gz: 37fa6f5d13a123efa8b70965eeafcb4c981704b2
3
+ metadata.gz: 963313928966ba2c9236d52d46a3a350b4b5a6d6
4
+ data.tar.gz: 4f8ee902a6bab06203b341851ee42ae361f1198d
5
5
  SHA512:
6
- metadata.gz: 2f155679d1ff4db624d8c8d7dc3c7fff2f534dc0d8042757e1ba3f9697938445a2d3b92a6887dfeef4ed362bb77693cee025b1fdced05a199d54f3beddc38947
7
- data.tar.gz: ae5e2dc043e8441d7cc840f21793d780e5e9bf445fab6c10cf7f11e7985fc569c907d3f51b1c5096b449c17c2d8d396dbba42516bfdb670eee95e441c3ae2e0a
6
+ metadata.gz: 533fe74eb7339e0253ad71731da2910beff04bed04c241d5bc4e7882f8e9015dd5ba0fe0617c7f88af5bc3980daecaeef80231dca4d3f37f3b1df031e4bc5f89
7
+ data.tar.gz: 121356b67e827bd4b86d7a1284c0f7b16862be3599356ae0a9529c2676a0807b884a67540ade59e98a9cf68408bb9c6d41be7e0e7bae0bfd82d4ffba04a9fcfd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.288
1
+ 1.0.291
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。
321
+
322
+ # @param request: Request instance for CreateUserOIDCConfig.
323
+ # @type request: :class:`Tencentcloud::cam::V20190116::CreateUserOIDCConfigRequest`
324
+ # @rtype: :class:`Tencentcloud::cam::V20190116::CreateUserOIDCConfigResponse`
325
+ def CreateUserOIDCConfig(request)
326
+ body = send_request('CreateUserOIDCConfig', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreateUserOIDCConfigResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 创建用户SAML配置
321
345
 
322
346
  # @param request: Request instance for CreateUserSAMLConfig.
@@ -677,6 +701,30 @@ module TencentCloud
677
701
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
702
  end
679
703
 
704
+ # 查询用户OIDC配置
705
+
706
+ # @param request: Request instance for DescribeUserOIDCConfig.
707
+ # @type request: :class:`Tencentcloud::cam::V20190116::DescribeUserOIDCConfigRequest`
708
+ # @rtype: :class:`Tencentcloud::cam::V20190116::DescribeUserOIDCConfigResponse`
709
+ def DescribeUserOIDCConfig(request)
710
+ body = send_request('DescribeUserOIDCConfig', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = DescribeUserOIDCConfigResponse.new
714
+ model.deserialize(response['Response'])
715
+ model
716
+ else
717
+ code = response['Response']['Error']['Code']
718
+ message = response['Response']['Error']['Message']
719
+ reqid = response['Response']['RequestId']
720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
721
+ end
722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
723
+ raise e
724
+ rescue StandardError => e
725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
+ end
727
+
680
728
  # 查询用户SAML配置
681
729
 
682
730
  # @param request: Request instance for DescribeUserSAMLConfig.
@@ -773,6 +821,30 @@ module TencentCloud
773
821
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
822
  end
775
823
 
824
+ # 禁用用户SSO
825
+
826
+ # @param request: Request instance for DisableUserSSO.
827
+ # @type request: :class:`Tencentcloud::cam::V20190116::DisableUserSSORequest`
828
+ # @rtype: :class:`Tencentcloud::cam::V20190116::DisableUserSSOResponse`
829
+ def DisableUserSSO(request)
830
+ body = send_request('DisableUserSSO', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = DisableUserSSOResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
776
848
  # 查询账户摘要
777
849
 
778
850
  # @param request: Request instance for GetAccountSummary.
@@ -1758,6 +1830,30 @@ module TencentCloud
1758
1830
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1759
1831
  end
1760
1832
 
1833
+ # 修改用户OIDC配置
1834
+
1835
+ # @param request: Request instance for UpdateUserOIDCConfig.
1836
+ # @type request: :class:`Tencentcloud::cam::V20190116::UpdateUserOIDCConfigRequest`
1837
+ # @rtype: :class:`Tencentcloud::cam::V20190116::UpdateUserOIDCConfigResponse`
1838
+ def UpdateUserOIDCConfig(request)
1839
+ body = send_request('UpdateUserOIDCConfig', request.serialize)
1840
+ response = JSON.parse(body)
1841
+ if response['Response'].key?('Error') == false
1842
+ model = UpdateUserOIDCConfigResponse.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
+
1761
1857
  # 修改用户SAML配置
1762
1858
 
1763
1859
  # @param request: Request instance for UpdateUserSAMLConfig.
@@ -813,6 +813,71 @@ module TencentCloud
813
813
  end
814
814
  end
815
815
 
816
+ # CreateUserOIDCConfig请求参数结构体
817
+ class CreateUserOIDCConfigRequest < TencentCloud::Common::AbstractModel
818
+ # @param IdentityUrl: 身份提供商URL。OpenID Connect身份提供商标识。
819
+ # 对应企业IdP提供的Openid-configuration中"issuer"字段的值。
820
+ # @type IdentityUrl: String
821
+ # @param IdentityKey: 签名公钥,需要base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的帐号安全,建议您定期轮换签名公钥。
822
+ # @type IdentityKey: String
823
+ # @param ClientId: 客户端ID,在OpenID Connect身份提供商注册的客户端ID。
824
+ # @type ClientId: String
825
+ # @param AuthorizationEndpoint: 授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中"authorization_endpoint"字段的值。
826
+ # @type AuthorizationEndpoint: String
827
+ # @param ResponseType: 授权请求Response type,固定值id_token
828
+ # @type ResponseType: String
829
+ # @param ResponseMode: 授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。
830
+ # @type ResponseMode: String
831
+ # @param MappingFiled: 映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段
832
+ # @type MappingFiled: String
833
+ # @param Scope: 授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。
834
+ # @type Scope: Array
835
+ # @param Description: 描述
836
+ # @type Description: String
837
+
838
+ attr_accessor :IdentityUrl, :IdentityKey, :ClientId, :AuthorizationEndpoint, :ResponseType, :ResponseMode, :MappingFiled, :Scope, :Description
839
+
840
+ def initialize(identityurl=nil, identitykey=nil, clientid=nil, authorizationendpoint=nil, responsetype=nil, responsemode=nil, mappingfiled=nil, scope=nil, description=nil)
841
+ @IdentityUrl = identityurl
842
+ @IdentityKey = identitykey
843
+ @ClientId = clientid
844
+ @AuthorizationEndpoint = authorizationendpoint
845
+ @ResponseType = responsetype
846
+ @ResponseMode = responsemode
847
+ @MappingFiled = mappingfiled
848
+ @Scope = scope
849
+ @Description = description
850
+ end
851
+
852
+ def deserialize(params)
853
+ @IdentityUrl = params['IdentityUrl']
854
+ @IdentityKey = params['IdentityKey']
855
+ @ClientId = params['ClientId']
856
+ @AuthorizationEndpoint = params['AuthorizationEndpoint']
857
+ @ResponseType = params['ResponseType']
858
+ @ResponseMode = params['ResponseMode']
859
+ @MappingFiled = params['MappingFiled']
860
+ @Scope = params['Scope']
861
+ @Description = params['Description']
862
+ end
863
+ end
864
+
865
+ # CreateUserOIDCConfig返回参数结构体
866
+ class CreateUserOIDCConfigResponse < TencentCloud::Common::AbstractModel
867
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
868
+ # @type RequestId: String
869
+
870
+ attr_accessor :RequestId
871
+
872
+ def initialize(requestid=nil)
873
+ @RequestId = requestid
874
+ end
875
+
876
+ def deserialize(params)
877
+ @RequestId = params['RequestId']
878
+ end
879
+ end
880
+
816
881
  # CreateUserSAMLConfig请求参数结构体
817
882
  class CreateUserSAMLConfigRequest < TencentCloud::Common::AbstractModel
818
883
  # @param SAMLMetadataDocument: SAML元数据文档,需要base64 encode
@@ -1401,6 +1466,77 @@ module TencentCloud
1401
1466
  end
1402
1467
  end
1403
1468
 
1469
+ # DescribeUserOIDCConfig请求参数结构体
1470
+ class DescribeUserOIDCConfigRequest < TencentCloud::Common::AbstractModel
1471
+
1472
+
1473
+ def initialize()
1474
+ end
1475
+
1476
+ def deserialize(params)
1477
+ end
1478
+ end
1479
+
1480
+ # DescribeUserOIDCConfig返回参数结构体
1481
+ class DescribeUserOIDCConfigResponse < TencentCloud::Common::AbstractModel
1482
+ # @param ProviderType: 身份提供商类型。 12:用户OIDC身份提供商
1483
+ # @type ProviderType: Integer
1484
+ # @param IdentityUrl: 身份提供商URL
1485
+ # @type IdentityUrl: String
1486
+ # @param IdentityKey: 签名公钥
1487
+ # @type IdentityKey: String
1488
+ # @param ClientId: 客户端id
1489
+ # @type ClientId: String
1490
+ # @param Status: 状态:0:未设置,11:已开启,2:已禁用
1491
+ # @type Status: Integer
1492
+ # @param AuthorizationEndpoint: 授权请求Endpoint
1493
+ # @type AuthorizationEndpoint: String
1494
+ # @param Scope: 授权请求Scope
1495
+ # @type Scope: Array
1496
+ # @param ResponseType: 授权请求Response type
1497
+ # @type ResponseType: String
1498
+ # @param ResponseMode: 授权请求Response mode
1499
+ # @type ResponseMode: String
1500
+ # @param MappingFiled: 映射字段名称
1501
+ # @type MappingFiled: String
1502
+ # @param Description: 描述
1503
+ # @type Description: String
1504
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1505
+ # @type RequestId: String
1506
+
1507
+ attr_accessor :ProviderType, :IdentityUrl, :IdentityKey, :ClientId, :Status, :AuthorizationEndpoint, :Scope, :ResponseType, :ResponseMode, :MappingFiled, :Description, :RequestId
1508
+
1509
+ def initialize(providertype=nil, identityurl=nil, identitykey=nil, clientid=nil, status=nil, authorizationendpoint=nil, scope=nil, responsetype=nil, responsemode=nil, mappingfiled=nil, description=nil, requestid=nil)
1510
+ @ProviderType = providertype
1511
+ @IdentityUrl = identityurl
1512
+ @IdentityKey = identitykey
1513
+ @ClientId = clientid
1514
+ @Status = status
1515
+ @AuthorizationEndpoint = authorizationendpoint
1516
+ @Scope = scope
1517
+ @ResponseType = responsetype
1518
+ @ResponseMode = responsemode
1519
+ @MappingFiled = mappingfiled
1520
+ @Description = description
1521
+ @RequestId = requestid
1522
+ end
1523
+
1524
+ def deserialize(params)
1525
+ @ProviderType = params['ProviderType']
1526
+ @IdentityUrl = params['IdentityUrl']
1527
+ @IdentityKey = params['IdentityKey']
1528
+ @ClientId = params['ClientId']
1529
+ @Status = params['Status']
1530
+ @AuthorizationEndpoint = params['AuthorizationEndpoint']
1531
+ @Scope = params['Scope']
1532
+ @ResponseType = params['ResponseType']
1533
+ @ResponseMode = params['ResponseMode']
1534
+ @MappingFiled = params['MappingFiled']
1535
+ @Description = params['Description']
1536
+ @RequestId = params['RequestId']
1537
+ end
1538
+ end
1539
+
1404
1540
  # DescribeUserSAMLConfig请求参数结构体
1405
1541
  class DescribeUserSAMLConfigRequest < TencentCloud::Common::AbstractModel
1406
1542
 
@@ -1552,6 +1688,33 @@ module TencentCloud
1552
1688
  end
1553
1689
  end
1554
1690
 
1691
+ # DisableUserSSO请求参数结构体
1692
+ class DisableUserSSORequest < TencentCloud::Common::AbstractModel
1693
+
1694
+
1695
+ def initialize()
1696
+ end
1697
+
1698
+ def deserialize(params)
1699
+ end
1700
+ end
1701
+
1702
+ # DisableUserSSO返回参数结构体
1703
+ class DisableUserSSOResponse < TencentCloud::Common::AbstractModel
1704
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1705
+ # @type RequestId: String
1706
+
1707
+ attr_accessor :RequestId
1708
+
1709
+ def initialize(requestid=nil)
1710
+ @RequestId = requestid
1711
+ end
1712
+
1713
+ def deserialize(params)
1714
+ @RequestId = params['RequestId']
1715
+ end
1716
+ end
1717
+
1555
1718
  # GetAccountSummary请求参数结构体
1556
1719
  class GetAccountSummaryRequest < TencentCloud::Common::AbstractModel
1557
1720
 
@@ -4236,6 +4399,71 @@ module TencentCloud
4236
4399
  end
4237
4400
  end
4238
4401
 
4402
+ # UpdateUserOIDCConfig请求参数结构体
4403
+ class UpdateUserOIDCConfigRequest < TencentCloud::Common::AbstractModel
4404
+ # @param IdentityUrl: 身份提供商URL。OpenID Connect身份提供商标识。
4405
+ # 对应企业IdP提供的Openid-configuration中"issuer"字段的值。
4406
+ # @type IdentityUrl: String
4407
+ # @param IdentityKey: 签名公钥,需要base64_encode。验证OpenID Connect身份提供商ID Token签名的公钥。为了您的帐号安全,建议您定期轮换签名公钥。
4408
+ # @type IdentityKey: String
4409
+ # @param ClientId: 客户端ID,在OpenID Connect身份提供商注册的客户端ID。
4410
+ # @type ClientId: String
4411
+ # @param AuthorizationEndpoint: 授权请求Endpoint,OpenID Connect身份提供商授权地址。对应企业IdP提供的Openid-configuration中"authorization_endpoint"字段的值。
4412
+ # @type AuthorizationEndpoint: String
4413
+ # @param ResponseType: 授权请求Response type,固定值id_token。
4414
+ # @type ResponseType: String
4415
+ # @param ResponseMode: 授权请求Response mode。授权请求返回模式,form_post和fragment两种可选模式,推荐选择form_post模式。
4416
+ # @type ResponseMode: String
4417
+ # @param MappingFiled: 映射字段名称。IdP的id_token中哪一个字段映射到子用户的用户名,通常是sub或者name字段
4418
+ # @type MappingFiled: String
4419
+ # @param Scope: 授权请求Scope。openid; email;profile。授权请求信息范围。默认必选openid。
4420
+ # @type Scope: Array
4421
+ # @param Description: 描述
4422
+ # @type Description: String
4423
+
4424
+ attr_accessor :IdentityUrl, :IdentityKey, :ClientId, :AuthorizationEndpoint, :ResponseType, :ResponseMode, :MappingFiled, :Scope, :Description
4425
+
4426
+ def initialize(identityurl=nil, identitykey=nil, clientid=nil, authorizationendpoint=nil, responsetype=nil, responsemode=nil, mappingfiled=nil, scope=nil, description=nil)
4427
+ @IdentityUrl = identityurl
4428
+ @IdentityKey = identitykey
4429
+ @ClientId = clientid
4430
+ @AuthorizationEndpoint = authorizationendpoint
4431
+ @ResponseType = responsetype
4432
+ @ResponseMode = responsemode
4433
+ @MappingFiled = mappingfiled
4434
+ @Scope = scope
4435
+ @Description = description
4436
+ end
4437
+
4438
+ def deserialize(params)
4439
+ @IdentityUrl = params['IdentityUrl']
4440
+ @IdentityKey = params['IdentityKey']
4441
+ @ClientId = params['ClientId']
4442
+ @AuthorizationEndpoint = params['AuthorizationEndpoint']
4443
+ @ResponseType = params['ResponseType']
4444
+ @ResponseMode = params['ResponseMode']
4445
+ @MappingFiled = params['MappingFiled']
4446
+ @Scope = params['Scope']
4447
+ @Description = params['Description']
4448
+ end
4449
+ end
4450
+
4451
+ # UpdateUserOIDCConfig返回参数结构体
4452
+ class UpdateUserOIDCConfigResponse < TencentCloud::Common::AbstractModel
4453
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4454
+ # @type RequestId: String
4455
+
4456
+ attr_accessor :RequestId
4457
+
4458
+ def initialize(requestid=nil)
4459
+ @RequestId = requestid
4460
+ end
4461
+
4462
+ def deserialize(params)
4463
+ @RequestId = params['RequestId']
4464
+ end
4465
+ end
4466
+
4239
4467
  # UpdateUser请求参数结构体
4240
4468
  class UpdateUserRequest < TencentCloud::Common::AbstractModel
4241
4469
  # @param Name: 子用户用户名
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.288
4
+ version: 1.0.291
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-03-29 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common