tencentcloud-sdk-bh 3.0.1171 → 3.0.1183

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: 755995972c0c7f8f5a76e3d27c7269d89e5335b4
4
- data.tar.gz: 6b7dfad4213614f044cc155794b320c0be77888f
3
+ metadata.gz: c9a7360574be5c17f3e48ea441f036408f1ea2a6
4
+ data.tar.gz: 5c998df78cf16b29bfdb92796629c14217d026a4
5
5
  SHA512:
6
- metadata.gz: 215dcca35a632836408673cbe8443aa1a310a8e2ed947cf3dab7d9dd221246ed60a37fa88b08949b8592ce914ac2514aa2b0a25106c33711a6c1cd2ba85fd8b2
7
- data.tar.gz: a0aef8756a34a42f138cee98c979c2e703d47b38008c899194949cb5cd5f8cefaf29f654af14249e77dd7fb4ea8ab961e23a7e31da80a9d38bff68e4f0624c96
6
+ metadata.gz: 6053c4ad50b1d4f90b6ff631d6952d793813f0a69a7e616756664e764c086c96b352510b924a8b41cc84951527a08f46387ee463856b75a9c24c6ed6ddaffc6e
7
+ data.tar.gz: 4fee2d1e1d77b588b7ebcf1f24d4d8a757379531fb1c790df00af5c73043fe0901558cc646f1fad685d99ef9bd0a1ea8ff9ae2c23d743b70eafe56f3f96065a3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1171
1
+ 3.0.1183
@@ -1037,6 +1037,30 @@ module TencentCloud
1037
1037
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
1038
  end
1039
1039
 
1040
+ # 查询部门信息
1041
+
1042
+ # @param request: Request instance for DescribeDepartments.
1043
+ # @type request: :class:`Tencentcloud::bh::V20230418::DescribeDepartmentsRequest`
1044
+ # @rtype: :class:`Tencentcloud::bh::V20230418::DescribeDepartmentsResponse`
1045
+ def DescribeDepartments(request)
1046
+ body = send_request('DescribeDepartments', request.serialize)
1047
+ response = JSON.parse(body)
1048
+ if response['Response'].key?('Error') == false
1049
+ model = DescribeDepartmentsResponse.new
1050
+ model.deserialize(response['Response'])
1051
+ model
1052
+ else
1053
+ code = response['Response']['Error']['Code']
1054
+ message = response['Response']['Error']['Message']
1055
+ reqid = response['Response']['RequestId']
1056
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1057
+ end
1058
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1059
+ raise e
1060
+ rescue StandardError => e
1061
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
+ end
1063
+
1040
1064
  # 查询主机账号列表
1041
1065
 
1042
1066
  # @param request: Request instance for DescribeDeviceAccounts.
@@ -74,10 +74,10 @@ module TencentCloud
74
74
 
75
75
  attr_accessor :Account, :LoginAccount, :LoginPassword, :DeviceId, :InstanceId, :Password, :PrivateKey, :PrivateKeyPassword, :Exe, :Drivers, :Width, :Height, :IntranetAccess, :AutoManageAccessCredential
76
76
  extend Gem::Deprecate
77
- deprecate :LoginAccount, :none, 2025, 11
78
- deprecate :LoginAccount=, :none, 2025, 11
79
- deprecate :LoginPassword, :none, 2025, 11
80
- deprecate :LoginPassword=, :none, 2025, 11
77
+ deprecate :LoginAccount, :none, 2025, 12
78
+ deprecate :LoginAccount=, :none, 2025, 12
79
+ deprecate :LoginPassword, :none, 2025, 12
80
+ deprecate :LoginPassword=, :none, 2025, 12
81
81
 
82
82
  def initialize(account=nil, loginaccount=nil, loginpassword=nil, deviceid=nil, instanceid=nil, password=nil, privatekey=nil, privatekeypassword=nil, exe=nil, drivers=nil, width=nil, height=nil, intranetaccess=nil, automanageaccesscredential=nil)
83
83
  @Account = account
@@ -688,6 +688,22 @@ module TencentCloud
688
688
  end
689
689
  end
690
690
 
691
+ # 认证方式设置
692
+ class AuthModeSetting < TencentCloud::Common::AbstractModel
693
+ # @param AuthMode: 双因子认证,0-不开启,1-OTP,2-短信
694
+ # @type AuthMode: Integer
695
+
696
+ attr_accessor :AuthMode
697
+
698
+ def initialize(authmode=nil)
699
+ @AuthMode = authmode
700
+ end
701
+
702
+ def deserialize(params)
703
+ @AuthMode = params['AuthMode']
704
+ end
705
+ end
706
+
691
707
  # BindDeviceAccountPassword请求参数结构体
692
708
  class BindDeviceAccountPasswordRequest < TencentCloud::Common::AbstractModel
693
709
  # @param Id: 主机账号ID
@@ -2456,6 +2472,37 @@ module TencentCloud
2456
2472
  end
2457
2473
  end
2458
2474
 
2475
+ # 部门列表
2476
+ class Departments < TencentCloud::Common::AbstractModel
2477
+ # @param DepartmentSet: 部门列表
2478
+ # @type DepartmentSet: Array
2479
+ # @param Enabled: 是否开启了部门管理 true - 已开启, false - 未开启
2480
+ # @type Enabled: Boolean
2481
+ # @param RootManager: 当前操作UIN是否是根部门管理员
2482
+ # @type RootManager: Boolean
2483
+
2484
+ attr_accessor :DepartmentSet, :Enabled, :RootManager
2485
+
2486
+ def initialize(departmentset=nil, enabled=nil, rootmanager=nil)
2487
+ @DepartmentSet = departmentset
2488
+ @Enabled = enabled
2489
+ @RootManager = rootmanager
2490
+ end
2491
+
2492
+ def deserialize(params)
2493
+ unless params['DepartmentSet'].nil?
2494
+ @DepartmentSet = []
2495
+ params['DepartmentSet'].each do |i|
2496
+ department_tmp = Department.new
2497
+ department_tmp.deserialize(i)
2498
+ @DepartmentSet << department_tmp
2499
+ end
2500
+ end
2501
+ @Enabled = params['Enabled']
2502
+ @RootManager = params['RootManager']
2503
+ end
2504
+ end
2505
+
2459
2506
  # DeployResource请求参数结构体
2460
2507
  class DeployResourceRequest < TencentCloud::Common::AbstractModel
2461
2508
  # @param ResourceId: 需要开通服务的资源ID
@@ -3052,6 +3099,40 @@ module TencentCloud
3052
3099
  end
3053
3100
  end
3054
3101
 
3102
+ # DescribeDepartments请求参数结构体
3103
+ class DescribeDepartmentsRequest < TencentCloud::Common::AbstractModel
3104
+
3105
+
3106
+ def initialize()
3107
+ end
3108
+
3109
+ def deserialize(params)
3110
+ end
3111
+ end
3112
+
3113
+ # DescribeDepartments返回参数结构体
3114
+ class DescribeDepartmentsResponse < TencentCloud::Common::AbstractModel
3115
+ # @param Departments: 部门列表
3116
+ # @type Departments: :class:`Tencentcloud::Bh.v20230418.models.Departments`
3117
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3118
+ # @type RequestId: String
3119
+
3120
+ attr_accessor :Departments, :RequestId
3121
+
3122
+ def initialize(departments=nil, requestid=nil)
3123
+ @Departments = departments
3124
+ @RequestId = requestid
3125
+ end
3126
+
3127
+ def deserialize(params)
3128
+ unless params['Departments'].nil?
3129
+ @Departments = Departments.new
3130
+ @Departments.deserialize(params['Departments'])
3131
+ end
3132
+ @RequestId = params['RequestId']
3133
+ end
3134
+ end
3135
+
3055
3136
  # DescribeDeviceAccounts请求参数结构体
3056
3137
  class DescribeDeviceAccountsRequest < TencentCloud::Common::AbstractModel
3057
3138
  # @param IdSet: 主机账号ID集合,非必需,如果使用IdSet则忽略其他过滤参数
@@ -3841,16 +3922,23 @@ module TencentCloud
3841
3922
 
3842
3923
  # DescribeSecuritySetting返回参数结构体
3843
3924
  class DescribeSecuritySettingResponse < TencentCloud::Common::AbstractModel
3925
+ # @param SecuritySetting: 无
3926
+ # @type SecuritySetting: :class:`Tencentcloud::Bh.v20230418.models.SecuritySetting`
3844
3927
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3845
3928
  # @type RequestId: String
3846
3929
 
3847
- attr_accessor :RequestId
3930
+ attr_accessor :SecuritySetting, :RequestId
3848
3931
 
3849
- def initialize(requestid=nil)
3932
+ def initialize(securitysetting=nil, requestid=nil)
3933
+ @SecuritySetting = securitysetting
3850
3934
  @RequestId = requestid
3851
3935
  end
3852
3936
 
3853
3937
  def deserialize(params)
3938
+ unless params['SecuritySetting'].nil?
3939
+ @SecuritySetting = SecuritySetting.new
3940
+ @SecuritySetting.deserialize(params['SecuritySetting'])
3941
+ end
3854
3942
  @RequestId = params['RequestId']
3855
3943
  end
3856
3944
  end
@@ -5717,8 +5805,8 @@ module TencentCloud
5717
5805
 
5718
5806
  attr_accessor :ResourceId, :Status, :ResourceEdition, :ResourceNode, :AutoRenewFlag, :PackageBandwidth, :PackageNode, :LogDelivery
5719
5807
  extend Gem::Deprecate
5720
- deprecate :Status, :none, 2025, 11
5721
- deprecate :Status=, :none, 2025, 11
5808
+ deprecate :Status, :none, 2025, 12
5809
+ deprecate :Status=, :none, 2025, 12
5722
5810
 
5723
5811
  def initialize(resourceid=nil, status=nil, resourceedition=nil, resourcenode=nil, autorenewflag=nil, packagebandwidth=nil, packagenode=nil, logdelivery=nil)
5724
5812
  @ResourceId = resourceid
@@ -6004,6 +6092,26 @@ module TencentCloud
6004
6092
  end
6005
6093
  end
6006
6094
 
6095
+ # 运维资产重连次数
6096
+ class ReconnectionSetting < TencentCloud::Common::AbstractModel
6097
+ # @param ReconnectionMaxCount: 重连次数
6098
+ # @type ReconnectionMaxCount: Integer
6099
+ # @param Enable: true:可以重连,false:不可以重连
6100
+ # @type Enable: Boolean
6101
+
6102
+ attr_accessor :ReconnectionMaxCount, :Enable
6103
+
6104
+ def initialize(reconnectionmaxcount=nil, enable=nil)
6105
+ @ReconnectionMaxCount = reconnectionmaxcount
6106
+ @Enable = enable
6107
+ end
6108
+
6109
+ def deserialize(params)
6110
+ @ReconnectionMaxCount = params['ReconnectionMaxCount']
6111
+ @Enable = params['Enable']
6112
+ end
6113
+ end
6114
+
6007
6115
  # 回放所需字段信息
6008
6116
  class ReplayInformation < TencentCloud::Common::AbstractModel
6009
6117
  # @param Token: 令牌
@@ -7504,6 +7612,32 @@ module TencentCloud
7504
7612
  end
7505
7613
  end
7506
7614
 
7615
+ # 系统安全设置
7616
+ class SecuritySetting < TencentCloud::Common::AbstractModel
7617
+ # @param AuthModeGM: 国密认证方式设置
7618
+ # @type AuthModeGM: :class:`Tencentcloud::Bh.v20230418.models.AuthModeSetting`
7619
+ # @param Reconnection: 资产重连次数
7620
+ # @type Reconnection: :class:`Tencentcloud::Bh.v20230418.models.ReconnectionSetting`
7621
+
7622
+ attr_accessor :AuthModeGM, :Reconnection
7623
+
7624
+ def initialize(authmodegm=nil, reconnection=nil)
7625
+ @AuthModeGM = authmodegm
7626
+ @Reconnection = reconnection
7627
+ end
7628
+
7629
+ def deserialize(params)
7630
+ unless params['AuthModeGM'].nil?
7631
+ @AuthModeGM = AuthModeSetting.new
7632
+ @AuthModeGM.deserialize(params['AuthModeGM'])
7633
+ end
7634
+ unless params['Reconnection'].nil?
7635
+ @Reconnection = ReconnectionSetting.new
7636
+ @Reconnection.deserialize(params['Reconnection'])
7637
+ end
7638
+ end
7639
+ end
7640
+
7507
7641
  # 搜索字符或图形会话时返回的SessionResul结构体
7508
7642
  class SessionResult < TencentCloud::Common::AbstractModel
7509
7643
  # @param UserName: 用户名
@@ -7837,7 +7971,7 @@ module TencentCloud
7837
7971
 
7838
7972
  # 用户信息
7839
7973
  class User < TencentCloud::Common::AbstractModel
7840
- # @param UserName: 用户名, 3-20个字符 必须以英文字母开头,且不能包含字母、数字、.、_、-以外的字符
7974
+ # @param UserName: 用户名,1 - 128个字符 必须以英文字母开头,只能由a-zA-Z0-9以及+=,.@_-组成,支持邮箱格式
7841
7975
  # @type UserName: String
7842
7976
  # @param RealName: 用户姓名, 最大20个字符,不能包含空白字符
7843
7977
  # @type RealName: String
@@ -7877,10 +8011,12 @@ module TencentCloud
7877
8011
  # @type UserFrom: Integer
7878
8012
  # @param IOAUserGroup: ioa同步过来的用户相关信息
7879
8013
  # @type IOAUserGroup: :class:`Tencentcloud::Bh.v20230418.models.IOAUserGroup`
8014
+ # @param RoleArn: cam角色用户载体
8015
+ # @type RoleArn: String
7880
8016
 
7881
- attr_accessor :UserName, :RealName, :Id, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime, :Department, :DepartmentId, :ActiveStatus, :LockStatus, :UKeyStatus, :Status, :AclVersion, :UserFrom, :IOAUserGroup
8017
+ attr_accessor :UserName, :RealName, :Id, :Phone, :Email, :ValidateFrom, :ValidateTo, :GroupSet, :AuthType, :ValidateTime, :Department, :DepartmentId, :ActiveStatus, :LockStatus, :UKeyStatus, :Status, :AclVersion, :UserFrom, :IOAUserGroup, :RoleArn
7882
8018
 
7883
- def initialize(username=nil, realname=nil, id=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil, department=nil, departmentid=nil, activestatus=nil, lockstatus=nil, ukeystatus=nil, status=nil, aclversion=nil, userfrom=nil, ioausergroup=nil)
8019
+ def initialize(username=nil, realname=nil, id=nil, phone=nil, email=nil, validatefrom=nil, validateto=nil, groupset=nil, authtype=nil, validatetime=nil, department=nil, departmentid=nil, activestatus=nil, lockstatus=nil, ukeystatus=nil, status=nil, aclversion=nil, userfrom=nil, ioausergroup=nil, rolearn=nil)
7884
8020
  @UserName = username
7885
8021
  @RealName = realname
7886
8022
  @Id = id
@@ -7900,6 +8036,7 @@ module TencentCloud
7900
8036
  @AclVersion = aclversion
7901
8037
  @UserFrom = userfrom
7902
8038
  @IOAUserGroup = ioausergroup
8039
+ @RoleArn = rolearn
7903
8040
  end
7904
8041
 
7905
8042
  def deserialize(params)
@@ -7935,6 +8072,7 @@ module TencentCloud
7935
8072
  @IOAUserGroup = IOAUserGroup.new
7936
8073
  @IOAUserGroup.deserialize(params['IOAUserGroup'])
7937
8074
  end
8075
+ @RoleArn = params['RoleArn']
7938
8076
  end
7939
8077
  end
7940
8078
 
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.1171
4
+ version: 3.0.1183
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-20 00:00:00.000000000 Z
11
+ date: 2025-12-17 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/v20230418/client.rb
37
- - lib/v20230418/models.rb
38
36
  - lib/tencentcloud-sdk-bh.rb
37
+ - lib/v20230418/models.rb
38
+ - lib/v20230418/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: