tencentcloud-sdk-python 3.0.1435__py2.py3-none-any.whl → 3.0.1437__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 might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/models.py +2 -2
- tencentcloud/cdn/v20180606/cdn_client.py +0 -575
- tencentcloud/cdn/v20180606/errorcodes.py +0 -48
- tencentcloud/cdn/v20180606/models.py +12881 -21511
- tencentcloud/cfs/v20190719/models.py +16 -18
- tencentcloud/cls/v20201016/models.py +46 -20
- tencentcloud/dlc/v20210125/dlc_client.py +529 -0
- tencentcloud/dlc/v20210125/errorcodes.py +30 -0
- tencentcloud/dlc/v20210125/models.py +7909 -2612
- tencentcloud/emr/v20190103/models.py +2 -2
- tencentcloud/es/v20250101/models.py +70 -0
- tencentcloud/ess/v20201111/ess_client.py +55 -3
- tencentcloud/ess/v20201111/models.py +686 -2
- tencentcloud/hunyuan/v20230901/errorcodes.py +0 -27
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +0 -46
- tencentcloud/hunyuan/v20230901/models.py +0 -357
- tencentcloud/lke/v20231130/models.py +86 -0
- tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
- tencentcloud/mongodb/v20190725/mongodb_client.py +1 -1
- tencentcloud/mps/v20190612/models.py +24 -8
- tencentcloud/mqtt/v20240516/models.py +150 -0
- tencentcloud/ocr/v20181119/models.py +90 -4
- tencentcloud/partners/v20180321/partners_client.py +2 -1
- tencentcloud/postgres/v20170312/models.py +28 -24
- tencentcloud/postgres/v20170312/postgres_client.py +2 -2
- tencentcloud/sqlserver/v20180328/models.py +2 -2
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +1 -1
- tencentcloud/ssl/v20191205/models.py +6 -6
- tencentcloud/tcbr/v20220217/models.py +266 -4
- tencentcloud/tcr/v20190924/models.py +2 -2
- tencentcloud/teo/v20220901/errorcodes.py +24 -0
- tencentcloud/teo/v20220901/models.py +3469 -441
- tencentcloud/teo/v20220901/teo_client.py +469 -2
- tencentcloud/tione/v20211111/models.py +15 -0
- tencentcloud/trtc/v20190722/models.py +70 -6
- tencentcloud/waf/v20180125/models.py +1029 -151
- tencentcloud/waf/v20180125/waf_client.py +92 -0
- tencentcloud/wsa/v20250508/models.py +22 -4
- {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/RECORD +44 -44
- {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,183 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class APIResource(AbstractModel):
|
|
22
|
+
"""API 资源。
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Id: 资源 ID。
|
|
29
|
+
:type Id: str
|
|
30
|
+
:param _Name: 资源名称。
|
|
31
|
+
:type Name: str
|
|
32
|
+
:param _APIServiceIds: API 资源关联的 API 服务 ID 列表。
|
|
33
|
+
:type APIServiceIds: list of str
|
|
34
|
+
:param _Path: 资源路径。
|
|
35
|
+
:type Path: str
|
|
36
|
+
:param _Methods: 请求方法列表。支持以下取值:GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE。
|
|
37
|
+
:type Methods: list of str
|
|
38
|
+
:param _RequestConstraint: 请求内容匹配规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
39
|
+
:type RequestConstraint: str
|
|
40
|
+
"""
|
|
41
|
+
self._Id = None
|
|
42
|
+
self._Name = None
|
|
43
|
+
self._APIServiceIds = None
|
|
44
|
+
self._Path = None
|
|
45
|
+
self._Methods = None
|
|
46
|
+
self._RequestConstraint = None
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def Id(self):
|
|
50
|
+
"""资源 ID。
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._Id
|
|
54
|
+
|
|
55
|
+
@Id.setter
|
|
56
|
+
def Id(self, Id):
|
|
57
|
+
self._Id = Id
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def Name(self):
|
|
61
|
+
"""资源名称。
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._Name
|
|
65
|
+
|
|
66
|
+
@Name.setter
|
|
67
|
+
def Name(self, Name):
|
|
68
|
+
self._Name = Name
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def APIServiceIds(self):
|
|
72
|
+
"""API 资源关联的 API 服务 ID 列表。
|
|
73
|
+
:rtype: list of str
|
|
74
|
+
"""
|
|
75
|
+
return self._APIServiceIds
|
|
76
|
+
|
|
77
|
+
@APIServiceIds.setter
|
|
78
|
+
def APIServiceIds(self, APIServiceIds):
|
|
79
|
+
self._APIServiceIds = APIServiceIds
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def Path(self):
|
|
83
|
+
"""资源路径。
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._Path
|
|
87
|
+
|
|
88
|
+
@Path.setter
|
|
89
|
+
def Path(self, Path):
|
|
90
|
+
self._Path = Path
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def Methods(self):
|
|
94
|
+
"""请求方法列表。支持以下取值:GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE。
|
|
95
|
+
:rtype: list of str
|
|
96
|
+
"""
|
|
97
|
+
return self._Methods
|
|
98
|
+
|
|
99
|
+
@Methods.setter
|
|
100
|
+
def Methods(self, Methods):
|
|
101
|
+
self._Methods = Methods
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def RequestConstraint(self):
|
|
105
|
+
"""请求内容匹配规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._RequestConstraint
|
|
109
|
+
|
|
110
|
+
@RequestConstraint.setter
|
|
111
|
+
def RequestConstraint(self, RequestConstraint):
|
|
112
|
+
self._RequestConstraint = RequestConstraint
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _deserialize(self, params):
|
|
116
|
+
self._Id = params.get("Id")
|
|
117
|
+
self._Name = params.get("Name")
|
|
118
|
+
self._APIServiceIds = params.get("APIServiceIds")
|
|
119
|
+
self._Path = params.get("Path")
|
|
120
|
+
self._Methods = params.get("Methods")
|
|
121
|
+
self._RequestConstraint = params.get("RequestConstraint")
|
|
122
|
+
memeber_set = set(params.keys())
|
|
123
|
+
for name, value in vars(self).items():
|
|
124
|
+
property_name = name[1:]
|
|
125
|
+
if property_name in memeber_set:
|
|
126
|
+
memeber_set.remove(property_name)
|
|
127
|
+
if len(memeber_set) > 0:
|
|
128
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class APIService(AbstractModel):
|
|
133
|
+
"""API 服务配置。
|
|
134
|
+
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
def __init__(self):
|
|
138
|
+
r"""
|
|
139
|
+
:param _Id: API 服务 ID。
|
|
140
|
+
:type Id: str
|
|
141
|
+
:param _Name: API 服务名称。
|
|
142
|
+
:type Name: str
|
|
143
|
+
:param _BasePath: 基础路径。
|
|
144
|
+
:type BasePath: str
|
|
145
|
+
"""
|
|
146
|
+
self._Id = None
|
|
147
|
+
self._Name = None
|
|
148
|
+
self._BasePath = None
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def Id(self):
|
|
152
|
+
"""API 服务 ID。
|
|
153
|
+
:rtype: str
|
|
154
|
+
"""
|
|
155
|
+
return self._Id
|
|
156
|
+
|
|
157
|
+
@Id.setter
|
|
158
|
+
def Id(self, Id):
|
|
159
|
+
self._Id = Id
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def Name(self):
|
|
163
|
+
"""API 服务名称。
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._Name
|
|
167
|
+
|
|
168
|
+
@Name.setter
|
|
169
|
+
def Name(self, Name):
|
|
170
|
+
self._Name = Name
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def BasePath(self):
|
|
174
|
+
"""基础路径。
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._BasePath
|
|
178
|
+
|
|
179
|
+
@BasePath.setter
|
|
180
|
+
def BasePath(self, BasePath):
|
|
181
|
+
self._BasePath = BasePath
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def _deserialize(self, params):
|
|
185
|
+
self._Id = params.get("Id")
|
|
186
|
+
self._Name = params.get("Name")
|
|
187
|
+
self._BasePath = params.get("BasePath")
|
|
188
|
+
memeber_set = set(params.keys())
|
|
189
|
+
for name, value in vars(self).items():
|
|
190
|
+
property_name = name[1:]
|
|
191
|
+
if property_name in memeber_set:
|
|
192
|
+
memeber_set.remove(property_name)
|
|
193
|
+
if len(memeber_set) > 0:
|
|
194
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
21
198
|
class AccelerateMainland(AbstractModel):
|
|
22
199
|
"""中国大陆加速优化配置。
|
|
23
200
|
|
|
@@ -2837,6 +3014,59 @@ class AscriptionInfo(AbstractModel):
|
|
|
2837
3014
|
|
|
2838
3015
|
|
|
2839
3016
|
|
|
3017
|
+
class AudioTemplateInfo(AbstractModel):
|
|
3018
|
+
"""音频流配置参数。
|
|
3019
|
+
|
|
3020
|
+
"""
|
|
3021
|
+
|
|
3022
|
+
def __init__(self):
|
|
3023
|
+
r"""
|
|
3024
|
+
:param _Codec: 音频流的编码格式。可选值为:
|
|
3025
|
+
<li>libfdk_aac。</li>
|
|
3026
|
+
:type Codec: str
|
|
3027
|
+
:param _AudioChannel: 音频通道数,可选值:<li>2:双通道。</li>默认值:2。
|
|
3028
|
+
:type AudioChannel: int
|
|
3029
|
+
"""
|
|
3030
|
+
self._Codec = None
|
|
3031
|
+
self._AudioChannel = None
|
|
3032
|
+
|
|
3033
|
+
@property
|
|
3034
|
+
def Codec(self):
|
|
3035
|
+
"""音频流的编码格式。可选值为:
|
|
3036
|
+
<li>libfdk_aac。</li>
|
|
3037
|
+
:rtype: str
|
|
3038
|
+
"""
|
|
3039
|
+
return self._Codec
|
|
3040
|
+
|
|
3041
|
+
@Codec.setter
|
|
3042
|
+
def Codec(self, Codec):
|
|
3043
|
+
self._Codec = Codec
|
|
3044
|
+
|
|
3045
|
+
@property
|
|
3046
|
+
def AudioChannel(self):
|
|
3047
|
+
"""音频通道数,可选值:<li>2:双通道。</li>默认值:2。
|
|
3048
|
+
:rtype: int
|
|
3049
|
+
"""
|
|
3050
|
+
return self._AudioChannel
|
|
3051
|
+
|
|
3052
|
+
@AudioChannel.setter
|
|
3053
|
+
def AudioChannel(self, AudioChannel):
|
|
3054
|
+
self._AudioChannel = AudioChannel
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
def _deserialize(self, params):
|
|
3058
|
+
self._Codec = params.get("Codec")
|
|
3059
|
+
self._AudioChannel = params.get("AudioChannel")
|
|
3060
|
+
memeber_set = set(params.keys())
|
|
3061
|
+
for name, value in vars(self).items():
|
|
3062
|
+
property_name = name[1:]
|
|
3063
|
+
if property_name in memeber_set:
|
|
3064
|
+
memeber_set.remove(property_name)
|
|
3065
|
+
if len(memeber_set) > 0:
|
|
3066
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
|
|
2840
3070
|
class AuthenticationParameters(AbstractModel):
|
|
2841
3071
|
"""Token 鉴权 配置参数。
|
|
2842
3072
|
|
|
@@ -6218,104 +6448,144 @@ class ClientAttestationRules(AbstractModel):
|
|
|
6218
6448
|
|
|
6219
6449
|
|
|
6220
6450
|
|
|
6221
|
-
class
|
|
6222
|
-
"""
|
|
6451
|
+
class ClientAttester(AbstractModel):
|
|
6452
|
+
"""认证选项配置。
|
|
6223
6453
|
|
|
6224
6454
|
"""
|
|
6225
6455
|
|
|
6226
6456
|
def __init__(self):
|
|
6227
6457
|
r"""
|
|
6228
|
-
:param
|
|
6229
|
-
:type
|
|
6230
|
-
:param
|
|
6231
|
-
:type
|
|
6458
|
+
:param _Id: 认证选项 ID。
|
|
6459
|
+
:type Id: str
|
|
6460
|
+
:param _Name: 认证选项名称。
|
|
6461
|
+
:type Name: str
|
|
6462
|
+
:param _Type: 认证规则类型。仅出参返回,取值有:
|
|
6463
|
+
<li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li>
|
|
6464
|
+
<li>CUSTOM: 用户自定义规则。</li>
|
|
6465
|
+
:type Type: str
|
|
6466
|
+
:param _AttesterSource: 认证方法。取值有:
|
|
6467
|
+
<li>TC-RCE: 使用全栈式风控引擎进行认证;</li>
|
|
6468
|
+
<li>TC-CAPTCHA: 使用天御验证码进行认证。</li>
|
|
6469
|
+
:type AttesterSource: str
|
|
6470
|
+
:param _AttesterDuration: 认证有效时间。默认为 60s,支持的单位有:
|
|
6471
|
+
<li>s:秒,取值范围 60~43200;</li>
|
|
6472
|
+
<li>m:分,取值范围 1~720;</li>
|
|
6473
|
+
<li>h:小时,取值范围 1~12。</li>
|
|
6474
|
+
:type AttesterDuration: str
|
|
6475
|
+
:param _TCRCEOption: TC-RCE 认证的配置信息。
|
|
6476
|
+
<li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
|
|
6477
|
+
:type TCRCEOption: :class:`tencentcloud.teo.v20220901.models.TCRCEOption`
|
|
6478
|
+
:param _TCCaptchaOption: TC-CAPTCHA 认证的配置信息。
|
|
6479
|
+
<li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
|
|
6480
|
+
:type TCCaptchaOption: :class:`tencentcloud.teo.v20220901.models.TCCaptchaOption`
|
|
6232
6481
|
"""
|
|
6233
|
-
self.
|
|
6234
|
-
self.
|
|
6482
|
+
self._Id = None
|
|
6483
|
+
self._Name = None
|
|
6484
|
+
self._Type = None
|
|
6485
|
+
self._AttesterSource = None
|
|
6486
|
+
self._AttesterDuration = None
|
|
6487
|
+
self._TCRCEOption = None
|
|
6488
|
+
self._TCCaptchaOption = None
|
|
6235
6489
|
|
|
6236
6490
|
@property
|
|
6237
|
-
def
|
|
6238
|
-
"""
|
|
6491
|
+
def Id(self):
|
|
6492
|
+
"""认证选项 ID。
|
|
6239
6493
|
:rtype: str
|
|
6240
6494
|
"""
|
|
6241
|
-
return self.
|
|
6495
|
+
return self._Id
|
|
6242
6496
|
|
|
6243
|
-
@
|
|
6244
|
-
def
|
|
6245
|
-
self.
|
|
6497
|
+
@Id.setter
|
|
6498
|
+
def Id(self, Id):
|
|
6499
|
+
self._Id = Id
|
|
6246
6500
|
|
|
6247
6501
|
@property
|
|
6248
|
-
def
|
|
6249
|
-
"""
|
|
6250
|
-
:rtype:
|
|
6502
|
+
def Name(self):
|
|
6503
|
+
"""认证选项名称。
|
|
6504
|
+
:rtype: str
|
|
6251
6505
|
"""
|
|
6252
|
-
return self.
|
|
6253
|
-
|
|
6254
|
-
@Action.setter
|
|
6255
|
-
def Action(self, Action):
|
|
6256
|
-
self._Action = Action
|
|
6506
|
+
return self._Name
|
|
6257
6507
|
|
|
6508
|
+
@Name.setter
|
|
6509
|
+
def Name(self, Name):
|
|
6510
|
+
self._Name = Name
|
|
6258
6511
|
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
if property_name in memeber_set:
|
|
6268
|
-
memeber_set.remove(property_name)
|
|
6269
|
-
if len(memeber_set) > 0:
|
|
6270
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6271
|
-
|
|
6512
|
+
@property
|
|
6513
|
+
def Type(self):
|
|
6514
|
+
"""认证规则类型。仅出参返回,取值有:
|
|
6515
|
+
<li>PRESET: 系统预置规则,仅允许修改 AttesterDuration;</li>
|
|
6516
|
+
<li>CUSTOM: 用户自定义规则。</li>
|
|
6517
|
+
:rtype: str
|
|
6518
|
+
"""
|
|
6519
|
+
return self._Type
|
|
6272
6520
|
|
|
6521
|
+
@Type.setter
|
|
6522
|
+
def Type(self, Type):
|
|
6523
|
+
self._Type = Type
|
|
6273
6524
|
|
|
6274
|
-
|
|
6275
|
-
|
|
6525
|
+
@property
|
|
6526
|
+
def AttesterSource(self):
|
|
6527
|
+
"""认证方法。取值有:
|
|
6528
|
+
<li>TC-RCE: 使用全栈式风控引擎进行认证;</li>
|
|
6529
|
+
<li>TC-CAPTCHA: 使用天御验证码进行认证。</li>
|
|
6530
|
+
:rtype: str
|
|
6531
|
+
"""
|
|
6532
|
+
return self._AttesterSource
|
|
6276
6533
|
|
|
6277
|
-
|
|
6534
|
+
@AttesterSource.setter
|
|
6535
|
+
def AttesterSource(self, AttesterSource):
|
|
6536
|
+
self._AttesterSource = AttesterSource
|
|
6278
6537
|
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
<li>
|
|
6283
|
-
<li>
|
|
6284
|
-
|
|
6285
|
-
:
|
|
6286
|
-
:type HeaderName: str
|
|
6538
|
+
@property
|
|
6539
|
+
def AttesterDuration(self):
|
|
6540
|
+
"""认证有效时间。默认为 60s,支持的单位有:
|
|
6541
|
+
<li>s:秒,取值范围 60~43200;</li>
|
|
6542
|
+
<li>m:分,取值范围 1~720;</li>
|
|
6543
|
+
<li>h:小时,取值范围 1~12。</li>
|
|
6544
|
+
:rtype: str
|
|
6287
6545
|
"""
|
|
6288
|
-
self.
|
|
6289
|
-
|
|
6546
|
+
return self._AttesterDuration
|
|
6547
|
+
|
|
6548
|
+
@AttesterDuration.setter
|
|
6549
|
+
def AttesterDuration(self, AttesterDuration):
|
|
6550
|
+
self._AttesterDuration = AttesterDuration
|
|
6290
6551
|
|
|
6291
6552
|
@property
|
|
6292
|
-
def
|
|
6293
|
-
"""
|
|
6294
|
-
<li
|
|
6295
|
-
|
|
6296
|
-
:rtype: str
|
|
6553
|
+
def TCRCEOption(self):
|
|
6554
|
+
"""TC-RCE 认证的配置信息。
|
|
6555
|
+
<li>当 AttesterSource 参数值为 TC-RCE 时,此字段必填。</li>
|
|
6556
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.TCRCEOption`
|
|
6297
6557
|
"""
|
|
6298
|
-
return self.
|
|
6558
|
+
return self._TCRCEOption
|
|
6299
6559
|
|
|
6300
|
-
@
|
|
6301
|
-
def
|
|
6302
|
-
self.
|
|
6560
|
+
@TCRCEOption.setter
|
|
6561
|
+
def TCRCEOption(self, TCRCEOption):
|
|
6562
|
+
self._TCRCEOption = TCRCEOption
|
|
6303
6563
|
|
|
6304
6564
|
@property
|
|
6305
|
-
def
|
|
6306
|
-
"""
|
|
6307
|
-
|
|
6565
|
+
def TCCaptchaOption(self):
|
|
6566
|
+
"""TC-CAPTCHA 认证的配置信息。
|
|
6567
|
+
<li>当 AttesterSource 参数值为 TC-CAPTCHA 时,此字段必填。</li>
|
|
6568
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.TCCaptchaOption`
|
|
6308
6569
|
"""
|
|
6309
|
-
return self.
|
|
6570
|
+
return self._TCCaptchaOption
|
|
6310
6571
|
|
|
6311
|
-
@
|
|
6312
|
-
def
|
|
6313
|
-
self.
|
|
6572
|
+
@TCCaptchaOption.setter
|
|
6573
|
+
def TCCaptchaOption(self, TCCaptchaOption):
|
|
6574
|
+
self._TCCaptchaOption = TCCaptchaOption
|
|
6314
6575
|
|
|
6315
6576
|
|
|
6316
6577
|
def _deserialize(self, params):
|
|
6317
|
-
self.
|
|
6318
|
-
self.
|
|
6578
|
+
self._Id = params.get("Id")
|
|
6579
|
+
self._Name = params.get("Name")
|
|
6580
|
+
self._Type = params.get("Type")
|
|
6581
|
+
self._AttesterSource = params.get("AttesterSource")
|
|
6582
|
+
self._AttesterDuration = params.get("AttesterDuration")
|
|
6583
|
+
if params.get("TCRCEOption") is not None:
|
|
6584
|
+
self._TCRCEOption = TCRCEOption()
|
|
6585
|
+
self._TCRCEOption._deserialize(params.get("TCRCEOption"))
|
|
6586
|
+
if params.get("TCCaptchaOption") is not None:
|
|
6587
|
+
self._TCCaptchaOption = TCCaptchaOption()
|
|
6588
|
+
self._TCCaptchaOption._deserialize(params.get("TCCaptchaOption"))
|
|
6319
6589
|
memeber_set = set(params.keys())
|
|
6320
6590
|
for name, value in vars(self).items():
|
|
6321
6591
|
property_name = name[1:]
|
|
@@ -6326,51 +6596,49 @@ class ClientIPCountryParameters(AbstractModel):
|
|
|
6326
6596
|
|
|
6327
6597
|
|
|
6328
6598
|
|
|
6329
|
-
class
|
|
6330
|
-
"""
|
|
6599
|
+
class ClientFiltering(AbstractModel):
|
|
6600
|
+
"""智能客户端过滤
|
|
6331
6601
|
|
|
6332
6602
|
"""
|
|
6333
6603
|
|
|
6334
6604
|
def __init__(self):
|
|
6335
6605
|
r"""
|
|
6336
|
-
:param
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
:type
|
|
6340
|
-
:param _HeaderName: 回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。
|
|
6341
|
-
:type HeaderName: str
|
|
6606
|
+
:param _Enabled: 智能客户端过滤是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
6607
|
+
:type Enabled: str
|
|
6608
|
+
:param _Action: 智能客户端过滤的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name仅支持JSChallenge。</li>
|
|
6609
|
+
:type Action: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
6342
6610
|
"""
|
|
6343
|
-
self.
|
|
6344
|
-
self.
|
|
6611
|
+
self._Enabled = None
|
|
6612
|
+
self._Action = None
|
|
6345
6613
|
|
|
6346
6614
|
@property
|
|
6347
|
-
def
|
|
6348
|
-
"""
|
|
6349
|
-
<li>on:开启;</li>
|
|
6350
|
-
<li>off:关闭。</li>
|
|
6615
|
+
def Enabled(self):
|
|
6616
|
+
"""智能客户端过滤是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
6351
6617
|
:rtype: str
|
|
6352
6618
|
"""
|
|
6353
|
-
return self.
|
|
6619
|
+
return self._Enabled
|
|
6354
6620
|
|
|
6355
|
-
@
|
|
6356
|
-
def
|
|
6357
|
-
self.
|
|
6621
|
+
@Enabled.setter
|
|
6622
|
+
def Enabled(self, Enabled):
|
|
6623
|
+
self._Enabled = Enabled
|
|
6358
6624
|
|
|
6359
6625
|
@property
|
|
6360
|
-
def
|
|
6361
|
-
"""
|
|
6362
|
-
:rtype:
|
|
6626
|
+
def Action(self):
|
|
6627
|
+
"""智能客户端过滤的处置方式,当 Enabled 为 on 时,此字段必填。SecurityAction 的 Name 取值支持:<li>Monitor:观察;</li><li>Deny:拦截;</li><li>Challenge:挑战,其中ChallengeActionParameters.Name仅支持JSChallenge。</li>
|
|
6628
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
6363
6629
|
"""
|
|
6364
|
-
return self.
|
|
6630
|
+
return self._Action
|
|
6365
6631
|
|
|
6366
|
-
@
|
|
6367
|
-
def
|
|
6368
|
-
self.
|
|
6632
|
+
@Action.setter
|
|
6633
|
+
def Action(self, Action):
|
|
6634
|
+
self._Action = Action
|
|
6369
6635
|
|
|
6370
6636
|
|
|
6371
6637
|
def _deserialize(self, params):
|
|
6372
|
-
self.
|
|
6373
|
-
|
|
6638
|
+
self._Enabled = params.get("Enabled")
|
|
6639
|
+
if params.get("Action") is not None:
|
|
6640
|
+
self._Action = SecurityAction()
|
|
6641
|
+
self._Action._deserialize(params.get("Action"))
|
|
6374
6642
|
memeber_set = set(params.keys())
|
|
6375
6643
|
for name, value in vars(self).items():
|
|
6376
6644
|
property_name = name[1:]
|
|
@@ -6381,8 +6649,8 @@ class ClientIPHeaderParameters(AbstractModel):
|
|
|
6381
6649
|
|
|
6382
6650
|
|
|
6383
6651
|
|
|
6384
|
-
class
|
|
6385
|
-
"""回源时携带客户端IP所属地域信息,值的格式为ISO-3166-1两位字母代码。
|
|
6652
|
+
class ClientIPCountryParameters(AbstractModel):
|
|
6653
|
+
"""回源时携带客户端 IP 所属地域信息,值的格式为 ISO-3166-1 两位字母代码。
|
|
6386
6654
|
|
|
6387
6655
|
"""
|
|
6388
6656
|
|
|
@@ -6392,8 +6660,7 @@ class ClientIpCountry(AbstractModel):
|
|
|
6392
6660
|
<li>on:开启;</li>
|
|
6393
6661
|
<li>off:关闭。</li>
|
|
6394
6662
|
:type Switch: str
|
|
6395
|
-
:param _HeaderName: 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on
|
|
6396
|
-
为空则使用默认值:EO-Client-IPCountry。
|
|
6663
|
+
:param _HeaderName: 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。为空则使用默认值:EO-Client-IPCountry。
|
|
6397
6664
|
:type HeaderName: str
|
|
6398
6665
|
"""
|
|
6399
6666
|
self._Switch = None
|
|
@@ -6414,8 +6681,119 @@ class ClientIpCountry(AbstractModel):
|
|
|
6414
6681
|
|
|
6415
6682
|
@property
|
|
6416
6683
|
def HeaderName(self):
|
|
6417
|
-
"""存放客户端 IP 所属地域信息的请求头名称,当 Switch=on
|
|
6418
|
-
|
|
6684
|
+
"""存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。为空则使用默认值:EO-Client-IPCountry。
|
|
6685
|
+
:rtype: str
|
|
6686
|
+
"""
|
|
6687
|
+
return self._HeaderName
|
|
6688
|
+
|
|
6689
|
+
@HeaderName.setter
|
|
6690
|
+
def HeaderName(self, HeaderName):
|
|
6691
|
+
self._HeaderName = HeaderName
|
|
6692
|
+
|
|
6693
|
+
|
|
6694
|
+
def _deserialize(self, params):
|
|
6695
|
+
self._Switch = params.get("Switch")
|
|
6696
|
+
self._HeaderName = params.get("HeaderName")
|
|
6697
|
+
memeber_set = set(params.keys())
|
|
6698
|
+
for name, value in vars(self).items():
|
|
6699
|
+
property_name = name[1:]
|
|
6700
|
+
if property_name in memeber_set:
|
|
6701
|
+
memeber_set.remove(property_name)
|
|
6702
|
+
if len(memeber_set) > 0:
|
|
6703
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6704
|
+
|
|
6705
|
+
|
|
6706
|
+
|
|
6707
|
+
class ClientIPHeaderParameters(AbstractModel):
|
|
6708
|
+
"""存储客户端请求IP的头部信息配置。
|
|
6709
|
+
|
|
6710
|
+
"""
|
|
6711
|
+
|
|
6712
|
+
def __init__(self):
|
|
6713
|
+
r"""
|
|
6714
|
+
:param _Switch: 配置开关,取值有:
|
|
6715
|
+
<li>on:开启;</li>
|
|
6716
|
+
<li>off:关闭。</li>
|
|
6717
|
+
:type Switch: str
|
|
6718
|
+
:param _HeaderName: 回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。
|
|
6719
|
+
:type HeaderName: str
|
|
6720
|
+
"""
|
|
6721
|
+
self._Switch = None
|
|
6722
|
+
self._HeaderName = None
|
|
6723
|
+
|
|
6724
|
+
@property
|
|
6725
|
+
def Switch(self):
|
|
6726
|
+
"""配置开关,取值有:
|
|
6727
|
+
<li>on:开启;</li>
|
|
6728
|
+
<li>off:关闭。</li>
|
|
6729
|
+
:rtype: str
|
|
6730
|
+
"""
|
|
6731
|
+
return self._Switch
|
|
6732
|
+
|
|
6733
|
+
@Switch.setter
|
|
6734
|
+
def Switch(self, Switch):
|
|
6735
|
+
self._Switch = Switch
|
|
6736
|
+
|
|
6737
|
+
@property
|
|
6738
|
+
def HeaderName(self):
|
|
6739
|
+
"""回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。
|
|
6740
|
+
:rtype: str
|
|
6741
|
+
"""
|
|
6742
|
+
return self._HeaderName
|
|
6743
|
+
|
|
6744
|
+
@HeaderName.setter
|
|
6745
|
+
def HeaderName(self, HeaderName):
|
|
6746
|
+
self._HeaderName = HeaderName
|
|
6747
|
+
|
|
6748
|
+
|
|
6749
|
+
def _deserialize(self, params):
|
|
6750
|
+
self._Switch = params.get("Switch")
|
|
6751
|
+
self._HeaderName = params.get("HeaderName")
|
|
6752
|
+
memeber_set = set(params.keys())
|
|
6753
|
+
for name, value in vars(self).items():
|
|
6754
|
+
property_name = name[1:]
|
|
6755
|
+
if property_name in memeber_set:
|
|
6756
|
+
memeber_set.remove(property_name)
|
|
6757
|
+
if len(memeber_set) > 0:
|
|
6758
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6759
|
+
|
|
6760
|
+
|
|
6761
|
+
|
|
6762
|
+
class ClientIpCountry(AbstractModel):
|
|
6763
|
+
"""回源时携带客户端IP所属地域信息,值的格式为ISO-3166-1两位字母代码。
|
|
6764
|
+
|
|
6765
|
+
"""
|
|
6766
|
+
|
|
6767
|
+
def __init__(self):
|
|
6768
|
+
r"""
|
|
6769
|
+
:param _Switch: 配置开关,取值有:
|
|
6770
|
+
<li>on:开启;</li>
|
|
6771
|
+
<li>off:关闭。</li>
|
|
6772
|
+
:type Switch: str
|
|
6773
|
+
:param _HeaderName: 存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。
|
|
6774
|
+
为空则使用默认值:EO-Client-IPCountry。
|
|
6775
|
+
:type HeaderName: str
|
|
6776
|
+
"""
|
|
6777
|
+
self._Switch = None
|
|
6778
|
+
self._HeaderName = None
|
|
6779
|
+
|
|
6780
|
+
@property
|
|
6781
|
+
def Switch(self):
|
|
6782
|
+
"""配置开关,取值有:
|
|
6783
|
+
<li>on:开启;</li>
|
|
6784
|
+
<li>off:关闭。</li>
|
|
6785
|
+
:rtype: str
|
|
6786
|
+
"""
|
|
6787
|
+
return self._Switch
|
|
6788
|
+
|
|
6789
|
+
@Switch.setter
|
|
6790
|
+
def Switch(self, Switch):
|
|
6791
|
+
self._Switch = Switch
|
|
6792
|
+
|
|
6793
|
+
@property
|
|
6794
|
+
def HeaderName(self):
|
|
6795
|
+
"""存放客户端 IP 所属地域信息的请求头名称,当 Switch=on 时有效。
|
|
6796
|
+
为空则使用默认值:EO-Client-IPCountry。
|
|
6419
6797
|
:rtype: str
|
|
6420
6798
|
"""
|
|
6421
6799
|
return self._HeaderName
|
|
@@ -8834,6 +9212,187 @@ class CreateFunctionRuleResponse(AbstractModel):
|
|
|
8834
9212
|
self._RequestId = params.get("RequestId")
|
|
8835
9213
|
|
|
8836
9214
|
|
|
9215
|
+
class CreateJustInTimeTranscodeTemplateRequest(AbstractModel):
|
|
9216
|
+
"""CreateJustInTimeTranscodeTemplate请求参数结构体
|
|
9217
|
+
|
|
9218
|
+
"""
|
|
9219
|
+
|
|
9220
|
+
def __init__(self):
|
|
9221
|
+
r"""
|
|
9222
|
+
:param _ZoneId: 站点ID。
|
|
9223
|
+
:type ZoneId: str
|
|
9224
|
+
:param _TemplateName: 即时转码模板名称,长度限制:64 个字符。
|
|
9225
|
+
:type TemplateName: str
|
|
9226
|
+
:param _Comment: 模板描述信息,长度限制:256 个字符。默认为空。
|
|
9227
|
+
:type Comment: str
|
|
9228
|
+
:param _VideoStreamSwitch: 启用视频流开关,取值:
|
|
9229
|
+
<li>on:开启;</li>
|
|
9230
|
+
<li>off:关闭。</li>默认值:on。
|
|
9231
|
+
:type VideoStreamSwitch: str
|
|
9232
|
+
:param _AudioStreamSwitch: 启用音频流开关,取值:
|
|
9233
|
+
<li>on:开启;</li>
|
|
9234
|
+
<li>off:关闭。</li>默认值:on。
|
|
9235
|
+
:type AudioStreamSwitch: str
|
|
9236
|
+
:param _VideoTemplate: 视频流配置参数,当 VideoStreamSwitch 为 on,该字段必填。
|
|
9237
|
+
:type VideoTemplate: :class:`tencentcloud.teo.v20220901.models.VideoTemplateInfo`
|
|
9238
|
+
:param _AudioTemplate: 音频流配置参数,当 AudioStreamSwitch 为 on,该字段必填。
|
|
9239
|
+
:type AudioTemplate: :class:`tencentcloud.teo.v20220901.models.AudioTemplateInfo`
|
|
9240
|
+
"""
|
|
9241
|
+
self._ZoneId = None
|
|
9242
|
+
self._TemplateName = None
|
|
9243
|
+
self._Comment = None
|
|
9244
|
+
self._VideoStreamSwitch = None
|
|
9245
|
+
self._AudioStreamSwitch = None
|
|
9246
|
+
self._VideoTemplate = None
|
|
9247
|
+
self._AudioTemplate = None
|
|
9248
|
+
|
|
9249
|
+
@property
|
|
9250
|
+
def ZoneId(self):
|
|
9251
|
+
"""站点ID。
|
|
9252
|
+
:rtype: str
|
|
9253
|
+
"""
|
|
9254
|
+
return self._ZoneId
|
|
9255
|
+
|
|
9256
|
+
@ZoneId.setter
|
|
9257
|
+
def ZoneId(self, ZoneId):
|
|
9258
|
+
self._ZoneId = ZoneId
|
|
9259
|
+
|
|
9260
|
+
@property
|
|
9261
|
+
def TemplateName(self):
|
|
9262
|
+
"""即时转码模板名称,长度限制:64 个字符。
|
|
9263
|
+
:rtype: str
|
|
9264
|
+
"""
|
|
9265
|
+
return self._TemplateName
|
|
9266
|
+
|
|
9267
|
+
@TemplateName.setter
|
|
9268
|
+
def TemplateName(self, TemplateName):
|
|
9269
|
+
self._TemplateName = TemplateName
|
|
9270
|
+
|
|
9271
|
+
@property
|
|
9272
|
+
def Comment(self):
|
|
9273
|
+
"""模板描述信息,长度限制:256 个字符。默认为空。
|
|
9274
|
+
:rtype: str
|
|
9275
|
+
"""
|
|
9276
|
+
return self._Comment
|
|
9277
|
+
|
|
9278
|
+
@Comment.setter
|
|
9279
|
+
def Comment(self, Comment):
|
|
9280
|
+
self._Comment = Comment
|
|
9281
|
+
|
|
9282
|
+
@property
|
|
9283
|
+
def VideoStreamSwitch(self):
|
|
9284
|
+
"""启用视频流开关,取值:
|
|
9285
|
+
<li>on:开启;</li>
|
|
9286
|
+
<li>off:关闭。</li>默认值:on。
|
|
9287
|
+
:rtype: str
|
|
9288
|
+
"""
|
|
9289
|
+
return self._VideoStreamSwitch
|
|
9290
|
+
|
|
9291
|
+
@VideoStreamSwitch.setter
|
|
9292
|
+
def VideoStreamSwitch(self, VideoStreamSwitch):
|
|
9293
|
+
self._VideoStreamSwitch = VideoStreamSwitch
|
|
9294
|
+
|
|
9295
|
+
@property
|
|
9296
|
+
def AudioStreamSwitch(self):
|
|
9297
|
+
"""启用音频流开关,取值:
|
|
9298
|
+
<li>on:开启;</li>
|
|
9299
|
+
<li>off:关闭。</li>默认值:on。
|
|
9300
|
+
:rtype: str
|
|
9301
|
+
"""
|
|
9302
|
+
return self._AudioStreamSwitch
|
|
9303
|
+
|
|
9304
|
+
@AudioStreamSwitch.setter
|
|
9305
|
+
def AudioStreamSwitch(self, AudioStreamSwitch):
|
|
9306
|
+
self._AudioStreamSwitch = AudioStreamSwitch
|
|
9307
|
+
|
|
9308
|
+
@property
|
|
9309
|
+
def VideoTemplate(self):
|
|
9310
|
+
"""视频流配置参数,当 VideoStreamSwitch 为 on,该字段必填。
|
|
9311
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.VideoTemplateInfo`
|
|
9312
|
+
"""
|
|
9313
|
+
return self._VideoTemplate
|
|
9314
|
+
|
|
9315
|
+
@VideoTemplate.setter
|
|
9316
|
+
def VideoTemplate(self, VideoTemplate):
|
|
9317
|
+
self._VideoTemplate = VideoTemplate
|
|
9318
|
+
|
|
9319
|
+
@property
|
|
9320
|
+
def AudioTemplate(self):
|
|
9321
|
+
"""音频流配置参数,当 AudioStreamSwitch 为 on,该字段必填。
|
|
9322
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.AudioTemplateInfo`
|
|
9323
|
+
"""
|
|
9324
|
+
return self._AudioTemplate
|
|
9325
|
+
|
|
9326
|
+
@AudioTemplate.setter
|
|
9327
|
+
def AudioTemplate(self, AudioTemplate):
|
|
9328
|
+
self._AudioTemplate = AudioTemplate
|
|
9329
|
+
|
|
9330
|
+
|
|
9331
|
+
def _deserialize(self, params):
|
|
9332
|
+
self._ZoneId = params.get("ZoneId")
|
|
9333
|
+
self._TemplateName = params.get("TemplateName")
|
|
9334
|
+
self._Comment = params.get("Comment")
|
|
9335
|
+
self._VideoStreamSwitch = params.get("VideoStreamSwitch")
|
|
9336
|
+
self._AudioStreamSwitch = params.get("AudioStreamSwitch")
|
|
9337
|
+
if params.get("VideoTemplate") is not None:
|
|
9338
|
+
self._VideoTemplate = VideoTemplateInfo()
|
|
9339
|
+
self._VideoTemplate._deserialize(params.get("VideoTemplate"))
|
|
9340
|
+
if params.get("AudioTemplate") is not None:
|
|
9341
|
+
self._AudioTemplate = AudioTemplateInfo()
|
|
9342
|
+
self._AudioTemplate._deserialize(params.get("AudioTemplate"))
|
|
9343
|
+
memeber_set = set(params.keys())
|
|
9344
|
+
for name, value in vars(self).items():
|
|
9345
|
+
property_name = name[1:]
|
|
9346
|
+
if property_name in memeber_set:
|
|
9347
|
+
memeber_set.remove(property_name)
|
|
9348
|
+
if len(memeber_set) > 0:
|
|
9349
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9350
|
+
|
|
9351
|
+
|
|
9352
|
+
|
|
9353
|
+
class CreateJustInTimeTranscodeTemplateResponse(AbstractModel):
|
|
9354
|
+
"""CreateJustInTimeTranscodeTemplate返回参数结构体
|
|
9355
|
+
|
|
9356
|
+
"""
|
|
9357
|
+
|
|
9358
|
+
def __init__(self):
|
|
9359
|
+
r"""
|
|
9360
|
+
:param _TemplateId: 即时转码模板唯一标识,用于即时转码 URL 拼接。
|
|
9361
|
+
:type TemplateId: str
|
|
9362
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9363
|
+
:type RequestId: str
|
|
9364
|
+
"""
|
|
9365
|
+
self._TemplateId = None
|
|
9366
|
+
self._RequestId = None
|
|
9367
|
+
|
|
9368
|
+
@property
|
|
9369
|
+
def TemplateId(self):
|
|
9370
|
+
"""即时转码模板唯一标识,用于即时转码 URL 拼接。
|
|
9371
|
+
:rtype: str
|
|
9372
|
+
"""
|
|
9373
|
+
return self._TemplateId
|
|
9374
|
+
|
|
9375
|
+
@TemplateId.setter
|
|
9376
|
+
def TemplateId(self, TemplateId):
|
|
9377
|
+
self._TemplateId = TemplateId
|
|
9378
|
+
|
|
9379
|
+
@property
|
|
9380
|
+
def RequestId(self):
|
|
9381
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9382
|
+
:rtype: str
|
|
9383
|
+
"""
|
|
9384
|
+
return self._RequestId
|
|
9385
|
+
|
|
9386
|
+
@RequestId.setter
|
|
9387
|
+
def RequestId(self, RequestId):
|
|
9388
|
+
self._RequestId = RequestId
|
|
9389
|
+
|
|
9390
|
+
|
|
9391
|
+
def _deserialize(self, params):
|
|
9392
|
+
self._TemplateId = params.get("TemplateId")
|
|
9393
|
+
self._RequestId = params.get("RequestId")
|
|
9394
|
+
|
|
9395
|
+
|
|
8837
9396
|
class CreateL4ProxyRequest(AbstractModel):
|
|
8838
9397
|
"""CreateL4Proxy请求参数结构体
|
|
8839
9398
|
|
|
@@ -10652,15 +11211,17 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10652
11211
|
:param _TaskType: 实时日志投递任务类型,取值有:
|
|
10653
11212
|
<li>cls: 推送到腾讯云 CLS;</li>
|
|
10654
11213
|
<li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li>
|
|
10655
|
-
<li>s3:推送到 AWS S3
|
|
11214
|
+
<li>s3:推送到 AWS S3 兼容存储桶地址;</li>
|
|
10656
11215
|
:type TaskType: str
|
|
10657
|
-
:param _EntityList:
|
|
10658
|
-
<li>七层域名:domain.example.com
|
|
10659
|
-
<li>四层代理实例:sid-2s69eb5wcms7
|
|
11216
|
+
:param _EntityList: 实时日志投递任务对应的实体列表。取值示例如下:
|
|
11217
|
+
<li>七层域名:domain.example.com</li>
|
|
11218
|
+
<li>四层代理实例:sid-2s69eb5wcms7</li>
|
|
11219
|
+
<li>边缘函数实例:test-zone-2mxigizoh9l9-1257626257</li>
|
|
10660
11220
|
:type EntityList: list of str
|
|
10661
11221
|
:param _LogType: 数据投递类型,取值有:
|
|
10662
11222
|
<li>domain:站点加速日志;</li>
|
|
10663
11223
|
<li>application:四层代理日志;</li>
|
|
11224
|
+
<li>function:边缘函数运行日志;</li>
|
|
10664
11225
|
<li>web-rateLiming:速率限制和 CC 攻击防护日志;</li>
|
|
10665
11226
|
<li>web-attack:托管规则日志;</li>
|
|
10666
11227
|
<li>web-rule:自定义规则日志;</li>
|
|
@@ -10670,7 +11231,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10670
11231
|
<li>mainland:中国大陆境内;</li>
|
|
10671
11232
|
<li>overseas:全球(不含中国大陆)。</li>
|
|
10672
11233
|
:type Area: str
|
|
10673
|
-
:param _Fields:
|
|
11234
|
+
:param _Fields: 投递的预设字段列表。取值参考:
|
|
11235
|
+
<li>[站点加速日志(七层访问日志)](https://cloud.tencent.com/document/product/1552/105791)</li>
|
|
11236
|
+
<li>[四层代理日志](https://cloud.tencent.com/document/product/1552/105792)</li>
|
|
11237
|
+
<li>[边缘函数运行日志](https://cloud.tencent.com/document/product/1552/115585)</li>
|
|
10674
11238
|
:type Fields: list of str
|
|
10675
11239
|
:param _CustomFields: 投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie、请求正文中提取指定内容。自定义字段名称不能重复,且最多不能超过 200 个字段。单个实时日志推送任务最多添加 5 个请求正文类型的自定义字段。目前仅站点加速日志(LogType=domain)支持添加自定义字段。
|
|
10676
11240
|
:type CustomFields: list of CustomField
|
|
@@ -10731,7 +11295,7 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10731
11295
|
"""实时日志投递任务类型,取值有:
|
|
10732
11296
|
<li>cls: 推送到腾讯云 CLS;</li>
|
|
10733
11297
|
<li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li>
|
|
10734
|
-
<li>s3:推送到 AWS S3
|
|
11298
|
+
<li>s3:推送到 AWS S3 兼容存储桶地址;</li>
|
|
10735
11299
|
:rtype: str
|
|
10736
11300
|
"""
|
|
10737
11301
|
return self._TaskType
|
|
@@ -10742,9 +11306,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10742
11306
|
|
|
10743
11307
|
@property
|
|
10744
11308
|
def EntityList(self):
|
|
10745
|
-
"""
|
|
10746
|
-
<li>七层域名:domain.example.com
|
|
10747
|
-
<li>四层代理实例:sid-2s69eb5wcms7
|
|
11309
|
+
"""实时日志投递任务对应的实体列表。取值示例如下:
|
|
11310
|
+
<li>七层域名:domain.example.com</li>
|
|
11311
|
+
<li>四层代理实例:sid-2s69eb5wcms7</li>
|
|
11312
|
+
<li>边缘函数实例:test-zone-2mxigizoh9l9-1257626257</li>
|
|
10748
11313
|
:rtype: list of str
|
|
10749
11314
|
"""
|
|
10750
11315
|
return self._EntityList
|
|
@@ -10758,6 +11323,7 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10758
11323
|
"""数据投递类型,取值有:
|
|
10759
11324
|
<li>domain:站点加速日志;</li>
|
|
10760
11325
|
<li>application:四层代理日志;</li>
|
|
11326
|
+
<li>function:边缘函数运行日志;</li>
|
|
10761
11327
|
<li>web-rateLiming:速率限制和 CC 攻击防护日志;</li>
|
|
10762
11328
|
<li>web-attack:托管规则日志;</li>
|
|
10763
11329
|
<li>web-rule:自定义规则日志;</li>
|
|
@@ -10785,7 +11351,10 @@ class CreateRealtimeLogDeliveryTaskRequest(AbstractModel):
|
|
|
10785
11351
|
|
|
10786
11352
|
@property
|
|
10787
11353
|
def Fields(self):
|
|
10788
|
-
"""
|
|
11354
|
+
"""投递的预设字段列表。取值参考:
|
|
11355
|
+
<li>[站点加速日志(七层访问日志)](https://cloud.tencent.com/document/product/1552/105791)</li>
|
|
11356
|
+
<li>[四层代理日志](https://cloud.tencent.com/document/product/1552/105792)</li>
|
|
11357
|
+
<li>[边缘函数运行日志](https://cloud.tencent.com/document/product/1552/115585)</li>
|
|
10789
11358
|
:rtype: list of str
|
|
10790
11359
|
"""
|
|
10791
11360
|
return self._Fields
|
|
@@ -11108,6 +11677,303 @@ class CreateRuleResponse(AbstractModel):
|
|
|
11108
11677
|
self._RequestId = params.get("RequestId")
|
|
11109
11678
|
|
|
11110
11679
|
|
|
11680
|
+
class CreateSecurityAPIResourceRequest(AbstractModel):
|
|
11681
|
+
"""CreateSecurityAPIResource请求参数结构体
|
|
11682
|
+
|
|
11683
|
+
"""
|
|
11684
|
+
|
|
11685
|
+
def __init__(self):
|
|
11686
|
+
r"""
|
|
11687
|
+
:param _ZoneId: 站点 ID。
|
|
11688
|
+
:type ZoneId: str
|
|
11689
|
+
:param _APIResources: API 资源列表。
|
|
11690
|
+
:type APIResources: list of APIResource
|
|
11691
|
+
"""
|
|
11692
|
+
self._ZoneId = None
|
|
11693
|
+
self._APIResources = None
|
|
11694
|
+
|
|
11695
|
+
@property
|
|
11696
|
+
def ZoneId(self):
|
|
11697
|
+
"""站点 ID。
|
|
11698
|
+
:rtype: str
|
|
11699
|
+
"""
|
|
11700
|
+
return self._ZoneId
|
|
11701
|
+
|
|
11702
|
+
@ZoneId.setter
|
|
11703
|
+
def ZoneId(self, ZoneId):
|
|
11704
|
+
self._ZoneId = ZoneId
|
|
11705
|
+
|
|
11706
|
+
@property
|
|
11707
|
+
def APIResources(self):
|
|
11708
|
+
""" API 资源列表。
|
|
11709
|
+
:rtype: list of APIResource
|
|
11710
|
+
"""
|
|
11711
|
+
return self._APIResources
|
|
11712
|
+
|
|
11713
|
+
@APIResources.setter
|
|
11714
|
+
def APIResources(self, APIResources):
|
|
11715
|
+
self._APIResources = APIResources
|
|
11716
|
+
|
|
11717
|
+
|
|
11718
|
+
def _deserialize(self, params):
|
|
11719
|
+
self._ZoneId = params.get("ZoneId")
|
|
11720
|
+
if params.get("APIResources") is not None:
|
|
11721
|
+
self._APIResources = []
|
|
11722
|
+
for item in params.get("APIResources"):
|
|
11723
|
+
obj = APIResource()
|
|
11724
|
+
obj._deserialize(item)
|
|
11725
|
+
self._APIResources.append(obj)
|
|
11726
|
+
memeber_set = set(params.keys())
|
|
11727
|
+
for name, value in vars(self).items():
|
|
11728
|
+
property_name = name[1:]
|
|
11729
|
+
if property_name in memeber_set:
|
|
11730
|
+
memeber_set.remove(property_name)
|
|
11731
|
+
if len(memeber_set) > 0:
|
|
11732
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11733
|
+
|
|
11734
|
+
|
|
11735
|
+
|
|
11736
|
+
class CreateSecurityAPIResourceResponse(AbstractModel):
|
|
11737
|
+
"""CreateSecurityAPIResource返回参数结构体
|
|
11738
|
+
|
|
11739
|
+
"""
|
|
11740
|
+
|
|
11741
|
+
def __init__(self):
|
|
11742
|
+
r"""
|
|
11743
|
+
:param _APIResourceIds: API 资源 ID 列表。
|
|
11744
|
+
:type APIResourceIds: list of str
|
|
11745
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11746
|
+
:type RequestId: str
|
|
11747
|
+
"""
|
|
11748
|
+
self._APIResourceIds = None
|
|
11749
|
+
self._RequestId = None
|
|
11750
|
+
|
|
11751
|
+
@property
|
|
11752
|
+
def APIResourceIds(self):
|
|
11753
|
+
"""API 资源 ID 列表。
|
|
11754
|
+
:rtype: list of str
|
|
11755
|
+
"""
|
|
11756
|
+
return self._APIResourceIds
|
|
11757
|
+
|
|
11758
|
+
@APIResourceIds.setter
|
|
11759
|
+
def APIResourceIds(self, APIResourceIds):
|
|
11760
|
+
self._APIResourceIds = APIResourceIds
|
|
11761
|
+
|
|
11762
|
+
@property
|
|
11763
|
+
def RequestId(self):
|
|
11764
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11765
|
+
:rtype: str
|
|
11766
|
+
"""
|
|
11767
|
+
return self._RequestId
|
|
11768
|
+
|
|
11769
|
+
@RequestId.setter
|
|
11770
|
+
def RequestId(self, RequestId):
|
|
11771
|
+
self._RequestId = RequestId
|
|
11772
|
+
|
|
11773
|
+
|
|
11774
|
+
def _deserialize(self, params):
|
|
11775
|
+
self._APIResourceIds = params.get("APIResourceIds")
|
|
11776
|
+
self._RequestId = params.get("RequestId")
|
|
11777
|
+
|
|
11778
|
+
|
|
11779
|
+
class CreateSecurityAPIServiceRequest(AbstractModel):
|
|
11780
|
+
"""CreateSecurityAPIService请求参数结构体
|
|
11781
|
+
|
|
11782
|
+
"""
|
|
11783
|
+
|
|
11784
|
+
def __init__(self):
|
|
11785
|
+
r"""
|
|
11786
|
+
:param _ZoneId: 站点 ID。
|
|
11787
|
+
:type ZoneId: str
|
|
11788
|
+
:param _APIServices: API 服务列表。
|
|
11789
|
+
:type APIServices: list of APIService
|
|
11790
|
+
"""
|
|
11791
|
+
self._ZoneId = None
|
|
11792
|
+
self._APIServices = None
|
|
11793
|
+
|
|
11794
|
+
@property
|
|
11795
|
+
def ZoneId(self):
|
|
11796
|
+
"""站点 ID。
|
|
11797
|
+
:rtype: str
|
|
11798
|
+
"""
|
|
11799
|
+
return self._ZoneId
|
|
11800
|
+
|
|
11801
|
+
@ZoneId.setter
|
|
11802
|
+
def ZoneId(self, ZoneId):
|
|
11803
|
+
self._ZoneId = ZoneId
|
|
11804
|
+
|
|
11805
|
+
@property
|
|
11806
|
+
def APIServices(self):
|
|
11807
|
+
""" API 服务列表。
|
|
11808
|
+
:rtype: list of APIService
|
|
11809
|
+
"""
|
|
11810
|
+
return self._APIServices
|
|
11811
|
+
|
|
11812
|
+
@APIServices.setter
|
|
11813
|
+
def APIServices(self, APIServices):
|
|
11814
|
+
self._APIServices = APIServices
|
|
11815
|
+
|
|
11816
|
+
|
|
11817
|
+
def _deserialize(self, params):
|
|
11818
|
+
self._ZoneId = params.get("ZoneId")
|
|
11819
|
+
if params.get("APIServices") is not None:
|
|
11820
|
+
self._APIServices = []
|
|
11821
|
+
for item in params.get("APIServices"):
|
|
11822
|
+
obj = APIService()
|
|
11823
|
+
obj._deserialize(item)
|
|
11824
|
+
self._APIServices.append(obj)
|
|
11825
|
+
memeber_set = set(params.keys())
|
|
11826
|
+
for name, value in vars(self).items():
|
|
11827
|
+
property_name = name[1:]
|
|
11828
|
+
if property_name in memeber_set:
|
|
11829
|
+
memeber_set.remove(property_name)
|
|
11830
|
+
if len(memeber_set) > 0:
|
|
11831
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11832
|
+
|
|
11833
|
+
|
|
11834
|
+
|
|
11835
|
+
class CreateSecurityAPIServiceResponse(AbstractModel):
|
|
11836
|
+
"""CreateSecurityAPIService返回参数结构体
|
|
11837
|
+
|
|
11838
|
+
"""
|
|
11839
|
+
|
|
11840
|
+
def __init__(self):
|
|
11841
|
+
r"""
|
|
11842
|
+
:param _APIServiceIds: API 服务 ID 列表。
|
|
11843
|
+
:type APIServiceIds: list of str
|
|
11844
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11845
|
+
:type RequestId: str
|
|
11846
|
+
"""
|
|
11847
|
+
self._APIServiceIds = None
|
|
11848
|
+
self._RequestId = None
|
|
11849
|
+
|
|
11850
|
+
@property
|
|
11851
|
+
def APIServiceIds(self):
|
|
11852
|
+
"""API 服务 ID 列表。
|
|
11853
|
+
:rtype: list of str
|
|
11854
|
+
"""
|
|
11855
|
+
return self._APIServiceIds
|
|
11856
|
+
|
|
11857
|
+
@APIServiceIds.setter
|
|
11858
|
+
def APIServiceIds(self, APIServiceIds):
|
|
11859
|
+
self._APIServiceIds = APIServiceIds
|
|
11860
|
+
|
|
11861
|
+
@property
|
|
11862
|
+
def RequestId(self):
|
|
11863
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11864
|
+
:rtype: str
|
|
11865
|
+
"""
|
|
11866
|
+
return self._RequestId
|
|
11867
|
+
|
|
11868
|
+
@RequestId.setter
|
|
11869
|
+
def RequestId(self, RequestId):
|
|
11870
|
+
self._RequestId = RequestId
|
|
11871
|
+
|
|
11872
|
+
|
|
11873
|
+
def _deserialize(self, params):
|
|
11874
|
+
self._APIServiceIds = params.get("APIServiceIds")
|
|
11875
|
+
self._RequestId = params.get("RequestId")
|
|
11876
|
+
|
|
11877
|
+
|
|
11878
|
+
class CreateSecurityClientAttesterRequest(AbstractModel):
|
|
11879
|
+
"""CreateSecurityClientAttester请求参数结构体
|
|
11880
|
+
|
|
11881
|
+
"""
|
|
11882
|
+
|
|
11883
|
+
def __init__(self):
|
|
11884
|
+
r"""
|
|
11885
|
+
:param _ZoneId: 站点 ID。
|
|
11886
|
+
:type ZoneId: str
|
|
11887
|
+
:param _ClientAttesters: 认证选项列表。
|
|
11888
|
+
:type ClientAttesters: list of ClientAttester
|
|
11889
|
+
"""
|
|
11890
|
+
self._ZoneId = None
|
|
11891
|
+
self._ClientAttesters = None
|
|
11892
|
+
|
|
11893
|
+
@property
|
|
11894
|
+
def ZoneId(self):
|
|
11895
|
+
"""站点 ID。
|
|
11896
|
+
:rtype: str
|
|
11897
|
+
"""
|
|
11898
|
+
return self._ZoneId
|
|
11899
|
+
|
|
11900
|
+
@ZoneId.setter
|
|
11901
|
+
def ZoneId(self, ZoneId):
|
|
11902
|
+
self._ZoneId = ZoneId
|
|
11903
|
+
|
|
11904
|
+
@property
|
|
11905
|
+
def ClientAttesters(self):
|
|
11906
|
+
"""认证选项列表。
|
|
11907
|
+
:rtype: list of ClientAttester
|
|
11908
|
+
"""
|
|
11909
|
+
return self._ClientAttesters
|
|
11910
|
+
|
|
11911
|
+
@ClientAttesters.setter
|
|
11912
|
+
def ClientAttesters(self, ClientAttesters):
|
|
11913
|
+
self._ClientAttesters = ClientAttesters
|
|
11914
|
+
|
|
11915
|
+
|
|
11916
|
+
def _deserialize(self, params):
|
|
11917
|
+
self._ZoneId = params.get("ZoneId")
|
|
11918
|
+
if params.get("ClientAttesters") is not None:
|
|
11919
|
+
self._ClientAttesters = []
|
|
11920
|
+
for item in params.get("ClientAttesters"):
|
|
11921
|
+
obj = ClientAttester()
|
|
11922
|
+
obj._deserialize(item)
|
|
11923
|
+
self._ClientAttesters.append(obj)
|
|
11924
|
+
memeber_set = set(params.keys())
|
|
11925
|
+
for name, value in vars(self).items():
|
|
11926
|
+
property_name = name[1:]
|
|
11927
|
+
if property_name in memeber_set:
|
|
11928
|
+
memeber_set.remove(property_name)
|
|
11929
|
+
if len(memeber_set) > 0:
|
|
11930
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11931
|
+
|
|
11932
|
+
|
|
11933
|
+
|
|
11934
|
+
class CreateSecurityClientAttesterResponse(AbstractModel):
|
|
11935
|
+
"""CreateSecurityClientAttester返回参数结构体
|
|
11936
|
+
|
|
11937
|
+
"""
|
|
11938
|
+
|
|
11939
|
+
def __init__(self):
|
|
11940
|
+
r"""
|
|
11941
|
+
:param _ClientAttesterIds: 认证选项 ID 列表。
|
|
11942
|
+
:type ClientAttesterIds: list of str
|
|
11943
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11944
|
+
:type RequestId: str
|
|
11945
|
+
"""
|
|
11946
|
+
self._ClientAttesterIds = None
|
|
11947
|
+
self._RequestId = None
|
|
11948
|
+
|
|
11949
|
+
@property
|
|
11950
|
+
def ClientAttesterIds(self):
|
|
11951
|
+
"""认证选项 ID 列表。
|
|
11952
|
+
:rtype: list of str
|
|
11953
|
+
"""
|
|
11954
|
+
return self._ClientAttesterIds
|
|
11955
|
+
|
|
11956
|
+
@ClientAttesterIds.setter
|
|
11957
|
+
def ClientAttesterIds(self, ClientAttesterIds):
|
|
11958
|
+
self._ClientAttesterIds = ClientAttesterIds
|
|
11959
|
+
|
|
11960
|
+
@property
|
|
11961
|
+
def RequestId(self):
|
|
11962
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11963
|
+
:rtype: str
|
|
11964
|
+
"""
|
|
11965
|
+
return self._RequestId
|
|
11966
|
+
|
|
11967
|
+
@RequestId.setter
|
|
11968
|
+
def RequestId(self, RequestId):
|
|
11969
|
+
self._RequestId = RequestId
|
|
11970
|
+
|
|
11971
|
+
|
|
11972
|
+
def _deserialize(self, params):
|
|
11973
|
+
self._ClientAttesterIds = params.get("ClientAttesterIds")
|
|
11974
|
+
self._RequestId = params.get("RequestId")
|
|
11975
|
+
|
|
11976
|
+
|
|
11111
11977
|
class CreateSecurityIPGroupRequest(AbstractModel):
|
|
11112
11978
|
"""CreateSecurityIPGroup请求参数结构体
|
|
11113
11979
|
|
|
@@ -11204,6 +12070,105 @@ class CreateSecurityIPGroupResponse(AbstractModel):
|
|
|
11204
12070
|
self._RequestId = params.get("RequestId")
|
|
11205
12071
|
|
|
11206
12072
|
|
|
12073
|
+
class CreateSecurityJSInjectionRuleRequest(AbstractModel):
|
|
12074
|
+
"""CreateSecurityJSInjectionRule请求参数结构体
|
|
12075
|
+
|
|
12076
|
+
"""
|
|
12077
|
+
|
|
12078
|
+
def __init__(self):
|
|
12079
|
+
r"""
|
|
12080
|
+
:param _ZoneId: 站点 ID。
|
|
12081
|
+
:type ZoneId: str
|
|
12082
|
+
:param _JSInjectionRules: JavaScript 注入规则列表。
|
|
12083
|
+
:type JSInjectionRules: list of JSInjectionRule
|
|
12084
|
+
"""
|
|
12085
|
+
self._ZoneId = None
|
|
12086
|
+
self._JSInjectionRules = None
|
|
12087
|
+
|
|
12088
|
+
@property
|
|
12089
|
+
def ZoneId(self):
|
|
12090
|
+
"""站点 ID。
|
|
12091
|
+
:rtype: str
|
|
12092
|
+
"""
|
|
12093
|
+
return self._ZoneId
|
|
12094
|
+
|
|
12095
|
+
@ZoneId.setter
|
|
12096
|
+
def ZoneId(self, ZoneId):
|
|
12097
|
+
self._ZoneId = ZoneId
|
|
12098
|
+
|
|
12099
|
+
@property
|
|
12100
|
+
def JSInjectionRules(self):
|
|
12101
|
+
"""JavaScript 注入规则列表。
|
|
12102
|
+
:rtype: list of JSInjectionRule
|
|
12103
|
+
"""
|
|
12104
|
+
return self._JSInjectionRules
|
|
12105
|
+
|
|
12106
|
+
@JSInjectionRules.setter
|
|
12107
|
+
def JSInjectionRules(self, JSInjectionRules):
|
|
12108
|
+
self._JSInjectionRules = JSInjectionRules
|
|
12109
|
+
|
|
12110
|
+
|
|
12111
|
+
def _deserialize(self, params):
|
|
12112
|
+
self._ZoneId = params.get("ZoneId")
|
|
12113
|
+
if params.get("JSInjectionRules") is not None:
|
|
12114
|
+
self._JSInjectionRules = []
|
|
12115
|
+
for item in params.get("JSInjectionRules"):
|
|
12116
|
+
obj = JSInjectionRule()
|
|
12117
|
+
obj._deserialize(item)
|
|
12118
|
+
self._JSInjectionRules.append(obj)
|
|
12119
|
+
memeber_set = set(params.keys())
|
|
12120
|
+
for name, value in vars(self).items():
|
|
12121
|
+
property_name = name[1:]
|
|
12122
|
+
if property_name in memeber_set:
|
|
12123
|
+
memeber_set.remove(property_name)
|
|
12124
|
+
if len(memeber_set) > 0:
|
|
12125
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12126
|
+
|
|
12127
|
+
|
|
12128
|
+
|
|
12129
|
+
class CreateSecurityJSInjectionRuleResponse(AbstractModel):
|
|
12130
|
+
"""CreateSecurityJSInjectionRule返回参数结构体
|
|
12131
|
+
|
|
12132
|
+
"""
|
|
12133
|
+
|
|
12134
|
+
def __init__(self):
|
|
12135
|
+
r"""
|
|
12136
|
+
:param _JSInjectionRuleIds: JavaScript 注入规则 ID 列表。
|
|
12137
|
+
:type JSInjectionRuleIds: list of str
|
|
12138
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12139
|
+
:type RequestId: str
|
|
12140
|
+
"""
|
|
12141
|
+
self._JSInjectionRuleIds = None
|
|
12142
|
+
self._RequestId = None
|
|
12143
|
+
|
|
12144
|
+
@property
|
|
12145
|
+
def JSInjectionRuleIds(self):
|
|
12146
|
+
"""JavaScript 注入规则 ID 列表。
|
|
12147
|
+
:rtype: list of str
|
|
12148
|
+
"""
|
|
12149
|
+
return self._JSInjectionRuleIds
|
|
12150
|
+
|
|
12151
|
+
@JSInjectionRuleIds.setter
|
|
12152
|
+
def JSInjectionRuleIds(self, JSInjectionRuleIds):
|
|
12153
|
+
self._JSInjectionRuleIds = JSInjectionRuleIds
|
|
12154
|
+
|
|
12155
|
+
@property
|
|
12156
|
+
def RequestId(self):
|
|
12157
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12158
|
+
:rtype: str
|
|
12159
|
+
"""
|
|
12160
|
+
return self._RequestId
|
|
12161
|
+
|
|
12162
|
+
@RequestId.setter
|
|
12163
|
+
def RequestId(self, RequestId):
|
|
12164
|
+
self._RequestId = RequestId
|
|
12165
|
+
|
|
12166
|
+
|
|
12167
|
+
def _deserialize(self, params):
|
|
12168
|
+
self._JSInjectionRuleIds = params.get("JSInjectionRuleIds")
|
|
12169
|
+
self._RequestId = params.get("RequestId")
|
|
12170
|
+
|
|
12171
|
+
|
|
11207
12172
|
class CreateSharedCNAMERequest(AbstractModel):
|
|
11208
12173
|
"""CreateSharedCNAME请求参数结构体
|
|
11209
12174
|
|
|
@@ -13794,6 +14759,85 @@ class DeleteFunctionRulesResponse(AbstractModel):
|
|
|
13794
14759
|
self._RequestId = params.get("RequestId")
|
|
13795
14760
|
|
|
13796
14761
|
|
|
14762
|
+
class DeleteJustInTimeTranscodeTemplatesRequest(AbstractModel):
|
|
14763
|
+
"""DeleteJustInTimeTranscodeTemplates请求参数结构体
|
|
14764
|
+
|
|
14765
|
+
"""
|
|
14766
|
+
|
|
14767
|
+
def __init__(self):
|
|
14768
|
+
r"""
|
|
14769
|
+
:param _ZoneId: 站点ID。
|
|
14770
|
+
:type ZoneId: str
|
|
14771
|
+
:param _TemplateIds: 需删除的即时转码模板唯一标识数组,长度限制:100。
|
|
14772
|
+
:type TemplateIds: list of str
|
|
14773
|
+
"""
|
|
14774
|
+
self._ZoneId = None
|
|
14775
|
+
self._TemplateIds = None
|
|
14776
|
+
|
|
14777
|
+
@property
|
|
14778
|
+
def ZoneId(self):
|
|
14779
|
+
"""站点ID。
|
|
14780
|
+
:rtype: str
|
|
14781
|
+
"""
|
|
14782
|
+
return self._ZoneId
|
|
14783
|
+
|
|
14784
|
+
@ZoneId.setter
|
|
14785
|
+
def ZoneId(self, ZoneId):
|
|
14786
|
+
self._ZoneId = ZoneId
|
|
14787
|
+
|
|
14788
|
+
@property
|
|
14789
|
+
def TemplateIds(self):
|
|
14790
|
+
"""需删除的即时转码模板唯一标识数组,长度限制:100。
|
|
14791
|
+
:rtype: list of str
|
|
14792
|
+
"""
|
|
14793
|
+
return self._TemplateIds
|
|
14794
|
+
|
|
14795
|
+
@TemplateIds.setter
|
|
14796
|
+
def TemplateIds(self, TemplateIds):
|
|
14797
|
+
self._TemplateIds = TemplateIds
|
|
14798
|
+
|
|
14799
|
+
|
|
14800
|
+
def _deserialize(self, params):
|
|
14801
|
+
self._ZoneId = params.get("ZoneId")
|
|
14802
|
+
self._TemplateIds = params.get("TemplateIds")
|
|
14803
|
+
memeber_set = set(params.keys())
|
|
14804
|
+
for name, value in vars(self).items():
|
|
14805
|
+
property_name = name[1:]
|
|
14806
|
+
if property_name in memeber_set:
|
|
14807
|
+
memeber_set.remove(property_name)
|
|
14808
|
+
if len(memeber_set) > 0:
|
|
14809
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14810
|
+
|
|
14811
|
+
|
|
14812
|
+
|
|
14813
|
+
class DeleteJustInTimeTranscodeTemplatesResponse(AbstractModel):
|
|
14814
|
+
"""DeleteJustInTimeTranscodeTemplates返回参数结构体
|
|
14815
|
+
|
|
14816
|
+
"""
|
|
14817
|
+
|
|
14818
|
+
def __init__(self):
|
|
14819
|
+
r"""
|
|
14820
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14821
|
+
:type RequestId: str
|
|
14822
|
+
"""
|
|
14823
|
+
self._RequestId = None
|
|
14824
|
+
|
|
14825
|
+
@property
|
|
14826
|
+
def RequestId(self):
|
|
14827
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14828
|
+
:rtype: str
|
|
14829
|
+
"""
|
|
14830
|
+
return self._RequestId
|
|
14831
|
+
|
|
14832
|
+
@RequestId.setter
|
|
14833
|
+
def RequestId(self, RequestId):
|
|
14834
|
+
self._RequestId = RequestId
|
|
14835
|
+
|
|
14836
|
+
|
|
14837
|
+
def _deserialize(self, params):
|
|
14838
|
+
self._RequestId = params.get("RequestId")
|
|
14839
|
+
|
|
14840
|
+
|
|
13797
14841
|
class DeleteL4ProxyRequest(AbstractModel):
|
|
13798
14842
|
"""DeleteL4Proxy请求参数结构体
|
|
13799
14843
|
|
|
@@ -14535,24 +15579,24 @@ class DeleteRulesResponse(AbstractModel):
|
|
|
14535
15579
|
self._RequestId = params.get("RequestId")
|
|
14536
15580
|
|
|
14537
15581
|
|
|
14538
|
-
class
|
|
14539
|
-
"""
|
|
15582
|
+
class DeleteSecurityAPIResourceRequest(AbstractModel):
|
|
15583
|
+
"""DeleteSecurityAPIResource请求参数结构体
|
|
14540
15584
|
|
|
14541
15585
|
"""
|
|
14542
15586
|
|
|
14543
15587
|
def __init__(self):
|
|
14544
15588
|
r"""
|
|
14545
|
-
:param _ZoneId: 站点
|
|
15589
|
+
:param _ZoneId: 站点 ID。
|
|
14546
15590
|
:type ZoneId: str
|
|
14547
|
-
:param
|
|
14548
|
-
:type
|
|
15591
|
+
:param _APIResourceIds: 需要删除的 API 资源 ID 列表。
|
|
15592
|
+
:type APIResourceIds: list of str
|
|
14549
15593
|
"""
|
|
14550
15594
|
self._ZoneId = None
|
|
14551
|
-
self.
|
|
15595
|
+
self._APIResourceIds = None
|
|
14552
15596
|
|
|
14553
15597
|
@property
|
|
14554
15598
|
def ZoneId(self):
|
|
14555
|
-
"""站点
|
|
15599
|
+
"""站点 ID。
|
|
14556
15600
|
:rtype: str
|
|
14557
15601
|
"""
|
|
14558
15602
|
return self._ZoneId
|
|
@@ -14562,20 +15606,20 @@ class DeleteSecurityIPGroupRequest(AbstractModel):
|
|
|
14562
15606
|
self._ZoneId = ZoneId
|
|
14563
15607
|
|
|
14564
15608
|
@property
|
|
14565
|
-
def
|
|
14566
|
-
"""
|
|
14567
|
-
:rtype:
|
|
15609
|
+
def APIResourceIds(self):
|
|
15610
|
+
"""需要删除的 API 资源 ID 列表。
|
|
15611
|
+
:rtype: list of str
|
|
14568
15612
|
"""
|
|
14569
|
-
return self.
|
|
15613
|
+
return self._APIResourceIds
|
|
14570
15614
|
|
|
14571
|
-
@
|
|
14572
|
-
def
|
|
14573
|
-
self.
|
|
15615
|
+
@APIResourceIds.setter
|
|
15616
|
+
def APIResourceIds(self, APIResourceIds):
|
|
15617
|
+
self._APIResourceIds = APIResourceIds
|
|
14574
15618
|
|
|
14575
15619
|
|
|
14576
15620
|
def _deserialize(self, params):
|
|
14577
15621
|
self._ZoneId = params.get("ZoneId")
|
|
14578
|
-
self.
|
|
15622
|
+
self._APIResourceIds = params.get("APIResourceIds")
|
|
14579
15623
|
memeber_set = set(params.keys())
|
|
14580
15624
|
for name, value in vars(self).items():
|
|
14581
15625
|
property_name = name[1:]
|
|
@@ -14586,8 +15630,8 @@ class DeleteSecurityIPGroupRequest(AbstractModel):
|
|
|
14586
15630
|
|
|
14587
15631
|
|
|
14588
15632
|
|
|
14589
|
-
class
|
|
14590
|
-
"""
|
|
15633
|
+
class DeleteSecurityAPIResourceResponse(AbstractModel):
|
|
15634
|
+
"""DeleteSecurityAPIResource返回参数结构体
|
|
14591
15635
|
|
|
14592
15636
|
"""
|
|
14593
15637
|
|
|
@@ -14614,24 +15658,24 @@ class DeleteSecurityIPGroupResponse(AbstractModel):
|
|
|
14614
15658
|
self._RequestId = params.get("RequestId")
|
|
14615
15659
|
|
|
14616
15660
|
|
|
14617
|
-
class
|
|
14618
|
-
"""
|
|
15661
|
+
class DeleteSecurityAPIServiceRequest(AbstractModel):
|
|
15662
|
+
"""DeleteSecurityAPIService请求参数结构体
|
|
14619
15663
|
|
|
14620
15664
|
"""
|
|
14621
15665
|
|
|
14622
15666
|
def __init__(self):
|
|
14623
15667
|
r"""
|
|
14624
|
-
:param _ZoneId:
|
|
15668
|
+
:param _ZoneId: 站点 ID。
|
|
14625
15669
|
:type ZoneId: str
|
|
14626
|
-
:param
|
|
14627
|
-
:type
|
|
15670
|
+
:param _APIServiceIds: API 服务 ID 列表。
|
|
15671
|
+
:type APIServiceIds: list of str
|
|
14628
15672
|
"""
|
|
14629
15673
|
self._ZoneId = None
|
|
14630
|
-
self.
|
|
15674
|
+
self._APIServiceIds = None
|
|
14631
15675
|
|
|
14632
15676
|
@property
|
|
14633
15677
|
def ZoneId(self):
|
|
14634
|
-
"""
|
|
15678
|
+
"""站点 ID。
|
|
14635
15679
|
:rtype: str
|
|
14636
15680
|
"""
|
|
14637
15681
|
return self._ZoneId
|
|
@@ -14641,20 +15685,20 @@ class DeleteSharedCNAMERequest(AbstractModel):
|
|
|
14641
15685
|
self._ZoneId = ZoneId
|
|
14642
15686
|
|
|
14643
15687
|
@property
|
|
14644
|
-
def
|
|
14645
|
-
"""
|
|
14646
|
-
:rtype: str
|
|
15688
|
+
def APIServiceIds(self):
|
|
15689
|
+
"""API 服务 ID 列表。
|
|
15690
|
+
:rtype: list of str
|
|
14647
15691
|
"""
|
|
14648
|
-
return self.
|
|
15692
|
+
return self._APIServiceIds
|
|
14649
15693
|
|
|
14650
|
-
@
|
|
14651
|
-
def
|
|
14652
|
-
self.
|
|
15694
|
+
@APIServiceIds.setter
|
|
15695
|
+
def APIServiceIds(self, APIServiceIds):
|
|
15696
|
+
self._APIServiceIds = APIServiceIds
|
|
14653
15697
|
|
|
14654
15698
|
|
|
14655
15699
|
def _deserialize(self, params):
|
|
14656
15700
|
self._ZoneId = params.get("ZoneId")
|
|
14657
|
-
self.
|
|
15701
|
+
self._APIServiceIds = params.get("APIServiceIds")
|
|
14658
15702
|
memeber_set = set(params.keys())
|
|
14659
15703
|
for name, value in vars(self).items():
|
|
14660
15704
|
property_name = name[1:]
|
|
@@ -14665,8 +15709,8 @@ class DeleteSharedCNAMERequest(AbstractModel):
|
|
|
14665
15709
|
|
|
14666
15710
|
|
|
14667
15711
|
|
|
14668
|
-
class
|
|
14669
|
-
"""
|
|
15712
|
+
class DeleteSecurityAPIServiceResponse(AbstractModel):
|
|
15713
|
+
"""DeleteSecurityAPIService返回参数结构体
|
|
14670
15714
|
|
|
14671
15715
|
"""
|
|
14672
15716
|
|
|
@@ -14693,24 +15737,24 @@ class DeleteSharedCNAMEResponse(AbstractModel):
|
|
|
14693
15737
|
self._RequestId = params.get("RequestId")
|
|
14694
15738
|
|
|
14695
15739
|
|
|
14696
|
-
class
|
|
14697
|
-
"""
|
|
15740
|
+
class DeleteSecurityClientAttesterRequest(AbstractModel):
|
|
15741
|
+
"""DeleteSecurityClientAttester请求参数结构体
|
|
14698
15742
|
|
|
14699
15743
|
"""
|
|
14700
15744
|
|
|
14701
15745
|
def __init__(self):
|
|
14702
15746
|
r"""
|
|
14703
|
-
:param _ZoneId: 站点 ID
|
|
15747
|
+
:param _ZoneId: 站点 ID。
|
|
14704
15748
|
:type ZoneId: str
|
|
14705
|
-
:param
|
|
14706
|
-
:type
|
|
15749
|
+
:param _ClientAttesterIds: 客户端认证选项 ID。
|
|
15750
|
+
:type ClientAttesterIds: list of str
|
|
14707
15751
|
"""
|
|
14708
15752
|
self._ZoneId = None
|
|
14709
|
-
self.
|
|
15753
|
+
self._ClientAttesterIds = None
|
|
14710
15754
|
|
|
14711
15755
|
@property
|
|
14712
15756
|
def ZoneId(self):
|
|
14713
|
-
"""站点 ID
|
|
15757
|
+
"""站点 ID。
|
|
14714
15758
|
:rtype: str
|
|
14715
15759
|
"""
|
|
14716
15760
|
return self._ZoneId
|
|
@@ -14720,20 +15764,99 @@ class DeleteWebSecurityTemplateRequest(AbstractModel):
|
|
|
14720
15764
|
self._ZoneId = ZoneId
|
|
14721
15765
|
|
|
14722
15766
|
@property
|
|
14723
|
-
def
|
|
14724
|
-
"""
|
|
15767
|
+
def ClientAttesterIds(self):
|
|
15768
|
+
"""客户端认证选项 ID。
|
|
15769
|
+
:rtype: list of str
|
|
15770
|
+
"""
|
|
15771
|
+
return self._ClientAttesterIds
|
|
15772
|
+
|
|
15773
|
+
@ClientAttesterIds.setter
|
|
15774
|
+
def ClientAttesterIds(self, ClientAttesterIds):
|
|
15775
|
+
self._ClientAttesterIds = ClientAttesterIds
|
|
15776
|
+
|
|
15777
|
+
|
|
15778
|
+
def _deserialize(self, params):
|
|
15779
|
+
self._ZoneId = params.get("ZoneId")
|
|
15780
|
+
self._ClientAttesterIds = params.get("ClientAttesterIds")
|
|
15781
|
+
memeber_set = set(params.keys())
|
|
15782
|
+
for name, value in vars(self).items():
|
|
15783
|
+
property_name = name[1:]
|
|
15784
|
+
if property_name in memeber_set:
|
|
15785
|
+
memeber_set.remove(property_name)
|
|
15786
|
+
if len(memeber_set) > 0:
|
|
15787
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15788
|
+
|
|
15789
|
+
|
|
15790
|
+
|
|
15791
|
+
class DeleteSecurityClientAttesterResponse(AbstractModel):
|
|
15792
|
+
"""DeleteSecurityClientAttester返回参数结构体
|
|
15793
|
+
|
|
15794
|
+
"""
|
|
15795
|
+
|
|
15796
|
+
def __init__(self):
|
|
15797
|
+
r"""
|
|
15798
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15799
|
+
:type RequestId: str
|
|
15800
|
+
"""
|
|
15801
|
+
self._RequestId = None
|
|
15802
|
+
|
|
15803
|
+
@property
|
|
15804
|
+
def RequestId(self):
|
|
15805
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14725
15806
|
:rtype: str
|
|
14726
15807
|
"""
|
|
14727
|
-
return self.
|
|
15808
|
+
return self._RequestId
|
|
14728
15809
|
|
|
14729
|
-
@
|
|
14730
|
-
def
|
|
14731
|
-
self.
|
|
15810
|
+
@RequestId.setter
|
|
15811
|
+
def RequestId(self, RequestId):
|
|
15812
|
+
self._RequestId = RequestId
|
|
15813
|
+
|
|
15814
|
+
|
|
15815
|
+
def _deserialize(self, params):
|
|
15816
|
+
self._RequestId = params.get("RequestId")
|
|
15817
|
+
|
|
15818
|
+
|
|
15819
|
+
class DeleteSecurityIPGroupRequest(AbstractModel):
|
|
15820
|
+
"""DeleteSecurityIPGroup请求参数结构体
|
|
15821
|
+
|
|
15822
|
+
"""
|
|
15823
|
+
|
|
15824
|
+
def __init__(self):
|
|
15825
|
+
r"""
|
|
15826
|
+
:param _ZoneId: 站点 Id。
|
|
15827
|
+
:type ZoneId: str
|
|
15828
|
+
:param _GroupId: IP 组 Id。
|
|
15829
|
+
:type GroupId: int
|
|
15830
|
+
"""
|
|
15831
|
+
self._ZoneId = None
|
|
15832
|
+
self._GroupId = None
|
|
15833
|
+
|
|
15834
|
+
@property
|
|
15835
|
+
def ZoneId(self):
|
|
15836
|
+
"""站点 Id。
|
|
15837
|
+
:rtype: str
|
|
15838
|
+
"""
|
|
15839
|
+
return self._ZoneId
|
|
15840
|
+
|
|
15841
|
+
@ZoneId.setter
|
|
15842
|
+
def ZoneId(self, ZoneId):
|
|
15843
|
+
self._ZoneId = ZoneId
|
|
15844
|
+
|
|
15845
|
+
@property
|
|
15846
|
+
def GroupId(self):
|
|
15847
|
+
"""IP 组 Id。
|
|
15848
|
+
:rtype: int
|
|
15849
|
+
"""
|
|
15850
|
+
return self._GroupId
|
|
15851
|
+
|
|
15852
|
+
@GroupId.setter
|
|
15853
|
+
def GroupId(self, GroupId):
|
|
15854
|
+
self._GroupId = GroupId
|
|
14732
15855
|
|
|
14733
15856
|
|
|
14734
15857
|
def _deserialize(self, params):
|
|
14735
15858
|
self._ZoneId = params.get("ZoneId")
|
|
14736
|
-
self.
|
|
15859
|
+
self._GroupId = params.get("GroupId")
|
|
14737
15860
|
memeber_set = set(params.keys())
|
|
14738
15861
|
for name, value in vars(self).items():
|
|
14739
15862
|
property_name = name[1:]
|
|
@@ -14744,8 +15867,245 @@ class DeleteWebSecurityTemplateRequest(AbstractModel):
|
|
|
14744
15867
|
|
|
14745
15868
|
|
|
14746
15869
|
|
|
14747
|
-
class
|
|
14748
|
-
"""
|
|
15870
|
+
class DeleteSecurityIPGroupResponse(AbstractModel):
|
|
15871
|
+
"""DeleteSecurityIPGroup返回参数结构体
|
|
15872
|
+
|
|
15873
|
+
"""
|
|
15874
|
+
|
|
15875
|
+
def __init__(self):
|
|
15876
|
+
r"""
|
|
15877
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15878
|
+
:type RequestId: str
|
|
15879
|
+
"""
|
|
15880
|
+
self._RequestId = None
|
|
15881
|
+
|
|
15882
|
+
@property
|
|
15883
|
+
def RequestId(self):
|
|
15884
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15885
|
+
:rtype: str
|
|
15886
|
+
"""
|
|
15887
|
+
return self._RequestId
|
|
15888
|
+
|
|
15889
|
+
@RequestId.setter
|
|
15890
|
+
def RequestId(self, RequestId):
|
|
15891
|
+
self._RequestId = RequestId
|
|
15892
|
+
|
|
15893
|
+
|
|
15894
|
+
def _deserialize(self, params):
|
|
15895
|
+
self._RequestId = params.get("RequestId")
|
|
15896
|
+
|
|
15897
|
+
|
|
15898
|
+
class DeleteSecurityJSInjectionRuleRequest(AbstractModel):
|
|
15899
|
+
"""DeleteSecurityJSInjectionRule请求参数结构体
|
|
15900
|
+
|
|
15901
|
+
"""
|
|
15902
|
+
|
|
15903
|
+
def __init__(self):
|
|
15904
|
+
r"""
|
|
15905
|
+
:param _ZoneId: 站点 ID。
|
|
15906
|
+
:type ZoneId: str
|
|
15907
|
+
:param _JSInjectionRuleIds: JavaScript 注入规则 ID 列表。
|
|
15908
|
+
:type JSInjectionRuleIds: list of str
|
|
15909
|
+
"""
|
|
15910
|
+
self._ZoneId = None
|
|
15911
|
+
self._JSInjectionRuleIds = None
|
|
15912
|
+
|
|
15913
|
+
@property
|
|
15914
|
+
def ZoneId(self):
|
|
15915
|
+
"""站点 ID。
|
|
15916
|
+
:rtype: str
|
|
15917
|
+
"""
|
|
15918
|
+
return self._ZoneId
|
|
15919
|
+
|
|
15920
|
+
@ZoneId.setter
|
|
15921
|
+
def ZoneId(self, ZoneId):
|
|
15922
|
+
self._ZoneId = ZoneId
|
|
15923
|
+
|
|
15924
|
+
@property
|
|
15925
|
+
def JSInjectionRuleIds(self):
|
|
15926
|
+
"""JavaScript 注入规则 ID 列表。
|
|
15927
|
+
:rtype: list of str
|
|
15928
|
+
"""
|
|
15929
|
+
return self._JSInjectionRuleIds
|
|
15930
|
+
|
|
15931
|
+
@JSInjectionRuleIds.setter
|
|
15932
|
+
def JSInjectionRuleIds(self, JSInjectionRuleIds):
|
|
15933
|
+
self._JSInjectionRuleIds = JSInjectionRuleIds
|
|
15934
|
+
|
|
15935
|
+
|
|
15936
|
+
def _deserialize(self, params):
|
|
15937
|
+
self._ZoneId = params.get("ZoneId")
|
|
15938
|
+
self._JSInjectionRuleIds = params.get("JSInjectionRuleIds")
|
|
15939
|
+
memeber_set = set(params.keys())
|
|
15940
|
+
for name, value in vars(self).items():
|
|
15941
|
+
property_name = name[1:]
|
|
15942
|
+
if property_name in memeber_set:
|
|
15943
|
+
memeber_set.remove(property_name)
|
|
15944
|
+
if len(memeber_set) > 0:
|
|
15945
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15946
|
+
|
|
15947
|
+
|
|
15948
|
+
|
|
15949
|
+
class DeleteSecurityJSInjectionRuleResponse(AbstractModel):
|
|
15950
|
+
"""DeleteSecurityJSInjectionRule返回参数结构体
|
|
15951
|
+
|
|
15952
|
+
"""
|
|
15953
|
+
|
|
15954
|
+
def __init__(self):
|
|
15955
|
+
r"""
|
|
15956
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15957
|
+
:type RequestId: str
|
|
15958
|
+
"""
|
|
15959
|
+
self._RequestId = None
|
|
15960
|
+
|
|
15961
|
+
@property
|
|
15962
|
+
def RequestId(self):
|
|
15963
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15964
|
+
:rtype: str
|
|
15965
|
+
"""
|
|
15966
|
+
return self._RequestId
|
|
15967
|
+
|
|
15968
|
+
@RequestId.setter
|
|
15969
|
+
def RequestId(self, RequestId):
|
|
15970
|
+
self._RequestId = RequestId
|
|
15971
|
+
|
|
15972
|
+
|
|
15973
|
+
def _deserialize(self, params):
|
|
15974
|
+
self._RequestId = params.get("RequestId")
|
|
15975
|
+
|
|
15976
|
+
|
|
15977
|
+
class DeleteSharedCNAMERequest(AbstractModel):
|
|
15978
|
+
"""DeleteSharedCNAME请求参数结构体
|
|
15979
|
+
|
|
15980
|
+
"""
|
|
15981
|
+
|
|
15982
|
+
def __init__(self):
|
|
15983
|
+
r"""
|
|
15984
|
+
:param _ZoneId: 共享 CNAME 所属站点 ID。
|
|
15985
|
+
:type ZoneId: str
|
|
15986
|
+
:param _SharedCNAME: 需要删除的共享 CNAME。
|
|
15987
|
+
:type SharedCNAME: str
|
|
15988
|
+
"""
|
|
15989
|
+
self._ZoneId = None
|
|
15990
|
+
self._SharedCNAME = None
|
|
15991
|
+
|
|
15992
|
+
@property
|
|
15993
|
+
def ZoneId(self):
|
|
15994
|
+
"""共享 CNAME 所属站点 ID。
|
|
15995
|
+
:rtype: str
|
|
15996
|
+
"""
|
|
15997
|
+
return self._ZoneId
|
|
15998
|
+
|
|
15999
|
+
@ZoneId.setter
|
|
16000
|
+
def ZoneId(self, ZoneId):
|
|
16001
|
+
self._ZoneId = ZoneId
|
|
16002
|
+
|
|
16003
|
+
@property
|
|
16004
|
+
def SharedCNAME(self):
|
|
16005
|
+
"""需要删除的共享 CNAME。
|
|
16006
|
+
:rtype: str
|
|
16007
|
+
"""
|
|
16008
|
+
return self._SharedCNAME
|
|
16009
|
+
|
|
16010
|
+
@SharedCNAME.setter
|
|
16011
|
+
def SharedCNAME(self, SharedCNAME):
|
|
16012
|
+
self._SharedCNAME = SharedCNAME
|
|
16013
|
+
|
|
16014
|
+
|
|
16015
|
+
def _deserialize(self, params):
|
|
16016
|
+
self._ZoneId = params.get("ZoneId")
|
|
16017
|
+
self._SharedCNAME = params.get("SharedCNAME")
|
|
16018
|
+
memeber_set = set(params.keys())
|
|
16019
|
+
for name, value in vars(self).items():
|
|
16020
|
+
property_name = name[1:]
|
|
16021
|
+
if property_name in memeber_set:
|
|
16022
|
+
memeber_set.remove(property_name)
|
|
16023
|
+
if len(memeber_set) > 0:
|
|
16024
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16025
|
+
|
|
16026
|
+
|
|
16027
|
+
|
|
16028
|
+
class DeleteSharedCNAMEResponse(AbstractModel):
|
|
16029
|
+
"""DeleteSharedCNAME返回参数结构体
|
|
16030
|
+
|
|
16031
|
+
"""
|
|
16032
|
+
|
|
16033
|
+
def __init__(self):
|
|
16034
|
+
r"""
|
|
16035
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16036
|
+
:type RequestId: str
|
|
16037
|
+
"""
|
|
16038
|
+
self._RequestId = None
|
|
16039
|
+
|
|
16040
|
+
@property
|
|
16041
|
+
def RequestId(self):
|
|
16042
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16043
|
+
:rtype: str
|
|
16044
|
+
"""
|
|
16045
|
+
return self._RequestId
|
|
16046
|
+
|
|
16047
|
+
@RequestId.setter
|
|
16048
|
+
def RequestId(self, RequestId):
|
|
16049
|
+
self._RequestId = RequestId
|
|
16050
|
+
|
|
16051
|
+
|
|
16052
|
+
def _deserialize(self, params):
|
|
16053
|
+
self._RequestId = params.get("RequestId")
|
|
16054
|
+
|
|
16055
|
+
|
|
16056
|
+
class DeleteWebSecurityTemplateRequest(AbstractModel):
|
|
16057
|
+
"""DeleteWebSecurityTemplate请求参数结构体
|
|
16058
|
+
|
|
16059
|
+
"""
|
|
16060
|
+
|
|
16061
|
+
def __init__(self):
|
|
16062
|
+
r"""
|
|
16063
|
+
:param _ZoneId: 站点 ID。需要传入目标策略模板在访问权限上归属的站点,可使用 DescribeWebSecurityTemplates 接口查询策略模板归属的站点。
|
|
16064
|
+
:type ZoneId: str
|
|
16065
|
+
:param _TemplateId: 策略模板 ID。
|
|
16066
|
+
:type TemplateId: str
|
|
16067
|
+
"""
|
|
16068
|
+
self._ZoneId = None
|
|
16069
|
+
self._TemplateId = None
|
|
16070
|
+
|
|
16071
|
+
@property
|
|
16072
|
+
def ZoneId(self):
|
|
16073
|
+
"""站点 ID。需要传入目标策略模板在访问权限上归属的站点,可使用 DescribeWebSecurityTemplates 接口查询策略模板归属的站点。
|
|
16074
|
+
:rtype: str
|
|
16075
|
+
"""
|
|
16076
|
+
return self._ZoneId
|
|
16077
|
+
|
|
16078
|
+
@ZoneId.setter
|
|
16079
|
+
def ZoneId(self, ZoneId):
|
|
16080
|
+
self._ZoneId = ZoneId
|
|
16081
|
+
|
|
16082
|
+
@property
|
|
16083
|
+
def TemplateId(self):
|
|
16084
|
+
"""策略模板 ID。
|
|
16085
|
+
:rtype: str
|
|
16086
|
+
"""
|
|
16087
|
+
return self._TemplateId
|
|
16088
|
+
|
|
16089
|
+
@TemplateId.setter
|
|
16090
|
+
def TemplateId(self, TemplateId):
|
|
16091
|
+
self._TemplateId = TemplateId
|
|
16092
|
+
|
|
16093
|
+
|
|
16094
|
+
def _deserialize(self, params):
|
|
16095
|
+
self._ZoneId = params.get("ZoneId")
|
|
16096
|
+
self._TemplateId = params.get("TemplateId")
|
|
16097
|
+
memeber_set = set(params.keys())
|
|
16098
|
+
for name, value in vars(self).items():
|
|
16099
|
+
property_name = name[1:]
|
|
16100
|
+
if property_name in memeber_set:
|
|
16101
|
+
memeber_set.remove(property_name)
|
|
16102
|
+
if len(memeber_set) > 0:
|
|
16103
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16104
|
+
|
|
16105
|
+
|
|
16106
|
+
|
|
16107
|
+
class DeleteWebSecurityTemplateResponse(AbstractModel):
|
|
16108
|
+
"""DeleteWebSecurityTemplate返回参数结构体
|
|
14749
16109
|
|
|
14750
16110
|
"""
|
|
14751
16111
|
|
|
@@ -18860,34 +20220,36 @@ class DescribeIdentificationsResponse(AbstractModel):
|
|
|
18860
20220
|
self._RequestId = params.get("RequestId")
|
|
18861
20221
|
|
|
18862
20222
|
|
|
18863
|
-
class
|
|
18864
|
-
"""
|
|
20223
|
+
class DescribeJustInTimeTranscodeTemplatesRequest(AbstractModel):
|
|
20224
|
+
"""DescribeJustInTimeTranscodeTemplates请求参数结构体
|
|
18865
20225
|
|
|
18866
20226
|
"""
|
|
18867
20227
|
|
|
18868
20228
|
def __init__(self):
|
|
18869
20229
|
r"""
|
|
18870
|
-
:param _ZoneId:
|
|
20230
|
+
:param _ZoneId: 站点ID。
|
|
18871
20231
|
:type ZoneId: str
|
|
18872
|
-
:param
|
|
20232
|
+
:param _Filters: 过滤条件,Filters 的上限为 20,Filters.Values 的上限为 20。该参数不填写时,默认返回当前 ZoneId 下有权限的即时转码模板。详细的过滤条件如下:<li>template-name:按照模版名批量进行过滤。例如:mytemplate;</li><li>template-type:按照模板类型批量进行过滤。例如:preset 或 custom。</li><li>template-id:按照模板 ID 批量进行过滤。例如:C1LZ7982VgTpYhJ7M。</li>默认为空。
|
|
20233
|
+
:type Filters: list of Filter
|
|
20234
|
+
:param _SortBy: 排序字段,取值有:<li>createTime:模板创建时间。</li>默认值为:createTime。
|
|
20235
|
+
:type SortBy: str
|
|
20236
|
+
:param _SortOrder: 排序方式,取值有:<li>asc:升序方式;</li><li>desc:降序方式。</li>默认值为:desc。
|
|
20237
|
+
:type SortOrder: str
|
|
20238
|
+
:param _Offset: 分页偏移量,默认值:0。
|
|
18873
20239
|
:type Offset: int
|
|
18874
|
-
:param _Limit:
|
|
20240
|
+
:param _Limit: 返回记录条数,默认值:20,最大值:1000。
|
|
18875
20241
|
:type Limit: int
|
|
18876
|
-
:param _Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有四层代理实例信息。详细的过滤条件如下:
|
|
18877
|
-
<li>proxy-id:按照四层代理实例 ID 进行过滤;</li>
|
|
18878
|
-
<li>ddos-protection-type:按照安全防护类型进行过滤。</li>
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
:type Filters: list of Filter
|
|
18882
20242
|
"""
|
|
18883
20243
|
self._ZoneId = None
|
|
20244
|
+
self._Filters = None
|
|
20245
|
+
self._SortBy = None
|
|
20246
|
+
self._SortOrder = None
|
|
18884
20247
|
self._Offset = None
|
|
18885
20248
|
self._Limit = None
|
|
18886
|
-
self._Filters = None
|
|
18887
20249
|
|
|
18888
20250
|
@property
|
|
18889
20251
|
def ZoneId(self):
|
|
18890
|
-
"""
|
|
20252
|
+
"""站点ID。
|
|
18891
20253
|
:rtype: str
|
|
18892
20254
|
"""
|
|
18893
20255
|
return self._ZoneId
|
|
@@ -18896,9 +20258,42 @@ class DescribeL4ProxyRequest(AbstractModel):
|
|
|
18896
20258
|
def ZoneId(self, ZoneId):
|
|
18897
20259
|
self._ZoneId = ZoneId
|
|
18898
20260
|
|
|
20261
|
+
@property
|
|
20262
|
+
def Filters(self):
|
|
20263
|
+
"""过滤条件,Filters 的上限为 20,Filters.Values 的上限为 20。该参数不填写时,默认返回当前 ZoneId 下有权限的即时转码模板。详细的过滤条件如下:<li>template-name:按照模版名批量进行过滤。例如:mytemplate;</li><li>template-type:按照模板类型批量进行过滤。例如:preset 或 custom。</li><li>template-id:按照模板 ID 批量进行过滤。例如:C1LZ7982VgTpYhJ7M。</li>默认为空。
|
|
20264
|
+
:rtype: list of Filter
|
|
20265
|
+
"""
|
|
20266
|
+
return self._Filters
|
|
20267
|
+
|
|
20268
|
+
@Filters.setter
|
|
20269
|
+
def Filters(self, Filters):
|
|
20270
|
+
self._Filters = Filters
|
|
20271
|
+
|
|
20272
|
+
@property
|
|
20273
|
+
def SortBy(self):
|
|
20274
|
+
"""排序字段,取值有:<li>createTime:模板创建时间。</li>默认值为:createTime。
|
|
20275
|
+
:rtype: str
|
|
20276
|
+
"""
|
|
20277
|
+
return self._SortBy
|
|
20278
|
+
|
|
20279
|
+
@SortBy.setter
|
|
20280
|
+
def SortBy(self, SortBy):
|
|
20281
|
+
self._SortBy = SortBy
|
|
20282
|
+
|
|
20283
|
+
@property
|
|
20284
|
+
def SortOrder(self):
|
|
20285
|
+
"""排序方式,取值有:<li>asc:升序方式;</li><li>desc:降序方式。</li>默认值为:desc。
|
|
20286
|
+
:rtype: str
|
|
20287
|
+
"""
|
|
20288
|
+
return self._SortOrder
|
|
20289
|
+
|
|
20290
|
+
@SortOrder.setter
|
|
20291
|
+
def SortOrder(self, SortOrder):
|
|
20292
|
+
self._SortOrder = SortOrder
|
|
20293
|
+
|
|
18899
20294
|
@property
|
|
18900
20295
|
def Offset(self):
|
|
18901
|
-
"""
|
|
20296
|
+
"""分页偏移量,默认值:0。
|
|
18902
20297
|
:rtype: int
|
|
18903
20298
|
"""
|
|
18904
20299
|
return self._Offset
|
|
@@ -18909,7 +20304,7 @@ class DescribeL4ProxyRequest(AbstractModel):
|
|
|
18909
20304
|
|
|
18910
20305
|
@property
|
|
18911
20306
|
def Limit(self):
|
|
18912
|
-
"""
|
|
20307
|
+
"""返回记录条数,默认值:20,最大值:1000。
|
|
18913
20308
|
:rtype: int
|
|
18914
20309
|
"""
|
|
18915
20310
|
return self._Limit
|
|
@@ -18918,32 +20313,19 @@ class DescribeL4ProxyRequest(AbstractModel):
|
|
|
18918
20313
|
def Limit(self, Limit):
|
|
18919
20314
|
self._Limit = Limit
|
|
18920
20315
|
|
|
18921
|
-
@property
|
|
18922
|
-
def Filters(self):
|
|
18923
|
-
"""过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有四层代理实例信息。详细的过滤条件如下:
|
|
18924
|
-
<li>proxy-id:按照四层代理实例 ID 进行过滤;</li>
|
|
18925
|
-
<li>ddos-protection-type:按照安全防护类型进行过滤。</li>
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
:rtype: list of Filter
|
|
18929
|
-
"""
|
|
18930
|
-
return self._Filters
|
|
18931
|
-
|
|
18932
|
-
@Filters.setter
|
|
18933
|
-
def Filters(self, Filters):
|
|
18934
|
-
self._Filters = Filters
|
|
18935
|
-
|
|
18936
20316
|
|
|
18937
20317
|
def _deserialize(self, params):
|
|
18938
20318
|
self._ZoneId = params.get("ZoneId")
|
|
18939
|
-
self._Offset = params.get("Offset")
|
|
18940
|
-
self._Limit = params.get("Limit")
|
|
18941
20319
|
if params.get("Filters") is not None:
|
|
18942
20320
|
self._Filters = []
|
|
18943
20321
|
for item in params.get("Filters"):
|
|
18944
20322
|
obj = Filter()
|
|
18945
20323
|
obj._deserialize(item)
|
|
18946
20324
|
self._Filters.append(obj)
|
|
20325
|
+
self._SortBy = params.get("SortBy")
|
|
20326
|
+
self._SortOrder = params.get("SortOrder")
|
|
20327
|
+
self._Offset = params.get("Offset")
|
|
20328
|
+
self._Limit = params.get("Limit")
|
|
18947
20329
|
memeber_set = set(params.keys())
|
|
18948
20330
|
for name, value in vars(self).items():
|
|
18949
20331
|
property_name = name[1:]
|
|
@@ -18954,27 +20336,27 @@ class DescribeL4ProxyRequest(AbstractModel):
|
|
|
18954
20336
|
|
|
18955
20337
|
|
|
18956
20338
|
|
|
18957
|
-
class
|
|
18958
|
-
"""
|
|
20339
|
+
class DescribeJustInTimeTranscodeTemplatesResponse(AbstractModel):
|
|
20340
|
+
"""DescribeJustInTimeTranscodeTemplates返回参数结构体
|
|
18959
20341
|
|
|
18960
20342
|
"""
|
|
18961
20343
|
|
|
18962
20344
|
def __init__(self):
|
|
18963
20345
|
r"""
|
|
18964
|
-
:param _TotalCount:
|
|
20346
|
+
:param _TotalCount: 符合过滤条件的记录总数。
|
|
18965
20347
|
:type TotalCount: int
|
|
18966
|
-
:param
|
|
18967
|
-
:type
|
|
20348
|
+
:param _TemplateSet: 模板详情列表。
|
|
20349
|
+
:type TemplateSet: list of JustInTimeTranscodeTemplate
|
|
18968
20350
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18969
20351
|
:type RequestId: str
|
|
18970
20352
|
"""
|
|
18971
20353
|
self._TotalCount = None
|
|
18972
|
-
self.
|
|
20354
|
+
self._TemplateSet = None
|
|
18973
20355
|
self._RequestId = None
|
|
18974
20356
|
|
|
18975
20357
|
@property
|
|
18976
20358
|
def TotalCount(self):
|
|
18977
|
-
"""
|
|
20359
|
+
"""符合过滤条件的记录总数。
|
|
18978
20360
|
:rtype: int
|
|
18979
20361
|
"""
|
|
18980
20362
|
return self._TotalCount
|
|
@@ -18984,15 +20366,15 @@ class DescribeL4ProxyResponse(AbstractModel):
|
|
|
18984
20366
|
self._TotalCount = TotalCount
|
|
18985
20367
|
|
|
18986
20368
|
@property
|
|
18987
|
-
def
|
|
18988
|
-
"""
|
|
18989
|
-
:rtype: list of
|
|
20369
|
+
def TemplateSet(self):
|
|
20370
|
+
"""模板详情列表。
|
|
20371
|
+
:rtype: list of JustInTimeTranscodeTemplate
|
|
18990
20372
|
"""
|
|
18991
|
-
return self.
|
|
20373
|
+
return self._TemplateSet
|
|
18992
20374
|
|
|
18993
|
-
@
|
|
18994
|
-
def
|
|
18995
|
-
self.
|
|
20375
|
+
@TemplateSet.setter
|
|
20376
|
+
def TemplateSet(self, TemplateSet):
|
|
20377
|
+
self._TemplateSet = TemplateSet
|
|
18996
20378
|
|
|
18997
20379
|
@property
|
|
18998
20380
|
def RequestId(self):
|
|
@@ -19008,42 +20390,43 @@ class DescribeL4ProxyResponse(AbstractModel):
|
|
|
19008
20390
|
|
|
19009
20391
|
def _deserialize(self, params):
|
|
19010
20392
|
self._TotalCount = params.get("TotalCount")
|
|
19011
|
-
if params.get("
|
|
19012
|
-
self.
|
|
19013
|
-
for item in params.get("
|
|
19014
|
-
obj =
|
|
20393
|
+
if params.get("TemplateSet") is not None:
|
|
20394
|
+
self._TemplateSet = []
|
|
20395
|
+
for item in params.get("TemplateSet"):
|
|
20396
|
+
obj = JustInTimeTranscodeTemplate()
|
|
19015
20397
|
obj._deserialize(item)
|
|
19016
|
-
self.
|
|
20398
|
+
self._TemplateSet.append(obj)
|
|
19017
20399
|
self._RequestId = params.get("RequestId")
|
|
19018
20400
|
|
|
19019
20401
|
|
|
19020
|
-
class
|
|
19021
|
-
"""
|
|
20402
|
+
class DescribeL4ProxyRequest(AbstractModel):
|
|
20403
|
+
"""DescribeL4Proxy请求参数结构体
|
|
19022
20404
|
|
|
19023
20405
|
"""
|
|
19024
20406
|
|
|
19025
20407
|
def __init__(self):
|
|
19026
20408
|
r"""
|
|
19027
|
-
:param _ZoneId:
|
|
20409
|
+
:param _ZoneId: 四层代理实例所属站点的 ID。
|
|
19028
20410
|
:type ZoneId: str
|
|
19029
|
-
:param
|
|
19030
|
-
:type ProxyId: str
|
|
19031
|
-
:param _Offset: 分页查询偏移量,不填写时默认为 0。
|
|
20411
|
+
:param _Offset: 分页查询偏移量,不填写时默认为 0。
|
|
19032
20412
|
:type Offset: int
|
|
19033
20413
|
:param _Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
|
19034
20414
|
:type Limit: int
|
|
19035
|
-
:param _Filters: 过滤条件,Filters.Values的上限为20
|
|
20415
|
+
:param _Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有四层代理实例信息。详细的过滤条件如下:
|
|
20416
|
+
<li>proxy-id:按照四层代理实例 ID 进行过滤;</li>
|
|
20417
|
+
<li>ddos-protection-type:按照安全防护类型进行过滤。</li>
|
|
20418
|
+
|
|
20419
|
+
|
|
19036
20420
|
:type Filters: list of Filter
|
|
19037
20421
|
"""
|
|
19038
20422
|
self._ZoneId = None
|
|
19039
|
-
self._ProxyId = None
|
|
19040
20423
|
self._Offset = None
|
|
19041
20424
|
self._Limit = None
|
|
19042
20425
|
self._Filters = None
|
|
19043
20426
|
|
|
19044
20427
|
@property
|
|
19045
20428
|
def ZoneId(self):
|
|
19046
|
-
"""
|
|
20429
|
+
"""四层代理实例所属站点的 ID。
|
|
19047
20430
|
:rtype: str
|
|
19048
20431
|
"""
|
|
19049
20432
|
return self._ZoneId
|
|
@@ -19052,20 +20435,176 @@ class DescribeL4ProxyRulesRequest(AbstractModel):
|
|
|
19052
20435
|
def ZoneId(self, ZoneId):
|
|
19053
20436
|
self._ZoneId = ZoneId
|
|
19054
20437
|
|
|
19055
|
-
@property
|
|
19056
|
-
def ProxyId(self):
|
|
19057
|
-
"""四层代理实例 ID。
|
|
19058
|
-
:rtype: str
|
|
19059
|
-
"""
|
|
19060
|
-
return self._ProxyId
|
|
19061
|
-
|
|
19062
|
-
@ProxyId.setter
|
|
19063
|
-
def ProxyId(self, ProxyId):
|
|
19064
|
-
self._ProxyId = ProxyId
|
|
19065
|
-
|
|
19066
20438
|
@property
|
|
19067
20439
|
def Offset(self):
|
|
19068
|
-
"""分页查询偏移量,不填写时默认为 0。
|
|
20440
|
+
"""分页查询偏移量,不填写时默认为 0。
|
|
20441
|
+
:rtype: int
|
|
20442
|
+
"""
|
|
20443
|
+
return self._Offset
|
|
20444
|
+
|
|
20445
|
+
@Offset.setter
|
|
20446
|
+
def Offset(self, Offset):
|
|
20447
|
+
self._Offset = Offset
|
|
20448
|
+
|
|
20449
|
+
@property
|
|
20450
|
+
def Limit(self):
|
|
20451
|
+
"""分页查询限制数目。默认值:20,最大值:1000。
|
|
20452
|
+
:rtype: int
|
|
20453
|
+
"""
|
|
20454
|
+
return self._Limit
|
|
20455
|
+
|
|
20456
|
+
@Limit.setter
|
|
20457
|
+
def Limit(self, Limit):
|
|
20458
|
+
self._Limit = Limit
|
|
20459
|
+
|
|
20460
|
+
@property
|
|
20461
|
+
def Filters(self):
|
|
20462
|
+
"""过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有四层代理实例信息。详细的过滤条件如下:
|
|
20463
|
+
<li>proxy-id:按照四层代理实例 ID 进行过滤;</li>
|
|
20464
|
+
<li>ddos-protection-type:按照安全防护类型进行过滤。</li>
|
|
20465
|
+
|
|
20466
|
+
|
|
20467
|
+
:rtype: list of Filter
|
|
20468
|
+
"""
|
|
20469
|
+
return self._Filters
|
|
20470
|
+
|
|
20471
|
+
@Filters.setter
|
|
20472
|
+
def Filters(self, Filters):
|
|
20473
|
+
self._Filters = Filters
|
|
20474
|
+
|
|
20475
|
+
|
|
20476
|
+
def _deserialize(self, params):
|
|
20477
|
+
self._ZoneId = params.get("ZoneId")
|
|
20478
|
+
self._Offset = params.get("Offset")
|
|
20479
|
+
self._Limit = params.get("Limit")
|
|
20480
|
+
if params.get("Filters") is not None:
|
|
20481
|
+
self._Filters = []
|
|
20482
|
+
for item in params.get("Filters"):
|
|
20483
|
+
obj = Filter()
|
|
20484
|
+
obj._deserialize(item)
|
|
20485
|
+
self._Filters.append(obj)
|
|
20486
|
+
memeber_set = set(params.keys())
|
|
20487
|
+
for name, value in vars(self).items():
|
|
20488
|
+
property_name = name[1:]
|
|
20489
|
+
if property_name in memeber_set:
|
|
20490
|
+
memeber_set.remove(property_name)
|
|
20491
|
+
if len(memeber_set) > 0:
|
|
20492
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20493
|
+
|
|
20494
|
+
|
|
20495
|
+
|
|
20496
|
+
class DescribeL4ProxyResponse(AbstractModel):
|
|
20497
|
+
"""DescribeL4Proxy返回参数结构体
|
|
20498
|
+
|
|
20499
|
+
"""
|
|
20500
|
+
|
|
20501
|
+
def __init__(self):
|
|
20502
|
+
r"""
|
|
20503
|
+
:param _TotalCount: 四层代理实例的数量。
|
|
20504
|
+
:type TotalCount: int
|
|
20505
|
+
:param _L4Proxies: 四层代理实例列表。
|
|
20506
|
+
:type L4Proxies: list of L4Proxy
|
|
20507
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20508
|
+
:type RequestId: str
|
|
20509
|
+
"""
|
|
20510
|
+
self._TotalCount = None
|
|
20511
|
+
self._L4Proxies = None
|
|
20512
|
+
self._RequestId = None
|
|
20513
|
+
|
|
20514
|
+
@property
|
|
20515
|
+
def TotalCount(self):
|
|
20516
|
+
"""四层代理实例的数量。
|
|
20517
|
+
:rtype: int
|
|
20518
|
+
"""
|
|
20519
|
+
return self._TotalCount
|
|
20520
|
+
|
|
20521
|
+
@TotalCount.setter
|
|
20522
|
+
def TotalCount(self, TotalCount):
|
|
20523
|
+
self._TotalCount = TotalCount
|
|
20524
|
+
|
|
20525
|
+
@property
|
|
20526
|
+
def L4Proxies(self):
|
|
20527
|
+
"""四层代理实例列表。
|
|
20528
|
+
:rtype: list of L4Proxy
|
|
20529
|
+
"""
|
|
20530
|
+
return self._L4Proxies
|
|
20531
|
+
|
|
20532
|
+
@L4Proxies.setter
|
|
20533
|
+
def L4Proxies(self, L4Proxies):
|
|
20534
|
+
self._L4Proxies = L4Proxies
|
|
20535
|
+
|
|
20536
|
+
@property
|
|
20537
|
+
def RequestId(self):
|
|
20538
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20539
|
+
:rtype: str
|
|
20540
|
+
"""
|
|
20541
|
+
return self._RequestId
|
|
20542
|
+
|
|
20543
|
+
@RequestId.setter
|
|
20544
|
+
def RequestId(self, RequestId):
|
|
20545
|
+
self._RequestId = RequestId
|
|
20546
|
+
|
|
20547
|
+
|
|
20548
|
+
def _deserialize(self, params):
|
|
20549
|
+
self._TotalCount = params.get("TotalCount")
|
|
20550
|
+
if params.get("L4Proxies") is not None:
|
|
20551
|
+
self._L4Proxies = []
|
|
20552
|
+
for item in params.get("L4Proxies"):
|
|
20553
|
+
obj = L4Proxy()
|
|
20554
|
+
obj._deserialize(item)
|
|
20555
|
+
self._L4Proxies.append(obj)
|
|
20556
|
+
self._RequestId = params.get("RequestId")
|
|
20557
|
+
|
|
20558
|
+
|
|
20559
|
+
class DescribeL4ProxyRulesRequest(AbstractModel):
|
|
20560
|
+
"""DescribeL4ProxyRules请求参数结构体
|
|
20561
|
+
|
|
20562
|
+
"""
|
|
20563
|
+
|
|
20564
|
+
def __init__(self):
|
|
20565
|
+
r"""
|
|
20566
|
+
:param _ZoneId: 站点 ID。
|
|
20567
|
+
:type ZoneId: str
|
|
20568
|
+
:param _ProxyId: 四层代理实例 ID。
|
|
20569
|
+
:type ProxyId: str
|
|
20570
|
+
:param _Offset: 分页查询偏移量,不填写时默认为 0。
|
|
20571
|
+
:type Offset: int
|
|
20572
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
|
20573
|
+
:type Limit: int
|
|
20574
|
+
:param _Filters: 过滤条件,Filters.Values的上限为20。不填写时返回当前四层实例下所有的规则信息,详细的过滤条件如下: <li>rule-id:按照规则 ID 对四层代理实例下的规则进行过滤。规则 ID 形如:rule-31vv7qig0vjy;</li> <li>rule-tag:按照规则标签对四层代理实例下的规则进行过滤。</li>
|
|
20575
|
+
:type Filters: list of Filter
|
|
20576
|
+
"""
|
|
20577
|
+
self._ZoneId = None
|
|
20578
|
+
self._ProxyId = None
|
|
20579
|
+
self._Offset = None
|
|
20580
|
+
self._Limit = None
|
|
20581
|
+
self._Filters = None
|
|
20582
|
+
|
|
20583
|
+
@property
|
|
20584
|
+
def ZoneId(self):
|
|
20585
|
+
"""站点 ID。
|
|
20586
|
+
:rtype: str
|
|
20587
|
+
"""
|
|
20588
|
+
return self._ZoneId
|
|
20589
|
+
|
|
20590
|
+
@ZoneId.setter
|
|
20591
|
+
def ZoneId(self, ZoneId):
|
|
20592
|
+
self._ZoneId = ZoneId
|
|
20593
|
+
|
|
20594
|
+
@property
|
|
20595
|
+
def ProxyId(self):
|
|
20596
|
+
"""四层代理实例 ID。
|
|
20597
|
+
:rtype: str
|
|
20598
|
+
"""
|
|
20599
|
+
return self._ProxyId
|
|
20600
|
+
|
|
20601
|
+
@ProxyId.setter
|
|
20602
|
+
def ProxyId(self, ProxyId):
|
|
20603
|
+
self._ProxyId = ProxyId
|
|
20604
|
+
|
|
20605
|
+
@property
|
|
20606
|
+
def Offset(self):
|
|
20607
|
+
"""分页查询偏移量,不填写时默认为 0。
|
|
19069
20608
|
:rtype: int
|
|
19070
20609
|
"""
|
|
19071
20610
|
return self._Offset
|
|
@@ -21725,6 +23264,532 @@ class DescribeRulesSettingResponse(AbstractModel):
|
|
|
21725
23264
|
self._RequestId = params.get("RequestId")
|
|
21726
23265
|
|
|
21727
23266
|
|
|
23267
|
+
class DescribeSecurityAPIResourceRequest(AbstractModel):
|
|
23268
|
+
"""DescribeSecurityAPIResource请求参数结构体
|
|
23269
|
+
|
|
23270
|
+
"""
|
|
23271
|
+
|
|
23272
|
+
def __init__(self):
|
|
23273
|
+
r"""
|
|
23274
|
+
:param _ZoneId: 站点 ID。
|
|
23275
|
+
:type ZoneId: str
|
|
23276
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:100。
|
|
23277
|
+
:type Limit: int
|
|
23278
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
23279
|
+
:type Offset: int
|
|
23280
|
+
"""
|
|
23281
|
+
self._ZoneId = None
|
|
23282
|
+
self._Limit = None
|
|
23283
|
+
self._Offset = None
|
|
23284
|
+
|
|
23285
|
+
@property
|
|
23286
|
+
def ZoneId(self):
|
|
23287
|
+
"""站点 ID。
|
|
23288
|
+
:rtype: str
|
|
23289
|
+
"""
|
|
23290
|
+
return self._ZoneId
|
|
23291
|
+
|
|
23292
|
+
@ZoneId.setter
|
|
23293
|
+
def ZoneId(self, ZoneId):
|
|
23294
|
+
self._ZoneId = ZoneId
|
|
23295
|
+
|
|
23296
|
+
@property
|
|
23297
|
+
def Limit(self):
|
|
23298
|
+
"""分页查询限制数目。默认值:20,最大值:100。
|
|
23299
|
+
:rtype: int
|
|
23300
|
+
"""
|
|
23301
|
+
return self._Limit
|
|
23302
|
+
|
|
23303
|
+
@Limit.setter
|
|
23304
|
+
def Limit(self, Limit):
|
|
23305
|
+
self._Limit = Limit
|
|
23306
|
+
|
|
23307
|
+
@property
|
|
23308
|
+
def Offset(self):
|
|
23309
|
+
"""分页查询偏移量。默认值:0。
|
|
23310
|
+
:rtype: int
|
|
23311
|
+
"""
|
|
23312
|
+
return self._Offset
|
|
23313
|
+
|
|
23314
|
+
@Offset.setter
|
|
23315
|
+
def Offset(self, Offset):
|
|
23316
|
+
self._Offset = Offset
|
|
23317
|
+
|
|
23318
|
+
|
|
23319
|
+
def _deserialize(self, params):
|
|
23320
|
+
self._ZoneId = params.get("ZoneId")
|
|
23321
|
+
self._Limit = params.get("Limit")
|
|
23322
|
+
self._Offset = params.get("Offset")
|
|
23323
|
+
memeber_set = set(params.keys())
|
|
23324
|
+
for name, value in vars(self).items():
|
|
23325
|
+
property_name = name[1:]
|
|
23326
|
+
if property_name in memeber_set:
|
|
23327
|
+
memeber_set.remove(property_name)
|
|
23328
|
+
if len(memeber_set) > 0:
|
|
23329
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23330
|
+
|
|
23331
|
+
|
|
23332
|
+
|
|
23333
|
+
class DescribeSecurityAPIResourceResponse(AbstractModel):
|
|
23334
|
+
"""DescribeSecurityAPIResource返回参数结构体
|
|
23335
|
+
|
|
23336
|
+
"""
|
|
23337
|
+
|
|
23338
|
+
def __init__(self):
|
|
23339
|
+
r"""
|
|
23340
|
+
:param _TotalCount: API 资源总数量。
|
|
23341
|
+
:type TotalCount: int
|
|
23342
|
+
:param _APIResources: API 资源列表。
|
|
23343
|
+
:type APIResources: list of APIResource
|
|
23344
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23345
|
+
:type RequestId: str
|
|
23346
|
+
"""
|
|
23347
|
+
self._TotalCount = None
|
|
23348
|
+
self._APIResources = None
|
|
23349
|
+
self._RequestId = None
|
|
23350
|
+
|
|
23351
|
+
@property
|
|
23352
|
+
def TotalCount(self):
|
|
23353
|
+
"""API 资源总数量。
|
|
23354
|
+
:rtype: int
|
|
23355
|
+
"""
|
|
23356
|
+
return self._TotalCount
|
|
23357
|
+
|
|
23358
|
+
@TotalCount.setter
|
|
23359
|
+
def TotalCount(self, TotalCount):
|
|
23360
|
+
self._TotalCount = TotalCount
|
|
23361
|
+
|
|
23362
|
+
@property
|
|
23363
|
+
def APIResources(self):
|
|
23364
|
+
"""API 资源列表。
|
|
23365
|
+
:rtype: list of APIResource
|
|
23366
|
+
"""
|
|
23367
|
+
return self._APIResources
|
|
23368
|
+
|
|
23369
|
+
@APIResources.setter
|
|
23370
|
+
def APIResources(self, APIResources):
|
|
23371
|
+
self._APIResources = APIResources
|
|
23372
|
+
|
|
23373
|
+
@property
|
|
23374
|
+
def RequestId(self):
|
|
23375
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23376
|
+
:rtype: str
|
|
23377
|
+
"""
|
|
23378
|
+
return self._RequestId
|
|
23379
|
+
|
|
23380
|
+
@RequestId.setter
|
|
23381
|
+
def RequestId(self, RequestId):
|
|
23382
|
+
self._RequestId = RequestId
|
|
23383
|
+
|
|
23384
|
+
|
|
23385
|
+
def _deserialize(self, params):
|
|
23386
|
+
self._TotalCount = params.get("TotalCount")
|
|
23387
|
+
if params.get("APIResources") is not None:
|
|
23388
|
+
self._APIResources = []
|
|
23389
|
+
for item in params.get("APIResources"):
|
|
23390
|
+
obj = APIResource()
|
|
23391
|
+
obj._deserialize(item)
|
|
23392
|
+
self._APIResources.append(obj)
|
|
23393
|
+
self._RequestId = params.get("RequestId")
|
|
23394
|
+
|
|
23395
|
+
|
|
23396
|
+
class DescribeSecurityAPIServiceRequest(AbstractModel):
|
|
23397
|
+
"""DescribeSecurityAPIService请求参数结构体
|
|
23398
|
+
|
|
23399
|
+
"""
|
|
23400
|
+
|
|
23401
|
+
def __init__(self):
|
|
23402
|
+
r"""
|
|
23403
|
+
:param _ZoneId: 站点 ID。
|
|
23404
|
+
:type ZoneId: str
|
|
23405
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:100。
|
|
23406
|
+
:type Limit: int
|
|
23407
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
23408
|
+
:type Offset: int
|
|
23409
|
+
"""
|
|
23410
|
+
self._ZoneId = None
|
|
23411
|
+
self._Limit = None
|
|
23412
|
+
self._Offset = None
|
|
23413
|
+
|
|
23414
|
+
@property
|
|
23415
|
+
def ZoneId(self):
|
|
23416
|
+
"""站点 ID。
|
|
23417
|
+
:rtype: str
|
|
23418
|
+
"""
|
|
23419
|
+
return self._ZoneId
|
|
23420
|
+
|
|
23421
|
+
@ZoneId.setter
|
|
23422
|
+
def ZoneId(self, ZoneId):
|
|
23423
|
+
self._ZoneId = ZoneId
|
|
23424
|
+
|
|
23425
|
+
@property
|
|
23426
|
+
def Limit(self):
|
|
23427
|
+
"""分页查询限制数目。默认值:20,最大值:100。
|
|
23428
|
+
:rtype: int
|
|
23429
|
+
"""
|
|
23430
|
+
return self._Limit
|
|
23431
|
+
|
|
23432
|
+
@Limit.setter
|
|
23433
|
+
def Limit(self, Limit):
|
|
23434
|
+
self._Limit = Limit
|
|
23435
|
+
|
|
23436
|
+
@property
|
|
23437
|
+
def Offset(self):
|
|
23438
|
+
"""分页查询偏移量。默认值:0。
|
|
23439
|
+
:rtype: int
|
|
23440
|
+
"""
|
|
23441
|
+
return self._Offset
|
|
23442
|
+
|
|
23443
|
+
@Offset.setter
|
|
23444
|
+
def Offset(self, Offset):
|
|
23445
|
+
self._Offset = Offset
|
|
23446
|
+
|
|
23447
|
+
|
|
23448
|
+
def _deserialize(self, params):
|
|
23449
|
+
self._ZoneId = params.get("ZoneId")
|
|
23450
|
+
self._Limit = params.get("Limit")
|
|
23451
|
+
self._Offset = params.get("Offset")
|
|
23452
|
+
memeber_set = set(params.keys())
|
|
23453
|
+
for name, value in vars(self).items():
|
|
23454
|
+
property_name = name[1:]
|
|
23455
|
+
if property_name in memeber_set:
|
|
23456
|
+
memeber_set.remove(property_name)
|
|
23457
|
+
if len(memeber_set) > 0:
|
|
23458
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23459
|
+
|
|
23460
|
+
|
|
23461
|
+
|
|
23462
|
+
class DescribeSecurityAPIServiceResponse(AbstractModel):
|
|
23463
|
+
"""DescribeSecurityAPIService返回参数结构体
|
|
23464
|
+
|
|
23465
|
+
"""
|
|
23466
|
+
|
|
23467
|
+
def __init__(self):
|
|
23468
|
+
r"""
|
|
23469
|
+
:param _TotalCount: API 服务总数量。
|
|
23470
|
+
:type TotalCount: int
|
|
23471
|
+
:param _APIServices: API 服务列表。
|
|
23472
|
+
:type APIServices: list of APIService
|
|
23473
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23474
|
+
:type RequestId: str
|
|
23475
|
+
"""
|
|
23476
|
+
self._TotalCount = None
|
|
23477
|
+
self._APIServices = None
|
|
23478
|
+
self._RequestId = None
|
|
23479
|
+
|
|
23480
|
+
@property
|
|
23481
|
+
def TotalCount(self):
|
|
23482
|
+
"""API 服务总数量。
|
|
23483
|
+
:rtype: int
|
|
23484
|
+
"""
|
|
23485
|
+
return self._TotalCount
|
|
23486
|
+
|
|
23487
|
+
@TotalCount.setter
|
|
23488
|
+
def TotalCount(self, TotalCount):
|
|
23489
|
+
self._TotalCount = TotalCount
|
|
23490
|
+
|
|
23491
|
+
@property
|
|
23492
|
+
def APIServices(self):
|
|
23493
|
+
"""API 服务列表。
|
|
23494
|
+
:rtype: list of APIService
|
|
23495
|
+
"""
|
|
23496
|
+
return self._APIServices
|
|
23497
|
+
|
|
23498
|
+
@APIServices.setter
|
|
23499
|
+
def APIServices(self, APIServices):
|
|
23500
|
+
self._APIServices = APIServices
|
|
23501
|
+
|
|
23502
|
+
@property
|
|
23503
|
+
def RequestId(self):
|
|
23504
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23505
|
+
:rtype: str
|
|
23506
|
+
"""
|
|
23507
|
+
return self._RequestId
|
|
23508
|
+
|
|
23509
|
+
@RequestId.setter
|
|
23510
|
+
def RequestId(self, RequestId):
|
|
23511
|
+
self._RequestId = RequestId
|
|
23512
|
+
|
|
23513
|
+
|
|
23514
|
+
def _deserialize(self, params):
|
|
23515
|
+
self._TotalCount = params.get("TotalCount")
|
|
23516
|
+
if params.get("APIServices") is not None:
|
|
23517
|
+
self._APIServices = []
|
|
23518
|
+
for item in params.get("APIServices"):
|
|
23519
|
+
obj = APIService()
|
|
23520
|
+
obj._deserialize(item)
|
|
23521
|
+
self._APIServices.append(obj)
|
|
23522
|
+
self._RequestId = params.get("RequestId")
|
|
23523
|
+
|
|
23524
|
+
|
|
23525
|
+
class DescribeSecurityClientAttesterRequest(AbstractModel):
|
|
23526
|
+
"""DescribeSecurityClientAttester请求参数结构体
|
|
23527
|
+
|
|
23528
|
+
"""
|
|
23529
|
+
|
|
23530
|
+
def __init__(self):
|
|
23531
|
+
r"""
|
|
23532
|
+
:param _ZoneId: 站点 ID。
|
|
23533
|
+
:type ZoneId: str
|
|
23534
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:100。
|
|
23535
|
+
:type Limit: int
|
|
23536
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
23537
|
+
:type Offset: int
|
|
23538
|
+
"""
|
|
23539
|
+
self._ZoneId = None
|
|
23540
|
+
self._Limit = None
|
|
23541
|
+
self._Offset = None
|
|
23542
|
+
|
|
23543
|
+
@property
|
|
23544
|
+
def ZoneId(self):
|
|
23545
|
+
"""站点 ID。
|
|
23546
|
+
:rtype: str
|
|
23547
|
+
"""
|
|
23548
|
+
return self._ZoneId
|
|
23549
|
+
|
|
23550
|
+
@ZoneId.setter
|
|
23551
|
+
def ZoneId(self, ZoneId):
|
|
23552
|
+
self._ZoneId = ZoneId
|
|
23553
|
+
|
|
23554
|
+
@property
|
|
23555
|
+
def Limit(self):
|
|
23556
|
+
"""分页查询限制数目。默认值:20,最大值:100。
|
|
23557
|
+
:rtype: int
|
|
23558
|
+
"""
|
|
23559
|
+
return self._Limit
|
|
23560
|
+
|
|
23561
|
+
@Limit.setter
|
|
23562
|
+
def Limit(self, Limit):
|
|
23563
|
+
self._Limit = Limit
|
|
23564
|
+
|
|
23565
|
+
@property
|
|
23566
|
+
def Offset(self):
|
|
23567
|
+
"""分页查询偏移量。默认值:0。
|
|
23568
|
+
:rtype: int
|
|
23569
|
+
"""
|
|
23570
|
+
return self._Offset
|
|
23571
|
+
|
|
23572
|
+
@Offset.setter
|
|
23573
|
+
def Offset(self, Offset):
|
|
23574
|
+
self._Offset = Offset
|
|
23575
|
+
|
|
23576
|
+
|
|
23577
|
+
def _deserialize(self, params):
|
|
23578
|
+
self._ZoneId = params.get("ZoneId")
|
|
23579
|
+
self._Limit = params.get("Limit")
|
|
23580
|
+
self._Offset = params.get("Offset")
|
|
23581
|
+
memeber_set = set(params.keys())
|
|
23582
|
+
for name, value in vars(self).items():
|
|
23583
|
+
property_name = name[1:]
|
|
23584
|
+
if property_name in memeber_set:
|
|
23585
|
+
memeber_set.remove(property_name)
|
|
23586
|
+
if len(memeber_set) > 0:
|
|
23587
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23588
|
+
|
|
23589
|
+
|
|
23590
|
+
|
|
23591
|
+
class DescribeSecurityClientAttesterResponse(AbstractModel):
|
|
23592
|
+
"""DescribeSecurityClientAttester返回参数结构体
|
|
23593
|
+
|
|
23594
|
+
"""
|
|
23595
|
+
|
|
23596
|
+
def __init__(self):
|
|
23597
|
+
r"""
|
|
23598
|
+
:param _TotalCount: 认证选项总数量。
|
|
23599
|
+
:type TotalCount: int
|
|
23600
|
+
:param _ClientAttesters: 认证选项列表。
|
|
23601
|
+
:type ClientAttesters: list of ClientAttester
|
|
23602
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23603
|
+
:type RequestId: str
|
|
23604
|
+
"""
|
|
23605
|
+
self._TotalCount = None
|
|
23606
|
+
self._ClientAttesters = None
|
|
23607
|
+
self._RequestId = None
|
|
23608
|
+
|
|
23609
|
+
@property
|
|
23610
|
+
def TotalCount(self):
|
|
23611
|
+
"""认证选项总数量。
|
|
23612
|
+
:rtype: int
|
|
23613
|
+
"""
|
|
23614
|
+
return self._TotalCount
|
|
23615
|
+
|
|
23616
|
+
@TotalCount.setter
|
|
23617
|
+
def TotalCount(self, TotalCount):
|
|
23618
|
+
self._TotalCount = TotalCount
|
|
23619
|
+
|
|
23620
|
+
@property
|
|
23621
|
+
def ClientAttesters(self):
|
|
23622
|
+
"""认证选项列表。
|
|
23623
|
+
:rtype: list of ClientAttester
|
|
23624
|
+
"""
|
|
23625
|
+
return self._ClientAttesters
|
|
23626
|
+
|
|
23627
|
+
@ClientAttesters.setter
|
|
23628
|
+
def ClientAttesters(self, ClientAttesters):
|
|
23629
|
+
self._ClientAttesters = ClientAttesters
|
|
23630
|
+
|
|
23631
|
+
@property
|
|
23632
|
+
def RequestId(self):
|
|
23633
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23634
|
+
:rtype: str
|
|
23635
|
+
"""
|
|
23636
|
+
return self._RequestId
|
|
23637
|
+
|
|
23638
|
+
@RequestId.setter
|
|
23639
|
+
def RequestId(self, RequestId):
|
|
23640
|
+
self._RequestId = RequestId
|
|
23641
|
+
|
|
23642
|
+
|
|
23643
|
+
def _deserialize(self, params):
|
|
23644
|
+
self._TotalCount = params.get("TotalCount")
|
|
23645
|
+
if params.get("ClientAttesters") is not None:
|
|
23646
|
+
self._ClientAttesters = []
|
|
23647
|
+
for item in params.get("ClientAttesters"):
|
|
23648
|
+
obj = ClientAttester()
|
|
23649
|
+
obj._deserialize(item)
|
|
23650
|
+
self._ClientAttesters.append(obj)
|
|
23651
|
+
self._RequestId = params.get("RequestId")
|
|
23652
|
+
|
|
23653
|
+
|
|
23654
|
+
class DescribeSecurityIPGroupContentRequest(AbstractModel):
|
|
23655
|
+
"""DescribeSecurityIPGroupContent请求参数结构体
|
|
23656
|
+
|
|
23657
|
+
"""
|
|
23658
|
+
|
|
23659
|
+
def __init__(self):
|
|
23660
|
+
r"""
|
|
23661
|
+
:param _ZoneId: 站点 ID。
|
|
23662
|
+
:type ZoneId: str
|
|
23663
|
+
:param _GroupId: IP 组 ID。
|
|
23664
|
+
:type GroupId: int
|
|
23665
|
+
:param _Limit: 分页查询限制数目。默认值:2000,最大值:100000。
|
|
23666
|
+
:type Limit: int
|
|
23667
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
23668
|
+
:type Offset: int
|
|
23669
|
+
"""
|
|
23670
|
+
self._ZoneId = None
|
|
23671
|
+
self._GroupId = None
|
|
23672
|
+
self._Limit = None
|
|
23673
|
+
self._Offset = None
|
|
23674
|
+
|
|
23675
|
+
@property
|
|
23676
|
+
def ZoneId(self):
|
|
23677
|
+
"""站点 ID。
|
|
23678
|
+
:rtype: str
|
|
23679
|
+
"""
|
|
23680
|
+
return self._ZoneId
|
|
23681
|
+
|
|
23682
|
+
@ZoneId.setter
|
|
23683
|
+
def ZoneId(self, ZoneId):
|
|
23684
|
+
self._ZoneId = ZoneId
|
|
23685
|
+
|
|
23686
|
+
@property
|
|
23687
|
+
def GroupId(self):
|
|
23688
|
+
"""IP 组 ID。
|
|
23689
|
+
:rtype: int
|
|
23690
|
+
"""
|
|
23691
|
+
return self._GroupId
|
|
23692
|
+
|
|
23693
|
+
@GroupId.setter
|
|
23694
|
+
def GroupId(self, GroupId):
|
|
23695
|
+
self._GroupId = GroupId
|
|
23696
|
+
|
|
23697
|
+
@property
|
|
23698
|
+
def Limit(self):
|
|
23699
|
+
"""分页查询限制数目。默认值:2000,最大值:100000。
|
|
23700
|
+
:rtype: int
|
|
23701
|
+
"""
|
|
23702
|
+
return self._Limit
|
|
23703
|
+
|
|
23704
|
+
@Limit.setter
|
|
23705
|
+
def Limit(self, Limit):
|
|
23706
|
+
self._Limit = Limit
|
|
23707
|
+
|
|
23708
|
+
@property
|
|
23709
|
+
def Offset(self):
|
|
23710
|
+
"""分页查询偏移量。默认值:0。
|
|
23711
|
+
:rtype: int
|
|
23712
|
+
"""
|
|
23713
|
+
return self._Offset
|
|
23714
|
+
|
|
23715
|
+
@Offset.setter
|
|
23716
|
+
def Offset(self, Offset):
|
|
23717
|
+
self._Offset = Offset
|
|
23718
|
+
|
|
23719
|
+
|
|
23720
|
+
def _deserialize(self, params):
|
|
23721
|
+
self._ZoneId = params.get("ZoneId")
|
|
23722
|
+
self._GroupId = params.get("GroupId")
|
|
23723
|
+
self._Limit = params.get("Limit")
|
|
23724
|
+
self._Offset = params.get("Offset")
|
|
23725
|
+
memeber_set = set(params.keys())
|
|
23726
|
+
for name, value in vars(self).items():
|
|
23727
|
+
property_name = name[1:]
|
|
23728
|
+
if property_name in memeber_set:
|
|
23729
|
+
memeber_set.remove(property_name)
|
|
23730
|
+
if len(memeber_set) > 0:
|
|
23731
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23732
|
+
|
|
23733
|
+
|
|
23734
|
+
|
|
23735
|
+
class DescribeSecurityIPGroupContentResponse(AbstractModel):
|
|
23736
|
+
"""DescribeSecurityIPGroupContent返回参数结构体
|
|
23737
|
+
|
|
23738
|
+
"""
|
|
23739
|
+
|
|
23740
|
+
def __init__(self):
|
|
23741
|
+
r"""
|
|
23742
|
+
:param _IPTotalCount: IP 组中正在生效的 IP 或网段个数。
|
|
23743
|
+
:type IPTotalCount: int
|
|
23744
|
+
:param _IPList: 满足查询条件的 IP 或网段列表。受 Limit 和 Offset 参数限制。
|
|
23745
|
+
:type IPList: list of str
|
|
23746
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23747
|
+
:type RequestId: str
|
|
23748
|
+
"""
|
|
23749
|
+
self._IPTotalCount = None
|
|
23750
|
+
self._IPList = None
|
|
23751
|
+
self._RequestId = None
|
|
23752
|
+
|
|
23753
|
+
@property
|
|
23754
|
+
def IPTotalCount(self):
|
|
23755
|
+
"""IP 组中正在生效的 IP 或网段个数。
|
|
23756
|
+
:rtype: int
|
|
23757
|
+
"""
|
|
23758
|
+
return self._IPTotalCount
|
|
23759
|
+
|
|
23760
|
+
@IPTotalCount.setter
|
|
23761
|
+
def IPTotalCount(self, IPTotalCount):
|
|
23762
|
+
self._IPTotalCount = IPTotalCount
|
|
23763
|
+
|
|
23764
|
+
@property
|
|
23765
|
+
def IPList(self):
|
|
23766
|
+
"""满足查询条件的 IP 或网段列表。受 Limit 和 Offset 参数限制。
|
|
23767
|
+
:rtype: list of str
|
|
23768
|
+
"""
|
|
23769
|
+
return self._IPList
|
|
23770
|
+
|
|
23771
|
+
@IPList.setter
|
|
23772
|
+
def IPList(self, IPList):
|
|
23773
|
+
self._IPList = IPList
|
|
23774
|
+
|
|
23775
|
+
@property
|
|
23776
|
+
def RequestId(self):
|
|
23777
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23778
|
+
:rtype: str
|
|
23779
|
+
"""
|
|
23780
|
+
return self._RequestId
|
|
23781
|
+
|
|
23782
|
+
@RequestId.setter
|
|
23783
|
+
def RequestId(self, RequestId):
|
|
23784
|
+
self._RequestId = RequestId
|
|
23785
|
+
|
|
23786
|
+
|
|
23787
|
+
def _deserialize(self, params):
|
|
23788
|
+
self._IPTotalCount = params.get("IPTotalCount")
|
|
23789
|
+
self._IPList = params.get("IPList")
|
|
23790
|
+
self._RequestId = params.get("RequestId")
|
|
23791
|
+
|
|
23792
|
+
|
|
21728
23793
|
class DescribeSecurityIPGroupInfoRequest(AbstractModel):
|
|
21729
23794
|
"""DescribeSecurityIPGroupInfo请求参数结构体
|
|
21730
23795
|
|
|
@@ -21844,7 +23909,106 @@ class DescribeSecurityIPGroupInfoResponse(AbstractModel):
|
|
|
21844
23909
|
|
|
21845
23910
|
|
|
21846
23911
|
def _deserialize(self, params):
|
|
21847
|
-
self._TotalCount = params.get("TotalCount")
|
|
23912
|
+
self._TotalCount = params.get("TotalCount")
|
|
23913
|
+
if params.get("IPGroups") is not None:
|
|
23914
|
+
self._IPGroups = []
|
|
23915
|
+
for item in params.get("IPGroups"):
|
|
23916
|
+
obj = IPGroup()
|
|
23917
|
+
obj._deserialize(item)
|
|
23918
|
+
self._IPGroups.append(obj)
|
|
23919
|
+
self._RequestId = params.get("RequestId")
|
|
23920
|
+
|
|
23921
|
+
|
|
23922
|
+
class DescribeSecurityIPGroupRequest(AbstractModel):
|
|
23923
|
+
"""DescribeSecurityIPGroup请求参数结构体
|
|
23924
|
+
|
|
23925
|
+
"""
|
|
23926
|
+
|
|
23927
|
+
def __init__(self):
|
|
23928
|
+
r"""
|
|
23929
|
+
:param _ZoneId: 站点 ID ,用于指定查询的站点范围。
|
|
23930
|
+
:type ZoneId: str
|
|
23931
|
+
:param _GroupIds: 指定安全 IP 组 ID。 <li>提供该参数时,仅查询指定 ID 的安全 IP 组配置;</li> <li>不传递参数时,返回站点下所有安全 IP 组信息。</li>
|
|
23932
|
+
:type GroupIds: list of int
|
|
23933
|
+
"""
|
|
23934
|
+
self._ZoneId = None
|
|
23935
|
+
self._GroupIds = None
|
|
23936
|
+
|
|
23937
|
+
@property
|
|
23938
|
+
def ZoneId(self):
|
|
23939
|
+
"""站点 ID ,用于指定查询的站点范围。
|
|
23940
|
+
:rtype: str
|
|
23941
|
+
"""
|
|
23942
|
+
return self._ZoneId
|
|
23943
|
+
|
|
23944
|
+
@ZoneId.setter
|
|
23945
|
+
def ZoneId(self, ZoneId):
|
|
23946
|
+
self._ZoneId = ZoneId
|
|
23947
|
+
|
|
23948
|
+
@property
|
|
23949
|
+
def GroupIds(self):
|
|
23950
|
+
"""指定安全 IP 组 ID。 <li>提供该参数时,仅查询指定 ID 的安全 IP 组配置;</li> <li>不传递参数时,返回站点下所有安全 IP 组信息。</li>
|
|
23951
|
+
:rtype: list of int
|
|
23952
|
+
"""
|
|
23953
|
+
return self._GroupIds
|
|
23954
|
+
|
|
23955
|
+
@GroupIds.setter
|
|
23956
|
+
def GroupIds(self, GroupIds):
|
|
23957
|
+
self._GroupIds = GroupIds
|
|
23958
|
+
|
|
23959
|
+
|
|
23960
|
+
def _deserialize(self, params):
|
|
23961
|
+
self._ZoneId = params.get("ZoneId")
|
|
23962
|
+
self._GroupIds = params.get("GroupIds")
|
|
23963
|
+
memeber_set = set(params.keys())
|
|
23964
|
+
for name, value in vars(self).items():
|
|
23965
|
+
property_name = name[1:]
|
|
23966
|
+
if property_name in memeber_set:
|
|
23967
|
+
memeber_set.remove(property_name)
|
|
23968
|
+
if len(memeber_set) > 0:
|
|
23969
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23970
|
+
|
|
23971
|
+
|
|
23972
|
+
|
|
23973
|
+
class DescribeSecurityIPGroupResponse(AbstractModel):
|
|
23974
|
+
"""DescribeSecurityIPGroup返回参数结构体
|
|
23975
|
+
|
|
23976
|
+
"""
|
|
23977
|
+
|
|
23978
|
+
def __init__(self):
|
|
23979
|
+
r"""
|
|
23980
|
+
:param _IPGroups: 安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、IP / 网段总数量、 IP / 网段列表信息和过期时间信息。
|
|
23981
|
+
:type IPGroups: list of IPGroup
|
|
23982
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23983
|
+
:type RequestId: str
|
|
23984
|
+
"""
|
|
23985
|
+
self._IPGroups = None
|
|
23986
|
+
self._RequestId = None
|
|
23987
|
+
|
|
23988
|
+
@property
|
|
23989
|
+
def IPGroups(self):
|
|
23990
|
+
"""安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、IP / 网段总数量、 IP / 网段列表信息和过期时间信息。
|
|
23991
|
+
:rtype: list of IPGroup
|
|
23992
|
+
"""
|
|
23993
|
+
return self._IPGroups
|
|
23994
|
+
|
|
23995
|
+
@IPGroups.setter
|
|
23996
|
+
def IPGroups(self, IPGroups):
|
|
23997
|
+
self._IPGroups = IPGroups
|
|
23998
|
+
|
|
23999
|
+
@property
|
|
24000
|
+
def RequestId(self):
|
|
24001
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
24002
|
+
:rtype: str
|
|
24003
|
+
"""
|
|
24004
|
+
return self._RequestId
|
|
24005
|
+
|
|
24006
|
+
@RequestId.setter
|
|
24007
|
+
def RequestId(self, RequestId):
|
|
24008
|
+
self._RequestId = RequestId
|
|
24009
|
+
|
|
24010
|
+
|
|
24011
|
+
def _deserialize(self, params):
|
|
21848
24012
|
if params.get("IPGroups") is not None:
|
|
21849
24013
|
self._IPGroups = []
|
|
21850
24014
|
for item in params.get("IPGroups"):
|
|
@@ -21854,24 +24018,27 @@ class DescribeSecurityIPGroupInfoResponse(AbstractModel):
|
|
|
21854
24018
|
self._RequestId = params.get("RequestId")
|
|
21855
24019
|
|
|
21856
24020
|
|
|
21857
|
-
class
|
|
21858
|
-
"""
|
|
24021
|
+
class DescribeSecurityJSInjectionRuleRequest(AbstractModel):
|
|
24022
|
+
"""DescribeSecurityJSInjectionRule请求参数结构体
|
|
21859
24023
|
|
|
21860
24024
|
"""
|
|
21861
24025
|
|
|
21862
24026
|
def __init__(self):
|
|
21863
24027
|
r"""
|
|
21864
|
-
:param _ZoneId: 站点 ID
|
|
24028
|
+
:param _ZoneId: 站点 ID。
|
|
21865
24029
|
:type ZoneId: str
|
|
21866
|
-
:param
|
|
21867
|
-
:type
|
|
24030
|
+
:param _Limit: 分页查询限制数目。默认值:20,最大值:100。
|
|
24031
|
+
:type Limit: int
|
|
24032
|
+
:param _Offset: 分页查询偏移量。默认值:0。
|
|
24033
|
+
:type Offset: int
|
|
21868
24034
|
"""
|
|
21869
24035
|
self._ZoneId = None
|
|
21870
|
-
self.
|
|
24036
|
+
self._Limit = None
|
|
24037
|
+
self._Offset = None
|
|
21871
24038
|
|
|
21872
24039
|
@property
|
|
21873
24040
|
def ZoneId(self):
|
|
21874
|
-
"""站点 ID
|
|
24041
|
+
"""站点 ID。
|
|
21875
24042
|
:rtype: str
|
|
21876
24043
|
"""
|
|
21877
24044
|
return self._ZoneId
|
|
@@ -21881,20 +24048,32 @@ class DescribeSecurityIPGroupRequest(AbstractModel):
|
|
|
21881
24048
|
self._ZoneId = ZoneId
|
|
21882
24049
|
|
|
21883
24050
|
@property
|
|
21884
|
-
def
|
|
21885
|
-
"""
|
|
21886
|
-
:rtype:
|
|
24051
|
+
def Limit(self):
|
|
24052
|
+
"""分页查询限制数目。默认值:20,最大值:100。
|
|
24053
|
+
:rtype: int
|
|
21887
24054
|
"""
|
|
21888
|
-
return self.
|
|
24055
|
+
return self._Limit
|
|
21889
24056
|
|
|
21890
|
-
@
|
|
21891
|
-
def
|
|
21892
|
-
self.
|
|
24057
|
+
@Limit.setter
|
|
24058
|
+
def Limit(self, Limit):
|
|
24059
|
+
self._Limit = Limit
|
|
24060
|
+
|
|
24061
|
+
@property
|
|
24062
|
+
def Offset(self):
|
|
24063
|
+
"""分页查询偏移量。默认值:0。
|
|
24064
|
+
:rtype: int
|
|
24065
|
+
"""
|
|
24066
|
+
return self._Offset
|
|
24067
|
+
|
|
24068
|
+
@Offset.setter
|
|
24069
|
+
def Offset(self, Offset):
|
|
24070
|
+
self._Offset = Offset
|
|
21893
24071
|
|
|
21894
24072
|
|
|
21895
24073
|
def _deserialize(self, params):
|
|
21896
24074
|
self._ZoneId = params.get("ZoneId")
|
|
21897
|
-
self.
|
|
24075
|
+
self._Limit = params.get("Limit")
|
|
24076
|
+
self._Offset = params.get("Offset")
|
|
21898
24077
|
memeber_set = set(params.keys())
|
|
21899
24078
|
for name, value in vars(self).items():
|
|
21900
24079
|
property_name = name[1:]
|
|
@@ -21905,31 +24084,45 @@ class DescribeSecurityIPGroupRequest(AbstractModel):
|
|
|
21905
24084
|
|
|
21906
24085
|
|
|
21907
24086
|
|
|
21908
|
-
class
|
|
21909
|
-
"""
|
|
24087
|
+
class DescribeSecurityJSInjectionRuleResponse(AbstractModel):
|
|
24088
|
+
"""DescribeSecurityJSInjectionRule返回参数结构体
|
|
21910
24089
|
|
|
21911
24090
|
"""
|
|
21912
24091
|
|
|
21913
24092
|
def __init__(self):
|
|
21914
24093
|
r"""
|
|
21915
|
-
:param
|
|
21916
|
-
:type
|
|
24094
|
+
:param _TotalCount: JavaScript 注入规则总数量。
|
|
24095
|
+
:type TotalCount: int
|
|
24096
|
+
:param _JSInjectionRules: JavaScript 注入规则列表。
|
|
24097
|
+
:type JSInjectionRules: list of JSInjectionRule
|
|
21917
24098
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21918
24099
|
:type RequestId: str
|
|
21919
24100
|
"""
|
|
21920
|
-
self.
|
|
24101
|
+
self._TotalCount = None
|
|
24102
|
+
self._JSInjectionRules = None
|
|
21921
24103
|
self._RequestId = None
|
|
21922
24104
|
|
|
21923
24105
|
@property
|
|
21924
|
-
def
|
|
21925
|
-
"""
|
|
21926
|
-
:rtype:
|
|
24106
|
+
def TotalCount(self):
|
|
24107
|
+
"""JavaScript 注入规则总数量。
|
|
24108
|
+
:rtype: int
|
|
21927
24109
|
"""
|
|
21928
|
-
return self.
|
|
24110
|
+
return self._TotalCount
|
|
21929
24111
|
|
|
21930
|
-
@
|
|
21931
|
-
def
|
|
21932
|
-
self.
|
|
24112
|
+
@TotalCount.setter
|
|
24113
|
+
def TotalCount(self, TotalCount):
|
|
24114
|
+
self._TotalCount = TotalCount
|
|
24115
|
+
|
|
24116
|
+
@property
|
|
24117
|
+
def JSInjectionRules(self):
|
|
24118
|
+
"""JavaScript 注入规则列表。
|
|
24119
|
+
:rtype: list of JSInjectionRule
|
|
24120
|
+
"""
|
|
24121
|
+
return self._JSInjectionRules
|
|
24122
|
+
|
|
24123
|
+
@JSInjectionRules.setter
|
|
24124
|
+
def JSInjectionRules(self, JSInjectionRules):
|
|
24125
|
+
self._JSInjectionRules = JSInjectionRules
|
|
21933
24126
|
|
|
21934
24127
|
@property
|
|
21935
24128
|
def RequestId(self):
|
|
@@ -21944,12 +24137,13 @@ class DescribeSecurityIPGroupResponse(AbstractModel):
|
|
|
21944
24137
|
|
|
21945
24138
|
|
|
21946
24139
|
def _deserialize(self, params):
|
|
21947
|
-
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
24140
|
+
self._TotalCount = params.get("TotalCount")
|
|
24141
|
+
if params.get("JSInjectionRules") is not None:
|
|
24142
|
+
self._JSInjectionRules = []
|
|
24143
|
+
for item in params.get("JSInjectionRules"):
|
|
24144
|
+
obj = JSInjectionRule()
|
|
21951
24145
|
obj._deserialize(item)
|
|
21952
|
-
self.
|
|
24146
|
+
self._JSInjectionRules.append(obj)
|
|
21953
24147
|
self._RequestId = params.get("RequestId")
|
|
21954
24148
|
|
|
21955
24149
|
|
|
@@ -30565,6 +32759,283 @@ class JITVideoProcess(AbstractModel):
|
|
|
30565
32759
|
|
|
30566
32760
|
|
|
30567
32761
|
|
|
32762
|
+
class JSInjectionRule(AbstractModel):
|
|
32763
|
+
"""JavaScript 注入规则。
|
|
32764
|
+
|
|
32765
|
+
"""
|
|
32766
|
+
|
|
32767
|
+
def __init__(self):
|
|
32768
|
+
r"""
|
|
32769
|
+
:param _RuleId: 规则 ID。
|
|
32770
|
+
:type RuleId: str
|
|
32771
|
+
:param _Name: 规则名称。
|
|
32772
|
+
:type Name: str
|
|
32773
|
+
:param _Priority: 规则优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。
|
|
32774
|
+
:type Priority: int
|
|
32775
|
+
:param _Condition: 匹配条件内容。需符合表达式语法,详细规范参见产品文档。
|
|
32776
|
+
:type Condition: str
|
|
32777
|
+
:param _InjectJS: JavaScript 注入选项。默认值为 run-attestations,取值有:
|
|
32778
|
+
<li> no-injection: 不注入 JavaScript;</li>
|
|
32779
|
+
<li> inject-sdk-only: 注入当前支持的所有认证方式的 SDK,当前支持:TC-RCE 和 TC-CAPTCHA。注意:若需执行认证检测,请配置挑战规则。</li>
|
|
32780
|
+
|
|
32781
|
+
:type InjectJS: str
|
|
32782
|
+
"""
|
|
32783
|
+
self._RuleId = None
|
|
32784
|
+
self._Name = None
|
|
32785
|
+
self._Priority = None
|
|
32786
|
+
self._Condition = None
|
|
32787
|
+
self._InjectJS = None
|
|
32788
|
+
|
|
32789
|
+
@property
|
|
32790
|
+
def RuleId(self):
|
|
32791
|
+
"""规则 ID。
|
|
32792
|
+
:rtype: str
|
|
32793
|
+
"""
|
|
32794
|
+
return self._RuleId
|
|
32795
|
+
|
|
32796
|
+
@RuleId.setter
|
|
32797
|
+
def RuleId(self, RuleId):
|
|
32798
|
+
self._RuleId = RuleId
|
|
32799
|
+
|
|
32800
|
+
@property
|
|
32801
|
+
def Name(self):
|
|
32802
|
+
"""规则名称。
|
|
32803
|
+
:rtype: str
|
|
32804
|
+
"""
|
|
32805
|
+
return self._Name
|
|
32806
|
+
|
|
32807
|
+
@Name.setter
|
|
32808
|
+
def Name(self, Name):
|
|
32809
|
+
self._Name = Name
|
|
32810
|
+
|
|
32811
|
+
@property
|
|
32812
|
+
def Priority(self):
|
|
32813
|
+
"""规则优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。
|
|
32814
|
+
:rtype: int
|
|
32815
|
+
"""
|
|
32816
|
+
return self._Priority
|
|
32817
|
+
|
|
32818
|
+
@Priority.setter
|
|
32819
|
+
def Priority(self, Priority):
|
|
32820
|
+
self._Priority = Priority
|
|
32821
|
+
|
|
32822
|
+
@property
|
|
32823
|
+
def Condition(self):
|
|
32824
|
+
"""匹配条件内容。需符合表达式语法,详细规范参见产品文档。
|
|
32825
|
+
:rtype: str
|
|
32826
|
+
"""
|
|
32827
|
+
return self._Condition
|
|
32828
|
+
|
|
32829
|
+
@Condition.setter
|
|
32830
|
+
def Condition(self, Condition):
|
|
32831
|
+
self._Condition = Condition
|
|
32832
|
+
|
|
32833
|
+
@property
|
|
32834
|
+
def InjectJS(self):
|
|
32835
|
+
"""JavaScript 注入选项。默认值为 run-attestations,取值有:
|
|
32836
|
+
<li> no-injection: 不注入 JavaScript;</li>
|
|
32837
|
+
<li> inject-sdk-only: 注入当前支持的所有认证方式的 SDK,当前支持:TC-RCE 和 TC-CAPTCHA。注意:若需执行认证检测,请配置挑战规则。</li>
|
|
32838
|
+
|
|
32839
|
+
:rtype: str
|
|
32840
|
+
"""
|
|
32841
|
+
return self._InjectJS
|
|
32842
|
+
|
|
32843
|
+
@InjectJS.setter
|
|
32844
|
+
def InjectJS(self, InjectJS):
|
|
32845
|
+
self._InjectJS = InjectJS
|
|
32846
|
+
|
|
32847
|
+
|
|
32848
|
+
def _deserialize(self, params):
|
|
32849
|
+
self._RuleId = params.get("RuleId")
|
|
32850
|
+
self._Name = params.get("Name")
|
|
32851
|
+
self._Priority = params.get("Priority")
|
|
32852
|
+
self._Condition = params.get("Condition")
|
|
32853
|
+
self._InjectJS = params.get("InjectJS")
|
|
32854
|
+
memeber_set = set(params.keys())
|
|
32855
|
+
for name, value in vars(self).items():
|
|
32856
|
+
property_name = name[1:]
|
|
32857
|
+
if property_name in memeber_set:
|
|
32858
|
+
memeber_set.remove(property_name)
|
|
32859
|
+
if len(memeber_set) > 0:
|
|
32860
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
32861
|
+
|
|
32862
|
+
|
|
32863
|
+
|
|
32864
|
+
class JustInTimeTranscodeTemplate(AbstractModel):
|
|
32865
|
+
"""即时转码模板详情。
|
|
32866
|
+
|
|
32867
|
+
"""
|
|
32868
|
+
|
|
32869
|
+
def __init__(self):
|
|
32870
|
+
r"""
|
|
32871
|
+
:param _TemplateId: 即时转码模板唯一标识。
|
|
32872
|
+
:type TemplateId: str
|
|
32873
|
+
:param _TemplateName: 转码模板名称。
|
|
32874
|
+
:type TemplateName: str
|
|
32875
|
+
:param _Comment: 模板描述信息。
|
|
32876
|
+
:type Comment: str
|
|
32877
|
+
:param _Type: 模板类型,取值:<li>preset:系统预置模板;</li><li>custom:用户自定义模板。</li>
|
|
32878
|
+
:type Type: str
|
|
32879
|
+
:param _VideoStreamSwitch: 启用视频流开关,取值:<li>on:开启;</li><li>off:关闭。</li>
|
|
32880
|
+
:type VideoStreamSwitch: str
|
|
32881
|
+
:param _AudioStreamSwitch: 启用音频流开关,取值:<li>on:开启;</li><li>off:关闭。</li>
|
|
32882
|
+
:type AudioStreamSwitch: str
|
|
32883
|
+
:param _VideoTemplate: 视频流配置参数,仅当 VideoStreamSwitch 为 on,该字段有效。
|
|
32884
|
+
:type VideoTemplate: :class:`tencentcloud.teo.v20220901.models.VideoTemplateInfo`
|
|
32885
|
+
:param _AudioTemplate: 音频流配置参数,仅当 AudioStreamSwitch 为 on,该字段有效。
|
|
32886
|
+
:type AudioTemplate: :class:`tencentcloud.teo.v20220901.models.AudioTemplateInfo`
|
|
32887
|
+
:param _CreateTime: 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
|
32888
|
+
:type CreateTime: str
|
|
32889
|
+
:param _UpdateTime: 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
|
32890
|
+
:type UpdateTime: str
|
|
32891
|
+
"""
|
|
32892
|
+
self._TemplateId = None
|
|
32893
|
+
self._TemplateName = None
|
|
32894
|
+
self._Comment = None
|
|
32895
|
+
self._Type = None
|
|
32896
|
+
self._VideoStreamSwitch = None
|
|
32897
|
+
self._AudioStreamSwitch = None
|
|
32898
|
+
self._VideoTemplate = None
|
|
32899
|
+
self._AudioTemplate = None
|
|
32900
|
+
self._CreateTime = None
|
|
32901
|
+
self._UpdateTime = None
|
|
32902
|
+
|
|
32903
|
+
@property
|
|
32904
|
+
def TemplateId(self):
|
|
32905
|
+
"""即时转码模板唯一标识。
|
|
32906
|
+
:rtype: str
|
|
32907
|
+
"""
|
|
32908
|
+
return self._TemplateId
|
|
32909
|
+
|
|
32910
|
+
@TemplateId.setter
|
|
32911
|
+
def TemplateId(self, TemplateId):
|
|
32912
|
+
self._TemplateId = TemplateId
|
|
32913
|
+
|
|
32914
|
+
@property
|
|
32915
|
+
def TemplateName(self):
|
|
32916
|
+
"""转码模板名称。
|
|
32917
|
+
:rtype: str
|
|
32918
|
+
"""
|
|
32919
|
+
return self._TemplateName
|
|
32920
|
+
|
|
32921
|
+
@TemplateName.setter
|
|
32922
|
+
def TemplateName(self, TemplateName):
|
|
32923
|
+
self._TemplateName = TemplateName
|
|
32924
|
+
|
|
32925
|
+
@property
|
|
32926
|
+
def Comment(self):
|
|
32927
|
+
"""模板描述信息。
|
|
32928
|
+
:rtype: str
|
|
32929
|
+
"""
|
|
32930
|
+
return self._Comment
|
|
32931
|
+
|
|
32932
|
+
@Comment.setter
|
|
32933
|
+
def Comment(self, Comment):
|
|
32934
|
+
self._Comment = Comment
|
|
32935
|
+
|
|
32936
|
+
@property
|
|
32937
|
+
def Type(self):
|
|
32938
|
+
"""模板类型,取值:<li>preset:系统预置模板;</li><li>custom:用户自定义模板。</li>
|
|
32939
|
+
:rtype: str
|
|
32940
|
+
"""
|
|
32941
|
+
return self._Type
|
|
32942
|
+
|
|
32943
|
+
@Type.setter
|
|
32944
|
+
def Type(self, Type):
|
|
32945
|
+
self._Type = Type
|
|
32946
|
+
|
|
32947
|
+
@property
|
|
32948
|
+
def VideoStreamSwitch(self):
|
|
32949
|
+
"""启用视频流开关,取值:<li>on:开启;</li><li>off:关闭。</li>
|
|
32950
|
+
:rtype: str
|
|
32951
|
+
"""
|
|
32952
|
+
return self._VideoStreamSwitch
|
|
32953
|
+
|
|
32954
|
+
@VideoStreamSwitch.setter
|
|
32955
|
+
def VideoStreamSwitch(self, VideoStreamSwitch):
|
|
32956
|
+
self._VideoStreamSwitch = VideoStreamSwitch
|
|
32957
|
+
|
|
32958
|
+
@property
|
|
32959
|
+
def AudioStreamSwitch(self):
|
|
32960
|
+
"""启用音频流开关,取值:<li>on:开启;</li><li>off:关闭。</li>
|
|
32961
|
+
:rtype: str
|
|
32962
|
+
"""
|
|
32963
|
+
return self._AudioStreamSwitch
|
|
32964
|
+
|
|
32965
|
+
@AudioStreamSwitch.setter
|
|
32966
|
+
def AudioStreamSwitch(self, AudioStreamSwitch):
|
|
32967
|
+
self._AudioStreamSwitch = AudioStreamSwitch
|
|
32968
|
+
|
|
32969
|
+
@property
|
|
32970
|
+
def VideoTemplate(self):
|
|
32971
|
+
"""视频流配置参数,仅当 VideoStreamSwitch 为 on,该字段有效。
|
|
32972
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.VideoTemplateInfo`
|
|
32973
|
+
"""
|
|
32974
|
+
return self._VideoTemplate
|
|
32975
|
+
|
|
32976
|
+
@VideoTemplate.setter
|
|
32977
|
+
def VideoTemplate(self, VideoTemplate):
|
|
32978
|
+
self._VideoTemplate = VideoTemplate
|
|
32979
|
+
|
|
32980
|
+
@property
|
|
32981
|
+
def AudioTemplate(self):
|
|
32982
|
+
"""音频流配置参数,仅当 AudioStreamSwitch 为 on,该字段有效。
|
|
32983
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.AudioTemplateInfo`
|
|
32984
|
+
"""
|
|
32985
|
+
return self._AudioTemplate
|
|
32986
|
+
|
|
32987
|
+
@AudioTemplate.setter
|
|
32988
|
+
def AudioTemplate(self, AudioTemplate):
|
|
32989
|
+
self._AudioTemplate = AudioTemplate
|
|
32990
|
+
|
|
32991
|
+
@property
|
|
32992
|
+
def CreateTime(self):
|
|
32993
|
+
"""模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
|
32994
|
+
:rtype: str
|
|
32995
|
+
"""
|
|
32996
|
+
return self._CreateTime
|
|
32997
|
+
|
|
32998
|
+
@CreateTime.setter
|
|
32999
|
+
def CreateTime(self, CreateTime):
|
|
33000
|
+
self._CreateTime = CreateTime
|
|
33001
|
+
|
|
33002
|
+
@property
|
|
33003
|
+
def UpdateTime(self):
|
|
33004
|
+
"""模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
|
33005
|
+
:rtype: str
|
|
33006
|
+
"""
|
|
33007
|
+
return self._UpdateTime
|
|
33008
|
+
|
|
33009
|
+
@UpdateTime.setter
|
|
33010
|
+
def UpdateTime(self, UpdateTime):
|
|
33011
|
+
self._UpdateTime = UpdateTime
|
|
33012
|
+
|
|
33013
|
+
|
|
33014
|
+
def _deserialize(self, params):
|
|
33015
|
+
self._TemplateId = params.get("TemplateId")
|
|
33016
|
+
self._TemplateName = params.get("TemplateName")
|
|
33017
|
+
self._Comment = params.get("Comment")
|
|
33018
|
+
self._Type = params.get("Type")
|
|
33019
|
+
self._VideoStreamSwitch = params.get("VideoStreamSwitch")
|
|
33020
|
+
self._AudioStreamSwitch = params.get("AudioStreamSwitch")
|
|
33021
|
+
if params.get("VideoTemplate") is not None:
|
|
33022
|
+
self._VideoTemplate = VideoTemplateInfo()
|
|
33023
|
+
self._VideoTemplate._deserialize(params.get("VideoTemplate"))
|
|
33024
|
+
if params.get("AudioTemplate") is not None:
|
|
33025
|
+
self._AudioTemplate = AudioTemplateInfo()
|
|
33026
|
+
self._AudioTemplate._deserialize(params.get("AudioTemplate"))
|
|
33027
|
+
self._CreateTime = params.get("CreateTime")
|
|
33028
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
33029
|
+
memeber_set = set(params.keys())
|
|
33030
|
+
for name, value in vars(self).items():
|
|
33031
|
+
property_name = name[1:]
|
|
33032
|
+
if property_name in memeber_set:
|
|
33033
|
+
memeber_set.remove(property_name)
|
|
33034
|
+
if len(memeber_set) > 0:
|
|
33035
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33036
|
+
|
|
33037
|
+
|
|
33038
|
+
|
|
30568
33039
|
class L4OfflineLog(AbstractModel):
|
|
30569
33040
|
"""离线日志详细信息
|
|
30570
33041
|
|
|
@@ -36515,39 +38986,469 @@ class ModifyRealtimeLogDeliveryTaskResponse(AbstractModel):
|
|
|
36515
38986
|
self._RequestId = params.get("RequestId")
|
|
36516
38987
|
|
|
36517
38988
|
|
|
36518
|
-
class ModifyRequestHeaderParameters(AbstractModel):
|
|
36519
|
-
"""修改 HTTP 回源请求头配置参数。
|
|
38989
|
+
class ModifyRequestHeaderParameters(AbstractModel):
|
|
38990
|
+
"""修改 HTTP 回源请求头配置参数。
|
|
38991
|
+
|
|
38992
|
+
"""
|
|
38993
|
+
|
|
38994
|
+
def __init__(self):
|
|
38995
|
+
r"""
|
|
38996
|
+
:param _HeaderActions: HTTP 头部设置规则列表。
|
|
38997
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
38998
|
+
:type HeaderActions: list of HeaderAction
|
|
38999
|
+
"""
|
|
39000
|
+
self._HeaderActions = None
|
|
39001
|
+
|
|
39002
|
+
@property
|
|
39003
|
+
def HeaderActions(self):
|
|
39004
|
+
"""HTTP 头部设置规则列表。
|
|
39005
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39006
|
+
:rtype: list of HeaderAction
|
|
39007
|
+
"""
|
|
39008
|
+
return self._HeaderActions
|
|
39009
|
+
|
|
39010
|
+
@HeaderActions.setter
|
|
39011
|
+
def HeaderActions(self, HeaderActions):
|
|
39012
|
+
self._HeaderActions = HeaderActions
|
|
39013
|
+
|
|
39014
|
+
|
|
39015
|
+
def _deserialize(self, params):
|
|
39016
|
+
if params.get("HeaderActions") is not None:
|
|
39017
|
+
self._HeaderActions = []
|
|
39018
|
+
for item in params.get("HeaderActions"):
|
|
39019
|
+
obj = HeaderAction()
|
|
39020
|
+
obj._deserialize(item)
|
|
39021
|
+
self._HeaderActions.append(obj)
|
|
39022
|
+
memeber_set = set(params.keys())
|
|
39023
|
+
for name, value in vars(self).items():
|
|
39024
|
+
property_name = name[1:]
|
|
39025
|
+
if property_name in memeber_set:
|
|
39026
|
+
memeber_set.remove(property_name)
|
|
39027
|
+
if len(memeber_set) > 0:
|
|
39028
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39029
|
+
|
|
39030
|
+
|
|
39031
|
+
|
|
39032
|
+
class ModifyResponseHeaderParameters(AbstractModel):
|
|
39033
|
+
"""修改 HTTP 节点响应头配置参数。
|
|
39034
|
+
|
|
39035
|
+
"""
|
|
39036
|
+
|
|
39037
|
+
def __init__(self):
|
|
39038
|
+
r"""
|
|
39039
|
+
:param _HeaderActions: HTTP 回源头部规则列表。
|
|
39040
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39041
|
+
:type HeaderActions: list of HeaderAction
|
|
39042
|
+
"""
|
|
39043
|
+
self._HeaderActions = None
|
|
39044
|
+
|
|
39045
|
+
@property
|
|
39046
|
+
def HeaderActions(self):
|
|
39047
|
+
"""HTTP 回源头部规则列表。
|
|
39048
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39049
|
+
:rtype: list of HeaderAction
|
|
39050
|
+
"""
|
|
39051
|
+
return self._HeaderActions
|
|
39052
|
+
|
|
39053
|
+
@HeaderActions.setter
|
|
39054
|
+
def HeaderActions(self, HeaderActions):
|
|
39055
|
+
self._HeaderActions = HeaderActions
|
|
39056
|
+
|
|
39057
|
+
|
|
39058
|
+
def _deserialize(self, params):
|
|
39059
|
+
if params.get("HeaderActions") is not None:
|
|
39060
|
+
self._HeaderActions = []
|
|
39061
|
+
for item in params.get("HeaderActions"):
|
|
39062
|
+
obj = HeaderAction()
|
|
39063
|
+
obj._deserialize(item)
|
|
39064
|
+
self._HeaderActions.append(obj)
|
|
39065
|
+
memeber_set = set(params.keys())
|
|
39066
|
+
for name, value in vars(self).items():
|
|
39067
|
+
property_name = name[1:]
|
|
39068
|
+
if property_name in memeber_set:
|
|
39069
|
+
memeber_set.remove(property_name)
|
|
39070
|
+
if len(memeber_set) > 0:
|
|
39071
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39072
|
+
|
|
39073
|
+
|
|
39074
|
+
|
|
39075
|
+
class ModifyRuleRequest(AbstractModel):
|
|
39076
|
+
"""ModifyRule请求参数结构体
|
|
39077
|
+
|
|
39078
|
+
"""
|
|
39079
|
+
|
|
39080
|
+
def __init__(self):
|
|
39081
|
+
r"""
|
|
39082
|
+
:param _ZoneId: 站点 ID。
|
|
39083
|
+
:type ZoneId: str
|
|
39084
|
+
:param _RuleName: 规则名称,字符串名称长度 1~255。
|
|
39085
|
+
:type RuleName: str
|
|
39086
|
+
:param _Rules: 规则内容。
|
|
39087
|
+
:type Rules: list of Rule
|
|
39088
|
+
:param _RuleId: 规则 ID。
|
|
39089
|
+
:type RuleId: str
|
|
39090
|
+
:param _Status: 规则状态,取值有:
|
|
39091
|
+
<li> enable: 启用; </li>
|
|
39092
|
+
<li> disable: 未启用。</li>
|
|
39093
|
+
:type Status: str
|
|
39094
|
+
:param _Tags: 规则标签。
|
|
39095
|
+
:type Tags: list of str
|
|
39096
|
+
"""
|
|
39097
|
+
self._ZoneId = None
|
|
39098
|
+
self._RuleName = None
|
|
39099
|
+
self._Rules = None
|
|
39100
|
+
self._RuleId = None
|
|
39101
|
+
self._Status = None
|
|
39102
|
+
self._Tags = None
|
|
39103
|
+
|
|
39104
|
+
@property
|
|
39105
|
+
def ZoneId(self):
|
|
39106
|
+
"""站点 ID。
|
|
39107
|
+
:rtype: str
|
|
39108
|
+
"""
|
|
39109
|
+
return self._ZoneId
|
|
39110
|
+
|
|
39111
|
+
@ZoneId.setter
|
|
39112
|
+
def ZoneId(self, ZoneId):
|
|
39113
|
+
self._ZoneId = ZoneId
|
|
39114
|
+
|
|
39115
|
+
@property
|
|
39116
|
+
def RuleName(self):
|
|
39117
|
+
"""规则名称,字符串名称长度 1~255。
|
|
39118
|
+
:rtype: str
|
|
39119
|
+
"""
|
|
39120
|
+
return self._RuleName
|
|
39121
|
+
|
|
39122
|
+
@RuleName.setter
|
|
39123
|
+
def RuleName(self, RuleName):
|
|
39124
|
+
self._RuleName = RuleName
|
|
39125
|
+
|
|
39126
|
+
@property
|
|
39127
|
+
def Rules(self):
|
|
39128
|
+
"""规则内容。
|
|
39129
|
+
:rtype: list of Rule
|
|
39130
|
+
"""
|
|
39131
|
+
return self._Rules
|
|
39132
|
+
|
|
39133
|
+
@Rules.setter
|
|
39134
|
+
def Rules(self, Rules):
|
|
39135
|
+
self._Rules = Rules
|
|
39136
|
+
|
|
39137
|
+
@property
|
|
39138
|
+
def RuleId(self):
|
|
39139
|
+
"""规则 ID。
|
|
39140
|
+
:rtype: str
|
|
39141
|
+
"""
|
|
39142
|
+
return self._RuleId
|
|
39143
|
+
|
|
39144
|
+
@RuleId.setter
|
|
39145
|
+
def RuleId(self, RuleId):
|
|
39146
|
+
self._RuleId = RuleId
|
|
39147
|
+
|
|
39148
|
+
@property
|
|
39149
|
+
def Status(self):
|
|
39150
|
+
"""规则状态,取值有:
|
|
39151
|
+
<li> enable: 启用; </li>
|
|
39152
|
+
<li> disable: 未启用。</li>
|
|
39153
|
+
:rtype: str
|
|
39154
|
+
"""
|
|
39155
|
+
return self._Status
|
|
39156
|
+
|
|
39157
|
+
@Status.setter
|
|
39158
|
+
def Status(self, Status):
|
|
39159
|
+
self._Status = Status
|
|
39160
|
+
|
|
39161
|
+
@property
|
|
39162
|
+
def Tags(self):
|
|
39163
|
+
"""规则标签。
|
|
39164
|
+
:rtype: list of str
|
|
39165
|
+
"""
|
|
39166
|
+
return self._Tags
|
|
39167
|
+
|
|
39168
|
+
@Tags.setter
|
|
39169
|
+
def Tags(self, Tags):
|
|
39170
|
+
self._Tags = Tags
|
|
39171
|
+
|
|
39172
|
+
|
|
39173
|
+
def _deserialize(self, params):
|
|
39174
|
+
self._ZoneId = params.get("ZoneId")
|
|
39175
|
+
self._RuleName = params.get("RuleName")
|
|
39176
|
+
if params.get("Rules") is not None:
|
|
39177
|
+
self._Rules = []
|
|
39178
|
+
for item in params.get("Rules"):
|
|
39179
|
+
obj = Rule()
|
|
39180
|
+
obj._deserialize(item)
|
|
39181
|
+
self._Rules.append(obj)
|
|
39182
|
+
self._RuleId = params.get("RuleId")
|
|
39183
|
+
self._Status = params.get("Status")
|
|
39184
|
+
self._Tags = params.get("Tags")
|
|
39185
|
+
memeber_set = set(params.keys())
|
|
39186
|
+
for name, value in vars(self).items():
|
|
39187
|
+
property_name = name[1:]
|
|
39188
|
+
if property_name in memeber_set:
|
|
39189
|
+
memeber_set.remove(property_name)
|
|
39190
|
+
if len(memeber_set) > 0:
|
|
39191
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39192
|
+
|
|
39193
|
+
|
|
39194
|
+
|
|
39195
|
+
class ModifyRuleResponse(AbstractModel):
|
|
39196
|
+
"""ModifyRule返回参数结构体
|
|
39197
|
+
|
|
39198
|
+
"""
|
|
39199
|
+
|
|
39200
|
+
def __init__(self):
|
|
39201
|
+
r"""
|
|
39202
|
+
:param _RuleId: 规则 ID。
|
|
39203
|
+
:type RuleId: str
|
|
39204
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39205
|
+
:type RequestId: str
|
|
39206
|
+
"""
|
|
39207
|
+
self._RuleId = None
|
|
39208
|
+
self._RequestId = None
|
|
39209
|
+
|
|
39210
|
+
@property
|
|
39211
|
+
def RuleId(self):
|
|
39212
|
+
"""规则 ID。
|
|
39213
|
+
:rtype: str
|
|
39214
|
+
"""
|
|
39215
|
+
return self._RuleId
|
|
39216
|
+
|
|
39217
|
+
@RuleId.setter
|
|
39218
|
+
def RuleId(self, RuleId):
|
|
39219
|
+
self._RuleId = RuleId
|
|
39220
|
+
|
|
39221
|
+
@property
|
|
39222
|
+
def RequestId(self):
|
|
39223
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39224
|
+
:rtype: str
|
|
39225
|
+
"""
|
|
39226
|
+
return self._RequestId
|
|
39227
|
+
|
|
39228
|
+
@RequestId.setter
|
|
39229
|
+
def RequestId(self, RequestId):
|
|
39230
|
+
self._RequestId = RequestId
|
|
39231
|
+
|
|
39232
|
+
|
|
39233
|
+
def _deserialize(self, params):
|
|
39234
|
+
self._RuleId = params.get("RuleId")
|
|
39235
|
+
self._RequestId = params.get("RequestId")
|
|
39236
|
+
|
|
39237
|
+
|
|
39238
|
+
class ModifySecurityAPIResourceRequest(AbstractModel):
|
|
39239
|
+
"""ModifySecurityAPIResource请求参数结构体
|
|
39240
|
+
|
|
39241
|
+
"""
|
|
39242
|
+
|
|
39243
|
+
def __init__(self):
|
|
39244
|
+
r"""
|
|
39245
|
+
:param _ZoneId: 站点 ID。
|
|
39246
|
+
:type ZoneId: str
|
|
39247
|
+
:param _APIResources: API 资源列表。
|
|
39248
|
+
:type APIResources: list of APIResource
|
|
39249
|
+
"""
|
|
39250
|
+
self._ZoneId = None
|
|
39251
|
+
self._APIResources = None
|
|
39252
|
+
|
|
39253
|
+
@property
|
|
39254
|
+
def ZoneId(self):
|
|
39255
|
+
"""站点 ID。
|
|
39256
|
+
:rtype: str
|
|
39257
|
+
"""
|
|
39258
|
+
return self._ZoneId
|
|
39259
|
+
|
|
39260
|
+
@ZoneId.setter
|
|
39261
|
+
def ZoneId(self, ZoneId):
|
|
39262
|
+
self._ZoneId = ZoneId
|
|
39263
|
+
|
|
39264
|
+
@property
|
|
39265
|
+
def APIResources(self):
|
|
39266
|
+
"""API 资源列表。
|
|
39267
|
+
:rtype: list of APIResource
|
|
39268
|
+
"""
|
|
39269
|
+
return self._APIResources
|
|
39270
|
+
|
|
39271
|
+
@APIResources.setter
|
|
39272
|
+
def APIResources(self, APIResources):
|
|
39273
|
+
self._APIResources = APIResources
|
|
39274
|
+
|
|
39275
|
+
|
|
39276
|
+
def _deserialize(self, params):
|
|
39277
|
+
self._ZoneId = params.get("ZoneId")
|
|
39278
|
+
if params.get("APIResources") is not None:
|
|
39279
|
+
self._APIResources = []
|
|
39280
|
+
for item in params.get("APIResources"):
|
|
39281
|
+
obj = APIResource()
|
|
39282
|
+
obj._deserialize(item)
|
|
39283
|
+
self._APIResources.append(obj)
|
|
39284
|
+
memeber_set = set(params.keys())
|
|
39285
|
+
for name, value in vars(self).items():
|
|
39286
|
+
property_name = name[1:]
|
|
39287
|
+
if property_name in memeber_set:
|
|
39288
|
+
memeber_set.remove(property_name)
|
|
39289
|
+
if len(memeber_set) > 0:
|
|
39290
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39291
|
+
|
|
39292
|
+
|
|
39293
|
+
|
|
39294
|
+
class ModifySecurityAPIResourceResponse(AbstractModel):
|
|
39295
|
+
"""ModifySecurityAPIResource返回参数结构体
|
|
39296
|
+
|
|
39297
|
+
"""
|
|
39298
|
+
|
|
39299
|
+
def __init__(self):
|
|
39300
|
+
r"""
|
|
39301
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39302
|
+
:type RequestId: str
|
|
39303
|
+
"""
|
|
39304
|
+
self._RequestId = None
|
|
39305
|
+
|
|
39306
|
+
@property
|
|
39307
|
+
def RequestId(self):
|
|
39308
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39309
|
+
:rtype: str
|
|
39310
|
+
"""
|
|
39311
|
+
return self._RequestId
|
|
39312
|
+
|
|
39313
|
+
@RequestId.setter
|
|
39314
|
+
def RequestId(self, RequestId):
|
|
39315
|
+
self._RequestId = RequestId
|
|
39316
|
+
|
|
39317
|
+
|
|
39318
|
+
def _deserialize(self, params):
|
|
39319
|
+
self._RequestId = params.get("RequestId")
|
|
39320
|
+
|
|
39321
|
+
|
|
39322
|
+
class ModifySecurityAPIServiceRequest(AbstractModel):
|
|
39323
|
+
"""ModifySecurityAPIService请求参数结构体
|
|
39324
|
+
|
|
39325
|
+
"""
|
|
39326
|
+
|
|
39327
|
+
def __init__(self):
|
|
39328
|
+
r"""
|
|
39329
|
+
:param _ZoneId: 站点 ID。
|
|
39330
|
+
:type ZoneId: str
|
|
39331
|
+
:param _APIServices: API 服务列表。
|
|
39332
|
+
:type APIServices: list of APIService
|
|
39333
|
+
"""
|
|
39334
|
+
self._ZoneId = None
|
|
39335
|
+
self._APIServices = None
|
|
39336
|
+
|
|
39337
|
+
@property
|
|
39338
|
+
def ZoneId(self):
|
|
39339
|
+
"""站点 ID。
|
|
39340
|
+
:rtype: str
|
|
39341
|
+
"""
|
|
39342
|
+
return self._ZoneId
|
|
39343
|
+
|
|
39344
|
+
@ZoneId.setter
|
|
39345
|
+
def ZoneId(self, ZoneId):
|
|
39346
|
+
self._ZoneId = ZoneId
|
|
39347
|
+
|
|
39348
|
+
@property
|
|
39349
|
+
def APIServices(self):
|
|
39350
|
+
"""API 服务列表。
|
|
39351
|
+
:rtype: list of APIService
|
|
39352
|
+
"""
|
|
39353
|
+
return self._APIServices
|
|
39354
|
+
|
|
39355
|
+
@APIServices.setter
|
|
39356
|
+
def APIServices(self, APIServices):
|
|
39357
|
+
self._APIServices = APIServices
|
|
39358
|
+
|
|
39359
|
+
|
|
39360
|
+
def _deserialize(self, params):
|
|
39361
|
+
self._ZoneId = params.get("ZoneId")
|
|
39362
|
+
if params.get("APIServices") is not None:
|
|
39363
|
+
self._APIServices = []
|
|
39364
|
+
for item in params.get("APIServices"):
|
|
39365
|
+
obj = APIService()
|
|
39366
|
+
obj._deserialize(item)
|
|
39367
|
+
self._APIServices.append(obj)
|
|
39368
|
+
memeber_set = set(params.keys())
|
|
39369
|
+
for name, value in vars(self).items():
|
|
39370
|
+
property_name = name[1:]
|
|
39371
|
+
if property_name in memeber_set:
|
|
39372
|
+
memeber_set.remove(property_name)
|
|
39373
|
+
if len(memeber_set) > 0:
|
|
39374
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39375
|
+
|
|
39376
|
+
|
|
39377
|
+
|
|
39378
|
+
class ModifySecurityAPIServiceResponse(AbstractModel):
|
|
39379
|
+
"""ModifySecurityAPIService返回参数结构体
|
|
39380
|
+
|
|
39381
|
+
"""
|
|
39382
|
+
|
|
39383
|
+
def __init__(self):
|
|
39384
|
+
r"""
|
|
39385
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39386
|
+
:type RequestId: str
|
|
39387
|
+
"""
|
|
39388
|
+
self._RequestId = None
|
|
39389
|
+
|
|
39390
|
+
@property
|
|
39391
|
+
def RequestId(self):
|
|
39392
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39393
|
+
:rtype: str
|
|
39394
|
+
"""
|
|
39395
|
+
return self._RequestId
|
|
39396
|
+
|
|
39397
|
+
@RequestId.setter
|
|
39398
|
+
def RequestId(self, RequestId):
|
|
39399
|
+
self._RequestId = RequestId
|
|
39400
|
+
|
|
39401
|
+
|
|
39402
|
+
def _deserialize(self, params):
|
|
39403
|
+
self._RequestId = params.get("RequestId")
|
|
39404
|
+
|
|
39405
|
+
|
|
39406
|
+
class ModifySecurityClientAttesterRequest(AbstractModel):
|
|
39407
|
+
"""ModifySecurityClientAttester请求参数结构体
|
|
36520
39408
|
|
|
36521
39409
|
"""
|
|
36522
39410
|
|
|
36523
39411
|
def __init__(self):
|
|
36524
39412
|
r"""
|
|
36525
|
-
:param
|
|
36526
|
-
|
|
36527
|
-
:
|
|
39413
|
+
:param _ZoneId: 站点 ID。
|
|
39414
|
+
:type ZoneId: str
|
|
39415
|
+
:param _ClientAttesters: 认证选项列表。
|
|
39416
|
+
:type ClientAttesters: list of ClientAttester
|
|
36528
39417
|
"""
|
|
36529
|
-
self.
|
|
39418
|
+
self._ZoneId = None
|
|
39419
|
+
self._ClientAttesters = None
|
|
36530
39420
|
|
|
36531
39421
|
@property
|
|
36532
|
-
def
|
|
36533
|
-
"""
|
|
36534
|
-
|
|
36535
|
-
:rtype: list of HeaderAction
|
|
39422
|
+
def ZoneId(self):
|
|
39423
|
+
"""站点 ID。
|
|
39424
|
+
:rtype: str
|
|
36536
39425
|
"""
|
|
36537
|
-
return self.
|
|
39426
|
+
return self._ZoneId
|
|
36538
39427
|
|
|
36539
|
-
@
|
|
36540
|
-
def
|
|
36541
|
-
self.
|
|
39428
|
+
@ZoneId.setter
|
|
39429
|
+
def ZoneId(self, ZoneId):
|
|
39430
|
+
self._ZoneId = ZoneId
|
|
39431
|
+
|
|
39432
|
+
@property
|
|
39433
|
+
def ClientAttesters(self):
|
|
39434
|
+
"""认证选项列表。
|
|
39435
|
+
:rtype: list of ClientAttester
|
|
39436
|
+
"""
|
|
39437
|
+
return self._ClientAttesters
|
|
39438
|
+
|
|
39439
|
+
@ClientAttesters.setter
|
|
39440
|
+
def ClientAttesters(self, ClientAttesters):
|
|
39441
|
+
self._ClientAttesters = ClientAttesters
|
|
36542
39442
|
|
|
36543
39443
|
|
|
36544
39444
|
def _deserialize(self, params):
|
|
36545
|
-
|
|
36546
|
-
|
|
36547
|
-
|
|
36548
|
-
|
|
39445
|
+
self._ZoneId = params.get("ZoneId")
|
|
39446
|
+
if params.get("ClientAttesters") is not None:
|
|
39447
|
+
self._ClientAttesters = []
|
|
39448
|
+
for item in params.get("ClientAttesters"):
|
|
39449
|
+
obj = ClientAttester()
|
|
36549
39450
|
obj._deserialize(item)
|
|
36550
|
-
self.
|
|
39451
|
+
self._ClientAttesters.append(obj)
|
|
36551
39452
|
memeber_set = set(params.keys())
|
|
36552
39453
|
for name, value in vars(self).items():
|
|
36553
39454
|
property_name = name[1:]
|
|
@@ -36558,81 +39459,55 @@ class ModifyRequestHeaderParameters(AbstractModel):
|
|
|
36558
39459
|
|
|
36559
39460
|
|
|
36560
39461
|
|
|
36561
|
-
class
|
|
36562
|
-
"""
|
|
39462
|
+
class ModifySecurityClientAttesterResponse(AbstractModel):
|
|
39463
|
+
"""ModifySecurityClientAttester返回参数结构体
|
|
36563
39464
|
|
|
36564
39465
|
"""
|
|
36565
39466
|
|
|
36566
39467
|
def __init__(self):
|
|
36567
39468
|
r"""
|
|
36568
|
-
:param
|
|
36569
|
-
|
|
36570
|
-
:type HeaderActions: list of HeaderAction
|
|
39469
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39470
|
+
:type RequestId: str
|
|
36571
39471
|
"""
|
|
36572
|
-
self.
|
|
39472
|
+
self._RequestId = None
|
|
36573
39473
|
|
|
36574
39474
|
@property
|
|
36575
|
-
def
|
|
36576
|
-
"""
|
|
36577
|
-
|
|
36578
|
-
:rtype: list of HeaderAction
|
|
39475
|
+
def RequestId(self):
|
|
39476
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39477
|
+
:rtype: str
|
|
36579
39478
|
"""
|
|
36580
|
-
return self.
|
|
39479
|
+
return self._RequestId
|
|
36581
39480
|
|
|
36582
|
-
@
|
|
36583
|
-
def
|
|
36584
|
-
self.
|
|
39481
|
+
@RequestId.setter
|
|
39482
|
+
def RequestId(self, RequestId):
|
|
39483
|
+
self._RequestId = RequestId
|
|
36585
39484
|
|
|
36586
39485
|
|
|
36587
39486
|
def _deserialize(self, params):
|
|
36588
|
-
|
|
36589
|
-
self._HeaderActions = []
|
|
36590
|
-
for item in params.get("HeaderActions"):
|
|
36591
|
-
obj = HeaderAction()
|
|
36592
|
-
obj._deserialize(item)
|
|
36593
|
-
self._HeaderActions.append(obj)
|
|
36594
|
-
memeber_set = set(params.keys())
|
|
36595
|
-
for name, value in vars(self).items():
|
|
36596
|
-
property_name = name[1:]
|
|
36597
|
-
if property_name in memeber_set:
|
|
36598
|
-
memeber_set.remove(property_name)
|
|
36599
|
-
if len(memeber_set) > 0:
|
|
36600
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
36601
|
-
|
|
39487
|
+
self._RequestId = params.get("RequestId")
|
|
36602
39488
|
|
|
36603
39489
|
|
|
36604
|
-
class
|
|
36605
|
-
"""
|
|
39490
|
+
class ModifySecurityIPGroupRequest(AbstractModel):
|
|
39491
|
+
"""ModifySecurityIPGroup请求参数结构体
|
|
36606
39492
|
|
|
36607
39493
|
"""
|
|
36608
39494
|
|
|
36609
39495
|
def __init__(self):
|
|
36610
39496
|
r"""
|
|
36611
|
-
:param _ZoneId: 站点
|
|
39497
|
+
:param _ZoneId: 站点 Id。
|
|
36612
39498
|
:type ZoneId: str
|
|
36613
|
-
:param
|
|
36614
|
-
:type
|
|
36615
|
-
:param
|
|
36616
|
-
:type
|
|
36617
|
-
:param _RuleId: 规则 ID。
|
|
36618
|
-
:type RuleId: str
|
|
36619
|
-
:param _Status: 规则状态,取值有:
|
|
36620
|
-
<li> enable: 启用; </li>
|
|
36621
|
-
<li> disable: 未启用。</li>
|
|
36622
|
-
:type Status: str
|
|
36623
|
-
:param _Tags: 规则标签。
|
|
36624
|
-
:type Tags: list of str
|
|
39499
|
+
:param _IPGroup: IP 组配置。
|
|
39500
|
+
:type IPGroup: :class:`tencentcloud.teo.v20220901.models.IPGroup`
|
|
39501
|
+
:param _Mode: 操作类型,取值有:<li> append: 向 IPGroup 中添加新的 IP 地址或设置定时过期时间;</li><li> remove: 从 IPGroup 中删除指定的 IP 地址或其定时过期时间;</li><li> update: 完全替换 IPGroup 中 Content 或 ExpireInfo 的内容,并且可以修改 IPGroup 的名称。</li> 使用 append 操作时注意: <li> 为 IP 或网段添加定时过期时间时,必须晚于当前时间。如果该 IP 或网段在组中不存在,必须同时在 Content 参数中添加该 IP 或网段。若该 IP 或网段已存在过期时间,则新时间将覆盖原有时间。</li> 使用 remove 操作时注意: <li> 删除 IP 或网段时,相关的未过期的定时过期时间也会被删除;</li> <li> 删除定时过期时间时,仅能删除当前未过期的时间。</li> 使用 update 操作时注意: <li> 替换 Content 内容时,不在 Content 中的 IP 或网段的未过期时间会被删除;</li> <li> 替换 IPExpireInfo 内容时,IPExpireInfo 中的 IP 或网段必须在 Content 中或在 IP 组中存在。</li>
|
|
39502
|
+
:type Mode: str
|
|
36625
39503
|
"""
|
|
36626
39504
|
self._ZoneId = None
|
|
36627
|
-
self.
|
|
36628
|
-
self.
|
|
36629
|
-
self._RuleId = None
|
|
36630
|
-
self._Status = None
|
|
36631
|
-
self._Tags = None
|
|
39505
|
+
self._IPGroup = None
|
|
39506
|
+
self._Mode = None
|
|
36632
39507
|
|
|
36633
39508
|
@property
|
|
36634
39509
|
def ZoneId(self):
|
|
36635
|
-
"""站点
|
|
39510
|
+
"""站点 Id。
|
|
36636
39511
|
:rtype: str
|
|
36637
39512
|
"""
|
|
36638
39513
|
return self._ZoneId
|
|
@@ -36642,75 +39517,34 @@ class ModifyRuleRequest(AbstractModel):
|
|
|
36642
39517
|
self._ZoneId = ZoneId
|
|
36643
39518
|
|
|
36644
39519
|
@property
|
|
36645
|
-
def
|
|
36646
|
-
"""
|
|
36647
|
-
:rtype:
|
|
36648
|
-
"""
|
|
36649
|
-
return self._RuleName
|
|
36650
|
-
|
|
36651
|
-
@RuleName.setter
|
|
36652
|
-
def RuleName(self, RuleName):
|
|
36653
|
-
self._RuleName = RuleName
|
|
36654
|
-
|
|
36655
|
-
@property
|
|
36656
|
-
def Rules(self):
|
|
36657
|
-
"""规则内容。
|
|
36658
|
-
:rtype: list of Rule
|
|
36659
|
-
"""
|
|
36660
|
-
return self._Rules
|
|
36661
|
-
|
|
36662
|
-
@Rules.setter
|
|
36663
|
-
def Rules(self, Rules):
|
|
36664
|
-
self._Rules = Rules
|
|
36665
|
-
|
|
36666
|
-
@property
|
|
36667
|
-
def RuleId(self):
|
|
36668
|
-
"""规则 ID。
|
|
36669
|
-
:rtype: str
|
|
39520
|
+
def IPGroup(self):
|
|
39521
|
+
"""IP 组配置。
|
|
39522
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.IPGroup`
|
|
36670
39523
|
"""
|
|
36671
|
-
return self.
|
|
39524
|
+
return self._IPGroup
|
|
36672
39525
|
|
|
36673
|
-
@
|
|
36674
|
-
def
|
|
36675
|
-
self.
|
|
39526
|
+
@IPGroup.setter
|
|
39527
|
+
def IPGroup(self, IPGroup):
|
|
39528
|
+
self._IPGroup = IPGroup
|
|
36676
39529
|
|
|
36677
39530
|
@property
|
|
36678
|
-
def
|
|
36679
|
-
"""
|
|
36680
|
-
<li> enable: 启用; </li>
|
|
36681
|
-
<li> disable: 未启用。</li>
|
|
39531
|
+
def Mode(self):
|
|
39532
|
+
"""操作类型,取值有:<li> append: 向 IPGroup 中添加新的 IP 地址或设置定时过期时间;</li><li> remove: 从 IPGroup 中删除指定的 IP 地址或其定时过期时间;</li><li> update: 完全替换 IPGroup 中 Content 或 ExpireInfo 的内容,并且可以修改 IPGroup 的名称。</li> 使用 append 操作时注意: <li> 为 IP 或网段添加定时过期时间时,必须晚于当前时间。如果该 IP 或网段在组中不存在,必须同时在 Content 参数中添加该 IP 或网段。若该 IP 或网段已存在过期时间,则新时间将覆盖原有时间。</li> 使用 remove 操作时注意: <li> 删除 IP 或网段时,相关的未过期的定时过期时间也会被删除;</li> <li> 删除定时过期时间时,仅能删除当前未过期的时间。</li> 使用 update 操作时注意: <li> 替换 Content 内容时,不在 Content 中的 IP 或网段的未过期时间会被删除;</li> <li> 替换 IPExpireInfo 内容时,IPExpireInfo 中的 IP 或网段必须在 Content 中或在 IP 组中存在。</li>
|
|
36682
39533
|
:rtype: str
|
|
36683
39534
|
"""
|
|
36684
|
-
return self.
|
|
36685
|
-
|
|
36686
|
-
@Status.setter
|
|
36687
|
-
def Status(self, Status):
|
|
36688
|
-
self._Status = Status
|
|
36689
|
-
|
|
36690
|
-
@property
|
|
36691
|
-
def Tags(self):
|
|
36692
|
-
"""规则标签。
|
|
36693
|
-
:rtype: list of str
|
|
36694
|
-
"""
|
|
36695
|
-
return self._Tags
|
|
39535
|
+
return self._Mode
|
|
36696
39536
|
|
|
36697
|
-
@
|
|
36698
|
-
def
|
|
36699
|
-
self.
|
|
39537
|
+
@Mode.setter
|
|
39538
|
+
def Mode(self, Mode):
|
|
39539
|
+
self._Mode = Mode
|
|
36700
39540
|
|
|
36701
39541
|
|
|
36702
39542
|
def _deserialize(self, params):
|
|
36703
39543
|
self._ZoneId = params.get("ZoneId")
|
|
36704
|
-
|
|
36705
|
-
|
|
36706
|
-
self.
|
|
36707
|
-
|
|
36708
|
-
obj = Rule()
|
|
36709
|
-
obj._deserialize(item)
|
|
36710
|
-
self._Rules.append(obj)
|
|
36711
|
-
self._RuleId = params.get("RuleId")
|
|
36712
|
-
self._Status = params.get("Status")
|
|
36713
|
-
self._Tags = params.get("Tags")
|
|
39544
|
+
if params.get("IPGroup") is not None:
|
|
39545
|
+
self._IPGroup = IPGroup()
|
|
39546
|
+
self._IPGroup._deserialize(params.get("IPGroup"))
|
|
39547
|
+
self._Mode = params.get("Mode")
|
|
36714
39548
|
memeber_set = set(params.keys())
|
|
36715
39549
|
for name, value in vars(self).items():
|
|
36716
39550
|
property_name = name[1:]
|
|
@@ -36721,32 +39555,18 @@ class ModifyRuleRequest(AbstractModel):
|
|
|
36721
39555
|
|
|
36722
39556
|
|
|
36723
39557
|
|
|
36724
|
-
class
|
|
36725
|
-
"""
|
|
39558
|
+
class ModifySecurityIPGroupResponse(AbstractModel):
|
|
39559
|
+
"""ModifySecurityIPGroup返回参数结构体
|
|
36726
39560
|
|
|
36727
39561
|
"""
|
|
36728
39562
|
|
|
36729
39563
|
def __init__(self):
|
|
36730
39564
|
r"""
|
|
36731
|
-
:param _RuleId: 规则 ID。
|
|
36732
|
-
:type RuleId: str
|
|
36733
39565
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
36734
39566
|
:type RequestId: str
|
|
36735
39567
|
"""
|
|
36736
|
-
self._RuleId = None
|
|
36737
39568
|
self._RequestId = None
|
|
36738
39569
|
|
|
36739
|
-
@property
|
|
36740
|
-
def RuleId(self):
|
|
36741
|
-
"""规则 ID。
|
|
36742
|
-
:rtype: str
|
|
36743
|
-
"""
|
|
36744
|
-
return self._RuleId
|
|
36745
|
-
|
|
36746
|
-
@RuleId.setter
|
|
36747
|
-
def RuleId(self, RuleId):
|
|
36748
|
-
self._RuleId = RuleId
|
|
36749
|
-
|
|
36750
39570
|
@property
|
|
36751
39571
|
def RequestId(self):
|
|
36752
39572
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -36760,31 +39580,27 @@ class ModifyRuleResponse(AbstractModel):
|
|
|
36760
39580
|
|
|
36761
39581
|
|
|
36762
39582
|
def _deserialize(self, params):
|
|
36763
|
-
self._RuleId = params.get("RuleId")
|
|
36764
39583
|
self._RequestId = params.get("RequestId")
|
|
36765
39584
|
|
|
36766
39585
|
|
|
36767
|
-
class
|
|
36768
|
-
"""
|
|
39586
|
+
class ModifySecurityJSInjectionRuleRequest(AbstractModel):
|
|
39587
|
+
"""ModifySecurityJSInjectionRule请求参数结构体
|
|
36769
39588
|
|
|
36770
39589
|
"""
|
|
36771
39590
|
|
|
36772
39591
|
def __init__(self):
|
|
36773
39592
|
r"""
|
|
36774
|
-
:param _ZoneId: 站点
|
|
39593
|
+
:param _ZoneId: 站点 ID。
|
|
36775
39594
|
:type ZoneId: str
|
|
36776
|
-
:param
|
|
36777
|
-
:type
|
|
36778
|
-
:param _Mode: 操作类型,取值有:<li> append: 向 IPGroup 中添加新的 IP 地址或设置定时过期时间;</li><li> remove: 从 IPGroup 中删除指定的 IP 地址或其定时过期时间;</li><li> update: 完全替换 IPGroup 中 Content 或 ExpireInfo 的内容,并且可以修改 IPGroup 的名称。</li> 使用 append 操作时注意: <li> 为 IP 或网段添加定时过期时间时,必须晚于当前时间。如果该 IP 或网段在组中不存在,必须同时在 Content 参数中添加该 IP 或网段。若该 IP 或网段已存在过期时间,则新时间将覆盖原有时间。</li> 使用 remove 操作时注意: <li> 删除 IP 或网段时,相关的未过期的定时过期时间也会被删除;</li> <li> 删除定时过期时间时,仅能删除当前未过期的时间。</li> 使用 update 操作时注意: <li> 替换 Content 内容时,不在 Content 中的 IP 或网段的未过期时间会被删除;</li> <li> 替换 IPExpireInfo 内容时,IPExpireInfo 中的 IP 或网段必须在 Content 中或在 IP 组中存在。</li>
|
|
36779
|
-
:type Mode: str
|
|
39595
|
+
:param _JSInjectionRules: JavaScript 注入规则列表。
|
|
39596
|
+
:type JSInjectionRules: list of JSInjectionRule
|
|
36780
39597
|
"""
|
|
36781
39598
|
self._ZoneId = None
|
|
36782
|
-
self.
|
|
36783
|
-
self._Mode = None
|
|
39599
|
+
self._JSInjectionRules = None
|
|
36784
39600
|
|
|
36785
39601
|
@property
|
|
36786
39602
|
def ZoneId(self):
|
|
36787
|
-
"""站点
|
|
39603
|
+
"""站点 ID。
|
|
36788
39604
|
:rtype: str
|
|
36789
39605
|
"""
|
|
36790
39606
|
return self._ZoneId
|
|
@@ -36794,34 +39610,25 @@ class ModifySecurityIPGroupRequest(AbstractModel):
|
|
|
36794
39610
|
self._ZoneId = ZoneId
|
|
36795
39611
|
|
|
36796
39612
|
@property
|
|
36797
|
-
def
|
|
36798
|
-
"""
|
|
36799
|
-
:rtype:
|
|
36800
|
-
"""
|
|
36801
|
-
return self._IPGroup
|
|
36802
|
-
|
|
36803
|
-
@IPGroup.setter
|
|
36804
|
-
def IPGroup(self, IPGroup):
|
|
36805
|
-
self._IPGroup = IPGroup
|
|
36806
|
-
|
|
36807
|
-
@property
|
|
36808
|
-
def Mode(self):
|
|
36809
|
-
"""操作类型,取值有:<li> append: 向 IPGroup 中添加新的 IP 地址或设置定时过期时间;</li><li> remove: 从 IPGroup 中删除指定的 IP 地址或其定时过期时间;</li><li> update: 完全替换 IPGroup 中 Content 或 ExpireInfo 的内容,并且可以修改 IPGroup 的名称。</li> 使用 append 操作时注意: <li> 为 IP 或网段添加定时过期时间时,必须晚于当前时间。如果该 IP 或网段在组中不存在,必须同时在 Content 参数中添加该 IP 或网段。若该 IP 或网段已存在过期时间,则新时间将覆盖原有时间。</li> 使用 remove 操作时注意: <li> 删除 IP 或网段时,相关的未过期的定时过期时间也会被删除;</li> <li> 删除定时过期时间时,仅能删除当前未过期的时间。</li> 使用 update 操作时注意: <li> 替换 Content 内容时,不在 Content 中的 IP 或网段的未过期时间会被删除;</li> <li> 替换 IPExpireInfo 内容时,IPExpireInfo 中的 IP 或网段必须在 Content 中或在 IP 组中存在。</li>
|
|
36810
|
-
:rtype: str
|
|
39613
|
+
def JSInjectionRules(self):
|
|
39614
|
+
"""JavaScript 注入规则列表。
|
|
39615
|
+
:rtype: list of JSInjectionRule
|
|
36811
39616
|
"""
|
|
36812
|
-
return self.
|
|
39617
|
+
return self._JSInjectionRules
|
|
36813
39618
|
|
|
36814
|
-
@
|
|
36815
|
-
def
|
|
36816
|
-
self.
|
|
39619
|
+
@JSInjectionRules.setter
|
|
39620
|
+
def JSInjectionRules(self, JSInjectionRules):
|
|
39621
|
+
self._JSInjectionRules = JSInjectionRules
|
|
36817
39622
|
|
|
36818
39623
|
|
|
36819
39624
|
def _deserialize(self, params):
|
|
36820
39625
|
self._ZoneId = params.get("ZoneId")
|
|
36821
|
-
if params.get("
|
|
36822
|
-
self.
|
|
36823
|
-
|
|
36824
|
-
|
|
39626
|
+
if params.get("JSInjectionRules") is not None:
|
|
39627
|
+
self._JSInjectionRules = []
|
|
39628
|
+
for item in params.get("JSInjectionRules"):
|
|
39629
|
+
obj = JSInjectionRule()
|
|
39630
|
+
obj._deserialize(item)
|
|
39631
|
+
self._JSInjectionRules.append(obj)
|
|
36825
39632
|
memeber_set = set(params.keys())
|
|
36826
39633
|
for name, value in vars(self).items():
|
|
36827
39634
|
property_name = name[1:]
|
|
@@ -36832,8 +39639,8 @@ class ModifySecurityIPGroupRequest(AbstractModel):
|
|
|
36832
39639
|
|
|
36833
39640
|
|
|
36834
39641
|
|
|
36835
|
-
class
|
|
36836
|
-
"""
|
|
39642
|
+
class ModifySecurityJSInjectionRuleResponse(AbstractModel):
|
|
39643
|
+
"""ModifySecurityJSInjectionRule返回参数结构体
|
|
36837
39644
|
|
|
36838
39645
|
"""
|
|
36839
39646
|
|
|
@@ -47810,6 +50617,93 @@ class SwitchConfig(AbstractModel):
|
|
|
47810
50617
|
|
|
47811
50618
|
|
|
47812
50619
|
|
|
50620
|
+
class TCCaptchaOption(AbstractModel):
|
|
50621
|
+
"""验证码认证实例信息。
|
|
50622
|
+
|
|
50623
|
+
"""
|
|
50624
|
+
|
|
50625
|
+
def __init__(self):
|
|
50626
|
+
r"""
|
|
50627
|
+
:param _CaptchaAppId: CaptchaAppId 信息。
|
|
50628
|
+
:type CaptchaAppId: str
|
|
50629
|
+
:param _AppSecretKey: AppSecretKey 信息。
|
|
50630
|
+
:type AppSecretKey: str
|
|
50631
|
+
"""
|
|
50632
|
+
self._CaptchaAppId = None
|
|
50633
|
+
self._AppSecretKey = None
|
|
50634
|
+
|
|
50635
|
+
@property
|
|
50636
|
+
def CaptchaAppId(self):
|
|
50637
|
+
"""CaptchaAppId 信息。
|
|
50638
|
+
:rtype: str
|
|
50639
|
+
"""
|
|
50640
|
+
return self._CaptchaAppId
|
|
50641
|
+
|
|
50642
|
+
@CaptchaAppId.setter
|
|
50643
|
+
def CaptchaAppId(self, CaptchaAppId):
|
|
50644
|
+
self._CaptchaAppId = CaptchaAppId
|
|
50645
|
+
|
|
50646
|
+
@property
|
|
50647
|
+
def AppSecretKey(self):
|
|
50648
|
+
"""AppSecretKey 信息。
|
|
50649
|
+
:rtype: str
|
|
50650
|
+
"""
|
|
50651
|
+
return self._AppSecretKey
|
|
50652
|
+
|
|
50653
|
+
@AppSecretKey.setter
|
|
50654
|
+
def AppSecretKey(self, AppSecretKey):
|
|
50655
|
+
self._AppSecretKey = AppSecretKey
|
|
50656
|
+
|
|
50657
|
+
|
|
50658
|
+
def _deserialize(self, params):
|
|
50659
|
+
self._CaptchaAppId = params.get("CaptchaAppId")
|
|
50660
|
+
self._AppSecretKey = params.get("AppSecretKey")
|
|
50661
|
+
memeber_set = set(params.keys())
|
|
50662
|
+
for name, value in vars(self).items():
|
|
50663
|
+
property_name = name[1:]
|
|
50664
|
+
if property_name in memeber_set:
|
|
50665
|
+
memeber_set.remove(property_name)
|
|
50666
|
+
if len(memeber_set) > 0:
|
|
50667
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
50668
|
+
|
|
50669
|
+
|
|
50670
|
+
|
|
50671
|
+
class TCRCEOption(AbstractModel):
|
|
50672
|
+
"""RCE 认证选项实例信息。
|
|
50673
|
+
|
|
50674
|
+
"""
|
|
50675
|
+
|
|
50676
|
+
def __init__(self):
|
|
50677
|
+
r"""
|
|
50678
|
+
:param _Channel: Channel 信息。
|
|
50679
|
+
:type Channel: str
|
|
50680
|
+
"""
|
|
50681
|
+
self._Channel = None
|
|
50682
|
+
|
|
50683
|
+
@property
|
|
50684
|
+
def Channel(self):
|
|
50685
|
+
"""Channel 信息。
|
|
50686
|
+
:rtype: str
|
|
50687
|
+
"""
|
|
50688
|
+
return self._Channel
|
|
50689
|
+
|
|
50690
|
+
@Channel.setter
|
|
50691
|
+
def Channel(self, Channel):
|
|
50692
|
+
self._Channel = Channel
|
|
50693
|
+
|
|
50694
|
+
|
|
50695
|
+
def _deserialize(self, params):
|
|
50696
|
+
self._Channel = params.get("Channel")
|
|
50697
|
+
memeber_set = set(params.keys())
|
|
50698
|
+
for name, value in vars(self).items():
|
|
50699
|
+
property_name = name[1:]
|
|
50700
|
+
if property_name in memeber_set:
|
|
50701
|
+
memeber_set.remove(property_name)
|
|
50702
|
+
if len(memeber_set) > 0:
|
|
50703
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
50704
|
+
|
|
50705
|
+
|
|
50706
|
+
|
|
47813
50707
|
class TLSConfigParameters(AbstractModel):
|
|
47814
50708
|
"""SSL/TLS 安全配置参数。
|
|
47815
50709
|
|
|
@@ -49543,6 +52437,140 @@ class VerifyOwnershipResponse(AbstractModel):
|
|
|
49543
52437
|
self._RequestId = params.get("RequestId")
|
|
49544
52438
|
|
|
49545
52439
|
|
|
52440
|
+
class VideoTemplateInfo(AbstractModel):
|
|
52441
|
+
"""视频流配置参数。
|
|
52442
|
+
|
|
52443
|
+
"""
|
|
52444
|
+
|
|
52445
|
+
def __init__(self):
|
|
52446
|
+
r"""
|
|
52447
|
+
:param _Codec: 视频流的编码格式,可选值:<li>H.264: 使用 H.264 编码;</li><li>H.265: 使用 H.265 编码。</li>
|
|
52448
|
+
:type Codec: str
|
|
52449
|
+
:param _Fps: 视频帧率,取值范围:[0, 30],单位:Hz。
|
|
52450
|
+
取值为 0,表示帧率和原始视频保持一致,但最大不超过 30。
|
|
52451
|
+
默认值:0。
|
|
52452
|
+
:type Fps: float
|
|
52453
|
+
:param _Bitrate: 视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。
|
|
52454
|
+
取值为 0,表示自动根据视频画面和质量选择视频码率。
|
|
52455
|
+
默认值:0。
|
|
52456
|
+
:type Bitrate: int
|
|
52457
|
+
:param _ResolutionAdaptive: 分辨率自适应,可选值:<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li><li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li>默认值:open。
|
|
52458
|
+
:type ResolutionAdaptive: str
|
|
52459
|
+
:param _Width: 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 1920],单位:px。<li>当 Width、Height 均为 0,则分辨率同源;</li><li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li><li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li><li>当 Width、Height 均非 0,则分辨率按用户指定。</li>默认值:0。
|
|
52460
|
+
:type Width: int
|
|
52461
|
+
:param _Height: 视频流高度(或短边)的最大值,取值范围:0 和 [128, 1080],单位:px。<li>当 Width、Height 均为 0,则分辨率同源;</li><li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li><li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li><li>当 Width、Height 均非 0,则分辨率按用户指定。</li>默认值:0。
|
|
52462
|
+
:type Height: int
|
|
52463
|
+
:param _FillType: 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁”或者“拉长”。</li><li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li><li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li><li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>默认值:black 。
|
|
52464
|
+
:type FillType: str
|
|
52465
|
+
"""
|
|
52466
|
+
self._Codec = None
|
|
52467
|
+
self._Fps = None
|
|
52468
|
+
self._Bitrate = None
|
|
52469
|
+
self._ResolutionAdaptive = None
|
|
52470
|
+
self._Width = None
|
|
52471
|
+
self._Height = None
|
|
52472
|
+
self._FillType = None
|
|
52473
|
+
|
|
52474
|
+
@property
|
|
52475
|
+
def Codec(self):
|
|
52476
|
+
"""视频流的编码格式,可选值:<li>H.264: 使用 H.264 编码;</li><li>H.265: 使用 H.265 编码。</li>
|
|
52477
|
+
:rtype: str
|
|
52478
|
+
"""
|
|
52479
|
+
return self._Codec
|
|
52480
|
+
|
|
52481
|
+
@Codec.setter
|
|
52482
|
+
def Codec(self, Codec):
|
|
52483
|
+
self._Codec = Codec
|
|
52484
|
+
|
|
52485
|
+
@property
|
|
52486
|
+
def Fps(self):
|
|
52487
|
+
"""视频帧率,取值范围:[0, 30],单位:Hz。
|
|
52488
|
+
取值为 0,表示帧率和原始视频保持一致,但最大不超过 30。
|
|
52489
|
+
默认值:0。
|
|
52490
|
+
:rtype: float
|
|
52491
|
+
"""
|
|
52492
|
+
return self._Fps
|
|
52493
|
+
|
|
52494
|
+
@Fps.setter
|
|
52495
|
+
def Fps(self, Fps):
|
|
52496
|
+
self._Fps = Fps
|
|
52497
|
+
|
|
52498
|
+
@property
|
|
52499
|
+
def Bitrate(self):
|
|
52500
|
+
"""视频流的码率,取值范围:0 和 [128, 10000],单位:kbps。
|
|
52501
|
+
取值为 0,表示自动根据视频画面和质量选择视频码率。
|
|
52502
|
+
默认值:0。
|
|
52503
|
+
:rtype: int
|
|
52504
|
+
"""
|
|
52505
|
+
return self._Bitrate
|
|
52506
|
+
|
|
52507
|
+
@Bitrate.setter
|
|
52508
|
+
def Bitrate(self, Bitrate):
|
|
52509
|
+
self._Bitrate = Bitrate
|
|
52510
|
+
|
|
52511
|
+
@property
|
|
52512
|
+
def ResolutionAdaptive(self):
|
|
52513
|
+
"""分辨率自适应,可选值:<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li><li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li>默认值:open。
|
|
52514
|
+
:rtype: str
|
|
52515
|
+
"""
|
|
52516
|
+
return self._ResolutionAdaptive
|
|
52517
|
+
|
|
52518
|
+
@ResolutionAdaptive.setter
|
|
52519
|
+
def ResolutionAdaptive(self, ResolutionAdaptive):
|
|
52520
|
+
self._ResolutionAdaptive = ResolutionAdaptive
|
|
52521
|
+
|
|
52522
|
+
@property
|
|
52523
|
+
def Width(self):
|
|
52524
|
+
"""视频流宽度(或长边)的最大值,取值范围:0 和 [128, 1920],单位:px。<li>当 Width、Height 均为 0,则分辨率同源;</li><li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li><li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li><li>当 Width、Height 均非 0,则分辨率按用户指定。</li>默认值:0。
|
|
52525
|
+
:rtype: int
|
|
52526
|
+
"""
|
|
52527
|
+
return self._Width
|
|
52528
|
+
|
|
52529
|
+
@Width.setter
|
|
52530
|
+
def Width(self, Width):
|
|
52531
|
+
self._Width = Width
|
|
52532
|
+
|
|
52533
|
+
@property
|
|
52534
|
+
def Height(self):
|
|
52535
|
+
"""视频流高度(或短边)的最大值,取值范围:0 和 [128, 1080],单位:px。<li>当 Width、Height 均为 0,则分辨率同源;</li><li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li><li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li><li>当 Width、Height 均非 0,则分辨率按用户指定。</li>默认值:0。
|
|
52536
|
+
:rtype: int
|
|
52537
|
+
"""
|
|
52538
|
+
return self._Height
|
|
52539
|
+
|
|
52540
|
+
@Height.setter
|
|
52541
|
+
def Height(self, Height):
|
|
52542
|
+
self._Height = Height
|
|
52543
|
+
|
|
52544
|
+
@property
|
|
52545
|
+
def FillType(self):
|
|
52546
|
+
"""填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁”或者“拉长”。</li><li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li><li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li><li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li>默认值:black 。
|
|
52547
|
+
:rtype: str
|
|
52548
|
+
"""
|
|
52549
|
+
return self._FillType
|
|
52550
|
+
|
|
52551
|
+
@FillType.setter
|
|
52552
|
+
def FillType(self, FillType):
|
|
52553
|
+
self._FillType = FillType
|
|
52554
|
+
|
|
52555
|
+
|
|
52556
|
+
def _deserialize(self, params):
|
|
52557
|
+
self._Codec = params.get("Codec")
|
|
52558
|
+
self._Fps = params.get("Fps")
|
|
52559
|
+
self._Bitrate = params.get("Bitrate")
|
|
52560
|
+
self._ResolutionAdaptive = params.get("ResolutionAdaptive")
|
|
52561
|
+
self._Width = params.get("Width")
|
|
52562
|
+
self._Height = params.get("Height")
|
|
52563
|
+
self._FillType = params.get("FillType")
|
|
52564
|
+
memeber_set = set(params.keys())
|
|
52565
|
+
for name, value in vars(self).items():
|
|
52566
|
+
property_name = name[1:]
|
|
52567
|
+
if property_name in memeber_set:
|
|
52568
|
+
memeber_set.remove(property_name)
|
|
52569
|
+
if len(memeber_set) > 0:
|
|
52570
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
52571
|
+
|
|
52572
|
+
|
|
52573
|
+
|
|
49546
52574
|
class Waf(AbstractModel):
|
|
49547
52575
|
"""无
|
|
49548
52576
|
|