tencentcloud-sdk-python-scf 3.0.1207__py2.py3-none-any.whl → 3.0.1260__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 +1 -1
- tencentcloud/scf/v20180416/errorcodes.py +9 -12
- tencentcloud/scf/v20180416/models.py +988 -71
- tencentcloud/scf/v20180416/scf_client.py +115 -0
- {tencentcloud_sdk_python_scf-3.0.1207.dist-info → tencentcloud_sdk_python_scf-3.0.1260.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_scf-3.0.1260.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_scf-3.0.1207.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_scf-3.0.1207.dist-info → tencentcloud_sdk_python_scf-3.0.1260.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_scf-3.0.1207.dist-info → tencentcloud_sdk_python_scf-3.0.1260.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
|
@@ -1546,13 +1695,13 @@ class CreateTriggerRequest(AbstractModel):
|
|
|
1546
1695
|
:type FunctionName: str
|
|
1547
1696
|
:param _TriggerName: 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
|
|
1548
1697
|
:type TriggerName: str
|
|
1549
|
-
:param _Type: 触发器类型,目前支持 cos 、
|
|
1698
|
+
:param _Type: 触发器类型,目前支持 cos 、cls 、 timer、 ckafka、http类型。创建函数 URL 请使用 http 类型,参考[创建函数 URL ](https://cloud.tencent.com/document/product/583/100227#33bbbda4-9131-48a6-ac37-ac62ffe01424)。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。
|
|
1550
1699
|
:type Type: str
|
|
1551
1700
|
:param _TriggerDesc: 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
|
|
1552
1701
|
:type TriggerDesc: str
|
|
1553
1702
|
:param _Namespace: 函数的命名空间
|
|
1554
1703
|
:type Namespace: str
|
|
1555
|
-
:param _Qualifier:
|
|
1704
|
+
:param _Qualifier: 触发器所生效的版本或别名,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布,默认为 $LATEST。
|
|
1556
1705
|
:type Qualifier: str
|
|
1557
1706
|
:param _Enable: 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
|
|
1558
1707
|
:type Enable: str
|
|
@@ -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
|
|
|
@@ -2215,14 +2422,13 @@ class DeleteTriggerRequest(AbstractModel):
|
|
|
2215
2422
|
:type FunctionName: str
|
|
2216
2423
|
:param _TriggerName: 要删除的触发器名称
|
|
2217
2424
|
:type TriggerName: str
|
|
2218
|
-
:param _Type:
|
|
2425
|
+
:param _Type: 要删除的触发器类型,目前只支持 timer、ckafka 、apigw 、cls 、cos 、cmq 、http 类型
|
|
2219
2426
|
:type Type: str
|
|
2220
2427
|
:param _Namespace: 函数所属命名空间
|
|
2221
2428
|
:type Namespace: str
|
|
2222
2429
|
:param _TriggerDesc: 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
|
|
2223
2430
|
:type TriggerDesc: str
|
|
2224
|
-
:param _Qualifier:
|
|
2225
|
-
如果删除的触发器类型为 APIGW 触发器,该字段为必填参数
|
|
2431
|
+
:param _Qualifier: 要删除的触发器实际所指向的版本或别名,默认值为 $LATEST
|
|
2226
2432
|
:type Qualifier: str
|
|
2227
2433
|
"""
|
|
2228
2434
|
self._FunctionName = None
|
|
@@ -2323,6 +2529,99 @@ class DeleteTriggerResponse(AbstractModel):
|
|
|
2323
2529
|
self._RequestId = params.get("RequestId")
|
|
2324
2530
|
|
|
2325
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
|
+
|
|
2326
2625
|
class EipConfigIn(AbstractModel):
|
|
2327
2626
|
"""公网访问固定ip配置
|
|
2328
2627
|
|
|
@@ -2447,6 +2746,97 @@ class EipOutConfig(AbstractModel):
|
|
|
2447
2746
|
|
|
2448
2747
|
|
|
2449
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
|
+
|
|
2450
2840
|
class Environment(AbstractModel):
|
|
2451
2841
|
"""函数的环境变量参数
|
|
2452
2842
|
|
|
@@ -3313,6 +3703,133 @@ class GetAsyncEventStatusResponse(AbstractModel):
|
|
|
3313
3703
|
self._RequestId = params.get("RequestId")
|
|
3314
3704
|
|
|
3315
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
|
|
3793
|
+
|
|
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
|
|
3805
|
+
|
|
3806
|
+
@property
|
|
3807
|
+
def RequestId(self):
|
|
3808
|
+
return self._RequestId
|
|
3809
|
+
|
|
3810
|
+
@RequestId.setter
|
|
3811
|
+
def RequestId(self, RequestId):
|
|
3812
|
+
self._RequestId = RequestId
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
def _deserialize(self, params):
|
|
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"))
|
|
3830
|
+
self._RequestId = params.get("RequestId")
|
|
3831
|
+
|
|
3832
|
+
|
|
3316
3833
|
class GetFunctionAddressRequest(AbstractModel):
|
|
3317
3834
|
"""GetFunctionAddress请求参数结构体
|
|
3318
3835
|
|
|
@@ -4528,7 +5045,7 @@ class GetLayerVersionResponse(AbstractModel):
|
|
|
4528
5045
|
:type Location: str
|
|
4529
5046
|
:param _AddTime: 版本的创建时间
|
|
4530
5047
|
:type AddTime: str
|
|
4531
|
-
:param _Description:
|
|
5048
|
+
:param _Description: 版本的描述信息
|
|
4532
5049
|
:type Description: str
|
|
4533
5050
|
:param _LicenseInfo: 许可证信息
|
|
4534
5051
|
:type LicenseInfo: str
|
|
@@ -5003,10 +5520,12 @@ class ImageConfig(AbstractModel):
|
|
|
5003
5520
|
:param _ContainerImageAccelerate: 镜像加速开关,默认False
|
|
5004
5521
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5005
5522
|
:type ContainerImageAccelerate: bool
|
|
5006
|
-
:param _ImagePort:
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5523
|
+
:param _ImagePort: 镜像函数端口设置,可指定镜像类型
|
|
5524
|
+
Web Server镜像:9000
|
|
5525
|
+
Job 镜像:-1
|
|
5526
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5527
|
+
默认值:9000
|
|
5528
|
+
示例值:9000
|
|
5010
5529
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5011
5530
|
:type ImagePort: int
|
|
5012
5531
|
"""
|
|
@@ -5668,6 +6187,9 @@ class LayerVersionInfo(AbstractModel):
|
|
|
5668
6187
|
:param _Stamp: Stamp
|
|
5669
6188
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5670
6189
|
:type Stamp: str
|
|
6190
|
+
:param _Tags: 返回层绑定的标签信息
|
|
6191
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6192
|
+
:type Tags: list of Tag
|
|
5671
6193
|
"""
|
|
5672
6194
|
self._CompatibleRuntimes = None
|
|
5673
6195
|
self._AddTime = None
|
|
@@ -5677,6 +6199,7 @@ class LayerVersionInfo(AbstractModel):
|
|
|
5677
6199
|
self._LayerName = None
|
|
5678
6200
|
self._Status = None
|
|
5679
6201
|
self._Stamp = None
|
|
6202
|
+
self._Tags = None
|
|
5680
6203
|
|
|
5681
6204
|
@property
|
|
5682
6205
|
def CompatibleRuntimes(self):
|
|
@@ -5742,6 +6265,14 @@ class LayerVersionInfo(AbstractModel):
|
|
|
5742
6265
|
def Stamp(self, Stamp):
|
|
5743
6266
|
self._Stamp = Stamp
|
|
5744
6267
|
|
|
6268
|
+
@property
|
|
6269
|
+
def Tags(self):
|
|
6270
|
+
return self._Tags
|
|
6271
|
+
|
|
6272
|
+
@Tags.setter
|
|
6273
|
+
def Tags(self, Tags):
|
|
6274
|
+
self._Tags = Tags
|
|
6275
|
+
|
|
5745
6276
|
|
|
5746
6277
|
def _deserialize(self, params):
|
|
5747
6278
|
self._CompatibleRuntimes = params.get("CompatibleRuntimes")
|
|
@@ -5752,6 +6283,12 @@ class LayerVersionInfo(AbstractModel):
|
|
|
5752
6283
|
self._LayerName = params.get("LayerName")
|
|
5753
6284
|
self._Status = params.get("Status")
|
|
5754
6285
|
self._Stamp = params.get("Stamp")
|
|
6286
|
+
if params.get("Tags") is not None:
|
|
6287
|
+
self._Tags = []
|
|
6288
|
+
for item in params.get("Tags"):
|
|
6289
|
+
obj = Tag()
|
|
6290
|
+
obj._deserialize(item)
|
|
6291
|
+
self._Tags.append(obj)
|
|
5755
6292
|
memeber_set = set(params.keys())
|
|
5756
6293
|
for name, value in vars(self).items():
|
|
5757
6294
|
property_name = name[1:]
|
|
@@ -6094,21 +6631,151 @@ class ListAsyncEventsRequest(AbstractModel):
|
|
|
6094
6631
|
def EndTimeInterval(self, EndTimeInterval):
|
|
6095
6632
|
self._EndTimeInterval = EndTimeInterval
|
|
6096
6633
|
|
|
6097
|
-
@property
|
|
6098
|
-
def Order(self):
|
|
6099
|
-
return self._Order
|
|
6634
|
+
@property
|
|
6635
|
+
def Order(self):
|
|
6636
|
+
return self._Order
|
|
6637
|
+
|
|
6638
|
+
@Order.setter
|
|
6639
|
+
def Order(self, Order):
|
|
6640
|
+
self._Order = Order
|
|
6641
|
+
|
|
6642
|
+
@property
|
|
6643
|
+
def Orderby(self):
|
|
6644
|
+
return self._Orderby
|
|
6645
|
+
|
|
6646
|
+
@Orderby.setter
|
|
6647
|
+
def Orderby(self, Orderby):
|
|
6648
|
+
self._Orderby = Orderby
|
|
6649
|
+
|
|
6650
|
+
@property
|
|
6651
|
+
def Offset(self):
|
|
6652
|
+
return self._Offset
|
|
6653
|
+
|
|
6654
|
+
@Offset.setter
|
|
6655
|
+
def Offset(self, Offset):
|
|
6656
|
+
self._Offset = Offset
|
|
6657
|
+
|
|
6658
|
+
@property
|
|
6659
|
+
def Limit(self):
|
|
6660
|
+
return self._Limit
|
|
6661
|
+
|
|
6662
|
+
@Limit.setter
|
|
6663
|
+
def Limit(self, Limit):
|
|
6664
|
+
self._Limit = Limit
|
|
6665
|
+
|
|
6666
|
+
@property
|
|
6667
|
+
def InvokeRequestId(self):
|
|
6668
|
+
return self._InvokeRequestId
|
|
6669
|
+
|
|
6670
|
+
@InvokeRequestId.setter
|
|
6671
|
+
def InvokeRequestId(self, InvokeRequestId):
|
|
6672
|
+
self._InvokeRequestId = InvokeRequestId
|
|
6673
|
+
|
|
6674
|
+
|
|
6675
|
+
def _deserialize(self, params):
|
|
6676
|
+
self._FunctionName = params.get("FunctionName")
|
|
6677
|
+
self._Namespace = params.get("Namespace")
|
|
6678
|
+
self._Qualifier = params.get("Qualifier")
|
|
6679
|
+
self._InvokeType = params.get("InvokeType")
|
|
6680
|
+
self._Status = params.get("Status")
|
|
6681
|
+
if params.get("StartTimeInterval") is not None:
|
|
6682
|
+
self._StartTimeInterval = TimeInterval()
|
|
6683
|
+
self._StartTimeInterval._deserialize(params.get("StartTimeInterval"))
|
|
6684
|
+
if params.get("EndTimeInterval") is not None:
|
|
6685
|
+
self._EndTimeInterval = TimeInterval()
|
|
6686
|
+
self._EndTimeInterval._deserialize(params.get("EndTimeInterval"))
|
|
6687
|
+
self._Order = params.get("Order")
|
|
6688
|
+
self._Orderby = params.get("Orderby")
|
|
6689
|
+
self._Offset = params.get("Offset")
|
|
6690
|
+
self._Limit = params.get("Limit")
|
|
6691
|
+
self._InvokeRequestId = params.get("InvokeRequestId")
|
|
6692
|
+
memeber_set = set(params.keys())
|
|
6693
|
+
for name, value in vars(self).items():
|
|
6694
|
+
property_name = name[1:]
|
|
6695
|
+
if property_name in memeber_set:
|
|
6696
|
+
memeber_set.remove(property_name)
|
|
6697
|
+
if len(memeber_set) > 0:
|
|
6698
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6699
|
+
|
|
6700
|
+
|
|
6701
|
+
|
|
6702
|
+
class ListAsyncEventsResponse(AbstractModel):
|
|
6703
|
+
"""ListAsyncEvents返回参数结构体
|
|
6704
|
+
|
|
6705
|
+
"""
|
|
6706
|
+
|
|
6707
|
+
def __init__(self):
|
|
6708
|
+
r"""
|
|
6709
|
+
:param _TotalCount: 满足过滤条件的事件总数
|
|
6710
|
+
:type TotalCount: int
|
|
6711
|
+
:param _EventList: 异步事件列表
|
|
6712
|
+
:type EventList: list of AsyncEvent
|
|
6713
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6714
|
+
:type RequestId: str
|
|
6715
|
+
"""
|
|
6716
|
+
self._TotalCount = None
|
|
6717
|
+
self._EventList = None
|
|
6718
|
+
self._RequestId = None
|
|
6719
|
+
|
|
6720
|
+
@property
|
|
6721
|
+
def TotalCount(self):
|
|
6722
|
+
return self._TotalCount
|
|
6723
|
+
|
|
6724
|
+
@TotalCount.setter
|
|
6725
|
+
def TotalCount(self, TotalCount):
|
|
6726
|
+
self._TotalCount = TotalCount
|
|
6727
|
+
|
|
6728
|
+
@property
|
|
6729
|
+
def EventList(self):
|
|
6730
|
+
return self._EventList
|
|
6731
|
+
|
|
6732
|
+
@EventList.setter
|
|
6733
|
+
def EventList(self, EventList):
|
|
6734
|
+
self._EventList = EventList
|
|
6735
|
+
|
|
6736
|
+
@property
|
|
6737
|
+
def RequestId(self):
|
|
6738
|
+
return self._RequestId
|
|
6739
|
+
|
|
6740
|
+
@RequestId.setter
|
|
6741
|
+
def RequestId(self, RequestId):
|
|
6742
|
+
self._RequestId = RequestId
|
|
6743
|
+
|
|
6744
|
+
|
|
6745
|
+
def _deserialize(self, params):
|
|
6746
|
+
self._TotalCount = params.get("TotalCount")
|
|
6747
|
+
if params.get("EventList") is not None:
|
|
6748
|
+
self._EventList = []
|
|
6749
|
+
for item in params.get("EventList"):
|
|
6750
|
+
obj = AsyncEvent()
|
|
6751
|
+
obj._deserialize(item)
|
|
6752
|
+
self._EventList.append(obj)
|
|
6753
|
+
self._RequestId = params.get("RequestId")
|
|
6754
|
+
|
|
6100
6755
|
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
self._Order = Order
|
|
6756
|
+
class ListCustomDomainsRequest(AbstractModel):
|
|
6757
|
+
"""ListCustomDomains请求参数结构体
|
|
6104
6758
|
|
|
6105
|
-
|
|
6106
|
-
def Orderby(self):
|
|
6107
|
-
return self._Orderby
|
|
6759
|
+
"""
|
|
6108
6760
|
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
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
|
|
6112
6779
|
|
|
6113
6780
|
@property
|
|
6114
6781
|
def Offset(self):
|
|
@@ -6127,31 +6794,41 @@ class ListAsyncEventsRequest(AbstractModel):
|
|
|
6127
6794
|
self._Limit = Limit
|
|
6128
6795
|
|
|
6129
6796
|
@property
|
|
6130
|
-
def
|
|
6131
|
-
return self.
|
|
6797
|
+
def OrderBy(self):
|
|
6798
|
+
return self._OrderBy
|
|
6132
6799
|
|
|
6133
|
-
@
|
|
6134
|
-
def
|
|
6135
|
-
self.
|
|
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
|
|
6136
6819
|
|
|
6137
6820
|
|
|
6138
6821
|
def _deserialize(self, params):
|
|
6139
|
-
self._FunctionName = params.get("FunctionName")
|
|
6140
|
-
self._Namespace = params.get("Namespace")
|
|
6141
|
-
self._Qualifier = params.get("Qualifier")
|
|
6142
|
-
self._InvokeType = params.get("InvokeType")
|
|
6143
|
-
self._Status = params.get("Status")
|
|
6144
|
-
if params.get("StartTimeInterval") is not None:
|
|
6145
|
-
self._StartTimeInterval = TimeInterval()
|
|
6146
|
-
self._StartTimeInterval._deserialize(params.get("StartTimeInterval"))
|
|
6147
|
-
if params.get("EndTimeInterval") is not None:
|
|
6148
|
-
self._EndTimeInterval = TimeInterval()
|
|
6149
|
-
self._EndTimeInterval._deserialize(params.get("EndTimeInterval"))
|
|
6150
|
-
self._Order = params.get("Order")
|
|
6151
|
-
self._Orderby = params.get("Orderby")
|
|
6152
6822
|
self._Offset = params.get("Offset")
|
|
6153
6823
|
self._Limit = params.get("Limit")
|
|
6154
|
-
self.
|
|
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)
|
|
6155
6832
|
memeber_set = set(params.keys())
|
|
6156
6833
|
for name, value in vars(self).items():
|
|
6157
6834
|
property_name = name[1:]
|
|
@@ -6162,39 +6839,40 @@ class ListAsyncEventsRequest(AbstractModel):
|
|
|
6162
6839
|
|
|
6163
6840
|
|
|
6164
6841
|
|
|
6165
|
-
class
|
|
6166
|
-
"""
|
|
6842
|
+
class ListCustomDomainsResponse(AbstractModel):
|
|
6843
|
+
"""ListCustomDomains返回参数结构体
|
|
6167
6844
|
|
|
6168
6845
|
"""
|
|
6169
6846
|
|
|
6170
6847
|
def __init__(self):
|
|
6171
6848
|
r"""
|
|
6172
|
-
:param
|
|
6173
|
-
:type
|
|
6174
|
-
:param
|
|
6175
|
-
|
|
6849
|
+
:param _Total: 总数
|
|
6850
|
+
:type Total: int
|
|
6851
|
+
:param _Domains: 域名列表信息
|
|
6852
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6853
|
+
:type Domains: list of DomainInfo
|
|
6176
6854
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6177
6855
|
:type RequestId: str
|
|
6178
6856
|
"""
|
|
6179
|
-
self.
|
|
6180
|
-
self.
|
|
6857
|
+
self._Total = None
|
|
6858
|
+
self._Domains = None
|
|
6181
6859
|
self._RequestId = None
|
|
6182
6860
|
|
|
6183
6861
|
@property
|
|
6184
|
-
def
|
|
6185
|
-
return self.
|
|
6862
|
+
def Total(self):
|
|
6863
|
+
return self._Total
|
|
6186
6864
|
|
|
6187
|
-
@
|
|
6188
|
-
def
|
|
6189
|
-
self.
|
|
6865
|
+
@Total.setter
|
|
6866
|
+
def Total(self, Total):
|
|
6867
|
+
self._Total = Total
|
|
6190
6868
|
|
|
6191
6869
|
@property
|
|
6192
|
-
def
|
|
6193
|
-
return self.
|
|
6870
|
+
def Domains(self):
|
|
6871
|
+
return self._Domains
|
|
6194
6872
|
|
|
6195
|
-
@
|
|
6196
|
-
def
|
|
6197
|
-
self.
|
|
6873
|
+
@Domains.setter
|
|
6874
|
+
def Domains(self, Domains):
|
|
6875
|
+
self._Domains = Domains
|
|
6198
6876
|
|
|
6199
6877
|
@property
|
|
6200
6878
|
def RequestId(self):
|
|
@@ -6206,13 +6884,13 @@ class ListAsyncEventsResponse(AbstractModel):
|
|
|
6206
6884
|
|
|
6207
6885
|
|
|
6208
6886
|
def _deserialize(self, params):
|
|
6209
|
-
self.
|
|
6210
|
-
if params.get("
|
|
6211
|
-
self.
|
|
6212
|
-
for item in params.get("
|
|
6213
|
-
obj =
|
|
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()
|
|
6214
6892
|
obj._deserialize(item)
|
|
6215
|
-
self.
|
|
6893
|
+
self._Domains.append(obj)
|
|
6216
6894
|
self._RequestId = params.get("RequestId")
|
|
6217
6895
|
|
|
6218
6896
|
|
|
@@ -7672,6 +8350,66 @@ class NamespaceUsage(AbstractModel):
|
|
|
7672
8350
|
|
|
7673
8351
|
|
|
7674
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
|
+
|
|
7675
8413
|
class ProtocolParams(AbstractModel):
|
|
7676
8414
|
"""HTTP函数支持其他访问协议的参数
|
|
7677
8415
|
|
|
@@ -7819,12 +8557,15 @@ class PublishLayerVersionRequest(AbstractModel):
|
|
|
7819
8557
|
:type Description: str
|
|
7820
8558
|
:param _LicenseInfo: 层的软件许可证
|
|
7821
8559
|
:type LicenseInfo: str
|
|
8560
|
+
:param _Tags: 层Tag 参数,以键值对数组形式传入
|
|
8561
|
+
:type Tags: list of Tag
|
|
7822
8562
|
"""
|
|
7823
8563
|
self._LayerName = None
|
|
7824
8564
|
self._CompatibleRuntimes = None
|
|
7825
8565
|
self._Content = None
|
|
7826
8566
|
self._Description = None
|
|
7827
8567
|
self._LicenseInfo = None
|
|
8568
|
+
self._Tags = None
|
|
7828
8569
|
|
|
7829
8570
|
@property
|
|
7830
8571
|
def LayerName(self):
|
|
@@ -7866,6 +8607,14 @@ class PublishLayerVersionRequest(AbstractModel):
|
|
|
7866
8607
|
def LicenseInfo(self, LicenseInfo):
|
|
7867
8608
|
self._LicenseInfo = LicenseInfo
|
|
7868
8609
|
|
|
8610
|
+
@property
|
|
8611
|
+
def Tags(self):
|
|
8612
|
+
return self._Tags
|
|
8613
|
+
|
|
8614
|
+
@Tags.setter
|
|
8615
|
+
def Tags(self, Tags):
|
|
8616
|
+
self._Tags = Tags
|
|
8617
|
+
|
|
7869
8618
|
|
|
7870
8619
|
def _deserialize(self, params):
|
|
7871
8620
|
self._LayerName = params.get("LayerName")
|
|
@@ -7875,6 +8624,12 @@ class PublishLayerVersionRequest(AbstractModel):
|
|
|
7875
8624
|
self._Content._deserialize(params.get("Content"))
|
|
7876
8625
|
self._Description = params.get("Description")
|
|
7877
8626
|
self._LicenseInfo = params.get("LicenseInfo")
|
|
8627
|
+
if params.get("Tags") is not None:
|
|
8628
|
+
self._Tags = []
|
|
8629
|
+
for item in params.get("Tags"):
|
|
8630
|
+
obj = Tag()
|
|
8631
|
+
obj._deserialize(item)
|
|
8632
|
+
self._Tags.append(obj)
|
|
7878
8633
|
memeber_set = set(params.keys())
|
|
7879
8634
|
for name, value in vars(self).items():
|
|
7880
8635
|
property_name = name[1:]
|
|
@@ -9753,6 +10508,121 @@ class UpdateAliasResponse(AbstractModel):
|
|
|
9753
10508
|
self._RequestId = params.get("RequestId")
|
|
9754
10509
|
|
|
9755
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
|
+
|
|
9756
10626
|
class UpdateFunctionCodeRequest(AbstractModel):
|
|
9757
10627
|
"""UpdateFunctionCode请求参数结构体
|
|
9758
10628
|
|
|
@@ -10466,13 +11336,13 @@ class UpdateTriggerRequest(AbstractModel):
|
|
|
10466
11336
|
:type FunctionName: str
|
|
10467
11337
|
:param _TriggerName: 触发器名称
|
|
10468
11338
|
:type TriggerName: str
|
|
10469
|
-
:param _Type:
|
|
11339
|
+
:param _Type: 触发器类型,目前只支持timer、ckafka、http三种类型
|
|
10470
11340
|
:type Type: str
|
|
10471
11341
|
:param _Enable: 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭
|
|
10472
11342
|
:type Enable: str
|
|
10473
|
-
:param _Qualifier:
|
|
11343
|
+
:param _Qualifier: 触发器创建时所指向的函数版本或别名,默认为 $LATEST
|
|
10474
11344
|
:type Qualifier: str
|
|
10475
|
-
:param _Namespace:
|
|
11345
|
+
:param _Namespace: 函数的命名空间,默认值为default
|
|
10476
11346
|
:type Namespace: str
|
|
10477
11347
|
:param _TriggerDesc: TriggerDesc参数
|
|
10478
11348
|
:type TriggerDesc: str
|
|
@@ -10622,11 +11492,11 @@ class UpdateTriggerStatusRequest(AbstractModel):
|
|
|
10622
11492
|
:type FunctionName: str
|
|
10623
11493
|
:param _TriggerName: 触发器名称
|
|
10624
11494
|
:type TriggerName: str
|
|
10625
|
-
:param _Type:
|
|
11495
|
+
:param _Type: 触发器类型,触发器类型,目前只支持 timer、 cos 、 ckafka三种类型
|
|
10626
11496
|
:type Type: str
|
|
10627
|
-
:param _Qualifier:
|
|
11497
|
+
:param _Qualifier: 触发器在创建时所指向的触发别名或版本,默认值为$LATEST
|
|
10628
11498
|
:type Qualifier: str
|
|
10629
|
-
:param _Namespace:
|
|
11499
|
+
:param _Namespace: 函数所在的命名空间,默认值为default
|
|
10630
11500
|
:type Namespace: str
|
|
10631
11501
|
:param _TriggerDesc: 如果更新的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果更新的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
|
|
10632
11502
|
:type TriggerDesc: str
|
|
@@ -11166,4 +12036,51 @@ class WSParams(AbstractModel):
|
|
|
11166
12036
|
memeber_set.remove(property_name)
|
|
11167
12037
|
if len(memeber_set) > 0:
|
|
11168
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))
|
|
11169
12086
|
|