tencentcloud-sdk-python-scf 3.0.864__tar.gz → 3.0.865__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-scf might be problematic. Click here for more details.
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/scf/v20180416/errorcodes.py +9 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/scf/v20180416/models.py +65 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/scf/v20180416/scf_client.py +23 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud_sdk_python_scf.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/README.rst +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/setup.cfg +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/setup.py +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/scf/__init__.py +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud/scf/v20180416/__init__.py +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud_sdk_python_scf.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud_sdk_python_scf.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-scf-3.0.864 → tencentcloud-sdk-python-scf-3.0.865}/tencentcloud_sdk_python_scf.egg-info/top_level.txt +0 -0
|
@@ -170,6 +170,12 @@ FAILEDOPERATION_UPDATEFUNCTIONCODE = 'FailedOperation.UpdateFunctionCode'
|
|
|
170
170
|
# UpdateFunctionConfiguration操作失败。
|
|
171
171
|
FAILEDOPERATION_UPDATEFUNCTIONCONFIGURATION = 'FailedOperation.UpdateFunctionConfiguration'
|
|
172
172
|
|
|
173
|
+
# 更新状态操作失败。
|
|
174
|
+
FAILEDOPERATION_UPDATESTATUS = 'FailedOperation.UpdateStatus'
|
|
175
|
+
|
|
176
|
+
# 与原状态一致,无需更改。
|
|
177
|
+
FAILEDOPERATION_UPDATETRIGGERSTATUS = 'FailedOperation.UpdateTriggerStatus'
|
|
178
|
+
|
|
173
179
|
# 内部错误。
|
|
174
180
|
INTERNALERROR = 'InternalError'
|
|
175
181
|
|
|
@@ -833,6 +839,9 @@ UNAUTHORIZEDOPERATION_TEMPCOSAPPID = 'UnauthorizedOperation.TempCosAppid'
|
|
|
833
839
|
# 无法进行此操作。
|
|
834
840
|
UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = 'UnauthorizedOperation.UpdateFunctionCode'
|
|
835
841
|
|
|
842
|
+
# 没有权限。
|
|
843
|
+
UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = 'UnauthorizedOperation.UpdateTriggerStatus'
|
|
844
|
+
|
|
836
845
|
# 操作不支持。
|
|
837
846
|
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
838
847
|
|
|
@@ -5007,6 +5007,71 @@ class UpdateNamespaceResponse(AbstractModel):
|
|
|
5007
5007
|
self.RequestId = params.get("RequestId")
|
|
5008
5008
|
|
|
5009
5009
|
|
|
5010
|
+
class UpdateTriggerStatusRequest(AbstractModel):
|
|
5011
|
+
"""UpdateTriggerStatus请求参数结构体
|
|
5012
|
+
|
|
5013
|
+
"""
|
|
5014
|
+
|
|
5015
|
+
def __init__(self):
|
|
5016
|
+
r"""
|
|
5017
|
+
:param Enable: 触发器的初始是能状态OPEN表示开启 CLOSE表示关闭
|
|
5018
|
+
:type Enable: str
|
|
5019
|
+
:param FunctionName: 函数名称
|
|
5020
|
+
:type FunctionName: str
|
|
5021
|
+
:param TriggerName: 触发器名称
|
|
5022
|
+
:type TriggerName: str
|
|
5023
|
+
:param Type: 触发器类型
|
|
5024
|
+
:type Type: str
|
|
5025
|
+
:param Qualifier: 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。
|
|
5026
|
+
:type Qualifier: str
|
|
5027
|
+
:param Namespace: 函数的命名空间
|
|
5028
|
+
:type Namespace: str
|
|
5029
|
+
:param TriggerDesc: 如果更新的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果更新的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
|
|
5030
|
+
:type TriggerDesc: str
|
|
5031
|
+
"""
|
|
5032
|
+
self.Enable = None
|
|
5033
|
+
self.FunctionName = None
|
|
5034
|
+
self.TriggerName = None
|
|
5035
|
+
self.Type = None
|
|
5036
|
+
self.Qualifier = None
|
|
5037
|
+
self.Namespace = None
|
|
5038
|
+
self.TriggerDesc = None
|
|
5039
|
+
|
|
5040
|
+
|
|
5041
|
+
def _deserialize(self, params):
|
|
5042
|
+
self.Enable = params.get("Enable")
|
|
5043
|
+
self.FunctionName = params.get("FunctionName")
|
|
5044
|
+
self.TriggerName = params.get("TriggerName")
|
|
5045
|
+
self.Type = params.get("Type")
|
|
5046
|
+
self.Qualifier = params.get("Qualifier")
|
|
5047
|
+
self.Namespace = params.get("Namespace")
|
|
5048
|
+
self.TriggerDesc = params.get("TriggerDesc")
|
|
5049
|
+
memeber_set = set(params.keys())
|
|
5050
|
+
for name, value in vars(self).items():
|
|
5051
|
+
if name in memeber_set:
|
|
5052
|
+
memeber_set.remove(name)
|
|
5053
|
+
if len(memeber_set) > 0:
|
|
5054
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5055
|
+
|
|
5056
|
+
|
|
5057
|
+
|
|
5058
|
+
class UpdateTriggerStatusResponse(AbstractModel):
|
|
5059
|
+
"""UpdateTriggerStatus返回参数结构体
|
|
5060
|
+
|
|
5061
|
+
"""
|
|
5062
|
+
|
|
5063
|
+
def __init__(self):
|
|
5064
|
+
r"""
|
|
5065
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5066
|
+
:type RequestId: str
|
|
5067
|
+
"""
|
|
5068
|
+
self.RequestId = None
|
|
5069
|
+
|
|
5070
|
+
|
|
5071
|
+
def _deserialize(self, params):
|
|
5072
|
+
self.RequestId = params.get("RequestId")
|
|
5073
|
+
|
|
5074
|
+
|
|
5010
5075
|
class UsageInfo(AbstractModel):
|
|
5011
5076
|
"""已使用的信息
|
|
5012
5077
|
|
|
@@ -1038,6 +1038,29 @@ class ScfClient(AbstractClient):
|
|
|
1038
1038
|
model = models.UpdateNamespaceResponse()
|
|
1039
1039
|
model._deserialize(response["Response"])
|
|
1040
1040
|
return model
|
|
1041
|
+
except Exception as e:
|
|
1042
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1043
|
+
raise
|
|
1044
|
+
else:
|
|
1045
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
def UpdateTriggerStatus(self, request):
|
|
1049
|
+
"""更新触发器状态的值
|
|
1050
|
+
|
|
1051
|
+
:param request: Request instance for UpdateTriggerStatus.
|
|
1052
|
+
:type request: :class:`tencentcloud.scf.v20180416.models.UpdateTriggerStatusRequest`
|
|
1053
|
+
:rtype: :class:`tencentcloud.scf.v20180416.models.UpdateTriggerStatusResponse`
|
|
1054
|
+
|
|
1055
|
+
"""
|
|
1056
|
+
try:
|
|
1057
|
+
params = request._serialize()
|
|
1058
|
+
headers = request.headers
|
|
1059
|
+
body = self.call("UpdateTriggerStatus", params, headers=headers)
|
|
1060
|
+
response = json.loads(body)
|
|
1061
|
+
model = models.UpdateTriggerStatusResponse()
|
|
1062
|
+
model._deserialize(response["Response"])
|
|
1063
|
+
return model
|
|
1041
1064
|
except Exception as e:
|
|
1042
1065
|
if isinstance(e, TencentCloudSDKException):
|
|
1043
1066
|
raise
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|