tencentcloud-sdk-python-ioa 3.1.89__tar.gz → 3.1.92__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_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/setup.py +1 -1
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/v20220601/errorcodes.py +3 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/v20220601/ioa_client.py +23 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/v20220601/ioa_client_async.py +18 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/v20220601/models.py +184 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud_sdk_python_ioa.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ioa-3.1.92/tencentcloud_sdk_python_ioa.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ioa-3.1.89/tencentcloud_sdk_python_ioa.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/README.rst +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/__init__.py +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud/ioa/v20220601/__init__.py +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud_sdk_python_ioa.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud_sdk_python_ioa.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ioa-3.1.89 → tencentcloud_sdk_python_ioa-3.1.92}/tencentcloud_sdk_python_ioa.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ioa
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.92
|
|
4
4
|
Summary: Tencent Cloud Ioa SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ioa',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.92,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ioa SDK for Python',
|
|
@@ -104,6 +104,9 @@ REQUESTLIMITEXCEEDED_WAITFORTHELASTOPERATIONTOCOMPLETE = 'RequestLimitExceeded.W
|
|
|
104
104
|
# 没有模块数据。
|
|
105
105
|
RESOURCENOTFOUND_NOMODULEDATA = 'ResourceNotFound.NoModuleData'
|
|
106
106
|
|
|
107
|
+
# 没有业务资源数据。
|
|
108
|
+
RESOURCENOTFOUND_NORESOURCEDATA = 'ResourceNotFound.NoResourceData'
|
|
109
|
+
|
|
107
110
|
# 资源不存在。
|
|
108
111
|
RESOURCENOTFOUND_NOTFOUND = 'ResourceNotFound.NotFound'
|
|
109
112
|
|
|
@@ -831,6 +831,29 @@ class IoaClient(AbstractClient):
|
|
|
831
831
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
832
832
|
|
|
833
833
|
|
|
834
|
+
def ModifyBusinessResource(self, request):
|
|
835
|
+
r"""修改业务资源,会对一些必填参数进行校验和参数合法性校验,修改业务资源时,先调用下校验相同业务资源接口,看资源是不是有冲突。修改时也会做校验,但没有返回对应的异常信息,私有化调用path为:capi/GatewayResource/ModifyBusinessResource
|
|
836
|
+
|
|
837
|
+
:param request: Request instance for ModifyBusinessResource.
|
|
838
|
+
:type request: :class:`tencentcloud.ioa.v20220601.models.ModifyBusinessResourceRequest`
|
|
839
|
+
:rtype: :class:`tencentcloud.ioa.v20220601.models.ModifyBusinessResourceResponse`
|
|
840
|
+
|
|
841
|
+
"""
|
|
842
|
+
try:
|
|
843
|
+
params = request._serialize()
|
|
844
|
+
headers = request.headers
|
|
845
|
+
body = self.call("ModifyBusinessResource", params, headers=headers)
|
|
846
|
+
response = json.loads(body)
|
|
847
|
+
model = models.ModifyBusinessResourceResponse()
|
|
848
|
+
model._deserialize(response["Response"])
|
|
849
|
+
return model
|
|
850
|
+
except Exception as e:
|
|
851
|
+
if isinstance(e, TencentCloudSDKException):
|
|
852
|
+
raise
|
|
853
|
+
else:
|
|
854
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
855
|
+
|
|
856
|
+
|
|
834
857
|
def ModifyDeviceTrustStatus(self, request):
|
|
835
858
|
r"""给接入设备加黑加白,私有化调用path为:capi/NGN/ModifyDeviceTrustStatus
|
|
836
859
|
|
|
@@ -655,6 +655,24 @@ class IoaClient(AbstractClient):
|
|
|
655
655
|
|
|
656
656
|
return await self.call_and_deserialize(**kwargs)
|
|
657
657
|
|
|
658
|
+
async def ModifyBusinessResource(
|
|
659
|
+
self,
|
|
660
|
+
request: models.ModifyBusinessResourceRequest,
|
|
661
|
+
opts: Dict = None,
|
|
662
|
+
) -> models.ModifyBusinessResourceResponse:
|
|
663
|
+
"""
|
|
664
|
+
修改业务资源,会对一些必填参数进行校验和参数合法性校验,修改业务资源时,先调用下校验相同业务资源接口,看资源是不是有冲突。修改时也会做校验,但没有返回对应的异常信息,私有化调用path为:capi/GatewayResource/ModifyBusinessResource
|
|
665
|
+
"""
|
|
666
|
+
|
|
667
|
+
kwargs = {}
|
|
668
|
+
kwargs["action"] = "ModifyBusinessResource"
|
|
669
|
+
kwargs["params"] = request._serialize()
|
|
670
|
+
kwargs["resp_cls"] = models.ModifyBusinessResourceResponse
|
|
671
|
+
kwargs["headers"] = request.headers
|
|
672
|
+
kwargs["opts"] = opts or {}
|
|
673
|
+
|
|
674
|
+
return await self.call_and_deserialize(**kwargs)
|
|
675
|
+
|
|
658
676
|
async def ModifyDeviceTrustStatus(
|
|
659
677
|
self,
|
|
660
678
|
request: models.ModifyDeviceTrustStatusRequest,
|
|
@@ -12599,6 +12599,190 @@ class GrantedVirtualGroupItem(AbstractModel):
|
|
|
12599
12599
|
|
|
12600
12600
|
|
|
12601
12601
|
|
|
12602
|
+
class ModifyBusinessResourceRequest(AbstractModel):
|
|
12603
|
+
r"""ModifyBusinessResource请求参数结构体
|
|
12604
|
+
|
|
12605
|
+
"""
|
|
12606
|
+
|
|
12607
|
+
def __init__(self):
|
|
12608
|
+
r"""
|
|
12609
|
+
:param _AreaId: 业务资源所在的模块id,没有资源模块先创建资源模块(只支持32位)
|
|
12610
|
+
:type AreaId: int
|
|
12611
|
+
:param _Protocol: 业务资源协议类型,3:所有,2:UDP,1:TCP(只支持32位)
|
|
12612
|
+
:type Protocol: int
|
|
12613
|
+
:param _ServiceName: 业务资源名称,同一个资源模块下面不可重复
|
|
12614
|
+
:type ServiceName: str
|
|
12615
|
+
:param _Levels: 业务资源优先级 1-65535(只支持32位)
|
|
12616
|
+
:type Levels: int
|
|
12617
|
+
:param _ServiceType: 业务资源类型:ip,domain,ip_section,对应ip、域名、ip段
|
|
12618
|
+
:type ServiceType: str
|
|
12619
|
+
:param _ServicePort: 业务资源端口 all,1-65535
|
|
12620
|
+
:type ServicePort: str
|
|
12621
|
+
:param _ServiceId: 修改业务资源的id(只支持32位)
|
|
12622
|
+
:type ServiceId: int
|
|
12623
|
+
:param _ServiceAddress: 业务资源地址(ip、域名、ip段)
|
|
12624
|
+
:type ServiceAddress: str
|
|
12625
|
+
:param _DirectConn: 是否走代理,该参数不传,默认为0, 2:内外网直连,1:内网直连, 0:不启用代理配置(只支持32位)
|
|
12626
|
+
:type DirectConn: int
|
|
12627
|
+
"""
|
|
12628
|
+
self._AreaId = None
|
|
12629
|
+
self._Protocol = None
|
|
12630
|
+
self._ServiceName = None
|
|
12631
|
+
self._Levels = None
|
|
12632
|
+
self._ServiceType = None
|
|
12633
|
+
self._ServicePort = None
|
|
12634
|
+
self._ServiceId = None
|
|
12635
|
+
self._ServiceAddress = None
|
|
12636
|
+
self._DirectConn = None
|
|
12637
|
+
|
|
12638
|
+
@property
|
|
12639
|
+
def AreaId(self):
|
|
12640
|
+
r"""业务资源所在的模块id,没有资源模块先创建资源模块(只支持32位)
|
|
12641
|
+
:rtype: int
|
|
12642
|
+
"""
|
|
12643
|
+
return self._AreaId
|
|
12644
|
+
|
|
12645
|
+
@AreaId.setter
|
|
12646
|
+
def AreaId(self, AreaId):
|
|
12647
|
+
self._AreaId = AreaId
|
|
12648
|
+
|
|
12649
|
+
@property
|
|
12650
|
+
def Protocol(self):
|
|
12651
|
+
r"""业务资源协议类型,3:所有,2:UDP,1:TCP(只支持32位)
|
|
12652
|
+
:rtype: int
|
|
12653
|
+
"""
|
|
12654
|
+
return self._Protocol
|
|
12655
|
+
|
|
12656
|
+
@Protocol.setter
|
|
12657
|
+
def Protocol(self, Protocol):
|
|
12658
|
+
self._Protocol = Protocol
|
|
12659
|
+
|
|
12660
|
+
@property
|
|
12661
|
+
def ServiceName(self):
|
|
12662
|
+
r"""业务资源名称,同一个资源模块下面不可重复
|
|
12663
|
+
:rtype: str
|
|
12664
|
+
"""
|
|
12665
|
+
return self._ServiceName
|
|
12666
|
+
|
|
12667
|
+
@ServiceName.setter
|
|
12668
|
+
def ServiceName(self, ServiceName):
|
|
12669
|
+
self._ServiceName = ServiceName
|
|
12670
|
+
|
|
12671
|
+
@property
|
|
12672
|
+
def Levels(self):
|
|
12673
|
+
r"""业务资源优先级 1-65535(只支持32位)
|
|
12674
|
+
:rtype: int
|
|
12675
|
+
"""
|
|
12676
|
+
return self._Levels
|
|
12677
|
+
|
|
12678
|
+
@Levels.setter
|
|
12679
|
+
def Levels(self, Levels):
|
|
12680
|
+
self._Levels = Levels
|
|
12681
|
+
|
|
12682
|
+
@property
|
|
12683
|
+
def ServiceType(self):
|
|
12684
|
+
r"""业务资源类型:ip,domain,ip_section,对应ip、域名、ip段
|
|
12685
|
+
:rtype: str
|
|
12686
|
+
"""
|
|
12687
|
+
return self._ServiceType
|
|
12688
|
+
|
|
12689
|
+
@ServiceType.setter
|
|
12690
|
+
def ServiceType(self, ServiceType):
|
|
12691
|
+
self._ServiceType = ServiceType
|
|
12692
|
+
|
|
12693
|
+
@property
|
|
12694
|
+
def ServicePort(self):
|
|
12695
|
+
r"""业务资源端口 all,1-65535
|
|
12696
|
+
:rtype: str
|
|
12697
|
+
"""
|
|
12698
|
+
return self._ServicePort
|
|
12699
|
+
|
|
12700
|
+
@ServicePort.setter
|
|
12701
|
+
def ServicePort(self, ServicePort):
|
|
12702
|
+
self._ServicePort = ServicePort
|
|
12703
|
+
|
|
12704
|
+
@property
|
|
12705
|
+
def ServiceId(self):
|
|
12706
|
+
r"""修改业务资源的id(只支持32位)
|
|
12707
|
+
:rtype: int
|
|
12708
|
+
"""
|
|
12709
|
+
return self._ServiceId
|
|
12710
|
+
|
|
12711
|
+
@ServiceId.setter
|
|
12712
|
+
def ServiceId(self, ServiceId):
|
|
12713
|
+
self._ServiceId = ServiceId
|
|
12714
|
+
|
|
12715
|
+
@property
|
|
12716
|
+
def ServiceAddress(self):
|
|
12717
|
+
r"""业务资源地址(ip、域名、ip段)
|
|
12718
|
+
:rtype: str
|
|
12719
|
+
"""
|
|
12720
|
+
return self._ServiceAddress
|
|
12721
|
+
|
|
12722
|
+
@ServiceAddress.setter
|
|
12723
|
+
def ServiceAddress(self, ServiceAddress):
|
|
12724
|
+
self._ServiceAddress = ServiceAddress
|
|
12725
|
+
|
|
12726
|
+
@property
|
|
12727
|
+
def DirectConn(self):
|
|
12728
|
+
r"""是否走代理,该参数不传,默认为0, 2:内外网直连,1:内网直连, 0:不启用代理配置(只支持32位)
|
|
12729
|
+
:rtype: int
|
|
12730
|
+
"""
|
|
12731
|
+
return self._DirectConn
|
|
12732
|
+
|
|
12733
|
+
@DirectConn.setter
|
|
12734
|
+
def DirectConn(self, DirectConn):
|
|
12735
|
+
self._DirectConn = DirectConn
|
|
12736
|
+
|
|
12737
|
+
|
|
12738
|
+
def _deserialize(self, params):
|
|
12739
|
+
self._AreaId = params.get("AreaId")
|
|
12740
|
+
self._Protocol = params.get("Protocol")
|
|
12741
|
+
self._ServiceName = params.get("ServiceName")
|
|
12742
|
+
self._Levels = params.get("Levels")
|
|
12743
|
+
self._ServiceType = params.get("ServiceType")
|
|
12744
|
+
self._ServicePort = params.get("ServicePort")
|
|
12745
|
+
self._ServiceId = params.get("ServiceId")
|
|
12746
|
+
self._ServiceAddress = params.get("ServiceAddress")
|
|
12747
|
+
self._DirectConn = params.get("DirectConn")
|
|
12748
|
+
memeber_set = set(params.keys())
|
|
12749
|
+
for name, value in vars(self).items():
|
|
12750
|
+
property_name = name[1:]
|
|
12751
|
+
if property_name in memeber_set:
|
|
12752
|
+
memeber_set.remove(property_name)
|
|
12753
|
+
if len(memeber_set) > 0:
|
|
12754
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12755
|
+
|
|
12756
|
+
|
|
12757
|
+
|
|
12758
|
+
class ModifyBusinessResourceResponse(AbstractModel):
|
|
12759
|
+
r"""ModifyBusinessResource返回参数结构体
|
|
12760
|
+
|
|
12761
|
+
"""
|
|
12762
|
+
|
|
12763
|
+
def __init__(self):
|
|
12764
|
+
r"""
|
|
12765
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12766
|
+
:type RequestId: str
|
|
12767
|
+
"""
|
|
12768
|
+
self._RequestId = None
|
|
12769
|
+
|
|
12770
|
+
@property
|
|
12771
|
+
def RequestId(self):
|
|
12772
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12773
|
+
:rtype: str
|
|
12774
|
+
"""
|
|
12775
|
+
return self._RequestId
|
|
12776
|
+
|
|
12777
|
+
@RequestId.setter
|
|
12778
|
+
def RequestId(self, RequestId):
|
|
12779
|
+
self._RequestId = RequestId
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
def _deserialize(self, params):
|
|
12783
|
+
self._RequestId = params.get("RequestId")
|
|
12784
|
+
|
|
12785
|
+
|
|
12602
12786
|
class ModifyDeviceTrustStatusRequest(AbstractModel):
|
|
12603
12787
|
r"""ModifyDeviceTrustStatus请求参数结构体
|
|
12604
12788
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ioa
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.92
|
|
4
4
|
Summary: Tencent Cloud Ioa SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.92
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.89
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|