tencentcloud-sdk-dasb 1.0.324 → 1.0.325
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20191018/client.rb +336 -0
- data/lib/v20191018/models.rb +740 -112
- 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: 7d2047375a55a95bb82acd216ea1a677c0016ede
|
4
|
+
data.tar.gz: d01c405145c5ab1e3be44bc86c50f90e8e2aaaa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38d5e890f4bc3674607131573dc4f4a94cacf88b16cb3fda44d941f56ff303211e320cbd607169d9252cc509ff42b70ba581dea57c56da581590ae0c136dcc86
|
7
|
+
data.tar.gz: 567cc1190b90bbccce1b24b6e0abec0681aa0670ff9b1ddbd57a55ea95b13d89fe75e46092f3b463debf1412a715d2cd9c3e4f604b738ae801c369ac6d7013d3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.325
|
data/lib/v20191018/client.rb
CHANGED
@@ -29,6 +29,78 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 添加资产组成员
|
33
|
+
|
34
|
+
# @param request: Request instance for AddDeviceGroupMembers.
|
35
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::AddDeviceGroupMembersRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::AddDeviceGroupMembersResponse`
|
37
|
+
def AddDeviceGroupMembers(request)
|
38
|
+
body = send_request('AddDeviceGroupMembers', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddDeviceGroupMembersResponse.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
|
+
|
56
|
+
# 添加用户组成员
|
57
|
+
|
58
|
+
# @param request: Request instance for AddUserGroupMembers.
|
59
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::AddUserGroupMembersRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::AddUserGroupMembersResponse`
|
61
|
+
def AddUserGroupMembers(request)
|
62
|
+
body = send_request('AddUserGroupMembers', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddUserGroupMembersResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 修改资产绑定的堡垒机服务
|
81
|
+
|
82
|
+
# @param request: Request instance for BindDeviceResource.
|
83
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::BindDeviceResourceRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::BindDeviceResourceResponse`
|
85
|
+
def BindDeviceResource(request)
|
86
|
+
body = send_request('BindDeviceResource', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = BindDeviceResourceResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
32
104
|
# 新建访问权限
|
33
105
|
|
34
106
|
# @param request: Request instance for CreateAcl.
|
@@ -53,6 +125,30 @@ module TencentCloud
|
|
53
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
126
|
end
|
55
127
|
|
128
|
+
# 新建资产组
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateDeviceGroup.
|
131
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::CreateDeviceGroupRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::CreateDeviceGroupResponse`
|
133
|
+
def CreateDeviceGroup(request)
|
134
|
+
body = send_request('CreateDeviceGroup', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateDeviceGroupResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
56
152
|
# 新建用户
|
57
153
|
|
58
154
|
# @param request: Request instance for CreateUser.
|
@@ -77,6 +173,30 @@ module TencentCloud
|
|
77
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
174
|
end
|
79
175
|
|
176
|
+
# 新建用户组
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateUserGroup.
|
179
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::CreateUserGroupRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::CreateUserGroupResponse`
|
181
|
+
def CreateUserGroup(request)
|
182
|
+
body = send_request('CreateUserGroup', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateUserGroupResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
80
200
|
# 删除访问权限
|
81
201
|
|
82
202
|
# @param request: Request instance for DeleteAcls.
|
@@ -101,6 +221,102 @@ module TencentCloud
|
|
101
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
222
|
end
|
103
223
|
|
224
|
+
# 删除资产组成员
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteDeviceGroupMembers.
|
227
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceGroupMembersRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceGroupMembersResponse`
|
229
|
+
def DeleteDeviceGroupMembers(request)
|
230
|
+
body = send_request('DeleteDeviceGroupMembers', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteDeviceGroupMembersResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 删除资产组
|
249
|
+
|
250
|
+
# @param request: Request instance for DeleteDeviceGroups.
|
251
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceGroupsRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteDeviceGroupsResponse`
|
253
|
+
def DeleteDeviceGroups(request)
|
254
|
+
body = send_request('DeleteDeviceGroups', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DeleteDeviceGroupsResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 删除用户组成员
|
273
|
+
|
274
|
+
# @param request: Request instance for DeleteUserGroupMembers.
|
275
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DeleteUserGroupMembersRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteUserGroupMembersResponse`
|
277
|
+
def DeleteUserGroupMembers(request)
|
278
|
+
body = send_request('DeleteUserGroupMembers', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DeleteUserGroupMembersResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 删除用户组
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteUserGroups.
|
299
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DeleteUserGroupsRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DeleteUserGroupsResponse`
|
301
|
+
def DeleteUserGroups(request)
|
302
|
+
body = send_request('DeleteUserGroups', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteUserGroupsResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
104
320
|
# 删除用户
|
105
321
|
|
106
322
|
# @param request: Request instance for DeleteUsers.
|
@@ -173,6 +389,54 @@ module TencentCloud
|
|
173
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
390
|
end
|
175
391
|
|
392
|
+
# 查询资产组成员列表
|
393
|
+
|
394
|
+
# @param request: Request instance for DescribeDeviceGroupMembers.
|
395
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceGroupMembersRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceGroupMembersResponse`
|
397
|
+
def DescribeDeviceGroupMembers(request)
|
398
|
+
body = send_request('DescribeDeviceGroupMembers', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DescribeDeviceGroupMembersResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 查询资产组列表
|
417
|
+
|
418
|
+
# @param request: Request instance for DescribeDeviceGroups.
|
419
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceGroupsRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeDeviceGroupsResponse`
|
421
|
+
def DescribeDeviceGroups(request)
|
422
|
+
body = send_request('DescribeDeviceGroups', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = DescribeDeviceGroupsResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
176
440
|
# 查询资产列表
|
177
441
|
|
178
442
|
# @param request: Request instance for DescribeDevices.
|
@@ -197,6 +461,78 @@ module TencentCloud
|
|
197
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
462
|
end
|
199
463
|
|
464
|
+
# 查询用户购买的堡垒机服务信息,包括资源ID、授权点数、VPC、过期时间等。
|
465
|
+
|
466
|
+
# @param request: Request instance for DescribeResources.
|
467
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeResourcesRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeResourcesResponse`
|
469
|
+
def DescribeResources(request)
|
470
|
+
body = send_request('DescribeResources', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = DescribeResourcesResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 查询用户组成员列表
|
489
|
+
|
490
|
+
# @param request: Request instance for DescribeUserGroupMembers.
|
491
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeUserGroupMembersRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeUserGroupMembersResponse`
|
493
|
+
def DescribeUserGroupMembers(request)
|
494
|
+
body = send_request('DescribeUserGroupMembers', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = DescribeUserGroupMembersResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
512
|
+
# 查询用户组列表
|
513
|
+
|
514
|
+
# @param request: Request instance for DescribeUserGroups.
|
515
|
+
# @type request: :class:`Tencentcloud::dasb::V20191018::DescribeUserGroupsRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::dasb::V20191018::DescribeUserGroupsResponse`
|
517
|
+
def DescribeUserGroups(request)
|
518
|
+
body = send_request('DescribeUserGroups', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = DescribeUserGroupsResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
200
536
|
# 查询用户列表
|
201
537
|
|
202
538
|
# @param request: Request instance for DescribeUsers.
|