tencentcloud-sdk-python-scf 3.0.1242__tar.gz → 3.0.1261__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.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/setup.py +1 -1
  3. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/scf/v20180416/errorcodes.py +9 -12
  5. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/scf/v20180416/models.py +890 -9
  6. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/scf/v20180416/scf_client.py +115 -0
  7. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud_sdk_python_scf.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-scf-3.0.1261/tencentcloud_sdk_python_scf.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-scf-3.0.1242/tencentcloud_sdk_python_scf.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/README.rst +0 -0
  11. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/scf/__init__.py +0 -0
  13. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud/scf/v20180416/__init__.py +0 -0
  14. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud_sdk_python_scf.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud_sdk_python_scf.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-scf-3.0.1242 → tencentcloud-sdk-python-scf-3.0.1261}/tencentcloud_sdk_python_scf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-scf
3
- Version: 3.0.1242
3
+ Version: 3.0.1261
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
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-scf',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1242"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1261"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Scf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1242'
17
+ __version__ = '3.0.1261'
@@ -227,7 +227,7 @@ INTERNALERROR_SYSTEMERROR = 'InternalError.SystemError'
227
227
  # 日志参数有误。
228
228
  INVALIDPARAMETER_CLS = 'InvalidParameter.Cls'
229
229
 
230
- # FunctionName取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
230
+ # FunctionName取值与规范不符,请修正后再试。
231
231
  INVALIDPARAMETER_FUNCTIONNAME = 'InvalidParameter.FunctionName'
232
232
 
233
233
  # 创建函数传参异常。
@@ -248,7 +248,7 @@ INVALIDPARAMETER_ROUTINGCONFIG = 'InvalidParameter.RoutingConfig'
248
248
  # 参数取值错误。
249
249
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
250
250
 
251
- # Action取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW
251
+ # Action取值与规范不符,请修正后再试。可参考:https://cloud.tencent.com/document/product/583/17235
252
252
  INVALIDPARAMETERVALUE_ACTION = 'InvalidParameterValue.Action'
253
253
 
254
254
  # AdditionalVersionWeights参数传入错误。
@@ -335,7 +335,7 @@ INVALIDPARAMETERVALUE_COS = 'InvalidParameterValue.Cos'
335
335
  # CosBucketName不符合规范。
336
336
  INVALIDPARAMETERVALUE_COSBUCKETNAME = 'InvalidParameterValue.CosBucketName'
337
337
 
338
- # CosBucketRegion取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW
338
+ # CosBucketRegion取值与规范不符,请修正后再试。可参考:https://cloud.tencent.com/document/product/583/17244#Code
339
339
  INVALIDPARAMETERVALUE_COSBUCKETREGION = 'InvalidParameterValue.CosBucketRegion'
340
340
 
341
341
  # COS通知规则冲突。
@@ -350,7 +350,7 @@ INVALIDPARAMETERVALUE_CUSTOMARGUMENT = 'InvalidParameterValue.CustomArgument'
350
350
  # DateTime传入错误。
351
351
  INVALIDPARAMETERVALUE_DATETIME = 'InvalidParameterValue.DateTime'
352
352
 
353
- # DeadLetterConfig取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW
353
+ # DeadLetterConfig取值与规范不符,请修正后再试。可参考:https://cloud.tencent.com/document/product/583/17244#DeadLetterConfig
354
354
  INVALIDPARAMETERVALUE_DEADLETTERCONFIG = 'InvalidParameterValue.DeadLetterConfig'
355
355
 
356
356
  # 默认Namespace无法创建。
@@ -377,7 +377,7 @@ INVALIDPARAMETERVALUE_DYNAMICENABLED = 'InvalidParameterValue.DynamicEnabled'
377
377
  # EipConfig参数错误。
378
378
  INVALIDPARAMETERVALUE_EIPCONFIG = 'InvalidParameterValue.EipConfig'
379
379
 
380
- # Enable取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
380
+ # Enable取值与规范不符,请修正后再试。
381
381
  INVALIDPARAMETERVALUE_ENABLE = 'InvalidParameterValue.Enable'
382
382
 
383
383
  # Environment传入错误。
@@ -392,9 +392,6 @@ INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = 'InvalidParameterValue.Environm
392
392
  # Filters参数错误。
393
393
  INVALIDPARAMETERVALUE_FILTERS = 'InvalidParameterValue.Filters'
394
394
 
395
- # Function取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
396
- INVALIDPARAMETERVALUE_FUNCTION = 'InvalidParameterValue.Function'
397
-
398
395
  # 函数不存在。
399
396
  INVALIDPARAMETERVALUE_FUNCTIONNAME = 'InvalidParameterValue.FunctionName'
400
397
 
@@ -407,7 +404,7 @@ INVALIDPARAMETERVALUE_FUNCTIONTYPE = 'InvalidParameterValue.FunctionType'
407
404
  # GitBranch不符合规范。
408
405
  INVALIDPARAMETERVALUE_GITBRANCH = 'InvalidParameterValue.GitBranch'
409
406
 
410
- # GitCommitId取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
407
+ # GitCommitId取值与规范不符,请修正后再试。
411
408
  INVALIDPARAMETERVALUE_GITCOMMITID = 'InvalidParameterValue.GitCommitId'
412
409
 
413
410
  # GitDirectory不符合规范。
@@ -470,7 +467,7 @@ INVALIDPARAMETERVALUE_LOGFORMAT = 'InvalidParameterValue.LogFormat'
470
467
  # MaxConcurrency 参数传入错误。
471
468
  INVALIDPARAMETERVALUE_MAXCONCURRENCY = 'InvalidParameterValue.MaxConcurrency'
472
469
 
473
- # Memory取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
470
+ # Memory 取值与规范不符,函数运行时内存大小默认为128MB,可选范围64MB、128MB - 3072MB,以128MB为阶梯,请修正后重试。
474
471
  INVALIDPARAMETERVALUE_MEMORY = 'InvalidParameterValue.Memory'
475
472
 
476
473
  # MemorySize错误。
@@ -500,7 +497,7 @@ INVALIDPARAMETERVALUE_OFFSET = 'InvalidParameterValue.Offset'
500
497
  # Order传入错误。
501
498
  INVALIDPARAMETERVALUE_ORDER = 'InvalidParameterValue.Order'
502
499
 
503
- # OrderBy取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。
500
+ # OrderBy取值与规范不符,请修正后再试。可参考对应接口文档中的示例值:https://cloud.tencent.com/document/product/583/17235
504
501
  INVALIDPARAMETERVALUE_ORDERBY = 'InvalidParameterValue.OrderBy'
505
502
 
506
503
  # 入参不是标准的json。
@@ -536,7 +533,7 @@ INVALIDPARAMETERVALUE_REGISTRYID = 'InvalidParameterValue.RegistryId'
536
533
  # RetCode不合法。
537
534
  INVALIDPARAMETERVALUE_RETCODE = 'InvalidParameterValue.RetCode'
538
535
 
539
- # RoutingConfig取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW
536
+ # RoutingConfig取值与规范不符,请修正后再试。可参考:https://cloud.tencent.com/document/product/583/17244#RoutingConfig
540
537
  INVALIDPARAMETERVALUE_ROUTINGCONFIG = 'InvalidParameterValue.RoutingConfig'
541
538
 
542
539
  # Runtime传入错误。
@@ -362,6 +362,40 @@ class AsyncTriggerConfig(AbstractModel):
362
362
 
363
363
 
364
364
 
365
+ class CertConf(AbstractModel):
366
+ """证书配置
367
+
368
+ """
369
+
370
+ def __init__(self):
371
+ r"""
372
+ :param _CertificateId: ssl证书ID
373
+ 注意:此字段可能返回 null,表示取不到有效值。
374
+ :type CertificateId: str
375
+ """
376
+ self._CertificateId = None
377
+
378
+ @property
379
+ def CertificateId(self):
380
+ return self._CertificateId
381
+
382
+ @CertificateId.setter
383
+ def CertificateId(self, CertificateId):
384
+ self._CertificateId = CertificateId
385
+
386
+
387
+ def _deserialize(self, params):
388
+ self._CertificateId = params.get("CertificateId")
389
+ memeber_set = set(params.keys())
390
+ for name, value in vars(self).items():
391
+ property_name = name[1:]
392
+ if property_name in memeber_set:
393
+ memeber_set.remove(property_name)
394
+ if len(memeber_set) > 0:
395
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
396
+
397
+
398
+
365
399
  class CfsConfig(AbstractModel):
366
400
  """文件系统(cfs)配置描述
367
401
 
@@ -1005,6 +1039,121 @@ class CreateAliasResponse(AbstractModel):
1005
1039
  self._RequestId = params.get("RequestId")
1006
1040
 
1007
1041
 
1042
+ class CreateCustomDomainRequest(AbstractModel):
1043
+ """CreateCustomDomain请求参数结构体
1044
+
1045
+ """
1046
+
1047
+ def __init__(self):
1048
+ r"""
1049
+ :param _Domain: 域名,不支持泛域名
1050
+ :type Domain: str
1051
+ :param _Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
1052
+ :type Protocol: str
1053
+ :param _EndpointsConfig: 路由配置
1054
+ :type EndpointsConfig: list of EndpointsConf
1055
+ :param _CertConfig: 证书配置信息,HTTPS协议必穿
1056
+ :type CertConfig: :class:`tencentcloud.scf.v20180416.models.CertConf`
1057
+ :param _WafConfig: web 应用防火墙配置
1058
+ :type WafConfig: :class:`tencentcloud.scf.v20180416.models.WafConf`
1059
+ """
1060
+ self._Domain = None
1061
+ self._Protocol = None
1062
+ self._EndpointsConfig = None
1063
+ self._CertConfig = None
1064
+ self._WafConfig = None
1065
+
1066
+ @property
1067
+ def Domain(self):
1068
+ return self._Domain
1069
+
1070
+ @Domain.setter
1071
+ def Domain(self, Domain):
1072
+ self._Domain = Domain
1073
+
1074
+ @property
1075
+ def Protocol(self):
1076
+ return self._Protocol
1077
+
1078
+ @Protocol.setter
1079
+ def Protocol(self, Protocol):
1080
+ self._Protocol = Protocol
1081
+
1082
+ @property
1083
+ def EndpointsConfig(self):
1084
+ return self._EndpointsConfig
1085
+
1086
+ @EndpointsConfig.setter
1087
+ def EndpointsConfig(self, EndpointsConfig):
1088
+ self._EndpointsConfig = EndpointsConfig
1089
+
1090
+ @property
1091
+ def CertConfig(self):
1092
+ return self._CertConfig
1093
+
1094
+ @CertConfig.setter
1095
+ def CertConfig(self, CertConfig):
1096
+ self._CertConfig = CertConfig
1097
+
1098
+ @property
1099
+ def WafConfig(self):
1100
+ return self._WafConfig
1101
+
1102
+ @WafConfig.setter
1103
+ def WafConfig(self, WafConfig):
1104
+ self._WafConfig = WafConfig
1105
+
1106
+
1107
+ def _deserialize(self, params):
1108
+ self._Domain = params.get("Domain")
1109
+ self._Protocol = params.get("Protocol")
1110
+ if params.get("EndpointsConfig") is not None:
1111
+ self._EndpointsConfig = []
1112
+ for item in params.get("EndpointsConfig"):
1113
+ obj = EndpointsConf()
1114
+ obj._deserialize(item)
1115
+ self._EndpointsConfig.append(obj)
1116
+ if params.get("CertConfig") is not None:
1117
+ self._CertConfig = CertConf()
1118
+ self._CertConfig._deserialize(params.get("CertConfig"))
1119
+ if params.get("WafConfig") is not None:
1120
+ self._WafConfig = WafConf()
1121
+ self._WafConfig._deserialize(params.get("WafConfig"))
1122
+ memeber_set = set(params.keys())
1123
+ for name, value in vars(self).items():
1124
+ property_name = name[1:]
1125
+ if property_name in memeber_set:
1126
+ memeber_set.remove(property_name)
1127
+ if len(memeber_set) > 0:
1128
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1129
+
1130
+
1131
+
1132
+ class CreateCustomDomainResponse(AbstractModel):
1133
+ """CreateCustomDomain返回参数结构体
1134
+
1135
+ """
1136
+
1137
+ def __init__(self):
1138
+ r"""
1139
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1140
+ :type RequestId: str
1141
+ """
1142
+ self._RequestId = None
1143
+
1144
+ @property
1145
+ def RequestId(self):
1146
+ return self._RequestId
1147
+
1148
+ @RequestId.setter
1149
+ def RequestId(self, RequestId):
1150
+ self._RequestId = RequestId
1151
+
1152
+
1153
+ def _deserialize(self, params):
1154
+ self._RequestId = params.get("RequestId")
1155
+
1156
+
1008
1157
  class CreateFunctionRequest(AbstractModel):
1009
1158
  """CreateFunction请求参数结构体
1010
1159
 
@@ -1842,6 +1991,64 @@ class DeleteAliasResponse(AbstractModel):
1842
1991
  self._RequestId = params.get("RequestId")
1843
1992
 
1844
1993
 
1994
+ class DeleteCustomDomainRequest(AbstractModel):
1995
+ """DeleteCustomDomain请求参数结构体
1996
+
1997
+ """
1998
+
1999
+ def __init__(self):
2000
+ r"""
2001
+ :param _Domain: 域名
2002
+ :type Domain: str
2003
+ """
2004
+ self._Domain = None
2005
+
2006
+ @property
2007
+ def Domain(self):
2008
+ return self._Domain
2009
+
2010
+ @Domain.setter
2011
+ def Domain(self, Domain):
2012
+ self._Domain = Domain
2013
+
2014
+
2015
+ def _deserialize(self, params):
2016
+ self._Domain = params.get("Domain")
2017
+ memeber_set = set(params.keys())
2018
+ for name, value in vars(self).items():
2019
+ property_name = name[1:]
2020
+ if property_name in memeber_set:
2021
+ memeber_set.remove(property_name)
2022
+ if len(memeber_set) > 0:
2023
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2024
+
2025
+
2026
+
2027
+ class DeleteCustomDomainResponse(AbstractModel):
2028
+ """DeleteCustomDomain返回参数结构体
2029
+
2030
+ """
2031
+
2032
+ def __init__(self):
2033
+ r"""
2034
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2035
+ :type RequestId: str
2036
+ """
2037
+ self._RequestId = None
2038
+
2039
+ @property
2040
+ def RequestId(self):
2041
+ return self._RequestId
2042
+
2043
+ @RequestId.setter
2044
+ def RequestId(self, RequestId):
2045
+ self._RequestId = RequestId
2046
+
2047
+
2048
+ def _deserialize(self, params):
2049
+ self._RequestId = params.get("RequestId")
2050
+
2051
+
1845
2052
  class DeleteFunctionRequest(AbstractModel):
1846
2053
  """DeleteFunction请求参数结构体
1847
2054
 
@@ -2322,6 +2529,99 @@ class DeleteTriggerResponse(AbstractModel):
2322
2529
  self._RequestId = params.get("RequestId")
2323
2530
 
2324
2531
 
2532
+ class DomainInfo(AbstractModel):
2533
+ """云函数自定义域名详情
2534
+
2535
+ """
2536
+
2537
+ def __init__(self):
2538
+ r"""
2539
+ :param _Domain: 域名,不支持泛域名
2540
+ :type Domain: str
2541
+ :param _Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
2542
+ :type Protocol: str
2543
+ :param _EndpointsConfig: 路由配置信息
2544
+ 注意:此字段可能返回 null,表示取不到有效值。
2545
+ :type EndpointsConfig: list of EndpointsConf
2546
+ :param _CertConfig: 证书配置信息,HTTPS协议必传路由配置
2547
+ 注意:此字段可能返回 null,表示取不到有效值。
2548
+ :type CertConfig: :class:`tencentcloud.scf.v20180416.models.CertConf`
2549
+ :param _WafConfig: web 应用防火墙配置
2550
+ 注意:此字段可能返回 null,表示取不到有效值。
2551
+ :type WafConfig: :class:`tencentcloud.scf.v20180416.models.WafConf`
2552
+ """
2553
+ self._Domain = None
2554
+ self._Protocol = None
2555
+ self._EndpointsConfig = None
2556
+ self._CertConfig = None
2557
+ self._WafConfig = None
2558
+
2559
+ @property
2560
+ def Domain(self):
2561
+ return self._Domain
2562
+
2563
+ @Domain.setter
2564
+ def Domain(self, Domain):
2565
+ self._Domain = Domain
2566
+
2567
+ @property
2568
+ def Protocol(self):
2569
+ return self._Protocol
2570
+
2571
+ @Protocol.setter
2572
+ def Protocol(self, Protocol):
2573
+ self._Protocol = Protocol
2574
+
2575
+ @property
2576
+ def EndpointsConfig(self):
2577
+ return self._EndpointsConfig
2578
+
2579
+ @EndpointsConfig.setter
2580
+ def EndpointsConfig(self, EndpointsConfig):
2581
+ self._EndpointsConfig = EndpointsConfig
2582
+
2583
+ @property
2584
+ def CertConfig(self):
2585
+ return self._CertConfig
2586
+
2587
+ @CertConfig.setter
2588
+ def CertConfig(self, CertConfig):
2589
+ self._CertConfig = CertConfig
2590
+
2591
+ @property
2592
+ def WafConfig(self):
2593
+ return self._WafConfig
2594
+
2595
+ @WafConfig.setter
2596
+ def WafConfig(self, WafConfig):
2597
+ self._WafConfig = WafConfig
2598
+
2599
+
2600
+ def _deserialize(self, params):
2601
+ self._Domain = params.get("Domain")
2602
+ self._Protocol = params.get("Protocol")
2603
+ if params.get("EndpointsConfig") is not None:
2604
+ self._EndpointsConfig = []
2605
+ for item in params.get("EndpointsConfig"):
2606
+ obj = EndpointsConf()
2607
+ obj._deserialize(item)
2608
+ self._EndpointsConfig.append(obj)
2609
+ if params.get("CertConfig") is not None:
2610
+ self._CertConfig = CertConf()
2611
+ self._CertConfig._deserialize(params.get("CertConfig"))
2612
+ if params.get("WafConfig") is not None:
2613
+ self._WafConfig = WafConf()
2614
+ self._WafConfig._deserialize(params.get("WafConfig"))
2615
+ memeber_set = set(params.keys())
2616
+ for name, value in vars(self).items():
2617
+ property_name = name[1:]
2618
+ if property_name in memeber_set:
2619
+ memeber_set.remove(property_name)
2620
+ if len(memeber_set) > 0:
2621
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2622
+
2623
+
2624
+
2325
2625
  class EipConfigIn(AbstractModel):
2326
2626
  """公网访问固定ip配置
2327
2627
 
@@ -2446,6 +2746,97 @@ class EipOutConfig(AbstractModel):
2446
2746
 
2447
2747
 
2448
2748
 
2749
+ class EndpointsConf(AbstractModel):
2750
+ """后端路由配置信息
2751
+
2752
+ """
2753
+
2754
+ def __init__(self):
2755
+ r"""
2756
+ :param _Namespace: 函数命名空间
2757
+ 注意:此字段可能返回 null,表示取不到有效值。
2758
+ :type Namespace: str
2759
+ :param _FunctionName: 函数名
2760
+ 注意:此字段可能返回 null,表示取不到有效值。
2761
+ :type FunctionName: str
2762
+ :param _Qualifier: 函数别名或版本
2763
+ 注意:此字段可能返回 null,表示取不到有效值。
2764
+ :type Qualifier: str
2765
+ :param _PathMatch: 路径,取值规范:/,/*,/xxx,/xxx/a,/xxx/*"
2766
+ 注意:此字段可能返回 null,表示取不到有效值。
2767
+ :type PathMatch: str
2768
+ :param _PathRewrite: 路径重写策略
2769
+ 注意:此字段可能返回 null,表示取不到有效值。
2770
+ :type PathRewrite: list of PathRewriteRule
2771
+ """
2772
+ self._Namespace = None
2773
+ self._FunctionName = None
2774
+ self._Qualifier = None
2775
+ self._PathMatch = None
2776
+ self._PathRewrite = None
2777
+
2778
+ @property
2779
+ def Namespace(self):
2780
+ return self._Namespace
2781
+
2782
+ @Namespace.setter
2783
+ def Namespace(self, Namespace):
2784
+ self._Namespace = Namespace
2785
+
2786
+ @property
2787
+ def FunctionName(self):
2788
+ return self._FunctionName
2789
+
2790
+ @FunctionName.setter
2791
+ def FunctionName(self, FunctionName):
2792
+ self._FunctionName = FunctionName
2793
+
2794
+ @property
2795
+ def Qualifier(self):
2796
+ return self._Qualifier
2797
+
2798
+ @Qualifier.setter
2799
+ def Qualifier(self, Qualifier):
2800
+ self._Qualifier = Qualifier
2801
+
2802
+ @property
2803
+ def PathMatch(self):
2804
+ return self._PathMatch
2805
+
2806
+ @PathMatch.setter
2807
+ def PathMatch(self, PathMatch):
2808
+ self._PathMatch = PathMatch
2809
+
2810
+ @property
2811
+ def PathRewrite(self):
2812
+ return self._PathRewrite
2813
+
2814
+ @PathRewrite.setter
2815
+ def PathRewrite(self, PathRewrite):
2816
+ self._PathRewrite = PathRewrite
2817
+
2818
+
2819
+ def _deserialize(self, params):
2820
+ self._Namespace = params.get("Namespace")
2821
+ self._FunctionName = params.get("FunctionName")
2822
+ self._Qualifier = params.get("Qualifier")
2823
+ self._PathMatch = params.get("PathMatch")
2824
+ if params.get("PathRewrite") is not None:
2825
+ self._PathRewrite = []
2826
+ for item in params.get("PathRewrite"):
2827
+ obj = PathRewriteRule()
2828
+ obj._deserialize(item)
2829
+ self._PathRewrite.append(obj)
2830
+ memeber_set = set(params.keys())
2831
+ for name, value in vars(self).items():
2832
+ property_name = name[1:]
2833
+ if property_name in memeber_set:
2834
+ memeber_set.remove(property_name)
2835
+ if len(memeber_set) > 0:
2836
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2837
+
2838
+
2839
+
2449
2840
  class Environment(AbstractModel):
2450
2841
  """函数的环境变量参数
2451
2842
 
@@ -3289,12 +3680,128 @@ class GetAsyncEventStatusResponse(AbstractModel):
3289
3680
  self._RequestId = None
3290
3681
 
3291
3682
  @property
3292
- def Result(self):
3293
- return self._Result
3683
+ def Result(self):
3684
+ return self._Result
3685
+
3686
+ @Result.setter
3687
+ def Result(self, Result):
3688
+ self._Result = Result
3689
+
3690
+ @property
3691
+ def RequestId(self):
3692
+ return self._RequestId
3693
+
3694
+ @RequestId.setter
3695
+ def RequestId(self, RequestId):
3696
+ self._RequestId = RequestId
3697
+
3698
+
3699
+ def _deserialize(self, params):
3700
+ if params.get("Result") is not None:
3701
+ self._Result = AsyncEventStatus()
3702
+ self._Result._deserialize(params.get("Result"))
3703
+ self._RequestId = params.get("RequestId")
3704
+
3705
+
3706
+ class GetCustomDomainRequest(AbstractModel):
3707
+ """GetCustomDomain请求参数结构体
3708
+
3709
+ """
3710
+
3711
+ def __init__(self):
3712
+ r"""
3713
+ :param _Domain: 域名
3714
+ :type Domain: str
3715
+ """
3716
+ self._Domain = None
3717
+
3718
+ @property
3719
+ def Domain(self):
3720
+ return self._Domain
3721
+
3722
+ @Domain.setter
3723
+ def Domain(self, Domain):
3724
+ self._Domain = Domain
3725
+
3726
+
3727
+ def _deserialize(self, params):
3728
+ self._Domain = params.get("Domain")
3729
+ memeber_set = set(params.keys())
3730
+ for name, value in vars(self).items():
3731
+ property_name = name[1:]
3732
+ if property_name in memeber_set:
3733
+ memeber_set.remove(property_name)
3734
+ if len(memeber_set) > 0:
3735
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3736
+
3737
+
3738
+
3739
+ class GetCustomDomainResponse(AbstractModel):
3740
+ """GetCustomDomain返回参数结构体
3741
+
3742
+ """
3743
+
3744
+ def __init__(self):
3745
+ r"""
3746
+ :param _Domain: 域名
3747
+ :type Domain: str
3748
+ :param _Protocol: 协议
3749
+ :type Protocol: str
3750
+ :param _EndpointsConfig: 路由配置
3751
+ :type EndpointsConfig: list of EndpointsConf
3752
+ :param _CertConfig: 证书配置信息
3753
+ :type CertConfig: :class:`tencentcloud.scf.v20180416.models.CertConf`
3754
+ :param _WafConfig: web 应用防火墙配置
3755
+ :type WafConfig: :class:`tencentcloud.scf.v20180416.models.WafConf`
3756
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3757
+ :type RequestId: str
3758
+ """
3759
+ self._Domain = None
3760
+ self._Protocol = None
3761
+ self._EndpointsConfig = None
3762
+ self._CertConfig = None
3763
+ self._WafConfig = None
3764
+ self._RequestId = None
3765
+
3766
+ @property
3767
+ def Domain(self):
3768
+ return self._Domain
3769
+
3770
+ @Domain.setter
3771
+ def Domain(self, Domain):
3772
+ self._Domain = Domain
3773
+
3774
+ @property
3775
+ def Protocol(self):
3776
+ return self._Protocol
3777
+
3778
+ @Protocol.setter
3779
+ def Protocol(self, Protocol):
3780
+ self._Protocol = Protocol
3781
+
3782
+ @property
3783
+ def EndpointsConfig(self):
3784
+ return self._EndpointsConfig
3785
+
3786
+ @EndpointsConfig.setter
3787
+ def EndpointsConfig(self, EndpointsConfig):
3788
+ self._EndpointsConfig = EndpointsConfig
3789
+
3790
+ @property
3791
+ def CertConfig(self):
3792
+ return self._CertConfig
3294
3793
 
3295
- @Result.setter
3296
- def Result(self, Result):
3297
- self._Result = Result
3794
+ @CertConfig.setter
3795
+ def CertConfig(self, CertConfig):
3796
+ self._CertConfig = CertConfig
3797
+
3798
+ @property
3799
+ def WafConfig(self):
3800
+ return self._WafConfig
3801
+
3802
+ @WafConfig.setter
3803
+ def WafConfig(self, WafConfig):
3804
+ self._WafConfig = WafConfig
3298
3805
 
3299
3806
  @property
3300
3807
  def RequestId(self):
@@ -3306,9 +3813,20 @@ class GetAsyncEventStatusResponse(AbstractModel):
3306
3813
 
3307
3814
 
3308
3815
  def _deserialize(self, params):
3309
- if params.get("Result") is not None:
3310
- self._Result = AsyncEventStatus()
3311
- self._Result._deserialize(params.get("Result"))
3816
+ self._Domain = params.get("Domain")
3817
+ self._Protocol = params.get("Protocol")
3818
+ if params.get("EndpointsConfig") is not None:
3819
+ self._EndpointsConfig = []
3820
+ for item in params.get("EndpointsConfig"):
3821
+ obj = EndpointsConf()
3822
+ obj._deserialize(item)
3823
+ self._EndpointsConfig.append(obj)
3824
+ if params.get("CertConfig") is not None:
3825
+ self._CertConfig = CertConf()
3826
+ self._CertConfig._deserialize(params.get("CertConfig"))
3827
+ if params.get("WafConfig") is not None:
3828
+ self._WafConfig = WafConf()
3829
+ self._WafConfig._deserialize(params.get("WafConfig"))
3312
3830
  self._RequestId = params.get("RequestId")
3313
3831
 
3314
3832
 
@@ -4527,7 +5045,7 @@ class GetLayerVersionResponse(AbstractModel):
4527
5045
  :type Location: str
4528
5046
  :param _AddTime: 版本的创建时间
4529
5047
  :type AddTime: str
4530
- :param _Description: 版本的描述
5048
+ :param _Description: 版本的描述信息
4531
5049
  :type Description: str
4532
5050
  :param _LicenseInfo: 许可证信息
4533
5051
  :type LicenseInfo: str
@@ -6235,6 +6753,147 @@ class ListAsyncEventsResponse(AbstractModel):
6235
6753
  self._RequestId = params.get("RequestId")
6236
6754
 
6237
6755
 
6756
+ class ListCustomDomainsRequest(AbstractModel):
6757
+ """ListCustomDomains请求参数结构体
6758
+
6759
+ """
6760
+
6761
+ def __init__(self):
6762
+ r"""
6763
+ :param _Offset: 偏移量,默认0
6764
+ :type Offset: int
6765
+ :param _Limit: 容量,默认20
6766
+ :type Limit: int
6767
+ :param _OrderBy: 取值范围:AddTime,ModTime, 默认AddTime
6768
+ :type OrderBy: str
6769
+ :param _Order: 取值范围:DESC, ASC 默认DESC
6770
+ :type Order: str
6771
+ :param _Filters: 过滤条件
6772
+ :type Filters: list of Filter
6773
+ """
6774
+ self._Offset = None
6775
+ self._Limit = None
6776
+ self._OrderBy = None
6777
+ self._Order = None
6778
+ self._Filters = None
6779
+
6780
+ @property
6781
+ def Offset(self):
6782
+ return self._Offset
6783
+
6784
+ @Offset.setter
6785
+ def Offset(self, Offset):
6786
+ self._Offset = Offset
6787
+
6788
+ @property
6789
+ def Limit(self):
6790
+ return self._Limit
6791
+
6792
+ @Limit.setter
6793
+ def Limit(self, Limit):
6794
+ self._Limit = Limit
6795
+
6796
+ @property
6797
+ def OrderBy(self):
6798
+ return self._OrderBy
6799
+
6800
+ @OrderBy.setter
6801
+ def OrderBy(self, OrderBy):
6802
+ self._OrderBy = OrderBy
6803
+
6804
+ @property
6805
+ def Order(self):
6806
+ return self._Order
6807
+
6808
+ @Order.setter
6809
+ def Order(self, Order):
6810
+ self._Order = Order
6811
+
6812
+ @property
6813
+ def Filters(self):
6814
+ return self._Filters
6815
+
6816
+ @Filters.setter
6817
+ def Filters(self, Filters):
6818
+ self._Filters = Filters
6819
+
6820
+
6821
+ def _deserialize(self, params):
6822
+ self._Offset = params.get("Offset")
6823
+ self._Limit = params.get("Limit")
6824
+ self._OrderBy = params.get("OrderBy")
6825
+ self._Order = params.get("Order")
6826
+ if params.get("Filters") is not None:
6827
+ self._Filters = []
6828
+ for item in params.get("Filters"):
6829
+ obj = Filter()
6830
+ obj._deserialize(item)
6831
+ self._Filters.append(obj)
6832
+ memeber_set = set(params.keys())
6833
+ for name, value in vars(self).items():
6834
+ property_name = name[1:]
6835
+ if property_name in memeber_set:
6836
+ memeber_set.remove(property_name)
6837
+ if len(memeber_set) > 0:
6838
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6839
+
6840
+
6841
+
6842
+ class ListCustomDomainsResponse(AbstractModel):
6843
+ """ListCustomDomains返回参数结构体
6844
+
6845
+ """
6846
+
6847
+ def __init__(self):
6848
+ r"""
6849
+ :param _Total: 总数
6850
+ :type Total: int
6851
+ :param _Domains: 域名列表信息
6852
+ 注意:此字段可能返回 null,表示取不到有效值。
6853
+ :type Domains: list of DomainInfo
6854
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6855
+ :type RequestId: str
6856
+ """
6857
+ self._Total = None
6858
+ self._Domains = None
6859
+ self._RequestId = None
6860
+
6861
+ @property
6862
+ def Total(self):
6863
+ return self._Total
6864
+
6865
+ @Total.setter
6866
+ def Total(self, Total):
6867
+ self._Total = Total
6868
+
6869
+ @property
6870
+ def Domains(self):
6871
+ return self._Domains
6872
+
6873
+ @Domains.setter
6874
+ def Domains(self, Domains):
6875
+ self._Domains = Domains
6876
+
6877
+ @property
6878
+ def RequestId(self):
6879
+ return self._RequestId
6880
+
6881
+ @RequestId.setter
6882
+ def RequestId(self, RequestId):
6883
+ self._RequestId = RequestId
6884
+
6885
+
6886
+ def _deserialize(self, params):
6887
+ self._Total = params.get("Total")
6888
+ if params.get("Domains") is not None:
6889
+ self._Domains = []
6890
+ for item in params.get("Domains"):
6891
+ obj = DomainInfo()
6892
+ obj._deserialize(item)
6893
+ self._Domains.append(obj)
6894
+ self._RequestId = params.get("RequestId")
6895
+
6896
+
6238
6897
  class ListFunctionsRequest(AbstractModel):
6239
6898
  """ListFunctions请求参数结构体
6240
6899
 
@@ -7691,6 +8350,66 @@ class NamespaceUsage(AbstractModel):
7691
8350
 
7692
8351
 
7693
8352
 
8353
+ class PathRewriteRule(AbstractModel):
8354
+ """路径路由重写规则
8355
+
8356
+ """
8357
+
8358
+ def __init__(self):
8359
+ r"""
8360
+ :param _Path: 需要重路由的路径,取值规范:/,/*,/xxx,/xxx/a,/xxx/*
8361
+ 注意:此字段可能返回 null,表示取不到有效值。
8362
+ :type Path: str
8363
+ :param _Type: 匹配规,取值范围: WildcardRules 通配符匹配, ExactRules 精确匹配
8364
+ 注意:此字段可能返回 null,表示取不到有效值。
8365
+ :type Type: str
8366
+ :param _Rewrite: 替换值:比如/, /$
8367
+ 注意:此字段可能返回 null,表示取不到有效值。
8368
+ :type Rewrite: str
8369
+ """
8370
+ self._Path = None
8371
+ self._Type = None
8372
+ self._Rewrite = None
8373
+
8374
+ @property
8375
+ def Path(self):
8376
+ return self._Path
8377
+
8378
+ @Path.setter
8379
+ def Path(self, Path):
8380
+ self._Path = Path
8381
+
8382
+ @property
8383
+ def Type(self):
8384
+ return self._Type
8385
+
8386
+ @Type.setter
8387
+ def Type(self, Type):
8388
+ self._Type = Type
8389
+
8390
+ @property
8391
+ def Rewrite(self):
8392
+ return self._Rewrite
8393
+
8394
+ @Rewrite.setter
8395
+ def Rewrite(self, Rewrite):
8396
+ self._Rewrite = Rewrite
8397
+
8398
+
8399
+ def _deserialize(self, params):
8400
+ self._Path = params.get("Path")
8401
+ self._Type = params.get("Type")
8402
+ self._Rewrite = params.get("Rewrite")
8403
+ memeber_set = set(params.keys())
8404
+ for name, value in vars(self).items():
8405
+ property_name = name[1:]
8406
+ if property_name in memeber_set:
8407
+ memeber_set.remove(property_name)
8408
+ if len(memeber_set) > 0:
8409
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8410
+
8411
+
8412
+
7694
8413
  class ProtocolParams(AbstractModel):
7695
8414
  """HTTP函数支持其他访问协议的参数
7696
8415
 
@@ -9789,6 +10508,121 @@ class UpdateAliasResponse(AbstractModel):
9789
10508
  self._RequestId = params.get("RequestId")
9790
10509
 
9791
10510
 
10511
+ class UpdateCustomDomainRequest(AbstractModel):
10512
+ """UpdateCustomDomain请求参数结构体
10513
+
10514
+ """
10515
+
10516
+ def __init__(self):
10517
+ r"""
10518
+ :param _Domain: 自定义域名
10519
+ :type Domain: str
10520
+ :param _Protocol: 协议,取值范围:HTTP, HTTPS, HTTP&HTTPS
10521
+ :type Protocol: str
10522
+ :param _CertConfig: 证书配置信息,HTTPS协议必穿
10523
+ :type CertConfig: :class:`tencentcloud.scf.v20180416.models.CertConf`
10524
+ :param _WafConfig: web 应用防火墙配置
10525
+ :type WafConfig: :class:`tencentcloud.scf.v20180416.models.WafConf`
10526
+ :param _EndpointsConfig: 路由配置
10527
+ :type EndpointsConfig: list of EndpointsConf
10528
+ """
10529
+ self._Domain = None
10530
+ self._Protocol = None
10531
+ self._CertConfig = None
10532
+ self._WafConfig = None
10533
+ self._EndpointsConfig = None
10534
+
10535
+ @property
10536
+ def Domain(self):
10537
+ return self._Domain
10538
+
10539
+ @Domain.setter
10540
+ def Domain(self, Domain):
10541
+ self._Domain = Domain
10542
+
10543
+ @property
10544
+ def Protocol(self):
10545
+ return self._Protocol
10546
+
10547
+ @Protocol.setter
10548
+ def Protocol(self, Protocol):
10549
+ self._Protocol = Protocol
10550
+
10551
+ @property
10552
+ def CertConfig(self):
10553
+ return self._CertConfig
10554
+
10555
+ @CertConfig.setter
10556
+ def CertConfig(self, CertConfig):
10557
+ self._CertConfig = CertConfig
10558
+
10559
+ @property
10560
+ def WafConfig(self):
10561
+ return self._WafConfig
10562
+
10563
+ @WafConfig.setter
10564
+ def WafConfig(self, WafConfig):
10565
+ self._WafConfig = WafConfig
10566
+
10567
+ @property
10568
+ def EndpointsConfig(self):
10569
+ return self._EndpointsConfig
10570
+
10571
+ @EndpointsConfig.setter
10572
+ def EndpointsConfig(self, EndpointsConfig):
10573
+ self._EndpointsConfig = EndpointsConfig
10574
+
10575
+
10576
+ def _deserialize(self, params):
10577
+ self._Domain = params.get("Domain")
10578
+ self._Protocol = params.get("Protocol")
10579
+ if params.get("CertConfig") is not None:
10580
+ self._CertConfig = CertConf()
10581
+ self._CertConfig._deserialize(params.get("CertConfig"))
10582
+ if params.get("WafConfig") is not None:
10583
+ self._WafConfig = WafConf()
10584
+ self._WafConfig._deserialize(params.get("WafConfig"))
10585
+ if params.get("EndpointsConfig") is not None:
10586
+ self._EndpointsConfig = []
10587
+ for item in params.get("EndpointsConfig"):
10588
+ obj = EndpointsConf()
10589
+ obj._deserialize(item)
10590
+ self._EndpointsConfig.append(obj)
10591
+ memeber_set = set(params.keys())
10592
+ for name, value in vars(self).items():
10593
+ property_name = name[1:]
10594
+ if property_name in memeber_set:
10595
+ memeber_set.remove(property_name)
10596
+ if len(memeber_set) > 0:
10597
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10598
+
10599
+
10600
+
10601
+ class UpdateCustomDomainResponse(AbstractModel):
10602
+ """UpdateCustomDomain返回参数结构体
10603
+
10604
+ """
10605
+
10606
+ def __init__(self):
10607
+ r"""
10608
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10609
+ :type RequestId: str
10610
+ """
10611
+ self._RequestId = None
10612
+
10613
+ @property
10614
+ def RequestId(self):
10615
+ return self._RequestId
10616
+
10617
+ @RequestId.setter
10618
+ def RequestId(self, RequestId):
10619
+ self._RequestId = RequestId
10620
+
10621
+
10622
+ def _deserialize(self, params):
10623
+ self._RequestId = params.get("RequestId")
10624
+
10625
+
9792
10626
  class UpdateFunctionCodeRequest(AbstractModel):
9793
10627
  """UpdateFunctionCode请求参数结构体
9794
10628
 
@@ -11202,4 +12036,51 @@ class WSParams(AbstractModel):
11202
12036
  memeber_set.remove(property_name)
11203
12037
  if len(memeber_set) > 0:
11204
12038
  warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12039
+
12040
+
12041
+
12042
+ class WafConf(AbstractModel):
12043
+ """web应用防火墙配置信息
12044
+
12045
+ """
12046
+
12047
+ def __init__(self):
12048
+ r"""
12049
+ :param _WafOpen: web应用防火墙是否打开, 取值范围:OPEN, CLOSE
12050
+ 注意:此字段可能返回 null,表示取不到有效值。
12051
+ :type WafOpen: str
12052
+ :param _WafInstanceId: web应用防火墙实例ID
12053
+ 注意:此字段可能返回 null,表示取不到有效值。
12054
+ :type WafInstanceId: str
12055
+ """
12056
+ self._WafOpen = None
12057
+ self._WafInstanceId = None
12058
+
12059
+ @property
12060
+ def WafOpen(self):
12061
+ return self._WafOpen
12062
+
12063
+ @WafOpen.setter
12064
+ def WafOpen(self, WafOpen):
12065
+ self._WafOpen = WafOpen
12066
+
12067
+ @property
12068
+ def WafInstanceId(self):
12069
+ return self._WafInstanceId
12070
+
12071
+ @WafInstanceId.setter
12072
+ def WafInstanceId(self, WafInstanceId):
12073
+ self._WafInstanceId = WafInstanceId
12074
+
12075
+
12076
+ def _deserialize(self, params):
12077
+ self._WafOpen = params.get("WafOpen")
12078
+ self._WafInstanceId = params.get("WafInstanceId")
12079
+ memeber_set = set(params.keys())
12080
+ for name, value in vars(self).items():
12081
+ property_name = name[1:]
12082
+ if property_name in memeber_set:
12083
+ memeber_set.remove(property_name)
12084
+ if len(memeber_set) > 0:
12085
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11205
12086
 
@@ -79,6 +79,29 @@ class ScfClient(AbstractClient):
79
79
  raise TencentCloudSDKException(type(e).__name__, str(e))
80
80
 
81
81
 
82
+ def CreateCustomDomain(self, request):
83
+ """创建自定义域名
84
+
85
+ :param request: Request instance for CreateCustomDomain.
86
+ :type request: :class:`tencentcloud.scf.v20180416.models.CreateCustomDomainRequest`
87
+ :rtype: :class:`tencentcloud.scf.v20180416.models.CreateCustomDomainResponse`
88
+
89
+ """
90
+ try:
91
+ params = request._serialize()
92
+ headers = request.headers
93
+ body = self.call("CreateCustomDomain", params, headers=headers)
94
+ response = json.loads(body)
95
+ model = models.CreateCustomDomainResponse()
96
+ model._deserialize(response["Response"])
97
+ return model
98
+ except Exception as e:
99
+ if isinstance(e, TencentCloudSDKException):
100
+ raise
101
+ else:
102
+ raise TencentCloudSDKException(type(e).__name__, str(e))
103
+
104
+
82
105
  def CreateFunction(self, request):
83
106
  """该接口根据传入参数创建新的函数。
84
107
 
@@ -171,6 +194,29 @@ class ScfClient(AbstractClient):
171
194
  raise TencentCloudSDKException(type(e).__name__, str(e))
172
195
 
173
196
 
197
+ def DeleteCustomDomain(self, request):
198
+ """删除自定义域名
199
+
200
+ :param request: Request instance for DeleteCustomDomain.
201
+ :type request: :class:`tencentcloud.scf.v20180416.models.DeleteCustomDomainRequest`
202
+ :rtype: :class:`tencentcloud.scf.v20180416.models.DeleteCustomDomainResponse`
203
+
204
+ """
205
+ try:
206
+ params = request._serialize()
207
+ headers = request.headers
208
+ body = self.call("DeleteCustomDomain", params, headers=headers)
209
+ response = json.loads(body)
210
+ model = models.DeleteCustomDomainResponse()
211
+ model._deserialize(response["Response"])
212
+ return model
213
+ except Exception as e:
214
+ if isinstance(e, TencentCloudSDKException):
215
+ raise
216
+ else:
217
+ raise TencentCloudSDKException(type(e).__name__, str(e))
218
+
219
+
174
220
  def DeleteFunction(self, request):
175
221
  """该接口根据传入参数删除函数。
176
222
 
@@ -378,6 +424,29 @@ class ScfClient(AbstractClient):
378
424
  raise TencentCloudSDKException(type(e).__name__, str(e))
379
425
 
380
426
 
427
+ def GetCustomDomain(self, request):
428
+ """查看云函数自定义域名详情
429
+
430
+ :param request: Request instance for GetCustomDomain.
431
+ :type request: :class:`tencentcloud.scf.v20180416.models.GetCustomDomainRequest`
432
+ :rtype: :class:`tencentcloud.scf.v20180416.models.GetCustomDomainResponse`
433
+
434
+ """
435
+ try:
436
+ params = request._serialize()
437
+ headers = request.headers
438
+ body = self.call("GetCustomDomain", params, headers=headers)
439
+ response = json.loads(body)
440
+ model = models.GetCustomDomainResponse()
441
+ model._deserialize(response["Response"])
442
+ return model
443
+ except Exception as e:
444
+ if isinstance(e, TencentCloudSDKException):
445
+ raise
446
+ else:
447
+ raise TencentCloudSDKException(type(e).__name__, str(e))
448
+
449
+
381
450
  def GetFunction(self, request):
382
451
  """该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
383
452
 
@@ -654,6 +723,29 @@ class ScfClient(AbstractClient):
654
723
  raise TencentCloudSDKException(type(e).__name__, str(e))
655
724
 
656
725
 
726
+ def ListCustomDomains(self, request):
727
+ """遍历域名列表信息
728
+
729
+ :param request: Request instance for ListCustomDomains.
730
+ :type request: :class:`tencentcloud.scf.v20180416.models.ListCustomDomainsRequest`
731
+ :rtype: :class:`tencentcloud.scf.v20180416.models.ListCustomDomainsResponse`
732
+
733
+ """
734
+ try:
735
+ params = request._serialize()
736
+ headers = request.headers
737
+ body = self.call("ListCustomDomains", params, headers=headers)
738
+ response = json.loads(body)
739
+ model = models.ListCustomDomainsResponse()
740
+ model._deserialize(response["Response"])
741
+ return model
742
+ except Exception as e:
743
+ if isinstance(e, TencentCloudSDKException):
744
+ raise
745
+ else:
746
+ raise TencentCloudSDKException(type(e).__name__, str(e))
747
+
748
+
657
749
  def ListFunctions(self, request):
658
750
  """该接口根据传入的查询参数返回相关函数信息。
659
751
 
@@ -953,6 +1045,29 @@ class ScfClient(AbstractClient):
953
1045
  raise TencentCloudSDKException(type(e).__name__, str(e))
954
1046
 
955
1047
 
1048
+ def UpdateCustomDomain(self, request):
1049
+ """更新自定义域名相关配置
1050
+
1051
+ :param request: Request instance for UpdateCustomDomain.
1052
+ :type request: :class:`tencentcloud.scf.v20180416.models.UpdateCustomDomainRequest`
1053
+ :rtype: :class:`tencentcloud.scf.v20180416.models.UpdateCustomDomainResponse`
1054
+
1055
+ """
1056
+ try:
1057
+ params = request._serialize()
1058
+ headers = request.headers
1059
+ body = self.call("UpdateCustomDomain", params, headers=headers)
1060
+ response = json.loads(body)
1061
+ model = models.UpdateCustomDomainResponse()
1062
+ model._deserialize(response["Response"])
1063
+ return model
1064
+ except Exception as e:
1065
+ if isinstance(e, TencentCloudSDKException):
1066
+ raise
1067
+ else:
1068
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1069
+
1070
+
956
1071
  def UpdateFunctionCode(self, request):
957
1072
  """该接口根据传入参数更新函数代码。
958
1073
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-scf
3
- Version: 3.0.1242
3
+ Version: 3.0.1261
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 @@
1
+ tencentcloud-sdk-python-common==3.0.1261
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1242