tencentcloud-sdk-python-trro 3.0.1341__tar.gz → 3.0.1342__tar.gz
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.
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/setup.py +1 -1
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/trro/v20220325/models.py +140 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/trro/v20220325/trro_client.py +25 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud_sdk_python_trro.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trro-3.0.1342/tencentcloud_sdk_python_trro.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trro-3.0.1341/tencentcloud_sdk_python_trro.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/README.rst +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/trro/__init__.py +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/trro/v20220325/__init__.py +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud/trro/v20220325/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud_sdk_python_trro.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud_sdk_python_trro.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trro-3.0.1341 → tencentcloud-sdk-python-trro-3.0.1342}/tencentcloud_sdk_python_trro.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-trro',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1342"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trro SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -3488,6 +3488,146 @@ class ModifyProjectResponse(AbstractModel):
|
|
|
3488
3488
|
self._RequestId = params.get("RequestId")
|
|
3489
3489
|
|
|
3490
3490
|
|
|
3491
|
+
class ModifyProjectSecModeRequest(AbstractModel):
|
|
3492
|
+
"""ModifyProjectSecMode请求参数结构体
|
|
3493
|
+
|
|
3494
|
+
"""
|
|
3495
|
+
|
|
3496
|
+
def __init__(self):
|
|
3497
|
+
r"""
|
|
3498
|
+
:param _ProjectId: 项目ID
|
|
3499
|
+
:type ProjectId: str
|
|
3500
|
+
:param _Mode: 安全模式
|
|
3501
|
+
0:关闭项目共享密钥
|
|
3502
|
+
1:开启项目共享密钥
|
|
3503
|
+
:type Mode: int
|
|
3504
|
+
:param _Key: 项目密钥 32位 小写英文+数字; 项目密钥模式必填
|
|
3505
|
+
:type Key: str
|
|
3506
|
+
:param _AutoRegister: 自动注册方式
|
|
3507
|
+
0:关闭自动注册
|
|
3508
|
+
1:仅允许现场设备自动注册
|
|
3509
|
+
2:仅允许远端设备自动注册
|
|
3510
|
+
3:允许现场和远端设备均自动注册
|
|
3511
|
+
:type AutoRegister: int
|
|
3512
|
+
:param _FieldListEnable: 是否允许远端获取现场设备列表(getGwList)
|
|
3513
|
+
0:不允许
|
|
3514
|
+
1:允许
|
|
3515
|
+
:type FieldListEnable: int
|
|
3516
|
+
"""
|
|
3517
|
+
self._ProjectId = None
|
|
3518
|
+
self._Mode = None
|
|
3519
|
+
self._Key = None
|
|
3520
|
+
self._AutoRegister = None
|
|
3521
|
+
self._FieldListEnable = None
|
|
3522
|
+
|
|
3523
|
+
@property
|
|
3524
|
+
def ProjectId(self):
|
|
3525
|
+
"""项目ID
|
|
3526
|
+
:rtype: str
|
|
3527
|
+
"""
|
|
3528
|
+
return self._ProjectId
|
|
3529
|
+
|
|
3530
|
+
@ProjectId.setter
|
|
3531
|
+
def ProjectId(self, ProjectId):
|
|
3532
|
+
self._ProjectId = ProjectId
|
|
3533
|
+
|
|
3534
|
+
@property
|
|
3535
|
+
def Mode(self):
|
|
3536
|
+
"""安全模式
|
|
3537
|
+
0:关闭项目共享密钥
|
|
3538
|
+
1:开启项目共享密钥
|
|
3539
|
+
:rtype: int
|
|
3540
|
+
"""
|
|
3541
|
+
return self._Mode
|
|
3542
|
+
|
|
3543
|
+
@Mode.setter
|
|
3544
|
+
def Mode(self, Mode):
|
|
3545
|
+
self._Mode = Mode
|
|
3546
|
+
|
|
3547
|
+
@property
|
|
3548
|
+
def Key(self):
|
|
3549
|
+
"""项目密钥 32位 小写英文+数字; 项目密钥模式必填
|
|
3550
|
+
:rtype: str
|
|
3551
|
+
"""
|
|
3552
|
+
return self._Key
|
|
3553
|
+
|
|
3554
|
+
@Key.setter
|
|
3555
|
+
def Key(self, Key):
|
|
3556
|
+
self._Key = Key
|
|
3557
|
+
|
|
3558
|
+
@property
|
|
3559
|
+
def AutoRegister(self):
|
|
3560
|
+
"""自动注册方式
|
|
3561
|
+
0:关闭自动注册
|
|
3562
|
+
1:仅允许现场设备自动注册
|
|
3563
|
+
2:仅允许远端设备自动注册
|
|
3564
|
+
3:允许现场和远端设备均自动注册
|
|
3565
|
+
:rtype: int
|
|
3566
|
+
"""
|
|
3567
|
+
return self._AutoRegister
|
|
3568
|
+
|
|
3569
|
+
@AutoRegister.setter
|
|
3570
|
+
def AutoRegister(self, AutoRegister):
|
|
3571
|
+
self._AutoRegister = AutoRegister
|
|
3572
|
+
|
|
3573
|
+
@property
|
|
3574
|
+
def FieldListEnable(self):
|
|
3575
|
+
"""是否允许远端获取现场设备列表(getGwList)
|
|
3576
|
+
0:不允许
|
|
3577
|
+
1:允许
|
|
3578
|
+
:rtype: int
|
|
3579
|
+
"""
|
|
3580
|
+
return self._FieldListEnable
|
|
3581
|
+
|
|
3582
|
+
@FieldListEnable.setter
|
|
3583
|
+
def FieldListEnable(self, FieldListEnable):
|
|
3584
|
+
self._FieldListEnable = FieldListEnable
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
def _deserialize(self, params):
|
|
3588
|
+
self._ProjectId = params.get("ProjectId")
|
|
3589
|
+
self._Mode = params.get("Mode")
|
|
3590
|
+
self._Key = params.get("Key")
|
|
3591
|
+
self._AutoRegister = params.get("AutoRegister")
|
|
3592
|
+
self._FieldListEnable = params.get("FieldListEnable")
|
|
3593
|
+
memeber_set = set(params.keys())
|
|
3594
|
+
for name, value in vars(self).items():
|
|
3595
|
+
property_name = name[1:]
|
|
3596
|
+
if property_name in memeber_set:
|
|
3597
|
+
memeber_set.remove(property_name)
|
|
3598
|
+
if len(memeber_set) > 0:
|
|
3599
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
|
|
3603
|
+
class ModifyProjectSecModeResponse(AbstractModel):
|
|
3604
|
+
"""ModifyProjectSecMode返回参数结构体
|
|
3605
|
+
|
|
3606
|
+
"""
|
|
3607
|
+
|
|
3608
|
+
def __init__(self):
|
|
3609
|
+
r"""
|
|
3610
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3611
|
+
:type RequestId: str
|
|
3612
|
+
"""
|
|
3613
|
+
self._RequestId = None
|
|
3614
|
+
|
|
3615
|
+
@property
|
|
3616
|
+
def RequestId(self):
|
|
3617
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3618
|
+
:rtype: str
|
|
3619
|
+
"""
|
|
3620
|
+
return self._RequestId
|
|
3621
|
+
|
|
3622
|
+
@RequestId.setter
|
|
3623
|
+
def RequestId(self, RequestId):
|
|
3624
|
+
self._RequestId = RequestId
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
def _deserialize(self, params):
|
|
3628
|
+
self._RequestId = params.get("RequestId")
|
|
3629
|
+
|
|
3630
|
+
|
|
3491
3631
|
class MultiNet(AbstractModel):
|
|
3492
3632
|
"""多网的网卡状态信息
|
|
3493
3633
|
|
|
@@ -548,6 +548,31 @@ class TrroClient(AbstractClient):
|
|
|
548
548
|
model = models.ModifyProjectResponse()
|
|
549
549
|
model._deserialize(response["Response"])
|
|
550
550
|
return model
|
|
551
|
+
except Exception as e:
|
|
552
|
+
if isinstance(e, TencentCloudSDKException):
|
|
553
|
+
raise
|
|
554
|
+
else:
|
|
555
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
def ModifyProjectSecMode(self, request):
|
|
559
|
+
"""使用项目共享密钥可动态生成设备登录密钥,登录前无需对设备进行提前注册,适合希望简化业务流程的客户。由于是公共密钥,请务必注意保护项目共享密钥,并及时更新。建议项目共享密钥保存在服务器侧。由服务器生成设备登录密码下发给设备,避免密钥保存在客户端侧产生的密钥泄露风险。
|
|
560
|
+
|
|
561
|
+
开启项目共享密钥后,对于已注册的设备,仍可使用原设备密码登录。若希望仅能通过共享密钥生成密码登录,请通过云 API 将设备密码更新为"USEPROJECTKEYPWD"。
|
|
562
|
+
|
|
563
|
+
:param request: Request instance for ModifyProjectSecMode.
|
|
564
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeRequest`
|
|
565
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeResponse`
|
|
566
|
+
|
|
567
|
+
"""
|
|
568
|
+
try:
|
|
569
|
+
params = request._serialize()
|
|
570
|
+
headers = request.headers
|
|
571
|
+
body = self.call("ModifyProjectSecMode", params, headers=headers)
|
|
572
|
+
response = json.loads(body)
|
|
573
|
+
model = models.ModifyProjectSecModeResponse()
|
|
574
|
+
model._deserialize(response["Response"])
|
|
575
|
+
return model
|
|
551
576
|
except Exception as e:
|
|
552
577
|
if isinstance(e, TencentCloudSDKException):
|
|
553
578
|
raise
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1342
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1341
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|