tencentcloud-sdk-bh 3.0.1016 → 3.0.1018
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 +115 -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: f82619302e44d35fd3e68e764b7ade116b68c055
|
4
|
+
data.tar.gz: 913f2dd900d19856c8387cb6b83ba32b85182e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b89e2c54c45829f4ec4a382277ceac3138f06dc94fa0793df17ded6c6cf55e4997c341a2f7329fb267b11545bc62e6a7ce65a350ef672da29edd9b86859c37f
|
7
|
+
data.tar.gz: ecc6bd6ec7792f7f8d8638e5a1a998a4e0f312fe22ca0a0f6aa3dd988ad84c622392cacfe337875677afa16a8d0eaa05991d7868573c82d17e08751bf30c4179
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1018
|
data/lib/v20230418/client.rb
CHANGED
@@ -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.
|
data/lib/v20230418/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.1018
|
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-
|
11
|
+
date: 2025-03-13 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/models.rb
|
38
37
|
- lib/v20230418/client.rb
|
38
|
+
- lib/v20230418/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|