tencentcloud-sdk-python-scf 3.0.863__py2.py3-none-any.whl → 3.0.865__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.863'
17
+ __version__ = '3.0.865'
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-scf
3
- Version: 3.0.863
3
+ Version: 3.0.865
4
4
  Summary: Tencent Cloud Scf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=oz8g4JrHiufl4ZcIapqw8WfbwlZXZbJe4yv_UxVef54,630
2
+ tencentcloud/scf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/scf/v20180416/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/scf/v20180416/errorcodes.py,sha256=8i5nSF9fOmrLLiHdeYfXKeDrR5jcDRPpd-lrEq6YMZg,31630
5
+ tencentcloud/scf/v20180416/models.py,sha256=sfOpp8BKZMT9sna8XHeKREhb-tBunRjbm9UuGLQ_3lI,190551
6
+ tencentcloud/scf/v20180416/scf_client.py,sha256=WJfO1Q1WxjIorkrNzvhEX75qpZk8yoVI2Y93Bz6I9Xg,42711
7
+ tencentcloud_sdk_python_scf-3.0.865.dist-info/METADATA,sha256=slo7hTVXZFGUZZYvAR7SpiExQ93x52yOp0LDOac9-V0,1432
8
+ tencentcloud_sdk_python_scf-3.0.865.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_scf-3.0.865.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_scf-3.0.865.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=FwBXK8CeaOztrlgsIJyCRkdI_4vDu2Y4Eh0PCFxepq8,630
2
- tencentcloud/scf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/scf/v20180416/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/scf/v20180416/errorcodes.py,sha256=hghRAr-RVRw17MAjeXBZMLVSgdAy7rHHJKH1DsM7fjg,31314
5
- tencentcloud/scf/v20180416/models.py,sha256=NR2NhrvxgPthzhM7BCGSPq0yXJiimJOyJUf2ikz37_A,188088
6
- tencentcloud/scf/v20180416/scf_client.py,sha256=QMn4pt_tKvB0ShAc-POxEa6lc5sgT8_4rnvUG2mcYN0,41825
7
- tencentcloud_sdk_python_scf-3.0.863.dist-info/METADATA,sha256=PtL9rA6NBxLE8umkIKgnwShLs8d-FDSfJEpsuO4Q4bw,1432
8
- tencentcloud_sdk_python_scf-3.0.863.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_scf-3.0.863.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_scf-3.0.863.dist-info/RECORD,,