tencentcloud-sdk-bh 3.0.1202 → 3.0.1208

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20230418/models.rb +254 -8
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 172c1c1f9440253b3f92f54eda8fc297dbc26897
4
- data.tar.gz: 84d25042dc73e68284ab74a5e990b2fb55485722
3
+ metadata.gz: abe36ba3351b16550cd1008f404632a3eb02f67e
4
+ data.tar.gz: 592f9c4387075def2f8fab75cfb6dcd7a8b7f5bf
5
5
  SHA512:
6
- metadata.gz: 320d407ca627a38524e538446b5e5a8a246abdcf56e19e4f8dde0dae90127e575807b14164a9e604c446c374e5792777a09ab9d290e8030a1a2c54f2ec3c9035
7
- data.tar.gz: c3ce6138ed28ff2aaf42b55890355beed9fa214768e5073914f240995771c51f5884d3695539e5844c25804f422ac36d70c801090bdc362d0ed2438c7596b834
6
+ metadata.gz: cc18eef1b103d7bc7c63cabca958c0e8f051b84c318962ff66064735e539d056f1b214088a4c7eca3089b7977a4df50defbc92d47cd6c0a9976edde2d2c6342b
7
+ data.tar.gz: 5c6a17ae1317135cc6f06bf0058db284c5ca8926d5f214d92ba24d69eb18becd40d3820f23a1b30c57499d445e877675063793fea6d84dc4ceb219fbdf0030d6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1202
1
+ 3.0.1208
@@ -3206,6 +3206,8 @@ module TencentCloud
3206
3206
  # @type IdSet: Array
3207
3207
  # @param Name: 资产名或资产IP,模糊查询
3208
3208
  # @type Name: String
3209
+ # @param ResourceIdSet: 主机绑定的堡垒机服务ID集合 未绑定的通过Filters进行传递
3210
+ # @type ResourceIdSet: Array
3209
3211
  # @param Offset: 分页偏移位置,默认值为0
3210
3212
  # @type Offset: Integer
3211
3213
  # @param Limit: 每页条目数,默认20, 最大500
@@ -3216,21 +3218,25 @@ module TencentCloud
3216
3218
  # @type KindSet: Array
3217
3219
  # @param DepartmentId: 所属部门ID
3218
3220
  # @type DepartmentId: String
3221
+ # @param Filters: 过滤条件,支持 BindingStatus|VpcId |InstanceId |DeviceAccount |ManageDimension|DomainId|Ip|Name
3222
+ # @type Filters: Array
3219
3223
  # @param TagFilters: 过滤条件,可按照标签键、标签进行过滤。如果同时指定标签键和标签过滤条件,它们之间为“AND”的关系
3220
3224
  # @type TagFilters: Array
3221
3225
 
3222
- attr_accessor :Bound, :Id, :IdSet, :Name, :Offset, :Limit, :Kind, :KindSet, :DepartmentId, :TagFilters
3226
+ attr_accessor :Bound, :Id, :IdSet, :Name, :ResourceIdSet, :Offset, :Limit, :Kind, :KindSet, :DepartmentId, :Filters, :TagFilters
3223
3227
 
3224
- def initialize(bound=nil, id=nil, idset=nil, name=nil, offset=nil, limit=nil, kind=nil, kindset=nil, departmentid=nil, tagfilters=nil)
3228
+ def initialize(bound=nil, id=nil, idset=nil, name=nil, resourceidset=nil, offset=nil, limit=nil, kind=nil, kindset=nil, departmentid=nil, filters=nil, tagfilters=nil)
3225
3229
  @Bound = bound
3226
3230
  @Id = id
3227
3231
  @IdSet = idset
3228
3232
  @Name = name
3233
+ @ResourceIdSet = resourceidset
3229
3234
  @Offset = offset
3230
3235
  @Limit = limit
3231
3236
  @Kind = kind
3232
3237
  @KindSet = kindset
3233
3238
  @DepartmentId = departmentid
3239
+ @Filters = filters
3234
3240
  @TagFilters = tagfilters
3235
3241
  end
3236
3242
 
@@ -3239,11 +3245,20 @@ module TencentCloud
3239
3245
  @Id = params['Id']
3240
3246
  @IdSet = params['IdSet']
3241
3247
  @Name = params['Name']
3248
+ @ResourceIdSet = params['ResourceIdSet']
3242
3249
  @Offset = params['Offset']
3243
3250
  @Limit = params['Limit']
3244
3251
  @Kind = params['Kind']
3245
3252
  @KindSet = params['KindSet']
3246
3253
  @DepartmentId = params['DepartmentId']
3254
+ unless params['Filters'].nil?
3255
+ @Filters = []
3256
+ params['Filters'].each do |i|
3257
+ filter_tmp = Filter.new
3258
+ filter_tmp.deserialize(i)
3259
+ @Filters << filter_tmp
3260
+ end
3261
+ end
3247
3262
  unless params['TagFilters'].nil?
3248
3263
  @TagFilters = []
3249
3264
  params['TagFilters'].each do |i|
@@ -4925,6 +4940,100 @@ module TencentCloud
4925
4940
  end
4926
4941
  end
4927
4942
 
4943
+ # LDAP配置信息
4944
+ class LDAPSetting < TencentCloud::Common::AbstractModel
4945
+ # @param Enable: 是否开启LDAP认证,false-不开启,true-开启
4946
+ # @type Enable: Boolean
4947
+ # @param Ip: 服务器地址
4948
+ # @type Ip: String
4949
+ # @param IpBackup: 备用服务器地址
4950
+ # @type IpBackup: String
4951
+ # @param Port: 服务端口
4952
+ # @type Port: Integer
4953
+ # @param EnableSSL: 是否开启SSL,false-不开启,true-开启
4954
+ # @type EnableSSL: Boolean
4955
+ # @param BaseDN: Base DN
4956
+ # @type BaseDN: String
4957
+ # @param AdminAccount: 管理员账号
4958
+ # @type AdminAccount: String
4959
+ # @param AttributeUser: 用户属性
4960
+ # @type AttributeUser: String
4961
+ # @param AttributeUserName: 用户名属性
4962
+ # @type AttributeUserName: String
4963
+ # @param AutoSync: 自动同步,false-不开启,true-开启
4964
+ # @type AutoSync: Boolean
4965
+ # @param Overwrite: 覆盖用户信息,false-不开启,true-开启
4966
+ # @type Overwrite: Boolean
4967
+ # @param SyncPeriod: 同步周期,30~60000之间的整数
4968
+ # @type SyncPeriod: Integer
4969
+ # @param SyncAll: 是否同步全部,false-不开启,true-开启
4970
+ # @type SyncAll: Boolean
4971
+ # @param SyncUnitSet: 同步OU列表
4972
+ # @type SyncUnitSet: Array
4973
+ # @param AttributeUnit: 组织单元属性
4974
+ # @type AttributeUnit: String
4975
+ # @param AttributeRealName: 用户姓名属性
4976
+ # @type AttributeRealName: String
4977
+ # @param AttributePhone: 手机号属性
4978
+ # @type AttributePhone: String
4979
+ # @param AttributeEmail: 邮箱属性
4980
+ # @type AttributeEmail: String
4981
+ # @param ResourceId: 请求LDAP服务的堡垒机实例
4982
+ # 注意:此字段可能返回 null,表示取不到有效值。
4983
+ # @type ResourceId: String
4984
+ # @param DomainId: 网络域Id
4985
+ # 注意:此字段可能返回 null,表示取不到有效值。
4986
+ # @type DomainId: String
4987
+
4988
+ attr_accessor :Enable, :Ip, :IpBackup, :Port, :EnableSSL, :BaseDN, :AdminAccount, :AttributeUser, :AttributeUserName, :AutoSync, :Overwrite, :SyncPeriod, :SyncAll, :SyncUnitSet, :AttributeUnit, :AttributeRealName, :AttributePhone, :AttributeEmail, :ResourceId, :DomainId
4989
+
4990
+ def initialize(enable=nil, ip=nil, ipbackup=nil, port=nil, enablessl=nil, basedn=nil, adminaccount=nil, attributeuser=nil, attributeusername=nil, autosync=nil, overwrite=nil, syncperiod=nil, syncall=nil, syncunitset=nil, attributeunit=nil, attributerealname=nil, attributephone=nil, attributeemail=nil, resourceid=nil, domainid=nil)
4991
+ @Enable = enable
4992
+ @Ip = ip
4993
+ @IpBackup = ipbackup
4994
+ @Port = port
4995
+ @EnableSSL = enablessl
4996
+ @BaseDN = basedn
4997
+ @AdminAccount = adminaccount
4998
+ @AttributeUser = attributeuser
4999
+ @AttributeUserName = attributeusername
5000
+ @AutoSync = autosync
5001
+ @Overwrite = overwrite
5002
+ @SyncPeriod = syncperiod
5003
+ @SyncAll = syncall
5004
+ @SyncUnitSet = syncunitset
5005
+ @AttributeUnit = attributeunit
5006
+ @AttributeRealName = attributerealname
5007
+ @AttributePhone = attributephone
5008
+ @AttributeEmail = attributeemail
5009
+ @ResourceId = resourceid
5010
+ @DomainId = domainid
5011
+ end
5012
+
5013
+ def deserialize(params)
5014
+ @Enable = params['Enable']
5015
+ @Ip = params['Ip']
5016
+ @IpBackup = params['IpBackup']
5017
+ @Port = params['Port']
5018
+ @EnableSSL = params['EnableSSL']
5019
+ @BaseDN = params['BaseDN']
5020
+ @AdminAccount = params['AdminAccount']
5021
+ @AttributeUser = params['AttributeUser']
5022
+ @AttributeUserName = params['AttributeUserName']
5023
+ @AutoSync = params['AutoSync']
5024
+ @Overwrite = params['Overwrite']
5025
+ @SyncPeriod = params['SyncPeriod']
5026
+ @SyncAll = params['SyncAll']
5027
+ @SyncUnitSet = params['SyncUnitSet']
5028
+ @AttributeUnit = params['AttributeUnit']
5029
+ @AttributeRealName = params['AttributeRealName']
5030
+ @AttributePhone = params['AttributePhone']
5031
+ @AttributeEmail = params['AttributeEmail']
5032
+ @ResourceId = params['ResourceId']
5033
+ @DomainId = params['DomainId']
5034
+ end
5035
+ end
5036
+
4928
5037
  # 登录日志
4929
5038
  class LoginEvent < TencentCloud::Common::AbstractModel
4930
5039
  # @param UserName: 用户名
@@ -4961,6 +5070,34 @@ module TencentCloud
4961
5070
  end
4962
5071
  end
4963
5072
 
5073
+ # 登录安全设置
5074
+ class LoginSetting < TencentCloud::Common::AbstractModel
5075
+ # @param TimeOut: 登录会话超时,10分钟,20分钟,30分钟,默认20分钟
5076
+ # @type TimeOut: Integer
5077
+ # @param LockThreshold: 连续密码错误次数,超过锁定账号,3-5
5078
+ # @type LockThreshold: Integer
5079
+ # @param LockTime: 账号锁定时长,10分钟,20分钟,30分钟
5080
+ # @type LockTime: Integer
5081
+ # @param InactiveUserLock: 用户多少天不活跃,账号自动锁定
5082
+ # @type InactiveUserLock: Integer
5083
+
5084
+ attr_accessor :TimeOut, :LockThreshold, :LockTime, :InactiveUserLock
5085
+
5086
+ def initialize(timeout=nil, lockthreshold=nil, locktime=nil, inactiveuserlock=nil)
5087
+ @TimeOut = timeout
5088
+ @LockThreshold = lockthreshold
5089
+ @LockTime = locktime
5090
+ @InactiveUserLock = inactiveuserlock
5091
+ end
5092
+
5093
+ def deserialize(params)
5094
+ @TimeOut = params['TimeOut']
5095
+ @LockThreshold = params['LockThreshold']
5096
+ @LockTime = params['LockTime']
5097
+ @InactiveUserLock = params['InactiveUserLock']
5098
+ end
5099
+ end
5100
+
4964
5101
  # ModifyAccessWhiteListAutoStatus请求参数结构体
4965
5102
  class ModifyAccessWhiteListAutoStatusRequest < TencentCloud::Common::AbstractModel
4966
5103
  # @param AllowAuto: true:放开自动添加IP;false:不放开自动添加IP
@@ -5249,20 +5386,26 @@ module TencentCloud
5249
5386
 
5250
5387
  # ModifyAuthModeSetting请求参数结构体
5251
5388
  class ModifyAuthModeSettingRequest < TencentCloud::Common::AbstractModel
5252
- # @param AuthMode: 双因子认证,0-不开启,1-OTP,2-短信,3-USB Key
5389
+ # @param AuthMode: 双因子认证,0-不开启(暂停使用),1-OTP,2-短信,3-USB Key(只有ResourceType=1且AuthModeGM不传时有效,其他情况不能为3)
5390
+ # 备注:AuthMode和AuthModeGM至少有一个有效传参
5253
5391
  # @type AuthMode: Integer
5254
- # @param ResourceType: 资源类型,0:普通 1:国密
5392
+ # @param AuthModeGM: 国密双因子认证,0-不开启(暂停使用),1-OTP,2-短信,3-USB Key
5393
+ # 备注:AuthMode和AuthModeGM至少有一个有效传参,AuthModeGM优先级高于ResourceType
5394
+ # @type AuthModeGM: Integer
5395
+ # @param ResourceType: 资源类型,0:普通(暂停使用,由AuthMode和AuthModeGM传参决定) 1:国密
5255
5396
  # @type ResourceType: Integer
5256
5397
 
5257
- attr_accessor :AuthMode, :ResourceType
5398
+ attr_accessor :AuthMode, :AuthModeGM, :ResourceType
5258
5399
 
5259
- def initialize(authmode=nil, resourcetype=nil)
5400
+ def initialize(authmode=nil, authmodegm=nil, resourcetype=nil)
5260
5401
  @AuthMode = authmode
5402
+ @AuthModeGM = authmodegm
5261
5403
  @ResourceType = resourcetype
5262
5404
  end
5263
5405
 
5264
5406
  def deserialize(params)
5265
5407
  @AuthMode = params['AuthMode']
5408
+ @AuthModeGM = params['AuthModeGM']
5266
5409
  @ResourceType = params['ResourceType']
5267
5410
  end
5268
5411
  end
@@ -6020,6 +6163,46 @@ module TencentCloud
6020
6163
  end
6021
6164
  end
6022
6165
 
6166
+ # OAuth认证配置
6167
+ class OAuthSetting < TencentCloud::Common::AbstractModel
6168
+ # @param Enable: 是否开启OAuth认证
6169
+ # @type Enable: Boolean
6170
+ # @param AuthMethod: OAuth认证方式。
6171
+ # @type AuthMethod: String
6172
+ # @param ClientId: OAuth认证客户端Id。
6173
+ # @type ClientId: String
6174
+ # @param CodeUrl: 获取OAuth认证授权码URL。
6175
+ # @type CodeUrl: String
6176
+ # @param TokenUrl: 获取OAuth令牌URL。
6177
+ # @type TokenUrl: String
6178
+ # @param UserInfoUrl: 获取OAuth用户信息URL。
6179
+ # @type UserInfoUrl: String
6180
+ # @param Scopes: 使用Okta认证时指定范围。
6181
+ # @type Scopes: Array
6182
+
6183
+ attr_accessor :Enable, :AuthMethod, :ClientId, :CodeUrl, :TokenUrl, :UserInfoUrl, :Scopes
6184
+
6185
+ def initialize(enable=nil, authmethod=nil, clientid=nil, codeurl=nil, tokenurl=nil, userinfourl=nil, scopes=nil)
6186
+ @Enable = enable
6187
+ @AuthMethod = authmethod
6188
+ @ClientId = clientid
6189
+ @CodeUrl = codeurl
6190
+ @TokenUrl = tokenurl
6191
+ @UserInfoUrl = userinfourl
6192
+ @Scopes = scopes
6193
+ end
6194
+
6195
+ def deserialize(params)
6196
+ @Enable = params['Enable']
6197
+ @AuthMethod = params['AuthMethod']
6198
+ @ClientId = params['ClientId']
6199
+ @CodeUrl = params['CodeUrl']
6200
+ @TokenUrl = params['TokenUrl']
6201
+ @UserInfoUrl = params['UserInfoUrl']
6202
+ @Scopes = params['Scopes']
6203
+ end
6204
+ end
6205
+
6023
6206
  # 操作日志
6024
6207
  class OperationEvent < TencentCloud::Common::AbstractModel
6025
6208
  # @param UserName: 用户名
@@ -6112,6 +6295,34 @@ module TencentCloud
6112
6295
  end
6113
6296
  end
6114
6297
 
6298
+ # 密码要求设置。
6299
+ class PasswordSetting < TencentCloud::Common::AbstractModel
6300
+ # @param MinLength: 密码最小长度,8-20,默认8。
6301
+ # @type MinLength: Integer
6302
+ # @param Complexity: 密码复杂度,0不限制,1包含字母和数字,2至少包括大写字母、小写字母、数字、特殊符号,默认2。
6303
+ # @type Complexity: Integer
6304
+ # @param ValidTerm: 密码有效期,0不限制,30天,90天,180天。
6305
+ # @type ValidTerm: Integer
6306
+ # @param CheckHistory: 检查最近n次密码设置是否存在相同密码,2-10,默认5。
6307
+ # @type CheckHistory: Integer
6308
+
6309
+ attr_accessor :MinLength, :Complexity, :ValidTerm, :CheckHistory
6310
+
6311
+ def initialize(minlength=nil, complexity=nil, validterm=nil, checkhistory=nil)
6312
+ @MinLength = minlength
6313
+ @Complexity = complexity
6314
+ @ValidTerm = validterm
6315
+ @CheckHistory = checkhistory
6316
+ end
6317
+
6318
+ def deserialize(params)
6319
+ @MinLength = params['MinLength']
6320
+ @Complexity = params['Complexity']
6321
+ @ValidTerm = params['ValidTerm']
6322
+ @CheckHistory = params['CheckHistory']
6323
+ end
6324
+ end
6325
+
6115
6326
  # 运维资产重连次数
6116
6327
  class ReconnectionSetting < TencentCloud::Common::AbstractModel
6117
6328
  # @param ReconnectionMaxCount: 重连次数
@@ -7646,6 +7857,16 @@ module TencentCloud
7646
7857
 
7647
7858
  # 系统安全设置
7648
7859
  class SecuritySetting < TencentCloud::Common::AbstractModel
7860
+ # @param AuthMode: 认证方式设置
7861
+ # @type AuthMode: :class:`Tencentcloud::Bh.v20230418.models.AuthModeSetting`
7862
+ # @param Password: 密码安全设置
7863
+ # @type Password: :class:`Tencentcloud::Bh.v20230418.models.PasswordSetting`
7864
+ # @param Login: 登录安全设置
7865
+ # @type Login: :class:`Tencentcloud::Bh.v20230418.models.LoginSetting`
7866
+ # @param LDAP: LDAP配置信息
7867
+ # @type LDAP: :class:`Tencentcloud::Bh.v20230418.models.LDAPSetting`
7868
+ # @param OAuth: OAuth配置信息
7869
+ # @type OAuth: :class:`Tencentcloud::Bh.v20230418.models.OAuthSetting`
7649
7870
  # @param AuthModeGM: 国密认证方式设置
7650
7871
  # @type AuthModeGM: :class:`Tencentcloud::Bh.v20230418.models.AuthModeSetting`
7651
7872
  # @param Reconnection: 资产重连次数
@@ -7653,15 +7874,40 @@ module TencentCloud
7653
7874
  # @param EnvInternetAccess: 大区环境网络设置
7654
7875
  # @type EnvInternetAccess: :class:`Tencentcloud::Bh.v20230418.models.EnvInternetAccessSetting`
7655
7876
 
7656
- attr_accessor :AuthModeGM, :Reconnection, :EnvInternetAccess
7877
+ attr_accessor :AuthMode, :Password, :Login, :LDAP, :OAuth, :AuthModeGM, :Reconnection, :EnvInternetAccess
7657
7878
 
7658
- def initialize(authmodegm=nil, reconnection=nil, envinternetaccess=nil)
7879
+ def initialize(authmode=nil, password=nil, login=nil, ldap=nil, oauth=nil, authmodegm=nil, reconnection=nil, envinternetaccess=nil)
7880
+ @AuthMode = authmode
7881
+ @Password = password
7882
+ @Login = login
7883
+ @LDAP = ldap
7884
+ @OAuth = oauth
7659
7885
  @AuthModeGM = authmodegm
7660
7886
  @Reconnection = reconnection
7661
7887
  @EnvInternetAccess = envinternetaccess
7662
7888
  end
7663
7889
 
7664
7890
  def deserialize(params)
7891
+ unless params['AuthMode'].nil?
7892
+ @AuthMode = AuthModeSetting.new
7893
+ @AuthMode.deserialize(params['AuthMode'])
7894
+ end
7895
+ unless params['Password'].nil?
7896
+ @Password = PasswordSetting.new
7897
+ @Password.deserialize(params['Password'])
7898
+ end
7899
+ unless params['Login'].nil?
7900
+ @Login = LoginSetting.new
7901
+ @Login.deserialize(params['Login'])
7902
+ end
7903
+ unless params['LDAP'].nil?
7904
+ @LDAP = LDAPSetting.new
7905
+ @LDAP.deserialize(params['LDAP'])
7906
+ end
7907
+ unless params['OAuth'].nil?
7908
+ @OAuth = OAuthSetting.new
7909
+ @OAuth.deserialize(params['OAuth'])
7910
+ end
7665
7911
  unless params['AuthModeGM'].nil?
7666
7912
  @AuthModeGM = AuthModeSetting.new
7667
7913
  @AuthModeGM.deserialize(params['AuthModeGM'])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-bh
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1202
4
+ version: 3.0.1208
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-14 00:00:00.000000000 Z
11
+ date: 2026-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common