tencentcloud-sdk-bh 3.0.1017 → 3.0.1019

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: 5b1f7a59610c083fe82e10ef9ab5820da363f821
4
- data.tar.gz: cd0268ecb34db60c613f2a262f01d74cdc72d972
3
+ metadata.gz: 45e79bf38f112c73aff7fba1a26ada2cb71fda2e
4
+ data.tar.gz: c4ed51a064de265734ce268e70a9f391fd290915
5
5
  SHA512:
6
- metadata.gz: c407f14596156b15f3c96ba35a621a44def3993b93e181799ffd85b0deb835f43ceb00ef599319b0bb84f92ddf891fe3503985ff1f160702a7e0c141a5a8189f
7
- data.tar.gz: ed0e478249a5dca212e412bce1c4420274cb18cdbfcc12eb1cf6db60e75ede09fed1aaa3ddc30b3a48c1d04100bac2c002d40fbafd433c90671f0e67c6dfaaab
6
+ metadata.gz: 60982b3b33ecc7d221c3d05eba67f2074cda8d87fb096fcc066ccaec09ecff3416828c76f1cd19879bf289fd9307ae999bbcc16eb24b6ccaa8acd37e07083c04
7
+ data.tar.gz: 63070cdb56fec5411c05342752f3aaffb4a888c41f07fba3954bdf8e79d9ef3471d5f806a995d518c323c42b51e575988e9f2070588935edc005d3d489390146
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1017
1
+ 3.0.1019
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 外部客户访问资产
33
+
34
+ # @param request: Request instance for AccessDevices.
35
+ # @type request: :class:`Tencentcloud::bh::V20230418::AccessDevicesRequest`
36
+ # @rtype: :class:`Tencentcloud::bh::V20230418::AccessDevicesResponse`
37
+ def AccessDevices(request)
38
+ body = send_request('AccessDevices', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AccessDevicesResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 添加资产组成员
33
57
 
34
58
  # @param request: Request instance for AddDeviceGroupMembers.
@@ -41,6 +41,121 @@ module TencentCloud
41
41
  end
42
42
  end
43
43
 
44
+ # AccessDevices请求参数结构体
45
+ class AccessDevicesRequest < TencentCloud::Common::AbstractModel
46
+ # @param InstanceId: 资源id
47
+ # @type InstanceId: String
48
+ # @param Account: 账号
49
+ # @type Account: String
50
+ # @param LoginAccount: 运维端登录账号
51
+ # @type LoginAccount: String
52
+ # @param LoginPassword: 运维端登录密码
53
+ # @type LoginPassword: String
54
+ # @param Password: 密码
55
+ # @type Password: String
56
+ # @param PrivateKey: 私钥
57
+ # @type PrivateKey: String
58
+ # @param PrivateKeyPassword: 私钥密码
59
+ # @type PrivateKeyPassword: String
60
+ # @param Exe: 客户端工具
61
+ # @type Exe: String
62
+ # @param Drivers: RDP挂载盘符驱动(mstsc支持)
63
+ # @type Drivers: Array
64
+ # @param Width: 窗口宽度(RDP支持)
65
+ # @type Width: Integer
66
+ # @param Height: 窗口高度(RDP支持)
67
+ # @type Height: Integer
68
+ # @param IntranetAccess: 是否内网访问(默认不是)
69
+ # @type IntranetAccess: Boolean
70
+
71
+ attr_accessor :InstanceId, :Account, :LoginAccount, :LoginPassword, :Password, :PrivateKey, :PrivateKeyPassword, :Exe, :Drivers, :Width, :Height, :IntranetAccess
72
+
73
+ def initialize(instanceid=nil, account=nil, loginaccount=nil, loginpassword=nil, password=nil, privatekey=nil, privatekeypassword=nil, exe=nil, drivers=nil, width=nil, height=nil, intranetaccess=nil)
74
+ @InstanceId = instanceid
75
+ @Account = account
76
+ @LoginAccount = loginaccount
77
+ @LoginPassword = loginpassword
78
+ @Password = password
79
+ @PrivateKey = privatekey
80
+ @PrivateKeyPassword = privatekeypassword
81
+ @Exe = exe
82
+ @Drivers = drivers
83
+ @Width = width
84
+ @Height = height
85
+ @IntranetAccess = intranetaccess
86
+ end
87
+
88
+ def deserialize(params)
89
+ @InstanceId = params['InstanceId']
90
+ @Account = params['Account']
91
+ @LoginAccount = params['LoginAccount']
92
+ @LoginPassword = params['LoginPassword']
93
+ @Password = params['Password']
94
+ @PrivateKey = params['PrivateKey']
95
+ @PrivateKeyPassword = params['PrivateKeyPassword']
96
+ @Exe = params['Exe']
97
+ @Drivers = params['Drivers']
98
+ @Width = params['Width']
99
+ @Height = params['Height']
100
+ @IntranetAccess = params['IntranetAccess']
101
+ end
102
+ end
103
+
104
+ # AccessDevices返回参数结构体
105
+ class AccessDevicesResponse < TencentCloud::Common::AbstractModel
106
+ # @param AccessInfo: 认证信息
107
+ # @type AccessInfo: :class:`Tencentcloud::Bh.v20230418.models.AccessInfo`
108
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
109
+ # @type RequestId: String
110
+
111
+ attr_accessor :AccessInfo, :RequestId
112
+
113
+ def initialize(accessinfo=nil, requestid=nil)
114
+ @AccessInfo = accessinfo
115
+ @RequestId = requestid
116
+ end
117
+
118
+ def deserialize(params)
119
+ unless params['AccessInfo'].nil?
120
+ @AccessInfo = AccessInfo.new
121
+ @AccessInfo.deserialize(params['AccessInfo'])
122
+ end
123
+ @RequestId = params['RequestId']
124
+ end
125
+ end
126
+
127
+ # 认证信息
128
+ class AccessInfo < TencentCloud::Common::AbstractModel
129
+ # @param Ip: 地址
130
+ # @type Ip: String
131
+ # @param Port: 端口
132
+ # @type Port: Integer
133
+ # @param User: 账号
134
+ # @type User: String
135
+ # @param Password: 密码
136
+ # @type Password: String
137
+ # @param AccessURL: 唤起链接|wss链接
138
+ # @type AccessURL: String
139
+
140
+ attr_accessor :Ip, :Port, :User, :Password, :AccessURL
141
+
142
+ def initialize(ip=nil, port=nil, user=nil, password=nil, accessurl=nil)
143
+ @Ip = ip
144
+ @Port = port
145
+ @User = user
146
+ @Password = password
147
+ @AccessURL = accessurl
148
+ end
149
+
150
+ def deserialize(params)
151
+ @Ip = params['Ip']
152
+ @Port = params['Port']
153
+ @User = params['User']
154
+ @Password = params['Password']
155
+ @AccessURL = params['AccessURL']
156
+ end
157
+ end
158
+
44
159
  # 访问权限
45
160
  class Acl < TencentCloud::Common::AbstractModel
46
161
  # @param Id: 访问权限ID
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.1017
4
+ version: 3.0.1019
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-03-12 00:00:00.000000000 Z
11
+ date: 2025-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common