tencentcloud-sdk-bh 3.0.1177 → 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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230418/client.rb +24 -0
- data/lib/v20230418/models.rb +65 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9a7360574be5c17f3e48ea441f036408f1ea2a6
|
|
4
|
+
data.tar.gz: 5c998df78cf16b29bfdb92796629c14217d026a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6053c4ad50b1d4f90b6ff631d6952d793813f0a69a7e616756664e764c086c96b352510b924a8b41cc84951527a08f46387ee463856b75a9c24c6ed6ddaffc6e
|
|
7
|
+
data.tar.gz: 4fee2d1e1d77b588b7ebcf1f24d4d8a757379531fb1c790df00af5c73043fe0901558cc646f1fad685d99ef9bd0a1ea8ff9ae2c23d743b70eafe56f3f96065a3
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1183
|
data/lib/v20230418/client.rb
CHANGED
|
@@ -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.
|
data/lib/v20230418/models.rb
CHANGED
|
@@ -2472,6 +2472,37 @@ module TencentCloud
|
|
|
2472
2472
|
end
|
|
2473
2473
|
end
|
|
2474
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
|
+
|
|
2475
2506
|
# DeployResource请求参数结构体
|
|
2476
2507
|
class DeployResourceRequest < TencentCloud::Common::AbstractModel
|
|
2477
2508
|
# @param ResourceId: 需要开通服务的资源ID
|
|
@@ -3068,6 +3099,40 @@ module TencentCloud
|
|
|
3068
3099
|
end
|
|
3069
3100
|
end
|
|
3070
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
|
+
|
|
3071
3136
|
# DescribeDeviceAccounts请求参数结构体
|
|
3072
3137
|
class DescribeDeviceAccountsRequest < TencentCloud::Common::AbstractModel
|
|
3073
3138
|
# @param IdSet: 主机账号ID集合,非必需,如果使用IdSet则忽略其他过滤参数
|
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.
|
|
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-12-
|
|
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
|
|
@@ -34,8 +34,8 @@ extensions: []
|
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
36
|
- lib/tencentcloud-sdk-bh.rb
|
|
37
|
-
- lib/v20230418/client.rb
|
|
38
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:
|