tencentcloud-sdk-iotexplorer 1.0.220 → 1.0.221
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/v20190423/client.rb +24 -0
- data/lib/v20190423/models.rb +68 -0
- 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: 3853ebf8cb9b130a2f5ea6c6cfb50f58fac496e6
|
4
|
+
data.tar.gz: 29cc40e5f47217b3e560fc44bcfd5da12e5ac93a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0edf38b19b35e0dd6e9f135b9db9af6415f41b22a2ef8df5a5a20660b57a0d43657a2d821585f994623ca6bcea6bfa02388148db1b60f28f46262890fb64ac5
|
7
|
+
data.tar.gz: 471048853138caeedfa925a845418bc7df113953598cc1bb1a1f3e40831fbe31495793e390be18fc7699c2fca635d798a35c0f2e64c40dbc05ec41c0f928196f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.221
|
data/lib/v20190423/client.rb
CHANGED
@@ -1205,6 +1205,30 @@ module TencentCloud
|
|
1205
1205
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
1206
|
end
|
1207
1207
|
|
1208
|
+
# 用于获取设备绑定的用户列表
|
1209
|
+
|
1210
|
+
# @param request: Request instance for GetFamilyDeviceUserList.
|
1211
|
+
# @type request: :class:`Tencentcloud::iotexplorer::V20190423::GetFamilyDeviceUserListRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::iotexplorer::V20190423::GetFamilyDeviceUserListResponse`
|
1213
|
+
def GetFamilyDeviceUserList(request)
|
1214
|
+
body = send_request('GetFamilyDeviceUserList', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = GetFamilyDeviceUserListResponse.new
|
1218
|
+
model.deserialize(response['Response'])
|
1219
|
+
model
|
1220
|
+
else
|
1221
|
+
code = response['Response']['Error']['Code']
|
1222
|
+
message = response['Response']['Error']['Message']
|
1223
|
+
reqid = response['Response']['RequestId']
|
1224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1225
|
+
end
|
1226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1227
|
+
raise e
|
1228
|
+
rescue StandardError => e
|
1229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
|
+
end
|
1231
|
+
|
1208
1232
|
# 获取 LoRa 网关列表接口
|
1209
1233
|
|
1210
1234
|
# @param request: Request instance for GetLoRaGatewayList.
|
data/lib/v20190423/models.rb
CHANGED
@@ -2362,6 +2362,26 @@ module TencentCloud
|
|
2362
2362
|
end
|
2363
2363
|
end
|
2364
2364
|
|
2365
|
+
# 设备的用户
|
2366
|
+
class DeviceUser < TencentCloud::Common::AbstractModel
|
2367
|
+
# @param UserId: 用户ID
|
2368
|
+
# @type UserId: String
|
2369
|
+
# @param Role: 用户角色 1所有者,0:其他分享者
|
2370
|
+
# @type Role: Integer
|
2371
|
+
|
2372
|
+
attr_accessor :UserId, :Role
|
2373
|
+
|
2374
|
+
def initialize(userid=nil, role=nil)
|
2375
|
+
@UserId = userid
|
2376
|
+
@Role = role
|
2377
|
+
end
|
2378
|
+
|
2379
|
+
def deserialize(params)
|
2380
|
+
@UserId = params['UserId']
|
2381
|
+
@Role = params['Role']
|
2382
|
+
end
|
2383
|
+
end
|
2384
|
+
|
2365
2385
|
# ProductId -> DeviceName
|
2366
2386
|
class DevicesItem < TencentCloud::Common::AbstractModel
|
2367
2387
|
# @param ProductId: 产品id
|
@@ -2995,6 +3015,54 @@ module TencentCloud
|
|
2995
3015
|
end
|
2996
3016
|
end
|
2997
3017
|
|
3018
|
+
# GetFamilyDeviceUserList请求参数结构体
|
3019
|
+
class GetFamilyDeviceUserListRequest < TencentCloud::Common::AbstractModel
|
3020
|
+
# @param ProductId: 产品ID
|
3021
|
+
# @type ProductId: String
|
3022
|
+
# @param DeviceName: 设备名称
|
3023
|
+
# @type DeviceName: String
|
3024
|
+
|
3025
|
+
attr_accessor :ProductId, :DeviceName
|
3026
|
+
|
3027
|
+
def initialize(productid=nil, devicename=nil)
|
3028
|
+
@ProductId = productid
|
3029
|
+
@DeviceName = devicename
|
3030
|
+
end
|
3031
|
+
|
3032
|
+
def deserialize(params)
|
3033
|
+
@ProductId = params['ProductId']
|
3034
|
+
@DeviceName = params['DeviceName']
|
3035
|
+
end
|
3036
|
+
end
|
3037
|
+
|
3038
|
+
# GetFamilyDeviceUserList返回参数结构体
|
3039
|
+
class GetFamilyDeviceUserListResponse < TencentCloud::Common::AbstractModel
|
3040
|
+
# @param UserList: 设备的用户列表
|
3041
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3042
|
+
# @type UserList: Array
|
3043
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3044
|
+
# @type RequestId: String
|
3045
|
+
|
3046
|
+
attr_accessor :UserList, :RequestId
|
3047
|
+
|
3048
|
+
def initialize(userlist=nil, requestid=nil)
|
3049
|
+
@UserList = userlist
|
3050
|
+
@RequestId = requestid
|
3051
|
+
end
|
3052
|
+
|
3053
|
+
def deserialize(params)
|
3054
|
+
unless params['UserList'].nil?
|
3055
|
+
@UserList = []
|
3056
|
+
params['UserList'].each do |i|
|
3057
|
+
deviceuser_tmp = DeviceUser.new
|
3058
|
+
deviceuser_tmp.deserialize(i)
|
3059
|
+
@UserList << deviceuser_tmp
|
3060
|
+
end
|
3061
|
+
end
|
3062
|
+
@RequestId = params['RequestId']
|
3063
|
+
end
|
3064
|
+
end
|
3065
|
+
|
2998
3066
|
# GetLoRaGatewayList请求参数结构体
|
2999
3067
|
class GetLoRaGatewayListRequest < TencentCloud::Common::AbstractModel
|
3000
3068
|
# @param IsCommunity: 是否是社区网关
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iotexplorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.221
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|