tencentcloud-sdk-python-teo 3.1.105__tar.gz → 3.1.107__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_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/setup.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220901/models.py +678 -31
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220901/teo_client.py +92 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220901/teo_client_async.py +72 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_teo-3.1.107/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_teo-3.1.105/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/README.rst +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/setup.cfg +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.105 → tencentcloud_sdk_python_teo-3.1.107}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.107
|
|
4
4
|
Summary: Tencent Cloud Teo 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.107
|
|
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-teo',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.107,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Teo SDK for Python',
|
|
@@ -10856,6 +10856,130 @@ class CreateEdgeKVNamespaceResponse(AbstractModel):
|
|
|
10856
10856
|
self._RequestId = params.get("RequestId")
|
|
10857
10857
|
|
|
10858
10858
|
|
|
10859
|
+
class CreateFunctionReplicaRequest(AbstractModel):
|
|
10860
|
+
r"""CreateFunctionReplica请求参数结构体
|
|
10861
|
+
|
|
10862
|
+
"""
|
|
10863
|
+
|
|
10864
|
+
def __init__(self):
|
|
10865
|
+
r"""
|
|
10866
|
+
:param _ZoneId: 站点 ID。
|
|
10867
|
+
:type ZoneId: str
|
|
10868
|
+
:param _FunctionId: 函数 ID。
|
|
10869
|
+
:type FunctionId: str
|
|
10870
|
+
:param _ReplicaName: 边缘函数副本名称。限制可输入 1-50 个字符,允许的字符为a-z、0-9、-,且-不能单独注册或连续使用,不能放在开头或结尾。同一 FunctionId 下副本名称需唯一。
|
|
10871
|
+
:type ReplicaName: str
|
|
10872
|
+
:param _Content: 边缘函数副本内容,当前仅支持 JavaScript 代码,最大支持 5MB。
|
|
10873
|
+
:type Content: str
|
|
10874
|
+
:param _Remark: 边缘函数副本描述。最大支持 50 个字符。
|
|
10875
|
+
:type Remark: str
|
|
10876
|
+
"""
|
|
10877
|
+
self._ZoneId = None
|
|
10878
|
+
self._FunctionId = None
|
|
10879
|
+
self._ReplicaName = None
|
|
10880
|
+
self._Content = None
|
|
10881
|
+
self._Remark = None
|
|
10882
|
+
|
|
10883
|
+
@property
|
|
10884
|
+
def ZoneId(self):
|
|
10885
|
+
r"""站点 ID。
|
|
10886
|
+
:rtype: str
|
|
10887
|
+
"""
|
|
10888
|
+
return self._ZoneId
|
|
10889
|
+
|
|
10890
|
+
@ZoneId.setter
|
|
10891
|
+
def ZoneId(self, ZoneId):
|
|
10892
|
+
self._ZoneId = ZoneId
|
|
10893
|
+
|
|
10894
|
+
@property
|
|
10895
|
+
def FunctionId(self):
|
|
10896
|
+
r"""函数 ID。
|
|
10897
|
+
:rtype: str
|
|
10898
|
+
"""
|
|
10899
|
+
return self._FunctionId
|
|
10900
|
+
|
|
10901
|
+
@FunctionId.setter
|
|
10902
|
+
def FunctionId(self, FunctionId):
|
|
10903
|
+
self._FunctionId = FunctionId
|
|
10904
|
+
|
|
10905
|
+
@property
|
|
10906
|
+
def ReplicaName(self):
|
|
10907
|
+
r"""边缘函数副本名称。限制可输入 1-50 个字符,允许的字符为a-z、0-9、-,且-不能单独注册或连续使用,不能放在开头或结尾。同一 FunctionId 下副本名称需唯一。
|
|
10908
|
+
:rtype: str
|
|
10909
|
+
"""
|
|
10910
|
+
return self._ReplicaName
|
|
10911
|
+
|
|
10912
|
+
@ReplicaName.setter
|
|
10913
|
+
def ReplicaName(self, ReplicaName):
|
|
10914
|
+
self._ReplicaName = ReplicaName
|
|
10915
|
+
|
|
10916
|
+
@property
|
|
10917
|
+
def Content(self):
|
|
10918
|
+
r"""边缘函数副本内容,当前仅支持 JavaScript 代码,最大支持 5MB。
|
|
10919
|
+
:rtype: str
|
|
10920
|
+
"""
|
|
10921
|
+
return self._Content
|
|
10922
|
+
|
|
10923
|
+
@Content.setter
|
|
10924
|
+
def Content(self, Content):
|
|
10925
|
+
self._Content = Content
|
|
10926
|
+
|
|
10927
|
+
@property
|
|
10928
|
+
def Remark(self):
|
|
10929
|
+
r"""边缘函数副本描述。最大支持 50 个字符。
|
|
10930
|
+
:rtype: str
|
|
10931
|
+
"""
|
|
10932
|
+
return self._Remark
|
|
10933
|
+
|
|
10934
|
+
@Remark.setter
|
|
10935
|
+
def Remark(self, Remark):
|
|
10936
|
+
self._Remark = Remark
|
|
10937
|
+
|
|
10938
|
+
|
|
10939
|
+
def _deserialize(self, params):
|
|
10940
|
+
self._ZoneId = params.get("ZoneId")
|
|
10941
|
+
self._FunctionId = params.get("FunctionId")
|
|
10942
|
+
self._ReplicaName = params.get("ReplicaName")
|
|
10943
|
+
self._Content = params.get("Content")
|
|
10944
|
+
self._Remark = params.get("Remark")
|
|
10945
|
+
memeber_set = set(params.keys())
|
|
10946
|
+
for name, value in vars(self).items():
|
|
10947
|
+
property_name = name[1:]
|
|
10948
|
+
if property_name in memeber_set:
|
|
10949
|
+
memeber_set.remove(property_name)
|
|
10950
|
+
if len(memeber_set) > 0:
|
|
10951
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10952
|
+
|
|
10953
|
+
|
|
10954
|
+
|
|
10955
|
+
class CreateFunctionReplicaResponse(AbstractModel):
|
|
10956
|
+
r"""CreateFunctionReplica返回参数结构体
|
|
10957
|
+
|
|
10958
|
+
"""
|
|
10959
|
+
|
|
10960
|
+
def __init__(self):
|
|
10961
|
+
r"""
|
|
10962
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10963
|
+
:type RequestId: str
|
|
10964
|
+
"""
|
|
10965
|
+
self._RequestId = None
|
|
10966
|
+
|
|
10967
|
+
@property
|
|
10968
|
+
def RequestId(self):
|
|
10969
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10970
|
+
:rtype: str
|
|
10971
|
+
"""
|
|
10972
|
+
return self._RequestId
|
|
10973
|
+
|
|
10974
|
+
@RequestId.setter
|
|
10975
|
+
def RequestId(self, RequestId):
|
|
10976
|
+
self._RequestId = RequestId
|
|
10977
|
+
|
|
10978
|
+
|
|
10979
|
+
def _deserialize(self, params):
|
|
10980
|
+
self._RequestId = params.get("RequestId")
|
|
10981
|
+
|
|
10982
|
+
|
|
10859
10983
|
class CreateFunctionRequest(AbstractModel):
|
|
10860
10984
|
r"""CreateFunction请求参数结构体
|
|
10861
10985
|
|
|
@@ -16726,6 +16850,100 @@ class DeleteEdgeKVNamespaceResponse(AbstractModel):
|
|
|
16726
16850
|
self._RequestId = params.get("RequestId")
|
|
16727
16851
|
|
|
16728
16852
|
|
|
16853
|
+
class DeleteFunctionReplicaRequest(AbstractModel):
|
|
16854
|
+
r"""DeleteFunctionReplica请求参数结构体
|
|
16855
|
+
|
|
16856
|
+
"""
|
|
16857
|
+
|
|
16858
|
+
def __init__(self):
|
|
16859
|
+
r"""
|
|
16860
|
+
:param _ZoneId: 站点 ID。
|
|
16861
|
+
:type ZoneId: str
|
|
16862
|
+
:param _FunctionId: 函数 ID。
|
|
16863
|
+
:type FunctionId: str
|
|
16864
|
+
:param _ReplicaNames: 需要删除的函数的副本名称。支持以列表的形式传入。
|
|
16865
|
+
:type ReplicaNames: list of str
|
|
16866
|
+
"""
|
|
16867
|
+
self._ZoneId = None
|
|
16868
|
+
self._FunctionId = None
|
|
16869
|
+
self._ReplicaNames = None
|
|
16870
|
+
|
|
16871
|
+
@property
|
|
16872
|
+
def ZoneId(self):
|
|
16873
|
+
r"""站点 ID。
|
|
16874
|
+
:rtype: str
|
|
16875
|
+
"""
|
|
16876
|
+
return self._ZoneId
|
|
16877
|
+
|
|
16878
|
+
@ZoneId.setter
|
|
16879
|
+
def ZoneId(self, ZoneId):
|
|
16880
|
+
self._ZoneId = ZoneId
|
|
16881
|
+
|
|
16882
|
+
@property
|
|
16883
|
+
def FunctionId(self):
|
|
16884
|
+
r"""函数 ID。
|
|
16885
|
+
:rtype: str
|
|
16886
|
+
"""
|
|
16887
|
+
return self._FunctionId
|
|
16888
|
+
|
|
16889
|
+
@FunctionId.setter
|
|
16890
|
+
def FunctionId(self, FunctionId):
|
|
16891
|
+
self._FunctionId = FunctionId
|
|
16892
|
+
|
|
16893
|
+
@property
|
|
16894
|
+
def ReplicaNames(self):
|
|
16895
|
+
r"""需要删除的函数的副本名称。支持以列表的形式传入。
|
|
16896
|
+
:rtype: list of str
|
|
16897
|
+
"""
|
|
16898
|
+
return self._ReplicaNames
|
|
16899
|
+
|
|
16900
|
+
@ReplicaNames.setter
|
|
16901
|
+
def ReplicaNames(self, ReplicaNames):
|
|
16902
|
+
self._ReplicaNames = ReplicaNames
|
|
16903
|
+
|
|
16904
|
+
|
|
16905
|
+
def _deserialize(self, params):
|
|
16906
|
+
self._ZoneId = params.get("ZoneId")
|
|
16907
|
+
self._FunctionId = params.get("FunctionId")
|
|
16908
|
+
self._ReplicaNames = params.get("ReplicaNames")
|
|
16909
|
+
memeber_set = set(params.keys())
|
|
16910
|
+
for name, value in vars(self).items():
|
|
16911
|
+
property_name = name[1:]
|
|
16912
|
+
if property_name in memeber_set:
|
|
16913
|
+
memeber_set.remove(property_name)
|
|
16914
|
+
if len(memeber_set) > 0:
|
|
16915
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16916
|
+
|
|
16917
|
+
|
|
16918
|
+
|
|
16919
|
+
class DeleteFunctionReplicaResponse(AbstractModel):
|
|
16920
|
+
r"""DeleteFunctionReplica返回参数结构体
|
|
16921
|
+
|
|
16922
|
+
"""
|
|
16923
|
+
|
|
16924
|
+
def __init__(self):
|
|
16925
|
+
r"""
|
|
16926
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16927
|
+
:type RequestId: str
|
|
16928
|
+
"""
|
|
16929
|
+
self._RequestId = None
|
|
16930
|
+
|
|
16931
|
+
@property
|
|
16932
|
+
def RequestId(self):
|
|
16933
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16934
|
+
:rtype: str
|
|
16935
|
+
"""
|
|
16936
|
+
return self._RequestId
|
|
16937
|
+
|
|
16938
|
+
@RequestId.setter
|
|
16939
|
+
def RequestId(self, RequestId):
|
|
16940
|
+
self._RequestId = RequestId
|
|
16941
|
+
|
|
16942
|
+
|
|
16943
|
+
def _deserialize(self, params):
|
|
16944
|
+
self._RequestId = params.get("RequestId")
|
|
16945
|
+
|
|
16946
|
+
|
|
16729
16947
|
class DeleteFunctionRequest(AbstractModel):
|
|
16730
16948
|
r"""DeleteFunction请求参数结构体
|
|
16731
16949
|
|
|
@@ -21796,8 +22014,178 @@ class DescribeEnvironmentsResponse(AbstractModel):
|
|
|
21796
22014
|
self._RequestId = params.get("RequestId")
|
|
21797
22015
|
|
|
21798
22016
|
|
|
21799
|
-
class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
21800
|
-
r"""DescribeFunctionComponentBindings请求参数结构体
|
|
22017
|
+
class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
22018
|
+
r"""DescribeFunctionComponentBindings请求参数结构体
|
|
22019
|
+
|
|
22020
|
+
"""
|
|
22021
|
+
|
|
22022
|
+
def __init__(self):
|
|
22023
|
+
r"""
|
|
22024
|
+
:param _ZoneId: 站点 ID。
|
|
22025
|
+
:type ZoneId: str
|
|
22026
|
+
:param _FunctionId: 函数 ID。
|
|
22027
|
+
:type FunctionId: str
|
|
22028
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
22029
|
+
:type Offset: int
|
|
22030
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
|
22031
|
+
:type Limit: int
|
|
22032
|
+
:param _Filters: 过滤条件,Filters.Values 的上限为 20。详细的过滤条件如下:
|
|
22033
|
+
<li>name:按照绑定的变量名进行过滤,支持模糊查询;</li>
|
|
22034
|
+
<li>type:按照绑定类型进行过滤,不支持模糊查询。</li>
|
|
22035
|
+
|
|
22036
|
+
:type Filters: list of AdvancedFilter
|
|
22037
|
+
"""
|
|
22038
|
+
self._ZoneId = None
|
|
22039
|
+
self._FunctionId = None
|
|
22040
|
+
self._Offset = None
|
|
22041
|
+
self._Limit = None
|
|
22042
|
+
self._Filters = None
|
|
22043
|
+
|
|
22044
|
+
@property
|
|
22045
|
+
def ZoneId(self):
|
|
22046
|
+
r"""站点 ID。
|
|
22047
|
+
:rtype: str
|
|
22048
|
+
"""
|
|
22049
|
+
return self._ZoneId
|
|
22050
|
+
|
|
22051
|
+
@ZoneId.setter
|
|
22052
|
+
def ZoneId(self, ZoneId):
|
|
22053
|
+
self._ZoneId = ZoneId
|
|
22054
|
+
|
|
22055
|
+
@property
|
|
22056
|
+
def FunctionId(self):
|
|
22057
|
+
r"""函数 ID。
|
|
22058
|
+
:rtype: str
|
|
22059
|
+
"""
|
|
22060
|
+
return self._FunctionId
|
|
22061
|
+
|
|
22062
|
+
@FunctionId.setter
|
|
22063
|
+
def FunctionId(self, FunctionId):
|
|
22064
|
+
self._FunctionId = FunctionId
|
|
22065
|
+
|
|
22066
|
+
@property
|
|
22067
|
+
def Offset(self):
|
|
22068
|
+
r"""分页查询偏移量。默认值:0。
|
|
22069
|
+
:rtype: int
|
|
22070
|
+
"""
|
|
22071
|
+
return self._Offset
|
|
22072
|
+
|
|
22073
|
+
@Offset.setter
|
|
22074
|
+
def Offset(self, Offset):
|
|
22075
|
+
self._Offset = Offset
|
|
22076
|
+
|
|
22077
|
+
@property
|
|
22078
|
+
def Limit(self):
|
|
22079
|
+
r"""分页查询限制数目。默认值:20,最大值:1000。
|
|
22080
|
+
:rtype: int
|
|
22081
|
+
"""
|
|
22082
|
+
return self._Limit
|
|
22083
|
+
|
|
22084
|
+
@Limit.setter
|
|
22085
|
+
def Limit(self, Limit):
|
|
22086
|
+
self._Limit = Limit
|
|
22087
|
+
|
|
22088
|
+
@property
|
|
22089
|
+
def Filters(self):
|
|
22090
|
+
r"""过滤条件,Filters.Values 的上限为 20。详细的过滤条件如下:
|
|
22091
|
+
<li>name:按照绑定的变量名进行过滤,支持模糊查询;</li>
|
|
22092
|
+
<li>type:按照绑定类型进行过滤,不支持模糊查询。</li>
|
|
22093
|
+
|
|
22094
|
+
:rtype: list of AdvancedFilter
|
|
22095
|
+
"""
|
|
22096
|
+
return self._Filters
|
|
22097
|
+
|
|
22098
|
+
@Filters.setter
|
|
22099
|
+
def Filters(self, Filters):
|
|
22100
|
+
self._Filters = Filters
|
|
22101
|
+
|
|
22102
|
+
|
|
22103
|
+
def _deserialize(self, params):
|
|
22104
|
+
self._ZoneId = params.get("ZoneId")
|
|
22105
|
+
self._FunctionId = params.get("FunctionId")
|
|
22106
|
+
self._Offset = params.get("Offset")
|
|
22107
|
+
self._Limit = params.get("Limit")
|
|
22108
|
+
if params.get("Filters") is not None:
|
|
22109
|
+
self._Filters = []
|
|
22110
|
+
for item in params.get("Filters"):
|
|
22111
|
+
obj = AdvancedFilter()
|
|
22112
|
+
obj._deserialize(item)
|
|
22113
|
+
self._Filters.append(obj)
|
|
22114
|
+
memeber_set = set(params.keys())
|
|
22115
|
+
for name, value in vars(self).items():
|
|
22116
|
+
property_name = name[1:]
|
|
22117
|
+
if property_name in memeber_set:
|
|
22118
|
+
memeber_set.remove(property_name)
|
|
22119
|
+
if len(memeber_set) > 0:
|
|
22120
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22121
|
+
|
|
22122
|
+
|
|
22123
|
+
|
|
22124
|
+
class DescribeFunctionComponentBindingsResponse(AbstractModel):
|
|
22125
|
+
r"""DescribeFunctionComponentBindings返回参数结构体
|
|
22126
|
+
|
|
22127
|
+
"""
|
|
22128
|
+
|
|
22129
|
+
def __init__(self):
|
|
22130
|
+
r"""
|
|
22131
|
+
:param _TotalCount: 符合条件的函数绑定总数。
|
|
22132
|
+
:type TotalCount: int
|
|
22133
|
+
:param _FunctionComponentBindings: 函数组件绑定列表。
|
|
22134
|
+
:type FunctionComponentBindings: list of FunctionComponentBinding
|
|
22135
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22136
|
+
:type RequestId: str
|
|
22137
|
+
"""
|
|
22138
|
+
self._TotalCount = None
|
|
22139
|
+
self._FunctionComponentBindings = None
|
|
22140
|
+
self._RequestId = None
|
|
22141
|
+
|
|
22142
|
+
@property
|
|
22143
|
+
def TotalCount(self):
|
|
22144
|
+
r"""符合条件的函数绑定总数。
|
|
22145
|
+
:rtype: int
|
|
22146
|
+
"""
|
|
22147
|
+
return self._TotalCount
|
|
22148
|
+
|
|
22149
|
+
@TotalCount.setter
|
|
22150
|
+
def TotalCount(self, TotalCount):
|
|
22151
|
+
self._TotalCount = TotalCount
|
|
22152
|
+
|
|
22153
|
+
@property
|
|
22154
|
+
def FunctionComponentBindings(self):
|
|
22155
|
+
r"""函数组件绑定列表。
|
|
22156
|
+
:rtype: list of FunctionComponentBinding
|
|
22157
|
+
"""
|
|
22158
|
+
return self._FunctionComponentBindings
|
|
22159
|
+
|
|
22160
|
+
@FunctionComponentBindings.setter
|
|
22161
|
+
def FunctionComponentBindings(self, FunctionComponentBindings):
|
|
22162
|
+
self._FunctionComponentBindings = FunctionComponentBindings
|
|
22163
|
+
|
|
22164
|
+
@property
|
|
22165
|
+
def RequestId(self):
|
|
22166
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22167
|
+
:rtype: str
|
|
22168
|
+
"""
|
|
22169
|
+
return self._RequestId
|
|
22170
|
+
|
|
22171
|
+
@RequestId.setter
|
|
22172
|
+
def RequestId(self, RequestId):
|
|
22173
|
+
self._RequestId = RequestId
|
|
22174
|
+
|
|
22175
|
+
|
|
22176
|
+
def _deserialize(self, params):
|
|
22177
|
+
self._TotalCount = params.get("TotalCount")
|
|
22178
|
+
if params.get("FunctionComponentBindings") is not None:
|
|
22179
|
+
self._FunctionComponentBindings = []
|
|
22180
|
+
for item in params.get("FunctionComponentBindings"):
|
|
22181
|
+
obj = FunctionComponentBinding()
|
|
22182
|
+
obj._deserialize(item)
|
|
22183
|
+
self._FunctionComponentBindings.append(obj)
|
|
22184
|
+
self._RequestId = params.get("RequestId")
|
|
22185
|
+
|
|
22186
|
+
|
|
22187
|
+
class DescribeFunctionReplicasRequest(AbstractModel):
|
|
22188
|
+
r"""DescribeFunctionReplicas请求参数结构体
|
|
21801
22189
|
|
|
21802
22190
|
"""
|
|
21803
22191
|
|
|
@@ -21809,18 +22197,21 @@ class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
|
21809
22197
|
:type FunctionId: str
|
|
21810
22198
|
:param _Offset: 分页查询偏移量。默认值:0。
|
|
21811
22199
|
:type Offset: int
|
|
21812
|
-
:param _Limit: 分页查询限制数目。默认值:20,最大值:
|
|
22200
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:200。
|
|
21813
22201
|
:type Limit: int
|
|
21814
|
-
:param
|
|
21815
|
-
|
|
21816
|
-
<li>
|
|
21817
|
-
|
|
22202
|
+
:param _SortBy: 排序依据,取值有: <li>created-on:创建时间。</li> 默认根据 created-on 属性排序。
|
|
22203
|
+
:type SortBy: str
|
|
22204
|
+
:param _SortOrder: 列表排序方式,取值有: <li>asc:升序排列;</li> <li>desc:降序排列。</li> 默认值为 asc。
|
|
22205
|
+
:type SortOrder: str
|
|
22206
|
+
:param _Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回函数 ID 下全部函数副本。详细的过滤条件如下: <li> replica-name:按照函数副本名称进行过滤,支持模糊查询。</li>
|
|
21818
22207
|
:type Filters: list of AdvancedFilter
|
|
21819
22208
|
"""
|
|
21820
22209
|
self._ZoneId = None
|
|
21821
22210
|
self._FunctionId = None
|
|
21822
22211
|
self._Offset = None
|
|
21823
22212
|
self._Limit = None
|
|
22213
|
+
self._SortBy = None
|
|
22214
|
+
self._SortOrder = None
|
|
21824
22215
|
self._Filters = None
|
|
21825
22216
|
|
|
21826
22217
|
@property
|
|
@@ -21858,7 +22249,7 @@ class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
|
21858
22249
|
|
|
21859
22250
|
@property
|
|
21860
22251
|
def Limit(self):
|
|
21861
|
-
r"""分页查询限制数目。默认值:20,最大值:
|
|
22252
|
+
r"""分页查询限制数目。默认值:20,最大值:200。
|
|
21862
22253
|
:rtype: int
|
|
21863
22254
|
"""
|
|
21864
22255
|
return self._Limit
|
|
@@ -21868,11 +22259,30 @@ class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
|
21868
22259
|
self._Limit = Limit
|
|
21869
22260
|
|
|
21870
22261
|
@property
|
|
21871
|
-
def
|
|
21872
|
-
r"""
|
|
21873
|
-
|
|
21874
|
-
|
|
22262
|
+
def SortBy(self):
|
|
22263
|
+
r"""排序依据,取值有: <li>created-on:创建时间。</li> 默认根据 created-on 属性排序。
|
|
22264
|
+
:rtype: str
|
|
22265
|
+
"""
|
|
22266
|
+
return self._SortBy
|
|
22267
|
+
|
|
22268
|
+
@SortBy.setter
|
|
22269
|
+
def SortBy(self, SortBy):
|
|
22270
|
+
self._SortBy = SortBy
|
|
22271
|
+
|
|
22272
|
+
@property
|
|
22273
|
+
def SortOrder(self):
|
|
22274
|
+
r"""列表排序方式,取值有: <li>asc:升序排列;</li> <li>desc:降序排列。</li> 默认值为 asc。
|
|
22275
|
+
:rtype: str
|
|
22276
|
+
"""
|
|
22277
|
+
return self._SortOrder
|
|
21875
22278
|
|
|
22279
|
+
@SortOrder.setter
|
|
22280
|
+
def SortOrder(self, SortOrder):
|
|
22281
|
+
self._SortOrder = SortOrder
|
|
22282
|
+
|
|
22283
|
+
@property
|
|
22284
|
+
def Filters(self):
|
|
22285
|
+
r"""过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回函数 ID 下全部函数副本。详细的过滤条件如下: <li> replica-name:按照函数副本名称进行过滤,支持模糊查询。</li>
|
|
21876
22286
|
:rtype: list of AdvancedFilter
|
|
21877
22287
|
"""
|
|
21878
22288
|
return self._Filters
|
|
@@ -21887,6 +22297,8 @@ class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
|
21887
22297
|
self._FunctionId = params.get("FunctionId")
|
|
21888
22298
|
self._Offset = params.get("Offset")
|
|
21889
22299
|
self._Limit = params.get("Limit")
|
|
22300
|
+
self._SortBy = params.get("SortBy")
|
|
22301
|
+
self._SortOrder = params.get("SortOrder")
|
|
21890
22302
|
if params.get("Filters") is not None:
|
|
21891
22303
|
self._Filters = []
|
|
21892
22304
|
for item in params.get("Filters"):
|
|
@@ -21903,27 +22315,27 @@ class DescribeFunctionComponentBindingsRequest(AbstractModel):
|
|
|
21903
22315
|
|
|
21904
22316
|
|
|
21905
22317
|
|
|
21906
|
-
class
|
|
21907
|
-
r"""
|
|
22318
|
+
class DescribeFunctionReplicasResponse(AbstractModel):
|
|
22319
|
+
r"""DescribeFunctionReplicas返回参数结构体
|
|
21908
22320
|
|
|
21909
22321
|
"""
|
|
21910
22322
|
|
|
21911
22323
|
def __init__(self):
|
|
21912
22324
|
r"""
|
|
21913
|
-
:param _TotalCount:
|
|
22325
|
+
:param _TotalCount: 边缘函数副本总数。
|
|
21914
22326
|
:type TotalCount: int
|
|
21915
|
-
:param
|
|
21916
|
-
:type
|
|
22327
|
+
:param _FunctionReplicas: 边缘函数副本列表。
|
|
22328
|
+
:type FunctionReplicas: list of FunctionReplica
|
|
21917
22329
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21918
22330
|
:type RequestId: str
|
|
21919
22331
|
"""
|
|
21920
22332
|
self._TotalCount = None
|
|
21921
|
-
self.
|
|
22333
|
+
self._FunctionReplicas = None
|
|
21922
22334
|
self._RequestId = None
|
|
21923
22335
|
|
|
21924
22336
|
@property
|
|
21925
22337
|
def TotalCount(self):
|
|
21926
|
-
r"""
|
|
22338
|
+
r"""边缘函数副本总数。
|
|
21927
22339
|
:rtype: int
|
|
21928
22340
|
"""
|
|
21929
22341
|
return self._TotalCount
|
|
@@ -21933,15 +22345,15 @@ class DescribeFunctionComponentBindingsResponse(AbstractModel):
|
|
|
21933
22345
|
self._TotalCount = TotalCount
|
|
21934
22346
|
|
|
21935
22347
|
@property
|
|
21936
|
-
def
|
|
21937
|
-
r"""
|
|
21938
|
-
:rtype: list of
|
|
22348
|
+
def FunctionReplicas(self):
|
|
22349
|
+
r"""边缘函数副本列表。
|
|
22350
|
+
:rtype: list of FunctionReplica
|
|
21939
22351
|
"""
|
|
21940
|
-
return self.
|
|
22352
|
+
return self._FunctionReplicas
|
|
21941
22353
|
|
|
21942
|
-
@
|
|
21943
|
-
def
|
|
21944
|
-
self.
|
|
22354
|
+
@FunctionReplicas.setter
|
|
22355
|
+
def FunctionReplicas(self, FunctionReplicas):
|
|
22356
|
+
self._FunctionReplicas = FunctionReplicas
|
|
21945
22357
|
|
|
21946
22358
|
@property
|
|
21947
22359
|
def RequestId(self):
|
|
@@ -21957,12 +22369,12 @@ class DescribeFunctionComponentBindingsResponse(AbstractModel):
|
|
|
21957
22369
|
|
|
21958
22370
|
def _deserialize(self, params):
|
|
21959
22371
|
self._TotalCount = params.get("TotalCount")
|
|
21960
|
-
if params.get("
|
|
21961
|
-
self.
|
|
21962
|
-
for item in params.get("
|
|
21963
|
-
obj =
|
|
22372
|
+
if params.get("FunctionReplicas") is not None:
|
|
22373
|
+
self._FunctionReplicas = []
|
|
22374
|
+
for item in params.get("FunctionReplicas"):
|
|
22375
|
+
obj = FunctionReplica()
|
|
21964
22376
|
obj._deserialize(item)
|
|
21965
|
-
self.
|
|
22377
|
+
self._FunctionReplicas.append(obj)
|
|
21966
22378
|
self._RequestId = params.get("RequestId")
|
|
21967
22379
|
|
|
21968
22380
|
|
|
@@ -34060,6 +34472,117 @@ class FunctionRegionSelection(AbstractModel):
|
|
|
34060
34472
|
|
|
34061
34473
|
|
|
34062
34474
|
|
|
34475
|
+
class FunctionReplica(AbstractModel):
|
|
34476
|
+
r"""边缘函数副本。
|
|
34477
|
+
|
|
34478
|
+
"""
|
|
34479
|
+
|
|
34480
|
+
def __init__(self):
|
|
34481
|
+
r"""
|
|
34482
|
+
:param _FunctionId: 函数 ID。
|
|
34483
|
+
:type FunctionId: str
|
|
34484
|
+
:param _ReplicaName: 边缘函数副本名称。
|
|
34485
|
+
:type ReplicaName: str
|
|
34486
|
+
:param _Content: 边缘函数副本内容。格式为 JavaScript 代码。
|
|
34487
|
+
:type Content: str
|
|
34488
|
+
:param _Remark: 边缘函数副本描述。
|
|
34489
|
+
:type Remark: str
|
|
34490
|
+
:param _CreatedOn: 边缘函数副本创建时间。
|
|
34491
|
+
:type CreatedOn: str
|
|
34492
|
+
:param _ModifiedOn: 边缘函数副本更新时间。
|
|
34493
|
+
:type ModifiedOn: str
|
|
34494
|
+
"""
|
|
34495
|
+
self._FunctionId = None
|
|
34496
|
+
self._ReplicaName = None
|
|
34497
|
+
self._Content = None
|
|
34498
|
+
self._Remark = None
|
|
34499
|
+
self._CreatedOn = None
|
|
34500
|
+
self._ModifiedOn = None
|
|
34501
|
+
|
|
34502
|
+
@property
|
|
34503
|
+
def FunctionId(self):
|
|
34504
|
+
r"""函数 ID。
|
|
34505
|
+
:rtype: str
|
|
34506
|
+
"""
|
|
34507
|
+
return self._FunctionId
|
|
34508
|
+
|
|
34509
|
+
@FunctionId.setter
|
|
34510
|
+
def FunctionId(self, FunctionId):
|
|
34511
|
+
self._FunctionId = FunctionId
|
|
34512
|
+
|
|
34513
|
+
@property
|
|
34514
|
+
def ReplicaName(self):
|
|
34515
|
+
r"""边缘函数副本名称。
|
|
34516
|
+
:rtype: str
|
|
34517
|
+
"""
|
|
34518
|
+
return self._ReplicaName
|
|
34519
|
+
|
|
34520
|
+
@ReplicaName.setter
|
|
34521
|
+
def ReplicaName(self, ReplicaName):
|
|
34522
|
+
self._ReplicaName = ReplicaName
|
|
34523
|
+
|
|
34524
|
+
@property
|
|
34525
|
+
def Content(self):
|
|
34526
|
+
r"""边缘函数副本内容。格式为 JavaScript 代码。
|
|
34527
|
+
:rtype: str
|
|
34528
|
+
"""
|
|
34529
|
+
return self._Content
|
|
34530
|
+
|
|
34531
|
+
@Content.setter
|
|
34532
|
+
def Content(self, Content):
|
|
34533
|
+
self._Content = Content
|
|
34534
|
+
|
|
34535
|
+
@property
|
|
34536
|
+
def Remark(self):
|
|
34537
|
+
r"""边缘函数副本描述。
|
|
34538
|
+
:rtype: str
|
|
34539
|
+
"""
|
|
34540
|
+
return self._Remark
|
|
34541
|
+
|
|
34542
|
+
@Remark.setter
|
|
34543
|
+
def Remark(self, Remark):
|
|
34544
|
+
self._Remark = Remark
|
|
34545
|
+
|
|
34546
|
+
@property
|
|
34547
|
+
def CreatedOn(self):
|
|
34548
|
+
r"""边缘函数副本创建时间。
|
|
34549
|
+
:rtype: str
|
|
34550
|
+
"""
|
|
34551
|
+
return self._CreatedOn
|
|
34552
|
+
|
|
34553
|
+
@CreatedOn.setter
|
|
34554
|
+
def CreatedOn(self, CreatedOn):
|
|
34555
|
+
self._CreatedOn = CreatedOn
|
|
34556
|
+
|
|
34557
|
+
@property
|
|
34558
|
+
def ModifiedOn(self):
|
|
34559
|
+
r"""边缘函数副本更新时间。
|
|
34560
|
+
:rtype: str
|
|
34561
|
+
"""
|
|
34562
|
+
return self._ModifiedOn
|
|
34563
|
+
|
|
34564
|
+
@ModifiedOn.setter
|
|
34565
|
+
def ModifiedOn(self, ModifiedOn):
|
|
34566
|
+
self._ModifiedOn = ModifiedOn
|
|
34567
|
+
|
|
34568
|
+
|
|
34569
|
+
def _deserialize(self, params):
|
|
34570
|
+
self._FunctionId = params.get("FunctionId")
|
|
34571
|
+
self._ReplicaName = params.get("ReplicaName")
|
|
34572
|
+
self._Content = params.get("Content")
|
|
34573
|
+
self._Remark = params.get("Remark")
|
|
34574
|
+
self._CreatedOn = params.get("CreatedOn")
|
|
34575
|
+
self._ModifiedOn = params.get("ModifiedOn")
|
|
34576
|
+
memeber_set = set(params.keys())
|
|
34577
|
+
for name, value in vars(self).items():
|
|
34578
|
+
property_name = name[1:]
|
|
34579
|
+
if property_name in memeber_set:
|
|
34580
|
+
memeber_set.remove(property_name)
|
|
34581
|
+
if len(memeber_set) > 0:
|
|
34582
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34583
|
+
|
|
34584
|
+
|
|
34585
|
+
|
|
34063
34586
|
class FunctionRule(AbstractModel):
|
|
34064
34587
|
r"""边缘函数触发规则。
|
|
34065
34588
|
|
|
@@ -41570,6 +42093,130 @@ class ModifyFunctionComponentBindingsResponse(AbstractModel):
|
|
|
41570
42093
|
self._RequestId = params.get("RequestId")
|
|
41571
42094
|
|
|
41572
42095
|
|
|
42096
|
+
class ModifyFunctionReplicaRequest(AbstractModel):
|
|
42097
|
+
r"""ModifyFunctionReplica请求参数结构体
|
|
42098
|
+
|
|
42099
|
+
"""
|
|
42100
|
+
|
|
42101
|
+
def __init__(self):
|
|
42102
|
+
r"""
|
|
42103
|
+
:param _ZoneId: 站点 ID。
|
|
42104
|
+
:type ZoneId: str
|
|
42105
|
+
:param _FunctionId: 函数 ID。
|
|
42106
|
+
:type FunctionId: str
|
|
42107
|
+
:param _ReplicaName: 需要修改的边缘函数副本名称。
|
|
42108
|
+
:type ReplicaName: str
|
|
42109
|
+
:param _Content: 边缘函数副本内容,当前仅支持 JavaScript 代码,最大支持 5MB。
|
|
42110
|
+
:type Content: str
|
|
42111
|
+
:param _Remark: 边缘函数副本描述。最大支持 50 个字符。
|
|
42112
|
+
:type Remark: str
|
|
42113
|
+
"""
|
|
42114
|
+
self._ZoneId = None
|
|
42115
|
+
self._FunctionId = None
|
|
42116
|
+
self._ReplicaName = None
|
|
42117
|
+
self._Content = None
|
|
42118
|
+
self._Remark = None
|
|
42119
|
+
|
|
42120
|
+
@property
|
|
42121
|
+
def ZoneId(self):
|
|
42122
|
+
r"""站点 ID。
|
|
42123
|
+
:rtype: str
|
|
42124
|
+
"""
|
|
42125
|
+
return self._ZoneId
|
|
42126
|
+
|
|
42127
|
+
@ZoneId.setter
|
|
42128
|
+
def ZoneId(self, ZoneId):
|
|
42129
|
+
self._ZoneId = ZoneId
|
|
42130
|
+
|
|
42131
|
+
@property
|
|
42132
|
+
def FunctionId(self):
|
|
42133
|
+
r"""函数 ID。
|
|
42134
|
+
:rtype: str
|
|
42135
|
+
"""
|
|
42136
|
+
return self._FunctionId
|
|
42137
|
+
|
|
42138
|
+
@FunctionId.setter
|
|
42139
|
+
def FunctionId(self, FunctionId):
|
|
42140
|
+
self._FunctionId = FunctionId
|
|
42141
|
+
|
|
42142
|
+
@property
|
|
42143
|
+
def ReplicaName(self):
|
|
42144
|
+
r"""需要修改的边缘函数副本名称。
|
|
42145
|
+
:rtype: str
|
|
42146
|
+
"""
|
|
42147
|
+
return self._ReplicaName
|
|
42148
|
+
|
|
42149
|
+
@ReplicaName.setter
|
|
42150
|
+
def ReplicaName(self, ReplicaName):
|
|
42151
|
+
self._ReplicaName = ReplicaName
|
|
42152
|
+
|
|
42153
|
+
@property
|
|
42154
|
+
def Content(self):
|
|
42155
|
+
r"""边缘函数副本内容,当前仅支持 JavaScript 代码,最大支持 5MB。
|
|
42156
|
+
:rtype: str
|
|
42157
|
+
"""
|
|
42158
|
+
return self._Content
|
|
42159
|
+
|
|
42160
|
+
@Content.setter
|
|
42161
|
+
def Content(self, Content):
|
|
42162
|
+
self._Content = Content
|
|
42163
|
+
|
|
42164
|
+
@property
|
|
42165
|
+
def Remark(self):
|
|
42166
|
+
r"""边缘函数副本描述。最大支持 50 个字符。
|
|
42167
|
+
:rtype: str
|
|
42168
|
+
"""
|
|
42169
|
+
return self._Remark
|
|
42170
|
+
|
|
42171
|
+
@Remark.setter
|
|
42172
|
+
def Remark(self, Remark):
|
|
42173
|
+
self._Remark = Remark
|
|
42174
|
+
|
|
42175
|
+
|
|
42176
|
+
def _deserialize(self, params):
|
|
42177
|
+
self._ZoneId = params.get("ZoneId")
|
|
42178
|
+
self._FunctionId = params.get("FunctionId")
|
|
42179
|
+
self._ReplicaName = params.get("ReplicaName")
|
|
42180
|
+
self._Content = params.get("Content")
|
|
42181
|
+
self._Remark = params.get("Remark")
|
|
42182
|
+
memeber_set = set(params.keys())
|
|
42183
|
+
for name, value in vars(self).items():
|
|
42184
|
+
property_name = name[1:]
|
|
42185
|
+
if property_name in memeber_set:
|
|
42186
|
+
memeber_set.remove(property_name)
|
|
42187
|
+
if len(memeber_set) > 0:
|
|
42188
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
42189
|
+
|
|
42190
|
+
|
|
42191
|
+
|
|
42192
|
+
class ModifyFunctionReplicaResponse(AbstractModel):
|
|
42193
|
+
r"""ModifyFunctionReplica返回参数结构体
|
|
42194
|
+
|
|
42195
|
+
"""
|
|
42196
|
+
|
|
42197
|
+
def __init__(self):
|
|
42198
|
+
r"""
|
|
42199
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
42200
|
+
:type RequestId: str
|
|
42201
|
+
"""
|
|
42202
|
+
self._RequestId = None
|
|
42203
|
+
|
|
42204
|
+
@property
|
|
42205
|
+
def RequestId(self):
|
|
42206
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
42207
|
+
:rtype: str
|
|
42208
|
+
"""
|
|
42209
|
+
return self._RequestId
|
|
42210
|
+
|
|
42211
|
+
@RequestId.setter
|
|
42212
|
+
def RequestId(self, RequestId):
|
|
42213
|
+
self._RequestId = RequestId
|
|
42214
|
+
|
|
42215
|
+
|
|
42216
|
+
def _deserialize(self, params):
|
|
42217
|
+
self._RequestId = params.get("RequestId")
|
|
42218
|
+
|
|
42219
|
+
|
|
41573
42220
|
class ModifyFunctionRequest(AbstractModel):
|
|
41574
42221
|
r"""ModifyFunction请求参数结构体
|
|
41575
42222
|
|
|
@@ -479,6 +479,29 @@ class TeoClient(AbstractClient):
|
|
|
479
479
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
480
480
|
|
|
481
481
|
|
|
482
|
+
def CreateFunctionReplica(self, request):
|
|
483
|
+
r"""本接口用于创建指定边缘函数的副本。创建副本后,当客户端请求匹配已配置的触发规则或默认域名时,您可以通过在请求头中添加 EO-Function-Replica-Name:[副本名称] 来访问特定的函数副本。每个函数默认支持创建两个副本。
|
|
484
|
+
|
|
485
|
+
:param request: Request instance for CreateFunctionReplica.
|
|
486
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.CreateFunctionReplicaRequest`
|
|
487
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.CreateFunctionReplicaResponse`
|
|
488
|
+
|
|
489
|
+
"""
|
|
490
|
+
try:
|
|
491
|
+
params = request._serialize()
|
|
492
|
+
headers = request.headers
|
|
493
|
+
body = self.call("CreateFunctionReplica", params, headers=headers)
|
|
494
|
+
response = json.loads(body)
|
|
495
|
+
model = models.CreateFunctionReplicaResponse()
|
|
496
|
+
model._deserialize(response["Response"])
|
|
497
|
+
return model
|
|
498
|
+
except Exception as e:
|
|
499
|
+
if isinstance(e, TencentCloudSDKException):
|
|
500
|
+
raise
|
|
501
|
+
else:
|
|
502
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
503
|
+
|
|
504
|
+
|
|
482
505
|
def CreateFunctionRule(self, request):
|
|
483
506
|
r"""创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。
|
|
484
507
|
|
|
@@ -1255,6 +1278,29 @@ class TeoClient(AbstractClient):
|
|
|
1255
1278
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1256
1279
|
|
|
1257
1280
|
|
|
1281
|
+
def DeleteFunctionReplica(self, request):
|
|
1282
|
+
r"""本接口用于删除指定的边缘函数副本。
|
|
1283
|
+
|
|
1284
|
+
:param request: Request instance for DeleteFunctionReplica.
|
|
1285
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DeleteFunctionReplicaRequest`
|
|
1286
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DeleteFunctionReplicaResponse`
|
|
1287
|
+
|
|
1288
|
+
"""
|
|
1289
|
+
try:
|
|
1290
|
+
params = request._serialize()
|
|
1291
|
+
headers = request.headers
|
|
1292
|
+
body = self.call("DeleteFunctionReplica", params, headers=headers)
|
|
1293
|
+
response = json.loads(body)
|
|
1294
|
+
model = models.DeleteFunctionReplicaResponse()
|
|
1295
|
+
model._deserialize(response["Response"])
|
|
1296
|
+
return model
|
|
1297
|
+
except Exception as e:
|
|
1298
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1299
|
+
raise
|
|
1300
|
+
else:
|
|
1301
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1302
|
+
|
|
1303
|
+
|
|
1258
1304
|
def DeleteFunctionRules(self, request):
|
|
1259
1305
|
r"""删除边缘函数触发规则。
|
|
1260
1306
|
|
|
@@ -2177,6 +2223,29 @@ class TeoClient(AbstractClient):
|
|
|
2177
2223
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2178
2224
|
|
|
2179
2225
|
|
|
2226
|
+
def DescribeFunctionReplicas(self, request):
|
|
2227
|
+
r"""本接口用于查询边缘函数的副本列表。
|
|
2228
|
+
|
|
2229
|
+
:param request: Request instance for DescribeFunctionReplicas.
|
|
2230
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeFunctionReplicasRequest`
|
|
2231
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DescribeFunctionReplicasResponse`
|
|
2232
|
+
|
|
2233
|
+
"""
|
|
2234
|
+
try:
|
|
2235
|
+
params = request._serialize()
|
|
2236
|
+
headers = request.headers
|
|
2237
|
+
body = self.call("DescribeFunctionReplicas", params, headers=headers)
|
|
2238
|
+
response = json.loads(body)
|
|
2239
|
+
model = models.DescribeFunctionReplicasResponse()
|
|
2240
|
+
model._deserialize(response["Response"])
|
|
2241
|
+
return model
|
|
2242
|
+
except Exception as e:
|
|
2243
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2244
|
+
raise
|
|
2245
|
+
else:
|
|
2246
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2247
|
+
|
|
2248
|
+
|
|
2180
2249
|
def DescribeFunctionRules(self, request):
|
|
2181
2250
|
r"""查询边缘函数触发规则列表,支持按照规则 ID、函数 ID、规则描述等条件进行过滤。
|
|
2182
2251
|
|
|
@@ -4071,6 +4140,29 @@ class TeoClient(AbstractClient):
|
|
|
4071
4140
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4072
4141
|
|
|
4073
4142
|
|
|
4143
|
+
def ModifyFunctionReplica(self, request):
|
|
4144
|
+
r"""本接口用于修改指定边缘函数副本的内容和描述。
|
|
4145
|
+
|
|
4146
|
+
:param request: Request instance for ModifyFunctionReplica.
|
|
4147
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyFunctionReplicaRequest`
|
|
4148
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ModifyFunctionReplicaResponse`
|
|
4149
|
+
|
|
4150
|
+
"""
|
|
4151
|
+
try:
|
|
4152
|
+
params = request._serialize()
|
|
4153
|
+
headers = request.headers
|
|
4154
|
+
body = self.call("ModifyFunctionReplica", params, headers=headers)
|
|
4155
|
+
response = json.loads(body)
|
|
4156
|
+
model = models.ModifyFunctionReplicaResponse()
|
|
4157
|
+
model._deserialize(response["Response"])
|
|
4158
|
+
return model
|
|
4159
|
+
except Exception as e:
|
|
4160
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4161
|
+
raise
|
|
4162
|
+
else:
|
|
4163
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4164
|
+
|
|
4165
|
+
|
|
4074
4166
|
def ModifyFunctionRule(self, request):
|
|
4075
4167
|
r"""修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
4076
4168
|
|
|
@@ -383,6 +383,24 @@ class TeoClient(AbstractClient):
|
|
|
383
383
|
|
|
384
384
|
return await self.call_and_deserialize(**kwargs)
|
|
385
385
|
|
|
386
|
+
async def CreateFunctionReplica(
|
|
387
|
+
self,
|
|
388
|
+
request: models.CreateFunctionReplicaRequest,
|
|
389
|
+
opts: Dict = None,
|
|
390
|
+
) -> models.CreateFunctionReplicaResponse:
|
|
391
|
+
"""
|
|
392
|
+
本接口用于创建指定边缘函数的副本。创建副本后,当客户端请求匹配已配置的触发规则或默认域名时,您可以通过在请求头中添加 EO-Function-Replica-Name:[副本名称] 来访问特定的函数副本。每个函数默认支持创建两个副本。
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
kwargs = {}
|
|
396
|
+
kwargs["action"] = "CreateFunctionReplica"
|
|
397
|
+
kwargs["params"] = request._serialize()
|
|
398
|
+
kwargs["resp_cls"] = models.CreateFunctionReplicaResponse
|
|
399
|
+
kwargs["headers"] = request.headers
|
|
400
|
+
kwargs["opts"] = opts or {}
|
|
401
|
+
|
|
402
|
+
return await self.call_and_deserialize(**kwargs)
|
|
403
|
+
|
|
386
404
|
async def CreateFunctionRule(
|
|
387
405
|
self,
|
|
388
406
|
request: models.CreateFunctionRuleRequest,
|
|
@@ -994,6 +1012,24 @@ class TeoClient(AbstractClient):
|
|
|
994
1012
|
|
|
995
1013
|
return await self.call_and_deserialize(**kwargs)
|
|
996
1014
|
|
|
1015
|
+
async def DeleteFunctionReplica(
|
|
1016
|
+
self,
|
|
1017
|
+
request: models.DeleteFunctionReplicaRequest,
|
|
1018
|
+
opts: Dict = None,
|
|
1019
|
+
) -> models.DeleteFunctionReplicaResponse:
|
|
1020
|
+
"""
|
|
1021
|
+
本接口用于删除指定的边缘函数副本。
|
|
1022
|
+
"""
|
|
1023
|
+
|
|
1024
|
+
kwargs = {}
|
|
1025
|
+
kwargs["action"] = "DeleteFunctionReplica"
|
|
1026
|
+
kwargs["params"] = request._serialize()
|
|
1027
|
+
kwargs["resp_cls"] = models.DeleteFunctionReplicaResponse
|
|
1028
|
+
kwargs["headers"] = request.headers
|
|
1029
|
+
kwargs["opts"] = opts or {}
|
|
1030
|
+
|
|
1031
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1032
|
+
|
|
997
1033
|
async def DeleteFunctionRules(
|
|
998
1034
|
self,
|
|
999
1035
|
request: models.DeleteFunctionRulesRequest,
|
|
@@ -1716,6 +1752,24 @@ class TeoClient(AbstractClient):
|
|
|
1716
1752
|
|
|
1717
1753
|
return await self.call_and_deserialize(**kwargs)
|
|
1718
1754
|
|
|
1755
|
+
async def DescribeFunctionReplicas(
|
|
1756
|
+
self,
|
|
1757
|
+
request: models.DescribeFunctionReplicasRequest,
|
|
1758
|
+
opts: Dict = None,
|
|
1759
|
+
) -> models.DescribeFunctionReplicasResponse:
|
|
1760
|
+
"""
|
|
1761
|
+
本接口用于查询边缘函数的副本列表。
|
|
1762
|
+
"""
|
|
1763
|
+
|
|
1764
|
+
kwargs = {}
|
|
1765
|
+
kwargs["action"] = "DescribeFunctionReplicas"
|
|
1766
|
+
kwargs["params"] = request._serialize()
|
|
1767
|
+
kwargs["resp_cls"] = models.DescribeFunctionReplicasResponse
|
|
1768
|
+
kwargs["headers"] = request.headers
|
|
1769
|
+
kwargs["opts"] = opts or {}
|
|
1770
|
+
|
|
1771
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1772
|
+
|
|
1719
1773
|
async def DescribeFunctionRules(
|
|
1720
1774
|
self,
|
|
1721
1775
|
request: models.DescribeFunctionRulesRequest,
|
|
@@ -3205,6 +3259,24 @@ class TeoClient(AbstractClient):
|
|
|
3205
3259
|
|
|
3206
3260
|
return await self.call_and_deserialize(**kwargs)
|
|
3207
3261
|
|
|
3262
|
+
async def ModifyFunctionReplica(
|
|
3263
|
+
self,
|
|
3264
|
+
request: models.ModifyFunctionReplicaRequest,
|
|
3265
|
+
opts: Dict = None,
|
|
3266
|
+
) -> models.ModifyFunctionReplicaResponse:
|
|
3267
|
+
"""
|
|
3268
|
+
本接口用于修改指定边缘函数副本的内容和描述。
|
|
3269
|
+
"""
|
|
3270
|
+
|
|
3271
|
+
kwargs = {}
|
|
3272
|
+
kwargs["action"] = "ModifyFunctionReplica"
|
|
3273
|
+
kwargs["params"] = request._serialize()
|
|
3274
|
+
kwargs["resp_cls"] = models.ModifyFunctionReplicaResponse
|
|
3275
|
+
kwargs["headers"] = request.headers
|
|
3276
|
+
kwargs["opts"] = opts or {}
|
|
3277
|
+
|
|
3278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
3279
|
+
|
|
3208
3280
|
async def ModifyFunctionRule(
|
|
3209
3281
|
self,
|
|
3210
3282
|
request: models.ModifyFunctionRuleRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.107
|
|
4
4
|
Summary: Tencent Cloud Teo 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.107
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.107
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.105
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|