tencentcloud-sdk-bh 3.0.1177 → 3.0.1187
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 +100 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ba69556f0c2af312a85554a8f7b2f8a53bd10b4
|
|
4
|
+
data.tar.gz: f47dd81d9a6ff559b612137cd079270308c46135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9135d8dcea0cb3d68949cf3fe770657aa383b418ebd8621162b80f56fb31dcd0ebc0547f53380deff04e497eb996aa5635627ec69d6d6550a7ad4a4f59c54255
|
|
7
|
+
data.tar.gz: e8aa01a09594abcf23d5dc2394b5ed86872b02f537929a78032ea58e96140d6fa4eb56ff36b40bb2eb10204313409e31783bd0d0485a874a2daba7d4c44559a4
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1187
|
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则忽略其他过滤参数
|
|
@@ -4636,6 +4701,26 @@ module TencentCloud
|
|
|
4636
4701
|
end
|
|
4637
4702
|
end
|
|
4638
4703
|
|
|
4704
|
+
# 大区环境网络配置
|
|
4705
|
+
class EnvInternetAccessSetting < TencentCloud::Common::AbstractModel
|
|
4706
|
+
# @param DisableExternalAccess: true:不能访问公网
|
|
4707
|
+
# @type DisableExternalAccess: Boolean
|
|
4708
|
+
# @param DisableDownloadDataAcl: true:不能创建数据下载权限
|
|
4709
|
+
# @type DisableDownloadDataAcl: Boolean
|
|
4710
|
+
|
|
4711
|
+
attr_accessor :DisableExternalAccess, :DisableDownloadDataAcl
|
|
4712
|
+
|
|
4713
|
+
def initialize(disableexternalaccess=nil, disabledownloaddataacl=nil)
|
|
4714
|
+
@DisableExternalAccess = disableexternalaccess
|
|
4715
|
+
@DisableDownloadDataAcl = disabledownloaddataacl
|
|
4716
|
+
end
|
|
4717
|
+
|
|
4718
|
+
def deserialize(params)
|
|
4719
|
+
@DisableExternalAccess = params['DisableExternalAccess']
|
|
4720
|
+
@DisableDownloadDataAcl = params['DisableDownloadDataAcl']
|
|
4721
|
+
end
|
|
4722
|
+
end
|
|
4723
|
+
|
|
4639
4724
|
# 主机参数,导入外部主机时使用
|
|
4640
4725
|
class ExternalDevice < TencentCloud::Common::AbstractModel
|
|
4641
4726
|
# @param OsName: 操作系统名称,只能是Linux、Windows或MySQL
|
|
@@ -6290,6 +6375,8 @@ module TencentCloud
|
|
|
6290
6375
|
# @type IntranetPrivateIpSet: Array
|
|
6291
6376
|
# @param IntranetVpcId: 开通内网访问的vpc
|
|
6292
6377
|
# @type IntranetVpcId: String
|
|
6378
|
+
# @param IntranetSubnetId: 开通内网访问的subnetId
|
|
6379
|
+
# @type IntranetSubnetId: String
|
|
6293
6380
|
# @param IntranetVpcCidr: 开通内网访问vpc的网段
|
|
6294
6381
|
# @type IntranetVpcCidr: String
|
|
6295
6382
|
# @param DomainName: 堡垒机内网ip自定义域名
|
|
@@ -6319,9 +6406,9 @@ module TencentCloud
|
|
|
6319
6406
|
# @param IOAResourceId: 堡垒机实例对应的零信任实例id
|
|
6320
6407
|
# @type IOAResourceId: String
|
|
6321
6408
|
|
|
6322
|
-
attr_accessor :ResourceId, :ApCode, :SvArgs, :VpcId, :Nodes, :RenewFlag, :ExpireTime, :Status, :ResourceName, :Pid, :CreateTime, :ProductCode, :SubProductCode, :Zone, :Expired, :Deployed, :VpcName, :VpcCidrBlock, :SubnetId, :SubnetName, :CidrBlock, :PublicIpSet, :PrivateIpSet, :ModuleSet, :UsedNodes, :ExtendPoints, :PackageBandwidth, :PackageNode, :LogDeliveryArgs, :ClbSet, :DomainCount, :UsedDomainCount, :Trial, :LogDelivery, :CdcClusterId, :DeployModel, :IntranetAccess, :IntranetPrivateIpSet, :IntranetVpcId, :IntranetVpcCidr, :DomainName, :ShareClb, :OpenClbId, :LbVipIsp, :TUICmdPort, :TUIDirectPort, :WebAccess, :ClientAccess, :ExternalAccess, :IOAResource, :PackageIOAUserCount, :PackageIOABandwidth, :IOAResourceId
|
|
6409
|
+
attr_accessor :ResourceId, :ApCode, :SvArgs, :VpcId, :Nodes, :RenewFlag, :ExpireTime, :Status, :ResourceName, :Pid, :CreateTime, :ProductCode, :SubProductCode, :Zone, :Expired, :Deployed, :VpcName, :VpcCidrBlock, :SubnetId, :SubnetName, :CidrBlock, :PublicIpSet, :PrivateIpSet, :ModuleSet, :UsedNodes, :ExtendPoints, :PackageBandwidth, :PackageNode, :LogDeliveryArgs, :ClbSet, :DomainCount, :UsedDomainCount, :Trial, :LogDelivery, :CdcClusterId, :DeployModel, :IntranetAccess, :IntranetPrivateIpSet, :IntranetVpcId, :IntranetSubnetId, :IntranetVpcCidr, :DomainName, :ShareClb, :OpenClbId, :LbVipIsp, :TUICmdPort, :TUIDirectPort, :WebAccess, :ClientAccess, :ExternalAccess, :IOAResource, :PackageIOAUserCount, :PackageIOABandwidth, :IOAResourceId
|
|
6323
6410
|
|
|
6324
|
-
def initialize(resourceid=nil, apcode=nil, svargs=nil, vpcid=nil, nodes=nil, renewflag=nil, expiretime=nil, status=nil, resourcename=nil, pid=nil, createtime=nil, productcode=nil, subproductcode=nil, zone=nil, expired=nil, deployed=nil, vpcname=nil, vpccidrblock=nil, subnetid=nil, subnetname=nil, cidrblock=nil, publicipset=nil, privateipset=nil, moduleset=nil, usednodes=nil, extendpoints=nil, packagebandwidth=nil, packagenode=nil, logdeliveryargs=nil, clbset=nil, domaincount=nil, useddomaincount=nil, trial=nil, logdelivery=nil, cdcclusterid=nil, deploymodel=nil, intranetaccess=nil, intranetprivateipset=nil, intranetvpcid=nil, intranetvpccidr=nil, domainname=nil, shareclb=nil, openclbid=nil, lbvipisp=nil, tuicmdport=nil, tuidirectport=nil, webaccess=nil, clientaccess=nil, externalaccess=nil, ioaresource=nil, packageioausercount=nil, packageioabandwidth=nil, ioaresourceid=nil)
|
|
6411
|
+
def initialize(resourceid=nil, apcode=nil, svargs=nil, vpcid=nil, nodes=nil, renewflag=nil, expiretime=nil, status=nil, resourcename=nil, pid=nil, createtime=nil, productcode=nil, subproductcode=nil, zone=nil, expired=nil, deployed=nil, vpcname=nil, vpccidrblock=nil, subnetid=nil, subnetname=nil, cidrblock=nil, publicipset=nil, privateipset=nil, moduleset=nil, usednodes=nil, extendpoints=nil, packagebandwidth=nil, packagenode=nil, logdeliveryargs=nil, clbset=nil, domaincount=nil, useddomaincount=nil, trial=nil, logdelivery=nil, cdcclusterid=nil, deploymodel=nil, intranetaccess=nil, intranetprivateipset=nil, intranetvpcid=nil, intranetsubnetid=nil, intranetvpccidr=nil, domainname=nil, shareclb=nil, openclbid=nil, lbvipisp=nil, tuicmdport=nil, tuidirectport=nil, webaccess=nil, clientaccess=nil, externalaccess=nil, ioaresource=nil, packageioausercount=nil, packageioabandwidth=nil, ioaresourceid=nil)
|
|
6325
6412
|
@ResourceId = resourceid
|
|
6326
6413
|
@ApCode = apcode
|
|
6327
6414
|
@SvArgs = svargs
|
|
@@ -6361,6 +6448,7 @@ module TencentCloud
|
|
|
6361
6448
|
@IntranetAccess = intranetaccess
|
|
6362
6449
|
@IntranetPrivateIpSet = intranetprivateipset
|
|
6363
6450
|
@IntranetVpcId = intranetvpcid
|
|
6451
|
+
@IntranetSubnetId = intranetsubnetid
|
|
6364
6452
|
@IntranetVpcCidr = intranetvpccidr
|
|
6365
6453
|
@DomainName = domainname
|
|
6366
6454
|
@ShareClb = shareclb
|
|
@@ -6424,6 +6512,7 @@ module TencentCloud
|
|
|
6424
6512
|
@IntranetAccess = params['IntranetAccess']
|
|
6425
6513
|
@IntranetPrivateIpSet = params['IntranetPrivateIpSet']
|
|
6426
6514
|
@IntranetVpcId = params['IntranetVpcId']
|
|
6515
|
+
@IntranetSubnetId = params['IntranetSubnetId']
|
|
6427
6516
|
@IntranetVpcCidr = params['IntranetVpcCidr']
|
|
6428
6517
|
@DomainName = params['DomainName']
|
|
6429
6518
|
@ShareClb = params['ShareClb']
|
|
@@ -7553,12 +7642,15 @@ module TencentCloud
|
|
|
7553
7642
|
# @type AuthModeGM: :class:`Tencentcloud::Bh.v20230418.models.AuthModeSetting`
|
|
7554
7643
|
# @param Reconnection: 资产重连次数
|
|
7555
7644
|
# @type Reconnection: :class:`Tencentcloud::Bh.v20230418.models.ReconnectionSetting`
|
|
7645
|
+
# @param EnvInternetAccess: 大区环境网络设置
|
|
7646
|
+
# @type EnvInternetAccess: :class:`Tencentcloud::Bh.v20230418.models.EnvInternetAccessSetting`
|
|
7556
7647
|
|
|
7557
|
-
attr_accessor :AuthModeGM, :Reconnection
|
|
7648
|
+
attr_accessor :AuthModeGM, :Reconnection, :EnvInternetAccess
|
|
7558
7649
|
|
|
7559
|
-
def initialize(authmodegm=nil, reconnection=nil)
|
|
7650
|
+
def initialize(authmodegm=nil, reconnection=nil, envinternetaccess=nil)
|
|
7560
7651
|
@AuthModeGM = authmodegm
|
|
7561
7652
|
@Reconnection = reconnection
|
|
7653
|
+
@EnvInternetAccess = envinternetaccess
|
|
7562
7654
|
end
|
|
7563
7655
|
|
|
7564
7656
|
def deserialize(params)
|
|
@@ -7570,6 +7662,10 @@ module TencentCloud
|
|
|
7570
7662
|
@Reconnection = ReconnectionSetting.new
|
|
7571
7663
|
@Reconnection.deserialize(params['Reconnection'])
|
|
7572
7664
|
end
|
|
7665
|
+
unless params['EnvInternetAccess'].nil?
|
|
7666
|
+
@EnvInternetAccess = EnvInternetAccessSetting.new
|
|
7667
|
+
@EnvInternetAccess.deserialize(params['EnvInternetAccess'])
|
|
7668
|
+
end
|
|
7573
7669
|
end
|
|
7574
7670
|
end
|
|
7575
7671
|
|
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.1187
|
|
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-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|